file
stringlengths 18
26
| data
stringlengths 3
1.04M
|
---|---|
the_stack_data/248580862.c | /* Taxonomy Classification: 0040000000000000000000 */
/*
* WRITE/READ 0 write
* WHICH BOUND 0 upper
* DATA TYPE 4 pointer
* MEMORY LOCATION 0 stack
* SCOPE 0 same
* CONTAINER 0 no
* POINTER 0 no
* INDEX COMPLEXITY 0 constant
* ADDRESS COMPLEXITY 0 constant
* LENGTH COMPLEXITY 0 N/A
* ADDRESS ALIAS 0 none
* INDEX ALIAS 0 none
* LOCAL CONTROL FLOW 0 none
* SECONDARY CONTROL FLOW 0 none
* LOOP STRUCTURE 0 no
* LOOP COMPLEXITY 0 N/A
* ASYNCHRONY 0 no
* TAINT 0 no
* RUNTIME ENV. DEPENDENCE 0 no
* MAGNITUDE 0 no overflow
* CONTINUOUS/DISCRETE 0 discrete
* SIGNEDNESS 0 no
*/
/*
Copyright 2004 M.I.T.
Permission is hereby granted, without written agreement or royalty fee, to use,
copy, modify, and distribute this software and its documentation for any
purpose, provided that the above copyright notice and the following three
paragraphs appear in all copies of this software.
IN NO EVENT SHALL M.I.T. BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL,
INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE
AND ITS DOCUMENTATION, EVEN IF M.I.T. HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMANGE.
M.I.T. SPECIFICALLY DISCLAIMS ANY WARRANTIES INCLUDING, BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
AND NON-INFRINGEMENT.
THE SOFTWARE IS PROVIDED ON AN "AS-IS" BASIS AND M.I.T. HAS NO OBLIGATION TO
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
*/
int main(int argc, char *argv[])
{
char * buf[10];
/* OK */
buf[9] = "A";
return 0;
}
|
the_stack_data/20451363.c | int strround(char *s,int len)
{
/* string rounding function
* (c) Edmond J. Breen.
* round back the numbers in a string
* and fill with zeros.
* where: 'len' is the length of the string.
* Returns 1 on success
* and 0 if over flow has occurred.
*/
if(len>0)
if(s[--len] >= '5') {
do {
s[len--] = '0';
} while(len > 0 && s[len] == '9');
if(s[len] == '9')
return 0;
s[len]++;
}
return 1;
}
|
the_stack_data/321672.c | #include <stdio.h>
#include <wchar.h>
#include <locale.h>
#include <readline/readline.h>
#include <unistd.h>
#include <stdlib.h>
//Colors
#define KNRM "\x1B[0m"
#define KRED "\x1B[31m"
#define KGRN "\x1B[32m"
#define KYEL "\x1B[33m"
#define KBLU "\x1B[34m"
#define KMAG "\x1B[35m"
#define KCYN "\x1B[36m"
#define KWHT "\x1B[37m"
//Memory Limits
#define cache_size 9999
//Keybindings
#define ENTER 13
#define ARROW 224
#define LEFT 75
#define RIGHT 77
#define SEPARATOR 219
#define DELETE 83
#define BACKSPACE 8
#define NL 10
//Display Operations
#define clear() printf("\033[H\033[J")
#define cursor() printf(KWHT "|"KMAG "|"KWHT);
//Function Prototypes
void display(int pos);
void jump_line_up();
void jump_line_down();
int insert(char* read);
int delete();
char filename[] = "new";
char buffer[256];
int pos = 0;
int display_max = 0;
int frame = 0;
int nlines = 15;
int left()
{
if(pos>0)
pos--;
display(pos);
return 0;
}
int right()
{
if(pos<display_max)
pos++;
printf("RIGHT\n");
display(pos);
return 0;
}
int up()
{
if(frame>0)
{
frame--;
jump_line_down();
}
display(pos);
return 0;
}
int down()
{
if(frame>=0)
{
frame++;
jump_line_up();
}
display(pos);
return 0;
}
int main()
{
//setlocale(LC_ALL,"en_US.utf8");
void quit()
{
//abort();
_exit(1);
}
//const wchar_t cur = 0x1d173;
//printf("%c\n",cur);
//cursor();
FILE *fp = fopen(filename, "ab+");
fclose(fp);
strcpy(buffer,"\nACTION:");
while(1)
{
rl_bind_keyseq("\\e[A",up);
rl_bind_keyseq("\\e[B",down);
rl_bind_keyseq("\\e[D",left);
rl_bind_keyseq("\\e[C",right);
rl_bind_keyseq("~",abort);
rl_bind_keyseq("\t",delete);
//rl_bind_keyseq("_ins",insert);
display(pos);
printf("\nCharacters=%d\n",display_max);
char* read = readline(buffer);
//printf("\n >>>>>%s<<<<<\n",read);
//sleep(1);
insert(read);
//break;
}
return 0;
}
int insert(char* readin)
{
if(strlen(readin)==0)
{
readin = strdup("\n");
}
printf("\nINSERT : \n");
//char* readin = strdup("hello");//buffer;
//printf("\n%s\n",read);
//scanf("%s",read);
FILE * file = fopen(filename,"r");
char * data = malloc(cache_size*sizeof(char));
char * data2 = malloc(cache_size*sizeof(char));
int ii;
for(ii=0; ii<cache_size; ii++)
{
data[ii] = '\0';
data2[ii] = '\0';
}
int cur = 0;
while(1)
{
if(feof(file))
{
fclose(file);
break;
}
char symbol = fgetc(file);
if(symbol==-1)
{
fclose(file);
break;
}
data[cur++] = symbol;
//printf("Data Fetched %d - %c\n",cur,symbol);
}
data[cur] = '\0';
cur = 0;
strncpy(data2,data,pos);
strcat(data2,readin);
strcat(data2,data+pos);
FILE * file2 = fopen(filename,"w");
fprintf(file2,"%s",data2);
fclose(file2);
free(data);
free(data2);
pos+=strlen(readin);
display(pos);
return 0;
}
int delete()
{
if(pos==0)
{
return 0;
}
FILE * file = fopen(filename,"r");
char * data = malloc(cache_size*sizeof(char));
char * data2 = malloc(cache_size*sizeof(char));
int ii;
for(ii=0; ii<cache_size; ii++)
{
data[ii] = '\0';
data2[ii] = '\0';
}
int cur = 0;
while(1)
{
if(feof(file))
{
fclose(file);
break;
}
char symbol = fgetc(file);
if(symbol==-1)
{
fclose(file);
break;
}
data[cur++] = symbol;
//printf("Data Fetched %d - %c\n",cur,symbol);
}
data[cur] = '\0';
cur = 0;
strncpy(data2,data,pos-1);
//strcat(data2,readin);
strcat(data2,data+pos);
FILE * file2 = fopen(filename,"w");
fprintf(file2,"%s",data2);
fclose(file2);
free(data);
free(data2);
pos--;
display(pos);
return 0;
}
void display(int pos)
{
FILE * file = fopen(filename,"r");
int cur = 0;
clear();
int i;
display_max = 0;
int count_nl=0;
if(file!=NULL)
{
while(1)
{
if(pos == cur)
{
cursor();
}
else
{
display_max++;
}
cur++;
if(feof(file))
{
fclose(file);
printf("\n");
break;
}
char symbol = fgetc(file);
if(symbol==-1)
{
fclose(file);
printf("\n");
break;
}
if(symbol==10)
{
count_nl++;
}
if(count_nl>(frame+nlines))
{
fclose(file);
printf(KWHT ""KBLU "EOF\n");
break;
}
if(count_nl<frame)
{
continue;
}
fputc(symbol,stdout);
//printf(" %d ",symbol);
}
printf("\n"KRED "_______________________________________________________________________________________________________________\n\n" );
fflush(stdout);
}
}
void jump_line_up()
{
FILE * file = fopen(filename,"r");
int cur = 0;
int count_nl=0;
int current_line_found=0;
int current_line=0;
if(file!=NULL)
{
while(1)
{
cur++;
if(feof(file))
{
fclose(file);
printf("\n");
break;
}
char symbol = fgetc(file);
if(symbol==-1)
{
fclose(file);
printf("\n");
break;
}
if(symbol==10)
{
count_nl++;
}
if((cur>=pos)&&(current_line_found==0))
{
current_line_found = 1;
current_line = count_nl;
}
if(current_line_found==1)
{
if(count_nl>current_line)
{
pos = cur;
fclose(file);
break;
}
}
}
fflush(stdout);
}
}
void jump_line_down()
{
FILE * file = fopen(filename,"r");
int cur = 0;
int count_nl=0;
int current_line_found=0;
int current_line=0;
int prev_line_head=0;
if(file!=NULL)
{
while(1)
{
cur++;
if(feof(file))
{
fclose(file);
printf("\n");
break;
}
char symbol = fgetc(file);
if(symbol==-1)
{
fclose(file);
printf("\n");
break;
}
if(symbol==10)
{
count_nl++;
if(current_line_found==0)
prev_line_head = cur-1;
}
if((cur>=pos)&&(current_line_found==0))
{
current_line_found = 1;
current_line = count_nl;
}
if(current_line_found==1)
{
pos = prev_line_head;
fclose(file);
break;
}
}
fflush(stdout);
}
}
|
the_stack_data/306134.c | // INFO: trying to register non-static key in bond_3ad_update_ad_actor_settings
// https://syzkaller.appspot.com/bug?id=32f08487c3ec6daec48026ce2e93c7b70bd80801
// status:fixed
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
uint64_t r[1] = {0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
intptr_t res = 0;
res = syscall(__NR_socket, 0x10, 3, 0);
if (res != -1)
r[0] = res;
*(uint64_t*)0x20000100 = 0;
*(uint32_t*)0x20000108 = 0;
*(uint64_t*)0x20000110 = 0x20000000;
*(uint64_t*)0x20000000 = 0x20000040;
*(uint32_t*)0x20000040 = 0x44;
*(uint16_t*)0x20000044 = 0x10;
*(uint16_t*)0x20000046 = 0x501;
*(uint32_t*)0x20000048 = 0;
*(uint32_t*)0x2000004c = 0;
*(uint8_t*)0x20000050 = 0;
*(uint8_t*)0x20000051 = 0;
*(uint16_t*)0x20000052 = 0;
*(uint32_t*)0x20000054 = 0;
*(uint32_t*)0x20000058 = 0;
*(uint32_t*)0x2000005c = 0;
*(uint16_t*)0x20000060 = 0x24;
*(uint16_t*)0x20000062 = 0x12;
*(uint16_t*)0x20000064 = 0xc;
*(uint16_t*)0x20000066 = 1;
memcpy((void*)0x20000068, "bond\000", 5);
*(uint16_t*)0x20000070 = 0x14;
*(uint16_t*)0x20000072 = 2;
*(uint16_t*)0x20000074 = 8;
*(uint16_t*)0x20000076 = 0x18;
*(uint16_t*)0x20000078 = 1;
*(uint16_t*)0x2000007c = 8;
*(uint16_t*)0x2000007e = 1;
*(uint8_t*)0x20000080 = 4;
*(uint64_t*)0x20000008 = 0x44;
*(uint64_t*)0x20000118 = 1;
*(uint64_t*)0x20000120 = 0;
*(uint64_t*)0x20000128 = 0;
*(uint32_t*)0x20000130 = 0;
syscall(__NR_sendmsg, r[0], 0x20000100, 0);
return 0;
}
|
the_stack_data/111078610.c | /*******************************************************************************
* Copyright (C) 2018 Charly Lamothe *
* *
* This file is part of LibSharedMemoryObject. *
* *
* 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>
void __attribute__ ((constructor)) hello_world(void);
void hello_world(void) {
fprintf(stdout, "Hello world from shared object !\n");
}
|
the_stack_data/61075719.c | #include <stdio.h>
int main(){
printf("sayacin ilk okuma degerini giriniz:");int fr;scanf("%d", &fr);
printf("sayacin ikinci okuma degerini giriniz:");int sr;scanf("%d", &sr);
printf("Kullanim turunu giriniz:(Mesken:0,isyeri:1)");int typ;scanf("%d", &typ);
if (typ == 1){
printf("Kullanim turunuz Isyeri\nSarfiyatiniz..:%d Faturaniz..:%d", sr-fr, (sr-fr)*2);
}else{
int m = 1, n = sr-fr;
for (int i = 0; i < sr-fr; i++){
if (i <= 50){
m+=1;
}
if (i > 50 && i < 100){
m+=2;
}
if (i >= 100){
m+=3;
}
}
printf("Kullanim turunuz Mesken\nSarfiyatiniz..:%d Faturaniz..:%d", sr-fr, m);
}
return 0;
}
//19110011024 |
the_stack_data/69191.c | /* HAL raised several warnings, ignore them */
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#ifdef STM32F0xx
#include "stm32f0xx_hal_tim.c"
#elif STM32F1xx
#include "stm32f1xx_hal_tim.c"
#elif STM32F2xx
#include "stm32f2xx_hal_tim.c"
#elif STM32F3xx
#include "stm32f3xx_hal_tim.c"
#elif STM32F4xx
#include "stm32f4xx_hal_tim.c"
#elif STM32F7xx
#include "stm32f7xx_hal_tim.c"
#elif STM32G0xx
#include "stm32g0xx_hal_tim.c"
#elif STM32G4xx
#include "stm32g4xx_hal_tim.c"
#elif STM32H7xx
#include "stm32h7xx_hal_tim.c"
#elif STM32L0xx
#include "stm32l0xx_hal_tim.c"
#elif STM32L1xx
#include "stm32l1xx_hal_tim.c"
#elif STM32L4xx
#include "stm32l4xx_hal_tim.c"
#elif STM32L5xx
#include "stm32l5xx_hal_tim.c"
#elif STM32MP1xx
#include "stm32mp1xx_hal_tim.c"
#elif STM32WBxx
#include "stm32wbxx_hal_tim.c"
#elif STM32WLxx
#include "stm32wlxx_hal_tim.c"
#endif
#pragma GCC diagnostic pop
|
the_stack_data/146366.c | // KASAN: use-after-free Read in rht_deferred_worker (2)
// https://syzkaller.appspot.com/bug?id=df3eebe91337a761db0f
// status:0
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <dirent.h>
#include <endian.h>
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/prctl.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <time.h>
#include <unistd.h>
#include <linux/futex.h>
static unsigned long long procid;
static void sleep_ms(uint64_t ms)
{
usleep(ms * 1000);
}
static uint64_t current_time_ms(void)
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts))
exit(1);
return (uint64_t)ts.tv_sec * 1000 + (uint64_t)ts.tv_nsec / 1000000;
}
static void thread_start(void* (*fn)(void*), void* arg)
{
pthread_t th;
pthread_attr_t attr;
pthread_attr_init(&attr);
pthread_attr_setstacksize(&attr, 128 << 10);
int i = 0;
for (; i < 100; i++) {
if (pthread_create(&th, &attr, fn, arg) == 0) {
pthread_attr_destroy(&attr);
return;
}
if (errno == EAGAIN) {
usleep(50);
continue;
}
break;
}
exit(1);
}
typedef struct {
int state;
} event_t;
static void event_init(event_t* ev)
{
ev->state = 0;
}
static void event_reset(event_t* ev)
{
ev->state = 0;
}
static void event_set(event_t* ev)
{
if (ev->state)
exit(1);
__atomic_store_n(&ev->state, 1, __ATOMIC_RELEASE);
syscall(SYS_futex, &ev->state, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1000000);
}
static void event_wait(event_t* ev)
{
while (!__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, 0);
}
static int event_isset(event_t* ev)
{
return __atomic_load_n(&ev->state, __ATOMIC_ACQUIRE);
}
static int event_timedwait(event_t* ev, uint64_t timeout)
{
uint64_t start = current_time_ms();
uint64_t now = start;
for (;;) {
uint64_t remain = timeout - (now - start);
struct timespec ts;
ts.tv_sec = remain / 1000;
ts.tv_nsec = (remain % 1000) * 1000 * 1000;
syscall(SYS_futex, &ev->state, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 0, &ts);
if (__atomic_load_n(&ev->state, __ATOMIC_ACQUIRE))
return 1;
now = current_time_ms();
if (now - start > timeout)
return 0;
}
}
static bool write_file(const char* file, const char* what, ...)
{
char buf[1024];
va_list args;
va_start(args, what);
vsnprintf(buf, sizeof(buf), what, args);
va_end(args);
buf[sizeof(buf) - 1] = 0;
int len = strlen(buf);
int fd = open(file, O_WRONLY | O_CLOEXEC);
if (fd == -1)
return false;
if (write(fd, buf, len) != len) {
int err = errno;
close(fd);
errno = err;
return false;
}
close(fd);
return true;
}
static void kill_and_wait(int pid, int* status)
{
kill(-pid, SIGKILL);
kill(pid, SIGKILL);
for (int i = 0; i < 100; i++) {
if (waitpid(-1, status, WNOHANG | __WALL) == pid)
return;
usleep(1000);
}
DIR* dir = opendir("/sys/fs/fuse/connections");
if (dir) {
for (;;) {
struct dirent* ent = readdir(dir);
if (!ent)
break;
if (strcmp(ent->d_name, ".") == 0 || strcmp(ent->d_name, "..") == 0)
continue;
char abort[300];
snprintf(abort, sizeof(abort), "/sys/fs/fuse/connections/%s/abort",
ent->d_name);
int fd = open(abort, O_WRONLY);
if (fd == -1) {
continue;
}
if (write(fd, abort, 1) < 0) {
}
close(fd);
}
closedir(dir);
} else {
}
while (waitpid(-1, status, __WALL) != pid) {
}
}
static void setup_test()
{
prctl(PR_SET_PDEATHSIG, SIGKILL, 0, 0, 0);
setpgrp();
write_file("/proc/self/oom_score_adj", "1000");
}
struct thread_t {
int created, call;
event_t ready, done;
};
static struct thread_t threads[16];
static void execute_call(int call);
static int running;
static void* thr(void* arg)
{
struct thread_t* th = (struct thread_t*)arg;
for (;;) {
event_wait(&th->ready);
event_reset(&th->ready);
execute_call(th->call);
__atomic_fetch_sub(&running, 1, __ATOMIC_RELAXED);
event_set(&th->done);
}
return 0;
}
static void execute_one(void)
{
int i, call, thread;
for (call = 0; call < 11; call++) {
for (thread = 0; thread < (int)(sizeof(threads) / sizeof(threads[0]));
thread++) {
struct thread_t* th = &threads[thread];
if (!th->created) {
th->created = 1;
event_init(&th->ready);
event_init(&th->done);
event_set(&th->done);
thread_start(thr, th);
}
if (!event_isset(&th->done))
continue;
event_reset(&th->done);
th->call = call;
__atomic_fetch_add(&running, 1, __ATOMIC_RELAXED);
event_set(&th->ready);
event_timedwait(&th->done, 50);
break;
}
}
for (i = 0; i < 100 && __atomic_load_n(&running, __ATOMIC_RELAXED); i++)
sleep_ms(1);
}
static void execute_one(void);
#define WAIT_FLAGS __WALL
static void loop(void)
{
int iter = 0;
for (;; iter++) {
int pid = fork();
if (pid < 0)
exit(1);
if (pid == 0) {
setup_test();
execute_one();
exit(0);
}
int status = 0;
uint64_t start = current_time_ms();
for (;;) {
if (waitpid(-1, &status, WNOHANG | WAIT_FLAGS) == pid)
break;
sleep_ms(1);
if (current_time_ms() - start < 5000) {
continue;
}
kill_and_wait(pid, &status);
break;
}
}
}
uint64_t r[5] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff,
0xffffffffffffffff, 0x0};
void execute_call(int call)
{
intptr_t res = 0;
switch (call) {
case 0:
res = syscall(__NR_socket, 0x1000000010ul, 0x80002ul, 0);
if (res != -1)
r[0] = res;
break;
case 1:
res = syscall(__NR_socket, 0x10ul, 3ul, 0);
if (res != -1)
r[1] = res;
break;
case 2:
res = syscall(__NR_socket, 0x10ul, 3ul, 0);
if (res != -1)
r[2] = res;
break;
case 3:
res = syscall(__NR_socket, 0x10ul, 0x803ul, 0);
if (res != -1)
r[3] = res;
break;
case 4:
*(uint64_t*)0x20000280 = 0;
*(uint32_t*)0x20000288 = 0;
*(uint64_t*)0x20000290 = 0x20000180;
*(uint64_t*)0x20000180 = 0;
*(uint64_t*)0x20000188 = 0;
*(uint64_t*)0x20000298 = 1;
*(uint64_t*)0x200002a0 = 0;
*(uint64_t*)0x200002a8 = 0;
*(uint32_t*)0x200002b0 = 0;
syscall(__NR_sendmsg, r[3], 0x20000280ul, 0ul);
break;
case 5:
*(uint64_t*)0x20000200 = 0;
*(uint32_t*)0x20000208 = 0;
*(uint64_t*)0x20000210 = 0x20000180;
*(uint64_t*)0x20000180 = 0;
*(uint64_t*)0x20000188 = 0;
*(uint64_t*)0x20000218 = 1;
*(uint64_t*)0x20000220 = 0;
*(uint64_t*)0x20000228 = 0;
*(uint32_t*)0x20000230 = 0;
syscall(__NR_sendmsg, -1, 0x20000200ul, 0ul);
break;
case 6:
*(uint32_t*)0x20000340 = 0x6e;
res = syscall(__NR_getsockname, r[3], 0x20000100ul, 0x20000340ul);
if (res != -1)
r[4] = *(uint32_t*)0x20000104;
break;
case 7:
*(uint64_t*)0x20000040 = 0;
*(uint32_t*)0x20000048 = 0;
*(uint64_t*)0x20000050 = 0x20000000;
*(uint64_t*)0x20000000 = 0x200002c0;
memcpy((void*)0x200002c0,
"\x48\x00\x00\x00\x10\x00\x05\x07\x00\x00\x00\x00\x00\x00\x00\x00"
"\x00\x00\x00\x00",
20);
*(uint32_t*)0x200002d4 = r[4];
memcpy((void*)0x200002d8,
"\x00\x00\x00\x00\x00\x00\x00\x00\x28\x00\x12\x00\x09\x00\x01\x00"
"\x76\x65\x74\x68",
20);
*(uint64_t*)0x20000008 = 0x48;
*(uint64_t*)0x20000058 = 1;
*(uint64_t*)0x20000060 = 0;
*(uint64_t*)0x20000068 = 0;
*(uint32_t*)0x20000070 = 0;
syscall(__NR_sendmsg, r[2], 0x20000040ul, 0ul);
break;
case 8:
*(uint64_t*)0x20000240 = 0;
*(uint32_t*)0x20000248 = 0;
*(uint64_t*)0x20000250 = 0x20000140;
*(uint64_t*)0x20000140 = 0x200003c0;
memcpy((void*)0x200003c0,
"\x38\x00\x00\x00\x24\x00\xff\xff\xff\x7f\x00\x00\x00\x00\x3c\x00"
"\x05\x00\x00\x00",
20);
*(uint32_t*)0x200003d4 = r[4];
memcpy((void*)0x200003d8,
"\x00\x00\x00\x00\xff\xff\xff\xff\x00\x00\x00\x00\x09\x00\x01\x00"
"\x68\x66\x73\x63\x00\x00\x00\x00\x08\x00\x02",
27);
*(uint64_t*)0x20000148 = 0x38;
*(uint64_t*)0x20000258 = 1;
*(uint64_t*)0x20000260 = 0;
*(uint64_t*)0x20000268 = 0;
*(uint32_t*)0x20000270 = 0;
syscall(__NR_sendmsg, r[1], 0x20000240ul, 0ul);
break;
case 9:
*(uint64_t*)0x200001c0 = 0;
*(uint32_t*)0x200001c8 = 0;
*(uint64_t*)0x200001d0 = 0x20000180;
*(uint64_t*)0x20000180 = 0x20000400;
*(uint32_t*)0x20000400 = 0x34;
*(uint16_t*)0x20000404 = 0x2c;
*(uint16_t*)0x20000406 = 0xd27;
*(uint32_t*)0x20000408 = 0;
*(uint32_t*)0x2000040c = 0;
*(uint8_t*)0x20000410 = 0;
*(uint8_t*)0x20000411 = 0;
*(uint16_t*)0x20000412 = 0;
*(uint32_t*)0x20000414 = r[4];
*(uint16_t*)0x20000418 = 0xffe0;
*(uint16_t*)0x2000041a = 0;
*(uint16_t*)0x2000041c = 0;
*(uint16_t*)0x2000041e = 0;
*(uint16_t*)0x20000420 = 3;
*(uint16_t*)0x20000422 = 1;
*(uint16_t*)0x20000424 = 0xb;
*(uint16_t*)0x20000426 = 1;
memcpy((void*)0x20000428, "flower\000", 7);
*(uint16_t*)0x20000430 = 4;
*(uint16_t*)0x20000432 = 2;
*(uint64_t*)0x20000188 = 0x34;
*(uint64_t*)0x200001d8 = 1;
*(uint64_t*)0x200001e0 = 0;
*(uint64_t*)0x200001e8 = 0;
*(uint32_t*)0x200001f0 = 0;
syscall(__NR_sendmsg, r[3], 0x200001c0ul, 0ul);
break;
case 10:
syscall(__NR_sendmmsg, r[0], 0x20000200ul, 0x10efe10675dec16ul, 0ul);
break;
}
}
int main(void)
{
syscall(__NR_mmap, 0x1ffff000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);
syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 7ul, 0x32ul, -1, 0ul);
syscall(__NR_mmap, 0x21000000ul, 0x1000ul, 0ul, 0x32ul, -1, 0ul);
for (procid = 0; procid < 6; procid++) {
if (fork() == 0) {
loop();
}
}
sleep(1000000);
return 0;
}
|
the_stack_data/173577946.c | #include <stdio.h>
int transeCharactor(char c);
int main(void)
{
char sec_char;
printf("글자를 한 개 입력하세요 : ");
scanf("%c", &sec_char);
transeCharactor(sec_char);
return 0;
}
int transeCharactor(char c)
{
if ((c < 91 && c > 64) || (c > 96 && c < 123))
{
printf("입력한 글자는 = %c\n", c);
printf("아스키 코드로 표현하면 = %d\n", c);
printf("원래 : %c, 변환 후 : %c \n", c, c ^ 0x20);
return 1;
}
return 0;
}
|
the_stack_data/154827009.c | /* { dg-do run } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O2" } */
extern void abort (void);
int test_nested1 (int i)
{
int __attribute__ ((__noinline__, __regparm__(3))) foo(int j, int k, int l)
{
return i + j + k + l;
}
return foo (i, i+1, i+2);
}
int test_nested2 (int i)
{
int x;
int __attribute__ ((__noinline__, __regparm__(3))) foo(int j, int k, int l)
{
return i + j + k + l;
}
x = foo (i+3, i+1, i+2);
if (x != (4*i + 6))
abort ();
return x;
}
int
main ()
{
int i = test_nested1 (3);
if (i != 15)
abort ();
i = test_nested2 (4);
if (i != 22)
abort ();
return 0;
}
|
the_stack_data/50413.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*******************************************************************************
* A -- Defining data structures.
*******************************************************************************/
#define RED 0
#define YELLOW 1
#define BLUE 2
#define GREEN 3
#define EMPTY_STATION -1
#define V 10
typedef struct road {
int dest, road_color;
char station_name[40], dest_name[40];
struct road * next;
} Node, *Graph[V];
char * colorToString(int color);
/*******************************************************************************
* B -- Defining functions.
*******************************************************************************/
void init(Graph g) {
int i;
for(i=0;i<V;i++) g[i] = NULL;
}
void insert(Graph g, char station_name[]) {
int i=0;
while(g[i] != NULL && i < V) i++;
if(i < V) {
g[i] = malloc(sizeof(struct road));
sprintf(g[i] -> station_name, station_name);
g[i] -> dest = EMPTY_STATION;
g[i] -> next = NULL;
}
}
void addTrip(Graph g, int station_x, int station_y, int road_color) {
int i;
struct road * aux, *t;
for (i = 0; i < V; i++) {
if(station_x == i || station_y == i) {
t = malloc(sizeof(struct road));
t -> road_color = road_color;
t -> dest = (station_x == i ? station_y : station_x);
sprintf(t -> station_name, g[i] -> station_name);
if(g[i]->dest == EMPTY_STATION) {
sprintf(t -> dest_name, g[t -> dest] -> station_name);
t -> next = NULL;
}
else {
sprintf(t -> dest_name, g[t -> dest] -> station_name);
t -> next = g[i];
}
g[i] = t;
}
}
}
/*******************************************************************************
* C -- Lines/Roads that lead to a certain station.
*******************************************************************************/
void roadToStation(Graph g, int station) {
struct road * aux;
for(aux = g[station]; aux!= NULL; aux = aux->next)
printf("%s\n",colorToString(aux->road_color));
}
/*******************************************************************************
* D -- Find path bettwen two stations, given a certain line/road.
*******************************************************************************/
int isPath_R(Graph g, int origin, int dest, int visisted[], int road_color) {
int r = 0;
struct road * aux;
visisted[origin] = 1;
if(origin == dest && g[origin] -> road_color == road_color)
r = 1;
for(aux = g[origin]; r == 0 && aux!=NULL; aux=aux->next)
if(visisted[aux->dest] == 0)
r = isPath_R(g, aux->dest, dest, visisted, road_color);
return r;
}
int isPath(Graph g, int station_x, int station_y, int road_color) {
int visisted[V], i;
for(i=0;i<V;visisted[i++]=0);
return isPath_R(g, station_x, station_y, visisted, road_color);
}
int main() {
Graph g;
struct road * aux;
init(g);
insert(g, "Santa Apolonia"); // 0
insert(g, "Rossio"); // 1
insert(g, "Faro"); // 2
addTrip(g, 0, 1, RED);
addTrip(g, 1, 2, YELLOW);
addTrip(g, 0, 2, GREEN);
roadToStation(g, 0);
int i,used=3;
for(i=0;i<used;i++)
for(aux=g[i];aux!=NULL ;aux=aux->next)
printf("Station: %s ; Destination: %s ; Road: %s .\n", aux->station_name, aux->dest_name, colorToString(aux->road_color));
return 0;
}
/*******************************************************************************
* Auxiliar functions.
*******************************************************************************/
char * colorToString(int color) {
char * color_str = malloc(sizeof(char)*40);
switch (color) {
case RED:
sprintf(color_str, "RED");
break;
case YELLOW:
sprintf(color_str, "YELLOW");
break;
case BLUE:
sprintf(color_str, "BLUE");
break;
case GREEN:
sprintf(color_str, "GREEN");
break;
}
return color_str;
}
|
the_stack_data/77355.c | #include <stdio.h>
main()
{
float far,cel;
int a,b,n,i;
scanf("%d",&n);
for(i=0;i<n;i++)
{
scanf("%d%d",&a,&b);
if(0<=a && b<=100)
{
far=((9*a)/5.0)+32;
far=far+b;
cel=((far-32)*5.0)/9.0;
printf("Case %d: %.2f\n",i+1,cel);
}
}
return 0;
}
|
the_stack_data/62637368.c | #include<stdio.h>
#include<math.h>
int get_harris(void);
int get_coach_score(void);
double computer_rank(void);
double bcs_score(int harris, int coach, double comp_rank);
int printing(double bcs);
int main(void){
int harris = 0, coach = 0;
double comp_rank = 0, bcs = 0;
harris = get_harris();
coach = get_coach_score();
comp_rank = computer_rank();
bcs = bcs_score(harris, coach, comp_rank);
printing(bcs);
return(0);
}
int get_harris(void){
int score = 0;
printf("Enter the Harris pole score:");
scanf("%d", &score);
return score;
}
int get_coach_score(void){
int score = 0;
printf("Enter the Harris pole score:");
scanf("%d", &score);
return score;
}
double computer_rank(void){
double score = 0;
printf("Enter the Harris pole score:");
scanf("%lf", &score);
return score;
}
double bcs_score(int harris, int coach, double comp_rank){
double bcs_score = 0;
bcs_score = ( (harris/(double)2850) + (coach/(double)1475) + comp_rank) / (double)3 ;
return bcs_score;
}
int printing(double bcs){
printf("The BCS score of the team is: %lf \n", bcs);
return(0);
} |
the_stack_data/8514.c | // RUN: %clang -### -fpseudo-probe-for-profiling %s 2>&1 | FileCheck %s --check-prefix=YESPROBE
// RUN: %clang -### -fno-pseudo-probe-for-profiling %s 2>&1 | FileCheck %s --check-prefix=NOPROBE
// RUN: %clang -### -fpseudo-probe-for-profiling -fdebug-info-for-profiling %s 2>&1 | FileCheck %s --check-prefix=YESPROBE --check-prefix=YESDEBUG
// RUN: %clang -### -fpseudo-probe-for-profiling -funique-internal-linkage-names %s 2>&1 | FileCheck %s --check-prefix=YESPROBE
// RUN: %clang -### -fpseudo-probe-for-profiling -fno-unique-internal-linkage-names %s 2>&1 | FileCheck %s --check-prefix=NONAME
// YESDEBUG: -fdebug-info-for-profiling
// YESPROBE: -fpseudo-probe-for-profiling
// YESPROBE: -funique-internal-linkage-names
// NOPROBE-NOT: -fpseudo-probe-for-profiling
// NOPROBE-NOT: -funique-internal-linkage-names
// NONAME: -fpseudo-probe-for-profiling
// NONAME-NOT: -funique-internal-linkage-names
|
the_stack_data/691721.c | /* { dg-do compile } */
/* { dg-require-effective-target vect_floatint_cvt } */
unsigned int wlookup2[203];
void
SetSoundVariables (int x)
{
for (x = 1; x < 32; x++)
{
wlookup2[x] = (double) 16 / x;
}
}
|
the_stack_data/131868.c | #include <stdio.h>
/* 関数宣言 */
int main(void);
/* main */
int main(void)
{
/* 変数の定義 */
struct ISBN13
{
char prefix[4];
char group[9];
char publisher[9];
char title[9];
char check_digit[2];
};
struct ISBN13 isbn[2] =
{
{"978", "4", "7580", "7821", "4"},
{"978", "4", "7580", "7843", "6"}
};
/* 表示 */
for (int i = 0; i < 2; i++)
{
/* ISBNを各ブロックごとに「-」をつけて表示 */
printf("%s-%s-%s-%s-%s\n", isbn[i].prefix, isbn[i].group,
isbn[i].publisher, isbn[i].title, isbn[i].check_digit);
}
return 0;
} |
the_stack_data/167330704.c | #include <stdio.h>
#include <stdlib.h>
int main ()
{
char *server_name = getenv ("SERVER_NAME");
if (server_name == NULL)
/* The SERVER_NAME environment variable was not set. Use the default. */
server_name = "server.my-company.com";
printf ("accessing server %s\n", server_name);
/* Access the server here... */
return 0;
}
|
the_stack_data/538040.c | #include <stdio.h>
#include <string.h>
int main(void){
printf("%ld\n", strlen("Eu nao valho nada - Lagum"));
return 0;
} |
the_stack_data/97613.c | #include <stdio.h>
float fahr_to_celcius(float fahr);
int main(){
int lower, upper, step;
lower = 0;
upper = 100;
step = 10;
printf("Fahr | Celsius\n");
for(float fahr = lower; fahr <= upper; fahr += step){
printf("%3.0f %6.1f\n", fahr, fahr_to_celcius(fahr));
}
}
float fahr_to_celcius(float fahr){
return (5.0/9.0) * (fahr - 32.0);
} |
the_stack_data/656521.c | /*Exercise 3 - Repetition
Write a C program to calculate the sum of the numbers from 1 to n.
Where n is a keyboard input.
e.g.
n -> 100
sum = 1+2+3+....+ 99+100 = 5050
n -> 1-
sum = 1+2+3+...+10 = 55 */
#include <stdio.h>
int main() {
int number,i=1,total=0;
printf("Enter Number : ");
scanf("%d",&number);
while(i<=number){
total += i;
i++;
}
printf("%d",total);
return 0;
}
|
the_stack_data/179832198.c | // possible deadlock in do_io_accounting
// https://syzkaller.appspot.com/bug?id=2e84ac2704e45601307d5e6c228082e9f343f062
// status:open
// autogenerated by syzkaller (https://github.com/google/syzkaller)
#define _GNU_SOURCE
#include <endian.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
static long syz_open_procfs(volatile long a0, volatile long a1)
{
char buf[128];
memset(buf, 0, sizeof(buf));
if (a0 == 0) {
snprintf(buf, sizeof(buf), "/proc/self/%s", (char*)a1);
} else if (a0 == -1) {
snprintf(buf, sizeof(buf), "/proc/thread-self/%s", (char*)a1);
} else {
snprintf(buf, sizeof(buf), "/proc/self/task/%d/%s", (int)a0, (char*)a1);
}
int fd = open(buf, O_RDWR);
if (fd == -1)
fd = open(buf, O_RDONLY);
return fd;
}
#ifndef __NR_execveat
#define __NR_execveat 322
#endif
uint64_t r[3] = {0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff};
int main(void)
{
syscall(__NR_mmap, 0x20000000, 0x1000000, 3, 0x32, -1, 0);
intptr_t res = 0;
memcpy((void*)0x20000500, "./file1\000", 8);
syscall(__NR_mkdir, 0x20000500, 0);
memcpy((void*)0x20000340, "./file0\000", 8);
syscall(__NR_mkdir, 0x20000340, 0);
memcpy((void*)0x20000300, "./file0\000", 8);
memcpy((void*)0x20000180, "overlay\000", 8);
memcpy((void*)0x200002c0, "upperdir=./file0,lowerdir=.:file0,workdir=./file1",
49);
syscall(__NR_mount, 0x400000, 0x20000300, 0x20000180, 0, 0x200002c0);
memcpy((void*)0x20000080, "./file0\000", 8);
res = syscall(__NR_open, 0x20000080, 0, 0);
if (res != -1)
r[0] = res;
memcpy((void*)0x20000700, "./file1/../file0\000", 17);
memcpy((void*)0x20000740, "system.posix_acl_access\000", 24);
*(uint32_t*)0x20000e80 = 2;
*(uint16_t*)0x20000e84 = 1;
*(uint16_t*)0x20000e86 = 0;
*(uint32_t*)0x20000e88 = 0;
*(uint16_t*)0x20000e8c = 4;
*(uint16_t*)0x20000e8e = 0;
*(uint32_t*)0x20000e90 = 0;
*(uint16_t*)0x20000e94 = 0x10;
*(uint16_t*)0x20000e96 = 1;
*(uint32_t*)0x20000e98 = 0;
*(uint16_t*)0x20000e9c = 0x20;
*(uint16_t*)0x20000e9e = 7;
*(uint32_t*)0x20000ea0 = 0;
syscall(__NR_setxattr, 0x20000700, 0x20000740, 0x20000e80, 0x24, 0);
memcpy((void*)0x20000000, "./file1\000", 8);
syscall(__NR_execveat, r[0], 0x20000000, 0, 0, 0);
memcpy((void*)0x20000080, "io\000", 3);
res = syz_open_procfs(-1, 0x20000080);
if (res != -1)
r[1] = res;
memcpy((void*)0x20000440, "./bus\000", 6);
res = syscall(__NR_open, 0x20000440, 0x141042, 0);
if (res != -1)
r[2] = res;
syscall(__NR_sendfile, r[2], r[1], 0, 2);
return 0;
}
|
the_stack_data/220457032.c | /* Test generation of nmaclhw on 405. */
/* Origin: Joseph Myers <[email protected]> */
/* { dg-do compile } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O2 -mcpu=405" } */
/* { dg-skip-if "other options override -mcpu=405" { ! powerpc_405_nocache } { "*" } { "" } } */
/* { dg-final { scan-assembler "nmaclhw " } } */
int
f(int a, int b, int c)
{
a -= (short)b * (short)c;
return a;
}
|
the_stack_data/87637767.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()
{
int sm10_l, _x_sm10_l;
int sm10_loop_len, _x_sm10_loop_len;
bool sm10_state, _x_sm10_state;
int sm9_l, _x_sm9_l;
int sm9_loop_len, _x_sm9_loop_len;
bool sm9_state, _x_sm9_state;
int sm8_l, _x_sm8_l;
int sm8_loop_len, _x_sm8_loop_len;
bool sm8_state, _x_sm8_state;
int sm7_l, _x_sm7_l;
int sm7_loop_len, _x_sm7_loop_len;
bool sm7_state, _x_sm7_state;
int sm6_l, _x_sm6_l;
int sm6_loop_len, _x_sm6_loop_len;
bool sm6_state, _x_sm6_state;
int sm5_l, _x_sm5_l;
int sm5_loop_len, _x_sm5_loop_len;
bool sm5_state, _x_sm5_state;
int sm4_l, _x_sm4_l;
int sm4_loop_len, _x_sm4_loop_len;
bool sm4_state, _x_sm4_state;
int sm3_l, _x_sm3_l;
int sm3_loop_len, _x_sm3_loop_len;
bool sm3_state, _x_sm3_state;
int sm2_l, _x_sm2_l;
int sm2_loop_len, _x_sm2_loop_len;
bool sm2_state, _x_sm2_state;
int sm1_l, _x_sm1_l;
int sm1_loop_len, _x_sm1_loop_len;
bool sm1_state, _x_sm1_state;
int sm0_l, _x_sm0_l;
int sm0_loop_len, _x_sm0_loop_len;
bool sm0_state, _x_sm0_state;
int semaphore, _x_semaphore;
bool _J974, _x__J974;
bool _J968, _x__J968;
bool _J961, _x__J961;
bool _J955, _x__J955;
bool _J948, _x__J948;
bool _J942, _x__J942;
bool _J935, _x__J935;
bool _J929, _x__J929;
bool _J922, _x__J922;
bool _J916, _x__J916;
bool _J909, _x__J909;
bool _J903, _x__J903;
bool _J896, _x__J896;
bool _J890, _x__J890;
bool _J883, _x__J883;
bool _J877, _x__J877;
bool _J870, _x__J870;
bool _J864, _x__J864;
bool _J857, _x__J857;
bool _J851, _x__J851;
bool _J845, _x__J845;
bool _J839, _x__J839;
bool _J833, _x__J833;
bool _J827, _x__J827;
bool _EL_U_690, _x__EL_U_690;
int run, _x_run;
bool _EL_U_692, _x__EL_U_692;
bool _EL_U_694, _x__EL_U_694;
bool _EL_U_696, _x__EL_U_696;
bool _EL_U_698, _x__EL_U_698;
bool _EL_U_700, _x__EL_U_700;
bool _EL_U_702, _x__EL_U_702;
bool _EL_U_704, _x__EL_U_704;
bool _EL_U_706, _x__EL_U_706;
bool _EL_U_708, _x__EL_U_708;
bool _EL_U_710, _x__EL_U_710;
bool _EL_U_712, _x__EL_U_712;
bool _EL_U_714, _x__EL_U_714;
bool _EL_U_716, _x__EL_U_716;
bool _EL_U_718, _x__EL_U_718;
bool _EL_U_720, _x__EL_U_720;
bool _EL_U_722, _x__EL_U_722;
bool _EL_U_724, _x__EL_U_724;
bool _EL_U_726, _x__EL_U_726;
bool _EL_U_728, _x__EL_U_728;
bool _EL_U_730, _x__EL_U_730;
bool _EL_U_732, _x__EL_U_732;
bool _EL_U_745, _x__EL_U_745;
bool _EL_U_747, _x__EL_U_747;
int __steps_to_fair = __VERIFIER_nondet_int();
sm10_l = __VERIFIER_nondet_int();
sm10_loop_len = __VERIFIER_nondet_int();
sm10_state = __VERIFIER_nondet_bool();
sm9_l = __VERIFIER_nondet_int();
sm9_loop_len = __VERIFIER_nondet_int();
sm9_state = __VERIFIER_nondet_bool();
sm8_l = __VERIFIER_nondet_int();
sm8_loop_len = __VERIFIER_nondet_int();
sm8_state = __VERIFIER_nondet_bool();
sm7_l = __VERIFIER_nondet_int();
sm7_loop_len = __VERIFIER_nondet_int();
sm7_state = __VERIFIER_nondet_bool();
sm6_l = __VERIFIER_nondet_int();
sm6_loop_len = __VERIFIER_nondet_int();
sm6_state = __VERIFIER_nondet_bool();
sm5_l = __VERIFIER_nondet_int();
sm5_loop_len = __VERIFIER_nondet_int();
sm5_state = __VERIFIER_nondet_bool();
sm4_l = __VERIFIER_nondet_int();
sm4_loop_len = __VERIFIER_nondet_int();
sm4_state = __VERIFIER_nondet_bool();
sm3_l = __VERIFIER_nondet_int();
sm3_loop_len = __VERIFIER_nondet_int();
sm3_state = __VERIFIER_nondet_bool();
sm2_l = __VERIFIER_nondet_int();
sm2_loop_len = __VERIFIER_nondet_int();
sm2_state = __VERIFIER_nondet_bool();
sm1_l = __VERIFIER_nondet_int();
sm1_loop_len = __VERIFIER_nondet_int();
sm1_state = __VERIFIER_nondet_bool();
sm0_l = __VERIFIER_nondet_int();
sm0_loop_len = __VERIFIER_nondet_int();
sm0_state = __VERIFIER_nondet_bool();
semaphore = __VERIFIER_nondet_int();
_J974 = __VERIFIER_nondet_bool();
_J968 = __VERIFIER_nondet_bool();
_J961 = __VERIFIER_nondet_bool();
_J955 = __VERIFIER_nondet_bool();
_J948 = __VERIFIER_nondet_bool();
_J942 = __VERIFIER_nondet_bool();
_J935 = __VERIFIER_nondet_bool();
_J929 = __VERIFIER_nondet_bool();
_J922 = __VERIFIER_nondet_bool();
_J916 = __VERIFIER_nondet_bool();
_J909 = __VERIFIER_nondet_bool();
_J903 = __VERIFIER_nondet_bool();
_J896 = __VERIFIER_nondet_bool();
_J890 = __VERIFIER_nondet_bool();
_J883 = __VERIFIER_nondet_bool();
_J877 = __VERIFIER_nondet_bool();
_J870 = __VERIFIER_nondet_bool();
_J864 = __VERIFIER_nondet_bool();
_J857 = __VERIFIER_nondet_bool();
_J851 = __VERIFIER_nondet_bool();
_J845 = __VERIFIER_nondet_bool();
_J839 = __VERIFIER_nondet_bool();
_J833 = __VERIFIER_nondet_bool();
_J827 = __VERIFIER_nondet_bool();
_EL_U_690 = __VERIFIER_nondet_bool();
run = __VERIFIER_nondet_int();
_EL_U_692 = __VERIFIER_nondet_bool();
_EL_U_694 = __VERIFIER_nondet_bool();
_EL_U_696 = __VERIFIER_nondet_bool();
_EL_U_698 = __VERIFIER_nondet_bool();
_EL_U_700 = __VERIFIER_nondet_bool();
_EL_U_702 = __VERIFIER_nondet_bool();
_EL_U_704 = __VERIFIER_nondet_bool();
_EL_U_706 = __VERIFIER_nondet_bool();
_EL_U_708 = __VERIFIER_nondet_bool();
_EL_U_710 = __VERIFIER_nondet_bool();
_EL_U_712 = __VERIFIER_nondet_bool();
_EL_U_714 = __VERIFIER_nondet_bool();
_EL_U_716 = __VERIFIER_nondet_bool();
_EL_U_718 = __VERIFIER_nondet_bool();
_EL_U_720 = __VERIFIER_nondet_bool();
_EL_U_722 = __VERIFIER_nondet_bool();
_EL_U_724 = __VERIFIER_nondet_bool();
_EL_U_726 = __VERIFIER_nondet_bool();
_EL_U_728 = __VERIFIER_nondet_bool();
_EL_U_730 = __VERIFIER_nondet_bool();
_EL_U_732 = __VERIFIER_nondet_bool();
_EL_U_745 = __VERIFIER_nondet_bool();
_EL_U_747 = __VERIFIER_nondet_bool();
bool __ok = (((((((((((((semaphore == 0) && (sm0_state && (( !(sm0_loop_len <= 0)) && (sm0_l == 0)))) && (sm1_state && (( !(sm1_loop_len <= 0)) && (sm1_l == 0)))) && (sm2_state && (( !(sm2_loop_len <= 0)) && (sm2_l == 0)))) && (sm3_state && (( !(sm3_loop_len <= 0)) && (sm3_l == 0)))) && (sm4_state && (( !(sm4_loop_len <= 0)) && (sm4_l == 0)))) && (sm5_state && (( !(sm5_loop_len <= 0)) && (sm5_l == 0)))) && (sm6_state && (( !(sm6_loop_len <= 0)) && (sm6_l == 0)))) && (sm7_state && (( !(sm7_loop_len <= 0)) && (sm7_l == 0)))) && (sm8_state && (( !(sm8_loop_len <= 0)) && (sm8_l == 0)))) && (sm9_state && (( !(sm9_loop_len <= 0)) && (sm9_l == 0)))) && (sm10_state && (( !(sm10_loop_len <= 0)) && (sm10_l == 0)))) && ((((((((((((((((((((((((( !((_EL_U_747 || ( !((semaphore == 0) || _EL_U_745))) || ( !((((((((((( !(_EL_U_732 || ( !((run == 0) || _EL_U_730)))) && ( !(_EL_U_728 || ( !((run == 1) || _EL_U_726))))) && ( !(_EL_U_724 || ( !((run == 2) || _EL_U_722))))) && ( !(_EL_U_720 || ( !((run == 3) || _EL_U_718))))) && ( !(_EL_U_716 || ( !((run == 4) || _EL_U_714))))) && ( !(_EL_U_712 || ( !((run == 5) || _EL_U_710))))) && ( !(_EL_U_708 || ( !((run == 6) || _EL_U_706))))) && ( !(_EL_U_704 || ( !((run == 7) || _EL_U_702))))) && ( !(_EL_U_700 || ( !((run == 8) || _EL_U_698))))) && ( !(_EL_U_696 || ( !((run == 9) || _EL_U_694))))) && ( !(_EL_U_692 || ( !((run == 10) || _EL_U_690)))))))) && ( !_J827)) && ( !_J833)) && ( !_J839)) && ( !_J845)) && ( !_J851)) && ( !_J857)) && ( !_J864)) && ( !_J870)) && ( !_J877)) && ( !_J883)) && ( !_J890)) && ( !_J896)) && ( !_J903)) && ( !_J909)) && ( !_J916)) && ( !_J922)) && ( !_J929)) && ( !_J935)) && ( !_J942)) && ( !_J948)) && ( !_J955)) && ( !_J961)) && ( !_J968)) && ( !_J974)));
while (__steps_to_fair >= 0 && __ok) {
if ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) {
__steps_to_fair = __VERIFIER_nondet_int();
} else {
__steps_to_fair--;
}
_x_sm10_l = __VERIFIER_nondet_int();
_x_sm10_loop_len = __VERIFIER_nondet_int();
_x_sm10_state = __VERIFIER_nondet_bool();
_x_sm9_l = __VERIFIER_nondet_int();
_x_sm9_loop_len = __VERIFIER_nondet_int();
_x_sm9_state = __VERIFIER_nondet_bool();
_x_sm8_l = __VERIFIER_nondet_int();
_x_sm8_loop_len = __VERIFIER_nondet_int();
_x_sm8_state = __VERIFIER_nondet_bool();
_x_sm7_l = __VERIFIER_nondet_int();
_x_sm7_loop_len = __VERIFIER_nondet_int();
_x_sm7_state = __VERIFIER_nondet_bool();
_x_sm6_l = __VERIFIER_nondet_int();
_x_sm6_loop_len = __VERIFIER_nondet_int();
_x_sm6_state = __VERIFIER_nondet_bool();
_x_sm5_l = __VERIFIER_nondet_int();
_x_sm5_loop_len = __VERIFIER_nondet_int();
_x_sm5_state = __VERIFIER_nondet_bool();
_x_sm4_l = __VERIFIER_nondet_int();
_x_sm4_loop_len = __VERIFIER_nondet_int();
_x_sm4_state = __VERIFIER_nondet_bool();
_x_sm3_l = __VERIFIER_nondet_int();
_x_sm3_loop_len = __VERIFIER_nondet_int();
_x_sm3_state = __VERIFIER_nondet_bool();
_x_sm2_l = __VERIFIER_nondet_int();
_x_sm2_loop_len = __VERIFIER_nondet_int();
_x_sm2_state = __VERIFIER_nondet_bool();
_x_sm1_l = __VERIFIER_nondet_int();
_x_sm1_loop_len = __VERIFIER_nondet_int();
_x_sm1_state = __VERIFIER_nondet_bool();
_x_sm0_l = __VERIFIER_nondet_int();
_x_sm0_loop_len = __VERIFIER_nondet_int();
_x_sm0_state = __VERIFIER_nondet_bool();
_x_semaphore = __VERIFIER_nondet_int();
_x__J974 = __VERIFIER_nondet_bool();
_x__J968 = __VERIFIER_nondet_bool();
_x__J961 = __VERIFIER_nondet_bool();
_x__J955 = __VERIFIER_nondet_bool();
_x__J948 = __VERIFIER_nondet_bool();
_x__J942 = __VERIFIER_nondet_bool();
_x__J935 = __VERIFIER_nondet_bool();
_x__J929 = __VERIFIER_nondet_bool();
_x__J922 = __VERIFIER_nondet_bool();
_x__J916 = __VERIFIER_nondet_bool();
_x__J909 = __VERIFIER_nondet_bool();
_x__J903 = __VERIFIER_nondet_bool();
_x__J896 = __VERIFIER_nondet_bool();
_x__J890 = __VERIFIER_nondet_bool();
_x__J883 = __VERIFIER_nondet_bool();
_x__J877 = __VERIFIER_nondet_bool();
_x__J870 = __VERIFIER_nondet_bool();
_x__J864 = __VERIFIER_nondet_bool();
_x__J857 = __VERIFIER_nondet_bool();
_x__J851 = __VERIFIER_nondet_bool();
_x__J845 = __VERIFIER_nondet_bool();
_x__J839 = __VERIFIER_nondet_bool();
_x__J833 = __VERIFIER_nondet_bool();
_x__J827 = __VERIFIER_nondet_bool();
_x__EL_U_690 = __VERIFIER_nondet_bool();
_x_run = __VERIFIER_nondet_int();
_x__EL_U_692 = __VERIFIER_nondet_bool();
_x__EL_U_694 = __VERIFIER_nondet_bool();
_x__EL_U_696 = __VERIFIER_nondet_bool();
_x__EL_U_698 = __VERIFIER_nondet_bool();
_x__EL_U_700 = __VERIFIER_nondet_bool();
_x__EL_U_702 = __VERIFIER_nondet_bool();
_x__EL_U_704 = __VERIFIER_nondet_bool();
_x__EL_U_706 = __VERIFIER_nondet_bool();
_x__EL_U_708 = __VERIFIER_nondet_bool();
_x__EL_U_710 = __VERIFIER_nondet_bool();
_x__EL_U_712 = __VERIFIER_nondet_bool();
_x__EL_U_714 = __VERIFIER_nondet_bool();
_x__EL_U_716 = __VERIFIER_nondet_bool();
_x__EL_U_718 = __VERIFIER_nondet_bool();
_x__EL_U_720 = __VERIFIER_nondet_bool();
_x__EL_U_722 = __VERIFIER_nondet_bool();
_x__EL_U_724 = __VERIFIER_nondet_bool();
_x__EL_U_726 = __VERIFIER_nondet_bool();
_x__EL_U_728 = __VERIFIER_nondet_bool();
_x__EL_U_730 = __VERIFIER_nondet_bool();
_x__EL_U_732 = __VERIFIER_nondet_bool();
_x__EL_U_745 = __VERIFIER_nondet_bool();
_x__EL_U_747 = __VERIFIER_nondet_bool();
__ok = ((((((((((((((_x_semaphore == 0) || ( !(semaphore == 11))) && ((((((((((sm0_l == 0) && ( !(_x_sm0_loop_len <= sm0_loop_len))) || ( !(_x_sm0_state && ( !sm0_state)))) && ((_x_sm0_state && ( !sm0_state)) || (sm0_loop_len == _x_sm0_loop_len))) && (( !sm0_state) || ((sm0_l + (-1 * _x_sm0_l)) == 1))) && (_x_sm0_state || ( !(sm0_state && ( !(sm0_loop_len <= sm0_l)))))) && (_x_sm0_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm0_state))))) && ((sm0_state == _x_sm0_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm0_state))) && ( !(run == 0)))))) && ((semaphore == _x_semaphore) || ( !((run == 0) && (sm0_state == _x_sm0_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm0_state) && ((run == 0) && sm0_state)))))) && ((((((((((sm1_l == 0) && ( !(_x_sm1_loop_len <= sm1_loop_len))) || ( !(_x_sm1_state && ( !sm1_state)))) && ((_x_sm1_state && ( !sm1_state)) || (sm1_loop_len == _x_sm1_loop_len))) && (( !sm1_state) || ((sm1_l + (-1 * _x_sm1_l)) == 1))) && (_x_sm1_state || ( !(sm1_state && ( !(sm1_loop_len <= sm1_l)))))) && (_x_sm1_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm1_state))))) && ((sm1_state == _x_sm1_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm1_state))) && ( !(run == 1)))))) && ((semaphore == _x_semaphore) || ( !((run == 1) && (sm1_state == _x_sm1_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm1_state) && ((run == 1) && sm1_state)))))) && ((((((((((sm2_l == 0) && ( !(_x_sm2_loop_len <= sm2_loop_len))) || ( !(_x_sm2_state && ( !sm2_state)))) && ((_x_sm2_state && ( !sm2_state)) || (sm2_loop_len == _x_sm2_loop_len))) && (( !sm2_state) || ((sm2_l + (-1 * _x_sm2_l)) == 1))) && (_x_sm2_state || ( !(sm2_state && ( !(sm2_loop_len <= sm2_l)))))) && (_x_sm2_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm2_state))))) && ((sm2_state == _x_sm2_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm2_state))) && ( !(run == 2)))))) && ((semaphore == _x_semaphore) || ( !((run == 2) && (sm2_state == _x_sm2_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm2_state) && ((run == 2) && sm2_state)))))) && ((((((((((sm3_l == 0) && ( !(_x_sm3_loop_len <= sm3_loop_len))) || ( !(_x_sm3_state && ( !sm3_state)))) && ((_x_sm3_state && ( !sm3_state)) || (sm3_loop_len == _x_sm3_loop_len))) && (( !sm3_state) || ((sm3_l + (-1 * _x_sm3_l)) == 1))) && (_x_sm3_state || ( !(sm3_state && ( !(sm3_loop_len <= sm3_l)))))) && (_x_sm3_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm3_state))))) && ((sm3_state == _x_sm3_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm3_state))) && ( !(run == 3)))))) && ((semaphore == _x_semaphore) || ( !((run == 3) && (sm3_state == _x_sm3_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm3_state) && ((run == 3) && sm3_state)))))) && ((((((((((sm4_l == 0) && ( !(_x_sm4_loop_len <= sm4_loop_len))) || ( !(_x_sm4_state && ( !sm4_state)))) && ((_x_sm4_state && ( !sm4_state)) || (sm4_loop_len == _x_sm4_loop_len))) && (( !sm4_state) || ((sm4_l + (-1 * _x_sm4_l)) == 1))) && (_x_sm4_state || ( !(sm4_state && ( !(sm4_loop_len <= sm4_l)))))) && (_x_sm4_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm4_state))))) && ((sm4_state == _x_sm4_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm4_state))) && ( !(run == 4)))))) && ((semaphore == _x_semaphore) || ( !((run == 4) && (sm4_state == _x_sm4_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm4_state) && ((run == 4) && sm4_state)))))) && ((((((((((sm5_l == 0) && ( !(_x_sm5_loop_len <= sm5_loop_len))) || ( !(_x_sm5_state && ( !sm5_state)))) && ((_x_sm5_state && ( !sm5_state)) || (sm5_loop_len == _x_sm5_loop_len))) && (( !sm5_state) || ((sm5_l + (-1 * _x_sm5_l)) == 1))) && (_x_sm5_state || ( !(sm5_state && ( !(sm5_loop_len <= sm5_l)))))) && (_x_sm5_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm5_state))))) && ((sm5_state == _x_sm5_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm5_state))) && ( !(run == 5)))))) && ((semaphore == _x_semaphore) || ( !((run == 5) && (sm5_state == _x_sm5_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm5_state) && ((run == 5) && sm5_state)))))) && ((((((((((sm6_l == 0) && ( !(_x_sm6_loop_len <= sm6_loop_len))) || ( !(_x_sm6_state && ( !sm6_state)))) && ((_x_sm6_state && ( !sm6_state)) || (sm6_loop_len == _x_sm6_loop_len))) && (( !sm6_state) || ((sm6_l + (-1 * _x_sm6_l)) == 1))) && (_x_sm6_state || ( !(sm6_state && ( !(sm6_loop_len <= sm6_l)))))) && (_x_sm6_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm6_state))))) && ((sm6_state == _x_sm6_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm6_state))) && ( !(run == 6)))))) && ((semaphore == _x_semaphore) || ( !((run == 6) && (sm6_state == _x_sm6_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm6_state) && ((run == 6) && sm6_state)))))) && ((((((((((sm7_l == 0) && ( !(_x_sm7_loop_len <= sm7_loop_len))) || ( !(_x_sm7_state && ( !sm7_state)))) && ((_x_sm7_state && ( !sm7_state)) || (sm7_loop_len == _x_sm7_loop_len))) && (( !sm7_state) || ((sm7_l + (-1 * _x_sm7_l)) == 1))) && (_x_sm7_state || ( !(sm7_state && ( !(sm7_loop_len <= sm7_l)))))) && (_x_sm7_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm7_state))))) && ((sm7_state == _x_sm7_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm7_state))) && ( !(run == 7)))))) && ((semaphore == _x_semaphore) || ( !((run == 7) && (sm7_state == _x_sm7_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm7_state) && ((run == 7) && sm7_state)))))) && ((((((((((sm8_l == 0) && ( !(_x_sm8_loop_len <= sm8_loop_len))) || ( !(_x_sm8_state && ( !sm8_state)))) && ((_x_sm8_state && ( !sm8_state)) || (sm8_loop_len == _x_sm8_loop_len))) && (( !sm8_state) || ((sm8_l + (-1 * _x_sm8_l)) == 1))) && (_x_sm8_state || ( !(sm8_state && ( !(sm8_loop_len <= sm8_l)))))) && (_x_sm8_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm8_state))))) && ((sm8_state == _x_sm8_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm8_state))) && ( !(run == 8)))))) && ((semaphore == _x_semaphore) || ( !((run == 8) && (sm8_state == _x_sm8_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm8_state) && ((run == 8) && sm8_state)))))) && ((((((((((sm9_l == 0) && ( !(_x_sm9_loop_len <= sm9_loop_len))) || ( !(_x_sm9_state && ( !sm9_state)))) && ((_x_sm9_state && ( !sm9_state)) || (sm9_loop_len == _x_sm9_loop_len))) && (( !sm9_state) || ((sm9_l + (-1 * _x_sm9_l)) == 1))) && (_x_sm9_state || ( !(sm9_state && ( !(sm9_loop_len <= sm9_l)))))) && (_x_sm9_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm9_state))))) && ((sm9_state == _x_sm9_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm9_state))) && ( !(run == 9)))))) && ((semaphore == _x_semaphore) || ( !((run == 9) && (sm9_state == _x_sm9_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm9_state) && ((run == 9) && sm9_state)))))) && ((((((((((sm10_l == 0) && ( !(_x_sm10_loop_len <= sm10_loop_len))) || ( !(_x_sm10_state && ( !sm10_state)))) && ((_x_sm10_state && ( !sm10_state)) || (sm10_loop_len == _x_sm10_loop_len))) && (( !sm10_state) || ((sm10_l + (-1 * _x_sm10_l)) == 1))) && (_x_sm10_state || ( !(sm10_state && ( !(sm10_loop_len <= sm10_l)))))) && (_x_sm10_state || ( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm10_state))))) && ((sm10_state == _x_sm10_state) || ( !(( !(((semaphore == 11) && (_x_semaphore == 0)) && ( !sm10_state))) && ( !(run == 10)))))) && ((semaphore == _x_semaphore) || ( !((run == 10) && (sm10_state == _x_sm10_state))))) && (((semaphore + (-1 * _x_semaphore)) == -1) || ( !(( !_x_sm10_state) && ((run == 10) && sm10_state)))))) && ((((((((((((((((((((((((((_EL_U_692 == (_x__EL_U_692 || ( !(_x__EL_U_690 || (_x_run == 10))))) && ((_EL_U_690 == (_x__EL_U_690 || (_x_run == 10))) && ((_EL_U_696 == (_x__EL_U_696 || ( !(_x__EL_U_694 || (_x_run == 9))))) && ((_EL_U_694 == (_x__EL_U_694 || (_x_run == 9))) && ((_EL_U_700 == (_x__EL_U_700 || ( !(_x__EL_U_698 || (_x_run == 8))))) && ((_EL_U_698 == (_x__EL_U_698 || (_x_run == 8))) && ((_EL_U_704 == (_x__EL_U_704 || ( !(_x__EL_U_702 || (_x_run == 7))))) && ((_EL_U_702 == (_x__EL_U_702 || (_x_run == 7))) && ((_EL_U_708 == (_x__EL_U_708 || ( !(_x__EL_U_706 || (_x_run == 6))))) && ((_EL_U_706 == (_x__EL_U_706 || (_x_run == 6))) && ((_EL_U_712 == (_x__EL_U_712 || ( !(_x__EL_U_710 || (_x_run == 5))))) && ((_EL_U_710 == (_x__EL_U_710 || (_x_run == 5))) && ((_EL_U_716 == (_x__EL_U_716 || ( !(_x__EL_U_714 || (_x_run == 4))))) && ((_EL_U_714 == (_x__EL_U_714 || (_x_run == 4))) && ((_EL_U_720 == (_x__EL_U_720 || ( !(_x__EL_U_718 || (_x_run == 3))))) && ((_EL_U_718 == (_x__EL_U_718 || (_x_run == 3))) && ((_EL_U_724 == (_x__EL_U_724 || ( !(_x__EL_U_722 || (_x_run == 2))))) && ((_EL_U_722 == (_x__EL_U_722 || (_x_run == 2))) && ((_EL_U_728 == (_x__EL_U_728 || ( !(_x__EL_U_726 || (_x_run == 1))))) && ((_EL_U_726 == (_x__EL_U_726 || (_x_run == 1))) && ((_EL_U_732 == (_x__EL_U_732 || ( !(_x__EL_U_730 || (_x_run == 0))))) && ((_EL_U_730 == (_x__EL_U_730 || (_x_run == 0))) && ((_EL_U_745 == ((_x_semaphore == 0) || _x__EL_U_745)) && (_EL_U_747 == (_x__EL_U_747 || ( !((_x_semaphore == 0) || _x__EL_U_745))))))))))))))))))))))))))) && (_x__J827 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((semaphore == 0) || ( !((semaphore == 0) || _EL_U_745))) || _J827))))) && (_x__J833 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((semaphore == 0) || _EL_U_745)) || ( !(_EL_U_747 || ( !((semaphore == 0) || _EL_U_745))))) || _J833))))) && (_x__J839 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 0) || ( !((run == 0) || _EL_U_730))) || _J839))))) && (_x__J845 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 0) || _EL_U_730)) || ( !(_EL_U_732 || ( !((run == 0) || _EL_U_730))))) || _J845))))) && (_x__J851 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 1) || ( !((run == 1) || _EL_U_726))) || _J851))))) && (_x__J857 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 1) || _EL_U_726)) || ( !(_EL_U_728 || ( !((run == 1) || _EL_U_726))))) || _J857))))) && (_x__J864 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 2) || ( !((run == 2) || _EL_U_722))) || _J864))))) && (_x__J870 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 2) || _EL_U_722)) || ( !(_EL_U_724 || ( !((run == 2) || _EL_U_722))))) || _J870))))) && (_x__J877 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 3) || ( !((run == 3) || _EL_U_718))) || _J877))))) && (_x__J883 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 3) || _EL_U_718)) || ( !(_EL_U_720 || ( !((run == 3) || _EL_U_718))))) || _J883))))) && (_x__J890 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 4) || ( !((run == 4) || _EL_U_714))) || _J890))))) && (_x__J896 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 4) || _EL_U_714)) || ( !(_EL_U_716 || ( !((run == 4) || _EL_U_714))))) || _J896))))) && (_x__J903 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 5) || ( !((run == 5) || _EL_U_710))) || _J903))))) && (_x__J909 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 5) || _EL_U_710)) || ( !(_EL_U_712 || ( !((run == 5) || _EL_U_710))))) || _J909))))) && (_x__J916 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 6) || ( !((run == 6) || _EL_U_706))) || _J916))))) && (_x__J922 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 6) || _EL_U_706)) || ( !(_EL_U_708 || ( !((run == 6) || _EL_U_706))))) || _J922))))) && (_x__J929 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 7) || ( !((run == 7) || _EL_U_702))) || _J929))))) && (_x__J935 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 7) || _EL_U_702)) || ( !(_EL_U_704 || ( !((run == 7) || _EL_U_702))))) || _J935))))) && (_x__J942 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 8) || ( !((run == 8) || _EL_U_698))) || _J942))))) && (_x__J948 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 8) || _EL_U_698)) || ( !(_EL_U_700 || ( !((run == 8) || _EL_U_698))))) || _J948))))) && (_x__J955 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 9) || ( !((run == 9) || _EL_U_694))) || _J955))))) && (_x__J961 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 9) || _EL_U_694)) || ( !(_EL_U_696 || ( !((run == 9) || _EL_U_694))))) || _J961))))) && (_x__J968 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || (((run == 10) || ( !((run == 10) || _EL_U_690))) || _J968))))) && (_x__J974 == (( !(((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974)) && ((((((((((((((((((((((((_J827 && _J833) && _J839) && _J845) && _J851) && _J857) && _J864) && _J870) && _J877) && _J883) && _J890) && _J896) && _J903) && _J909) && _J916) && _J922) && _J929) && _J935) && _J942) && _J948) && _J955) && _J961) && _J968) && _J974) || ((( !((run == 10) || _EL_U_690)) || ( !(_EL_U_692 || ( !((run == 10) || _EL_U_690))))) || _J974))))));
sm10_l = _x_sm10_l;
sm10_loop_len = _x_sm10_loop_len;
sm10_state = _x_sm10_state;
sm9_l = _x_sm9_l;
sm9_loop_len = _x_sm9_loop_len;
sm9_state = _x_sm9_state;
sm8_l = _x_sm8_l;
sm8_loop_len = _x_sm8_loop_len;
sm8_state = _x_sm8_state;
sm7_l = _x_sm7_l;
sm7_loop_len = _x_sm7_loop_len;
sm7_state = _x_sm7_state;
sm6_l = _x_sm6_l;
sm6_loop_len = _x_sm6_loop_len;
sm6_state = _x_sm6_state;
sm5_l = _x_sm5_l;
sm5_loop_len = _x_sm5_loop_len;
sm5_state = _x_sm5_state;
sm4_l = _x_sm4_l;
sm4_loop_len = _x_sm4_loop_len;
sm4_state = _x_sm4_state;
sm3_l = _x_sm3_l;
sm3_loop_len = _x_sm3_loop_len;
sm3_state = _x_sm3_state;
sm2_l = _x_sm2_l;
sm2_loop_len = _x_sm2_loop_len;
sm2_state = _x_sm2_state;
sm1_l = _x_sm1_l;
sm1_loop_len = _x_sm1_loop_len;
sm1_state = _x_sm1_state;
sm0_l = _x_sm0_l;
sm0_loop_len = _x_sm0_loop_len;
sm0_state = _x_sm0_state;
semaphore = _x_semaphore;
_J974 = _x__J974;
_J968 = _x__J968;
_J961 = _x__J961;
_J955 = _x__J955;
_J948 = _x__J948;
_J942 = _x__J942;
_J935 = _x__J935;
_J929 = _x__J929;
_J922 = _x__J922;
_J916 = _x__J916;
_J909 = _x__J909;
_J903 = _x__J903;
_J896 = _x__J896;
_J890 = _x__J890;
_J883 = _x__J883;
_J877 = _x__J877;
_J870 = _x__J870;
_J864 = _x__J864;
_J857 = _x__J857;
_J851 = _x__J851;
_J845 = _x__J845;
_J839 = _x__J839;
_J833 = _x__J833;
_J827 = _x__J827;
_EL_U_690 = _x__EL_U_690;
run = _x_run;
_EL_U_692 = _x__EL_U_692;
_EL_U_694 = _x__EL_U_694;
_EL_U_696 = _x__EL_U_696;
_EL_U_698 = _x__EL_U_698;
_EL_U_700 = _x__EL_U_700;
_EL_U_702 = _x__EL_U_702;
_EL_U_704 = _x__EL_U_704;
_EL_U_706 = _x__EL_U_706;
_EL_U_708 = _x__EL_U_708;
_EL_U_710 = _x__EL_U_710;
_EL_U_712 = _x__EL_U_712;
_EL_U_714 = _x__EL_U_714;
_EL_U_716 = _x__EL_U_716;
_EL_U_718 = _x__EL_U_718;
_EL_U_720 = _x__EL_U_720;
_EL_U_722 = _x__EL_U_722;
_EL_U_724 = _x__EL_U_724;
_EL_U_726 = _x__EL_U_726;
_EL_U_728 = _x__EL_U_728;
_EL_U_730 = _x__EL_U_730;
_EL_U_732 = _x__EL_U_732;
_EL_U_745 = _x__EL_U_745;
_EL_U_747 = _x__EL_U_747;
}
}
|
the_stack_data/52940.c | /*
* Small test program to verify simulated mmap behaviour.
*
* When running qemu-linux-user with the -p flag, you may need to tell
* this test program about the pagesize because getpagesize() will not reflect
* the -p choice. Simply pass one argument beeing the pagesize.
*
* Copyright (c) 2007 AXIS Communications AB
* Written by Edgar E. Iglesias.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* 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/>.
*/
/*
* Oracle GPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle elects to use only
* the General Public License version 2 (GPLv2) at this time for any software where
* a choice of GPL license versions is made available with the language indicating
* that GPLv2 or any later version may be used, or where a choice of which version
* of the GPL is applied is otherwise unspecified.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
#define D(x)
#define fail_unless(x) \
do \
{ \
if (!(x)) { \
fprintf (stderr, "FAILED at %s:%d\n", __FILE__, __LINE__); \
exit (EXIT_FAILURE); \
} \
} while (0);
unsigned char *dummybuf;
static unsigned int pagesize;
static unsigned int pagemask;
int test_fd;
size_t test_fsize;
void check_aligned_anonymous_unfixed_mmaps(void)
{
void *p1;
void *p2;
void *p3;
void *p4;
void *p5;
uintptr_t p;
int i;
fprintf (stderr, "%s", __func__);
for (i = 0; i < 0x1fff; i++)
{
size_t len;
len = pagesize + (pagesize * i & 7);
p1 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
p2 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
p3 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
p4 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
p5 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
fail_unless (p1 != MAP_FAILED);
fail_unless (p2 != MAP_FAILED);
fail_unless (p3 != MAP_FAILED);
fail_unless (p4 != MAP_FAILED);
fail_unless (p5 != MAP_FAILED);
p = (uintptr_t) p1;
D(printf ("p=%x\n", p));
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p2;
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p3;
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p4;
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p5;
fail_unless ((p & pagemask) == 0);
/* Make sure we can read from the entire area. */
memcpy (dummybuf, p1, pagesize);
memcpy (dummybuf, p2, pagesize);
memcpy (dummybuf, p3, pagesize);
memcpy (dummybuf, p4, pagesize);
memcpy (dummybuf, p5, pagesize);
munmap (p1, len);
munmap (p2, len);
munmap (p3, len);
munmap (p4, len);
munmap (p5, len);
}
fprintf (stderr, " passed\n");
}
void check_large_anonymous_unfixed_mmap(void)
{
void *p1;
uintptr_t p;
size_t len;
fprintf (stderr, "%s", __func__);
len = 0x02000000;
p1 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
fail_unless (p1 != MAP_FAILED);
p = (uintptr_t) p1;
fail_unless ((p & pagemask) == 0);
/* Make sure we can read from the entire area. */
memcpy (dummybuf, p1, pagesize);
munmap (p1, len);
fprintf (stderr, " passed\n");
}
void check_aligned_anonymous_unfixed_colliding_mmaps(void)
{
char *p1;
char *p2;
char *p3;
uintptr_t p;
int i;
fprintf (stderr, "%s", __func__);
for (i = 0; i < 0x2fff; i++)
{
int nlen;
p1 = mmap(NULL, pagesize, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
fail_unless (p1 != MAP_FAILED);
p = (uintptr_t) p1;
fail_unless ((p & pagemask) == 0);
memcpy (dummybuf, p1, pagesize);
p2 = mmap(NULL, pagesize, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
fail_unless (p2 != MAP_FAILED);
p = (uintptr_t) p2;
fail_unless ((p & pagemask) == 0);
memcpy (dummybuf, p2, pagesize);
munmap (p1, pagesize);
nlen = pagesize * 8;
p3 = mmap(NULL, nlen, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
/* Check if the mmaped areas collide. */
if (p3 < p2
&& (p3 + nlen) > p2)
fail_unless (0);
memcpy (dummybuf, p3, pagesize);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
fail_unless (p3 != MAP_FAILED);
p = (uintptr_t) p3;
fail_unless ((p & pagemask) == 0);
munmap (p2, pagesize);
munmap (p3, nlen);
}
fprintf (stderr, " passed\n");
}
void check_aligned_anonymous_fixed_mmaps(void)
{
char *addr;
void *p1;
uintptr_t p;
int i;
/* Find a suitable address to start with. */
addr = mmap(NULL, pagesize * 40, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
fprintf (stderr, "%s addr=%p", __func__, addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 40; i++)
{
/* Create submaps within our unfixed map. */
p1 = mmap(addr, pagesize, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED,
-1, 0);
/* Make sure we get pages aligned with the pagesize.
The target expects this. */
p = (uintptr_t) p1;
fail_unless (p1 == addr);
fail_unless ((p & pagemask) == 0);
memcpy (dummybuf, p1, pagesize);
munmap (p1, pagesize);
addr += pagesize;
}
fprintf (stderr, " passed\n");
}
void check_aligned_anonymous_fixed_mmaps_collide_with_host(void)
{
char *addr;
void *p1;
uintptr_t p;
int i;
/* Find a suitable address to start with. Right were the x86 hosts
stack is. */
addr = ((void *)0x80000000);
fprintf (stderr, "%s addr=%p", __func__, addr);
fprintf (stderr, "FIXME: QEMU fails to track pages used by the host.");
for (i = 0; i < 20; i++)
{
/* Create submaps within our unfixed map. */
p1 = mmap(addr, pagesize, PROT_READ | PROT_WRITE,
MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED,
-1, 0);
/* Make sure we get pages aligned with the pagesize.
The target expects this. */
p = (uintptr_t) p1;
fail_unless (p1 == addr);
fail_unless ((p & pagemask) == 0);
memcpy (p1, dummybuf, pagesize);
munmap (p1, pagesize);
addr += pagesize;
}
fprintf (stderr, " passed\n");
}
void check_file_unfixed_mmaps(void)
{
unsigned int *p1, *p2, *p3;
uintptr_t p;
int i;
fprintf (stderr, "%s", __func__);
for (i = 0; i < 0x10; i++)
{
size_t len;
len = pagesize;
p1 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE,
test_fd, 0);
p2 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE,
test_fd, pagesize);
p3 = mmap(NULL, len, PROT_READ,
MAP_PRIVATE,
test_fd, pagesize * 2);
fail_unless (p1 != MAP_FAILED);
fail_unless (p2 != MAP_FAILED);
fail_unless (p3 != MAP_FAILED);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
p = (uintptr_t) p1;
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p2;
fail_unless ((p & pagemask) == 0);
p = (uintptr_t) p3;
fail_unless ((p & pagemask) == 0);
/* Verify that the file maps was made correctly. */
D(printf ("p1=%d p2=%d p3=%d\n", *p1, *p2, *p3));
fail_unless (*p1 == 0);
fail_unless (*p2 == (pagesize / sizeof *p2));
fail_unless (*p3 == ((pagesize * 2) / sizeof *p3));
memcpy (dummybuf, p1, pagesize);
memcpy (dummybuf, p2, pagesize);
memcpy (dummybuf, p3, pagesize);
munmap (p1, len);
munmap (p2, len);
munmap (p3, len);
}
fprintf (stderr, " passed\n");
}
void check_file_unfixed_eof_mmaps(void)
{
char *cp;
unsigned int *p1;
uintptr_t p;
int i;
fprintf (stderr, "%s", __func__);
for (i = 0; i < 0x10; i++)
{
p1 = mmap(NULL, pagesize, PROT_READ,
MAP_PRIVATE,
test_fd,
(test_fsize - sizeof *p1) & ~pagemask);
fail_unless (p1 != MAP_FAILED);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
p = (uintptr_t) p1;
fail_unless ((p & pagemask) == 0);
/* Verify that the file maps was made correctly. */
fail_unless (p1[(test_fsize & pagemask) / sizeof *p1 - 1]
== ((test_fsize - sizeof *p1) / sizeof *p1));
/* Verify that the end of page is accessable and zeroed. */
cp = (void *) p1;
fail_unless (cp[pagesize - 4] == 0);
munmap (p1, pagesize);
}
fprintf (stderr, " passed\n");
}
void check_file_fixed_eof_mmaps(void)
{
char *addr;
char *cp;
unsigned int *p1;
uintptr_t p;
int i;
/* Find a suitable address to start with. */
addr = mmap(NULL, pagesize * 44, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
fprintf (stderr, "%s addr=%p", __func__, (void *)addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 0x10; i++)
{
/* Create submaps within our unfixed map. */
p1 = mmap(addr, pagesize, PROT_READ,
MAP_PRIVATE | MAP_FIXED,
test_fd,
(test_fsize - sizeof *p1) & ~pagemask);
fail_unless (p1 != MAP_FAILED);
/* Make sure we get pages aligned with the pagesize. The
target expects this. */
p = (uintptr_t) p1;
fail_unless ((p & pagemask) == 0);
/* Verify that the file maps was made correctly. */
fail_unless (p1[(test_fsize & pagemask) / sizeof *p1 - 1]
== ((test_fsize - sizeof *p1) / sizeof *p1));
/* Verify that the end of page is accessable and zeroed. */
cp = (void *)p1;
fail_unless (cp[pagesize - 4] == 0);
munmap (p1, pagesize);
addr += pagesize;
}
fprintf (stderr, " passed\n");
}
void check_file_fixed_mmaps(void)
{
unsigned char *addr;
unsigned int *p1, *p2, *p3, *p4;
int i;
/* Find a suitable address to start with. */
addr = mmap(NULL, pagesize * 40 * 4, PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS,
-1, 0);
fprintf (stderr, "%s addr=%p", __func__, (void *)addr);
fail_unless (addr != MAP_FAILED);
for (i = 0; i < 40; i++)
{
p1 = mmap(addr, pagesize, PROT_READ,
MAP_PRIVATE | MAP_FIXED,
test_fd, 0);
p2 = mmap(addr + pagesize, pagesize, PROT_READ,
MAP_PRIVATE | MAP_FIXED,
test_fd, pagesize);
p3 = mmap(addr + pagesize * 2, pagesize, PROT_READ,
MAP_PRIVATE | MAP_FIXED,
test_fd, pagesize * 2);
p4 = mmap(addr + pagesize * 3, pagesize, PROT_READ,
MAP_PRIVATE | MAP_FIXED,
test_fd, pagesize * 3);
/* Make sure we get pages aligned with the pagesize.
The target expects this. */
fail_unless (p1 == (void *)addr);
fail_unless (p2 == (void *)(addr + pagesize));
fail_unless (p3 == (void *)(addr + pagesize * 2));
fail_unless (p4 == (void *)(addr + pagesize * 3));
/* Verify that the file maps was made correctly. */
fail_unless (*p1 == 0);
fail_unless (*p2 == (pagesize / sizeof *p2));
fail_unless (*p3 == ((pagesize * 2) / sizeof *p3));
fail_unless (*p4 == ((pagesize * 3) / sizeof *p4));
memcpy (dummybuf, p1, pagesize);
memcpy (dummybuf, p2, pagesize);
memcpy (dummybuf, p3, pagesize);
memcpy (dummybuf, p4, pagesize);
munmap (p1, pagesize);
munmap (p2, pagesize);
munmap (p3, pagesize);
munmap (p4, pagesize);
addr += pagesize * 4;
}
fprintf (stderr, " passed\n");
}
int main(int argc, char **argv)
{
char tempname[] = "/tmp/.cmmapXXXXXX";
unsigned int i;
/* Trust the first argument, otherwise probe the system for our
pagesize. */
if (argc > 1)
pagesize = strtoul(argv[1], NULL, 0);
else
pagesize = sysconf(_SC_PAGESIZE);
/* Assume pagesize is a power of two. */
pagemask = pagesize - 1;
dummybuf = malloc (pagesize);
printf ("pagesize=%u pagemask=%x\n", pagesize, pagemask);
test_fd = mkstemp(tempname);
unlink(tempname);
/* Fill the file with int's counting from zero and up. */
for (i = 0; i < (pagesize * 4) / sizeof i; i++)
write (test_fd, &i, sizeof i);
/* Append a few extra writes to make the file end at non
page boundary. */
write (test_fd, &i, sizeof i); i++;
write (test_fd, &i, sizeof i); i++;
write (test_fd, &i, sizeof i); i++;
test_fsize = lseek(test_fd, 0, SEEK_CUR);
/* Run the tests. */
check_aligned_anonymous_unfixed_mmaps();
check_aligned_anonymous_unfixed_colliding_mmaps();
check_aligned_anonymous_fixed_mmaps();
check_file_unfixed_mmaps();
check_file_fixed_mmaps();
check_file_fixed_eof_mmaps();
check_file_unfixed_eof_mmaps();
/* Fails at the moment. */
/* check_aligned_anonymous_fixed_mmaps_collide_with_host(); */
return EXIT_SUCCESS;
}
|
the_stack_data/6388517.c | #include <stdio.h>
long long Large = 5LL << 48;
int main(int argc, char *argv[]) {
// Make sure large constants compare correctly.
if (((Large >> 48) & 7LL) == 5LL) {
printf("Works.\n");
} else {
printf("Doesn\'t.\n");
}
return 0;
}
|
the_stack_data/132953202.c | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define max 500
int t[max];
void shifttable(char p[])
{
int i,j,m;
m=strlen(p);
for(i=0;i<max;i++)
t[i]=strlen(p);
for(j=0;j<m-1;j++)
t[p[j]]=m-j-1;
}
int horsepool(char s[],char p[])
{
int i,j,k,m,n;
n=strlen(s);
m=strlen(p);
i=m-1;
while(i<n)
{
k=0;
while(k<m && p[m-1-k]==s[i-k])
k++;
if(k==m)
return (i-m+1);
else
i+=t[s[i]];
}
return -1;
}
void main()
{
char s[100],p[100];
int pos;
printf("Enter string: ");
gets(s);
printf("Enter pattern: ");
gets(p);
shifttable(p);
pos=horsepool(s,p);
if(pos>=0)
printf("\nThe pattern was found at position %d", pos+1);
else
printf("\nPattern not found");
}
|
the_stack_data/64200361.c | #include <stdio.h>
// https://www.codewars.com/kata/59cf6087aeb284909d00009c
char a[4][7] = {"Common", "Point", "Boost", "Better"};
char (*b[4])[7] = {a+3, a+1, a, a+2};
char (*(*c())[4])[7] { return &b; }
char (**d())[7] { return c()[1] - 3; }
char buf[256];
char *pointer_monster(char (**(*f)())[7])
{
int len;
len = sprintf(buf, "%s", *f()[0]);
len += sprintf(buf + len, "%s ", *((**f)()-1)[0]+4);
len += sprintf(buf + len, "%s", (*f())[0]-4);
len += sprintf(buf + len, "%s", f()[1][2]+3);
len += sprintf(buf + len, "%s", *((**f)()-1)[0]+4);
return buf;
} |
the_stack_data/1045517.c | #include<stdio.h>
#include<math.h>
int evaluate_polynomial(int arr[], int limit, int x)
{
int sum = 0, count;
for(count = limit; count >= 0; count--)
{
sum = sum + arr[count]*pow(x, count);
}
return sum;
}
int main(){
int array[30], degree, x_val, count, result;
printf("\nEnter the Degree of Polynomial:\t");
scanf("%d", °ree);
printf("\nEnter the Co - Efficients:\n");
for(count = degree; count >= 0; count--)
{
printf("\nCo - Efficient of A[%d]: \t", count);
scanf("%d", &array[count]);
}
printf("\nThe Polynomial:\n\n");
for(count = degree; count >= 0; count--)
{
if(array[count] != 0)
{
printf("%dx^%d + ", array[count], count);
}
}
printf("%d", array[count]);
/*
printf("\n\nEnter the Value of X:\t");
scanf("%d", &x_val);
result = evaluate_polynomial(array, degree, x_val);
printf("\nEvaluation of Polynomial:\t%d\n", result);
*/
int final_result[101];
int i;
for(i=0 ; i<100 ; i++){
final_result[i] = evaluate_polynomial(array,degree,i);
printf("\nEvaluation of Polynomial:\t%d\n", final_result[i]);
}
int j ;
int flag = 0;
FILE *fp;
fp = fopen("test.txt" , "w");
for( i = 101; i >= 1; --i){
for(j=0;j <= 101;++j){
if( i <= final_result[j] && flag == 0){
putc('*' , fp);
flag = 1;
}
else{
putc(' ' , fp);
}
}
putc('\n' , fp);
flag = 0;
}
fclose(fp);
return 0;
} |
the_stack_data/150141628.c | #include <stdio.h>
#include <string.h>
int main() {
char message[15];
int count, i;
strcpy(message, "Hello, world!");
printf("Repeat how many times? ");
scanf("%d", &count);
for(i=0; i < count; i++)
printf("%3d - %s\n", i, message);
}
|
the_stack_data/1222003.c | #define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward declarations */
typedef struct TYPE_10__ TYPE_5__ ;
typedef struct TYPE_9__ TYPE_4__ ;
typedef struct TYPE_8__ TYPE_3__ ;
typedef struct TYPE_7__ TYPE_2__ ;
typedef struct TYPE_6__ TYPE_1__ ;
/* Type definitions */
typedef int /*<<< orphan*/ zdev_t ;
typedef int /*<<< orphan*/ zbuf_t ;
typedef size_t u8_t ;
typedef int u32_t ;
typedef size_t u16_t ;
typedef int /*<<< orphan*/ s8_t ;
typedef int /*<<< orphan*/ rsp ;
struct TYPE_7__ {scalar_t__ powerSaveMode; size_t staPSDataCount; int ibssAtimTimer; int atimWindow; TYPE_1__* oppositeInfo; int /*<<< orphan*/ ** staPSDataQueue; } ;
struct TYPE_9__ {size_t* bcmcTail; size_t* bcmcHead; TYPE_3__* staTable; int /*<<< orphan*/ *** bcmcArray; } ;
struct TYPE_10__ {scalar_t__ wlanMode; scalar_t__ CurrentDtimCount; TYPE_2__ sta; TYPE_4__ ap; } ;
struct TYPE_8__ {int /*<<< orphan*/ rcCell; } ;
struct TYPE_6__ {int /*<<< orphan*/ rcCell; } ;
/* Variables and functions */
int ZM_BCMC_ARRAY_SIZE ;
int ZM_BIT_15 ;
int /*<<< orphan*/ ZM_EXTERNAL_ALLOC_BUF ;
scalar_t__ ZM_MODE_AP ;
scalar_t__ ZM_MODE_IBSS ;
scalar_t__ ZM_STA_PS_NONE ;
TYPE_5__* wd ;
size_t zfApFindSta (int /*<<< orphan*/ *,size_t*) ;
int /*<<< orphan*/ zfApSendBeacon (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ zfApSendFailure (int /*<<< orphan*/ *,size_t*) ;
scalar_t__ zfPhyCtrlToRate (int) ;
int /*<<< orphan*/ zfPowerSavingMgrPreTBTTInterrupt (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ zfRateCtrlTxFailEvent (int /*<<< orphan*/ *,int /*<<< orphan*/ *,size_t,int) ;
int /*<<< orphan*/ zfRateCtrlTxSuccessEvent (int /*<<< orphan*/ *,int /*<<< orphan*/ *,scalar_t__) ;
int /*<<< orphan*/ zfStaFindOppositeByMACAddr (int /*<<< orphan*/ *,size_t*,size_t*) ;
int /*<<< orphan*/ zfStaSendBeacon (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ zfTxSendEth (int /*<<< orphan*/ *,int /*<<< orphan*/ *,int /*<<< orphan*/ ,int /*<<< orphan*/ ,size_t) ;
int /*<<< orphan*/ zmw_declare_for_critical_section () ;
int /*<<< orphan*/ zmw_enter_critical_section (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ zmw_get_wlan_dev (int /*<<< orphan*/ *) ;
int /*<<< orphan*/ zmw_leave_critical_section (int /*<<< orphan*/ *) ;
void zfCoreEvent(zdev_t* dev, u16_t event, u8_t* rsp)
{
u16_t i;
zbuf_t* psBuf;
u8_t moreData;
u8_t vap = 0;
u8_t peerIdx;
s8_t res;
zmw_get_wlan_dev(dev);
zmw_declare_for_critical_section();
if (event == 0) //Beacon Event
{
if ( wd->wlanMode == ZM_MODE_AP )
{
zfApSendBeacon(dev);
if (wd->CurrentDtimCount == 0)
{
/* TODO : Send queued broadcast frames at BC/MC event */
do
{
psBuf = NULL;
moreData = 0;
zmw_enter_critical_section(dev);
if (wd->ap.bcmcTail[vap] != wd->ap.bcmcHead[vap])
{
//zm_msg0_mm(ZM_LV_0, "Send BCMC frames");
psBuf = wd->ap.bcmcArray[vap][wd->ap.bcmcHead[vap]];
wd->ap.bcmcHead[vap] = (wd->ap.bcmcHead[vap] + 1)
& (ZM_BCMC_ARRAY_SIZE - 1);
if (wd->ap.bcmcTail[vap] != wd->ap.bcmcHead[vap])
{
moreData = 0x20;
}
}
zmw_leave_critical_section(dev);
if (psBuf != NULL)
{
/* TODO : config moreData bit */
zfTxSendEth(dev, psBuf, 0, ZM_EXTERNAL_ALLOC_BUF,
moreData);
}
} while(psBuf != NULL);
}
}
else
{
/* STA mode */
if ( wd->sta.powerSaveMode > ZM_STA_PS_NONE )
{
/* send queued packets */
for(i=0; i<wd->sta.staPSDataCount; i++)
{
zfTxSendEth(dev, wd->sta.staPSDataQueue[i], 0,
ZM_EXTERNAL_ALLOC_BUF, 0);
}
wd->sta.staPSDataCount = 0;
}
if ( wd->wlanMode == ZM_MODE_IBSS )
{
zfStaSendBeacon(dev);
wd->sta.ibssAtimTimer = ZM_BIT_15 | wd->sta.atimWindow;
}
zfPowerSavingMgrPreTBTTInterrupt(dev);
}
} //if (event == 0) //Beacon Event
else if (event == 1) //Retry completed event
{
u32_t retryRate;
retryRate = (u32_t)(rsp[6]) + (((u32_t)(rsp[7]))<<8)
+ (((u32_t)(rsp[8]))<<16) + (((u32_t)(rsp[9]))<<24);
/* Degrade Tx Rate */
if (wd->wlanMode == ZM_MODE_AP)
{
zmw_enter_critical_section(dev);
if ((i=zfApFindSta(dev, (u16_t*)rsp)) != 0xffff)
{
zfRateCtrlTxFailEvent(dev, &wd->ap.staTable[i].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
}
else
{
zmw_enter_critical_section(dev);
res = zfStaFindOppositeByMACAddr(dev, (u16_t*)rsp, &peerIdx);
if ( res == 0 )
{
zfRateCtrlTxFailEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
}
} //else if (event == 1) //Retry completed event
else if (event == 2) //Tx Fail event
{
u32_t retryRate;
retryRate = (u32_t)(rsp[6]) + (((u32_t)(rsp[7]))<<8)
+ (((u32_t)(rsp[8]))<<16) + (((u32_t)(rsp[9]))<<24);
/* Degrade Tx Rate */
if (wd->wlanMode == ZM_MODE_AP)
{
zmw_enter_critical_section(dev);
if ((i=zfApFindSta(dev, (u16_t*)rsp)) != 0xffff)
{
zfRateCtrlTxFailEvent(dev, &wd->ap.staTable[i].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
zfApSendFailure(dev, rsp);
}
else
{
zmw_enter_critical_section(dev);
res = zfStaFindOppositeByMACAddr(dev, (u16_t*)rsp, &peerIdx);
if ( res == 0 )
{
zfRateCtrlTxFailEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, 0,(u32_t)zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
}
} //else if (event == 2) //Tx Fail event
else if (event == 3) //Tx Comp event
{
u32_t retryRate;
retryRate = (u32_t)(rsp[6]) + (((u32_t)(rsp[7]))<<8)
+ (((u32_t)(rsp[8]))<<16) + (((u32_t)(rsp[9]))<<24);
/* TODO : Tx completed, used for rate control probing */
if (wd->wlanMode == ZM_MODE_AP)
{
zmw_enter_critical_section(dev);
if ((i=zfApFindSta(dev, (u16_t*)rsp)) != 0xffff)
{
zfRateCtrlTxSuccessEvent(dev, &wd->ap.staTable[i].rcCell, zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
}
else
{
zmw_enter_critical_section(dev);
res = zfStaFindOppositeByMACAddr(dev, (u16_t*)rsp, &peerIdx);
if ( res == 0 )
{
zfRateCtrlTxSuccessEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, zfPhyCtrlToRate(retryRate));
}
zmw_leave_critical_section(dev);
}
} //else if (event == 3) //Tx Comp event
else if (event == 4) //BA failed count
{
u32_t fail;
u32_t rate;
peerIdx = 0;
fail=((u32_t*)rsp)[0] & 0xFFFF;
rate=((u32_t*)rsp)[0] >> 16;
if (rate > 15) {
rate = (rate & 0xF) + 12 + 2;
}
else {
rate = rate + 12;
}
zmw_enter_critical_section(dev);
zfRateCtrlTxFailEvent(dev, &wd->sta.oppositeInfo[peerIdx].rcCell, (u8_t)rate, fail);
zmw_leave_critical_section(dev);
}
} |
the_stack_data/59512163.c | #include <stdio.h>
#if !defined(__SEMIHOST) && !defined(__NOSYS)
/* Read from a file. -------------------------------------------------------- */
__attribute__((weak))
size_t __read( int file, char *buf, size_t size )
{
(void) file;
(void) buf;
(void) size;
return 0;
}
/* Write to a file. --------------------------------------------------------- */
__attribute__((weak))
size_t __write( int file, const char *buf, size_t size )
{
if (file == -1) return -1U; // flush
(void) buf;
return size;
}
/* -------------------------------------------------------------------------- */
#endif // !__SEMIHOST && !__NOSYS
|
the_stack_data/917398.c | /* Example of Parsing Arguments with getopt.
Copyright (C) 1991-2015 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
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, if not, see <http://www.gnu.org/licenses/>.
*/
/*@group*/
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int
main (int argc, char **argv)
{
int aflag = 0;
int bflag = 0;
char *cvalue = NULL;
int index;
int c;
opterr = 0;
/*@end group*/
/*@group*/
while ((c = getopt (argc, argv, "abc:")) != -1)
switch (c)
{
case 'a':
aflag = 1;
break;
case 'b':
bflag = 1;
break;
case 'c':
cvalue = optarg;
break;
case '?':
if (optopt == 'c')
fprintf (stderr, "Option -%c requires an argument.\n", optopt);
else if (isprint (optopt))
fprintf (stderr, "Unknown option `-%c'.\n", optopt);
else
fprintf (stderr,
"Unknown option character `\\x%x'.\n",
optopt);
return 1;
default:
abort ();
}
/*@end group*/
/*@group*/
printf ("aflag = %d, bflag = %d, cvalue = %s\n",
aflag, bflag, cvalue);
for (index = optind; index < argc; index++)
printf ("Non-option argument %s\n", argv[index]);
return 0;
}
/*@end group*/
|
the_stack_data/45450418.c | #include <stdio.h>
void app_main() {
puts("howdy");
} |
the_stack_data/86076346.c | /* ftruncate emulations that work on some System V's.
This file is in the public domain. */
#if HAVE_CONFIG_H
# include <config.h>
#endif
#include <sys/types.h>
#include <fcntl.h>
#ifdef F_CHSIZE
int
ftruncate (int fd, off_t length)
{
return fcntl (fd, F_CHSIZE, length);
}
#else /* not F_CHSIZE */
# ifdef F_FREESP
/* By William Kucharski <[email protected]>. */
# include <sys/stat.h>
# include <errno.h>
# if HAVE_UNISTD_H
# include <unistd.h>
# endif
int
ftruncate (int fd, off_t length)
{
struct flock fl;
struct stat filebuf;
if (fstat (fd, &filebuf) < 0)
return -1;
if (filebuf.st_size < length)
{
/* Extend file length. */
if (lseek (fd, (length - 1), SEEK_SET) < 0)
return -1;
/* Write a "0" byte. */
if (write (fd, "", 1) != 1)
return -1;
}
else
{
/* Truncate length. */
fl.l_whence = 0;
fl.l_len = 0;
fl.l_start = length;
fl.l_type = F_WRLCK; /* write lock on file space */
/* This relies on the *undocumented* F_FREESP argument to fcntl,
which truncates the file so that it ends at the position
indicated by fl.l_start. Will minor miracles never cease? */
if (fcntl (fd, F_FREESP, &fl) < 0)
return -1;
}
return 0;
}
# else /* not F_CHSIZE nor F_FREESP */
# if HAVE_CHSIZE
int
ftruncate (int fd, off_t length)
{
return chsize (fd, length);
}
# else /* not F_CHSIZE nor F_FREESP nor HAVE_CHSIZE */
# include <errno.h>
# ifndef errno
extern int errno;
# endif
int
ftruncate (int fd, off_t length)
{
errno = EIO;
return -1;
}
# endif /* not HAVE_CHSIZE */
# endif /* not F_FREESP */
#endif /* not F_CHSIZE */
|
the_stack_data/89199764.c | /*
** devlistmgr.c
**
** Code to handle a dynamic list of device names for devices that publish a
** potentially unbounded list of devices (scsi_dsk, scsi_cd, scsi_raw, etc)
**
** 02/07/99 - swetland
**
*/
/*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <stdio.h>
#include <malloc.h>
typedef struct _devname
{
struct _devname *next;
char name[1];
} devname;
static int devcount = 0;
static char **devnames = NULL;
static devname *devlist = NULL;
static void free_devnames(void)
{
devname *d,*n;
if(devnames) free(devnames);
devnames = NULL;
for(d = devlist; d; d=n){
n = d->next;
free(d);
}
devlist = NULL;
devcount = 0;
}
static void add_devname(char *name)
{
devname *d = (devname *) malloc(strlen(name) + sizeof(devname));
if(d){
strcpy(d->name,name);
devcount++;
d->next = devlist;
devlist = d;
}
}
static const char **get_devnames(void)
{
if(devcount && !devnames){
if((devnames = (char **) malloc(sizeof(char*) * (devcount+1)))){
int i;
devname *d;
for(d=devlist,i=0;i<devcount;i++){
devnames[i] = d->name;
d = d->next;
}
devnames[i] = NULL;
}
}
return (const char **) devnames;
}
|
the_stack_data/11073989.c | #include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main(int argc, const char **argv)
{
FILE *fp;
char name[32];
char feedback[32];
setvbuf(stdin,0,2,0);
setvbuf(stdout,0,2,0);
printf("Enter name : ");
fgets(name, 16, stdin);
puts("Hello");
printf(name, 16);
printf("Enter feedback on the machine : ");
fgets(feedback, 256, stdin);
fp = fopen("/home/debian/feedback.txt", "a");
fprintf(fp, name);
fputs(feedback, fp);
fclose(fp);
return 0;
}
|
the_stack_data/181394542.c | //*****************************************************************************
//
// startup_ccs.c - Startup code for use with TI's Code Composer Studio.
//
// Copyright (c) 2009-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 10636 of the RDK-IDM-SBC Firmware Package.
//
//*****************************************************************************
//*****************************************************************************
//
// Forward declaration of the default fault handlers.
//
//*****************************************************************************
void ResetISR(void);
static void NmiSR(void);
static void FaultISR(void);
static void IntDefaultHandler(void);
//*****************************************************************************
//
// External declaration for the reset handler that is to be called when the
// processor is started
//
//*****************************************************************************
extern void _c_int00(void);
//*****************************************************************************
//
// Linker variable that marks the top of the stack.
//
//*****************************************************************************
extern unsigned long __STACK_TOP;
//*****************************************************************************
//
// External declarations for the interrupt handlers used by the application.
//
//*****************************************************************************
extern void TouchScreenIntHandler(void);
extern void lwIPEthernetIntHandler(void);
extern void SysTickIntHandler(void);
extern void UARTStdioIntHandler(void);
extern void USB0HostIntHandler(void);
//*****************************************************************************
//
// The vector table. Note that the proper constructs must be placed on this to
// ensure that it ends up at physical address 0x0000.0000 or at the start of
// the program if located at a start address other than 0.
//
//*****************************************************************************
#pragma DATA_SECTION(g_pfnVectors, ".intvecs")
void (* const g_pfnVectors[])(void) =
{
(void (*)(void))((unsigned long)&__STACK_TOP),
// The initial stack pointer
ResetISR, // The reset handler
NmiSR, // The NMI handler
FaultISR, // The hard fault handler
IntDefaultHandler, // The MPU fault handler
IntDefaultHandler, // The bus fault handler
IntDefaultHandler, // The usage fault handler
0, // Reserved
0, // Reserved
0, // Reserved
0, // Reserved
IntDefaultHandler, // SVCall handler
IntDefaultHandler, // Debug monitor handler
0, // Reserved
IntDefaultHandler, // The PendSV handler
SysTickIntHandler, // The SysTick handler
IntDefaultHandler, // GPIO Port A
IntDefaultHandler, // GPIO Port B
IntDefaultHandler, // GPIO Port C
IntDefaultHandler, // GPIO Port D
IntDefaultHandler, // GPIO Port E
UARTStdioIntHandler, // UART0 Rx and Tx
IntDefaultHandler, // UART1 Rx and Tx
IntDefaultHandler, // SSI0 Rx and Tx
IntDefaultHandler, // I2C0 Master and Slave
IntDefaultHandler, // PWM Fault
IntDefaultHandler, // PWM Generator 0
IntDefaultHandler, // PWM Generator 1
IntDefaultHandler, // PWM Generator 2
IntDefaultHandler, // Quadrature Encoder 0
IntDefaultHandler, // ADC Sequence 0
IntDefaultHandler, // ADC Sequence 1
IntDefaultHandler, // ADC Sequence 2
TouchScreenIntHandler, // ADC Sequence 3
IntDefaultHandler, // Watchdog timer
IntDefaultHandler, // Timer 0 subtimer A
IntDefaultHandler, // Timer 0 subtimer B
IntDefaultHandler, // Timer 1 subtimer A
IntDefaultHandler, // Timer 1 subtimer B
IntDefaultHandler, // Timer 2 subtimer A
IntDefaultHandler, // Timer 2 subtimer B
IntDefaultHandler, // Analog Comparator 0
IntDefaultHandler, // Analog Comparator 1
IntDefaultHandler, // Analog Comparator 2
IntDefaultHandler, // System Control (PLL, OSC, BO)
IntDefaultHandler, // FLASH Control
IntDefaultHandler, // GPIO Port F
IntDefaultHandler, // GPIO Port G
IntDefaultHandler, // GPIO Port H
IntDefaultHandler, // UART2 Rx and Tx
IntDefaultHandler, // SSI1 Rx and Tx
IntDefaultHandler, // Timer 3 subtimer A
IntDefaultHandler, // Timer 3 subtimer B
IntDefaultHandler, // I2C1 Master and Slave
IntDefaultHandler, // Quadrature Encoder 1
IntDefaultHandler, // CAN0
IntDefaultHandler, // CAN1
IntDefaultHandler, // CAN2
lwIPEthernetIntHandler, // Ethernet
IntDefaultHandler, // Hibernate
USB0HostIntHandler, // USB0
IntDefaultHandler, // PWM Generator 3
IntDefaultHandler, // uDMA Software Transfer
IntDefaultHandler, // uDMA Error
IntDefaultHandler, // ADC1 Sequence 0
IntDefaultHandler, // ADC1 Sequence 1
IntDefaultHandler, // ADC1 Sequence 2
IntDefaultHandler, // ADC1 Sequence 3
IntDefaultHandler, // I2S0
IntDefaultHandler, // External Bus Interface 0
IntDefaultHandler // GPIO Port J
};
//*****************************************************************************
//
// This is the code that gets called when the processor first starts execution
// following a reset event. Only the absolutely necessary set is performed,
// after which the application supplied entry() routine is called. Any fancy
// actions (such as making decisions based on the reset cause register, and
// resetting the bits in that register) are left solely in the hands of the
// application.
//
//*****************************************************************************
void
ResetISR(void)
{
//
// Jump to the CCS C initialization routine.
//
__asm(" .global _c_int00\n"
" b.w _c_int00");
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives a NMI. This
// simply enters an infinite loop, preserving the system state for examination
// by a debugger.
//
//*****************************************************************************
static void
NmiSR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives a fault
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//
//*****************************************************************************
static void
FaultISR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives an unexpected
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//
//*****************************************************************************
static void
IntDefaultHandler(void)
{
//
// Go into an infinite loop.
//
while(1)
{
}
}
|
the_stack_data/88614.c |
#include <pthread.h>
pthread_t threadid;
void(*savedf2)(void);
void* cb_thread(void* arg);
void cb_setup(void(*f1)(void), void(*f2)(void)) {
(*f1)();
savedf2 = f2;
pthread_create(&threadid, NULL, cb_thread, (void*)NULL);
pthread_join(threadid, NULL);
pthread_exit((void*)0);
}
void* cb_thread(void* arg) {
(*savedf2)();
return (void*)0;
}
|
the_stack_data/409774.c | #include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <string.h>
#define sfd socket(AF_INET,SOCK_STREAM,0)
int backit(){
int pid,sid;
close (0);close (1);close(2);
if ((pid=fork())<0){exit(1);}if((pid=fork())>0){exit(0);}
if ((sid=setsid())<0){exit(1);}
}
int filesend(char filename[], int afd, char ip[], int portn);
int main(int argc, char *argv[]){
backit();
strcat(argv[1], "\0");
filesend(argv[1],sfd, argv[2], atoi(argv[3]));
return 0;
}
int ch(int var, char msg[]){
if (var == -1){printf ("%s\n",msg);exit(1);}
}
int filesend(char filenam[],int afd, char ip[], int portn){
struct sockaddr_in adr={ .sin_port=htons(portn), .sin_family=AF_INET };
inet_pton(AF_INET,ip, &adr.sin_addr.s_addr);
int vctl=sizeof(struct sockaddr_in);
int cnt;
while (1){;cnt=connect(afd,(struct sockaddr*)&adr,sizeof(adr));if (cnt==-1){sleep(20);}else{break;}}
while (1){
char filename[256];
bzero(filename, sizeof(filename));
recv(afd,filename,sizeof(filename),0);
strcat(filename,"\0");
int sfile=open(filename, O_RDONLY);
char signal[10];
if (sfile == -1){
send(afd,"-11",3,0);
bzero(&sfile,sizeof(sfile));
continue;
}
else{
strcat(filename,"\0");
struct stat ft;
stat(filename,&ft);
char ftssize[15]; sprintf(ftssize, "%d",ft.st_size);
int ss=ft.st_size;
char data[ss];
read (sfile, data, sizeof(data));
sleep(1);
int snd= send(afd,ftssize,strlen(ftssize),0);
sleep(1);
int snd2=send(afd,&data, sizeof(data), 0);
close (sfile);
bzero(filename,sizeof(filename));
bzero(data,sizeof(data));
bzero(ftssize,sizeof(ftssize));
sleep(2);
}
}
}
|
the_stack_data/61075652.c | int test_bit_parity(unsigned int v)
{
int parity = 0;
while (v)
{
parity ^= (v & 1);
v >>= 1;
}
return parity;
}
int main()
{
int r0, r1;
r0=test_bit_parity(699050);
assert(r0==0);
r1=test_bit_parity(699050+1);
assert(r1==1);
}
|
the_stack_data/481870.c | //
// DO NOT EDIT -- auto-generated file
//
// This file is generated by the vfrcompiler utility
//
unsigned char RamDiskHiiBin[] = {
// ARRAY LENGTH
0x47, 0x01, 0x00, 0x00,
// PACKAGE HEADER
0x43, 0x01, 0x00, 0x02,
// PACKAGE DATA
0x0E, 0xA7, 0x5F, 0x71, 0x46, 0x2A, 0x81, 0x35, 0x55, 0x4A, 0x8E, 0x73, 0x2B, 0x76, 0x9A, 0xAA,
0x30, 0xC5, 0x02, 0x00, 0x03, 0x00, 0x01, 0x71, 0x99, 0x03, 0x93, 0x45, 0x85, 0x04, 0x4B, 0xB4,
0x5E, 0x32, 0xEB, 0x83, 0x26, 0x04, 0x0E, 0x5C, 0x06, 0x00, 0x00, 0x00, 0x00, 0x5C, 0x06, 0x00,
0x00, 0x01, 0x00, 0x01, 0x86, 0x00, 0x10, 0x04, 0x00, 0x05, 0x91, 0x11, 0x00, 0x12, 0x00, 0x04,
0x20, 0x00, 0x00, 0xFF, 0xFF, 0x04, 0x10, 0x00, 0x01, 0x00, 0x09, 0x07, 0x13, 0x00, 0x10, 0x00,
0x00, 0x09, 0x07, 0x14, 0x00, 0x00, 0x00, 0x01, 0x29, 0x02, 0x02, 0x87, 0x05, 0x00, 0x00, 0x00,
0x00, 0x29, 0x02, 0x0F, 0x0F, 0x08, 0x00, 0x09, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0xFF, 0x00,
0x00, 0x20, 0x0F, 0x0F, 0x0A, 0x00, 0x0B, 0x00, 0x01, 0x10, 0x00, 0x00, 0xFF, 0xFF, 0x04, 0x00,
0x10, 0x02, 0x87, 0x05, 0x00, 0x00, 0x00, 0x00, 0x29, 0x02, 0x02, 0x87, 0x06, 0x00, 0x00, 0x00,
0x00, 0x29, 0x02, 0x5F, 0x15, 0x35, 0x17, 0x0B, 0x0F, 0xA0, 0x87, 0x93, 0x41, 0xB2, 0x66, 0x53,
0x8C, 0x38, 0xAF, 0x48, 0xCE, 0x00, 0x03, 0x10, 0x5F, 0x15, 0x35, 0x17, 0x0B, 0x0F, 0xA0, 0x87,
0x93, 0x41, 0xB2, 0x66, 0x53, 0x8C, 0x38, 0xAF, 0x48, 0xCE, 0x00, 0x04, 0x10, 0x02, 0x87, 0x05,
0x00, 0x00, 0x00, 0x00, 0x29, 0x02, 0x0C, 0x8F, 0x0D, 0x00, 0x0C, 0x00, 0x02, 0x10, 0x00, 0x00,
0xFF, 0xFF, 0x04, 0x00, 0x00, 0x29, 0x02, 0x29, 0x02, 0x01, 0x86, 0x00, 0x20, 0x0E, 0x00, 0x02,
0x87, 0x05, 0x00, 0x00, 0x00, 0x00, 0x29, 0x02, 0x07, 0xA6, 0x0F, 0x00, 0x10, 0x00, 0x01, 0x20,
0x00, 0x00, 0xFF, 0xFF, 0x04, 0x23, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x02,
0x02, 0x87, 0x05, 0x00, 0x00, 0x00, 0x00, 0x29, 0x02, 0x0C, 0x8F, 0x16, 0x00, 0x15, 0x00, 0x02,
0x20, 0x00, 0x00, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x29, 0x02, 0x0C, 0x8F, 0x18, 0x00, 0x17, 0x00,
0x03, 0x20, 0x00, 0x00, 0xFF, 0xFF, 0x04, 0x00, 0x00, 0x29, 0x02, 0x29, 0x02, 0x29, 0x02
};
|
the_stack_data/767215.c | #include<stdio.h>
#include<stdlib.h>
typedef struct Node {
int value;
struct Node *next;
} Node;
Node* insert_ordered_node(Node* list, int new_node_value);
int main(void) {
Node *list, *aux;
list = NULL;
list = insert_ordered_node(list, 3);
list = insert_ordered_node(list, 6);
list = insert_ordered_node(list, 2);
list = insert_ordered_node(list, 8);
list = insert_ordered_node(list, 9);
list = insert_ordered_node(list, 1);
aux = list;
while(aux != NULL){
printf("%d ",aux->value);
aux=aux->next;
}
printf("\n");
return 0;
}
Node* insert_ordered_node(Node *list, int new_node_value) {
Node *aux, *ant;
/**
* lista vazia
**/
if(list == NULL) {
list = (Node *)malloc(sizeof(Node));
list->value = new_node_value;
list->next = NULL;
return list;
}
aux = list;
/**
* Valor deve ser inserido no começo da lista
**/
if(new_node_value < list->value) {
list = (Node *)malloc(sizeof(Node));
list->value = new_node_value;
list->next = aux;
return list;
}
while(new_node_value > aux->value && aux->next != NULL) {
ant = aux;
aux = aux->next;
}
/**
* Valor deve ser inserido no final da lista
**/
if(new_node_value > aux->value) {
aux->next = (Node *)malloc(sizeof(Node));
aux = aux->next;
aux->value = new_node_value;
aux->next = NULL;
return list;
}
/**
* Valor deve ser inserido no meio da lista
**/
ant->next=(Node *)malloc(sizeof(Node));
ant=ant->next;
ant->value=new_node_value;
ant->next=aux;
aux=NULL;
ant=aux;
return list;
}
|
the_stack_data/175142557.c | #include<stdio.h>
int main()
{
int i,j,arr[100][100],grt,sum,value=-9999;
for(int i=0;i<6;i++){
for(int j=0;j<6;j++){
scanf("%d",&arr[i][j]);
}
}
sum=0;
grt=0;
for(i=0;i<=3;i++)
{
for(j=0;j<=3;j++)
{
sum=0;
sum=sum+arr[i][j]+arr[i][j+1]+arr[i][j+2]+arr[i+1][j+1]+arr[i+2][j]+arr[i+2][j+1]+arr[i+2][j+2];
printf("sum = %d\n",sum);
if(sum>value){
value=sum;
grt=sum;
}
}
}
printf("%d",grt);
return 0;
}
|
the_stack_data/237642550.c |
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <omp.h>
// Initialize matrices
void initialize_matrices(float *a, float *b, float *c, unsigned size,
unsigned seed) {
srand(seed);
for (int i = 0; i < size; ++i) {
for (int j = 0; j < size; ++j) {
a[i * size + j] = rand() % 10;
b[i * size + j] = rand() % 10;
c[i * size + j] = 0.0f;
}
}
}
// Parallelize this function using OpenMP
void multiply(float *a, float *b, float *c, unsigned size) {
float sum = 0.0;
int i, j, k;
#pragma omp parallel for default(none) reduction(+:sum) private(i, j, k) \
shared(a, b, c, size)
for (i = 0; i < size; ++i) {
for (j = 0; j < size; ++j) {
sum = 0.0;
for (k = 0; k < size; ++k) {
sum = sum + a[i * size + k] * b[k * size + j];
}
c[i * size + j] = sum;
}
}
}
// Output matrix to stdout
void print_matrix(float *c, unsigned size) {
for (int i = 0; i < size; i++) {
for (int j = 0; j < size; j++) {
printf(" %5.1f", c[i * size + j]);
}
printf("\n");
}
}
int main(int argc, char *argv[]) {
float *a, *b, *c;
unsigned seed, size;
double t;
FILE *input;
if (argc < 2) {
fprintf(stderr, "Error: missing path to input file\n");
return 1;
}
if ((input = fopen(argv[1], "r")) == NULL) {
fprintf(stderr, "Error: could not open file\n");
return 1;
}
// Read inputs
fscanf(input, "%u", &size);
fscanf(input, "%u", &seed);
// Do not change this line
omp_set_num_threads(4);
// Allocate matrices
a = (float *)malloc(sizeof(float) * size * size);
b = (float *)malloc(sizeof(float) * size * size);
c = (float *)malloc(sizeof(float) * size * size);
// initialize_matrices with random data
initialize_matrices(a, b, c, size, seed);
// Multiply matrices
t = omp_get_wtime();
multiply(a, b, c, size);
t = omp_get_wtime() - t;
// Show result
print_matrix(c, size);
// Output elapsed time
fprintf(stderr, "%lf\n", t);
// Release memory
free(a);
free(b);
free(c);
return EXIT_SUCCESS;
}
|
the_stack_data/248580929.c | #include <stdlib.h>
#include <stdio.h>
void printFirst() {
printf("first\n");
}
void printSecond() {
printf("second\n");
}
void printThird() {
printf("third\n");
}
typedef struct {
volatile int first;
volatile int second;
} Foo;
Foo* fooCreate() {
Foo* obj = (Foo*) malloc(sizeof(Foo));
obj->first = 0;
obj->second = 0;
return obj;
}
void first(Foo* obj) {
printFirst();
obj->first = 1;
}
void second(Foo* obj) {
while(obj->first != 1);
printSecond();
obj->second = 1;
}
void third(Foo* obj) {
while(obj->second != 1);
printThird();
}
void fooFree(Foo* obj) {
free(obj);
}
// the main functon for test is fake
int main(void) {
Foo * f = fooCreate();
first(f);
second(f);
third(f);
fooFree(f);
return 0;
}
|
the_stack_data/20451228.c | /*
* Copyright (c) 2020 Calvin Rose
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*/
#include <stdio.h>
#include <stdint.h>
static int is_symbol_char_gen(uint8_t c) {
if (c & 0x80) return 1;
if (c >= 'a' && c <= 'z') return 1;
if (c >= 'A' && c <= 'Z') return 1;
if (c >= '0' && c <= '9') return 1;
return (c == '!' ||
c == '$' ||
c == '%' ||
c == '&' ||
c == '*' ||
c == '+' ||
c == '-' ||
c == '.' ||
c == '/' ||
c == ':' ||
c == '<' ||
c == '?' ||
c == '=' ||
c == '>' ||
c == '@' ||
c == '^' ||
c == '_');
}
int main() {
printf("static const uint32_t symchars[8] = {\n ");
for (int i = 0; i < 256; i += 32) {
uint32_t block = 0;
for (int j = 0; j < 32; j++) {
block |= is_symbol_char_gen(i + j) << j;
}
printf("0x%08x%s", block, (i == (256 - 32)) ? "" : ", ");
}
printf("\n};\n");
return 0;
}
|
the_stack_data/68352.c | /* Use after free resetting pointer value to itself. */
#include <stdlib.h>
int main()
{
int *ptr = malloc(100);
free(ptr);
*ptr = *ptr;
return 0;
}
|
the_stack_data/787753.c | #include <stdio.h>
int main() {
double M[12][12], soma = 0, media;
int i, j, k;
char O;
scanf("%c", &O);
for (i = 0; i < 12; i++) {
for (j = 0; j < 12; j++) {
scanf("%lf", &M[i][j]);
}
}
if (O == 'S') {
for (i = 1; i <= 5; i++) {
for (j = 0; j < i; j++) {
soma += M[i][j];
}
}
for (i = 6; i <= 10; i++) {
for (j = 10 - i; j >= 0; j--) {
soma += M[i][j];
}
}
printf("%.1lf\n", soma);
}
else if (O == 'M') {
for (i = 1; i <= 5; i++) {
for (j = 0; j < i; j++) {
soma += M[i][j];
}
}
for (i = 6; i <= 10; i++) {
for (j = 10 - i; j >= 0; j--) {
soma += M[i][j];
}
}
media = soma / 30;
printf("%.1lf\n", media);
}
return 0;
} |
the_stack_data/97758.c | ////////////////////////////////////////////////////////////////////////
//
// Copyright (c) viSystems 2002.
// All rights reserved. Reproduction in whole or in part is prohibited
// without the written consent of the copyright holder.
//
// This code and information is provided "as is" without any warranty
// of any kind, either expressed or implied, including but not limited
// to the implied warranties of merchantability and/or fitness for any
// particular purpose.
//
// This disclaimer of warranty extends to the user of these programs
// and user's customers, employees, agents, transferees, successors,
// and assigns.
//
// viSystems Research and Development does not represent or warrant that
// the programs furnished hereunder are free of infringement of any
// third-party patents.
//
////////////////////////////////////////////////////////////////////////
//
// Author: Brigitte Schuster
// Last update: 2004/02/08
// Modified:
// File: viSoffset.c
// History:
// Version 0.1 2004/02/08
//
////////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
FILE *fpRead1;
char ReadName1[256];
FILE *fpWrite;
char WriteName[256];
char ExtName[256];
int i;
int nbytes, size, off;
unsigned char buf[1024*1024];
for (i=0;i<256;i++) {
WriteName[i] = '\0';
ReadName1[i] = '\0';
ExtName[i] = '\0';
}
if ( argc < 3 )
{
fprintf(stderr,"%s number_of_offset_bytes input_file_name\n",argv[0]);
exit(1);
}
else
{
off = atoi(argv[1]);
strcpy(ReadName1,argv[2]);
}
if ((fpRead1=fopen(ReadName1,"rb"))==NULL)
{
printf("error : cannot open %s\n",ReadName1);
exit(-1);
}
strncpy(WriteName,ReadName1,strlen(ReadName1)-3);
strcat(WriteName,".epd");
if ((fpWrite=fopen(WriteName,"wb"))==NULL)
{
printf("error : cannot open %s\n",WriteName);
exit(-1);
}
// write offset bytes
for (i=0;i<off;i++) {
buf[i] = 0;
}
fwrite(&buf[0],1,off,fpWrite);
//copy first file
size = 0;
while ( (feof(fpRead1) == 0) ) {
nbytes = fread(&buf[0],1,1,fpRead1);
fwrite(&buf[0],1,nbytes,fpWrite);
size += nbytes;
}
fprintf(stderr,"size %d\n",size);
fclose(fpWrite);
fclose(fpRead1);
return(0);
}
|
the_stack_data/170452135.c | #include <stdio.h>
#include <stdlib.h>
void fatorial(int matriz[5][5],int fat[5][5]){
int i;
int j;
int cont;
int fato =1;
for(i=0;i<5;i++){
for(j=0;j<5;j++){
cont = matriz[i][j];
while(cont>1){
fato = fato * cont;
cont--;
}
fat[i][j] = fato;
fato =1;
}
}
}
int main()
{
int matriz[5][5];
int i;
int j;
int fat =1;
int cont;
int fatorado[5][5];
srand(time(NULL));
printf("\nMatriz gerada aleatoriamente:\n\n");
for(i=0;i<5;i++){
for(j=0;j<5;j++){
matriz[i][j]=rand()%10;
printf("[%d]",matriz[i][j]);
}
printf("\n");
}
fatorial(matriz,fatorado);
printf("\n\n\nmatriz fatorada:\n\n\n");
for(i=0;i<5;i++){
for(j=0;j<5;j++){
printf("[%d]",fatorado[i][j]);
}
printf("\n");
}
}
|
the_stack_data/76196.c | #include <stdlib.h>
#include <string.h>
struct has_bitfield {
unsigned int a;
unsigned int b : 2;
unsigned int c : 2;
unsigned int d : 2;
} beans;
int
main()
{
assert(beans.a == 0);
assert(beans.b == 0);
assert(beans.c == 0);
assert(beans.d == 0);
beans.d = 1;
assert(beans.d == 1);
beans.d = 0xFFFFFF;
assert(beans.d == 3);
memset(&beans, 0, sizeof(beans));
assert(beans.d == 0);
// Fail-test
assert(beans.c == 1);
return 0;
}
|
the_stack_data/237600.c | /**
******************************************************************************
* @file USB_Device/HID_Standalone/Src/usbd_desc.c
* @author MCD Application Team
* @version V1.0.2
* @date 06-May-2016
* @brief This file provides the USBD descriptors and string formatting method.
******************************************************************************
* @attention
*
* <h2><center>© Copyright � 2016 STMicroelectronics International N.V.
* All rights reserved.</center></h2>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted, provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of other
* contributors to this software may be used to endorse or promote products
* derived from this software without specific written permission.
* 4. This software, including modifications and/or derivative works of this
* software, must execute solely and exclusively on microcontroller or
* microprocessor devices manufactured by or for STMicroelectronics.
* 5. Redistribution and use of this software other than as permitted under
* this license is void and will automatically terminate your rights under
* this license.
*
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
* SHALL STMICROELECTRONICS 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 ------------------------------------------------------------------*/
#ifdef USBCON
#include "usbd_core.h"
#include "usbd_desc.h"
#include "usbd_conf.h"
#include "utils.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
#define USBD_CDC_PRODUCT_HS_STRING CONCATS(USB_PRODUCT, "CDC in HS Mode")
#define USBD_CDC_PRODUCT_FS_STRING CONCATS(USB_PRODUCT, "CDC in FS Mode")
#define USBD_CDC_CONFIGURATION_HS_STRING CONCATS(USB_PRODUCT, "CDC Config")
#define USBD_CDC_INTERFACE_HS_STRING CONCATS(USB_PRODUCT, "CDC Interface")
#define USBD_CDC_CONFIGURATION_FS_STRING CONCATS(USB_PRODUCT, "CDC Config")
#define USBD_CDC_INTERFACE_FS_STRING CONCATS(USB_PRODUCT, "CDC Interface")
#define USBD_CDC_SERIALNUMBER_HS_STRING "00000000001A"
#define USBD_CDC_SERIALNUMBER_FS_STRING "00000000001A"
#define USB_SIZ_BOS_DESC 0x0C
/* Private macro -------------------------------------------------------------*/
/* Private function prototypes -----------------------------------------------*/
static uint8_t *USBD_CDC_ProductStrDescriptor (USBD_SpeedTypeDef speed, uint16_t *length);
static uint8_t *USBD_CDC_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length);
static uint8_t *USBD_CDC_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length);
#ifdef USB_SUPPORT_USER_STRING_DESC
static uint8_t *USBD_CDC_USRStringDesc (USBD_SpeedTypeDef speed, uint8_t idx, uint16_t *length);
#endif /* USB_SUPPORT_USER_STRING_DESC */
#if (USBD_LPM_ENABLED == 1)
uint8_t *USBD_CDC_USR_BOSDescriptor(USBD_SpeedTypeDef speed , uint16_t *length);
#endif
/* Private variables ---------------------------------------------------------*/
USBD_DescriptorsTypeDef CDC_Desc =
{
USBD_DeviceDescriptor,
USBD_LangIDStrDescriptor,
USBD_ManufacturerStrDescriptor,
USBD_CDC_ProductStrDescriptor,
USBD_SerialStrDescriptor,
USBD_CDC_ConfigStrDescriptor,
USBD_CDC_InterfaceStrDescriptor,
#if (USBD_LPM_ENABLED == 1)
USBD_CDC_USR_BOSDescriptor,
#endif
};
#if defined ( __ICCARM__ ) /*!< IAR Compiler */
#pragma data_alignment=4
#endif
__ALIGN_BEGIN static uint8_t USBD_StrDesc[USBD_MAX_STR_DESC_SIZ] __ALIGN_END;
/* BOS descriptor */
#if (USBD_LPM_ENABLED == 1)
#if defined ( __ICCARM__ ) /*!< IAR Compiler */
#pragma data_alignment=4
#endif
__ALIGN_BEGIN uint8_t USBD_CDC_BOSDesc[USB_SIZ_BOS_DESC] __ALIGN_END = {
0x5,
USB_DESC_TYPE_BOS,
0xC,
0x0,
0x1, /* 1 device capability */
/* device capability*/
0x7,
USB_DEVICE_CAPABITY_TYPE,
0x2,
0x2, /*LPM capability bit set */
0x0,
0x0,
0x0
};
#endif
/* Private functions ---------------------------------------------------------*/
/**
* @brief Returns the product string descriptor.
* @param speed: Current device speed
* @param length: Pointer to data length variable
* @retval Pointer to descriptor buffer
*/
uint8_t *USBD_CDC_ProductStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
{
if(speed == USBD_SPEED_HIGH)
{
USBD_GetString((uint8_t *)USBD_CDC_PRODUCT_HS_STRING, USBD_StrDesc, length);
}
else
{
USBD_GetString((uint8_t *)USBD_CDC_PRODUCT_FS_STRING, USBD_StrDesc, length);
}
return USBD_StrDesc;
}
/**
* @brief Returns the configuration string descriptor.
* @param speed: Current device speed
* @param length: Pointer to data length variable
* @retval Pointer to descriptor buffer
*/
uint8_t *USBD_CDC_ConfigStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
{
if(speed == USBD_SPEED_HIGH)
{
USBD_GetString((uint8_t *)USBD_CDC_CONFIGURATION_HS_STRING, USBD_StrDesc, length);
}
else
{
USBD_GetString((uint8_t *)USBD_CDC_CONFIGURATION_FS_STRING, USBD_StrDesc, length);
}
return USBD_StrDesc;
}
/**
* @brief Returns the interface string descriptor.
* @param speed: Current device speed
* @param length: Pointer to data length variable
* @retval Pointer to descriptor buffer
*/
uint8_t *USBD_CDC_InterfaceStrDescriptor(USBD_SpeedTypeDef speed, uint16_t *length)
{
if(speed == USBD_SPEED_HIGH)
{
USBD_GetString((uint8_t *)USBD_CDC_INTERFACE_HS_STRING, USBD_StrDesc, length);
}
else
{
USBD_GetString((uint8_t *)USBD_CDC_INTERFACE_FS_STRING, USBD_StrDesc, length);
}
return USBD_StrDesc;
}
#if (USBD_LPM_ENABLED == 1)
/**
* @brief USBD_CDC_USR_BOSDescriptor
* return the BOS descriptor
* @param speed : current device speed
* @param length : pointer to data length variable
* @retval pointer to descriptor buffer
*/
uint8_t *USBD_CDC_USR_BOSDescriptor(USBD_SpeedTypeDef speed , uint16_t *length)
{
UNUSED(speed);
*length = sizeof(USBD_CDC_BOSDesc);
return (uint8_t*)USBD_CDC_BOSDesc;
}
#endif
#endif // USBCON
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
the_stack_data/62637223.c | #include <stdio.h>
int main(){
int num;
printf("Enter a number: ");
scanf("%d", &num);
if(num%2 == 0){
printf("\n%d is EVEN\n", num);
}else{
printf("\n%d is ODD\n", num);
}
return 0;
} |
the_stack_data/50558.c | /*
* Copyright 2020 u-blox
*
* 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.
*/
/* Only #includes of u_* and the C standard library are allowed here,
* no platform stuff and no OS stuff. Anything required from
* the platform/OS must be brought in through u_port* to maintain
* portability.
*/
/** @file
* @brief Tests for the cellular sockets API: these should pass on all
* platforms that have a cellular module connected to them. They
* are only compiled if U_CFG_TEST_CELL_MODULE_TYPE is defined.
* IMPORTANT: see notes in u_cfg_test_platform_specific.h for the
* naming rules that must be followed when using the U_PORT_TEST_FUNCTION()
* macro.
*/
#ifdef U_CFG_TEST_CELL_MODULE_TYPE
# ifdef U_CFG_OVERRIDE
# include "u_cfg_override.h" // For a customer's configuration override
# endif
#include "stdlib.h" // rand()
#include "stddef.h" // NULL, size_t etc.
#include "stdint.h" // int32_t etc.
#include "stdbool.h"
#include "string.h" // memset()
#include "u_cfg_sw.h"
#include "u_cfg_os_platform_specific.h"
#include "u_cfg_app_platform_specific.h"
#include "u_cfg_test_platform_specific.h"
#include "u_error_common.h"
#include "u_port.h"
#include "u_port_debug.h"
#include "u_port_os.h" // Required by u_cell_private.h
#include "u_port_uart.h"
#include "u_at_client.h"
#include "u_sock.h"
#include "u_cell_module_type.h"
#include "u_cell.h"
#include "u_cell_net.h" // Required by u_cell_private.h
#include "u_cell_private.h" // So that we can get at some innards
#include "u_cell_pwr.h"
#include "u_cell_sock.h"
#include "u_cell_test_cfg.h"
#include "u_cell_test_private.h"
#include "u_sock_test_shared_cfg.h" // For some of the test macros
/* ----------------------------------------------------------------
* COMPILE-TIME MACROS
* -------------------------------------------------------------- */
/* ----------------------------------------------------------------
* TYPES
* -------------------------------------------------------------- */
// Definition of a supported socket option.
typedef struct {
uint32_t excludeModulesBitmap;
int32_t level;
uint32_t option;
size_t length;
bool (*pComparer) (const void *, const void *);
void (*pChanger) (void *);
} uCellSockTestOption_t;
/* ----------------------------------------------------------------
* VARIABLES: MISC
* -------------------------------------------------------------- */
/** Used for keepGoingCallback() timeout.
*/
static int64_t gStopTimeMs;
/** Generic handles.
*/
static uCellTestPrivate_t gHandles = U_CELL_TEST_PRIVATE_DEFAULTS;
/** UDP socket handle.
*/
static int32_t gSockHandleUdp = -1;
/** TCP socket handle.
*/
static int32_t gSockHandleTcp = -1;
/** Error indicator for call-backs: not using asserts
* in call-backs as when they go off the seem to cause
* stack overflows.
*/
static volatile int32_t gCallbackErrorNum = 0;
/** Flag to indicate that the UDP data
* callback has been called.
*/
static volatile bool gDataCallbackCalledUdp = false;
/** Flag to indicate that the TCP data
* callback has been called.
*/
static volatile bool gDataCallbackCalledTcp = false;
/** Flag to indicate that the UDP closed
* callback has been called.
*/
static volatile bool gClosedCallbackCalledUdp = false;
/** Flag to indicate that the TCP closed
* callback has been called.
*/
static volatile bool gClosedCallbackCalledTcp = false;
/** Flag to indicate that the async closed
* callback has been called.
*/
static volatile bool gAsyncClosedCallbackCalled = false;
/** A string of all possible characters, including strings
* that might appear as terminators in the AT interface.
*/
static const char gAllChars[] = "the quick brown fox jumps over the lazy dog "
"THE QUICK BROWN FOX JUMPS OVER THE LAZY DOG 0123456789 "
"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e"
"\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c"
"\x1d\x1e!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\x7f"
"\r\nOK\r\n \r\nERROR\r\n \r\nABORTED\r\n";
/* ----------------------------------------------------------------
* STATIC FUNCTIONS: SOCKET OPTIONS RELATED
* These functions are not marked as static as they are only used
* as callbacks in a table: the compiler can't tell they are
* are being used and complains if they are marked as static.
* -------------------------------------------------------------- */
// Compare two int32_t values.
bool compareInt32(const void *p1, const void *p2)
{
return *(const int32_t *) p1 == *(const int32_t *) p2;
}
// Change an int32_t value.
void changeInt32(void *p)
{
(*((int32_t *) p))++;
}
// Change an int32_t keeping it positive.
void changeInt32Positive(void *p)
{
(*((int32_t *) p))++;
if (*(int32_t *) p < 0) {
*(int32_t *) p = 0;
}
}
// Change value modulo 256.
void changeMod256(void *p)
{
*(int32_t *) p = (*((int32_t *) p) + 1) % 256;
}
// Change value modulo 256 and non-zero.
void changeMod256NonZero(void *p)
{
*(int32_t *) p = (*((int32_t *) p) + 1) % 256;
if (*(int32_t *) p == 0) {
*(int32_t *) p = 1;
}
}
// Change a value modulo 2.
void changeMod2(void *p)
{
*(int32_t *) p = (*((int32_t *) p) + 1) % 2;
}
// Compare two uSockLinger_t values.
bool compareLinger(const void *p1, const void *p2)
{
bool result = false;
result = (((const uSockLinger_t *) p1)->onNotOff == ((const uSockLinger_t *) p2)->onNotOff);
if (((const uSockLinger_t *) p1)->onNotOff || ((const uSockLinger_t *) p2)->onNotOff) {
result = (((const uSockLinger_t *) p1)->lingerSeconds == ((const uSockLinger_t *)
p2)->lingerSeconds);
}
return result;
}
// Increment the contents of a uSockLinger_t value.
// Note: changes both the on/off and the value
void changeLinger(void *p)
{
// If linger is not on the linger value will not be filled
// in so set it to something sensible
if (((uSockLinger_t *) p)->onNotOff == 0) {
((uSockLinger_t *) p)->lingerSeconds = 0;
}
((uSockLinger_t *) p)->onNotOff = (((uSockLinger_t *) p)->onNotOff + 1) % 2;
((uSockLinger_t *) p)->lingerSeconds = (((uSockLinger_t *) p)->lingerSeconds + 1) % 32768;
}
/* ----------------------------------------------------------------
* MORE VARIABLES: SUPPORTED SOCKET OPTIONS
* -------------------------------------------------------------- */
// Table of supported socket options.
static uCellSockTestOption_t gSupportedOptions[] = {
{
(1UL << U_CELL_MODULE_TYPE_SARA_R422), /* Not SARA-R422 */
U_SOCK_OPT_LEVEL_SOCK, U_SOCK_OPT_REUSEADDR, sizeof(int32_t), compareInt32, changeMod2
},
{
0, /* All modules */
U_SOCK_OPT_LEVEL_SOCK, U_SOCK_OPT_KEEPALIVE, sizeof(int32_t), compareInt32, changeMod2
},
{
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_02B) | /* Not SARA-R4 */
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_02B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R422),
U_SOCK_OPT_LEVEL_SOCK, U_SOCK_OPT_BROADCAST, sizeof(int32_t), compareInt32, changeMod2
},
{
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_02B) | /* Not SARA-R4 */
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_02B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R422),
U_SOCK_OPT_LEVEL_SOCK, U_SOCK_OPT_REUSEPORT, sizeof(int32_t), compareInt32, changeMod2
},
// This next one removed for SARA-R4, SARA-R5 and SARA-U201 as none will let me switch linger off, i.e.
// "AT+USOSO=0,65535,128,0" returns "+CME ERROR: Operation not permitted/allowed"
{
(1UL << U_CELL_MODULE_TYPE_SARA_U201) | /* Not SARA_U201 or SARA-R4 or SARA-R5 */
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_02B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_02B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R422) |
(1UL << U_CELL_MODULE_TYPE_SARA_R5),
U_SOCK_OPT_LEVEL_SOCK, U_SOCK_OPT_LINGER, sizeof(uSockLinger_t), compareLinger, changeLinger
},
{
0, /* All modules */
U_SOCK_OPT_LEVEL_IP, U_SOCK_OPT_IP_TOS, sizeof(int32_t), compareInt32, changeMod256
},
{
0, /* All modules */
U_SOCK_OPT_LEVEL_IP, U_SOCK_OPT_IP_TTL, sizeof(int32_t), compareInt32, changeMod256NonZero
},
{
0, /* All modules */
U_SOCK_OPT_LEVEL_TCP, U_SOCK_OPT_TCP_NODELAY, sizeof(int32_t), compareInt32, changeMod2
},
{
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_02B) | /* Not SARA-R4 */
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_02B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R412M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R410M_03B) |
(1UL << U_CELL_MODULE_TYPE_SARA_R422),
U_SOCK_OPT_LEVEL_TCP, U_SOCK_OPT_TCP_KEEPIDLE, sizeof(int32_t), compareInt32, changeInt32Positive
},
};
/* ----------------------------------------------------------------
* STATIC FUNCTIONS: SETTING AND GETTING SOCKET OPTIONS
* -------------------------------------------------------------- */
// Check getting an option.
static void checkOptionGet(int32_t cellHandle, int32_t sockHandle,
int32_t level, uint32_t option,
void *pValue, size_t valueLength,
bool (*pComparer) (const void *,
const void *))
{
int32_t errorCode;
void *pValueAgain;
size_t length = 0xFFFFFFFF;
size_t *pLength = &length;
// Malloc memory for testing that values are consistent
pValueAgain = malloc(valueLength);
U_PORT_TEST_ASSERT(pValueAgain != NULL);
uPortLog("U_CELL_SOCK_TEST: testing uCellSockOptionGet()"
" with level %d, option 0x%04x (%d):\n", level,
option, option);
memset(pValue, 0xFF, valueLength);
errorCode = uCellSockOptionGet(cellHandle, sockHandle,
level, option, NULL,
pLength);
uPortLog("U_CELL_SOCK_TEST: ...with NULL value pointer,"
" error code %d, length %d.\n", errorCode, *pLength);
U_PORT_TEST_ASSERT(errorCode >= 0);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, sockHandle) >= 0);
U_PORT_TEST_ASSERT(*pLength == valueLength);
errorCode = uCellSockOptionGet(cellHandle, sockHandle,
level, option,
(void *) pValue, pLength);
uPortLog("U_CELL_SOCK_TEST: ...with non-NULL value"
" pointer, error code %d, length %d.\n",
errorCode, *pLength);
U_PORT_TEST_ASSERT(errorCode >= 0);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, sockHandle) >= 0);
U_PORT_TEST_ASSERT(*pLength == valueLength);
(*pLength)++;
memset(pValueAgain, 0xFF, valueLength);
errorCode = uCellSockOptionGet(cellHandle, sockHandle,
level, option,
(void *) pValueAgain,
pLength);
uPortLog("U_CELL_SOCK_TEST: with excess length, error"
" code %d, length %d.\n", errorCode, *pLength);
U_PORT_TEST_ASSERT(errorCode >= 0);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, sockHandle) >= 0);
U_PORT_TEST_ASSERT(pComparer(pValue, pValueAgain));
U_PORT_TEST_ASSERT(*pLength == valueLength);
// Free memory again
free(pValueAgain);
}
// Check setting an option.
static void checkOptionSet(int32_t cellHandle, int32_t sockHandle,
int32_t level, int32_t option,
const void *pValue, size_t valueLength,
bool (*pComparer) (const void *,
const void *))
{
int32_t errorCode;
char *pValueRead;
size_t length = 0xFFFFFFFF;
size_t *pLength = &length;
// Malloc memory for testing that value has been set
pValueRead = (char *) malloc(valueLength);
U_PORT_TEST_ASSERT(pValueRead != NULL);
uPortLog("U_CELL_SOCK_TEST: testing uCellSockOptionSet()"
" with level %d, option 0x%04x (%d):\n", level,
option, option);
errorCode = uCellSockOptionSet(cellHandle, sockHandle,
level, option, pValue,
valueLength);
uPortLog("U_CELL_SOCK_TEST: ...returned error code %d.\n",
errorCode);
U_PORT_TEST_ASSERT(errorCode >= 0);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, sockHandle) >= 0);
if (pComparer != NULL) {
memset(pValueRead, 0xFF, valueLength);
errorCode = uCellSockOptionGet(cellHandle, sockHandle,
level, option,
pValueRead, pLength);
uPortLog("U_CELL_SOCK_TEST: ...reading it back returned"
" error code %d, length %d.\n", errorCode,
*pLength);
U_PORT_TEST_ASSERT(errorCode >= 0);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, sockHandle) >= 0);
U_PORT_TEST_ASSERT(*pLength == valueLength);
if (pComparer(pValue, pValueRead)) {
uPortLog("U_CELL_SOCK_TEST: ...and the same value.\n");
} else {
uPortLog("U_CELL_SOCK_TEST: ...but a different value.\n");
U_PORT_TEST_ASSERT(false);
}
}
// Free memory again
free(pValueRead);
}
/* ----------------------------------------------------------------
* STATIC FUNCTIONS: CALLBACKS
* -------------------------------------------------------------- */
// Callback function for the cellular connection process
static bool keepGoingCallback(int32_t unused)
{
bool keepGoing = true;
(void) unused;
if (uPortGetTickTimeMs() > gStopTimeMs) {
keepGoing = false;
}
return keepGoing;
}
// Callback for data being available, UDP.
static void dataCallbackUdp(int32_t cellHandle, int32_t sockHandle)
{
if (cellHandle != gHandles.cellHandle) {
gCallbackErrorNum = 1;
} else if (sockHandle != gSockHandleUdp) {
gCallbackErrorNum = 2;
}
gDataCallbackCalledUdp = true;
}
// Callback for data being available, TCP.
static void dataCallbackTcp(int32_t cellHandle, int32_t sockHandle)
{
if (cellHandle != gHandles.cellHandle) {
gCallbackErrorNum = 3;
} else if (sockHandle != gSockHandleTcp) {
gCallbackErrorNum = 4;
}
gDataCallbackCalledTcp = true;
}
// Callback for socket closed, UDP.
static void closedCallbackUdp(int32_t cellHandle, int32_t sockHandle)
{
if (cellHandle != gHandles.cellHandle) {
gCallbackErrorNum = 5;
} else if (sockHandle != gSockHandleUdp) {
gCallbackErrorNum = 6;
}
gClosedCallbackCalledUdp = true;
}
// Callback for socket closed, TCP.
static void closedCallbackTcp(int32_t cellHandle, int32_t sockHandle)
{
if (cellHandle != gHandles.cellHandle) {
gCallbackErrorNum = 7;
} else if (sockHandle != gSockHandleTcp) {
gCallbackErrorNum = 8;
}
gClosedCallbackCalledTcp = true;
}
// Callback for async socket closed.
static void asyncClosedCallback(int32_t cellHandle, int32_t sockHandle)
{
if (cellHandle != gHandles.cellHandle) {
gCallbackErrorNum = 9;
} else if (sockHandle != gSockHandleTcp) {
gCallbackErrorNum = 10;
}
gAsyncClosedCallbackCalled = true;
}
/* ----------------------------------------------------------------
* PUBLIC FUNCTIONS
* -------------------------------------------------------------- */
/** A basic test of the cellular sockets API. This test merely
* serves as a basic test of the uCellSockXxx functions to ensure
* that they can be run independently of the the u_sock and u_network
* APIs. More comprehensive testing of this API is carred out
* via the tests under the u_sock API.
*
* IMPORTANT: see notes in u_cfg_test_platform_specific.h for the
* naming rules that must be followed when using the
* U_PORT_TEST_FUNCTION() macro.
*/
U_PORT_TEST_FUNCTION("[cellSock]", "cellSockBasic")
{
int32_t cellHandle;
const uCellPrivateModule_t *pModule;
uSockAddress_t echoServerAddressUdp;
uSockAddress_t echoServerAddressTcp;
uSockAddress_t address;
int32_t y;
int32_t w;
int32_t z;
size_t count;
char *pBuffer;
int32_t heapUsed;
// In case a previous test failed
uCellSockDeinit();
uCellTestPrivateCleanup(&gHandles);
// The first time rand() is called the C library may
// allocate memory, not something we can do anything
// about, so call it once here to move that number
// out of our sums.
rand();
// Obtain the initial heap size
heapUsed = uPortGetHeapFree();
// If we memset these here we can do memcmp's afterwards
// 'cos we don't have to worry about the bits in the packing
memset(&echoServerAddressUdp, 0, sizeof(echoServerAddressUdp));
memset(&echoServerAddressTcp, 0, sizeof(echoServerAddressTcp));
memset(&address, 0, sizeof(address));
// Malloc a buffer to receive things into.
pBuffer = (char *) malloc(U_CELL_SOCK_MAX_SEGMENT_SIZE_BYTES);
U_PORT_TEST_ASSERT(pBuffer != NULL);
// Do the standard preamble
U_PORT_TEST_ASSERT(uCellTestPrivatePreamble(U_CFG_TEST_CELL_MODULE_TYPE,
&gHandles, true) == 0);
cellHandle = gHandles.cellHandle;
// Get the private module data as we need it for testing
pModule = pUCellPrivateGetModule(cellHandle);
U_PORT_TEST_ASSERT(pModule != NULL);
//lint -esym(613, pModule) Suppress possible use of NULL pointer
// for pModule from now on
// Connect to the network
gStopTimeMs = uPortGetTickTimeMs() +
(U_CELL_TEST_CFG_CONNECT_TIMEOUT_SECONDS * 1000);
y = uCellNetConnect(cellHandle, NULL,
#ifdef U_CELL_TEST_CFG_APN
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_APN),
#else
NULL,
#endif
#ifdef U_CELL_TEST_CFG_USERNAME
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_USERNAME),
#else
NULL,
#endif
#ifdef U_CELL_TEST_CFG_PASSWORD
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_PASSWORD),
#else
NULL,
#endif
keepGoingCallback);
U_PORT_TEST_ASSERT(y == 0);
// Get the current value of the data counters, if supported
y = uCellNetGetDataCounterTx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
U_PORT_TEST_ASSERT(y >= 0);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
y = uCellNetGetDataCounterRx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
U_PORT_TEST_ASSERT(y >= 0);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
// Init cell sockets
U_PORT_TEST_ASSERT(uCellSockInit() == 0);
U_PORT_TEST_ASSERT(uCellSockInitInstance(cellHandle) == 0);
// Look up the address of the server we use for UDP echo
U_PORT_TEST_ASSERT(uCellSockGetHostByName(cellHandle,
U_SOCK_TEST_ECHO_UDP_SERVER_DOMAIN_NAME,
&(echoServerAddressUdp.ipAddress)) == 0);
// Add the port number we will use
echoServerAddressUdp.port = U_SOCK_TEST_ECHO_UDP_SERVER_PORT;
// Look up the address of the server we use for TCP echo
U_PORT_TEST_ASSERT(uCellSockGetHostByName(cellHandle,
U_SOCK_TEST_ECHO_TCP_SERVER_DOMAIN_NAME,
&(echoServerAddressTcp.ipAddress)) == 0);
// Add the port number we will use
echoServerAddressTcp.port = U_SOCK_TEST_ECHO_TCP_SERVER_PORT;
// Create a UDP socket
gSockHandleUdp = uCellSockCreate(cellHandle, U_SOCK_TYPE_DGRAM,
U_SOCK_PROTOCOL_UDP);
// Create a TCP socket
gSockHandleTcp = uCellSockCreate(cellHandle, U_SOCK_TYPE_STREAM,
U_SOCK_PROTOCOL_TCP);
// Add callbacks
uCellSockRegisterCallbackData(cellHandle, gSockHandleUdp,
dataCallbackUdp);
uCellSockRegisterCallbackClosed(cellHandle, gSockHandleUdp,
closedCallbackUdp);
uCellSockRegisterCallbackData(cellHandle, gSockHandleTcp,
dataCallbackTcp);
uCellSockRegisterCallbackClosed(cellHandle, gSockHandleTcp,
closedCallbackTcp);
// Set blocking on both: should always be false whatever we do
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleTcp));
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleUdp));
uCellSockBlockingSet(cellHandle, gSockHandleUdp, false);
uCellSockBlockingSet(cellHandle, gSockHandleTcp, false);
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleTcp));
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleUdp));
uCellSockBlockingSet(cellHandle, gSockHandleUdp, true);
uCellSockBlockingSet(cellHandle, gSockHandleTcp, true);
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleTcp));
U_PORT_TEST_ASSERT(!uCellSockBlockingGet(cellHandle, gSockHandleUdp));
// Connect the TCP socket
U_PORT_TEST_ASSERT(uCellSockConnect(cellHandle, gSockHandleTcp,
&echoServerAddressTcp) == 0);
// No data should have yet flowed
U_PORT_TEST_ASSERT(!gDataCallbackCalledUdp);
U_PORT_TEST_ASSERT(!gDataCallbackCalledTcp);
// Do this twice: once with binary mode and once with hex mode
for (size_t a = 0; a < 2; a++) {
gDataCallbackCalledUdp = false;
if (a == 0) {
U_PORT_TEST_ASSERT(!uCellSockHexModeIsOn(cellHandle));
} else {
U_PORT_TEST_ASSERT(uCellSockHexModeOn(cellHandle) == 0);
U_PORT_TEST_ASSERT(uCellSockHexModeIsOn(cellHandle));
}
// Send and wait for the UDP echo data, trying a few
// times to reduce the chance of internet loss getting
// in the way
uPortLog("U_CELL_SOCK_TEST: sending %d byte(s) to %s:%d...\n",
sizeof(gAllChars),
U_SOCK_TEST_ECHO_UDP_SERVER_DOMAIN_NAME,
U_SOCK_TEST_ECHO_UDP_SERVER_PORT);
y = 0;
memset(pBuffer, 0, U_CELL_SOCK_MAX_SEGMENT_SIZE_BYTES);
for (size_t x = 0; (x < U_SOCK_TEST_UDP_RETRIES) &&
(y != sizeof(gAllChars)); x ++) {
y = uCellSockSendTo(cellHandle, gSockHandleUdp,
&echoServerAddressUdp,
gAllChars, sizeof(gAllChars));
if (y == sizeof(gAllChars)) {
// Wait a little while to get a data callback
// triggered by a URC
for (size_t a = 10; (a > 0) && !gDataCallbackCalledUdp; a--) {
uPortTaskBlock(1000);
}
y = 0;
for (size_t z = 10; (z > 0) &&
(y != sizeof(gAllChars)); z--) {
y = uCellSockReceiveFrom(cellHandle,
gSockHandleUdp,
&address, pBuffer,
U_CELL_SOCK_MAX_SEGMENT_SIZE_BYTES);
if (y <= 0) {
uPortTaskBlock(500);
}
}
if (y != sizeof(gAllChars)) {
uPortLog("U_CELL_SOCK_TEST: failed to receive UDP echo"
" on try %d.\n", x + 1);
}
} else {
uPortLog("U_CELL_SOCK_TEST: failed to send UDP data on"
" try %d.\n", x + 1);
U_PORT_TEST_ASSERT(uCellSockGetLastError(cellHandle, gSockHandleUdp) > 0);
}
}
uPortLog("U_CELL_SOCK_TEST: %d byte(s) echoed over UDP.\n", y);
U_PORT_TEST_ASSERT(y == sizeof(gAllChars));
if (!gDataCallbackCalledUdp) {
uPortLog("U_CELL_SOCK_TEST: *** WARNING *** the data callback"
" was not called during the test. This can happen"
" legimitately if all the reads from the module"
" happened to coincide with data receptions and so"
" the URC was not involved. However if it happens"
" too often something may be wrong.\n");
}
U_PORT_TEST_ASSERT(gCallbackErrorNum == 0);
U_PORT_TEST_ASSERT(memcmp(pBuffer, gAllChars, sizeof(gAllChars)) == 0);
U_PORT_TEST_ASSERT(memcmp(&(address.ipAddress),
&(echoServerAddressUdp.ipAddress),
sizeof(address.ipAddress)) == 0);
U_PORT_TEST_ASSERT(address.port == echoServerAddressUdp.port);
U_PORT_TEST_ASSERT(!gClosedCallbackCalledUdp);
}
// Hex mode off again
U_PORT_TEST_ASSERT(uCellSockHexModeOff(cellHandle) == 0);
U_PORT_TEST_ASSERT(!uCellSockHexModeIsOn(cellHandle));
// Do this twice: once with binary mode and once with hex mode
for (size_t a = 0; a < 2; a++) {
gDataCallbackCalledTcp = false;
if (a == 0) {
U_PORT_TEST_ASSERT(!uCellSockHexModeIsOn(cellHandle));
} else {
U_PORT_TEST_ASSERT(uCellSockHexModeOn(cellHandle) == 0);
U_PORT_TEST_ASSERT(uCellSockHexModeIsOn(cellHandle));
}
// Send the TCP echo data in random sized chunks
uPortLog("U_CELL_SOCK_TEST: sending %d byte(s) to %s:%d in"
" random sized chunks...\n", sizeof(gAllChars),
U_SOCK_TEST_ECHO_TCP_SERVER_DOMAIN_NAME,
U_SOCK_TEST_ECHO_TCP_SERVER_PORT);
y = 0;
count = 0;
while ((y < sizeof(gAllChars)) && (count < 100)) {
if ((sizeof(gAllChars) - y) > 1) {
w = rand() % (sizeof(gAllChars) - y);
} else {
w = 1;
}
if (w > 0) {
count++;
}
z = uCellSockWrite(cellHandle, gSockHandleTcp,
gAllChars + y, w);
if (z > 0) {
y += z;
} else {
uPortTaskBlock(500);
}
}
uPortLog("U_CELL_SOCK_TEST: %d byte(s) sent in %d chunks.\n",
y, count);
// Wait a little while to get a data callback
// triggered by a URC
for (size_t x = 10; (x > 0) && !gDataCallbackCalledTcp; x--) {
uPortTaskBlock(1000);
}
// Get the data back again
uPortLog("U_CELL_SOCK_TEST: receiving TCP echo data back"
" in random sized chunks...\n");
y = 0;
count = 0;
memset(pBuffer, 0, U_CELL_SOCK_MAX_SEGMENT_SIZE_BYTES);
while ((y < sizeof(gAllChars)) && (count < 100)) {
if ((sizeof(gAllChars) - y) > 1) {
w = rand() % (sizeof(gAllChars) - y);
} else {
w = 1;
}
if (w > 0) {
count++;
}
z = uCellSockRead(cellHandle, gSockHandleTcp,
pBuffer + y, w);
if (z > 0) {
y += z;
} else {
uPortTaskBlock(500);
}
}
uPortLog("U_CELL_SOCK_TEST: %d byte(s) echoed over TCP, received"
" in %d receive call(s).\n", y, count);
if (!gDataCallbackCalledTcp) {
uPortLog("U_CELL_SOCK_TEST: *** WARNING *** the data callback"
" was not called during the test. This can happen"
" legimitately if all the reads from the module"
" happened to coincide with data receptions and so"
" the URC was not involved. However if it happens"
" too often something may be wrong.\n");
}
U_PORT_TEST_ASSERT(gCallbackErrorNum == 0);
// Compare the data
U_PORT_TEST_ASSERT(memcmp(pBuffer, gAllChars,
sizeof(gAllChars)) == 0);
U_PORT_TEST_ASSERT(!gClosedCallbackCalledTcp);
}
// Sockets should both still be open
U_PORT_TEST_ASSERT(!gClosedCallbackCalledUdp);
U_PORT_TEST_ASSERT(!gClosedCallbackCalledTcp);
U_PORT_TEST_ASSERT(!gAsyncClosedCallbackCalled);
// Get the local address of the TCP socket,
// though there's not much we can do to check it.
U_PORT_TEST_ASSERT(uCellSockGetLocalAddress(cellHandle,
gSockHandleTcp,
&address) == 0);
// Check that the byte counts have incremented
// Note: not checking exact values as there may have been retries
U_PORT_TEST_ASSERT(uCellSockGetBytesSent(cellHandle, gSockHandleUdp) > 0);
U_PORT_TEST_ASSERT(uCellSockGetBytesReceived(cellHandle, gSockHandleUdp) > 0);
U_PORT_TEST_ASSERT(uCellSockGetBytesSent(cellHandle, gSockHandleTcp) > 0);
U_PORT_TEST_ASSERT(uCellSockGetBytesReceived(cellHandle, gSockHandleTcp) > 0);
// Close TCP socket with asynchronous callback
uPortLog("U_CELL_SOCK_TEST: closing sockets...\n");
U_PORT_TEST_ASSERT(uCellSockClose(cellHandle, gSockHandleTcp,
asyncClosedCallback) == 0);
U_PORT_TEST_ASSERT(!gClosedCallbackCalledUdp);
// Close the UDP socket
U_PORT_TEST_ASSERT(uCellSockClose(cellHandle, gSockHandleUdp,
NULL) == 0);
// Allow a task switch to let the close callback be called
uPortTaskBlock(U_CFG_OS_YIELD_MS);
U_PORT_TEST_ASSERT(gClosedCallbackCalledUdp);
uPortLog("U_CELL_SOCK_TEST: waiting up to %d second(s) for TCP"
" socket to close...\n",
U_SOCK_TEST_TCP_CLOSE_SECONDS);
for (size_t x = 0; (x < U_SOCK_TEST_TCP_CLOSE_SECONDS) &&
!gClosedCallbackCalledTcp; x++) {
uPortTaskBlock(1000);
}
U_PORT_TEST_ASSERT(gClosedCallbackCalledTcp);
U_PORT_TEST_ASSERT(gCallbackErrorNum == 0);
// Deinit cell sockets
uCellSockDeinit();
// Get the new value of the data counters, if supported
y = uCellNetGetDataCounterTx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
uPortLog("U_CELL_SOCK_TEST: %d byte(s) sent.\n", y);
U_PORT_TEST_ASSERT(y > 0);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
y = uCellNetGetDataCounterRx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
uPortLog("U_CELL_SOCK_TEST: %d byte(s) received.\n", y);
U_PORT_TEST_ASSERT(y > 0);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
// Reset the data counters and check that they were reset
y = uCellNetResetDataCounters(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
U_PORT_TEST_ASSERT(y == 0);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
y = uCellNetGetDataCounterTx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
// Note that we don't check for zero here: the closure of sockets
// is not necessarily synchronous with closure indication at the AT
// interface and so sometimes 52 bytes will be logged here
U_PORT_TEST_ASSERT(y <= 52);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
y = uCellNetGetDataCounterRx(cellHandle);
if (U_CELL_PRIVATE_HAS(pModule, U_CELL_PRIVATE_FEATURE_DATA_COUNTERS)) {
// Note that we don't check for zero here: the closure of sockets
// is not necessarily synchronous with closure indication at the AT
// interface and so sometimes 52 bytes will be logged here
U_PORT_TEST_ASSERT(y <= 52);
} else {
U_PORT_TEST_ASSERT(y < 0);
}
// Disconnect
U_PORT_TEST_ASSERT(uCellNetDisconnect(cellHandle, NULL) == 0);
// Do the standard postamble, leaving the module on for the next
// test to speed things up
uCellTestPrivatePostamble(&gHandles, false);
// Free memory
free(pBuffer);
// Check for memory leaks
heapUsed -= uPortGetHeapFree();
uPortLog("U_CELL_SOCK_TEST: we have leaked %d byte(s).\n", heapUsed);
// heapUsed < 0 for the Zephyr case where the heap can look
// like it increases (negative leak)
U_PORT_TEST_ASSERT(heapUsed <= 0);
}
/** Test setting/getting socket options.
* TODO: error cases.
*/
U_PORT_TEST_FUNCTION("[cellSock]", "cellSockOptionSetGet")
{
int32_t cellHandle;
void *pValue;
void *pValueSaved;
size_t length = 0;
int32_t heapUsed;
int32_t y;
// In case a previous test failed
uCellSockDeinit();
uCellTestPrivateCleanup(&gHandles);
// Obtain the initial heap size
heapUsed = uPortGetHeapFree();
// Do the standard preamble
U_PORT_TEST_ASSERT(uCellTestPrivatePreamble(U_CFG_TEST_CELL_MODULE_TYPE,
&gHandles, true) == 0);
cellHandle = gHandles.cellHandle;
// Connect to the network
gStopTimeMs = uPortGetTickTimeMs() +
(U_CELL_TEST_CFG_CONNECT_TIMEOUT_SECONDS * 1000);
y = uCellNetConnect(cellHandle, NULL,
#ifdef U_CELL_TEST_CFG_APN
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_APN),
#else
NULL,
#endif
#ifdef U_CELL_TEST_CFG_USERNAME
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_USERNAME),
#else
NULL,
#endif
#ifdef U_CELL_TEST_CFG_PASSWORD
U_PORT_STRINGIFY_QUOTED(U_CELL_TEST_CFG_PASSWORD),
#else
NULL,
#endif
keepGoingCallback);
U_PORT_TEST_ASSERT(y == 0);
// Init cell sockets
U_PORT_TEST_ASSERT(uCellSockInit() == 0);
U_PORT_TEST_ASSERT(uCellSockInitInstance(cellHandle) == 0);
// Create a TCP socket: needs to be TCP as some
// options only apply to TCP. We don't actually
// connect the socket or send any data during
// this test though.
gSockHandleTcp = uCellSockCreate(cellHandle, U_SOCK_TYPE_STREAM,
U_SOCK_PROTOCOL_TCP);
// Add callback
gClosedCallbackCalledTcp = false;
uCellSockRegisterCallbackClosed(cellHandle, gSockHandleTcp,
closedCallbackTcp);
// Determine the maximum size of storage we need for all supported options
for (size_t x = 0; x < sizeof(gSupportedOptions) /
sizeof(gSupportedOptions[0]); x++) {
if (((gSupportedOptions[x].excludeModulesBitmap &
(1UL << U_CFG_TEST_CELL_MODULE_TYPE)) == 0) &&
(gSupportedOptions[x].length > length)) {
length = gSupportedOptions[x].length;
}
}
// Malloc memory for our testing
pValue = malloc(length);
U_PORT_TEST_ASSERT(pValue != NULL);
pValueSaved = malloc(length);
U_PORT_TEST_ASSERT(pValueSaved != NULL);
// Now test all supported options
for (size_t x = 0; x < sizeof(gSupportedOptions) /
sizeof(gSupportedOptions[0]); x++) {
if ((gSupportedOptions[x].excludeModulesBitmap &
(1UL << U_CFG_TEST_CELL_MODULE_TYPE)) == 0) {
// Check that we can get the option value
checkOptionGet(cellHandle, gSockHandleTcp,
gSupportedOptions[x].level,
gSupportedOptions[x].option,
pValue,
gSupportedOptions[x].length,
gSupportedOptions[x].pComparer);
// Check that we are able to set an option
// value that is different to the current
// value and then put it back to normal
// again.
memcpy(pValueSaved, pValue, gSupportedOptions[x].length);
gSupportedOptions[x].pChanger(pValue);
checkOptionSet(cellHandle, gSockHandleTcp,
gSupportedOptions[x].level,
gSupportedOptions[x].option,
pValue,
gSupportedOptions[x].length,
gSupportedOptions[x].pComparer);
memcpy(pValue, pValueSaved, gSupportedOptions[x].length);
checkOptionSet(cellHandle, gSockHandleTcp,
gSupportedOptions[x].level,
gSupportedOptions[x].option,
pValue,
gSupportedOptions[x].length,
gSupportedOptions[x].pComparer);
}
}
// Free memory again
free(pValue);
free(pValueSaved);
// Close TCP socket, immediately since it was never
// connected
uPortLog("U_CELL_SOCK_TEST: closing sockets...\n");
U_PORT_TEST_ASSERT(!gClosedCallbackCalledTcp);
U_PORT_TEST_ASSERT(uCellSockClose(cellHandle,
gSockHandleTcp,
NULL) == 0);
uPortTaskBlock(U_CFG_OS_YIELD_MS);
U_PORT_TEST_ASSERT(gClosedCallbackCalledTcp);
U_PORT_TEST_ASSERT(gCallbackErrorNum == 0);
// Deinit cell sockets
uCellSockDeinit();
// Disconnect
U_PORT_TEST_ASSERT(uCellNetDisconnect(cellHandle, NULL) == 0);
// Do the standard postamble, leaving the module on for the next
// test to speed things up
uCellTestPrivatePostamble(&gHandles, false);
// Check for memory leaks
heapUsed -= uPortGetHeapFree();
uPortLog("U_CELL_SOCK_TEST: we have leaked %d byte(s).\n", heapUsed);
// heapUsed < 0 for the Zephyr case where the heap can look
// like it increases (negative leak)
U_PORT_TEST_ASSERT(heapUsed <= 0);
}
/** Clean-up to be run at the end of this round of tests, just
* in case there were test failures which would have resulted
* in the deinitialisation being skipped.
*/
U_PORT_TEST_FUNCTION("[cellSock]", "cellSockCleanUp")
{
int32_t x;
uCellSockDeinit();
uCellTestPrivateCleanup(&gHandles);
x = uPortTaskStackMinFree(NULL);
if (x != (int32_t) U_ERROR_COMMON_NOT_SUPPORTED) {
uPortLog("U_CELL_SOCK_TEST: main task stack had a minimum of %d"
" byte(s) free at the end of these tests.\n", x);
U_PORT_TEST_ASSERT(x >= U_CFG_TEST_OS_MAIN_TASK_MIN_FREE_STACK_BYTES);
}
uPortDeinit();
x = uPortGetHeapMinFree();
if (x >= 0) {
uPortLog("U_CELL_SOCK_TEST: heap had a minimum of %d"
" byte(s) free at the end of these tests.\n", x);
U_PORT_TEST_ASSERT(x >= U_CFG_TEST_HEAP_MIN_FREE_BYTES);
}
}
#endif // #ifdef U_CFG_TEST_CELL_MODULE_TYPE
// End of file
|
the_stack_data/131923.c | #include <curses.h>
int ungetch(int ch)
{
return 0;
}
/*
XOPEN(400)
LINK(curses)
*/
|
the_stack_data/154827142.c | //
// DXTC_Compress.c
// GLTC
//
// Created by Michael Kwasnicki on 22.02.12.
// Copyright (c) 2014 Michael Kwasnicki. All rights reserved.
// This content is released under the MIT License.
//
#include <stdio.h>
|
the_stack_data/23575898.c | #include <stddef.h>
/*
* You might be wondering: why are these functions written in C instead of
* Haskell? The answer is two-fold:
*
* * I could not write a Haskell version that was anywhere near as fast as the
* C version, short of error-prone buffer traversal with pointers [1].
*
* * The C code is clearer, thanks to C's built-in pointer increment notation,
* and to its character literals that are implicitly coerced to
* unsigned char.
*
* [1]: http://codereview.stackexchange.com/questions/9998/optimizing-bytestring-escaping
*/
/*
* Escape a datum for COPY FROM. The buffer pointed to by @out should be
* at least 2*in_size bytes long.
*
* Return a pointer to the end of the bytes emitted.
*/
unsigned char *c_postgresql_copy_escape_text(
const unsigned char *in, size_t in_size, unsigned char *out)
{
while (in_size-- > 0) {
unsigned char c = *in++;
/*
* http://www.postgresql.org/docs/current/static/sql-copy.html#AEN64058
*
* "... the following characters must be preceded by a backslash if
* they appear as part of a column value: backslash itself, newline,
* carriage return, and the current delimiter character."
*/
switch (c) {
case '\t':
*out++ = '\\';
*out++ = 't';
break;
case '\n':
*out++ = '\\';
*out++ = 'n';
break;
case '\r':
*out++ = '\\';
*out++ = 'r';
break;
case '\\':
*out++ = '\\';
*out++ = '\\';
break;
default:
*out++ = c;
}
}
return out;
}
/*
* Like c_postgresql_copy_escape_text, but escape the datum so it will be
* suitable for PostgreSQL's BYTEA input function. Note that this does not use
* the hex format introduced by PostgreSQL 9.0, as it is readable only by
* PostgreSQL 9.0 and up.
*
* This performs two escape operations:
*
* * Convert raw binary data to the format accepted by PostgreSQL's BYTEA
* input function.
*
* * Escape the result for use in COPY FROM data.
*
* The buffer pointed to by @out should be at least 5*in_size bytes long.
*/
unsigned char *c_postgresql_copy_escape_bytea(
const unsigned char *in, size_t in_size, unsigned char *out)
{
while (in_size-- > 0) {
unsigned char c = *in++;
if (c == '\\') {
/* Escape backslash twice, once for BYTEA, and again for COPY FROM. */
*out++ = '\\';
*out++ = '\\';
*out++ = '\\';
*out++ = '\\';
} else if (c >= 32 && c <= 126) {
/*
* Printable characters (except backslash) are subject to neither
* BYTEA escaping nor COPY FROM escaping.
*/
*out++ = c;
} else {
/*
* Escape using octal format. This consists of two backslashes
* (single backslash, escaped for COPY FROM) followed by three
* digits [0-7].
*
* We can't use letter escapes \t, \n, \r because:
*
* * The BYTEA input function doesn't understand letter escapes.
*
* * We could use only one backslash so BYTEA sees the literal
* octet values of 9, 10, and 13. However, we're escaping other
* non-printable characters for BYTEA; why give 9, 10, and 13
* special treatment?
*/
*out++ = '\\';
*out++ = '\\';
*out++ = '0' + ((c >> 6) & 0x7);
*out++ = '0' + ((c >> 3) & 0x7);
*out++ = '0' + (c & 0x7);
}
}
return out;
}
|
the_stack_data/59512028.c | /*
* pthread_join-test.c
*
* This simple test checks that thread creation and joining
* behaves as expected when run in sequence.
*
*/
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#define ARRAY_SIZE 100000
#define ITERATIONS 50000
#define RUNS 10000
#define PRINT_MOD 1000
#define printf_mod(x, ...) \
if (i % PRINT_MOD == 0) \
{ \
printf(x, ##__VA_ARGS__); \
}
typedef struct
{
int* a;
long n;
} subarray;
void* thread_worker(void* arg)
{
long i;
for (i = 0; i < ((subarray*)arg)->n; i++)
((subarray*)arg)->a[i]++;
/*
* The following getpid() does an LKL system call in this lthread,
* causing an allocation/dealloction of the associated LKL host
* thread.
*/
pid_t pid = getpid();
if (pid < 0)
{
printf("Did not get valid pid (pid=%i)\n", pid);
printf("TEST FAILED\n");
exit(-1);
}
}
int main(void)
{
int i;
int a[ARRAY_SIZE];
pthread_t thread1;
subarray subarray1;
int ret;
subarray1.a = &a[0];
subarray1.n = ITERATIONS;
for (i = 0; i < RUNS; i++)
{
printf_mod("Creating worker thread (run=%i)\n", i);
ret = pthread_create(&thread1, NULL, thread_worker, &subarray1);
if (ret != 0)
{
printf("Failed to create thread (ret=%i)\n", ret);
printf("TEST FAILED\n");
exit(-1);
}
printf_mod("Joining worker thread...\n");
int ret = pthread_join(thread1, NULL);
if (ret != 0)
{
printf("Failed to join thread (ret=%i)\n", ret);
printf("TEST FAILED\n");
exit(-1);
}
printf_mod("Thread joined (ret=%i, run=%i)\n", ret, i);
}
if (i == RUNS)
{
printf("TEST PASSED (pthread_join) runs=%i\n", i);
}
else
{
printf("Wrong number of runs\n");
printf("TEST FAILED\n");
}
return 0;
} |
the_stack_data/23576643.c | #include<stdio.h>
int main(){
int c;
while((c = getchar()) != EOF){
putchar(c);
}
/* on Unix use Ctrl-D to invoke EOF */
return 0;
}
|
the_stack_data/198579348.c | /****************************************************************************
****************************************************************************
* *
* Copyright (C) 2018 Genome Research Ltd. *
* *
* Author: Zemin Ning ([email protected]) *
* *
* This file is part of ScaffHiC pipeline. *
* *
* ScaffHiC is a 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/>. *
* *
****************************************************************************
****************************************************************************/
/****************************************************************************/
#include <math.h>
#include <values.h>
#include <stdio.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
#include <ctype.h>
#define PADCHAR '-'
#define Max_N_NameBase 60
#define Max_N_NameBase2 14
static char **R_Name;
static int *hit_rddex,*hit_score,*hit_rcdex,*hit_locus1,*superlength,*hit_matlocu1,*hit_matlocu2,*hit_matindex;
static int *ctg_length,*ctg_index,*hit_index,*scf_list,*scf_head,*scf_length,*scf_index,*scf_score,*ctg_inscf;
/* SSAS default parameters */
static int IMOD=0;
static int nContig=0;
static int file_flag = 1;
static int ctg_minlen = 100000;
static int max_ctg = 1000000;
static int mtg_length = 100000000;
static int n_depth = 60;
static int c_pairs = 100;
static int n_scaffs = 100;
static float m_score = 200.0;
static float d_score = 0.8;
static float c_score = 1.0;
static float NL_score = 0.0;
static float NR_score = 0.0;
static float N_score = 0.25;
static float l_score = 1.0;
static int i_getindex = 3;
static int j_getindex = 52;
int main(int argc, char **argv)
{
FILE *namef;
int i,j,nSeq,args,idt,num_hit,stopflag;
int n_contig,n_reads,nseq;
void Matrix_Process(char **argv,int args,int nSeq);
char *st,*ed;
char line[2000]={0},tempc1[60],rdname[60];
char **cmatrix(long nrl,long nrh,long ncl,long nch);
if(argc < 2)
{
printf("Usage: %s -depth 60 -score 200 <Input_HiC-alignment> <Output_matrix_agp>\n",argv[0]);
exit(1);
}
nSeq=0;
args=1;
for(i=1;i<argc;i++)
{
if(!strcmp(argv[i],"-mod"))
{
sscanf(argv[++i],"%d",&IMOD);
args=args+2;
}
else if(!strcmp(argv[i],"-depth"))
{
sscanf(argv[++i],"%d",&n_depth);
args=args+2;
}
else if(!strcmp(argv[i],"-len"))
{
sscanf(argv[++i],"%d",&ctg_minlen);
args=args+2;
}
else if(!strcmp(argv[i],"-score"))
{
sscanf(argv[++i],"%f",&m_score);
args=args+2;
}
else if(!strcmp(argv[i],"-degree"))
{
sscanf(argv[++i],"%f",&l_score);
args=args+2;
}
else if(!strcmp(argv[i],"-index"))
{
sscanf(argv[++i],"%d",&i_getindex);
args=args+2;
}
else if(!strcmp(argv[i],"-file"))
{
sscanf(argv[++i],"%d",&file_flag);
args=args+2;
}
}
fflush(stdout);
if(system("ps aux | grep scaffHiC_pmatrix; date") == -1)
{
// printf("System command error:\n);
}
nseq=0;
if((namef = fopen(argv[args+1],"r")) == NULL)
{
printf("ERROR main:: args \n");
exit(1);
}
while(!feof(namef))
{
if(fgets(line,2000,namef) == NULL)
{
// printf("fgets command error:\n);
}
if(feof(namef)) break;
nseq++;
}
fclose(namef);
n_scaffs = nseq;
if((scf_list = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - scf_list\n");
exit(1);
}
if((scf_head = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - scf_head\n");
exit(1);
}
if((scf_index = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - scf_index\n");
exit(1);
}
if((ctg_index = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_index\n");
exit(1);
}
if((ctg_inscf = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_index\n");
exit(1);
}
if((scf_length = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - scf_length\n");
exit(1);
}
if((scf_score = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - scf_score\n");
exit(1);
}
if((namef = fopen(argv[args+1],"r")) == NULL)
{
printf("ERROR main:: args \n");
exit(1);
}
i = 0;
while(fscanf(namef,"%s %d %d %s %s %s %d",rdname,&ctg_index[i],&scf_length[i],tempc1,tempc1,tempc1,&scf_score[i])!=EOF)
{
st = strrchr(rdname,'_');
scf_index[i] = atoi(st+1);
i++;
}
fclose(namef);
num_hit = i;
n_scaffs = 0;
for(i=0;i<num_hit;i++)
{
stopflag=0;
j=i+1;
while((j<num_hit)&&(stopflag==0))
{
if(scf_index[j]==scf_index[i])
{
j++;
}
else
stopflag=1;
}
// printf("www: %d %d %d\n",num_hit,n_scaffs,j-i);
scf_list[n_scaffs] = j-i;
n_scaffs++;
i=j-1;
}
scf_head[0] = 0;
for(i=1;i<=n_scaffs;i++)
{
scf_head[i] = scf_head[i-1] + scf_list[i-1];
}
for(i=0;i<n_scaffs;i++)
{
// printf("www: %d %d %d\n",num_hit,n_scaffs,scf_list[i]);
for(j=0;j<scf_list[i];j++)
{
int idd = scf_head[i]+j;
if(scf_list[i] >=2)
{
ctg_inscf[ctg_index[idd]] = j+1;
printf("num: %d %d %d %d %d\n",i,j,n_scaffs,scf_index[idd],ctg_index[idd],scf_list[i]);
}
}
}
nseq=0;
if((namef = fopen(argv[args],"r")) == NULL)
{
printf("ERROR main:: args \n");
exit(1);
}
while(!feof(namef))
{
if(fgets(line,2000,namef) == NULL)
{
// printf("fgets command error:\n);
}
if(feof(namef)) break;
nseq++;
}
fclose(namef);
if((hit_rddex = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - insert\n");
exit(1);
}
if((hit_score = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_score\n");
exit(1);
}
if((hit_rcdex = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_rcdex\n");
exit(1);
}
if((hit_locus1 = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_locus1\n");
exit(1);
}
if((ctg_length = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_length\n");
exit(1);
}
if((superlength = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - superlength\n");
exit(1);
}
if((hit_index = (int *)calloc(nseq,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_index\n");
exit(1);
}
nSeq=nseq;
R_Name=cmatrix(0,nseq+10,0,Max_N_NameBase);
n_contig=0;
n_reads=0;
printf("reads: %d %s\n",nseq,argv[args]);
if((namef = fopen(argv[args],"r")) == NULL)
{
printf("ERROR main:: reads group file \n");
exit(1);
}
/* read the alignment files */
i=0;
max_ctg = 0;
while(fscanf(namef,"%s %s %d %d %s %d",R_Name[i],rdname,&hit_locus1[i],&hit_score[i],tempc1,&superlength[i])!=EOF)
{
st = rdname;
ed = strrchr(rdname,'_');
idt = atoi(ed+1);
if(idt > max_ctg)
max_ctg = idt;
ctg_length[idt] = superlength[i];
hit_index[i] = idt;
i++;
}
fclose(namef);
max_ctg = max_ctg + 1;
n_reads=i;
Matrix_Process(argv,args,n_reads);
printf("Job finished for %d reads!\n",n_reads);
return EXIT_SUCCESS;
}
/* end of the main */
/* subroutine to sort out read pairs */
/* =============================== */
void Matrix_Process(char **argv,int args,int nSeq)
/* =============================== */
{
int i,j,k,m,n,n_scaff,n_blocks,len_thresd;
FILE *namef;
int *ctg_list,*ptp_list,*ptn_list,*ctg_print;
long num_cells,n_Bases;
int num_hits,num_hit1,num_hit2,rcdex,rsize,rsize2,size_row,dlinks[5];
int stopflag,offset,*ray,*dex;
void ArraySort_Mix(int n, long *arr, int *brr);
void ArraySort_float2(int n, float *arr, int *brr);
char **DBname,*st,*ed;
int **p_matrix,**s_matrix,**s2_matrix,**o_matrix,**r_matrix,**rc0_matrix,**rc1_matrix,**rc2_matrix,**rc3_matrix,**rc_matrix,**rcdex_matrix;
float rate,c_score1,c_score2,nl_score,nr_score,*Dis_index,*Dis_ratia1,*Dis_ratia2,*Dis_score1,*Dis_score2,*Dnd_score1,*Dnd_score2,*DD_score1,*DD_score2;
int **imatrix(long nrl,long nrh,long ncl,long nch);
float **fmatrix(long nrl,long nrh,long ncl,long nch);
void ArraySort2_Int2(int n, int *arr, int *brr);
void ArraySort_Int2(int n, int *arr, int *brr);
void Reads_Distribution(int n, int m, int *arr, int *brr);
void Normal_Distribution(int n, int m, int *arr, int *brr);
void Direction_Ratio(int n,int *arr);
int *ctg_score1,*ctg_score2,*ctg_mapp1,*ctg_mapp2,*ctg_join1,*ctg_join2,*ctg_idex1,*ctg_idex2,*ctg_mask,*ctg_rcdex1;
int *p_index,*p_rcdex,*p_masks,*p_score,*p_lists;
int *ctg_rcoo1,*ctg_rcoo2,*ctg_part1,*ctg_part2,*ctg_patnum;
int *ctg_output,*ctg_hitnum,*ctg_used,*ctg_links,*ctg_oodex1,*ctg_oodex2,*ctg_rcindex,*ctg_mpindex,*ctg_outrc;
int *hit_linksdex,*link_locus,*link_locu2,*link_locu3,*head_locus;
int n_length = ctg_minlen;
rsize = max_ctg+10;
n_blocks = rsize*rsize;
len_thresd = 25000000;
if((ctg_idex1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_idex1\n");
exit(1);
}
if((ctg_idex2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_idex2\n");
exit(1);
}
if((ctg_rcdex1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_mapp1\n");
exit(1);
}
if((ctg_mapp1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_mapp1\n");
exit(1);
}
if((ctg_mapp2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_mapp2\n");
exit(1);
}
if((ctg_part1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_part1\n");
exit(1);
}
if((ctg_part2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_part2\n");
exit(1);
}
if((ctg_score1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_score1\n");
exit(1);
}
if((ctg_score2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_score2\n");
exit(1);
}
if((ctg_join1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_join1\n");
exit(1);
}
if((ctg_join2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_join2\n");
exit(1);
}
if((ctg_mask = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_mask\n");
exit(1);
}
if((ctg_oodex1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_oodex1\n");
exit(1);
}
if((ctg_oodex2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_oodex2\n");
exit(1);
}
if((ctg_rcoo1 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_rcoo1\n");
exit(1);
}
if((ctg_rcoo2 = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_rcoo2\n");
exit(1);
}
if((ctg_hitnum = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_hitnum\n");
exit(1);
}
if((ctg_patnum = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_pattnum\n");
exit(1);
}
if((ctg_output = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_output\n");
exit(1);
}
if((ctg_used = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_used\n");
exit(1);
}
if((ctg_links = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_links\n");
exit(1);
}
if((ctg_rcindex = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_rcindex\n");
exit(1);
}
if((ctg_outrc = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_outrc\n");
exit(1);
}
if((ctg_list = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_list\n");
exit(1);
}
if((ptp_list = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ptp_list\n");
exit(1);
}
if((ptn_list = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ptn_list\n");
exit(1);
}
if((ctg_print = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_print\n");
exit(1);
}
if((ctg_mpindex = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_mpindex\n");
exit(1);
}
if((Dis_index = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_index\n");
exit(1);
}
if((Dis_ratia1 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_index\n");
exit(1);
}
if((Dis_ratia2 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_index\n");
exit(1);
}
if((DD_score1 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_score1\n");
exit(1);
}
if((DD_score2 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_score1\n");
exit(1);
}
if((Dis_score1 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_score1\n");
exit(1);
}
if((Dis_score2 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dis_score2\n");
exit(1);
}
if((Dnd_score1 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dnd_score1\n");
exit(1);
}
if((Dnd_score2 = (float *)calloc(rsize,sizeof(float))) == NULL)
{
printf("fmate: calloc - Dnd_score2\n");
exit(1);
}
if((p_index = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - p_index\n");
exit(1);
}
if((p_rcdex = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - p_rcdex\n");
exit(1);
}
if((p_score = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - p_score\n");
exit(1);
}
if((p_masks = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - p_mask\n");
exit(1);
}
if((p_lists = (int *)calloc(rsize,sizeof(int))) == NULL)
{
printf("fmate: calloc - p_lists\n");
exit(1);
}
if((link_locus = (int *)calloc(n_blocks,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_links\n");
exit(1);
}
if((head_locus = (int *)calloc(n_blocks,sizeof(int))) == NULL)
{
printf("fmate: calloc - head_locus\n");
exit(1);
}
if((link_locu2 = (int *)calloc(n_blocks,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_links\n");
exit(1);
}
if((link_locu3 = (int *)calloc(n_blocks,sizeof(int))) == NULL)
{
printf("fmate: calloc - ctg_links\n");
exit(1);
}
printf("contigs: %d %d %d\n",rsize,max_ctg,nSeq);
size_row = n_depth;
p_matrix=imatrix(0,rsize,0,rsize);
s_matrix=imatrix(0,rsize,0,rsize);
s2_matrix=imatrix(0,rsize,0,rsize);
o_matrix=imatrix(0,rsize,0,rsize);
r_matrix=imatrix(0,rsize,0,rsize);
rc0_matrix=imatrix(0,rsize,0,rsize);
rc1_matrix=imatrix(0,rsize,0,rsize);
rc2_matrix=imatrix(0,rsize,0,rsize);
rc3_matrix=imatrix(0,rsize,0,rsize);
rc_matrix=imatrix(0,rsize,0,rsize);
rcdex_matrix=imatrix(0,rsize,0,rsize);
num_hits =0;
k = 0;
offset = 0;
for(i=0;i<nSeq;i++)
{
stopflag=0;
j=i+1;
while((j<nSeq)&&(stopflag==0))
{
if(strcmp(R_Name[i],R_Name[j])==0)
{
j++;
}
else
stopflag=1;
}
if((j-i)>=2)
{
int idi,idt,len1,len2,loci1,loci2;
if(hit_index[i] < hit_index[i+1])
{
idi = hit_index[i];
idt = hit_index[i+1];
len1 = superlength[i]/2;
len2 = superlength[i+1]/2;
loci1 = hit_locus1[i];
loci2 = hit_locus1[i+1];
}
else
{
idi = hit_index[i+1];
idt = hit_index[i];
len2 = superlength[i]/2;
len1 = superlength[i+1]/2;
loci2 = hit_locus1[i];
loci1 = hit_locus1[i+1];
}
if(loci1 < len1)
{
if(loci2 < len2)
{
rc0_matrix[idi][idt]++;
}
else
{
rc2_matrix[idi][idt]++;
}
}
else
{
if(loci2 < len2)
{
rc1_matrix[idi][idt]++;
}
else
{
rc3_matrix[idi][idt]++;
}
}
}
else
{
printf("www: %s %d\n",R_Name[i],superlength[i]);
}
i=j-1;
}
for(i=0;i<max_ctg;i++)
{
for(j=0;j<max_ctg;j++)
{
if(j>i)
{
rc0_matrix[j][i] = rc0_matrix[i][j];
rc1_matrix[j][i] = rc2_matrix[i][j];
rc2_matrix[j][i] = rc1_matrix[i][j];
rc3_matrix[j][i] = rc3_matrix[i][j];
}
}
}
for(i=0;i<max_ctg;i++)
{
for(j=0;j<max_ctg;j++)
{
r_matrix[i][j] = rc0_matrix[i][j]+rc1_matrix[i][j]+rc2_matrix[i][j]+rc3_matrix[i][j];
}
}
num_cells = 0;
for(i=0;i<max_ctg;i++)
{
for(j=0;j<max_ctg;j++)
{
int idh = i*max_ctg;
hit_rddex[j] = j;
num_cells = num_cells+r_matrix[i][j];
link_locu3[idh+j] = r_matrix[i][j];
}
}
for(i=0;i<max_ctg;i++)
{
ctg_part1[i] = -1;
ctg_part2[i] = -1;
ctg_mapp1[i] = -1;
ctg_mapp2[i] = -1;
ctg_rcdex1[i] = -1;
}
head_locus[0] = 0;
for(i=1;i<n_blocks;i++)
{
head_locus[i] = head_locus[i-1] + link_locu3[i-1];
}
num_cells = num_cells + 20000;
if((hit_matlocu1 = (int *)calloc(num_cells,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_matlocus\n");
exit(1);
}
if((hit_matlocu2 = (int *)calloc(num_cells,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_matlocus\n");
exit(1);
}
if((hit_matindex = (int *)calloc(num_cells,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_matindex\n");
exit(1);
}
if((hit_linksdex = (int *)calloc(num_cells,sizeof(int))) == NULL)
{
printf("fmate: calloc - hit_linksdex\n");
exit(1);
}
for(i=0;i<num_cells;i++)
hit_linksdex[i] = i;
for(i=0;i<nSeq;i++)
{
stopflag=0;
j=i+1;
while((j<nSeq)&&(stopflag==0))
{
if(strcmp(R_Name[i],R_Name[j])==0)
{
j++;
}
else
stopflag=1;
}
if((j-i)>=2)
{
int idi,idt,ikk,len1,len2,loci1,loci2;
int idh1,idh2;
if(hit_index[i] < hit_index[i+1])
{
idi = hit_index[i];
idt = hit_index[i+1];
len1 = superlength[i]/2;
len2 = superlength[i+1]/2;
loci1 = hit_locus1[i];
loci2 = hit_locus1[i+1];
}
else
{
idi = hit_index[i+1];
idt = hit_index[i];
len2 = superlength[i]/2;
len1 = superlength[i+1]/2;
loci2 = hit_locus1[i];
loci1 = hit_locus1[i+1];
}
idh1 = idi*max_ctg+idt;
idh2 = idt*max_ctg+idi;
hit_matlocu1[head_locus[idh1]+link_locus[idh1]] = loci1;
hit_matlocu1[head_locus[idh2]+link_locu2[idh2]] = loci2;
link_locus[idh1]++;
link_locu2[idh2]++;
}
else
{
printf("www: %s %d\n",R_Name[i],superlength[i]);
}
i=j-1;
}
n_Bases = 0;
for(i=0;i<max_ctg;i++)
n_Bases = n_Bases + ctg_length[i];
printf("Total number of contigs: %d\n",max_ctg);
for(i=0;i<max_ctg;i++)
{
if(ctg_inscf[i] > 0)
{
for(j=0;j<max_ctg;j++)
hit_rddex[j] = j;
Dis_index[i] = 0.0;
ArraySort2_Int2(max_ctg,r_matrix[i],hit_rddex);
memset(ctg_rcindex,0,4*max_ctg);
printf("scaffold: %d %d %d\n",i,max_ctg,ctg_length[i]);
printf("matrix: %d %d\n",max_ctg,ctg_length[i]);
for(j=0;j<size_row;j++)
{
int idi,idj,offset1,offset2,c1_pairs,c2_pairs;
int idd = hit_rddex[j];
int n_pairs = r_matrix[i][j];
int n_pairs_half = n_pairs/2;
float rr1,rr2,rat1,rat2,sq1,sq2,rat_size;
int halflen_1,halflen_2,half_len1,half_len2;
int rcindex1,rcindex2,rcindex;
rcindex1 = 1;
rcindex2 = 1;
idi = i;
idj = hit_rddex[j];
offset1 = head_locus[idi*max_ctg+idj];
offset2 = head_locus[idj*max_ctg+idi];
ray = hit_matlocu1;
dex = hit_linksdex;
ArraySort_Int2(n_pairs,ray+offset1,dex+offset1);
ArraySort_Int2(n_pairs,ray+offset2,dex+offset2);
halflen_1 = hit_matlocu1[offset1+n_pairs_half];
halflen_2 = hit_matlocu1[offset2+n_pairs_half];
half_len1 = ctg_length[idi]/2;
half_len2 = ctg_length[idj]/2;
if(halflen_1 > ctg_length[idi]/2)
{
rcindex1 = 0;
halflen_1 = ctg_length[idi]-halflen_1;
}
if(halflen_2 > ctg_length[idj]/2)
{
rcindex2 = 0;
halflen_2 = ctg_length[idj]-halflen_2;
}
if(rcindex1 == 0)
{
if(rcindex2 == 0)
rcindex = 0;
else
rcindex = 1;
}
else
{
if(rcindex2 == 0)
rcindex = 2;
else
rcindex = 3;
}
ctg_rcindex[j] = rcindex;
rat1 = half_len1;
rat1 = rat1/halflen_1;
rat2 = half_len2;
rat2 = rat2/halflen_2;
if(rat1 > 10.0)
rat1 = 1.0;
if(rat2 > 10.0)
rat2 = 1.00;
c1_pairs = n_pairs;
c2_pairs = n_pairs;
c_score1 = 1.0;
if((rat1 > 1.8)||(rat2 > 1.8)||(ctg_length[idi] < 1000000))
{
i_getindex = idi;
j_getindex = idj;
Reads_Distribution(n_pairs,ctg_length[idi],ray+offset1,dex+offset1);
// printf("Distribute: %d %d %d %d %f %f || %d %d\n",halflen_1,halflen_2,half_len1,half_len2,d_score,c_score,n_pairs,c_pairs);
c_score1 = c_score;
c1_pairs = c_pairs;
}
c_score2 = 1.0;
// if((rat1 > 2.0)||(rat2 > 2.0))
if((rat1 > 1.8)||(rat2 > 1.8)||(ctg_length[idj] < 1000000))
{
i_getindex = idj;
j_getindex = idi;
Reads_Distribution(n_pairs,ctg_length[idj],ray+offset2,dex+offset2);
// printf("Distribute: %d %d %d %d %f %f || %d %d\n",halflen_1,halflen_2,half_len1,half_len2,d_score,c_score,n_pairs,c_pairs);
c_score2 = c_score;
c2_pairs = c_pairs;
}
if(c1_pairs > c2_pairs)
c_pairs = c2_pairs;
else
c_pairs = c1_pairs;
c_pairs = n_pairs;
rr1 = n_Bases;
rr1 = rr1/nSeq;
rr1 = rr1*c_pairs*1000.0;
rr1 = rr1/half_len1;
rr1 = rr1*(rat1 - 1.0);
// rr1 = rr1/half_len1;
rr2 = n_Bases;
rr2 = rr2/nSeq;
rr2 = rr2*c_pairs*1000.0;
rr2 = rr2/half_len2;
rr2 = rr2*(rat2 - 1.0);
// rr2 = rr2/half_len2;
nl_score = 0.0;
nr_score = 0.0;
if(ctg_length[idi] > ctg_length[idj])
{
rat_size = ctg_length[idi];
rat_size = rat_size/ctg_length[idj];
if(rat_size > 30.0)
{
i_getindex = idi;
j_getindex = idj;
Normal_Distribution(n_pairs,ctg_length[idi],ray+offset1,dex+offset1);
nl_score = NL_score;
nr_score = NR_score;
// printf("Distribute: %d %d %d %d | %f %f\n",n_pairs,idi,idj,ctg_length[idi],nl_score,nr_score);
}
}
else
{
rat_size = ctg_length[idj];
rat_size = rat_size/ctg_length[idi];
if(rat_size > 30.0)
{
i_getindex = idi;
j_getindex = idj;
Normal_Distribution(n_pairs,ctg_length[idj],ray+offset2,dex+offset2);
nl_score = NL_score;
nr_score = NR_score;
// printf("Distribute: %d %d %d %d | %f %f\n",n_pairs,idi,idj,ctg_length[idi],nl_score,nr_score);
}
}
DD_score1[j] = rr1;
DD_score2[j] = rr2;
Dis_score1[j] = c_score1;
Dis_score2[j] = c_score2;
Dnd_score1[j] = nl_score;
Dnd_score2[j] = nr_score;
Dis_ratia1[j] = rat1;
Dis_ratia2[j] = rat2;
Dis_index[j] = rr1*rr2;
printf("%6d | %6d %d %d | %f %f %f %f | %f %f %f %4d %4d %4d %4d\n",ctg_length[idd],r_matrix[i][j],hit_rddex[j],rcindex,rat1,rat2,c_score1,c_score2,rr1,rr2,rr1*rr2,rc0_matrix[i][idd],rc1_matrix[i][idd],rc2_matrix[i][idd],rc3_matrix[i][idd]);
}
if((ctg_length[i]>=n_length))
{
int OO_index1 = 0;
int OO_index2 = 0;
int hitmax1 = 0;
int hitmax2 = 0;
int ctgmax1 = 0;
int ctgmax2 = 0;
int idi,idj,disidd;
float disdex = 0.0;
float disdex2 = 0.0;
float rr,rr2,rr3,M_score;
OO_index1 = 0;
for(k=0;k<max_ctg;k++)
{
float DS = 0.0;
if(DD_score1[k] >= DD_score2[k])
{
DS = DD_score1[k];
if(DD_score2[k] == 0.0)
DS = 1000;
else
DS = DS/DD_score2[k];
}
else
{
DS = Dis_score2[k];
if(DD_score1[k] == 0.0)
DS = 1000;
else
DS = DS/DD_score1[k];
}
// if(i==41)
// printf("Dis: %d %f %f %f\n",k,DD_score1[k],DD_score2[k],DS);
if((ctg_length[hit_rddex[k]]>=n_length)&&(disdex < Dis_index[k])&&(ctg_rcindex[k]<2)&&(Dis_ratia1[k] > 1.02)&&(Dis_ratia2[k] > 1.02)&&(Dis_score1[k] >= d_score)&&(Dis_score2[k] >= d_score)&&(Dnd_score1[k]<=N_score)&&(Dnd_score2[k]<=N_score)&&(DS < 50))
{
disdex = Dis_index[k];
OO_index1 = ctg_rcindex[k];
disidd = k;
}
}
if((ctg_length[i] < len_thresd)&&(ctg_length[hit_rddex[disidd]]< len_thresd))
{
M_score = m_score;
}
else
{
float set1 = ctg_length[i];
float set2 = ctg_length[hit_rddex[disidd]];
set1 = set1/len_thresd;
set2 = set2/len_thresd;
M_score = (set1+set2)*m_score*l_score;
}
dlinks[0] = rc0_matrix[i][hit_rddex[disidd]];
dlinks[1] = rc1_matrix[i][hit_rddex[disidd]];
dlinks[2] = rc2_matrix[i][hit_rddex[disidd]];
dlinks[3] = rc3_matrix[i][hit_rddex[disidd]];
dlinks[4] = 0;
Direction_Ratio(i,dlinks);
if((disdex > M_score)&&(dlinks[4] == 1))
{
if(dlinks[0] == rc0_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 1;
rcdex_matrix[hit_rddex[disidd]][i] = 1;
}
else if(dlinks[0] == rc1_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 2;
rcdex_matrix[hit_rddex[disidd]][i] = 3;
}
else if(dlinks[0] == rc2_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 3;
rcdex_matrix[hit_rddex[disidd]][i] = 2;
}
else if(dlinks[0] == rc3_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 4;
rcdex_matrix[hit_rddex[disidd]][i] = 4;
}
if((ctg_length[i] >= mtg_length)&&(ctg_length[hit_rddex[disidd]] >= mtg_length))
printf("mapp: 1 max %d %d %d || %f %d %d %f %f || %d %d %d | %f %f\n",i,hit_rddex[disidd],r_matrix[i][disidd],disdex,OO_index1,ctg_oodex1[i],Dis_ratia1[disidd],Dis_ratia2[disidd],ctg_length[i],ctg_length[hit_rddex[disidd]],rcdex_matrix[i][hit_rddex[disidd]],Dnd_score1[disidd],M_score);
else
printf("mapp: 1 %d %d %d || %f %d %d %f %f || %d %d %d | %f %f\n",i,hit_rddex[disidd],r_matrix[i][disidd],disdex,OO_index1,ctg_oodex1[i],Dis_ratia1[disidd],Dis_ratia2[disidd],ctg_length[i],ctg_length[hit_rddex[disidd]],rcdex_matrix[i][hit_rddex[disidd]],Dnd_score1[disidd],M_score);
ctg_mapp1[i] = hit_rddex[disidd];
ctg_score1[i] = disdex;
ctg_rcoo1[i] = OO_index1;
/* add new lines */
if((rcdex_matrix[i][hit_rddex[disidd]] == 1)||(rcdex_matrix[i][hit_rddex[disidd]] == 4))
rc_matrix[i][hit_rddex[disidd]] = 1;
else
rc_matrix[i][hit_rddex[disidd]] = 0;
rc_matrix[hit_rddex[disidd]][i] = rc_matrix[i][hit_rddex[disidd]];
ptp_list[i]++;
ptn_list[hit_rddex[disidd]]++;
ctg_hitnum[i]++;
}
OO_index2 = 0;
for(k=0;k<max_ctg;k++)
{
float DS = 0.0;
if(DD_score1[k] >= DD_score2[k])
{
DS = DD_score1[k];
if(DD_score2[k] == 0.0)
DS = 1000;
else
DS = DS/DD_score2[k];
}
else
{
DS = DD_score2[k];
if(DD_score1[k] == 0.0)
DS = 1000;
else
DS = DS/DD_score1[k];
}
if((ctg_length[hit_rddex[k]]>=n_length)&&(disdex2 < Dis_index[k])&&(ctg_rcindex[k]>=2)&&(Dis_ratia1[k] > 1.02)&&(Dis_ratia2[k] > 1.02)&&(Dis_score1[k] >= d_score)&&(Dis_score2[k] >= d_score)&&(Dnd_score1[k]<=N_score)&&(Dnd_score2[k]<=N_score)&&(DS < 50))
{
disdex2 = Dis_index[k];
OO_index2 = ctg_rcindex[k];
disidd = k;
}
}
if((ctg_length[i] < len_thresd)&&(ctg_length[hit_rddex[disidd]]< len_thresd))
{
M_score = m_score;
}
else
{
float set1 = ctg_length[i];
float set2 = ctg_length[hit_rddex[disidd]];
set1 = set1/len_thresd;
set2 = set2/len_thresd;
M_score = (set1+set2)*m_score*l_score;
}
dlinks[0] = rc0_matrix[i][hit_rddex[disidd]];
dlinks[1] = rc1_matrix[i][hit_rddex[disidd]];
dlinks[2] = rc2_matrix[i][hit_rddex[disidd]];
dlinks[3] = rc3_matrix[i][hit_rddex[disidd]];
dlinks[4] = 0;
Direction_Ratio(i,dlinks);
if((disdex2 > M_score)&&(dlinks[4] == 1))
{
if(dlinks[0] == rc0_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 1;
rcdex_matrix[hit_rddex[disidd]][i] = 1;
}
else if(dlinks[0] == rc1_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 2;
rcdex_matrix[hit_rddex[disidd]][i] = 3;
}
else if(dlinks[0] == rc2_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 3;
rcdex_matrix[hit_rddex[disidd]][i] = 2;
}
else if(dlinks[0] == rc3_matrix[i][hit_rddex[disidd]])
{
rcdex_matrix[i][hit_rddex[disidd]] = 4;
rcdex_matrix[hit_rddex[disidd]][i] = 4;
}
if((ctg_length[i] >= mtg_length)&&(ctg_length[hit_rddex[disidd]] >= mtg_length))
printf("mapp: 2 max %d %d %d || %f %d %d %f %f || %d %d %d | %f %f\n",i,hit_rddex[disidd],r_matrix[i][disidd],disdex2,OO_index2,ctg_oodex2[i],Dis_ratia1[disidd],Dis_ratia2[disidd],ctg_length[i],ctg_length[hit_rddex[disidd]],rcdex_matrix[i][hit_rddex[disidd]],Dnd_score1[disidd],M_score);
else
printf("mapp: 2 %d %d %d || %f %d %d %f %f || %d %d %d | %f %f\n",i,hit_rddex[disidd],c_pairs,disdex2,OO_index2,ctg_oodex2[i],Dis_ratia1[disidd],Dis_ratia2[disidd],ctg_length[i],ctg_length[hit_rddex[disidd]],rcdex_matrix[i][hit_rddex[disidd]],Dnd_score1[disidd],M_score);
// printf("mapp: 2 %d %d %d || %f %d %d %f %f || %d %d %d | %f %f\n",i,hit_rddex[disidd],r_matrix[i][disidd],disdex2,OO_index2,ctg_oodex2[i],Dis_ratia1[disidd],Dis_ratia2[disidd],ctg_length[i],ctg_length[hit_rddex[disidd]],rcdex_matrix[i][hit_rddex[disidd]],Dnd_score1[disidd],M_score);
ctg_mapp2[i] = hit_rddex[disidd];
ctg_score2[i] = disdex2;
ctg_rcoo2[i] = OO_index2;
ctg_rcdex1[i] = OO_index2;
/* add new lines */
if((rcdex_matrix[i][hit_rddex[disidd]] == 1)||(rcdex_matrix[i][hit_rddex[disidd]] == 4))
rc_matrix[i][hit_rddex[disidd]] = 1;
else
rc_matrix[i][hit_rddex[disidd]] = 0;
rc_matrix[hit_rddex[disidd]][i] = rc_matrix[i][hit_rddex[disidd]];
ptp_list[i]++;
ptn_list[hit_rddex[disidd]]++;
ctg_hitnum[i]++;
}
}
}
}
printf("Scaff: 1 %d \n",n_scaffs);
for(i=0;i<n_scaffs;i++)
{
for(j=0;j<scf_list[i];j++)
{
int idd = scf_head[i]+j;
if(ctg_inscf[ctg_index[idd]] > 0)
printf("Scaff: 2 %d %d %d %d %d %d \n",i,j,scf_index[idd],scf_length[idd],ctg_index[idd],scf_score[idd]);
}
}
}
/* ========================================================= */
void Reads_Distribution(int nSeq, int R_len, int *rd_locus, int *rd_index)
/* ========================================================= */
{
int i,j,k,stopflag,num_steps,num_ave,*n_hit;
int num_hits,BAR = 5000;
int nstep = 20000;
double rate,rate2;
if((n_hit= (int *)calloc(nSeq,sizeof(int))) == NULL)
{
printf("ERROR Memory_Allocate: n_hit\n");
exit(1);
}
num_hits = 0;
num_steps = 0;
for(i=0;i<nSeq;i++)
{
/* search reads with an index < i */
/* search reads with an index > i */
stopflag=0;
j=i+1;
while((j<nSeq)&&(stopflag==0))
{
if((rd_locus[j]<(BAR+nstep))&&(rd_locus[i]>=BAR))
{
j++;
}
else
stopflag=1;
}
if((j-i)>=3)
{
rate = (j-i)*100;
rate = rate/nSeq;
// if((i_getindex == 3)&&(j_getindex == 52))
// printf("frequency:%d %d %f\n",j-i,BAR,rate);
n_hit[num_hits] = j-i;
BAR = BAR+nstep;
num_hits++;
num_steps++;
}
else if((j-i)<=2)
{
rate = 100;
rate = rate/nSeq;
BAR = rd_locus[i];
// num_steps++;
}
i=j-1;
}
rate2 = 0.0;
rate = R_len;
rate = rate/nstep;
if(num_steps > 0)
{
rate2 = num_steps;
rate2 = rate2/rate;
}
else
rate2 = 0.0;
c_score = rate2;
num_ave = nSeq;
if(num_hits == 0)
c_pairs = nSeq;
else
{
num_ave = num_ave/num_hits;
num_ave = num_ave*5;
c_pairs = 0;
for(i=0;i<num_hits;i++)
{
if(n_hit[i] <= num_ave)
c_pairs = c_pairs+n_hit[i];
}
}
// printf("Num_steps: %d %lf %lf %d\n",num_steps,rate,rate2,R_len);
}
/* ======================================= */
void Direction_Ratio(int nSeq,int *dlinks)
/* ======================================= */
{
double mf1,mf2,sigama;
int dlink_index[5];
int i,j,k;
void ArraySort2_Int2(int n, int *arr, int *brr);
for(i=0;i<4;i++)
dlink_index[i] = i;
ArraySort2_Int2(4,dlinks,dlink_index);
mf1 = dlinks[1];
mf1 = mf1/dlinks[0];
if(mf1 > 0.9)
dlinks[4] = 0;
else
dlinks[4] = 1;
}
/* ========================================================= */
void Normal_Distribution(int nSeq, int R_len, int *rd_locus, int *rd_index)
/* ========================================================= */
{
int i,j,k,stopflag,num_steps,num_hits,num_reads;
int hit_max,hit_loc,hit_buk,hit_siga;
int *n_hit,*s_len,BAR = 5000;
int nstep = 20000;
double rate,rate2,sigama;
if((n_hit= (int *)calloc(nSeq,sizeof(int))) == NULL)
{
printf("ERROR Memory_Allocate: n_hit\n");
exit(1);
}
if((s_len= (int *)calloc(nSeq,sizeof(int))) == NULL)
{
printf("ERROR Memory_Allocate: s_len\n");
exit(1);
}
num_reads = 0;
num_hits = 0;
num_steps = 0;
for(i=0;i<nSeq;i++)
{
/* search reads with an index < i */
/* search reads with an index > i */
stopflag=0;
j=i+1;
while((j<nSeq)&&(stopflag==0))
{
if((rd_locus[j]<(BAR+nstep))&&(rd_locus[i]>=BAR))
{
j++;
}
else
stopflag=1;
}
if((j-i)>1)
{
rate = (j-i)*100;
rate = rate/nSeq;
BAR = BAR+nstep;
n_hit[num_hits] = j-i;
s_len[num_hits] = rd_locus[i];
// printf("Array: %d %d %d %d %lf\n",nSeq,num_hits,j-i,s_len[num_hits],rate);
num_hits++;
num_steps++;
}
else if((j-i)==1)
{
rate = 100;
rate = rate/nSeq;
BAR = rd_locus[i];
}
i=j-1;
}
hit_max = 0;
hit_loc = 0;
hit_buk = 0;
nSeq = num_hits;
for(i=0;i<nSeq;i++)
{
if(n_hit[i] > hit_max)
{
hit_max = n_hit[i];
hit_loc = s_len[i];
hit_buk = i;
}
num_reads = num_reads + n_hit[i];
}
hit_siga = 0;
hit_max = 0;
rate = 0.0;
for(i=hit_buk;i<nSeq;i++)
{
hit_max = hit_max + n_hit[i];
sigama = hit_max;
sigama = sigama/num_reads;
if(sigama >= 0.341)
{
hit_siga = s_len[i]-hit_loc;
rate = s_len[i]-hit_loc;
rate = rate/s_len[nSeq-1];
// printf("AA: %d %d %lf\n",i,s_len[i],rate);
i = nSeq;
}
}
/*
if(rate == 0.0)
printf("F: %d %d %lf %d\n",i,s_len[nSeq-1],rate,nSeq);
else
printf("F: %d %d %lf\n",i,s_len[i],rate); */
NL_score = rate;
hit_max = 0;
rate = 0.0;
j = 0;
for(i=hit_buk;i>=0;i--)
{
hit_max = hit_max + n_hit[i];
sigama = hit_max;
sigama = sigama/num_reads;
if(sigama >= 0.341)
{
hit_siga = s_len[i]-hit_loc;
rate = hit_loc-s_len[i];
rate = rate/s_len[nSeq-1];
// printf("BB: %d %d %lf\n",i,s_len[i],rate);
j = i;
i = -1;
}
}
/*
if(rate == 0.0)
printf("B: %d %d %lf\n",0,s_len[0],rate);
else
printf("B: %d %d %lf\n",j,s_len[j],rate); */
NR_score = rate;
}
#define SWAP(a,b) temp=(a);(a)=b;(b)=temp;
/* Subroutine to sort an array arr[0,...,n-1] into ascending order while
making the corresponding reaarangement of the array brr[0,...,n-1]
by the use of Quicksort (Sedgwick, R. 1978, Communications o fthe ACM,
vol. 21, pp. 847-857) also see Numerical Recipes in C */
/* =============================== */
void ArraySort_Long(int n, long *arr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,NSTACK=50,istack[NSTACK];
long a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
}
arr[i+1]=a;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* =============================== */
void ArraySort_Int(int n, int *arr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,NSTACK=50,istack[NSTACK];
int a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
}
arr[i+1]=a;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* =============================== */
void ArraySort_Mix(int n, long *arr, int *brr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,b,NSTACK=50,istack[NSTACK];
long a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
}
arr[i+1]=a;
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* =============================== */
void ArraySort_Int2(int n, int *arr, int *brr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,b,NSTACK=50,istack[NSTACK];
int a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
}
arr[i+1]=a;
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* =============================== */
void ArraySort_float(int n, float *arr, int *brr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,b,jstack=0,NSTACK=50,istack[NSTACK],MIN=7;
float a,temp;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
}
arr[i+1]=a;
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* function to sort an array into a decreasing order: a>b>c>.... */
/* =============================== */
void ArraySort2_Int2(int n, int *arr, int *brr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,b,NSTACK=50,istack[NSTACK];
int a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]>=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
}
arr[i+1]=a;
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
if(arr[m]<arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
}
if(arr[m+1]<arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
}
if(arr[m]<arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
for(;;)
{
do i++; while (arr[i]>a);
do j--; while (arr[j]<a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* function to sort an array into a decreasing order: a>b>c>.... */
/* =============================== */
void ArraySort_float2(int n, float *arr, int *brr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,b,jstack=0,NSTACK=50,istack[NSTACK],MIN=7;
float a,temp;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]>=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
}
arr[i+1]=a;
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
if(arr[m]<arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
}
if(arr[m+1]<arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
}
if(arr[m]<arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
for(;;)
{
do i++; while (arr[i]>a);
do j--; while (arr[j]<a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* =============================== */
void ArraySort_Mix3(int n, long *arr, int *brr, int *crr)
/* =============================== */
{
int i,ir=n-1,j,k,m=0,jstack=0,b,c,NSTACK=50,istack[NSTACK];
long a,temp,MIN=7;
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
a=arr[j];
b=brr[j];
c=crr[j];
for(i=j-1;i>=m;i--)
{
if(arr[i]<=a) break;
arr[i+1]=arr[i];
brr[i+1]=brr[i];
crr[i+1]=crr[i];
}
arr[i+1]=a;
brr[i+1]=b;
crr[i+1]=c;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
SWAP(arr[k],arr[m+1]);
SWAP(brr[k],brr[m+1]);
SWAP(crr[k],crr[m+1]);
if(arr[m]>arr[ir])
{
SWAP(arr[m],arr[ir]);
SWAP(brr[m],brr[ir]);
SWAP(crr[m],crr[ir]);
}
if(arr[m+1]>arr[ir])
{
SWAP(arr[m+1],arr[ir]);
SWAP(brr[m+1],brr[ir]);
SWAP(crr[m+1],crr[ir]);
}
if(arr[m]>arr[m+1])
{
SWAP(arr[m],arr[m+1]);
SWAP(brr[m],brr[m+1]);
SWAP(crr[m],crr[m+1]);
}
i=m+1;
j=ir;
a=arr[m+1];
b=brr[m+1];
c=crr[m+1];
for(;;)
{
do i++; while (arr[i]<a);
do j--; while (arr[j]>a);
if(j<i) break;
SWAP(arr[i],arr[j]);
SWAP(brr[i],brr[j]);
SWAP(crr[i],crr[j]);
}
arr[m+1]=arr[j];
arr[j]=a;
brr[m+1]=brr[j];
brr[j]=b;
crr[m+1]=crr[j];
crr[j]=c;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* to swap the string arrays */
/* ============================================= */
void s_swap(char **Pair_Name, int i, int j)
/* ============================================= */
{
char temp[Max_N_NameBase];
strcpy(temp,Pair_Name[i]);
strcpy(Pair_Name[i],Pair_Name[j]);
strcpy(Pair_Name[j],temp);
}
/* to sort the string array in order */
/* ============================================= */
void ArraySort_String(int n, char **Pair_Name, int *brr)
/* ============================================= */
{
int i,ir=n-1,j,k,m=0,jstack=0,b,NSTACK=50,istack[NSTACK];
int temp,MIN=7;
char p[Max_N_NameBase];
for(;;)
{
/* Insertion sort when subarray is small enough */
if(ir-m<MIN)
{
for(j=m+1;j<=ir;j++)
{
strcpy(p,Pair_Name[j]);
b=brr[j];
for(i=j-1;i>=m;i--)
{
if(strcmp(Pair_Name[i],p)<=0) break;
strcpy(Pair_Name[i+1],Pair_Name[i]);
brr[i+1]=brr[i];
}
strcpy(Pair_Name[i+1],p);
brr[i+1]=b;
}
if(!jstack) return;
ir=istack[jstack--];
m=istack[jstack--];
}
else
{
k=(m+ir)>>1;
s_swap(Pair_Name,k,m+1);
SWAP(brr[k],brr[m+1]);
if(strcmp(Pair_Name[m],Pair_Name[ir])>0)
{
s_swap(Pair_Name,m,ir);
SWAP(brr[m],brr[ir]);
}
if(strcmp(Pair_Name[m+1],Pair_Name[ir])>0)
{
s_swap(Pair_Name,m+1,ir);
SWAP(brr[m+1],brr[ir]);
}
if(strcmp(Pair_Name[m],Pair_Name[m+1])>0)
{
s_swap(Pair_Name,m,m+1);
SWAP(brr[m],brr[m+1]);
}
i=m+1;
j=ir;
strcpy(p,Pair_Name[m+1]);
b=brr[m+1];
for(;;)
{
do i++; while (strcmp(Pair_Name[i],p)<0);
do j--; while (strcmp(Pair_Name[j],p)>0);
if(j<i) break;
s_swap(Pair_Name,i,j);
SWAP(brr[i],brr[j]);
}
strcpy(Pair_Name[m+1],Pair_Name[j]);
strcpy(Pair_Name[j],p);
brr[m+1]=brr[j];
brr[j]=b;
jstack+=2;
/* Push pointers to larger subarray on stack */
/* process smaller subarray immediately */
if(jstack>NSTACK)
{
printf("Stack error: NSTACK too small\n");
exit(0);
}
if(ir-i+1>=j-m)
{
istack[jstack]=ir;
istack[jstack-1]=i;
ir=j-1;
}
else
{
istack[jstack]=j-1;
istack[jstack-1]=m;
m=i;
}
}
}
}
/* creat an int matrix with subscript ange m[nrl...nrh][ncl...nch] */
int **imatrix(long nrl,long nrh,long ncl,long nch)
{
long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
int **m;
/* allocate pointers to rows */
if((m=(int **)calloc(nrow,sizeof(int*)))==NULL)
{
printf("error imatrix: calloc error No. 1 \n");
return(NULL);
}
m+=0;
m-=nrl;
/* allocate rows and set pointers to them */
if((m[nrl]=(int *)calloc(nrow*ncol,sizeof(int)))==NULL)
{
printf("error imatrix: calloc error No. 2 \n");
return(NULL);
}
m[nrl]+=0;
m[nrl]-=nrl;
for(i=nrl+1;i<=nrh;i++)
m[i]=m[i-1]+ncol;
/* return pointer to array of pointers to rows */
return m;
}
/* creat char matrix with subscript ange cm[nrl...nrh][ncl...nch] */
char **cmatrix(long nrl,long nrh,long ncl,long nch)
{
long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
char **cm;
/* allocate pointers to rows */
if((cm=(char **)calloc(nrow,sizeof(char*)))==NULL)
{
printf("error cmatrix: calloc error No. 1 \n");
return(NULL);
}
cm+=0;
cm-=nrl;
/* allocate rows and set pointers to them */
if((cm[nrl]=(char *)calloc(nrow*ncol,sizeof(char)))==NULL)
{
printf("error cmatrix: calloc error No. 2 \n");
return(NULL);
}
cm[nrl]+=0;
cm[nrl]-=nrl;
for(i=nrl+1;i<=nrh;i++)
cm[i]=cm[i-1]+ncol;
/* return pointer to array of pointers to rows */
return cm;
}
/* creat char matrix with subscript ange fm[nrl...nrh][ncl...nch] */
float **fmatrix(long nrl,long nrh,long ncl,long nch)
{
long i, nrow=nrh-nrl+1,ncol=nch-ncl+1;
float **fm;
/* allocate pointers to rows */
if((fm=(float **)calloc(nrow,sizeof(float*)))==NULL)
{
printf("error fmatrix: calloc error No. 1 \n");
return(NULL);
}
fm+=0;
fm-=nrl;
/* allocate rows and set pointers to them */
if((fm[nrl]=(float *)calloc(nrow*ncol,sizeof(float)))==NULL)
{
printf("error fmatrix: calloc error No. 2 \n");
return(NULL);
}
fm[nrl]+=0;
fm[nrl]-=nrl;
for(i=nrl+1;i<=nrh;i++)
fm[i]=fm[i-1]+ncol;
/* return pointer to array of pointers to rows */
return fm;
}
|
the_stack_data/156392801.c | #include<stdio.h>
#include<string.h>
int main()
{
char str[]="welcome";
printf("%s\n", str);
printf("%s\n", str+3);
printf("%c\n", str[5]);
return 0;
}
|
the_stack_data/132953349.c | #include <stdlib.h>
#include <stdio.h>
#include <sys/time.h>
#include <event.h>
void onTime(int sock, short event, void *arg) {
printf("Hello, world!\n");
struct timeval tv;
tv.tv_sec = 1;
tv.tv_usec = 0;
event_add((struct event*)arg, &tv);
}
int main() {
event_init();
struct event ev_time;
evtimer_set(&ev_time, onTime, &ev_time);
struct timeval tv;
tv.tv_sec = 1;
tv.tv_usec = 0;
event_add(&ev_time, &tv);
event_dispatch();
return 0;
}
|
the_stack_data/150141763.c | /* NAME */
/* hermit -- Two-point Hermite cubic interpolation routine. */
/* FILE */
/* hermit.f */
/* SYNOPSIS */
/* A simple two-point Hermitian cubic interpolation routine. */
/* DESCRIPTION */
/* Subroutine. Perform a Hermite cubic interpolation of function y(x) */
/* bewteen two sample points. */
/* ---- On entry ---- */
/* x1, x2: Sample values of independent variable */
/* y1, y2: Values of function at x1 and x2, respectively */
/* yp1, yp2: Values of derivative of function at x1 and x2 */
/* x0: Value of independent variable for interpolation */
/* ---- On return ---- */
/* y0: Interpolated value of function at x0 */
/* yp0: Interpolated value of derivative at x0 */
/* DIAGNOSTICS */
/* FILES */
/* NOTES */
/* SEE ALSO */
/* AUTHOR */
int hermit_(float *x1, float *x2, float *y1, float *y2, float *yp1, float *yp2,
float *x0, float *y0, float *yp0) {
float a, b, c__, d__, t, f1, f2, df, dx, fp1, fp2, sfp;
/* K.S. 1-Dec-97, changed 'undefined' to 'none' */
/* ---- On entry ---- */
/* ---- On return ---- */
/* ---- Internal variables ---- */
dx = *x2 - *x1;
t = (*x0 - *x1) / dx;
if (t <= (float).5) {
f1 = *y1;
f2 = *y2;
fp1 = *yp1;
fp2 = *yp2;
}
else {
t = (float)1. - t;
dx = -dx;
f1 = *y2;
f2 = *y1;
fp1 = *yp2;
fp2 = *yp1;
}
fp1 *= dx;
fp2 *= dx;
df = f2 - f1;
sfp = fp1 + fp2;
a = f1;
b = fp1;
c__ = df * (float)3. - sfp - fp1;
d__ = df * (float)-2. + sfp;
*y0 = ((d__ * t + c__) * t + b) * t + a;
*yp0 = ((d__ * (float)3. * t + c__ * (float)2.) * t + b) / dx;
return 0;
}
|
the_stack_data/133470.c | /********************************************************************
* *
* THIS FILE IS PART OF THE 'ZYWRLE' VNC CODEC SOURCE CODE. *
* *
* USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
* GOVERNED BY A FOLLOWING BSD-STYLE SOURCE LICENSE. *
* PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
* *
* THE 'ZYWRLE' VNC CODEC SOURCE CODE IS (C) COPYRIGHT 2006 *
* BY Hitachi Systems & Services, Ltd. *
* (Noriaki Yamazaki, Research & Developement Center) * *
* *
********************************************************************
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
- Neither the name of the Hitachi Systems & Services, 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 FOUNDATION
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
********************************************************************/
/* Change Log:
V0.02 : 2008/02/04 : Fix mis encode/decode when width != scanline
(Thanks Johannes Schindelin, author of LibVNC
Server/Client)
V0.01 : 2007/02/06 : Initial release
*/
/* #define ZYWRLE_ENCODE */
/* #define ZYWRLE_DECODE */
#define ZYWRLE_QUANTIZE
/*
[References]
PLHarr:
Senecal, J. G., P. Lindstrom, M. A. Duchaineau, and K. I. Joy, "An Improved N-Bit to N-Bit Reversible Haar-Like Transform," Pacific Graphics 2004, October 2004, pp. 371-380.
EZW:
Shapiro, JM: Embedded Image Coding Using Zerotrees of Wavelet Coefficients, IEEE Trans. Signal. Process., Vol.41, pp.3445-3462 (1993).
*/
/* Template Macro stuffs. */
#undef ZYWRLE_ANALYZE
#undef ZYWRLE_SYNTHESIZE
#define ZYWRLE_ANALYZE __RFB_CONCAT3E(zywrleAnalyze,BPP,END_FIX)
#define ZYWRLE_SYNTHESIZE __RFB_CONCAT3E(zywrleSynthesize,BPP,END_FIX)
#define ZYWRLE_RGBYUV __RFB_CONCAT3E(zywrleRGBYUV,BPP,END_FIX)
#define ZYWRLE_YUVRGB __RFB_CONCAT3E(zywrleYUVRGB,BPP,END_FIX)
#define ZYWRLE_YMASK __RFB_CONCAT2E(ZYWRLE_YMASK,BPP)
#define ZYWRLE_UVMASK __RFB_CONCAT2E(ZYWRLE_UVMASK,BPP)
#define ZYWRLE_LOAD_PIXEL __RFB_CONCAT2E(ZYWRLE_LOAD_PIXEL,BPP)
#define ZYWRLE_SAVE_PIXEL __RFB_CONCAT2E(ZYWRLE_SAVE_PIXEL,BPP)
/* Packing/Unpacking pixel stuffs.
Endian conversion stuffs. */
#undef S_0
#undef S_1
#undef L_0
#undef L_1
#undef L_2
#if ZYWRLE_ENDIAN == ENDIAN_BIG
# define S_0 1
# define S_1 0
# define L_0 3
# define L_1 2
# define L_2 1
#else
# define S_0 0
# define S_1 1
# define L_0 0
# define L_1 1
# define L_2 2
#endif
/* Load/Save pixel stuffs. */
#define ZYWRLE_YMASK15 0xFFFFFFF8
#define ZYWRLE_UVMASK15 0xFFFFFFF8
#define ZYWRLE_LOAD_PIXEL15(pSrc,R,G,B) { \
R = (((unsigned char*)pSrc)[S_1]<< 1)& 0xF8; \
G = ((((unsigned char*)pSrc)[S_1]<< 6)|(((unsigned char*)pSrc)[S_0]>> 2))& 0xF8; \
B = (((unsigned char*)pSrc)[S_0]<< 3)& 0xF8; \
}
#define ZYWRLE_SAVE_PIXEL15(pDst,R,G,B) { \
R &= 0xF8; \
G &= 0xF8; \
B &= 0xF8; \
((unsigned char*)pDst)[S_1] = (unsigned char)( (R>>1)|(G>>6) ); \
((unsigned char*)pDst)[S_0] = (unsigned char)(((B>>3)|(G<<2))& 0xFF); \
}
#define ZYWRLE_YMASK16 0xFFFFFFFC
#define ZYWRLE_UVMASK16 0xFFFFFFF8
#define ZYWRLE_LOAD_PIXEL16(pSrc,R,G,B) { \
R = ((unsigned char*)pSrc)[S_1] & 0xF8; \
G = ((((unsigned char*)pSrc)[S_1]<< 5)|(((unsigned char*)pSrc)[S_0]>> 3))& 0xFC; \
B = (((unsigned char*)pSrc)[S_0]<< 3)& 0xF8; \
}
#define ZYWRLE_SAVE_PIXEL16(pDst,R,G,B) { \
R &= 0xF8; \
G &= 0xFC; \
B &= 0xF8; \
((unsigned char*)pDst)[S_1] = (unsigned char)( R |(G>>5) ); \
((unsigned char*)pDst)[S_0] = (unsigned char)(((B>>3)|(G<<3))& 0xFF); \
}
#define ZYWRLE_YMASK32 0xFFFFFFFF
#define ZYWRLE_UVMASK32 0xFFFFFFFF
#define ZYWRLE_LOAD_PIXEL32(pSrc,R,G,B) { \
R = ((unsigned char*)pSrc)[L_2]; \
G = ((unsigned char*)pSrc)[L_1]; \
B = ((unsigned char*)pSrc)[L_0]; \
}
#define ZYWRLE_SAVE_PIXEL32(pDst,R,G,B) { \
((unsigned char*)pDst)[L_2] = (unsigned char)R; \
((unsigned char*)pDst)[L_1] = (unsigned char)G; \
((unsigned char*)pDst)[L_0] = (unsigned char)B; \
}
#ifndef ZYWRLE_ONCE
#define ZYWRLE_ONCE
#ifdef WIN32
#define InlineX __inline
#else
#define InlineX inline
#endif
#ifdef ZYWRLE_ENCODE
/* Tables for Coefficients filtering. */
# ifndef ZYWRLE_QUANTIZE
/* Type A:lower bit omitting of EZW style. */
const static unsigned int zywrleParam[3][3]=
{
{0x0000F000,0x00000000,0x00000000},
{0x0000C000,0x00F0F0F0,0x00000000},
{0x0000C000,0x00C0C0C0,0x00F0F0F0},
/* {0x0000FF00,0x00000000,0x00000000},
{0x0000FF00,0x00FFFFFF,0x00000000},
{0x0000FF00,0x00FFFFFF,0x00FFFFFF}, */
};
# else
/* Type B:Non liner quantization filter. */
static const signed char zywrleConv[4][256]=
{
{ /* bi=5, bo=5 r=0.0:PSNR=24.849 */
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
},
{ /* bi=5, bo=5 r=2.0:PSNR=74.031 */
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 32,
32, 32, 32, 32, 32, 32, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32,
48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 56, 56, 56, 56, 56,
56, 56, 56, 56, 64, 64, 64, 64,
64, 64, 64, 64, 72, 72, 72, 72,
72, 72, 72, 72, 80, 80, 80, 80,
80, 80, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 96, 96,
96, 96, 96, 104, 104, 104, 104, 104,
104, 104, 104, 104, 104, 112, 112, 112,
112, 112, 112, 112, 112, 112, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
0, -120, -120, -120, -120, -120, -120, -120,
-120, -120, -120, -112, -112, -112, -112, -112,
-112, -112, -112, -112, -104, -104, -104, -104,
-104, -104, -104, -104, -104, -104, -96, -96,
-96, -96, -96, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -80,
-80, -80, -80, -80, -80, -72, -72, -72,
-72, -72, -72, -72, -72, -64, -64, -64,
-64, -64, -64, -64, -64, -56, -56, -56,
-56, -56, -56, -56, -56, -56, -48, -48,
-48, -48, -48, -48, -48, -48, -48, -48,
-48, -32, -32, -32, -32, -32, -32, -32,
-32, -32, -32, -32, -32, -32, -32, -32,
-32, -32, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
},
{ /* bi=5, bo=4 r=2.0:PSNR=64.441 */
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48,
64, 64, 64, 64, 64, 64, 64, 64,
64, 64, 64, 64, 64, 64, 64, 64,
80, 80, 80, 80, 80, 80, 80, 80,
80, 80, 80, 80, 80, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
104, 104, 104, 104, 104, 104, 104, 104,
104, 104, 104, 112, 112, 112, 112, 112,
112, 112, 112, 112, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
0, -120, -120, -120, -120, -120, -120, -120,
-120, -120, -120, -120, -120, -112, -112, -112,
-112, -112, -112, -112, -112, -112, -104, -104,
-104, -104, -104, -104, -104, -104, -104, -104,
-104, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -80, -80, -80, -80,
-80, -80, -80, -80, -80, -80, -80, -80,
-80, -64, -64, -64, -64, -64, -64, -64,
-64, -64, -64, -64, -64, -64, -64, -64,
-64, -48, -48, -48, -48, -48, -48, -48,
-48, -48, -48, -48, -48, -48, -48, -48,
-48, -48, -48, -48, -48, -48, -48, -48,
-48, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
},
{ /* bi=5, bo=2 r=2.0:PSNR=43.175 */
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88,
0, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, -88, -88, -88, -88, -88, -88, -88,
-88, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
}
};
const static signed char* zywrleParam[3][3][3]=
{
{{zywrleConv[0],zywrleConv[2],zywrleConv[0]},{zywrleConv[0],zywrleConv[0],zywrleConv[0]},{zywrleConv[0],zywrleConv[0],zywrleConv[0]}},
{{zywrleConv[0],zywrleConv[3],zywrleConv[0]},{zywrleConv[1],zywrleConv[1],zywrleConv[1]},{zywrleConv[0],zywrleConv[0],zywrleConv[0]}},
{{zywrleConv[0],zywrleConv[3],zywrleConv[0]},{zywrleConv[2],zywrleConv[2],zywrleConv[2]},{zywrleConv[1],zywrleConv[1],zywrleConv[1]}},
};
# endif
#endif
static InlineX void Harr(signed char* pX0, signed char* pX1)
{
/* Piecewise-Linear Harr(PLHarr) */
int X0 = (int)*pX0, X1 = (int)*pX1;
int orgX0 = X0, orgX1 = X1;
if ((X0 ^ X1) & 0x80)
{
/* differ sign */
X1 += X0;
if (((X1^orgX1)&0x80)==0)
{
/* |X1| > |X0| */
X0 -= X1; /* H = -B */
}
}
else
{
/* same sign */
X0 -= X1;
if (((X0 ^ orgX0) & 0x80) == 0)
{
/* |X0| > |X1| */
X1 += X0; /* L = A */
}
}
*pX0 = (signed char)X1;
*pX1 = (signed char)X0;
}
/*
1D-Wavelet transform.
In coefficients array, the famous 'pyramid' decomposition is well used.
1D Model:
|L0L0L0L0|L0L0L0L0|H0H0H0H0|H0H0H0H0| : level 0
|L1L1L1L1|H1H1H1H1|H0H0H0H0|H0H0H0H0| : level 1
But this method needs line buffer because H/L is different position from X0/X1.
So, I used 'interleave' decomposition instead of it.
1D Model:
|L0H0L0H0|L0H0L0H0|L0H0L0H0|L0H0L0H0| : level 0
|L1H0H1H0|L1H0H1H0|L1H0H1H0|L1H0H1H0| : level 1
In this method, H/L and X0/X1 is always same position.
This lead us to more speed and less memory.
Of cause, the result of both method is quite same
because it's only difference that coefficient position.
*/
static InlineX void WaveletLevel(int* data, int size, int l, int SkipPixel)
{
int s, ofs;
signed char* pX0;
signed char* end;
pX0 = (signed char*)data;
s = (8<<l)*SkipPixel;
end = pX0+(size>>(l+1))*s;
s -= 2;
ofs = (4<<l)*SkipPixel;
while (pX0 < end)
{
Harr(pX0, pX0+ofs);
pX0++;
Harr(pX0, pX0+ofs);
pX0++;
Harr(pX0, pX0+ofs);
pX0 += s;
}
}
#define InvWaveletLevel(d,s,l,pix) WaveletLevel(d,s,l,pix)
#ifdef ZYWRLE_ENCODE
# ifndef ZYWRLE_QUANTIZE
/* Type A:lower bit omitting of EZW style. */
static InlineX void FilterWaveletSquare(int* pBuf, int width, int height, int level, int l)
{
int r, s;
int x, y;
int* pH;
const unsigned int* pM;
pM = &(zywrleParam[level-1][l]);
s = 2<<l;
for (r = 1; r < 4; r++)
{
pH = pBuf;
if (r & 0x01)
pH += s>>1;
if (r & 0x02)
pH += (s>>1)*width;
for (y = 0; y < height / s; y++)
{
for (x = 0; x < width / s; x++)
{
/*
these are same following code.
pH[x] = pH[x] / (~pM[x]+1) * (~pM[x]+1);
( round pH[x] with pM[x] bit )
'&' operator isn't 'round' but is 'floor'.
So, we must offset when pH[x] is negative.
*/
if (((signed char*)pH)[0] & 0x80)
((signed char*)pH)[0] += ~((signed char*)pM)[0];
if (((signed char*)pH)[1] & 0x80)
((signed char*)pH)[1] += ~((signed char*)pM)[1];
if (((signed char*)pH)[2] & 0x80)
((signed char*)pH)[2] += ~((signed char*)pM)[2];
*pH &= *pM;
pH += s;
}
pH += (s-1)*width;
}
}
}
# else
/*
Type B:Non liner quantization filter.
Coefficients have Gaussian curve and smaller value which is
large part of coefficients isn't more important than larger value.
So, I use filter of Non liner quantize/dequantize table.
In general, Non liner quantize formula is explained as following.
y=f(x) = sign(x)*round( ((abs(x)/(2^7))^ r )* 2^(bo-1) )*2^(8-bo)
x=f-1(y) = sign(y)*round( ((abs(y)/(2^7))^(1/r))* 2^(bi-1) )*2^(8-bi)
( r:power coefficient bi:effective MSB in input bo:effective MSB in output )
r < 1.0 : Smaller value is more important than larger value.
r > 1.0 : Larger value is more important than smaller value.
r = 1.0 : Liner quantization which is same with EZW style.
r = 0.75 is famous non liner quantization used in MP3 audio codec.
In contrast to audio data, larger value is important in wavelet coefficients.
So, I select r = 2.0 table( quantize is x^2, dequantize sqrt(x) ).
As compared with EZW style liner quantization, this filter tended to be
more sharp edge and be more compression rate but be more blocking noise and be less quality.
Especially, the surface of graphic objects has distinguishable noise in middle quality mode.
We need only quantized-dequantized(filtered) value rather than quantized value itself
because all values are packed or palette-lized in later ZRLE section.
This lead us not to need to modify client decoder when we change
the filtering procedure in future.
Client only decodes coefficients given by encoder.
*/
static InlineX void FilterWaveletSquare(int* pBuf, int width, int height, int level, int l)
{
int r, s;
int x, y;
int* pH;
const signed char** pM;
pM = zywrleParam[level-1][l];
s = 2<<l;
for (r = 1; r < 4; r++)
{
pH = pBuf;
if (r & 0x01)
pH += s>>1;
if (r & 0x02)
pH += (s>>1)*width;
for (y = 0; y < height / s; y++)
{
for (x = 0; x < width / s; x++)
{
((signed char*)pH)[0] = pM[0][((unsigned char*)pH)[0]];
((signed char*)pH)[1] = pM[1][((unsigned char*)pH)[1]];
((signed char*)pH)[2] = pM[2][((unsigned char*)pH)[2]];
pH += s;
}
pH += (s-1)*width;
}
}
}
# endif
static InlineX void Wavelet(int* pBuf, int width, int height, int level)
{
int l, s;
int* pTop;
int* pEnd;
for (l = 0; l < level; l++)
{
pTop = pBuf;
pEnd = pBuf+height*width;
s = width<<l;
while (pTop < pEnd)
{
WaveletLevel(pTop, width, l, 1);
pTop += s;
}
pTop = pBuf;
pEnd = pBuf+width;
s = 1<<l;
while (pTop < pEnd)
{
WaveletLevel(pTop, height,l, width);
pTop += s;
}
FilterWaveletSquare(pBuf, width, height, level, l);
}
}
#endif
#ifdef ZYWRLE_DECODE
static InlineX void InvWavelet(int* pBuf, int width, int height, int level)
{
int l, s;
int* pTop;
int* pEnd;
for (l = level - 1; l >= 0; l--)
{
pTop = pBuf;
pEnd = pBuf+width;
s = 1<<l;
while (pTop < pEnd)
{
InvWaveletLevel(pTop, height,l, width);
pTop += s;
}
pTop = pBuf;
pEnd = pBuf+height*width;
s = width<<l;
while (pTop < pEnd)
{
InvWaveletLevel(pTop, width, l, 1);
pTop += s;
}
}
}
#endif
/* Load/Save coefficients stuffs.
Coefficients manages as 24 bits little-endian pixel. */
#define ZYWRLE_LOAD_COEFF(pSrc,R,G,B) { \
R = ((signed char*)pSrc)[2]; \
G = ((signed char*)pSrc)[1]; \
B = ((signed char*)pSrc)[0]; \
}
#define ZYWRLE_SAVE_COEFF(pDst,R,G,B) { \
((signed char*)pDst)[2] = (signed char)R; \
((signed char*)pDst)[1] = (signed char)G; \
((signed char*)pDst)[0] = (signed char)B; \
}
/*
RGB <=> YUV conversion stuffs.
YUV coversion is explained as following formula in strict meaning:
Y = 0.299R + 0.587G + 0.114B ( 0<=Y<=255)
U = -0.169R - 0.331G + 0.500B (-128<=U<=127)
V = 0.500R - 0.419G - 0.081B (-128<=V<=127)
I use simple conversion RCT(reversible color transform) which is described
in JPEG-2000 specification.
Y = (R + 2G + B)/4 ( 0<=Y<=255)
U = B-G (-256<=U<=255)
V = R-G (-256<=V<=255)
*/
#define ROUND(x) (((x)<0)?0:(((x)>255)?255:(x)))
/* RCT is N-bit RGB to N-bit Y and N+1-bit UV.
For make Same N-bit, UV is lossy.
More exact PLHarr, we reduce to odd range(-127<=x<=127). */
#define ZYWRLE_RGBYUV1(R,G,B,Y,U,V,ymask,uvmask) { \
Y = (R+(G<<1)+B)>>2; \
U = B-G; \
V = R-G; \
Y -= 128; \
U >>= 1; \
V >>= 1; \
Y &= ymask; \
U &= uvmask; \
V &= uvmask; \
if (Y == -128) \
Y += (0xFFFFFFFF-ymask+1); \
if (U == -128) \
U += (0xFFFFFFFF-uvmask+1); \
if (V == -128) \
V += (0xFFFFFFFF-uvmask+1); \
}
#define ZYWRLE_YUVRGB1(R,G,B,Y,U,V) { \
Y += 128; \
U <<= 1; \
V <<= 1; \
G = Y-((U+V)>>2); \
B = U+G; \
R = V+G; \
G = ROUND(G); \
B = ROUND(B); \
R = ROUND(R); \
}
/*
coefficient packing/unpacking stuffs.
Wavelet transform makes 4 sub coefficient image from 1 original image.
model with pyramid decomposition:
+------+------+
| | |
| L | Hx |
| | |
+------+------+
| | |
| H | Hxy |
| | |
+------+------+
So, we must transfer each sub images individually in strict meaning.
But at least ZRLE meaning, following one decompositon image is same as
avobe individual sub image. I use this format.
(Strictly saying, transfer order is reverse(Hxy->Hy->Hx->L)
for simplified procedure for any wavelet level.)
+------+------+
| L |
+------+------+
| Hx |
+------+------+
| Hy |
+------+------+
| Hxy |
+------+------+
*/
#define INC_PTR(data) \
data++; \
if( data-pData >= (w+uw) ){ \
data += scanline-(w+uw); \
pData = data; \
}
#define ZYWRLE_TRANSFER_COEFF(pBuf,data,r,w,h,scanline,level,TRANS) \
pH = pBuf; \
s = 2<<level; \
if (r & 0x01) \
pH += s>>1; \
if (r & 0x02) \
pH += (s>>1)*w; \
pEnd = pH+h*w; \
while (pH < pEnd) { \
pLine = pH+w; \
while (pH < pLine) { \
TRANS \
INC_PTR(data) \
pH += s; \
} \
pH += (s-1)*w; \
}
#define ZYWRLE_PACK_COEFF(pBuf,data,r,width,height,scanline,level) \
ZYWRLE_TRANSFER_COEFF(pBuf,data,r,width,height,scanline,level,ZYWRLE_LOAD_COEFF(pH,R,G,B);ZYWRLE_SAVE_PIXEL(data,R,G,B);)
#define ZYWRLE_UNPACK_COEFF(pBuf,data,r,width,height,scanline,level) \
ZYWRLE_TRANSFER_COEFF(pBuf,data,r,width,height,scanline,level,ZYWRLE_LOAD_PIXEL(data,R,G,B);ZYWRLE_SAVE_COEFF(pH,R,G,B);)
#define ZYWRLE_SAVE_UNALIGN(data,TRANS) \
pTop = pBuf+w*h; \
pEnd = pBuf + (w+uw)*(h+uh); \
while (pTop < pEnd) { \
TRANS \
INC_PTR(data) \
pTop++; \
}
#define ZYWRLE_LOAD_UNALIGN(data,TRANS) \
pTop = pBuf+w*h; \
if (uw) { \
pData= data + w; \
pEnd = (int*)(pData+ h*scanline); \
while (pData < (PIXEL_T*)pEnd) { \
pLine = (int*)(pData + uw); \
while (pData < (PIXEL_T*)pLine) { \
TRANS \
pData++; \
pTop++; \
} \
pData += scanline-uw; \
} \
} \
if (uh) { \
pData= data + h*scanline; \
pEnd = (int*)(pData+ uh*scanline); \
while (pData < (PIXEL_T*)pEnd) { \
pLine = (int*)(pData + w); \
while (pData < (PIXEL_T*)pLine) { \
TRANS \
pData++; \
pTop++; \
} \
pData += scanline-w; \
} \
} \
if (uw && uh) { \
pData= data + w+ h*scanline; \
pEnd = (int*)(pData+ uh*scanline); \
while (pData < (PIXEL_T*)pEnd) { \
pLine = (int*)(pData + uw); \
while (pData < (PIXEL_T*)pLine) { \
TRANS \
pData++; \
pTop++; \
} \
pData += scanline-uw; \
} \
}
static InlineX void zywrleCalcSize(int* pW, int* pH, int level)
{
*pW &= ~((1<<level)-1);
*pH &= ~((1<<level)-1);
}
#endif /* ZYWRLE_ONCE */
#ifndef CPIXEL
#ifdef ZYWRLE_ENCODE
static InlineX void ZYWRLE_RGBYUV(int* pBuf, PIXEL_T* data, int width, int height, int scanline)
{
int R, G, B;
int Y, U, V;
int* pLine;
int* pEnd;
pEnd = pBuf+height*width;
while (pBuf < pEnd)
{
pLine = pBuf+width;
while (pBuf < pLine)
{
ZYWRLE_LOAD_PIXEL(data,R,G,B);
ZYWRLE_RGBYUV1(R,G,B,Y,U,V,ZYWRLE_YMASK,ZYWRLE_UVMASK);
ZYWRLE_SAVE_COEFF(pBuf,V,Y,U);
pBuf++;
data++;
}
data += scanline-width;
}
}
#endif
#ifdef ZYWRLE_DECODE
static InlineX void ZYWRLE_YUVRGB(int* pBuf, PIXEL_T* data, int width, int height, int scanline)
{
int R, G, B;
int Y, U, V;
int* pLine;
int* pEnd;
pEnd = pBuf+height*width;
while (pBuf < pEnd)
{
pLine = pBuf+width;
while (pBuf < pLine)
{
ZYWRLE_LOAD_COEFF(pBuf,V,Y,U);
ZYWRLE_YUVRGB1(R,G,B,Y,U,V);
ZYWRLE_SAVE_PIXEL(data,R,G,B);
pBuf++;
data++;
}
data += scanline-width;
}
}
#endif
#ifdef ZYWRLE_ENCODE
PIXEL_T* ZYWRLE_ANALYZE(PIXEL_T* dst, PIXEL_T* src, int w, int h, int scanline, int level, int* pBuf)
{
int l;
int uw = w;
int uh = h;
int* pTop;
int* pEnd;
int* pLine;
PIXEL_T* pData;
int R, G, B;
int s;
int* pH;
zywrleCalcSize(&w, &h, level);
if (w == 0 || h == 0)
return NULL;
uw -= w;
uh -= h;
pData = dst;
ZYWRLE_LOAD_UNALIGN(src,*(PIXEL_T*)pTop=*pData;)
ZYWRLE_RGBYUV(pBuf, src, w, h, scanline);
Wavelet(pBuf, w, h, level);
for (l = 0; l < level; l++)
{
ZYWRLE_PACK_COEFF(pBuf, dst, 3, w, h, scanline, l);
ZYWRLE_PACK_COEFF(pBuf, dst, 2, w, h, scanline, l);
ZYWRLE_PACK_COEFF(pBuf, dst, 1, w, h, scanline, l);
if (l == level - 1)
{
ZYWRLE_PACK_COEFF(pBuf, dst, 0, w, h, scanline, l);
}
}
ZYWRLE_SAVE_UNALIGN(dst,*dst=*(PIXEL_T*)pTop;)
return dst;
}
#endif
#ifdef ZYWRLE_DECODE
PIXEL_T* ZYWRLE_SYNTHESIZE(PIXEL_T* dst, PIXEL_T* src, int w, int h, int scanline, int level, int* pBuf)
{
int l;
int uw = w;
int uh = h;
int* pTop;
int* pEnd;
int* pLine;
PIXEL_T* pData;
int R, G, B;
int s;
int* pH;
zywrleCalcSize(&w, &h, level);
if (w == 0 || h == 0)
return NULL;
uw -= w;
uh -= h;
pData = src;
for (l = 0; l < level; l++)
{
ZYWRLE_UNPACK_COEFF(pBuf, src, 3, w, h, scanline, l);
ZYWRLE_UNPACK_COEFF(pBuf, src, 2, w, h, scanline, l);
ZYWRLE_UNPACK_COEFF(pBuf, src, 1, w, h, scanline, l);
if (l == level - 1)
{
ZYWRLE_UNPACK_COEFF(pBuf, src, 0, w, h, scanline, l);
}
}
ZYWRLE_SAVE_UNALIGN(src,*(PIXEL_T*)pTop=*src;)
InvWavelet(pBuf, w, h, level);
ZYWRLE_YUVRGB(pBuf, dst, w, h, scanline);
ZYWRLE_LOAD_UNALIGN(dst,*pData=*(PIXEL_T*)pTop;)
return src;
}
#endif
#endif /* CPIXEL */
#undef ZYWRLE_RGBYUV
#undef ZYWRLE_YUVRGB
#undef ZYWRLE_LOAD_PIXEL
#undef ZYWRLE_SAVE_PIXEL
|
the_stack_data/94983.c | main(a,b,c,d){scanf("%d%d%d%d",&a,&b,&c,&d);c+=d;while(c>=60){c-=60;b++;}while(b>=60){b-=60;a++;}while(a>=24)a-=24;printf("%d %d %d",a,b,c);} |
the_stack_data/114336.c | #include <stdio.h>
int main()
{
char chr;
printf("Enter a character: ");
scanf("%c", &chr);
//When %c is used, a character is displayed
printf("You entered %c.\n",chr);
//When %d is used, ASCII value is displayed
printf("ASCII value is %d.", chr);
return 0;
}
|
the_stack_data/25305.c | #include<stdio.h>
int main()
{
char a[20];
printf("Enter a string to reverse\n");
scanf("%s",a);
string_reverse(a);
}
void string_reverse(char a[20])
{
char b[20]; int i=0, j=0;
int l=length(a);
for( i=l-1; a[i]>=0; i-- )
{
b[j]=a[i];j++;
}
printf("%s",b);
}
int length(char a[20])
{
int i=0;
for (i=0; a[i]!='\0'; i++);
return i;
}
|
the_stack_data/1194765.c | /*
* This file is part of John the Ripper password cracker,
*
* Plugin module support.
*
* Author: David Jones
* Date: 5-SEP-2011
*
* Copyright (c) 2011 by David L. Jones <jonesd/at/columbus.rr.com>, and
* is hereby released to the general public under the following terms:
* Redistribution and use in source and binary forms, with or without
* modifications, are permitted.
*/
#if AC_BUILT
#include "autoconfig.h"
#endif
#if HAVE_LIBDL || __MINGW32__ || __MINGW64__ || _MSC_VER
#include <stdio.h>
#if (!AC_BUILT || HAVE_UNISTD_H) && !_MSC_VER
#include <unistd.h>
#endif
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
#if HAVE_LIBDL
#include <dlfcn.h>
#elif HAVE_WINDOWS_H
// For mingw/VC
#include "Win32-dlfcn-port.h"
#else
#error libdl MUST be available for usage, if building plugin module support
#endif
#ifndef RTLD_LOCAL
#define RTLD_LOCAL 0
#endif
#include "plugin.h"
#include "memdbg.h"
/*
* Scan fmt_list and look for duplicate format name, which confuses --test.
* Return 1 if duplicate.
*/
static int duplicate_format_name(struct fmt_main * candidate)
{
struct fmt_main *fmt;
for (fmt = fmt_list; fmt; fmt = fmt->next) {
if (strcmp(fmt->params.label, candidate->params.label) == 0) {
fprintf(stderr, "Duplicate instance of %s format!\n",
candidate->params.label);
return 1; /* IS a duplicate */
}
}
return 0;
}
/*
* Keep a list of the handles returned by our dlopen() calls in case we
* have need to do cleanup in the future.
*/
static void **dll_handle;
/*
* Load format modules from DLLs specified by using the --plugin=dllfile
* command line option or Dynamic-fmt config file option. The DLL must
* define a function FMT_LOADER with the prototype:
* struct fmt_main *FMT_LOADER ( int fmt_version );
*
* fmt_version is the version number of the fmt_main structure. It must be
* changed whenever the fmt_main layout or semantics change. The FMT_LOADER
* function returns the address of a fmt_main structure or NULL if a version
* mismatch or other error occurs.
*/
void register_dlls(
struct list_main * dll_list,
char *config_param,
format_register register_one)
{
struct list_entry *le;
struct fmt_main *(*loader) (int fmt_version);
struct fmt_main *fmt;
struct list_main *cfg_list;
int ndx;
char *dll_name, *cfg_names = NULL;
/*
* Convert config_param string into list structure and chain it
* and dll_list together temporarily. Set le to the list head.
*/
list_init(&cfg_list);
if (config_param) {
cfg_names = strdup(config_param); /* so strtok can modify */
for (dll_name = strtok(strdup(cfg_names), ","); dll_name;
dll_name = strtok(0, ",")) {
dll_name += strspn(dll_name, " \t"); /* skip whitespace */
if (*dll_name)
list_add(cfg_list, dll_name);
}
}
le = NULL;
if (cfg_list->count > 0) {
le = cfg_list->head; /* Start with config_param files */
if (!dll_list)
printf("Missing options.fmt_dlls!\n");
else if (dll_list->count > 0)
cfg_list->tail->next = dll_list->head;
} else if (!dll_list) {
printf("/bugcheck/ options.fmt_dlls did not intialize\n");
} else if (dll_list->count > 0) {
le = dll_list->head; /* config_param empty, start with
* dll_list */
} else {
if (cfg_names)
free(cfg_names);
return; /* both lists empty, bail out */
}
/*
* Step through combined list and load files named.
*/
dll_handle = malloc(sizeof(void *) * (cfg_list->count + dll_list->count));
ndx = 0;
for (; le; le = le->next) {
dll_name = le->data;
dll_handle[ndx] = dlopen(dll_name, RTLD_NOW | RTLD_LOCAL);
if (dll_handle[ndx]) {
loader = dlsym(dll_handle[ndx], "FMT_LOADER");
if (loader) {
fmt = loader(FMT_MAIN_VERSION);
if (duplicate_format_name(fmt)) {
fprintf(stderr, "Plugin %s not registered.\n",
fmt->params.format_name);
} else if (fmt)
register_one(fmt);
else {
fprintf(stderr, "Unsupported version for DLL FMT\n");
}
} else {
fprintf(stderr, "Failed to load symbol '%s'\n", "FMT_LOADER");
fprintf(stderr, "%s\n", dlerror());
}
} else {
fprintf(stderr, "Failed to open DLL '%s'\n", dll_name);
fprintf(stderr, "%s\n", dlerror());
}
}
if (cfg_list->count > 0)
cfg_list->tail->next = 0;
}
#endif
|
the_stack_data/181394409.c | int WITH_symlink(){ return 1; }
|
the_stack_data/45450553.c | #include <stdio.h>
#include <string.h>
int main()
{
char word[100];
char word1[100];
int i, c, u=0, s=0, l;
scanf(" %s", word);
l=strlen(word);
for(i=0; i<strlen(word); i++)
{
if(word[i]>='A' && word[i]<='Z')
{
word1[i] = word[i]-'A'+'a';
u++;
}
else
{
if(i==0)
{
s=1;
}
else
{
s=4;
}
word1[i]= word[i]-'a'+'A';
}
printf("%s\n%s\n", word, word1);
}
word1[i]='\0';
if((u-s)>=(l-2))
{
printf("%s\n", word1);
}
else
{
printf("%s\n", word);
}
return 0;
}
|
the_stack_data/1232012.c | #include <unistd.h>
void ft_putchar(char c)
{
write(1, &c, 1);
}
void ft_print_comb(void)
{
char c;
char d;
char u;
c = '0' - 1;
while (c++ < '7')
{
d = c;
while (d++ < '8')
{
u = d;
while (u++ < '9')
{
if (!(c == '0' && d == '1' && u == '2'))
{
ft_putchar(',');
ft_putchar(' ');
}
ft_putchar(c);
ft_putchar(d);
ft_putchar(u);
}
}
}
}
int main(void)
{
ft_print_comb();
}
|
the_stack_data/725254.c | /* FLAC sample loader
**
** Note: Vol/loop sanitation is done in the last stage
** of sample loading, so you don't need to do that here.
** Do NOT close the file handle!
*/
#ifdef HAS_LIBFLAC
// hide POSIX warning for fileno()
#ifdef _MSC_VER
#pragma warning(disable: 4996)
#endif
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
#ifndef _WIN32
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
#include "../ft2_header.h"
#include "../ft2_audio.h"
#include "../ft2_sample_ed.h"
#include "../ft2_sysreqs.h"
#include "../ft2_sample_loader.h"
#include "../libflac/FLAC/stream_decoder.h"
static bool sample16Bit;
static int16_t stereoSampleLoadMode = -1;
static uint32_t numChannels, bitDepth, sampleLength, sampleRate, samplesRead;
static sample_t *s;
static FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data);
static FLAC__StreamDecoderSeekStatus seek_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data);
static FLAC__StreamDecoderTellStatus tell_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data);
static FLAC__StreamDecoderLengthStatus length_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 *stream_length, void *client_data);
static FLAC__bool eof_callback(const FLAC__StreamDecoder *decoder, void *client_data);
static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
static FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data);
static void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data);
bool loadFLAC(FILE *f, uint32_t filesize)
{
s = &tmpSmp;
s->volume = 64;
s->panning = 128;
numChannels = 0;
bitDepth = 0;
sampleLength = 0;
sampleRate = 0;
samplesRead = 0;
FLAC__StreamDecoder *decoder = FLAC__stream_decoder_new();
if (decoder == NULL)
{
loaderMsgBox("Error loading sample: Unable to allocate FLAC decoder!");
goto error;
}
FLAC__stream_decoder_set_metadata_respond_all(decoder);
FLAC__StreamDecoderInitStatus initStatus =
FLAC__stream_decoder_init_stream
(
decoder,
read_callback, seek_callback,
tell_callback, length_callback,
eof_callback, write_callback,
metadata_callback, error_callback,
f
);
if (initStatus != FLAC__STREAM_DECODER_INIT_STATUS_OK)
{
loaderMsgBox("Error loading sample: Unable to initialize FLAC decoder!");
goto error;
}
if (!FLAC__stream_decoder_process_until_end_of_stream(decoder))
{
loaderMsgBox("Error loading sample: Unable to decode FLAC!");
goto error;
}
FLAC__stream_decoder_finish(decoder);
FLAC__stream_decoder_delete(decoder);
tuneSample(s, sampleRate, audio.linearPeriodsFlag);
return true;
error:
if (decoder != NULL) FLAC__stream_decoder_delete(decoder);
return false;
(void)filesize;
}
static FLAC__StreamDecoderReadStatus read_callback(const FLAC__StreamDecoder *decoder, FLAC__byte buffer[], size_t *bytes, void *client_data)
{
FILE *file = (FILE *)client_data;
if (*bytes > 0)
{
*bytes = fread(buffer, sizeof (FLAC__byte), *bytes, file);
if (ferror(file))
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
else if (*bytes == 0)
return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
else
return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
}
else
{
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
}
(void)decoder;
}
static FLAC__StreamDecoderSeekStatus seek_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 absolute_byte_offset, void *client_data)
{
FILE *file = (FILE *)client_data;
if (absolute_byte_offset > INT32_MAX)
return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
if (fseek(file, (int32_t)absolute_byte_offset, SEEK_SET) < 0)
return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
else
return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
(void)decoder;
}
static FLAC__StreamDecoderTellStatus tell_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 *absolute_byte_offset, void *client_data)
{
FILE *file = (FILE *)client_data;
int32_t pos = ftell(file);
if (pos < 0)
{
return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
}
else
{
*absolute_byte_offset = (FLAC__uint64)pos;
return FLAC__STREAM_DECODER_TELL_STATUS_OK;
}
(void)decoder;
}
static FLAC__StreamDecoderLengthStatus length_callback(const FLAC__StreamDecoder *decoder, FLAC__uint64 *stream_length, void *client_data)
{
FILE *file = (FILE *)client_data;
struct stat filestats;
if (fstat(fileno(file), &filestats) != 0)
{
return FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR;
}
else
{
*stream_length = (FLAC__uint64)filestats.st_size;
return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;
}
(void)decoder;
}
static FLAC__bool eof_callback(const FLAC__StreamDecoder *decoder, void *client_data)
{
FILE *file = (FILE *)client_data;
return feof(file) ? true : false;
(void)decoder;
}
static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data)
{
if (metadata->type == FLAC__METADATA_TYPE_STREAMINFO && metadata->data.stream_info.total_samples != 0)
{
bitDepth = metadata->data.stream_info.bits_per_sample;
numChannels = metadata->data.stream_info.channels;
sampleRate = metadata->data.stream_info.sample_rate;
sample16Bit = (bitDepth != 8);
int64_t tmp64 = metadata->data.stream_info.total_samples;
if (tmp64 > MAX_SAMPLE_LEN)
tmp64 = MAX_SAMPLE_LEN;
sampleLength = (uint32_t)tmp64;
s->length = sampleLength;
if (sample16Bit)
s->flags |= SAMPLE_16BIT;
stereoSampleLoadMode = -1;
if (numChannels == 2)
stereoSampleLoadMode = loaderSysReq(5, "System request", "This is a stereo sample...");
}
// check for RIFF chunks (loop/vol/pan information)
else if (metadata->type == FLAC__METADATA_TYPE_APPLICATION && !memcmp(metadata->data.application.id, "riff", 4))
{
const uint8_t *data = (const uint8_t *)metadata->data.application.data;
uint32_t chunkID = *(uint32_t *)data; data += 4;
uint32_t chunkLen = *(uint32_t *)data; data += 4;
if (chunkID == 0x61727478 && chunkLen >= 8) // "xtra"
{
uint32_t xtraFlags = *(uint32_t *)data; data += 4;
// panning (0..256)
if (xtraFlags & 0x20) // set panning flag
{
uint16_t tmpPan = *(uint16_t *)data;
if (tmpPan > 255)
tmpPan = 255;
s->panning = (uint8_t)tmpPan;
}
data += 2;
// volume (0..256)
uint16_t tmpVol = *(uint16_t *)data;
if (tmpVol > 256)
tmpVol = 256;
s->volume = (uint8_t)((tmpVol + 2) / 4); // 0..256 -> 0..64 (rounded)
}
if (chunkID == 0x6C706D73 && chunkLen > 52) // "smpl"
{
data += 28; // seek to first wanted byte
uint32_t numLoops = *(uint32_t *)data; data += 4;
if (numLoops == 1)
{
data += 4+4; // skip "samplerData" and "identifier"
uint32_t loopType = *(uint32_t *)data; data += 4;
uint32_t loopStart = *(uint32_t *)data; data += 4;
uint32_t loopEnd = *(uint32_t *)data; data += 4;
s->loopStart = loopStart;
s->loopLength = (loopEnd+1) - loopStart;
s->flags |= (loopType == 0) ? LOOP_FWD : LOOP_BIDI;
}
}
}
else if (metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT)
{
uint32_t tmpSampleRate = 0, loopStart = 0, loopLength = 0;
for (uint32_t i = 0; i < metadata->data.vorbis_comment.num_comments; i++)
{
const char *tag = (const char *)metadata->data.vorbis_comment.comments[i].entry;
uint32_t length = metadata->data.vorbis_comment.comments[i].length;
if (length > 6 && !memcmp(tag, "TITLE=", 6))
{
length -= 6;
if (length > 22)
length = 22;
memcpy(s->name, &tag[6], length);
s->name[22] = '\0';
smpFilenameSet = true;
}
// the following tags haven't been tested!
else if (length > 11 && !memcmp(tag, "SAMPLERATE=", 11))
{
tmpSampleRate = atoi(&tag[11]);
}
else if (length > 10 && !memcmp(tag, "LOOPSTART=", 10))
{
loopLength = atoi(&tag[10]);
}
else if (length > 11 && !memcmp(tag, "LOOPLENGTH=", 11))
{
loopLength = atoi(&tag[11]);
}
if (loopLength > 0)
{
s->loopStart = loopLength;
s->loopLength = loopStart;
DISABLE_LOOP(s->flags);
s->flags |= LOOP_FWD;
}
if (tmpSampleRate > 0)
sampleRate = tmpSampleRate;
}
}
(void)client_data;
(void)decoder;
}
static FLAC__StreamDecoderWriteStatus write_callback(const FLAC__StreamDecoder *decoder, const FLAC__Frame *frame, const FLAC__int32 *const buffer[], void *client_data)
{
if (sampleLength == 0 || numChannels == 0)
{
loaderMsgBox("Error loading sample: The sample is empty or corrupt!");
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (numChannels > 2)
{
loaderMsgBox("Error loading sample: Only mono/stereo FLACs are supported!");
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (bitDepth != 8 && bitDepth != 16 && bitDepth != 24)
{
loaderMsgBox("Error loading sample: Only FLACs with a bitdepth of 8/16/24 are supported!");
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (frame->header.number.sample_number == 0)
{
if (!allocateSmpData(s, sampleLength, sample16Bit))
{
loaderMsgBox("Error loading sample: Out of memory!");
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
samplesRead = 0;
}
uint32_t blockSize = frame->header.blocksize;
const uint32_t samplesAllocated = sampleLength;
if (samplesRead+blockSize > samplesAllocated)
blockSize = samplesAllocated-samplesRead;
if (stereoSampleLoadMode == STEREO_SAMPLE_CONVERT) // mix to mono
{
const int32_t *src32_L = buffer[0];
const int32_t *src32_R = buffer[1];
switch (bitDepth)
{
case 8:
{
int8_t *dst8 = s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst8[i] = (int8_t)((src32_L[i] + src32_R[i]) >> 1);
}
break;
case 16:
{
int16_t *dst16 = (int16_t *)s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst16[i] = (int16_t)((src32_L[i] + src32_R[i]) >> 1);
}
break;
case 24:
{
int16_t *dst16 = (int16_t *)s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst16[i] = (int16_t)((src32_L[i] + src32_R[i]) >> (16+1));
}
break;
default: break;
}
}
else // mono sample
{
const int32_t *src32 = (stereoSampleLoadMode == STEREO_SAMPLE_READ_RIGHT) ? buffer[1] : buffer[0];
switch (bitDepth)
{
case 8:
{
int8_t *dst8 = s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst8[i] = (int8_t)src32[i];
}
break;
case 16:
{
int16_t *dst16 = (int16_t *)s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst16[i] = (int16_t)src32[i];
}
break;
case 24:
{
int16_t *dst16 = (int16_t *)s->dataPtr + samplesRead;
for (uint32_t i = 0; i < blockSize; i++)
dst16[i] = (int16_t)(src32[i] >> 8);
}
break;
default: break;
}
}
samplesRead += blockSize;
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
(void)client_data;
(void)decoder;
}
static void error_callback(const FLAC__StreamDecoder *decoder, FLAC__StreamDecoderErrorStatus status, void *client_data)
{
(void)status;
(void)decoder;
(void)client_data;
}
#endif
|
the_stack_data/57948979.c | int foo(int n){
int i = 1;
int sum = 0;
int product = 1;
if (i<=n){
sum = sum + i;
product = product * i;
i = i + 1;
}
return sum;
}
int main(){
int x,y,z;
if (y > 0)
y = y + 1;
else{
y = foo(y) - 1;
x = 7;
y = foo(x) + 3;
}
z = x;
return z ;
}
|
the_stack_data/42951.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
struct s_env {
unsigned int n, i;
size_t size;
void *sample;
};
void s_of_n_init(struct s_env *s_env, size_t size, unsigned int n)
{
s_env->i = 0;
s_env->n = n;
s_env->size = size;
s_env->sample = malloc(n * size);
}
void sample_set_i(struct s_env *s_env, unsigned int i, void *item)
{
memcpy(s_env->sample + i * s_env->size, item, s_env->size);
}
void *s_of_n(struct s_env *s_env, void *item)
{
s_env->i++;
if (s_env->i <= s_env->n)
sample_set_i(s_env, s_env->i - 1, item);
else if ((rand() % s_env->i) < s_env->n)
sample_set_i(s_env, rand() % s_env->n, item);
return s_env->sample;
}
int *test(unsigned int n, int *items_set, unsigned int num_items)
{
int i;
struct s_env s_env;
s_of_n_init(&s_env, sizeof(items_set[0]), n);
for (i = 0; i < num_items; i++) {
s_of_n(&s_env, (void *) &items_set[i]);
}
return (int *)s_env.sample;
}
int main()
{
unsigned int i, j;
unsigned int n = 3;
unsigned int num_items = 10;
unsigned int *frequencies;
int *items_set;
srand(time(NULL));
items_set = malloc(num_items * sizeof(int));
frequencies = malloc(num_items * sizeof(int));
for (i = 0; i < num_items; i++) {
items_set[i] = i;
frequencies[i] = 0;
}
for (i = 0; i < 100000; i++) {
int *res = test(n, items_set, num_items);
for (j = 0; j < n; j++) {
frequencies[res[j]]++;
}
free(res);
}
for (i = 0; i < num_items; i++) {
printf(" %d", frequencies[i]);
}
puts("");
return 0;
}
|
the_stack_data/90764034.c | //
// AOJ0110.c
//
//
// Created by n_knuu on 2014/03/12.
//
//
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(void) {
int add1,add2,sum,i,j;
char str1[127],copy[127],str2[127],a[10]={'0','1','2','3','4','5','6','7','8','9'};
while (scanf("%s\n",str1)!=EOF) {
for (i=0; i<10; i++) {
strcpy(copy,str1);
for (j=0; j<strlen(copy); j++) {
if (copy[j]=='X') {
copy[j]=a[i];
}
}
sscanf(copy,"%d+%d=%d",&add1,&add2,&sum);
sprintf(str2,"%d+%d=%d",add1,add2,sum);
if (strlen(str1)!=strlen(str2)) continue;
if (add1+add2==sum) break;
}
if (i==10) {
printf("NA\n");
} else {
printf("%d\n",i);
}
}
return 0;
} |
the_stack_data/48574337.c | /**
******************************************************************************
* @file stm32l4xx_ll_pka.c
* @author MCD Application Team
* @brief PKA LL module driver.
******************************************************************************
* @attention
*
* <h2><center>© 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 "stm32l4xx_ll_pka.h"
#include "stm32l4xx_ll_bus.h"
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#endif
/** @addtogroup STM32L4xx_LL_Driver
* @{
*/
#if defined(PKA)
/** @addtogroup PKA_LL
* @{
*/
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/* Private macros ------------------------------------------------------------*/
/** @defgroup PKA_LL_Private_Macros PKA Private Constants
* @{
*/
#define IS_LL_PKA_MODE(__VALUE__) (((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM_MOD_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM_ECC) ||\
((__VALUE__) == LL_PKA_MODE_ECC_KP_PRIMITIVE) ||\
((__VALUE__) == LL_PKA_MODE_ECDSA_SIGNATURE) ||\
((__VALUE__) == LL_PKA_MODE_ECDSA_VERIFICATION) ||\
((__VALUE__) == LL_PKA_MODE_POINT_CHECK) ||\
((__VALUE__) == LL_PKA_MODE_RSA_CRT_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_INV) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_ADD) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_SUB) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_MUL) ||\
((__VALUE__) == LL_PKA_MODE_COMPARISON) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_REDUC) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_ADD) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_SUB) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_MUL))
/**
* @}
*/
/* Private function prototypes -----------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/** @addtogroup PKA_LL_Exported_Functions
* @{
*/
/** @addtogroup PKA_LL_EF_Init
* @{
*/
/**
* @brief De-initialize PKA registers (Registers restored to their default values).
* @param PKAx PKA Instance.
* @retval ErrorStatus
* - SUCCESS: PKA registers are de-initialized
* - ERROR: PKA registers are not de-initialized
*/
ErrorStatus LL_PKA_DeInit(PKA_TypeDef *PKAx)
{
ErrorStatus status = SUCCESS;
/* Check the parameters */
assert_param(IS_PKA_ALL_INSTANCE(PKAx));
if (PKAx == PKA)
{
/* Force PKA reset */
LL_AHB2_GRP1_ForceReset(LL_AHB2_GRP1_PERIPH_PKA);
/* Release PKA reset */
LL_AHB2_GRP1_ReleaseReset(LL_AHB2_GRP1_PERIPH_PKA);
}
else
{
status = ERROR;
}
return (status);
}
/**
* @brief Initialize PKA registers according to the specified parameters in PKA_InitStruct.
* @param PKAx PKA Instance.
* @param PKA_InitStruct pointer to a @ref LL_PKA_InitTypeDef structure
* that contains the configuration information for the specified PKA peripheral.
* @retval ErrorStatus
* - SUCCESS: PKA registers are initialized according to PKA_InitStruct content
* - ERROR: Not applicable
*/
ErrorStatus LL_PKA_Init(PKA_TypeDef *PKAx, LL_PKA_InitTypeDef *PKA_InitStruct)
{
assert_param(IS_PKA_ALL_INSTANCE(PKAx));
assert_param(IS_LL_PKA_MODE(PKA_InitStruct->Mode));
LL_PKA_Config(PKAx, PKA_InitStruct->Mode);
return (SUCCESS);
}
/**
* @brief Set each @ref LL_PKA_InitTypeDef field to default value.
* @param PKA_InitStruct pointer to a @ref LL_PKA_InitTypeDef structure
* whose fields will be set to default values.
* @retval None
*/
void LL_PKA_StructInit(LL_PKA_InitTypeDef *PKA_InitStruct)
{
/* Reset PKA init structure parameters values */
PKA_InitStruct->Mode = LL_PKA_MODE_MONTGOMERY_PARAM_MOD_EXP;
}
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#endif /* defined (PKA) */
/**
* @}
*/
#endif /* USE_FULL_LL_DRIVER */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
the_stack_data/117326985.c | /* A Bison parser, made from plural.y
by GNU Bison version 1.28 */
#define YYBISON 1 /* Identify Bison output. */
#define yyparse __gettextparse
#define yylex __gettextlex
#define yyerror __gettexterror
#define yylval __gettextlval
#define yychar __gettextchar
#define yydebug __gettextdebug
#define yynerrs __gettextnerrs
#define EQUOP2 257
#define CMPOP2 258
#define ADDOP2 259
#define MULOP2 260
#define NUMBER 261
#line 1 "plural.y"
/* Expression parsing for plural form selection.
Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Written by Ulrich Drepper <[email protected]>, 2000.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published
by the Free Software Foundation; either version 2, 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
/* The bison generated parser uses alloca. AIX 3 forces us to put this
declaration at the beginning of the file. The declaration in bison's
skeleton file comes too late. This must come before <config.h>
because <config.h> may include arbitrary system headers. */
static void
yyerror (str)
const char *str;
{
/* Do nothing. We don't print error messages here. */
}
|
the_stack_data/13691.c | #include<stdio.h>
#include<stdlib.h>
struct node
{
int data;
struct node *next;
}*front=NULL,*rear=NULL;
void enqueue(int d)
{
struct node *newnode;
newnode = (struct node*)malloc(sizeof(struct node));
newnode->data=d;
newnode->next=NULL;
if(front==NULL && rear==NULL)
{
front=newnode;
rear=front;
}
else
{
rear->next=newnode;
rear=newnode;
}
}
int dequeue()
{
if(front==NULL)
{
printf("\nEmpty queue!!\n");
return -1;
}
int x;
struct node *temp;
temp=front;
if(front==rear)
{
front=NULL;
rear=NULL;
}
else
front = front->next;
x=temp->data;
free(temp);
return x;
}
void display()
{
printf("\n");
struct node *temp;
temp=front;
while(temp!=NULL)
{
printf("%d ",temp->data);
temp=temp->next;
}
}
int main()
{
int ch;
int data;
do
{
printf("\n1: Enqueue");
printf("\n2: Dequeue");
printf("\n3: Display");
printf("\n4: quit");
printf("\nEnter your choice : ");
scanf("%d",&ch);
switch(ch)
{
case 1:
printf("\nEnter the data: ");
scanf("%d",&data);
enqueue(data);
break;
case 2:
printf("\n%d has been dequeued",dequeue());
break;
case 3:
display();
break;
case 4:
break;
default:
printf("\nWrong input!!");
}
}while(ch!=4);
return 0;
}
|
the_stack_data/295307.c | /***
*
* Version Data
*
*****************************************************************************/
#define D_VERSION_ID "v0.4.2"
#define RES_GAME_VERSION ("$DUSTER " D_VERSION_ID)
#define RES_GAME_COPYING "$COPYING Copyright (C) 2018-2022 bean machine."
#ifndef GAME_BUILD_ID
#define GAME_BUILD_ID "unknown"
#endif
#define RES_GAME_BUILD ("$BUILD " GAME_BUILD_ID)
__attribute__((used)) const char* VERSION_ID = D_VERSION_ID;
__attribute__((used)) const char* BUILD_ID = GAME_BUILD_ID;
__attribute__((used)) const char* GAME_VERSION = RES_GAME_VERSION;
__attribute__((used)) const char* GAME_BUILD = RES_GAME_BUILD;
__attribute__((used)) const char* GAME_COPYING = RES_GAME_COPYING; |
the_stack_data/12519.c | /*
*
* Program to visualize the size of "Good Grief" by Bastille
* Peter Strawn
* CS50 AP
*
*/
#include <stdio.h>
#include <stdlib.h> // needed for srand and rand
#include <time.h> // needed for time
#define BIT 1 // 2^0
#define BYTE 8 // 2^3
#define KILOBYTE 1024*BYTE // 2^10 * BYTE
#define MEGABYTE 1048576*BYTE // 2^20 * BYTE
#define GOODGRIEF 1048576*BYTE*7.2 // 7.2 MB = 2^20 * BYTE * 7.2
int main(void)
{
// seed rand with time
srand(time(NULL));
// print a random sequence of 0s and 1s the size of "Good Grief" by Bastille
for (int i = 0; i < GOODGRIEF; i++)
{
printf("%d", rand() % 2);
}
// print new line at end of file
printf("\n");
} |
the_stack_data/7449.c | /* This file was automatically generated by CasADi.
The CasADi copyright holders make no ownership claim of its contents. */
#ifdef __cplusplus
extern "C" {
#endif
/* How to prefix internal symbols */
#ifdef CODEGEN_PREFIX
#define NAMESPACE_CONCAT(NS, ID) _NAMESPACE_CONCAT(NS, ID)
#define _NAMESPACE_CONCAT(NS, ID) NS ## ID
#define CASADI_PREFIX(ID) NAMESPACE_CONCAT(CODEGEN_PREFIX, ID)
#else
#define CASADI_PREFIX(ID) wt_nx6p2_impl_ode_fun_ ## ID
#endif
#include <math.h>
#ifndef casadi_real
#define casadi_real double
#endif
#ifndef casadi_int
#define casadi_int int
#endif
/* Add prefix to internal symbols */
#define casadi_c0 CASADI_PREFIX(c0)
#define casadi_c1 CASADI_PREFIX(c1)
#define casadi_copy CASADI_PREFIX(copy)
#define casadi_de_boor CASADI_PREFIX(de_boor)
#define casadi_f0 CASADI_PREFIX(f0)
#define casadi_f1 CASADI_PREFIX(f1)
#define casadi_fill CASADI_PREFIX(fill)
#define casadi_fill_casadi_int CASADI_PREFIX(fill_casadi_int)
#define casadi_low CASADI_PREFIX(low)
#define casadi_nd_boor_eval CASADI_PREFIX(nd_boor_eval)
#define casadi_s0 CASADI_PREFIX(s0)
#define casadi_s1 CASADI_PREFIX(s1)
#define casadi_s2 CASADI_PREFIX(s2)
#define casadi_s3 CASADI_PREFIX(s3)
#define casadi_s4 CASADI_PREFIX(s4)
#define casadi_s5 CASADI_PREFIX(s5)
#define casadi_s6 CASADI_PREFIX(s6)
#define casadi_sq CASADI_PREFIX(sq)
/* Symbol visibility in DLLs */
#ifndef CASADI_SYMBOL_EXPORT
#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#if defined(STATIC_LINKED)
#define CASADI_SYMBOL_EXPORT
#else
#define CASADI_SYMBOL_EXPORT __declspec(dllexport)
#endif
#elif defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#define CASADI_SYMBOL_EXPORT __attribute__ ((visibility ("default")))
#else
#define CASADI_SYMBOL_EXPORT
#endif
#endif
static const casadi_int casadi_s0[2] = {0, 0};
static const casadi_int casadi_s1[2] = {1, 55};
static const casadi_int casadi_s2[2] = {3, 3};
static const casadi_int casadi_s3[3] = {0, 59, 131};
static const casadi_int casadi_s4[12] = {8, 1, 0, 8, 0, 1, 2, 3, 4, 5, 6, 7};
static const casadi_int casadi_s5[6] = {2, 1, 0, 2, 0, 1};
static const casadi_int casadi_s6[5] = {1, 1, 0, 1, 0};
static const casadi_real casadi_c0[3740] = {1.8184086601773187e-03, 1.0904223423495404e-03, 2.1284991539426783e-03, 2.4183297386224383e-03, 2.9292756796894717e-03, 3.2948060866679267e-03, 3.7315668141347912e-03, 4.1343263986859313e-03, 4.5563053496223867e-03, 4.9713728384279347e-03, 5.3907646264113500e-03, 5.8073290007822527e-03, 6.2231609676950267e-03, 6.6378402735228553e-03, 7.0511163999661258e-03, 7.4616134713547328e-03, 7.8714853236313033e-03, 8.2809581949205308e-03, 8.6874696441523493e-03, 9.0923302948452567e-03, 9.4955165822850594e-03, 9.8936956957241251e-03, 1.0289518246109745e-02, 1.0679678042924228e-02, 1.1071326415580255e-02, 1.1458679274212335e-02, 1.1844285428821743e-02, 1.2225826669718144e-02, 1.2599696779551962e-02, 1.2969225412061020e-02, 1.3335272827729425e-02, 1.3698516866381271e-02, 1.4060708568523475e-02, 1.4413909439722985e-02, 1.4764406279404703e-02, 1.5111627753613547e-02, 1.5449419489704604e-02, 1.5779118407517112e-02, 1.6105920324379467e-02, 1.6435191584132119e-02, 1.6750196790189940e-02, 1.7069047253462508e-02, 1.7362301504420041e-02, 1.7688279675615693e-02, 1.7933284783715350e-02, 1.8382805036747767e-02, 1.8215306098602762e-02, 1.8262857646411765e-02, 1.8232271944510312e-02, 1.8249189624503084e-02, 1.8239674629467205e-02, 1.8251039072585646e-02, 1.8220269373502820e-02, 1.8267428421928512e-02, 1.8132711378110813e-02, 8.3085952623944013e-04, 1.8359830088230124e-03, 1.7956821082281470e-03, 2.5333472147936438e-03, 2.8738841151270508e-03, 3.3237144634793848e-03, 3.7197847610549815e-03, 4.1429966739586748e-03, 4.5553330041380215e-03, 4.9752663564854634e-03, 5.3924894384507057e-03, 5.8102875766167256e-03, 6.2260437237284111e-03, 6.6410016435829479e-03, 7.0541333913303481e-03, 7.4651429546108558e-03, 7.8751585801590685e-03, 8.2840970319735495e-03, 8.6908520800561100e-03, 9.0957081511521803e-03, 9.4980722455570432e-03, 9.8966972647818782e-03, 1.0291164636052709e-02, 1.0682748342503514e-02, 1.1072297530362858e-02, 1.1459981765592023e-02, 1.1844739387864543e-02, 1.2224971523868819e-02, 1.2598762336953444e-02, 1.2967445583110299e-02, 1.3332723435120234e-02, 1.3695559712480985e-02, 1.4055067374954183e-02, 1.4408825736522173e-02, 1.4758153541920109e-02, 1.5103242399836347e-02, 1.5440071090258989e-02, 1.5769308696990020e-02, 1.6096807816507453e-02, 1.6420630908989122e-02, 1.6740894403525112e-02, 1.7049346259408335e-02, 1.7361510283680583e-02, 1.7654267568851918e-02, 1.7989278130116016e-02, 1.8251978448535558e-02, 1.8273132606509819e-02, 1.8228099098711200e-02, 1.8233584900392442e-02, 1.8227120832387450e-02, 1.8232741798215126e-02, 1.8229194641150269e-02, 1.8227725197522422e-02, 1.8232732494755037e-02, 1.8084198674117806e-02, 1.4260148873143791e-03, 1.3774451961144035e-03, 1.9855018454883466e-03, 2.4524310347448326e-03, 2.8948805932027784e-03, 3.2906510565985725e-03, 3.7102710166742412e-03, 4.1189141288687650e-03, 4.5352236439490179e-03, 4.9499870802985017e-03, 5.3664718747950986e-03, 5.7814612134081287e-03, 6.1954938190694952e-03, 6.6082825456011138e-03, 7.0196429130457184e-03, 7.4295474841089794e-03, 7.8389510782056887e-03, 8.2482172620348508e-03, 8.6560965679520711e-03, 9.0625191584863141e-03, 9.4670574687036636e-03, 9.8685636903891403e-03, 1.0267149703944876e-02, 1.0662666896616881e-02, 1.1058688731478802e-02, 1.1452491421781752e-02, 1.1844039222776990e-02, 1.2232051753501713e-02, 1.2614590938931868e-02, 1.2992897781685248e-02, 1.3368214423737451e-02, 1.3741955929623384e-02, 1.4113282307222223e-02, 1.4478985272299010e-02, 1.4841110041514999e-02, 1.5198764441702723e-02, 1.5549019315604143e-02, 1.5891472275106400e-02, 1.6230171757868693e-02, 1.6566644833444413e-02, 1.6893510944815896e-02, 1.7214976220536273e-02, 1.7526518746467882e-02, 1.7843126375422964e-02, 1.8146853800514239e-02, 1.8422984907889736e-02, 1.8429506204680215e-02, 1.8417439573032844e-02, 1.8401886545152606e-02, 1.8402803658265000e-02, 1.8402948942210940e-02, 1.8403358308662472e-02, 1.8415752477090774e-02, 1.8418095689239748e-02, 1.8581211756580639e-02, 1.1890863167041061e-03, 1.5720948087278349e-03, 1.9151102539217656e-03, 2.4917493155122432e-03, 2.8943588825649544e-03, 3.3132153534572721e-03, 3.7244461203582639e-03, 4.1403101187719596e-03, 4.5560982967091492e-03, 4.9740853112396526e-03, 5.3919347025508475e-03, 5.8091894770553407e-03, 6.2250130433831796e-03, 6.6396786864199508e-03, 7.0526497473931624e-03, 7.4636452663832311e-03, 7.8735715667087643e-03, 8.2824707338611282e-03, 8.6893309770602924e-03, 9.0942499521325330e-03, 9.4967104387622455e-03, 9.8954114589935339e-03, 1.0290462245976555e-02, 1.0682192098683076e-02, 1.1072509482788645e-02, 1.1460484708642546e-02, 1.1845658434027045e-02, 1.2226390944019521e-02, 1.2600948119477135e-02, 1.2970593508390020e-02, 1.3336747743493296e-02, 1.3700283716929357e-02, 1.4060713569719998e-02, 1.4415474912679218e-02, 1.4765946732377954e-02, 1.5111712964162447e-02, 1.5449749392942380e-02, 1.5780739497112683e-02, 1.6108818914085159e-02, 1.6434302767421527e-02, 1.6753608194343596e-02, 1.7066572259807424e-02, 1.7375928916857984e-02, 1.7685213906389718e-02, 1.7994365959108315e-02, 1.8261760927701362e-02, 1.8278585036349996e-02, 1.8260218857540894e-02, 1.8249091229132167e-02, 1.8247142416302799e-02, 1.8247686951102432e-02, 1.8249048622869756e-02, 1.8243057244703827e-02, 1.8254356106326187e-02, 1.8220771557418265e-02, 1.2917423945598358e-03, 1.5095105130214245e-03, 1.9510852388274779e-03, 2.4877392763556268e-03, 2.9071413110243961e-03, 3.3191483639899849e-03, 3.7355232633908175e-03, 4.1505847663347644e-03, 4.5685077902003959e-03, 4.9871702362239093e-03, 5.4064140501891870e-03, 5.8247306551549999e-03, 6.2417718448860710e-03, 6.6575390384948051e-03, 7.0715653432949039e-03, 7.4833133376064984e-03, 7.8936892314475197e-03, 8.3025739352116674e-03, 8.7090587335081609e-03, 9.1133543668436810e-03, 9.5149369193859232e-03, 9.9122913360103343e-03, 1.0305772078411872e-02, 1.0695611722214454e-02, 1.1083221060468300e-02, 1.1468274962358541e-02, 1.1850360242752385e-02, 1.2227493058795069e-02, 1.2598030605910571e-02, 1.2963328978634656e-02, 1.3324864536191810e-02, 1.3683182959038509e-02, 1.4038103091063396e-02, 1.4387220399640297e-02, 1.4731747076910889e-02, 1.5071366266783195e-02, 1.5403030227062088e-02, 1.5728176574727328e-02, 1.6050514066639116e-02, 1.6370740527450738e-02, 1.6685356786855818e-02, 1.6995126294834243e-02, 1.7300890146081990e-02, 1.7610154836838289e-02, 1.7916670960234606e-02, 1.8187323442709642e-02, 1.8201853263940377e-02, 1.8185789829218778e-02, 1.8173202523590688e-02, 1.8171531073365971e-02, 1.8171886027759775e-02, 1.8168525477880025e-02, 1.8163967015769399e-02, 1.8102683185725603e-02, 1.8066001072359360e-02, 1.2425869394019681e-03, 1.5325730445849830e-03, 1.9235544607098085e-03, 2.4771719030035710e-03, 2.8860422382735841e-03, 3.2993812193301028e-03, 3.7111932144932780e-03, 4.1247671177941474e-03, 4.5398092902077507e-03, 4.9564272851261295e-03, 5.3733511113113995e-03, 5.7896141343461707e-03, 6.2046488496964904e-03, 6.6186506134176763e-03, 7.0312415203207940e-03, 7.4421782969762065e-03, 7.8525054030219137e-03, 8.2622623634228485e-03, 8.6704441816139281e-03, 9.0771042755716947e-03, 9.4817586190490133e-03, 9.8830894013814900e-03, 1.0281305725069642e-02, 1.0676834704567300e-02, 1.1071497162366353e-02, 1.1464402744525896e-02, 1.1854976632445778e-02, 1.2241540142361234e-02, 1.2622404463562780e-02, 1.2998799244091922e-02, 1.3372213043611473e-02, 1.3743430537548456e-02, 1.4111954188859127e-02, 1.4475091957640383e-02, 1.4834086030291904e-02, 1.5188481803609259e-02, 1.5534958943294061e-02, 1.5874168004316423e-02, 1.6209849585064273e-02, 1.6542182188449012e-02, 1.6867017441704268e-02, 1.7184472837268712e-02, 1.7496106479415068e-02, 1.7807647781488047e-02, 1.8115432350818524e-02, 1.8383903624808118e-02, 1.8398681607861792e-02, 1.8381519204316989e-02, 1.8369371526665158e-02, 1.8367190465370161e-02, 1.8366377702969647e-02, 1.8363592063642992e-02, 1.8360988646817292e-02, 1.8360613916913737e-02, 1.8216704212256615e-02, 1.2282669296476197e-03, 1.4872997150881396e-03, 1.9065758804584936e-03, 2.4444128654649445e-03, 2.8522736022403594e-03, 3.2587026934209644e-03, 3.6668457559830459e-03, 4.0754749880262372e-03, 4.4866029278565565e-03, 4.8991739715189197e-03, 5.3124649029557608e-03, 5.7251749007184109e-03, 6.1369441221706591e-03, 6.5479561322170279e-03, 6.9579194868595647e-03, 7.3672404428532469e-03, 7.7768544965928490e-03, 8.1873593772466020e-03, 8.5973671265676677e-03, 9.0065958702651664e-03, 9.4146003520117795e-03, 9.8206689174303152e-03, 1.0224525725063629e-02, 1.0626282346191590e-02, 1.1030110152503190e-02, 1.1432476352027456e-02, 1.1833136992854876e-02, 1.2231319544984848e-02, 1.2624965277891621e-02, 1.3015186535134247e-02, 1.3403156428088465e-02, 1.3790770204469087e-02, 1.4176614422930531e-02, 1.4557215652880554e-02, 1.4934530360368627e-02, 1.5307368993610043e-02, 1.5672801911175260e-02, 1.6029109166279150e-02, 1.6380727320290351e-02, 1.6728004524298512e-02, 1.7063612057960875e-02, 1.7389132855767396e-02, 1.7705226740628004e-02, 1.8017730848859943e-02, 1.8323125895087066e-02, 1.8586305536984832e-02, 1.8598835946331615e-02, 1.8580578185940312e-02, 1.8567669315557516e-02, 1.8565724923683323e-02, 1.8564590421932821e-02, 1.8567707410792961e-02, 1.8586394084643187e-02, 1.8792224283614253e-02, 1.8944753437773517e-02, 1.2119266560927317e-03, 1.5047211746179155e-03, 1.9238363084110568e-03, 2.4728948519911207e-03, 2.8833177421891043e-03, 3.2953076784660021e-03, 3.7079142091405747e-03, 4.1219359311165001e-03, 4.5381119193306993e-03, 4.9559085453083681e-03, 5.3743477036397235e-03, 5.7922224946934707e-03, 6.2088950357154921e-03, 6.6243013924924612e-03, 7.0375369595456934e-03, 7.4481168815136870e-03, 7.8564064627978502e-03, 8.2624777957852735e-03, 8.6651799004236734e-03, 9.0647597208410712e-03, 9.4606030010681054e-03, 9.8514307868616362e-03, 1.0237223746387128e-02, 1.0617398668452337e-02, 1.0994777685174524e-02, 1.1367771283735348e-02, 1.1736735906798738e-02, 1.2100014275964893e-02, 1.2455814450432716e-02, 1.2805635758676321e-02, 1.3150419401325475e-02, 1.3491527140446788e-02, 1.3828522502096792e-02, 1.4158753250462506e-02, 1.4483968494648570e-02, 1.4803300166904881e-02, 1.5114901291594787e-02, 1.5419104666249428e-02, 1.5720541294821637e-02, 1.6020539824009739e-02, 1.6314994832450094e-02, 1.6605380250889010e-02, 1.6893611748031626e-02, 1.7187525466994508e-02, 1.7484911404577523e-02, 1.7746543339095609e-02, 1.7756422474392086e-02, 1.7735093735471670e-02, 1.7720845607780283e-02, 1.7719403633114465e-02, 1.7720662592150348e-02, 1.7729425455305869e-02, 1.7754714025328598e-02, 1.7970502230074920e-02, 1.8624335254012248e-02, 1.3023863147950446e-03, 1.5929110084396605e-03, 2.0343114034508843e-03, 2.6087480815437133e-03, 3.0401392920669764e-03, 3.4712714815803829e-03, 3.9028789348848195e-03, 4.3344547457094713e-03, 4.7665348129183180e-03, 5.1984203718174748e-03, 5.6294702178170562e-03, 6.0585410062087000e-03, 6.4846681375881491e-03, 6.9073828630842301e-03, 7.3252207662726793e-03, 7.7349762660350345e-03, 8.1373306250337001e-03, 8.5300502036194520e-03, 8.9134293774004343e-03, 9.2893443592322635e-03, 9.6571617619951727e-03, 1.0012922003524882e-02, 1.0357840991346869e-02, 1.0691654221944203e-02, 1.1008228779733349e-02, 1.1316935231250363e-02, 1.1617512329165143e-02, 1.1905165822648231e-02, 1.2180354007892713e-02, 1.2444461400035724e-02, 1.2698269674923291e-02, 1.2939774173428382e-02, 1.3172943531782956e-02, 1.3398209413583719e-02, 1.3614985110986102e-02, 1.3825995308929955e-02, 1.4028584856334346e-02, 1.4232191602114919e-02, 1.4438012975975332e-02, 1.4649337543825284e-02, 1.4876083833069145e-02, 1.5115027929406865e-02, 1.5370880758873920e-02, 1.5657939049477210e-02, 1.5970115898758300e-02, 1.6260869389137116e-02, 1.6273423375169030e-02, 1.6249183076808896e-02, 1.6232829756560877e-02, 1.6230810028726492e-02, 1.6237612742648216e-02, 1.6241469780266537e-02, 1.6230951360564797e-02, 1.5942361100025140e-02, 1.5792991990867006e-02, 1.4180538917131071e-03, 1.7180860005641238e-03, 2.1786525576628695e-03, 2.7897685529608899e-03, 3.2444765877902562e-03, 3.6952095055639276e-03, 4.1415946115584993e-03, 4.5837079750838550e-03, 5.0203173922150563e-03, 5.4515107974211349e-03, 5.8774509753408396e-03, 6.2972473853384718e-03, 6.7107971354271731e-03, 7.1187035474830403e-03, 7.5209118906097465e-03, 7.9166991946869152e-03, 8.3089367982247930e-03, 8.6964514184589090e-03, 9.0789893715712087e-03, 9.4590126601451618e-03, 9.8372236460460595e-03, 1.0210110635581389e-02, 1.0575647443951362e-02, 1.0934812122334256e-02, 1.1283591040471313e-02, 1.1630703812680717e-02, 1.1974104313424565e-02, 1.2310665773362796e-02, 1.2645356663972859e-02, 1.2975535885506559e-02, 1.3294378357561872e-02, 1.3607109457951875e-02, 1.3917527296092498e-02, 1.4223916687815308e-02, 1.4528963083353002e-02, 1.4837564269039342e-02, 1.5146859352894065e-02, 1.5458779904736436e-02, 1.5773195966931778e-02, 1.6093325278169673e-02, 1.6439152850656984e-02, 1.6799544713308388e-02, 1.7178974361309891e-02, 1.7596844300948673e-02, 1.8030767098456007e-02, 1.8420534848264659e-02, 1.8452265538236177e-02, 1.8430138623947698e-02, 1.8411849198328622e-02, 1.8409000460294579e-02, 1.8415774810156289e-02, 1.8418473605647086e-02, 1.8360417426155264e-02, 1.7781529152783408e-02, 1.6395720146299513e-02, 1.4669618551833609e-03, 1.7751320405316783e-03, 2.2655203685333202e-03, 2.9194480539389001e-03, 3.4010295896935001e-03, 3.8710520635108071e-03, 4.3312982346951920e-03, 4.7830473195374281e-03, 5.2241942131977829e-03, 5.6560581257435599e-03, 6.0806821537055548e-03, 6.4975855644801312e-03, 6.9089158950036396e-03, 7.3181985565135173e-03, 7.7284367032145413e-03, 8.1486196510134924e-03, 8.5811987537448859e-03, 9.0321082093089509e-03, 9.4963981821967070e-03, 9.9767578347494355e-03, 1.0476654235795146e-02, 1.1000085596665083e-02, 1.1534525332877158e-02, 1.2082011950962077e-02, 1.2668499802984406e-02, 1.3272966706282835e-02, 1.3889209438536053e-02, 1.4520065653605186e-02, 1.5177383072221877e-02, 1.5852839574517663e-02, 1.6516724689748626e-02, 1.7201789220629555e-02, 1.7900093236384081e-02, 1.8597758830083157e-02, 1.9310861811011808e-02, 2.0038193281537268e-02, 2.0784000504253504e-02, 2.1514404337394183e-02, 2.2234971859882206e-02, 2.2944187805244175e-02, 2.3653223595060235e-02, 2.4351041964644254e-02, 2.5030789132324694e-02, 2.5716241487146907e-02, 2.6353801646642482e-02, 2.6884542050079726e-02, 2.6942639703299211e-02, 2.6935038687647021e-02, 2.6918256305866011e-02, 2.6914011522858518e-02, 2.6916228637326713e-02, 2.6916594973306646e-02, 2.6907791643286074e-02, 2.6741464314398788e-02, 2.6647756238251191e-02, 1.3658539230676332e-03, 1.6615718282394539e-03, 2.2605954188217774e-03, 3.0285271540821564e-03, 3.5938141975989748e-03, 4.1514007076943679e-03, 4.7060045071285915e-03, 5.2618321974679579e-03, 5.8233256699621941e-03, 6.3900301839001717e-03, 6.9648089009768316e-03, 7.5529211750612465e-03, 8.1522821889670003e-03, 8.7675949047644457e-03, 9.4070095690792065e-03, 1.0073075500578423e-02, 1.0757107768656059e-02, 1.1463248140624738e-02, 1.2186055645084157e-02, 1.2935896941828517e-02, 1.3719123565040733e-02, 1.4536938702963811e-02, 1.5377985336106731e-02, 1.6247526896858450e-02, 1.7196259111608641e-02, 1.8183155807882941e-02, 1.9191006754169602e-02, 2.0191638760322945e-02, 2.1223347118324444e-02, 2.2277866240622422e-02, 2.3304419767152220e-02, 2.4343417463348536e-02, 2.5384023551472536e-02, 2.6403508209179759e-02, 2.7417222463598179e-02, 2.8419230310831670e-02, 2.9414792786865037e-02, 3.0377443171901438e-02, 3.1306965114834648e-02, 3.2179800808154489e-02, 3.3009674234101706e-02, 3.3797806069681538e-02, 3.4531216851747974e-02, 3.5215449337989910e-02, 3.5805125819103098e-02, 3.6279187853690276e-02, 3.6345320895770056e-02, 3.6362818616279415e-02, 3.6356053483721854e-02, 3.6352760535180328e-02, 3.6346703404870402e-02, 3.6346334183116745e-02, 3.6381525573196231e-02, 3.6765387194715941e-02, 3.7730421174586248e-02, 1.0087434984848889e-03, 1.5355401205010470e-03, 2.4104930500987473e-03, 3.4610006792987467e-03, 4.2541736435168925e-03, 5.0634421967802323e-03, 5.8971189164786940e-03, 6.7554693746128651e-03, 7.6600480566105531e-03, 8.6008992635640720e-03, 9.5799452363459249e-03, 1.0616413031967229e-02, 1.1690837693851057e-02, 1.2804648622710331e-02, 1.3976852891107184e-02, 1.5175044401354875e-02, 1.6375253266181958e-02, 1.7561233967007372e-02, 1.8734042894310163e-02, 1.9916977173527101e-02, 2.1115217156040929e-02, 2.2298056467923134e-02, 2.3483860281425090e-02, 2.4681518102823395e-02, 2.5926311836217280e-02, 2.7204507099772544e-02, 2.8494221163470612e-02, 2.9677089659710179e-02, 3.0852459852365042e-02, 3.2012057409211959e-02, 3.3106633069392759e-02, 3.4129561335359750e-02, 3.5090173584401300e-02, 3.5971193136393076e-02, 3.6753167598430538e-02, 3.7456119013737403e-02, 3.8046222122737117e-02, 3.8606019178719572e-02, 3.9088517973190247e-02, 3.9459258710753356e-02, 3.9751377231423669e-02, 4.0002988269798680e-02, 4.0192037871232329e-02, 4.0263143293533067e-02, 4.0259414105762503e-02, 4.0237672011263485e-02, 4.0265500902563298e-02, 4.0307620830701649e-02, 4.0323776098776166e-02, 4.0323673867069296e-02, 4.0313689489204774e-02, 4.0306139246369846e-02, 4.0323639667291043e-02, 4.0712799577125924e-02, 4.0928142996292348e-02, 1.3953716510723873e-03, 2.3213364489006487e-03, 3.6092884471297030e-03, 5.2238942660468770e-03, 6.4682025619017093e-03, 7.7693112941337140e-03, 9.1132364869456750e-03, 1.0489732191411012e-02, 1.1913595154280646e-02, 1.3370679822669727e-02, 1.4866055755428306e-02, 1.6424848461315950e-02, 1.8006948007774370e-02, 1.9615248320012584e-02, 2.1273085409359741e-02, 2.2939465443746150e-02, 2.4602282043301837e-02, 2.6239540331096562e-02, 2.7834008350339605e-02, 2.9400878508452456e-02, 3.0930534785717098e-02, 3.2345413953099068e-02, 3.3699840411618359e-02, 3.4999768378426305e-02, 3.6229769250710434e-02, 3.7433070480167183e-02, 3.8607144100178535e-02, 3.9620697603104452e-02, 4.0590728946511626e-02, 4.1504757938432474e-02, 4.2314123083984509e-02, 4.2976478619587886e-02, 4.3504585913212955e-02, 4.3855344737156028e-02, 4.4020535641171782e-02, 4.4060143190908667e-02, 4.3922090919569758e-02, 4.3671448147239660e-02, 4.3296851018665941e-02, 4.2774568940880463e-02, 4.2191114596812102e-02, 4.1570879970585797e-02, 4.0888266326750841e-02, 3.9969966022581759e-02, 3.8941404777045108e-02, 3.8003711969431322e-02, 3.7925859307364869e-02, 3.7988740682824526e-02, 3.8032844858700614e-02, 3.8039977929645398e-02, 3.8030453667692754e-02, 3.8017311411764544e-02, 3.8018545266536932e-02, 3.8171535930902521e-02, 3.8180059571682794e-02, 3.7045073163119594e-03, 4.9583561955433919e-03, 6.8035509740745860e-03, 9.2399071558422283e-03, 1.1141503170500227e-02, 1.3119665441967169e-02, 1.5120821240315272e-02, 1.7123893657704104e-02, 1.9091691203716312e-02, 2.1025886613588708e-02, 2.2943889348515514e-02, 2.4857111713052042e-02, 2.6713548638957387e-02, 2.8529779841110693e-02, 3.0305953328970299e-02, 3.2056146452236145e-02, 3.3814729609827406e-02, 3.5594440050510878e-02, 3.7320125693917378e-02, 3.8974841468478280e-02, 4.0530703830860437e-02, 4.1874677057482310e-02, 4.3073926236833732e-02, 4.4119999274864138e-02, 4.4923056340356704e-02, 4.5591950122551288e-02, 4.6141490717972876e-02, 4.6610451359711355e-02, 4.7025334195150342e-02, 4.7383505561354948e-02, 4.7605258877286477e-02, 4.7693121098920099e-02, 4.7617997647244587e-02, 4.7251666574667617e-02, 4.6694841755925545e-02, 4.6048499534379124e-02, 4.5306928651436450e-02, 4.4238210617503257e-02, 4.2978207625985192e-02, 4.1605300132640195e-02, 4.0172109708502574e-02, 3.8696658769648638e-02, 3.7103225630918973e-02, 3.5151077741478326e-02, 3.3026012112785157e-02, 3.0963704281593049e-02, 3.0800761706203415e-02, 3.0860029502545742e-02, 3.0934815585175184e-02, 3.0945576002055605e-02, 3.0942630656261721e-02, 3.0930670205316989e-02, 3.0945121723808235e-02, 3.1063810635903185e-02, 3.1180100111323644e-02, 8.0942375003881951e-03, 9.8622524407957855e-03, 1.2228165611482756e-02, 1.5481872558265627e-02, 1.7965038138659812e-02, 2.0467494711988495e-02, 2.2937800699000289e-02, 2.5362110352856401e-02, 2.7661055947225576e-02, 2.9862975192984861e-02, 3.1997702677767338e-02, 3.4063304449161301e-02, 3.6015057410878154e-02, 3.7868588334858913e-02, 3.9581287003386180e-02, 4.1194070251655550e-02, 4.2767301199691694e-02, 4.4325045032075870e-02, 4.5777060062717354e-02, 4.7122785513898473e-02, 4.8345113988126090e-02, 4.9367825562183026e-02, 5.0204979792981844e-02, 5.0822895363357538e-02, 5.1078088872829795e-02, 5.1121214316367417e-02, 5.0951847845638248e-02, 5.0661780648542508e-02, 5.0307405664711403e-02, 4.9901566930492254e-02, 4.9310334757132916e-02, 4.8626843902565470e-02, 4.7792924127779274e-02, 4.6606658548044161e-02, 4.5292667866430263e-02, 4.3936129645665171e-02, 4.2620459324842097e-02, 4.0813641724793445e-02, 3.8803732875938600e-02, 3.6576078758004713e-02, 3.4237207114536490e-02, 3.1723018051109296e-02, 2.9083339276986236e-02, 2.6122908161554572e-02, 2.3203141936542708e-02, 2.0627482208033305e-02, 2.0440852674436599e-02, 2.0506021288214240e-02, 2.0590128732435587e-02, 2.0607072754082020e-02, 2.0601768030491945e-02, 2.0612467413164734e-02, 2.0593666164722153e-02, 2.0749201333180253e-02, 2.0990297806968046e-02, 1.4877167359098753e-02, 1.6733215046879042e-02, 1.9492815577270586e-02, 2.3241247517050031e-02, 2.5992731041510144e-02, 2.8597010732117154e-02, 3.1113831223423209e-02, 3.3547243683113917e-02, 3.5841555766171124e-02, 3.8045200830013122e-02, 4.0184290309004216e-02, 4.2249802934638925e-02, 4.4229849968077634e-02, 4.6108754202350527e-02, 4.7811368968590361e-02, 4.9303173966178705e-02, 5.0617452097454156e-02, 5.1702733157925014e-02, 5.2547205791301198e-02, 5.3261386959161244e-02, 5.3860457381250601e-02, 5.4410552047044758e-02, 5.4789551643937590e-02, 5.4956235940311481e-02, 5.4777316636451953e-02, 5.4394622511746808e-02, 5.3779368047151353e-02, 5.2679460935495671e-02, 5.1501418177485797e-02, 5.0242421174516119e-02, 4.8717354124878876e-02, 4.7106824449854430e-02, 4.5366700398375738e-02, 4.3346512056533559e-02, 4.1211467190138691e-02, 3.9069766544844890e-02, 3.6891286866201495e-02, 3.4391936701486131e-02, 3.1583652715330417e-02, 2.8628231170981785e-02, 2.5225505789372819e-02, 2.1671551783652945e-02, 1.7853757200601499e-02, 1.4145776581031822e-02, 1.1230823836340295e-02, 9.2602713757120609e-03, 9.1594352078656384e-03, 9.2352144944411914e-03, 9.3128110578447852e-03, 9.3195995458490929e-03, 9.3324631420855075e-03, 9.3149917946095031e-03, 9.3536045810567823e-03, 8.9596949695477622e-03, 9.0413125458370051e-03, 2.2434492108769400e-02, 2.4222075629071572e-02, 2.7169030098467686e-02, 3.1071537576123669e-02, 3.3852363542404833e-02, 3.6359282077284519e-02, 3.8745858073917901e-02, 4.1038115765271797e-02, 4.3227778733895959e-02, 4.5369832274320072e-02, 4.7455512975934040e-02, 4.9423557634778063e-02, 5.1292590813711125e-02, 5.3054939570915942e-02, 5.4644908955350076e-02, 5.5960315703123709e-02, 5.7012540412723127e-02, 5.7678966677475463e-02, 5.7934365978109879e-02, 5.8019000618800901e-02, 5.7967671457523143e-02, 5.7843907135675929e-02, 5.7540715591266375e-02, 5.7051916304612517e-02, 5.6286921068346485e-02, 5.5383924446491054e-02, 5.4288313038346490e-02, 5.2429725414849006e-02, 5.0459088643765478e-02, 4.8373202817770258e-02, 4.5983706412338357e-02, 4.3505422577757927e-02, 4.0937685769748211e-02, 3.8175125356060310e-02, 3.5346620112422698e-02, 3.2308078407002477e-02, 2.9049468844954653e-02, 2.5539780540796943e-02, 2.2075222877811822e-02, 1.8393944426024055e-02, 1.4836444291482754e-02, 1.1103499301441409e-02, 7.4721939010366769e-03, 4.1504804903980353e-03, 1.9202415230840206e-03, 1.3284489450061127e-03, 1.2888803242727838e-03, 1.4061183199858053e-03, 1.4342902466962140e-03, 1.4504691731703811e-03, 1.4383033360572928e-03, 1.4717939695711147e-03, 1.3428346299969814e-03, 1.1179744071399881e-03, -3.0193847036068559e-04, 2.9083324793687040e-02, 3.0997861335946938e-02, 3.3942114384628748e-02, 3.7779500841157776e-02, 4.0521083415307767e-02, 4.3037576966512475e-02, 4.5439336195880815e-02, 4.7763602650766603e-02, 5.0012054405711610e-02, 5.2221445648094972e-02, 5.4331277429605349e-02, 5.6157180778936597e-02, 5.7712223876391237e-02, 5.9072616973316845e-02, 6.0234828988696927e-02, 6.1151594698259107e-02, 6.1875342336864592e-02, 6.2323694060970672e-02, 6.2217462043073220e-02, 6.1874241143109993e-02, 6.1334882089175209e-02, 6.0296057303730312e-02, 5.9017040033342689e-02, 5.7538134702773649e-02, 5.5807080620396930e-02, 5.4005955259603625e-02, 5.2071611777444855e-02, 4.9565107261403223e-02, 4.6893388363689816e-02, 4.4088209773631176e-02, 4.1070366305725525e-02, 3.7961636192376219e-02, 3.4756831362672026e-02, 3.1466556816752096e-02, 2.7943844450109431e-02, 2.4279273296788053e-02, 1.9919453051670265e-02, 1.5522451671456959e-02, 1.1122205161355071e-02, 7.9856717680884797e-03, 5.3992948673711304e-03, 3.4299088286501573e-03, 1.2902179756261755e-03, -2.1577843266077802e-04, -5.6508473346164893e-04, -4.1621052732359123e-04, -2.1836406202003423e-04, -1.8584882814037961e-04, -1.6192453222248462e-04, -1.7811441150084601e-04, -1.5767305200527242e-04, -1.9684109428007120e-04, -8.4684228336506269e-05, -5.3534704625950939e-04, -2.8973608089161007e-05, 3.4895713808106882e-02, 3.6801240432538990e-02, 3.9743298629226757e-02, 4.3505606509406429e-02, 4.6252537529505082e-02, 4.8906748007476505e-02, 5.1501002455493293e-02, 5.4044710587191111e-02, 5.6475146703838679e-02, 5.8772384378893046e-02, 6.0883399615200520e-02, 6.2572017800530330e-02, 6.3760877027399368e-02, 6.4582553349157135e-02, 6.5057334588607338e-02, 6.5308876117584833e-02, 6.5452183567599437e-02, 6.5464791917216006e-02, 6.4874270078740567e-02, 6.4012449626284829e-02, 6.2912292314665400e-02, 6.0955845450556295e-02, 5.8709047004302663e-02, 5.6243379745591279e-02, 5.3530490334166007e-02, 5.0786136973361373e-02, 4.7966590562096324e-02, 4.4922776825913446e-02, 4.1676888008740663e-02, 3.8313977333385298e-02, 3.4827327462871219e-02, 3.1239077327578458e-02, 2.7477177161222235e-02, 2.3366839286298333e-02, 1.9325195645700399e-02, 1.4994825509169214e-02, 1.0852411272792878e-02, 6.5046323300230954e-03, 3.2947355390252593e-03, 1.2035942919900322e-04, -5.1148180080685284e-04, -9.7249025009558065e-04, -3.0524602790263659e-04, 7.1208669342534818e-06, 1.7435531348676132e-04, 1.2978288986617917e-03, 1.3496380448905813e-03, 1.4264991528793185e-03, 1.3814065887823022e-03, 1.3876082027965701e-03, 1.3669263493281405e-03, 1.4029780836680558e-03, 1.3422761432565025e-03, 1.7937006127085903e-03, 2.0281381374611346e-03, 3.9819954430654975e-02, 4.1797194645922020e-02, 4.4886684879804031e-02, 4.8832155064098048e-02, 5.1740473790565684e-02, 5.4626155076778857e-02, 5.7497093698906009e-02, 6.0292298595276031e-02, 6.2807898883821267e-02, 6.4959553150052043e-02, 6.6826154782930719e-02, 6.8327146445403011e-02, 6.9191871511790001e-02, 6.9517784491618217e-02, 6.9200461694126358e-02, 6.8596354827847206e-02, 6.7833804850272642e-02, 6.6867946628950806e-02, 6.5377773156907515e-02, 6.3652913279714701e-02, 6.1713551813821023e-02, 5.9086465265672440e-02, 5.6187221371625642e-02, 5.3095146415858156e-02, 4.9797165635666718e-02, 4.6462732071605971e-02, 4.3089443289097709e-02, 3.9591146338554345e-02, 3.5928301575232489e-02, 3.2087706227787789e-02, 2.8190967179084505e-02, 2.4066372732624994e-02, 1.9678647638501561e-02, 1.4875938037270596e-02, 9.7193630873781411e-03, 6.0170875571396417e-03, 3.5115017342070404e-03, 1.3995334487824534e-03, -1.0316198027935540e-03, 1.0861302931493577e-05, 1.3991155930992378e-04, 2.7547114813294038e-04, 7.8868693754156598e-05, -8.2618363054884388e-05, 1.3160779706079769e-03, 2.0101826915411144e-03, 2.2728371835150133e-03, 2.2052497899138143e-03, 2.1937349791427371e-03, 2.1698226777017741e-03, 2.1780130140102594e-03, 2.1599082911256092e-03, 2.2241994425461382e-03, 2.2907261540652084e-03, 2.6323119248148280e-03, 4.3953402557334091e-02, 4.6151705031116631e-02, 4.9607732208337009e-02, 5.4173781070783307e-02, 5.7571051026831029e-02, 6.0826982034545438e-02, 6.3931794702092246e-02, 6.6755080820539200e-02, 6.8898138295286973e-02, 7.0423529419261180e-02, 7.1590393507492078e-02, 7.2530101696614363e-02, 7.2895560102807372e-02, 7.2692635190157270e-02, 7.1659022236769482e-02, 7.0215943267637651e-02, 6.8519322639273017e-02, 6.6516273511363952e-02, 6.4071981759832031e-02, 6.1456183976449669e-02, 5.8704869229184421e-02, 5.5614164680318788e-02, 5.2316140574470850e-02, 4.8872451188041774e-02, 4.5284772528722886e-02, 4.1646427511183512e-02, 3.7928275927520308e-02, 3.4048443413880358e-02, 2.9965924872324426e-02, 2.5727341894008500e-02, 2.1113338269668373e-02, 1.6524128275418038e-02, 1.1881148862613202e-02, 6.8534235054311587e-03, 3.1555963791100915e-03, -7.0300695925442562e-04, -8.9556084918617222e-04, -3.8657198203876866e-04, 2.8669633398090079e-04, -1.3739378258486716e-05, -9.2581564910926794e-05, -9.7243076447410228e-05, -8.8331571365795854e-05, 6.1811934936478166e-04, 1.0122978792137867e-03, 2.0227888732309140e-03, 2.0375731515810879e-03, 2.0379677383552670e-03, 1.9816938654960833e-03, 1.9804549814208842e-03, 1.9718765640160643e-03, 1.9798211840043696e-03, 1.9503779310249708e-03, 2.0070364453516989e-03, 1.7573949215246949e-03, 4.7617385624547259e-02, 5.0402511473758606e-02, 5.4402777348478676e-02, 5.9859192941428621e-02, 6.3949900856900901e-02, 6.7538720109797362e-02, 7.0607344320492274e-02, 7.3022194901345427e-02, 7.4157638855232355e-02, 7.4579449962084113e-02, 7.4625315421932473e-02, 7.4492947564983827e-02, 7.4050719948888316e-02, 7.3193492436136542e-02, 7.1647569281631601e-02, 6.9559307092995404e-02, 6.7212146324244756e-02, 6.4643278993212080e-02, 6.1619332239900959e-02, 5.8465381611757246e-02, 5.5247531268926973e-02, 5.1797138194362394e-02, 4.8191517819783390e-02, 4.4453130818895369e-02, 4.0641687946100791e-02, 3.6723196025153178e-02, 3.2695883164325118e-02, 2.8326779120278089e-02, 2.3857206792622005e-02, 1.9014398869753119e-02, 1.3882551680733617e-02, 8.7406553542897867e-03, 4.5850938186864677e-03, 2.2327149832805501e-03, -1.0735899459979636e-03, 2.5315389839554778e-04, 2.3782238487298965e-04, 1.1222603478124992e-04, -1.0493490368364832e-04, 4.7503025138358147e-05, 2.1650518414109623e-04, 1.9386064568110233e-04, 2.7154758016668533e-04, 3.6803816064890228e-04, 1.0961471201867104e-03, 1.7911906559614915e-03, 1.9025240380842283e-03, 1.8418358197472904e-03, 1.8124648055769801e-03, 1.7996146659472344e-03, 1.8045086195579562e-03, 1.7975875686403922e-03, 1.8054145028745222e-03, 1.7286169137242507e-03, 1.7397441650733824e-03, 5.2608107981922933e-02, 5.5999436174418056e-02, 6.0362848655236175e-02, 6.6083422973100520e-02, 7.0122555868523520e-02, 7.3305770763075401e-02, 7.5686174317334889e-02, 7.7205666320705024e-02, 7.7206521086194344e-02, 7.6618021407543063e-02, 7.5717407541262299e-02, 7.4619648420774329e-02, 7.3397168541695076e-02, 7.1918063566213830e-02, 6.9985601126165295e-02, 6.7465562308993074e-02, 6.4726450183033302e-02, 6.1881618423437514e-02, 5.8596530944066527e-02, 5.5193142264664291e-02, 5.1728077455486000e-02, 4.7997596365692473e-02, 4.4121350474521780e-02, 4.0117787292762698e-02, 3.6020308553738993e-02, 3.1789116681495241e-02, 2.7299298883047281e-02, 2.2477798903969642e-02, 1.7258041479753045e-02, 1.2331703009580310e-02, 6.8218780984747058e-03, 3.1993397379852652e-03, -2.8753170901208331e-04, -8.1617485270230386e-04, 3.5298781369430039e-04, -9.6347657522047176e-05, -1.1541290486870951e-04, -3.0972946643098044e-05, 7.6352896901556120e-05, 8.8898187686247296e-05, 3.4971085836255219e-05, 6.1318727531186714e-05, 9.9097787179706703e-05, 4.9007718013142096e-04, 1.0423675449409478e-03, 1.8659221765417776e-03, 1.9147682098499131e-03, 1.8858884038295864e-03, 1.8442486596359916e-03, 1.8405368982459965e-03, 1.8400418298830381e-03, 1.8446145658341786e-03, 1.8366587229818119e-03, 1.8525374252783258e-03, 1.8604748561122340e-03, 6.0730483811722191e-02, 6.3206456856778545e-02, 6.7459514279905278e-02, 7.2132675377848884e-02, 7.4786152946421755e-02, 7.6504652199477149e-02, 7.7508006453249179e-02, 7.7840560862007468e-02, 7.7180734039375282e-02, 7.6202601136484277e-02, 7.5038359087486378e-02, 7.3641403520523938e-02, 7.1998501284721017e-02, 7.0099399521957859e-02, 6.7809287146682107e-02, 6.5025669501687686e-02, 6.2021912441727840e-02, 5.8867035262550542e-02, 5.5428795163616304e-02, 5.1854714636072552e-02, 4.8156002081217550e-02, 4.4192706335117550e-02, 4.0091935219396156e-02, 3.5845965580703833e-02, 3.1417619789076832e-02, 2.6700718901403200e-02, 2.1778158068506158e-02, 1.6259721817597363e-02, 1.0871547610705508e-02, 5.2290018919169262e-03, 2.6837874709602491e-03, -5.5006912290169136e-04, -6.0505525668434070e-06, 2.5664380999077728e-04, -1.2757675171722418e-04, 8.1342465523520456e-05, 2.2795686855935153e-04, 1.1114862387857046e-04, 4.8283337307770452e-05, 4.0956682247553637e-05, 5.4429336928823278e-05, 3.5020309160267584e-05, 1.0727841984376183e-04, 4.3410128840586337e-04, 1.0938491273205144e-03, 1.8748139187070795e-03, 1.9565699084126359e-03, 1.9156232154687043e-03, 1.8821509967073822e-03, 1.8747840591061275e-03, 1.8777018090907439e-03, 1.8784602953050304e-03, 1.8835044640333053e-03, 1.8848613130378331e-03, 1.9091215740505271e-03, 6.7433386632592907e-02, 6.8579470460255490e-02, 7.2159419747161238e-02, 7.5223136867830553e-02, 7.6335483114856550e-02, 7.6645069406082025e-02, 7.6518236422572286e-02, 7.6070026801633092e-02, 7.5317681659827690e-02, 7.4425157374531647e-02, 7.3388495935441944e-02, 7.2025326195785541e-02, 7.0193404018271288e-02, 6.8026592016286136e-02, 6.5456943167811948e-02, 6.2512985198904428e-02, 5.9323349484447355e-02, 5.5874399957793752e-02, 5.2286912785770030e-02, 4.8537164155113929e-02, 4.4586588786099043e-02, 4.0401343026453942e-02, 3.6061568417785447e-02, 3.1578648616828402e-02, 2.6677135873875792e-02, 2.1486928474934580e-02, 1.5815799994412971e-02, 1.0380905613496628e-02, 4.8206184492747030e-03, 1.1625143398337901e-03, -9.7793331213542152e-04, 2.1895095060960900e-04, -1.5876888433094754e-05, -1.0078514601939612e-04, 5.6597641643485720e-05, 9.1406525868604777e-05, 3.2154184178854735e-05, 6.0132188788961101e-05, 5.7042545082310824e-05, 5.4502162264537833e-05, 4.0100905747345234e-05, 5.1482238181874003e-05, 1.0762167431252638e-04, 4.5165435323452123e-04, 1.0677799892103987e-03, 1.8689518923297810e-03, 1.9390712371529473e-03, 1.9051488880305299e-03, 1.8685043242487388e-03, 1.8629897858891903e-03, 1.8641229841945064e-03, 1.8666423037945463e-03, 1.8659162748897976e-03, 1.8695095934832091e-03, 1.8554842981294592e-03, 6.7852153823607111e-02, 6.8969667274845076e-02, 7.1403309586536359e-02, 7.3354573989914504e-02, 7.4027297062926434e-02, 7.4092460638636587e-02, 7.3918472862651144e-02, 7.3599121228103415e-02, 7.3174001210120396e-02, 7.2483390344990295e-02, 7.1511133906783306e-02, 7.0047054378388526e-02, 6.8035593427113572e-02, 6.5668900674530906e-02, 6.2951903865956629e-02, 5.9904801311744110e-02, 5.6600232675139438e-02, 5.2994106852845370e-02, 4.9234861134097314e-02, 4.5286536713750609e-02, 4.1101578574685931e-02, 3.6658286659455579e-02, 3.2051857416444209e-02, 2.7167849251654639e-02, 2.1841190782616347e-02, 1.5902670599198216e-02, 1.0078790056839730e-02, 4.5562734233897837e-03, 1.5278355173613421e-03, -1.0312805910202825e-03, 4.5981701670163346e-04, -1.1322154508007395e-04, 2.0636846363542930e-05, 1.4616578124022474e-04, 4.5473263417457514e-05, 4.4982249387994275e-05, 6.6578953171180275e-05, 5.3565258799131024e-05, 5.2235555627851275e-05, 5.7957067481872609e-05, 5.3364146054986525e-05, 5.9822864929258617e-05, 1.2143997309060813e-04, 4.4396636413411545e-04, 1.0684162314805467e-03, 1.8571341574240734e-03, 1.9323100264037002e-03, 1.8952900735088782e-03, 1.8601542538617215e-03, 1.8535746242126895e-03, 1.8553966348545147e-03, 1.8566063407040000e-03, 1.8578351242153522e-03, 1.8531193670475806e-03, 1.8540201734560616e-03, 6.4327931022366683e-02, 6.5400347771114503e-02, 6.7003706475805447e-02, 6.8590943095732201e-02, 6.9604334846362678e-02, 7.0247615311034017e-02, 7.0714842196772709e-02, 7.1002561821278537e-02, 7.0997251198168090e-02, 7.0459372424878083e-02, 6.9454391868376361e-02, 6.7823248349837939e-02, 6.5670294132336521e-02, 6.3192232528840195e-02, 6.0418572503402018e-02, 5.7298303768491876e-02, 5.3911273551561979e-02, 5.0213767584295715e-02, 4.6254550404295540e-02, 4.2089937210168467e-02, 3.7676434215433270e-02, 3.2969177538547056e-02, 2.7974499212380446e-02, 2.2674804381322192e-02, 1.6602957996214873e-02, 1.0687880412876142e-02, 4.5526493008899056e-03, 1.2996774725842378e-03, -1.0375998560417418e-03, 4.4972721583418464e-04, -1.7837285029271706e-04, 2.8723306088593784e-05, 8.8558515790808530e-05, 3.5316216826421833e-05, 6.1960287350163070e-05, 5.6375749824208144e-05, 4.9064341258267829e-05, 5.2282083161904363e-05, 5.2985331947205809e-05, 5.1256938627592228e-05, 4.4946538392146857e-05, 5.4350684319896301e-05, 1.1525064743559129e-04, 4.4809593293619653e-04, 1.0691285491356826e-03, 1.8628849482062713e-03, 1.9354864759300119e-03, 1.8998079382796125e-03, 1.8638614270931179e-03, 1.8577135403878109e-03, 1.8590950668967094e-03, 1.8609021708466871e-03, 1.8609874779088793e-03, 1.8617167553181071e-03, 1.8633624869058554e-03, 5.9240101154865721e-02, 6.0284120631743071e-02, 6.1897693623136650e-02, 6.3755559673071727e-02, 6.5148845767154781e-02, 6.6452183519357513e-02, 6.7535787434169950e-02, 6.8335417061156103e-02, 6.8558830835188947e-02, 6.8107951208761786e-02, 6.7100611634022977e-02, 6.5440174689407493e-02, 6.3279916078307089e-02, 6.0801876976136565e-02, 5.8003848557121263e-02, 5.4808481001274105e-02, 5.1321538573504022e-02, 4.7502482467257898e-02, 4.3314139849143236e-02, 3.8911459326689858e-02, 3.4281980751170504e-02, 2.9242330761128834e-02, 2.3834938242929198e-02, 1.7892379150351845e-02, 1.1504309516620933e-02, 5.4116131178702249e-03, 1.6611306668538662e-03, -1.0564967700785780e-03, 4.7439477755938949e-04, -1.8560134328914036e-04, 9.2304076720891117e-05, 7.7275731517352980e-05, 3.7310702334837884e-05, 6.5492285019406679e-05, 5.0908857052658994e-05, 6.2101044314414233e-05, 6.0403173065487205e-05, 5.5900036531728865e-05, 5.2383873835260000e-05, 5.0875733661935867e-05, 4.4857282116331179e-05, 5.1806974040954391e-05, 1.1404071512436092e-04, 4.4705737124639956e-04, 1.0718194562040052e-03, 1.8646309118401992e-03, 1.9384435956423883e-03, 1.9021794496978056e-03, 1.8665674723578659e-03, 1.8601976684363163e-03, 1.8617813971124764e-03, 1.8633532738907990e-03, 1.8641548602402350e-03, 1.8640862336733782e-03, 1.8661373194051752e-03, 5.3869908018851553e-02, 5.5202189078640336e-02, 5.7199271790378044e-02, 5.9547948211065890e-02, 6.1212620650411761e-02, 6.2951271299896763e-02, 6.4405863886966522e-02, 6.5504157292660029e-02, 6.5858819796913215e-02, 6.5508661770887433e-02, 6.4589040231995923e-02, 6.3034923334207626e-02, 6.0954453102996464e-02, 5.8514606893189734e-02, 5.5676900288258481e-02, 5.2388763895047902e-02, 4.8775934022611156e-02, 4.4799734234623828e-02, 4.0390356994087315e-02, 3.5762503871527920e-02, 3.0868920837969108e-02, 2.5451177368640266e-02, 1.9412451395211288e-02, 1.3107988521203252e-02, 6.4047125551153043e-03, 2.4277144654836990e-03, -1.1719916795828722e-03, 4.8106505342189991e-04, -1.8824885108503409e-04, 6.9743357688481305e-05, 6.1716090840334593e-05, 4.4206387023144479e-05, 6.3541432391100647e-05, 4.9246753211723301e-05, 5.4190250235131167e-05, 5.2818577752197085e-05, 5.2980109272843504e-05, 5.3098146681066204e-05, 5.2858942984552403e-05, 5.0809952379692709e-05, 4.4492223151656225e-05, 5.3444485900746510e-05, 1.1498499050107945e-04, 4.4732162438413005e-04, 1.0706143801644001e-03, 1.8638203745213492e-03, 1.9372157596978315e-03, 1.9011989867418785e-03, 1.8654384637755840e-03, 1.8591704205084018e-03, 1.8606685372695659e-03, 1.8623524098760329e-03, 1.8628342871268562e-03, 1.8627100501788999e-03, 1.8624387364861263e-03, 4.9535216669018015e-02, 5.0909474747443138e-02, 5.3097248680463602e-02, 5.5784131508176245e-02, 5.7683923956238774e-02, 5.9587635696861874e-02, 6.1191917035033162e-02, 6.2439250960782927e-02, 6.3002796162075020e-02, 6.2840183897736560e-02, 6.2097707941487564e-02, 6.0711878556626735e-02, 5.8712124288775702e-02, 5.6280439934833740e-02, 5.3361630237296370e-02, 4.9964447517922755e-02, 4.6215311176361136e-02, 4.2060432801489897e-02, 3.7481940410608337e-02, 3.2633820773139977e-02, 2.7429564184170308e-02, 2.1469484744920466e-02, 1.4918086546182568e-02, 8.0017617713880832e-03, 3.1186764868375038e-03, -2.9993625311767580e-04, 2.2215528083939444e-04, -1.0543075034140019e-04, 5.1631809981590914e-05, 6.7162090578179267e-05, 4.3049895849769042e-05, 6.2287058733047893e-05, 5.6154370615261812e-05, 5.7808543987413437e-05, 5.2221175851676625e-05, 5.2847029157410926e-05, 5.2889216250521960e-05, 5.2902975069293390e-05, 5.2696217883926692e-05, 5.1519124942597154e-05, 4.5261759796539621e-05, 5.3987459902299793e-05, 1.1564440401746347e-04, 4.4714010014632787e-04, 1.0703176398796290e-03, 1.8630472381919105e-03, 1.9365750969430784e-03, 1.9004380209809079e-03, 1.8647453943590492e-03, 1.8584321890776391e-03, 1.8599760676863682e-03, 1.8615939087620406e-03, 1.8621876888900441e-03, 1.8615970256823597e-03, 1.8622382966736910e-03, 4.5689250858039862e-02, 4.7131266881281476e-02, 4.9372017997089727e-02, 5.2296707926287121e-02, 5.4399446651398710e-02, 5.6280157315148911e-02, 5.7880752061464043e-02, 5.9197152626284305e-02, 6.0020524891930452e-02, 6.0114693744376557e-02, 5.9603064638966030e-02, 5.8394892253607784e-02, 5.6484583649617073e-02, 5.4068987968536590e-02, 5.1071604279080876e-02, 4.7558312618668358e-02, 4.3671666029380288e-02, 3.9345353731472563e-02, 3.4599277740205554e-02, 2.9483865033550313e-02, 2.3893231004640626e-02, 1.7341642447961374e-02, 1.0522182986007326e-02, 3.7097272391973151e-03, 6.8000829832140280e-04, -3.2010325574892905e-04, 5.4538525886331923e-05, -2.1956946681740131e-05, 7.6294825387762869e-05, 4.2137350058108341e-05, 6.2061017616971766e-05, 5.0299430946734333e-05, 5.4188500643247348e-05, 5.2415649834680809e-05, 5.2962236183745405e-05, 5.2580606987222849e-05, 5.2705665794397029e-05, 5.2888365570279146e-05, 5.2768762683947187e-05, 5.0937490127691990e-05, 4.4732506869614136e-05, 5.3603989261699130e-05, 1.1530015950766642e-04, 4.4725087758041340e-04, 1.0704631081353319e-03, 1.8633723418335201e-03, 1.9368173686121716e-03, 1.9007331031643130e-03, 1.8650095105683989e-03, 1.8587195612347431e-03, 1.8602417207748731e-03, 1.8618955496164072e-03, 1.8624329995137888e-03, 1.8621871633587388e-03, 1.8629718942048932e-03, 4.1820710713252614e-02, 4.3408319148066789e-02, 4.5806629497781998e-02, 4.8984839724223905e-02, 5.1265280095748392e-02, 5.3029840785177404e-02, 5.4559581136383768e-02, 5.5902335252985949e-02, 5.6957351046497039e-02, 5.7318120871804462e-02, 5.7054496255638111e-02, 5.6002535269667496e-02, 5.4219010991395110e-02, 5.1871941923359949e-02, 4.8842123003849582e-02, 4.5215987644257258e-02, 4.1188893319078719e-02, 3.6721909936433803e-02, 3.1733258490053533e-02, 2.6296094465095024e-02, 2.0174737746883321e-02, 1.3248278285213435e-02, 6.3711934227910702e-03, 1.2051093100398525e-03, -7.0566133215480464e-04, 2.3204181001824274e-04, -6.7998125956952966e-05, 7.3335474610858184e-05, 4.1334700677131422e-05, 6.4536289355067013e-05, 5.3725701107413782e-05, 5.4570151276219478e-05, 5.2405812854649961e-05, 5.2864055780351496e-05, 5.2604625561988149e-05, 5.3456343452463739e-05, 5.3285736040770368e-05, 5.3161016944513651e-05, 5.2733704676915627e-05, 5.0937054438822479e-05, 4.4702211648424406e-05, 5.3416653651992821e-05, 1.1516519666157029e-04, 4.4723543538056692e-04, 1.0706059809141705e-03, 1.8635270215511983e-03, 1.9370183899096304e-03, 1.9009161745788647e-03, 1.8652070420122166e-03, 1.8589070116175742e-03, 1.8604394015583334e-03, 1.8620803936152455e-03, 1.8626576750414938e-03, 1.8623815926303309e-03, 1.8631506579471285e-03, 3.8003675588820854e-02, 3.9726196421844981e-02, 4.2328325071556407e-02, 4.5737827757547339e-02, 4.8155475668268513e-02, 4.9880676233630773e-02, 5.1377999060753250e-02, 5.2734163977196290e-02, 5.3959965605582361e-02, 5.4553144566294530e-02, 5.4526161448268752e-02, 5.3629228290405652e-02, 5.1974286051094200e-02, 4.9702693739650236e-02, 4.6657197523395540e-02, 4.2927898389066597e-02, 3.8766281230420120e-02, 3.4131172646978833e-02, 2.8879162290248128e-02, 2.3001687804851203e-02, 1.6479760441764687e-02, 9.0481248084097448e-03, 3.4791767604902680e-03, -9.9184150436144370e-04, 3.7106098942591521e-04, -1.1884541938624630e-04, 5.7151133028968424e-05, 5.1153783001115839e-05, 5.6777383755638746e-05, 5.3096824912782689e-05, 5.3522990508956072e-05, 5.2629433779456549e-05, 5.2700381863606091e-05, 5.2661375655929062e-05, 5.2786417166233794e-05, 5.2757183026070316e-05, 5.2851041985704490e-05, 5.2958995261766532e-05, 5.2758092446430365e-05, 5.0920937356361225e-05, 4.4680845670066342e-05, 5.3533634680276993e-05, 1.1524903460382295e-04, 4.4723132734207096e-04, 1.0705414577592558e-03, 1.8634598967900344e-03, 1.9369406339088935e-03, 1.9008465810385147e-03, 1.8651317618483452e-03, 1.8588359471173727e-03, 1.8603635997823428e-03, 1.8620096129501455e-03, 1.8625685892270914e-03, 1.8622745412042972e-03, 1.8628960589343083e-03, 3.4354584802722597e-02, 3.6160554296162363e-02, 3.8937209414941852e-02, 4.2495683257078531e-02, 4.4978832963940334e-02, 4.6857274759042160e-02, 4.8418081754380733e-02, 4.9805320845713354e-02, 5.1132435778180170e-02, 5.1908487834101909e-02, 5.2095014538899476e-02, 5.1376929608937486e-02, 4.9813103181553249e-02, 4.7573642482101039e-02, 4.4490588103573141e-02, 4.0675000586900566e-02, 3.6377715709177430e-02, 3.1527765283519457e-02, 2.5956106406235507e-02, 1.9655624974620881e-02, 1.2647252803443294e-02, 5.4832503486942344e-03, 7.9484453384560309e-04, -1.9473480944564371e-04, 2.7755235275812997e-05, -1.1221457529240641e-05, 7.3166326139345996e-05, 4.7608918070587376e-05, 5.9822906241222755e-05, 5.2358065126158199e-05, 5.3024265607951824e-05, 5.2579340294811304e-05, 5.3203237286948396e-05, 5.2994175582765234e-05, 5.2750424505564315e-05, 5.2780666006076304e-05, 5.2817874880580212e-05, 5.2940320902928753e-05, 5.2746174681282540e-05, 5.0973102026311886e-05, 4.4734026672117730e-05, 5.3573135067942904e-05, 1.1529104972263709e-04, 4.4722851631593996e-04, 1.0705132936755263e-03, 1.8634106977488735e-03, 1.9368928664032792e-03, 1.9007944337088285e-03, 1.8650819715328650e-03, 1.8587840174983643e-03, 1.8603137832664935e-03, 1.8619560580725206e-03, 1.8625201117268421e-03, 1.8621985176105454e-03, 1.8628756896190951e-03, 3.0788491480175723e-02, 3.2678947724648168e-02, 3.5640989818266931e-02, 3.9328433709457752e-02, 4.1847247351092763e-02, 4.3882977444641619e-02, 4.5550808965360373e-02, 4.7010668068468819e-02, 4.8382811650447680e-02, 4.9315692277235236e-02, 4.9716840279937724e-02, 4.9183387150759872e-02, 4.7698151326939733e-02, 4.5475108734761113e-02, 4.2355989116405236e-02, 3.8455281725773942e-02, 3.4022285625060662e-02, 2.8928023796083054e-02, 2.2958751044745124e-02, 1.6129954715071768e-02, 8.6550834759552588e-03, 2.7071080177450148e-03, -8.6949131921294559e-04, 2.3280380311900304e-04, -7.1261240728675079e-05, 6.9693514045922079e-05, 4.5250582250993468e-05, 5.8617004223435232e-05, 5.2275962315226545e-05, 5.3207797875422213e-05, 5.2563010378932846e-05, 5.2756728262873334e-05, 5.2735884370131491e-05, 5.2780091702927274e-05, 5.2774285716758419e-05, 5.2754822728553027e-05, 5.2808455935614905e-05, 5.2938257745328390e-05, 5.2750198844194916e-05, 5.0930824849157566e-05, 4.4696769228170311e-05, 5.3545471142248692e-05, 1.1526872194257996e-04, 4.4723308883371930e-04, 1.0705270965934558e-03, 1.8634319396308512e-03, 1.9369114669714202e-03, 1.9008147841798903e-03, 1.8651010891667795e-03, 1.8588041456408914e-03, 1.8603328211751870e-03, 1.8619770974386603e-03, 1.8625384406072932e-03, 1.8622385084503500e-03, 1.8629307253119590e-03, 2.7214987955934637e-02, 2.9212492284657866e-02, 3.2419330923553334e-02, 3.6287761546394737e-02, 3.8871825237951206e-02, 4.0894091141848783e-02, 4.2656700543543001e-02, 4.4249542261346891e-02, 4.5626028086205611e-02, 4.6707540203828966e-02, 4.7330881348013547e-02, 4.6966268206405606e-02, 4.5582648176832989e-02, 4.3401566333960175e-02, 4.0270034155715013e-02, 3.6274314219303549e-02, 3.1685250219703052e-02, 2.6364763159915618e-02, 1.9883186561510401e-02, 1.2499376241910391e-02, 4.6532587018159053e-03, 6.2541933472598716e-04, -1.2669726388866490e-04, 3.4397427305476928e-05, -3.0278137199602228e-06, 6.5198591694882213e-05, 5.4488618440735557e-05, 5.4810864405356767e-05, 5.2707080237357003e-05, 5.3018812015082981e-05, 5.2867082973790389e-05, 5.2796598064444804e-05, 5.2768394112974074e-05, 5.2768712119231917e-05, 5.2753547721227281e-05, 5.2816381820984366e-05, 5.2846677342528096e-05, 5.2957450811188619e-05, 5.2747932388233117e-05, 5.0931030263162043e-05, 4.4694464421978511e-05, 5.3532191977547400e-05, 1.1525821728598020e-04, 4.4723332125605621e-04, 1.0705359879766045e-03, 1.8634438196531683e-03, 1.9369251898576671e-03, 1.9008280462705751e-03, 1.8651149026371111e-03, 1.8588175372043420e-03, 1.8603467374986031e-03, 1.8619904127511974e-03, 1.8625540136021892e-03, 1.8622534293089191e-03, 1.8629423614949297e-03, 2.3630642246556345e-02, 2.5748043123561208e-02, 2.9182415274958379e-02, 3.3268433010207238e-02, 3.5961125201497732e-02, 3.7970492524705766e-02, 3.9849539810440204e-02, 4.1609968368396963e-02, 4.2999542521044265e-02, 4.4175335829075006e-02, 4.4953508948345836e-02, 4.4753848488348298e-02, 4.3498829575943310e-02, 4.1379163387963679e-02, 3.8222619699366002e-02, 3.4109221979076926e-02, 2.9351475379143361e-02, 2.3722531173120152e-02, 1.6825263938363838e-02, 9.0556049991372348e-03, 1.7358628663038712e-03, -5.9683853620117518e-04, 1.5396631248263255e-04, -5.6779346267236455e-05, 6.9547289933492555e-05, 4.7648025991522785e-05, 5.6700728991044351e-05, 5.2723750521257464e-05, 5.2907401142596245e-05, 5.2636640472289416e-05, 5.2760620481824222e-05, 5.2761344160533072e-05, 5.2762862948316423e-05, 5.2759962832324633e-05, 5.2763434995071298e-05, 5.2764293206990607e-05, 5.2816157932941041e-05, 5.2942978717466564e-05, 5.2749711743014107e-05, 5.0929880929287301e-05, 4.4693007279308497e-05, 5.3540530251209300e-05, 1.1526452673011543e-04, 4.4723246015010583e-04, 1.0705318212053383e-03, 1.8634385672902528e-03, 1.9369197813279419e-03, 1.9008228559514542e-03, 1.8651095276808935e-03, 1.8588123392386611e-03, 1.8603413230645132e-03, 1.8619852294191554e-03, 1.8625478445696213e-03, 1.8622452793244505e-03, 1.8629246845760124e-03, 2.0052873382876063e-02, 2.2274625090535190e-02, 2.5876546694223203e-02, 3.0171922225834129e-02, 3.3026143287628193e-02, 3.5205237404993713e-02, 3.7265545441224728e-02, 3.9184821303877460e-02, 4.0634859256633016e-02, 4.1816722757538713e-02, 4.2624411206091686e-02, 4.2594288248961380e-02, 4.1474346999764267e-02, 3.9424949459052470e-02, 3.6186374935230615e-02, 3.1957366284416304e-02, 2.6952802451584622e-02, 2.0990628928372369e-02, 1.3605686424393438e-02, 6.4543809552081999e-03, -4.5594044403834265e-05, 4.9927432049852063e-05, -1.3623219485823970e-05, 1.7319890799002262e-05, 5.8518664840399366e-05, 5.4012912826779101e-05, 5.4517565159872596e-05, 5.2679181127670813e-05, 5.2967994696895844e-05, 5.2694278495752996e-05, 5.2765812411753932e-05, 5.2758046743519752e-05, 5.2799315383886867e-05, 5.2781110899871455e-05, 5.2759420432781926e-05, 5.2766321167487627e-05, 5.2813533482008729e-05, 5.2941740889181399e-05, 5.2748909085955416e-05, 5.0933649477882745e-05, 4.4696805450734565e-05, 5.3543390062162405e-05, 1.1526741806440266e-04, 4.4723245276737404e-04, 1.0705295838468647e-03, 1.8634351840014795e-03, 1.9369162485214553e-03, 1.9008191735299512e-03, 1.8651059214476184e-03, 1.8588086450717447e-03, 1.8603377286873137e-03, 1.8619814362768254e-03, 1.8625442656282144e-03, 1.8622400664488939e-03, 1.8629229598739598e-03, 1.6444299014758863e-02, 1.8812689747126937e-02, 2.2570048872566521e-02, 2.7103193413506498e-02, 3.0138345255189842e-02, 3.2601500407270688e-02, 3.4855223795559949e-02, 3.6884522659063002e-02, 3.8400240998225116e-02, 3.9572150548897692e-02, 4.0373313804331394e-02, 4.0465231950393227e-02, 3.9452251923694913e-02, 3.7465790755389784e-02, 3.4174930238512084e-02, 2.9796446491839254e-02, 2.4524873958197260e-02, 1.8075213857759575e-02, 1.0432117402210860e-02, 3.8707202865657557e-03, -2.6077804403231168e-04, 6.3128662680312164e-05, -2.8459918129432822e-05, 5.5719401154675463e-05, 5.2016485593647329e-05, 5.5461383633429911e-05, 5.2884832073259175e-05, 5.2858008187491485e-05, 5.2664344827243856e-05, 5.2759459559578259e-05, 5.2754905844412904e-05, 5.2767835202233211e-05, 5.2764140899099156e-05, 5.2764414752369525e-05, 5.2761218283702710e-05, 5.2764338611292642e-05, 5.2813024859925530e-05, 5.2941618214068723e-05, 5.2749202745395192e-05, 5.0930611218844257e-05, 4.4694135788875603e-05, 5.3541391042832482e-05, 1.1526585855862323e-04, 4.4723270280384246e-04, 1.0705306598889979e-03, 1.8634366495194734e-03, 1.9369176335276494e-03, 1.9008206161973786e-03, 1.8651073193175736e-03, 1.8588100864035653e-03, 1.8603391165677948e-03, 1.8619829333296396e-03, 1.8625456392235610e-03, 1.8622428295121435e-03, 1.8629270410138168e-03, 1.2876248122036920e-02, 1.5326759677370717e-02, 1.9378555420750378e-02, 2.4171903204155534e-02, 2.7380120550006753e-02, 3.0116250411609230e-02, 3.2509167802371300e-02, 3.4578842420240959e-02, 3.6131930612612773e-02, 3.7346451171858280e-02, 3.8200645697781685e-02, 3.8331479057278454e-02, 3.7376574272406891e-02, 3.5444752525357365e-02, 3.2185448397999999e-02, 2.7648611011933250e-02, 2.2021988438300871e-02, 1.5197803870814817e-02, 7.1522667375836547e-03, 1.6382485459320358e-03, -5.6504882011109477e-04, 1.5582745254012127e-04, -4.3383189652588530e-05, 7.4091541261184750e-05, 4.9173703109169253e-05, 5.5747355482662200e-05, 5.2543291706740355e-05, 5.2848147626159391e-05, 5.2688291972412774e-05, 5.2781801779690588e-05, 5.2775576686546337e-05, 5.2769301013936578e-05, 5.2765137156563464e-05, 5.2763359475384988e-05, 5.2759679163287100e-05, 5.2768866087193188e-05, 5.2815775879460453e-05, 5.2943005379174161e-05, 5.2749041460321063e-05, 5.0930624657343180e-05, 4.4693967091367607e-05, 5.3540441933625544e-05, 1.1526508782998363e-04, 4.4723275154276356e-04, 1.0705312674858926e-03, 1.8634375317656555e-03, 1.9369186035922039e-03, 1.9008215830571935e-03, 1.8651083064263644e-03, 1.8588110561307577e-03, 1.8603401111402622e-03, 1.8619839002959621e-03, 1.8625467317582552e-03, 1.8622439538834752e-03, 1.8629278126879945e-03, 9.3587214365224401e-03, 1.2065054360087825e-02, 1.6226562587134473e-02, 2.1340779730302142e-02, 2.4732062685539145e-02, 2.7653447319475871e-02, 3.0143563464002106e-02, 3.2267777856104858e-02, 3.3853435510542082e-02, 3.5128346769555827e-02, 3.6051845955633752e-02, 3.6202482663008906e-02, 3.5297426905627718e-02, 3.3417554107802047e-02, 3.0201279325358408e-02, 2.5467400811192979e-02, 1.9531476238454866e-02, 1.2306173719667307e-02, 4.6855912625121902e-03, -3.2209155888084638e-04, 1.2328178195647964e-04, -4.1560284413268492e-05, 4.2557541117190077e-05, 5.4770723135043693e-05, 5.4390178536568240e-05, 5.3460862563253211e-05, 5.2696599902952873e-05, 5.2737134146187356e-05, 5.2732828955216410e-05, 5.2763875628504806e-05, 5.2765360473757554e-05, 5.2765961757691506e-05, 5.2764041802506855e-05, 5.2762742797907066e-05, 5.2760439764399832e-05, 5.2765155364469107e-05, 5.2813598770335069e-05, 5.2941966826742899e-05, 5.2749166470385693e-05, 5.0930541020800570e-05, 4.4693862898143442e-05, 5.3541038695748843e-05, 1.1526554760332040e-04, 4.4723267825265005e-04, 1.0705309820014919e-03, 1.8634371441783721e-03, 1.9369182233728692e-03, 1.9008212055216006e-03, 1.8651079239747964e-03, 1.8588106799928559e-03, 1.8603397253595707e-03, 1.8619835227585474e-03, 1.8625463015521813e-03, 1.8622433406702459e-03, 1.8629265746231498e-03, 6.4141322510607585e-03, 8.9321228821969412e-03, 1.3220128254233411e-02, 1.8482646149513428e-02, 2.2170467615760046e-02, 2.5125601957230698e-02, 2.7738078728830655e-02, 3.0007297391148050e-02, 3.1652908126856283e-02, 3.2960139354450080e-02, 3.3905398256117596e-02, 3.4113082783765729e-02, 3.3282999434211660e-02, 3.1457483197822676e-02, 2.8187145827618460e-02, 2.3236550288755098e-02, 1.6981267018146944e-02, 9.5302434913135444e-03, 3.0510766057878112e-03, -6.0490864307457442e-04, 1.5628584577655696e-04, -5.2249101880281854e-05, 7.5807159947313519e-05, 4.7443663053774205e-05, 5.6447004942634860e-05, 5.2285603315219294e-05, 5.2934480915948928e-05, 5.2663189741896661e-05, 5.2786216264936785e-05, 5.2758884945181945e-05, 5.2767462997127282e-05, 5.2764038851598023e-05, 5.2766774824629373e-05, 5.2764220783568218e-05, 5.2760205380409914e-05, 5.2765310397459594e-05, 5.2813411560974805e-05, 5.2941875812292189e-05, 5.2749108195285392e-05, 5.0930811242631206e-05, 4.4694135294550299e-05, 5.3541244801507598e-05, 1.1526575273414978e-04, 4.4723268236196862e-04, 1.0705308160228592e-03, 1.8634369056156528e-03, 1.9369179661827892e-03, 1.9008209430719538e-03, 1.8651076630577218e-03, 1.8588104158757616e-03, 1.8603394650446238e-03, 1.8619832531586117e-03, 1.8625460362608774e-03, 1.8622429829827144e-03, 1.8629264315256002e-03, 3.5621865794431655e-03, 6.5984118917273701e-03, 1.0280824841520484e-02, 1.5693480505953435e-02, 1.9562920360964586e-02, 2.2623737140062928e-02, 2.5376337213146142e-02, 2.7824871100433027e-02, 2.9589006927442076e-02, 3.0920105557044619e-02, 3.1846560495130398e-02, 3.2109831455504272e-02, 3.1342445879596739e-02, 2.9542757506956861e-02, 2.6143750182106108e-02, 2.0922732612060561e-02, 1.4276216072204461e-02, 6.6608656778629370e-03, 1.8510195918972447e-03, -4.0160776468086182e-04, 1.0510749492450052e-04, -1.0886040530306735e-05, 6.9598085640890125e-05, 5.0275392945029910e-05, 5.4798662690386493e-05, 5.2368563572536421e-05, 5.2831430348099458e-05, 5.2706804631570120e-05, 5.2770201150462008e-05, 5.2763159107990573e-05, 5.2765602966968795e-05, 5.2764422579637439e-05, 5.2764231268321678e-05, 5.2763057609678756e-05, 5.2760354176267412e-05, 5.2765170709441294e-05, 5.2813374483528338e-05, 5.2941866010266923e-05, 5.2749128823902588e-05, 5.0930593050370980e-05, 4.4693943753570180e-05, 5.3541101008860592e-05, 1.1526564173025100e-04, 4.4723269845406524e-04, 1.0705308952937355e-03, 1.8634370088490952e-03, 1.9369180669041822e-03, 1.9008210454204177e-03, 1.8651077642046284e-03, 1.8588105181394522e-03, 1.8603395662262032e-03, 1.8619833577300981e-03, 1.8625461424868935e-03, 1.8622431655831093e-03, 1.8629267426555731e-03, 2.3514368911920786e-03, 4.1142661839193339e-03, 7.9487405360018464e-03, 1.2895832106606619e-02, 1.6905431728487692e-02, 2.0200318784988111e-02, 2.3147829850116756e-02, 2.5698741410456759e-02, 2.7659050794639595e-02, 2.9029639409889563e-02, 2.9933181341264808e-02, 3.0209069073738347e-02, 2.9453806196929232e-02, 2.7617830500819961e-02, 2.4093550625824151e-02, 1.8500081111279671e-02, 1.1527072700577639e-02, 3.6075719219049555e-03, 6.7213420362941575e-04, -1.8092014324151196e-04, 4.4213790690973049e-05, 4.0668901462938013e-05, 6.0168700567404412e-05, 5.3025112169161920e-05, 5.3280782018158215e-05, 5.2609023395609977e-05, 5.2763202836968741e-05, 5.2746844763419359e-05, 5.2766945676425314e-05, 5.2765912512062820e-05, 5.2765868343043954e-05, 5.2764577350369226e-05, 5.2764272656085465e-05, 5.2763021663991764e-05, 5.2760246546339310e-05, 5.2765497291993690e-05, 5.2813570544974977e-05, 5.2941965211560180e-05, 5.2749117148885596e-05, 5.0930594057515726e-05, 4.4693931629215668e-05, 5.3541032994143788e-05, 1.1526558602797810e-04, 4.4723270262555734e-04, 1.0705309380649364e-03, 1.8634370729343312e-03, 1.9369181358554084e-03, 1.9008211154740624e-03, 1.8651078342265149e-03, 1.8588105890860684e-03, 1.8603396352917904e-03, 1.8619834314280927e-03, 1.8625462093546793e-03, 1.8622432703839394e-03, 1.8629267706187444e-03, -3.2600115372295583e-04, 3.0859865393329518e-03, 5.3730983336219207e-03, 1.0391756033021010e-02, 1.4149086283142270e-02, 1.7847250517553721e-02, 2.0967709804752856e-02, 2.3603913700291759e-02, 2.5710603305254983e-02, 2.7157397662398653e-02, 2.8087404859481288e-02, 2.8352249167706050e-02, 2.7566267727520796e-02, 2.5682298385986502e-02, 2.1988718440689843e-02, 1.6147898358690720e-02, 8.8993291877930772e-03, 1.5631715987407054e-03, -5.6870816941074868e-04, 1.5609464409325748e-04, -3.6309431804258522e-05, 9.2414585476419096e-05, 4.8215035336777617e-05, 5.5845498475801548e-05, 5.1840464074166172e-05, 5.2892426980978014e-05, 5.2677811335715602e-05, 5.2783411851776132e-05, 5.2760725688035010e-05, 5.2766515905909175e-05, 5.2764035422020018e-05, 5.2764510505359196e-05, 5.2764162428050615e-05, 5.2763006547304409e-05, 5.2760299523281879e-05, 5.2765231293654152e-05, 5.2813413348528227e-05, 5.2941890560378954e-05, 5.2749126099288305e-05, 5.0930588083918384e-05, 4.4693924170699082e-05, 5.3541075806947689e-05, 1.1526561915318161e-04, 4.4723269713666810e-04, 1.0705309178453970e-03, 1.8634370448003430e-03, 1.9369181089640367e-03, 1.9008210877154144e-03, 1.8651078080108685e-03, 1.8588105597620974e-03, 1.8603396119994480e-03, 1.8619833961917060e-03, 1.8625462007591941e-03, 1.8622431800595456e-03, 1.8629267347091730e-03, 9.1350645308890468e-05, 4.1590821205380837e-04, 3.6719426365278062e-03, 7.8646966191331571e-03, 1.1539872465489803e-02, 1.5449910516954605e-02, 1.8789722849115877e-02, 2.1531083041494731e-02, 2.3662960009186822e-02, 2.5214240428104325e-02, 2.6255886816436633e-02, 2.6492685989032299e-02, 2.5683096291677501e-02, 2.3715593953941894e-02, 1.9897748242363442e-02, 1.3748399719187692e-02, 6.9876030525545278e-03, 4.2743832853209864e-04, -6.3993734944040883e-05, 2.6497473734547991e-06, 4.8138413352444557e-05, 8.3186770502814477e-05, 5.2580869559467686e-05, 5.3749691076648865e-05, 5.2025249165993696e-05, 5.2783768404967326e-05, 5.2728604532747199e-05, 5.2780245980791284e-05, 5.2764964989734962e-05, 5.2765302768973101e-05, 5.2764062626595551e-05, 5.2764356640703723e-05, 5.2764383170459932e-05, 5.2763118494429312e-05, 5.2760283519000503e-05, 5.2765241669758248e-05, 5.2813399619658759e-05, 5.2941883965096495e-05, 5.2749121942838293e-05, 5.0930607497204466e-05, 4.4693943732465019e-05, 5.3541090599345613e-05, 1.1526563389027601e-04, 4.4723269739734700e-04, 1.0705309059690620e-03, 1.8634370277325833e-03, 1.9369180901403300e-03, 1.9008210699044651e-03, 1.8651077869810267e-03, 1.8588105454536974e-03, 1.8603395843709665e-03, 1.8619833935622633e-03, 1.8625461358193149e-03, 1.8622432499497377e-03, 1.8629266149160237e-03, -2.3769360111293381e-05, -1.2652511744191350e-03, 2.1522749050061538e-03, 5.5566013857502152e-03, 9.1144240519332679e-03, 1.3078463353656079e-02, 1.6614393956855496e-02, 1.9554901653094890e-02, 2.1713260348362445e-02, 2.3354074007106946e-02, 2.4490003727703689e-02, 2.4705908468046888e-02, 2.3849154309144478e-02, 2.1787294003132847e-02, 1.7744140324907891e-02, 1.1389523776162742e-02, 5.0194197610703775e-03, 4.6942967316568264e-04, -1.2761300737156150e-04, 1.9809934077933832e-05, 9.4332069833077611e-05, 7.4068725359107722e-05, 5.5406158114280957e-05, 5.1827847765927490e-05, 5.2339409713165638e-05, 5.2668763021634304e-05, 5.2782444976376801e-05, 5.2772573021637771e-05, 5.2766996491915720e-05, 5.2764050379587931e-05, 5.2764146878292472e-05, 5.2764310665246707e-05, 5.2764239005291197e-05, 5.2763031735223576e-05, 5.2760295851373466e-05, 5.2765230657474593e-05, 5.2813396949217702e-05, 5.2941883223201539e-05, 5.2749123446801229e-05, 5.0930591841233237e-05, 4.4693929967835731e-05, 5.3541080323871775e-05, 1.1526562578644633e-04, 4.4723269889804099e-04, 1.0705309112436934e-03, 1.8634370354106244e-03, 1.9369180978042033e-03, 1.9008210753876089e-03, 1.8651077988396476e-03, 1.8588105432407844e-03, 1.8603396102113998e-03, 1.8619833661447217e-03, 1.8625462395280693e-03, 1.8622430625704126e-03, 1.8629268674248477e-03, 6.9095880844109798e-06, -7.4063965346394557e-04, 6.0912396975306479e-04, 3.5937946915799734e-03, 6.9028054906128018e-03, 1.0734371080522418e-02, 1.4398172429012287e-02, 1.7639542337432836e-02, 1.9936729299725363e-02, 2.1621266711033583e-02, 2.2751890023548018e-02, 2.2968192358214842e-02, 2.2045231284567583e-02, 1.9824393275868643e-02, 1.5551775877570140e-02, 8.8696807360748448e-03, 2.9973466449009678e-03, 2.2940430631783761e-04, -3.5056943960912601e-05, 5.8602449550069797e-05, 1.0411358270917113e-04, 7.6193134222308568e-05, 5.3300225022502193e-05, 5.1744904481105381e-05, 5.2194226294149959e-05, 5.2728600085381858e-05, 5.2784951200110385e-05, 5.2777398510279199e-05, 5.2765716224265450e-05, 5.2764019326631873e-05, 5.2764099193360751e-05, 5.2764346084001224e-05, 5.2764249515124686e-05, 5.2763031354739947e-05, 5.2760287559061852e-05, 5.2765253837316144e-05, 5.2813410946677197e-05, 5.2941890352068663e-05, 5.2749122622637582e-05, 5.0930591902376127e-05, 4.4693929141902944e-05, 5.3541075330718857e-05, 1.1526562223037745e-04, 4.4723269833425744e-04, 1.0705309156799942e-03, 1.8634370390692232e-03, 1.9369181023893419e-03, 1.9008210839472745e-03, 1.8651077946203328e-03, 1.8588105680834067e-03, 1.8603395764497730e-03, 1.8619834445812611e-03, 1.8625460425249392e-03, 1.8622434920417673e-03, 1.8629263839489377e-03, 2.7331214967874488e-07, 2.0192086287269419e-05, -2.1787077095657178e-04, 1.9061846087818327e-03, 4.7924713434149583e-03, 8.3017121854689936e-03, 1.1997546295253080e-02, 1.5447018199111697e-02, 1.7913110562711266e-02, 1.9635659583485114e-02, 2.0751966854619310e-02, 2.1003703320238817e-02, 2.0028850655385608e-02, 1.7638782871263654e-02, 1.3153516995650103e-02, 6.4753985929355082e-03, 1.3178822534362876e-03, -1.3138651150929336e-04, 4.9450817206175982e-05, 7.0287389808526915e-05, 1.2409060050508184e-04, 7.0869755821701316e-05, 5.3719170143855661e-05, 5.1037218881354460e-05, 5.2323577339432806e-05, 5.2716885879209671e-05, 5.2802329897231664e-05, 5.2775321219804379e-05, 5.2765863758743926e-05, 5.2763509402447588e-05, 5.2764049273006206e-05, 5.2764332808801634e-05, 5.2764254595856060e-05, 5.2763029153948301e-05, 5.2760291448775456e-05, 5.2765234448221437e-05, 5.2813399691107750e-05, 5.2941885027890790e-05, 5.2749123296027162e-05, 5.0930591543779877e-05, 4.4693928558340652e-05, 5.3541078743298274e-05, 1.1526562381084715e-04, 4.4723270036563570e-04, 1.0705309108111111e-03, 1.8634370401985508e-03, 1.9369181003984516e-03, 1.9008210756142293e-03, 1.8651078114489594e-03, 1.8588105253058637e-03, 1.8603396555145098e-03, 1.8619832889099081e-03, 1.8625464657690831e-03, 1.8622425972135725e-03, 1.8629274058832082e-03, 5.3251831562486276e-06, 2.6518215019901017e-04, -4.7525742258846724e-04, 7.6908620278350634e-04, 2.6784586084535114e-03, 5.9634080815459843e-03, 9.5108165758733751e-03, 1.2950393442033060e-02, 1.5504570211868435e-02, 1.7297694219991111e-02, 1.8477346642551008e-02, 1.8806923003462487e-02, 1.7816693675488562e-02, 1.5327483752132815e-02, 1.0610990918492762e-02, 4.6655947447623251e-03, 3.6579678787058658e-04, -7.9469364798056259e-05, 3.1850854943397837e-05, 1.2500464757788122e-04, 1.2001690419878705e-04, 7.2705626617073377e-05, 5.2057001107275445e-05, 5.1154730098971912e-05, 5.2266544563788164e-05, 5.2758663878183633e-05, 5.2801617488712911e-05, 5.2776735618158588e-05, 5.2765029222053055e-05, 5.2763458504906266e-05, 5.2764013483838556e-05, 5.2764347169229438e-05, 5.2764271254703952e-05, 5.2763038060229287e-05, 5.2760289689528926e-05, 5.2765235091371487e-05, 5.2813398649798093e-05, 5.2941884532601800e-05, 5.2749122998177181e-05, 5.0930592851058978e-05, 4.4693930169107835e-05, 5.3541079150005012e-05, 1.1526562661991397e-04, 4.4723269427552877e-04, 1.0705309188139387e-03, 1.8634370300456983e-03, 1.9369181015882512e-03, 1.9008210855770628e-03, 1.8651077726930807e-03, 1.8588106081386534e-03, 1.8603394856881021e-03, 1.8619836092225862e-03, 1.8625455715935563e-03, 1.8622444717330501e-03, 1.8629252354345550e-03, 1.3615158910612867e-04, 2.8058963459953150e-05, -9.8110807208620808e-06, 6.3269146264529710e-05, 1.3175644516926102e-03, 4.3737388547403742e-03, 7.8073855463542995e-03, 1.1127586337124523e-02, 1.3712021571862864e-02, 1.5564817401103798e-02, 1.6826784500024963e-02, 1.7228500014352863e-02, 1.6246540650133253e-02, 1.3700493823120817e-02, 8.8521069593147511e-03, 3.6471308481739778e-03, 1.2633055804409993e-04, -1.0095021373831257e-05, 5.3840499631806332e-05, 1.5835794535960953e-04, 1.1767981861732323e-04, 7.2981119018859436e-05, 5.1078927222048925e-05, 5.1223445446756758e-05, 5.2247203276143181e-05, 5.2786078059834149e-05, 5.2800338004488177e-05, 5.2777438682398959e-05, 5.2764222084951014e-05, 5.2763468641307235e-05, 5.2763986709954685e-05, 5.2764367567797710e-05, 5.2764259569053492e-05, 5.2763032747030161e-05, 5.2760290111290388e-05, 5.2765234409042301e-05, 5.2813398545223994e-05, 5.2941884621334905e-05, 5.2749123178609632e-05, 5.0930591998080198e-05, 4.4693928652373398e-05, 5.3541079244003538e-05, 1.1526562079694239e-04, 4.4723270683467997e-04, 1.0705308942748364e-03, 1.8634370532158574e-03, 1.9369180900049307e-03, 1.9008210668933984e-03, 1.8651078469112173e-03, 1.8588104358043239e-03, 1.8603398361545325e-03, 1.8619829378311160e-03, 1.8625474443899072e-03, 1.8622405269194185e-03, 1.8629298144775181e-03, 2.1309862210177325e-04, 7.3340824207033636e-05, -1.0443795465811051e-05, 3.0701045528532783e-05, 1.0457045817005644e-03, 4.0824154802626966e-03, 7.4801109291369478e-03, 1.0781265503998407e-02, 1.3362646178040269e-02, 1.5233068614453747e-02, 1.6518124345977329e-02, 1.6939880191718597e-02, 1.5960210175048971e-02, 1.3376150695173998e-02, 8.5238310517141650e-03, 3.4752843395803646e-03, 1.7220730456272770e-04, -9.2140022645489273e-06, 1.0185899328129094e-04, 1.5834604815672166e-04, 1.2070752129241481e-04, 7.0863054916419464e-05, 5.1169912870656959e-05, 5.1081949642904882e-05, 5.2308070134652163e-05, 5.2783804403273720e-05, 5.2804865074196540e-05, 5.2775914355633738e-05, 5.2764240680107766e-05, 5.2763343116302382e-05, 5.2764025612058032e-05, 5.2764367998507336e-05, 5.2764262262770615e-05, 5.2763030469914999e-05, 5.2760288173664757e-05, 5.2765234689573169e-05, 5.2813398283352808e-05, 5.2941883810319235e-05, 5.2749121866410984e-05, 5.0930590114169195e-05, 4.4693927909531391e-05, 5.3541075321773403e-05, 1.1526562339336738e-04, 4.4723267092396497e-04, 1.0705309516072189e-03, 1.8634369878532103e-03, 1.9369181258426875e-03, 1.9008210925261760e-03, 1.8651077012956272e-03, 1.8588107881339442e-03, 1.8603391102788552e-03, 1.8619843393351352e-03, 1.8625435238083853e-03, 1.8622488199928164e-03, 1.8629201614182593e-03, 2.0631554834897906e-04, 1.5540130697500070e-04, -7.3548853570355708e-05, 1.8062565059967316e-04, 1.3482555745856994e-03, 4.4107758850341220e-03, 7.8542201927243975e-03, 1.1182113353279460e-02, 1.3761909113086640e-02, 1.5622070676136010e-02, 1.6894169068627559e-02, 1.7304810322983703e-02, 1.6319661624211047e-02, 1.3720524471862703e-02, 8.8838969754267156e-03, 3.6926915878159640e-03, 2.5870337499224515e-04, 8.3424234956791757e-06, 1.0775161008810631e-04, 1.5934455154797446e-04, 1.1899630043441791e-04, 7.0421265556620959e-05, 5.0997215976883811e-05, 5.1111341487952925e-05, 5.2320859555520294e-05, 5.2790065847770651e-05, 5.2804505119429815e-05, 5.2775562733123854e-05, 5.2764047348413837e-05, 5.2763332272438076e-05, 5.2764031860738750e-05, 5.2764374715886051e-05, 5.2764264479214156e-05, 5.2763032033525398e-05, 5.2760290272188003e-05, 5.2765235274558171e-05, 5.2813399446429036e-05, 5.2941885390228812e-05, 5.2749123370382689e-05, 5.0930592276637560e-05, 4.4693926996285777e-05, 5.3541077446982442e-05, 1.1526562178472489e-04, 4.4723275384495867e-04, 1.0705308049568491e-03, 1.8634371561802442e-03, 1.9369180154716374e-03, 1.9008210661862794e-03, 1.8651079796402231e-03, 1.8588100684415179e-03, 1.8603406085388947e-03, 1.8619814186722494e-03, 1.8625517230520053e-03, 1.8622314068233268e-03, 1.8629405151884236e-03, 2.0023108075173081e-04, 1.6637180300153523e-04, -9.4905481594792013e-05, 2.5597941733080347e-04, 1.4778051290801984e-03, 4.5771415245807311e-03, 8.0358959013343487e-03, 1.1376758734670350e-02, 1.3956335130667815e-02, 1.5811197065465115e-02, 1.7076021243249900e-02, 1.7481595007189342e-02, 1.6493706659765465e-02, 1.3894162013420619e-02, 9.0451001645560115e-03, 3.7961768133754968e-03, 3.0198984045560465e-04, 8.9289173951627962e-06, 1.0835655372328037e-04, 1.5648571787669878e-04, 1.1829836527153153e-04, 7.0078427342618027e-05, 5.1011960411820978e-05, 5.1128531913433617e-05, 5.2333094836231291e-05, 5.2791735179802456e-05, 5.2804150553586584e-05, 5.2775224295525650e-05, 5.2763959163032619e-05, 5.2763331709799896e-05, 5.2764034988345464e-05, 5.2764372448274965e-05, 5.2764260292674565e-05, 5.2763027188090662e-05, 5.2760284870275646e-05, 5.2765230108222360e-05, 5.2813394059423375e-05, 5.2941879501117260e-05, 5.2749117733786979e-05, 5.0930584458407617e-05, 4.4693926442339863e-05, 5.3541091406693454e-05, 1.1526563397311098e-04, 4.4723261304716798e-04, 1.0705312141960775e-03, 1.8634367522833157e-03, 1.9369183442251943e-03, 1.9008210598114410e-03, 1.8651074579541776e-03, 1.8588115265197021e-03, 1.8603375151969473e-03, 1.8619874828233380e-03, 1.8625345925813966e-03, 1.8622679287181700e-03, 1.8628976058279948e-03, 1.9466549882315578e-04, 1.5444295409185237e-04, -8.7146698556321778e-05, 2.3537008427414223e-04, 1.4342510796700888e-03, 4.5322128876275451e-03, 7.9865983624649237e-03, 1.1320894651002861e-02, 1.3900978037067585e-02, 1.5756925056936603e-02, 1.7024176869062609e-02, 1.7432394489867092e-02, 1.6445769589980064e-02, 1.3848193860749983e-02, 8.9887113698740636e-03, 3.7694206789713218e-03, 2.9606095768049394e-04, 7.8987740063329522e-06, 1.0576453856615951e-04, 1.5561569172697510e-04, 1.1781546331450412e-04, 7.0081671362521046e-05, 5.1029109779258467e-05, 5.1148730598635910e-05, 5.2337486103714001e-05, 5.2792038171353223e-05, 5.2803736009684794e-05, 5.2775081476559530e-05, 5.2763984466304426e-05, 5.2763399895895020e-05, 5.2764100852580449e-05, 5.2764433419266539e-05, 5.2764318809236855e-05, 5.2763086086868539e-05, 5.2760344381791418e-05, 5.2765289333700208e-05, 5.2813452773309531e-05, 5.2941938173023792e-05, 5.2749175573307892e-05, 5.0930647241222059e-05, 4.4693989094793950e-05, 5.3541103948892796e-05, 1.1526589397098353e-04, 4.4723309064916927e-04, 1.0705303437382680e-03, 1.8634378938459778e-03, 1.9369175268645865e-03, 1.9008212847339563e-03, 1.8651084472300614e-03, 1.8588086132491255e-03, 1.8603438927163837e-03, 1.8619749113735560e-03, 1.8625702967677898e-03, 1.8621913805655145e-03, 1.8629880132574473e-03, 1.9537204632818155e-04, 1.4790308908609216e-04, -8.1921186502615561e-05, 2.1799590482966688e-04, 1.4038888095982247e-03, 4.4951320184327855e-03, 7.9451385380633621e-03, 1.1276332513874100e-02, 1.3855732183150086e-02, 1.5712651613441726e-02, 1.6981441605358197e-02, 1.7391150348523367e-02, 1.6405787944745343e-02, 1.3808638847571067e-02, 8.9518523149521596e-03, 3.7459022404196943e-03, 2.8600804034936852e-04, 6.5930276491204159e-06, 1.0464028127439970e-04, 1.5544220270695676e-04, 1.1776860112114971e-04, 7.0133575550177952e-05, 5.1048568120548845e-05, 5.1158443691040465e-05, 5.2337864428565319e-05, 5.2791642851391819e-05, 5.2803256851966863e-05, 5.2774911782523750e-05, 5.2763883362294069e-05, 5.2763314506730388e-05, 5.2764008583700968e-05, 5.2764338017969712e-05, 5.2764222685227840e-05, 5.2762990003139249e-05, 5.2760248043990536e-05, 5.2765192404920691e-05, 5.2813354879746626e-05, 5.2941839145751638e-05, 5.2749081673905024e-05, 5.0930563195696204e-05, 4.4693909529584894e-05, 5.3541282489353017e-05, 1.1526518591392340e-04, 4.4723217779127480e-04, 1.0705326609380516e-03, 1.8634351117689134e-03, 1.9369197647807381e-03, 1.9008204501638740e-03, 1.8651067429387752e-03, 1.8588145188517396e-03, 1.8603308976940019e-03, 1.8620009775472681e-03, 1.8624960205930882e-03, 1.8623515723028470e-03, 1.8627975040808968e-03, 1.9628456441416785e-04, 1.5013939056360550e-04, -8.3898729380565523e-05, 2.2089610092934463e-04, 1.4137223379101472e-03, 4.5038708916654560e-03, 7.9549962660120481e-03, 1.1287317970490216e-02, 1.3866444321218745e-02, 1.5722898196163373e-02, 1.6991037618115885e-02, 1.7400187795763900e-02, 1.6414860371094148e-02, 1.3817735038463338e-02, 8.9642366296498500e-03, 3.7509258553851594e-03, 2.8542346346133635e-04, 6.3037318996790706e-06, 1.0453103182820601e-04, 1.5548764093818094e-04, 1.1783607579632478e-04, 7.0163111694987676e-05, 5.1059851567874945e-05, 5.1159827105919700e-05, 5.2337756431267826e-05, 5.2791413824268462e-05, 5.2803384064690332e-05, 5.2775168163011750e-05, 5.2764171952212768e-05, 5.2763597688793311e-05, 5.2764287252769400e-05, 5.2764615443031443e-05, 5.2764500067409497e-05, 5.2763267103777121e-05, 5.2760524055670146e-05, 5.2765466478416435e-05, 5.2813628578728365e-05, 5.2942122416501173e-05, 5.2749383987956509e-05, 5.0930873113348990e-05, 4.4694271338535770e-05, 5.3540517919883330e-05, 1.1526707125953422e-04, 4.4723316973362543e-04, 1.0705261678579589e-03, 1.8634416214446229e-03, 1.9369136438738867e-03, 1.9008229841337579e-03, 1.8651094999164487e-03, 1.8588028237882246e-03, 1.8603576012097272e-03, 1.8619473851588144e-03, 1.8626503252349956e-03, 1.8620168924328555e-03, 1.8631987785806376e-03, 1.9625115107014884e-04, 1.5156254139121135e-04, -8.5130119594981372e-05, 2.2463421146762973e-04, 1.4201123626850966e-03, 4.5118319264165502e-03, 7.9636968535816612e-03, 1.1296723910432523e-02, 1.3875972006098029e-02, 1.5732157531493630e-02, 1.6999928196910024e-02, 1.7408721287572686e-02, 1.6423180794006877e-02, 1.3826186734757866e-02, 8.9722180088903404e-03, 3.7558479910672288e-03, 2.8707806557569854e-04, 6.4169919645957697e-06, 1.0471048303137356e-04, 1.5552006638919297e-04, 1.1787708166468982e-04, 7.0166555429418826e-05, 5.1059514837784343e-05, 5.1155950773334284e-05, 5.2334515740002731e-05, 5.2788539776472749e-05, 5.2800777556973909e-05, 5.2772604941861099e-05, 5.2761608556632589e-05, 5.2761024070279378e-05, 5.2761710552233241e-05, 5.2762038227833436e-05, 5.2761922769552988e-05, 5.2760688509558133e-05, 5.2757942881146271e-05, 5.2762884853908265e-05, 5.2811055013295195e-05, 5.2939567985073466e-05, 5.2746847439457793e-05, 5.0928490818046970e-05, 4.4691496586062834e-05, 5.3540751024712281e-05, 1.1525468869921089e-04, 4.4722711986667352e-04, 1.0705389659023221e-03, 1.8634233088402291e-03, 1.9369282480450670e-03, 1.9008146146979237e-03, 1.8651047547292620e-03, 1.8588254223509014e-03, 1.8603031471337273e-03, 1.8620577716116223e-03, 1.8623311534076996e-03, 1.8627153298827383e-03, 1.8623542610319605e-03, 1.9611550732548272e-04, 1.5107566516646786e-04, -8.4570005158461845e-05, 2.2371275756758645e-04, 1.4170926744066731e-03, 4.5091145659180085e-03, 7.9604844286351832e-03, 1.1293327064522529e-02, 1.3872559294719138e-02, 1.5728974842161774e-02, 1.6996868186409955e-02, 1.7405864280444883e-02, 1.6420305479934613e-02, 1.3823252779814960e-02, 8.9686462820687401e-03, 3.7539938323407282e-03, 2.8731330395008524e-04, 6.3926402253905399e-06, 1.0481010087430904e-04, 1.5555601057755137e-04, 1.1790083948938788e-04, 7.0173898757218720e-05, 5.1061375485392105e-05, 5.1158680118191800e-05, 5.2338069327497945e-05, 5.2792656989905416e-05, 5.2805060386584757e-05, 5.2776921608626875e-05, 5.2765910945846296e-05, 5.2765317255649364e-05, 5.2766000670176624e-05, 5.2766328110932300e-05, 5.2766211551856188e-05, 5.2764974043510154e-05, 5.2762226293800546e-05, 5.2767177570961114e-05, 5.2815390070647042e-05, 5.2943983257378185e-05, 5.2751380355121670e-05, 5.0932310464500225e-05, 4.4696215259885465e-05, 5.3534698339883051e-05, 1.1528346749835803e-04, 4.4723339564110137e-04, 1.0705018220245807e-03, 1.8634671681241107e-03, 1.9368908582460822e-03, 1.9008375554042222e-03, 1.8651093328970472e-03, 1.8587792478137054e-03, 1.8604118190256322e-03, 1.8618308240938703e-03, 1.8629898541439904e-03, 1.8612625682059157e-03, 1.8641322272451215e-03, 1.9610707531240366e-04, 1.5058303615274850e-04, -8.4067805266670301e-05, 2.2253933029472327e-04, 1.4157128282870698e-03, 4.5067593056803525e-03, 7.9584800031851245e-03, 1.1290755614007731e-02, 1.3870284400722965e-02, 1.5726576390553602e-02, 1.6994758154556786e-02, 1.7403718618363873e-02, 1.6418238653312097e-02, 1.3821252798971411e-02, 8.9662603993714701e-03, 3.7532717416709585e-03, 2.8626606446908130e-04, 6.6789975678500104e-06, 1.0467277193721873e-04, 1.5558959024970838e-04, 1.1787730092738426e-04, 7.0172369458947951e-05, 5.1053107050268051e-05, 5.1146166710383875e-05, 5.2324228223123846e-05, 5.2779136233167973e-05, 5.2791869346012627e-05, 5.2763826031508889e-05, 5.2752819008624882e-05, 5.2752212048235293e-05, 5.2752889633130895e-05, 5.2753215396933892e-05, 5.2753095901527958e-05, 5.2751855567218394e-05, 5.2749118450079395e-05, 5.2754124185948719e-05, 5.2802437237716438e-05, 5.2931065886866348e-05, 5.2737805954207534e-05, 5.0919566820754495e-05, 4.4678384860871587e-05, 5.3551166603920285e-05, 1.1520149231418367e-04, 4.4723416472041853e-04, 1.0706051904259364e-03, 1.8633673473945165e-03, 1.9369946467446752e-03, 1.9007816585855247e-03, 1.8651092052186491e-03, 1.8588640388256918e-03, 1.8601868669473063e-03, 1.8622897626809499e-03, 1.8616349791235659e-03, 1.8642765051889094e-03, 1.8603976150981395e-03, 1.9624322970958357e-04, 1.5121509639586444e-04, -8.4721907411234820e-05, 2.2355749813669806e-04, 1.4158595464564010e-03, 4.5083739142886348e-03, 7.9588537805281925e-03, 1.1292225407059965e-02, 1.3871099733433784e-02, 1.5727927902791747e-02, 1.6995682992643930e-02, 1.7404883348270551e-02, 1.6419153731365977e-02, 1.3821838073186758e-02, 8.9680842033749639e-03, 3.7525706655277178e-03, 2.8802195232347123e-04, 5.9208135099351827e-06, 1.0502135100411906e-04, 1.5564162894928941e-04, 1.1812720785273671e-04, 7.0320907287401463e-05, 5.1166818287595348e-05, 5.1251584864584600e-05, 5.2428122420170443e-05, 5.2882854872602638e-05, 5.2895746564733219e-05, 5.2867909431307287e-05, 5.2856927645051340e-05, 5.2856309595311420e-05, 5.2856975105361097e-05, 5.2857295823136697e-05, 5.2857172509930534e-05, 5.2855936014257674e-05, 5.2853244613128293e-05, 5.2858382413562094e-05, 5.2906925420373678e-05, 5.3035421722203006e-05, 5.2842095083087176e-05, 5.1013809138885845e-05, 4.4781861610246038e-05, 5.3569359972599507e-05, 1.1558363770647684e-04, 4.4732803042613609e-04, 1.0704106764419445e-03, 1.8636478789978816e-03, 1.9367526162861965e-03, 1.9009539390940065e-03, 1.8651052474931225e-03, 1.8587049664626550e-03, 1.8606288187216404e-03, 1.8613481310944448e-03, 1.8644011478630813e-03, 1.8580504260927327e-03, 1.8682311716762099e-03, 1.9577367064361253e-04, 1.5007320059376425e-04, -8.3715583851212528e-05, 2.2246846088224472e-04, 1.4186558008384953e-03, 4.5073914144638039e-03, 7.9608868930535343e-03, 1.1291872153452467e-02, 1.3872469086173997e-02, 1.5728227687356950e-02, 1.6996882884507840e-02, 1.7404975578750835e-02, 1.6419505821311093e-02, 1.3822675591997614e-02, 8.9671678852767805e-03, 3.7565972788827884e-03, 2.8463684611570685e-04, 8.0314789168827407e-06, 1.0407067294076454e-04, 1.5550485183893323e-04, 1.1760734069329081e-04, 7.0159994299975041e-05, 5.1039120245453477e-05, 5.1112998018413227e-05, 5.2269300480828408e-05, 5.2720211724489208e-05, 5.2733388089249117e-05, 5.2706082235617194e-05, 5.2695286288027142e-05, 5.2694650275828783e-05, 5.2695289052735797e-05, 5.2695596242445949e-05, 5.2695471274043034e-05, 5.2694270028503058e-05, 5.2691719540277961e-05, 5.2697103050948600e-05, 5.2745335032541217e-05, 5.2872436432448399e-05, 5.2671382557614545e-05, 5.0861660286712825e-05, 4.4592293840664463e-05, 5.3643868330416462e-05, 1.1483042652833558e-04, 4.4734912830160262e-04, 1.0710440390515258e-03, 1.8629156405211992e-03, 1.9373208288020870e-03, 1.9005332288359101e-03, 1.8652294811978146e-03, 1.8590467052944928e-03, 1.8597561933999692e-03, 1.8632376676476648e-03, 1.8587814055436274e-03, 1.8708264804527571e-03, 1.8518746940862792e-03, 1.9703743469857743e-04, 1.5391516727099073e-04, -8.6928981693821535e-05, 2.2749185499742057e-04, 1.4147299679886888e-03, 4.5120985619730245e-03, 7.9568901218600822e-03, 1.1293037822380385e-02, 1.3870045653160622e-02, 1.5728901156734997e-02, 1.6995055064417935e-02, 1.7404440035685361e-02, 1.6416376840201523e-02, 1.3819403999342351e-02, 8.9700360618342866e-03, 3.7510308377225196e-03, 2.9736470622287488e-04, 3.7232577762038628e-06, 1.0628507818845596e-04, 1.5447672036298009e-04, 1.1820929704809061e-04, 7.0460193717259356e-05, 5.1505454366100722e-05, 5.1598115485828118e-05, 5.2764155482800590e-05, 5.3205740825419730e-05, 5.3217368626375602e-05, 5.3190734524828457e-05, 5.3180310272645842e-05, 5.3179745548062367e-05, 5.3180346756555147e-05, 5.3180633885761917e-05, 5.3180516104464865e-05, 5.3179395293292125e-05, 5.3177035080441952e-05, 5.3182352591529636e-05, 5.3229714583286845e-05, 5.3350810631864330e-05, 5.3156018604730052e-05, 5.1292304931319354e-05, 4.5172619075345661e-05, 5.3556875587384186e-05, 1.1707535465051319e-04, 4.4755039417781307e-04, 1.0693216134612677e-03, 1.8642905554100623e-03, 1.9354142541229420e-03, 1.9015407985447656e-03, 1.8650452422018199e-03, 1.8586247707123862e-03, 1.8615671278678623e-03, 1.8594707142496176e-03, 1.8700877875612695e-03, 1.8448926003095047e-03, 1.8857642269393758e-03, 1.9188804163353923e-04, 1.4306946401739683e-04, -8.1205287607640346e-05, 2.1685633001839195e-04, 1.4266739172027357e-03, 4.5018813439188761e-03, 7.9652001319269264e-03, 1.1287016283397013e-02, 1.3872420799327944e-02, 1.5724579928094805e-02, 1.6995564088640176e-02, 1.7398101046751331e-02, 1.6415568300793847e-02, 1.3819441733730621e-02, 8.9639373418017500e-03, 3.7669314883747615e-03, 2.7447238816255521e-04, 1.5149150089701472e-05, 9.9721476653303880e-05, 1.5090306163229064e-04, 1.1067868235150748e-04, 6.5952820793956275e-05, 4.7902349142068158e-05, 4.8153588035569319e-05, 4.9206320033902837e-05, 4.9622607426933317e-05, 4.9631707088836125e-05, 4.9608427746471879e-05, 4.9599336753756286e-05, 4.9598921660961718e-05, 4.9599447690851822e-05, 4.9599690391576696e-05, 4.9599591490273580e-05, 4.9598676543681986e-05, 4.9596564296812746e-05, 4.9601614757236363e-05, 4.9640676165722513e-05, 4.9751539003275205e-05, 4.9514879252767139e-05, 4.7898452774396719e-05, 4.1730155139124382e-05, 5.1709058978545723e-05, 1.0879258207222810e-04, 4.4546838873662961e-04, 1.0727548824916991e-03, 1.8596343455541502e-03, 1.9391675641376208e-03, 1.8982773194423520e-03, 1.8658599054137196e-03, 1.8597745517944251e-03, 1.8583289245480130e-03, 1.8669743264165906e-03, 1.8476561370842283e-03, 1.8967543650224056e-03, 1.8166886857155877e-03, 2.1742067349690160e-04, 1.6711142629718048e-04, -9.9301176013844061e-05, 2.4275836154964676e-04, 1.3788147168192313e-03, 4.5360467165383774e-03, 7.9447730645893291e-03, 1.1309546741329932e-02, 1.3862732594325423e-02, 1.5730395536483793e-02, 1.6982811153783684e-02, 1.7407751056816009e-02, 1.6409785310140017e-02, 1.3837190761710631e-02, 8.9848564926752542e-03, 3.7106164973131645e-03, 3.2005689915016354e-04, -1.1762862343107751e-05, 1.2387637068527800e-04, 1.5162318296586892e-04, 1.1924726511060740e-04, 6.9735149215390527e-05, 5.2513789151763810e-05, 5.2505081597446159e-05, 5.3829208190670530e-05, 5.4184664316397866e-05, 5.4197338333152025e-05, 5.4171798720878560e-05, 5.4165014712169201e-05, 5.4164855184991539e-05, 5.4165424947554312e-05, 5.4165600563286975e-05, 5.4165603674824010e-05, 5.4164653923223112e-05, 5.4163290890551748e-05, 5.4163537426693889e-05, 5.4205904862127338e-05, 5.4266083895239136e-05, 5.4170698302366375e-05, 5.2044797351721106e-05, 4.7533599990288261e-05, 5.3279645985170171e-05, 1.2355694582788041e-04, 4.4439349044291025e-04, 1.0566345089074332e-03, 1.8807181402187105e-03, 1.9259865025535797e-03, 1.9053506673771879e-03, 1.8614146664119274e-03, 1.8580889611362872e-03, 1.8671653089793465e-03, 1.8478428853693368e-03, 1.9048999582283563e-03, 1.7627304172439801e-03, 1.9982757146222289e-03, 1.3808548940662225e-04, 1.1889197488242184e-04, -1.3567593910239986e-06, 1.0570149155238674e-04, 1.3811013124063059e-03, 4.4131643786810022e-03, 8.0698133157557621e-03, 1.1304822143497407e-02, 1.3916550061472552e-02, 1.5679469050270182e-02, 1.6998024518489582e-02, 1.7379199925778032e-02, 1.6534144336195992e-02, 1.3975520200079194e-02, 9.0386974994914396e-03, 3.6269101933658547e-03, -5.0560803478998216e-05, 7.6819181082594934e-05, 1.6404575298761636e-04, 1.8020044480094417e-04, 1.0204299851629968e-04, 5.8403540211684606e-05, 4.0774896755148416e-05, 4.2594018045917048e-05, 4.3257441755387427e-05, 4.3498483806038684e-05, 4.3440476284975202e-05, 4.3423123494165219e-05, 4.3418464069983149e-05, 4.3419511600935483e-05, 4.3419911970858801e-05, 4.3420077745129563e-05, 4.3419989113551608e-05, 4.3419966908692983e-05, 4.3416395620321394e-05, 4.3420305121574092e-05, 4.3419548113501281e-05, 4.3597251996345750e-05, 4.3395814012748863e-05, 4.3601637981375463e-05, 3.6805589906743039e-05, 5.5506970632529267e-05, 7.8082982079777136e-05, 3.9547712965752970e-04, 1.1007128604764817e-03, 1.8820906361242803e-03, 1.9869342085540205e-03, 1.8559641234666209e-03, 1.8670084980000120e-03, 1.8592493260250682e-03, 1.8476353205674721e-03, 1.8951862240662260e-03, 1.7641968394625774e-03, 2.0824381648996940e-03, 1.5588916170893128e-03, 6.9587131646531070e-04, 2.6326630672536755e-04, -2.4933992602606605e-05, 4.1623822535381279e-04, 6.8103339204867125e-04, 4.8736123319618229e-03, 7.8361209751231491e-03, 1.1529210160859891e-02, 1.3864069894643637e-02, 1.5668359181618338e-02, 1.6895052633848478e-02, 1.7548942494628603e-02, 1.6294333874716314e-02, 1.4505991099787584e-02, 9.0051153825949377e-03, 3.5072316073699759e-03, -5.6739795462399680e-04, 4.8661510935222668e-04, 2.3689225387805310e-04, 2.7321810728572505e-04, 1.9539659214778556e-04, 1.5584424506735081e-04, 1.3533083854941030e-04, 1.3900988180806534e-04, 1.3924655062716177e-04, 1.3937053162467987e-04, 1.3929820502113822e-04, 1.3928477260582422e-04, 1.3928258219787383e-04, 1.3928392579334642e-04, 1.3928423606520939e-04, 1.3928433385494742e-04, 1.3928432378418839e-04, 1.3928438010658549e-04, 1.3928165757548931e-04, 1.3928145430925948e-04, 1.3927801542673482e-04, 1.3941672548600640e-04, 1.3941032950292963e-04, 1.4008195470501845e-04, 1.3371982406971183e-04, 1.5494609264068423e-04, 1.8600506633100595e-04, 4.3145516751200272e-04, 8.4315012019652621e-04, 2.2826371041625962e-03, 1.7704628202846915e-03, 1.9217844160657224e-03, 1.8316369379314970e-03, 1.8616806018752939e-03, 1.8794531227876192e-03, 1.8196718222934500e-03, 1.9956284473911742e-03, 1.5607165638406521e-03, 2.2535623208596572e-03};
static const casadi_real casadi_c1[131] = {-5.6818181818181817e+00, -5.6818181818181817e+00, -5.6818181818181817e+00, -5.6818181818181817e+00, -4.3181818181818183e+00, -3.6363636363636367e+00, -2.9545454545454550e+00, -2.2727272727272734e+00, -1.5909090909090917e+00, -9.0909090909091006e-01, -2.2727272727272840e-01, 4.5454545454545325e-01, 1.1363636363636349e+00, 1.8181818181818166e+00, 2.4999999999999982e+00, 3.1818181818181799e+00, 3.8636363636363615e+00, 4.5454545454545432e+00, 5.2272727272727249e+00, 5.9090909090909065e+00, 6.5909090909090882e+00, 7.2727272727272698e+00, 7.9545454545454515e+00, 8.6363636363636331e+00, 9.3181818181818148e+00, 9.9999999999999964e+00, 1.0681818181818178e+01, 1.1363636363636358e+01, 1.2045454545454541e+01, 1.2727272727272727e+01, 1.3409090909090910e+01, 1.4090909090909093e+01, 1.4772727272727273e+01, 1.5454545454545455e+01, 1.6136363636363637e+01, 1.6818181818181820e+01, 1.7500000000000000e+01, 1.8181818181818180e+01, 1.8863636363636363e+01, 1.9545454545454547e+01, 2.0227272727272727e+01, 2.0909090909090907e+01, 2.1590909090909090e+01, 2.2272727272727273e+01, 2.2954545454545453e+01, 2.3636363636363633e+01, 2.4318181818181817e+01, 25., 2.5681818181818180e+01, 2.6363636363636360e+01, 2.7045454545454543e+01, 2.7727272727272727e+01, 2.8409090909090907e+01, 2.9090909090909086e+01, 2.9772727272727270e+01, 3.1136363636363633e+01, 3.1136363636363633e+01, 3.1136363636363633e+01, 3.1136363636363633e+01, -2.3747727272727275e+00, -2.3747727272727275e+00, -2.3747727272727275e+00, -2.3747727272727275e+00, -1.6934090909090913e+00, -1.3527272727272732e+00, -1.0120454545454551e+00, -6.7136363636363705e-01, -3.3068181818181897e-01, 9.9999999999988987e-03, 3.5068181818181721e-01, 6.9136363636363551e-01, 1.0320454545454534e+00, 1.3727272727272712e+00, 1.7134090909090895e+00, 2.0540909090909079e+00, 2.3947727272727253e+00, 2.7354545454545436e+00, 3.0761363636363619e+00, 3.4168181818181802e+00, 3.7574999999999985e+00, 4.0981818181818159e+00, 4.4388636363636342e+00, 4.7795454545454525e+00, 5.1202272727272700e+00, 5.4609090909090883e+00, 5.8015909090909066e+00, 6.1422727272727240e+00, 6.4829545454545432e+00, 6.8236363636363606e+00, 7.1643181818181780e+00, 7.5049999999999972e+00, 7.8456818181818146e+00, 8.1863636363636338e+00, 8.5270454545454513e+00, 8.8677272727272687e+00, 9.2084090909090932e+00, 9.5490909090909106e+00, 9.8897727272727280e+00, 1.0230454545454547e+01, 1.0571136363636365e+01, 1.0911818181818184e+01, 1.1252500000000001e+01, 1.1593181818181819e+01, 1.1933863636363638e+01, 1.2274545454545455e+01, 1.2615227272727275e+01, 1.2955909090909092e+01, 1.3296590909090909e+01, 1.3637272727272727e+01, 1.3977954545454546e+01, 1.4318636363636363e+01, 1.4659318181818183e+01, 15., 1.5340681818181817e+01, 1.5681363636363637e+01, 1.6022045454545456e+01, 1.6362727272727273e+01, 1.6703409090909091e+01, 1.7044090909090908e+01, 1.7384772727272725e+01, 1.7725454545454546e+01, 1.8066136363636364e+01, 1.8406818181818181e+01, 1.8747499999999999e+01, 1.9088181818181816e+01, 1.9428863636363634e+01, 1.9769545454545455e+01, 2.0450909090909089e+01, 2.0450909090909089e+01, 2.0450909090909089e+01, 2.0450909090909089e+01};
void casadi_de_boor(casadi_real x, const casadi_real* knots, casadi_int n_knots, casadi_int degree, casadi_real* boor) {
casadi_int d, i;
for (d=1;d<degree+1;++d) {
for (i=0;i<n_knots-d-1;++i) {
casadi_real b, bottom;
b = 0;
bottom = knots[i + d] - knots[i];
if (bottom) b = (x - knots[i]) * boor[i] / bottom;
bottom = knots[i + d + 1] - knots[i + 1];
if (bottom) b += (knots[i + d + 1] - x) * boor[i + 1] / bottom;
boor[i] = b;
}
}
}
void casadi_fill(casadi_real* x, casadi_int n, casadi_real alpha) {
casadi_int i;
if (x) {
for (i=0; i<n; ++i) *x++ = alpha;
}
}
void casadi_fill_casadi_int(casadi_int* x, casadi_int n, casadi_int alpha) {
casadi_int i;
if (x) {
for (i=0; i<n; ++i) *x++ = alpha;
}
}
casadi_int casadi_low(casadi_real x, const double* grid, casadi_int ng, casadi_int lookup_mode) {
switch (lookup_mode) {
case 1:
{
double g0, dg;
casadi_int ret;
g0 = grid[0];
dg = grid[ng-1]-g0;
ret = (casadi_int) ((x-g0)*(ng-1)/dg);
if (ret<0) ret=0;
if (ret>ng-2) ret=ng-2;
return ret;
}
case 2:
{
casadi_int start, stop, pivot;
if (ng<2 || x<grid[1]) return 0;
if (x>grid[ng-1]) return ng-2;
start = 0;
stop = ng-1;
while (1) {
pivot = (stop+start)/2;
if (x < grid[pivot]) {
if (pivot==stop) return pivot;
stop = pivot;
} else {
if (pivot==start) return pivot;
start = pivot;
}
}
}
default:
{
casadi_int i;
for (i=0; i<ng-2; ++i) {
if (x < grid[i+1]) break;
}
return i;
}
}
}
void casadi_nd_boor_eval(casadi_real* ret, casadi_int n_dims, const casadi_real* all_knots, const casadi_int* offset, const casadi_int* all_degree, const casadi_int* strides, const casadi_real* c, casadi_int m, const casadi_real* all_x, const casadi_int* lookup_mode, casadi_int reverse, casadi_int* iw, casadi_real* w) {
casadi_int n_iter, k, i, pivot;
casadi_int *boor_offset, *starts, *index, *coeff_offset;
casadi_real *cumprod, *all_boor;
boor_offset = iw; iw+=n_dims+1;
starts = iw; iw+=n_dims;
index = iw; iw+=n_dims;
coeff_offset = iw;
cumprod = w; w+= n_dims+1;
all_boor = w;
boor_offset[0] = 0;
cumprod[n_dims] = 1;
coeff_offset[n_dims] = 0;
n_iter = 1;
for (k=0;k<n_dims;++k) {
casadi_real *boor;
const casadi_real* knots;
casadi_real x;
casadi_int degree, n_knots, n_b, L, start;
boor = all_boor+boor_offset[k];
degree = all_degree[k];
knots = all_knots + offset[k];
n_knots = offset[k+1]-offset[k];
n_b = n_knots-degree-1;
x = all_x[k];
L = casadi_low(x, knots+degree, n_knots-2*degree, lookup_mode[k]);
start = L;
if (start>n_b-degree-1) start = n_b-degree-1;
starts[k] = start;
casadi_fill(boor, 2*degree+1, 0.0);
if (x>=knots[0] && x<=knots[n_knots-1]) {
if (x==knots[1]) {
casadi_fill(boor, degree+1, 1.0);
} else if (x==knots[n_knots-1]) {
boor[degree] = 1;
} else if (knots[L+degree]==x) {
boor[degree-1] = 1;
} else {
boor[degree] = 1;
}
}
casadi_de_boor(x, knots+start, 2*degree+2, degree, boor);
boor+= degree+1;
n_iter*= degree+1;
boor_offset[k+1] = boor_offset[k] + degree+1;
}
casadi_fill_casadi_int(index, n_dims, 0);
for (pivot=n_dims-1;pivot>=0;--pivot) {
cumprod[pivot] = (*(all_boor+boor_offset[pivot]))*cumprod[pivot+1];
coeff_offset[pivot] = starts[pivot]*strides[pivot]+coeff_offset[pivot+1];
}
for (k=0;k<n_iter;++k) {
casadi_int pivot = 0;
for (i=0;i<m;++i) {
if (reverse) {
ret[coeff_offset[0]+i] += c[i]*cumprod[0];
} else {
ret[i] += c[coeff_offset[0]+i]*cumprod[0];
}
}
index[0]++;
{
while (index[pivot]==boor_offset[pivot+1]-boor_offset[pivot]) {
index[pivot] = 0;
if (pivot==n_dims-1) break;
index[++pivot]++;
}
while (pivot>0) {
cumprod[pivot] = (*(all_boor+boor_offset[pivot]+index[pivot]))*cumprod[pivot+1];
coeff_offset[pivot] = (starts[pivot]+index[pivot])*strides[pivot]+coeff_offset[pivot+1];
pivot--;
}
}
cumprod[0] = (*(all_boor+index[0]))*cumprod[1];
coeff_offset[0] = (starts[0]+index[0])*m+coeff_offset[1];
}
}
void casadi_copy(const casadi_real* x, casadi_int n, casadi_real* y) {
casadi_int i;
if (y) {
if (x) {
for (i=0; i<n; ++i) *y++ = *x++;
} else {
for (i=0; i<n; ++i) *y++ = 0.;
}
}
}
casadi_real casadi_sq(casadi_real x) { return x*x;}
/* Spline:(x[2])->(f) */
static int casadi_f1(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {
if (res[0]) casadi_fill(res[0], 1, 0.0);
if (res[0]) CASADI_PREFIX(nd_boor_eval)(res[0],2,casadi_c1,casadi_s3,casadi_s2,casadi_s1,casadi_c0,1,arg[0],casadi_s0, 0, iw, w);
return 0;
}
/* wt_nx6p2_impl_ode_fun:(i0[8],i1[8],i2[2],i3)->(o0[8]) */
static int casadi_f0(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem) {
casadi_int i;
casadi_real **res1=res+1, *rr, *ss;
const casadi_real **arg1=arg+4, *cs;
casadi_real *w0=w+16, w1, *w2=w+25, w3, w4, w5, w6, w7, w8, w9, w10, w11, w12, w13, w14, *w15=w+45, w16;
/* #0: @0 = input[1][0] */
casadi_copy(arg[1], 8, w0);
/* #1: @1 = 867637000 */
w1 = 867637000.;
/* #2: @2 = input[0][0] */
casadi_copy(arg[0], 8, w2);
/* #3: @3 = @2[3] */
for (rr=(&w3), ss=w2+3; ss!=w2+4; ss+=1) *rr++ = *ss;
/* #4: @1 = (@1*@3) */
w1 *= w3;
/* #5: @4 = 62150000 */
w4 = 62150000.;
/* #6: @5 = @2[1] */
for (rr=(&w5), ss=w2+1; ss!=w2+2; ss+=1) *rr++ = *ss;
/* #7: @4 = (@4*@5) */
w4 *= w5;
/* #8: @1 = (@1+@4) */
w1 += w4;
/* #9: @4 = 970000 */
w4 = 970000.;
/* #10: @6 = @2[5] */
for (rr=(&w6), ss=w2+5; ss!=w2+6; ss+=1) *rr++ = *ss;
/* #11: @4 = (@4*@6) */
w4 *= w6;
/* #12: @1 = (@1-@4) */
w1 -= w4;
/* #13: @4 = 40589300 */
w4 = 40589300.;
/* #14: @1 = (@1/@4) */
w1 /= w4;
/* #15: @4 = 31.5 */
w4 = 3.1500000000000000e+01;
/* #16: @7 = 5091.5 */
w7 = 5.0915000000000000e+03;
/* #17: @8 = 1 */
w8 = 1.;
/* #18: @9 = 0.35 */
w9 = 3.4999999999999998e-01;
/* #19: @10 = 2.0944 */
w10 = 2.0943999999999998e+00;
/* #20: @10 = (@10+@3) */
w10 += w3;
/* #21: @11 = @2[2] */
for (rr=(&w11), ss=w2+2; ss!=w2+3; ss+=1) *rr++ = *ss;
/* #22: @10 = (@10+@11) */
w10 += w11;
/* #23: @10 = cos(@10) */
w10 = cos( w10 );
/* #24: @9 = (@9*@10) */
w9 *= w10;
/* #25: @8 = (@8+@9) */
w8 += w9;
/* #26: @9 = 0.2 */
w9 = 2.0000000000000001e-01;
/* #27: @8 = pow(@8,@9) */
w8 = pow(w8,w9);
/* #28: @9 = input[3][0] */
w9 = arg[3] ? arg[3][0] : 0;
/* #29: @8 = (@8*@9) */
w8 *= w9;
/* #30: @10 = sq(@8) */
w10 = casadi_sq( w8 );
/* #31: @7 = (@7*@10) */
w7 *= w10;
/* #32: @10 = @2[4] */
for (rr=(&w10), ss=w2+4; ss!=w2+5; ss+=1) *rr++ = *ss;
/* #33: @12 = 63 */
w12 = 63.;
/* #34: @13 = @2[0] */
for (rr=(&w13), ss=w2+0; ss!=w2+1; ss+=1) *rr++ = *ss;
/* #35: @14 = (@5+@13) */
w14 = (w5+w13);
/* #36: @12 = (@12*@14) */
w12 *= w14;
/* #37: @12 = (@12/@8) */
w12 /= w8;
/* #38: @15 = horzcat(@10, @12) */
rr=w15;
*rr++ = w10;
*rr++ = w12;
/* #39: @15 = @15' */
/* #40: @12 = Spline(@15) */
arg1[0]=w15;
res1[0]=(&w12);
if (casadi_f1(arg1, res1, iw, w, 0)) return 1;
/* #41: @7 = (@7*@12) */
w7 *= w12;
/* #42: @4 = (@4*@7) */
w4 *= w7;
/* #43: @4 = (-@4) */
w4 = (- w4 );
/* #44: @7 = 31.5 */
w7 = 3.1500000000000000e+01;
/* #45: @12 = 5091.5 */
w12 = 5.0915000000000000e+03;
/* #46: @8 = 1 */
w8 = 1.;
/* #47: @14 = 0.35 */
w14 = 3.4999999999999998e-01;
/* #48: @16 = (@3+@11) */
w16 = (w3+w11);
/* #49: @16 = cos(@16) */
w16 = cos( w16 );
/* #50: @14 = (@14*@16) */
w14 *= w16;
/* #51: @8 = (@8+@14) */
w8 += w14;
/* #52: @14 = 0.2 */
w14 = 2.0000000000000001e-01;
/* #53: @8 = pow(@8,@14) */
w8 = pow(w8,w14);
/* #54: @8 = (@8*@9) */
w8 *= w9;
/* #55: @14 = sq(@8) */
w14 = casadi_sq( w8 );
/* #56: @12 = (@12*@14) */
w12 *= w14;
/* #57: @14 = 63 */
w14 = 63.;
/* #58: @16 = (@5+@13) */
w16 = (w5+w13);
/* #59: @14 = (@14*@16) */
w14 *= w16;
/* #60: @14 = (@14/@8) */
w14 /= w8;
/* #61: @15 = horzcat(@10, @14) */
rr=w15;
*rr++ = w10;
*rr++ = w14;
/* #62: @15 = @15' */
/* #63: @14 = Spline(@15) */
arg1[0]=w15;
res1[0]=(&w14);
if (casadi_f1(arg1, res1, iw, w, 0)) return 1;
/* #64: @12 = (@12*@14) */
w12 *= w14;
/* #65: @7 = (@7*@12) */
w7 *= w12;
/* #66: @4 = (@4-@7) */
w4 -= w7;
/* #67: @7 = 31.5 */
w7 = 3.1500000000000000e+01;
/* #68: @12 = 5091.5 */
w12 = 5.0915000000000000e+03;
/* #69: @14 = 1 */
w14 = 1.;
/* #70: @8 = 0.35 */
w8 = 3.4999999999999998e-01;
/* #71: @16 = 4.1888 */
w16 = 4.1887999999999996e+00;
/* #72: @16 = (@16+@3) */
w16 += w3;
/* #73: @16 = (@16+@11) */
w16 += w11;
/* #74: @16 = cos(@16) */
w16 = cos( w16 );
/* #75: @8 = (@8*@16) */
w8 *= w16;
/* #76: @14 = (@14+@8) */
w14 += w8;
/* #77: @8 = 0.2 */
w8 = 2.0000000000000001e-01;
/* #78: @14 = pow(@14,@8) */
w14 = pow(w14,w8);
/* #79: @14 = (@14*@9) */
w14 *= w9;
/* #80: @9 = sq(@14) */
w9 = casadi_sq( w14 );
/* #81: @12 = (@12*@9) */
w12 *= w9;
/* #82: @9 = 63 */
w9 = 63.;
/* #83: @8 = (@5+@13) */
w8 = (w5+w13);
/* #84: @9 = (@9*@8) */
w9 *= w8;
/* #85: @9 = (@9/@14) */
w9 /= w14;
/* #86: @15 = horzcat(@10, @9) */
rr=w15;
*rr++ = w10;
*rr++ = w9;
/* #87: @15 = @15' */
/* #88: @9 = Spline(@15) */
arg1[0]=w15;
res1[0]=(&w9);
if (casadi_f1(arg1, res1, iw, w, 0)) return 1;
/* #89: @12 = (@12*@9) */
w12 *= w9;
/* #90: @7 = (@7*@12) */
w7 *= w12;
/* #91: @4 = (@4-@7) */
w4 -= w7;
/* #92: @7 = 867637000 */
w7 = 867637000.;
/* #93: @7 = (@7*@3) */
w7 *= w3;
/* #94: @4 = (@4+@7) */
w4 += w7;
/* #95: @7 = 62150000 */
w7 = 62150000.;
/* #96: @7 = (@7*@5) */
w7 *= w5;
/* #97: @4 = (@4+@7) */
w4 += w7;
/* #98: @7 = 35563800 */
w7 = 35563800.;
/* #99: @4 = (@4/@7) */
w4 /= w7;
/* #100: @4 = (-@4) */
w4 = (- w4 );
/* #101: @7 = 2.5 */
w7 = 2.5000000000000000e+00;
/* #102: @3 = @2[6] */
for (rr=(&w3), ss=w2+6; ss!=w2+7; ss+=1) *rr++ = *ss;
/* #103: @3 = (@3-@10) */
w3 -= w10;
/* #104: @7 = (@7*@3) */
w7 *= w3;
/* #105: @3 = 50 */
w3 = 50.;
/* #106: @10 = @2[7] */
for (rr=(&w10), ss=w2+7; ss!=w2+8; ss+=1) *rr++ = *ss;
/* #107: @10 = (@10-@6) */
w10 -= w6;
/* #108: @3 = (@3*@10) */
w3 *= w10;
/* #109: @15 = input[2][0] */
casadi_copy(arg[2], 2, w15);
/* #110: @10 = @15[0] */
for (rr=(&w10), ss=w15+0; ss!=w15+1; ss+=1) *rr++ = *ss;
/* #111: @6 = @15[1] */
for (rr=(&w6), ss=w15+1; ss!=w15+2; ss+=1) *rr++ = *ss;
/* #112: @2 = vertcat(@1, @4, @13, @5, @7, @3, @10, @6) */
rr=w2;
*rr++ = w1;
*rr++ = w4;
*rr++ = w13;
*rr++ = w5;
*rr++ = w7;
*rr++ = w3;
*rr++ = w10;
*rr++ = w6;
/* #113: @0 = (@0-@2) */
for (i=0, rr=w0, cs=w2; i<8; ++i) (*rr++) -= (*cs++);
/* #114: output[0][0] = @0 */
casadi_copy(w0, 8, res[0]);
return 0;
}
CASADI_SYMBOL_EXPORT int wt_nx6p2_impl_ode_fun(const casadi_real** arg, casadi_real** res, casadi_int* iw, casadi_real* w, void* mem){
return casadi_f0(arg, res, iw, w, mem);
}
CASADI_SYMBOL_EXPORT void wt_nx6p2_impl_ode_fun_incref(void) {
}
CASADI_SYMBOL_EXPORT void wt_nx6p2_impl_ode_fun_decref(void) {
}
CASADI_SYMBOL_EXPORT casadi_int wt_nx6p2_impl_ode_fun_n_in(void) { return 4;}
CASADI_SYMBOL_EXPORT casadi_int wt_nx6p2_impl_ode_fun_n_out(void) { return 1;}
CASADI_SYMBOL_EXPORT const char* wt_nx6p2_impl_ode_fun_name_in(casadi_int i){
switch (i) {
case 0: return "i0";
case 1: return "i1";
case 2: return "i2";
case 3: return "i3";
default: return 0;
}
}
CASADI_SYMBOL_EXPORT const char* wt_nx6p2_impl_ode_fun_name_out(casadi_int i){
switch (i) {
case 0: return "o0";
default: return 0;
}
}
CASADI_SYMBOL_EXPORT const casadi_int* wt_nx6p2_impl_ode_fun_sparsity_in(casadi_int i) {
switch (i) {
case 0: return casadi_s4;
case 1: return casadi_s4;
case 2: return casadi_s5;
case 3: return casadi_s6;
default: return 0;
}
}
CASADI_SYMBOL_EXPORT const casadi_int* wt_nx6p2_impl_ode_fun_sparsity_out(casadi_int i) {
switch (i) {
case 0: return casadi_s4;
default: return 0;
}
}
CASADI_SYMBOL_EXPORT int wt_nx6p2_impl_ode_fun_work(casadi_int *sz_arg, casadi_int* sz_res, casadi_int *sz_iw, casadi_int *sz_w) {
if (sz_arg) *sz_arg = 12;
if (sz_res) *sz_res = 2;
if (sz_iw) *sz_iw = 14;
if (sz_w) *sz_w = 48;
return 0;
}
#ifdef __cplusplus
} /* extern "C" */
#endif
|
the_stack_data/3263159.c | #include <stdio.h>
void update(int *a,int *b) {
// Complete this function
int temp = *a;
*a = *a + *b;
*b = abs(temp - *b);
}
int main() {
int a, b;
int *pa = &a, *pb = &b;
scanf("%d %d", &a, &b);
update(pa, pb);
printf("%d\n%d", a, b);
return 0;
}
|
the_stack_data/72011695.c | /* { dg-do compile } */
/* { dg-options "-O2" } */
unsigned int functest (unsigned int x)
{
return __builtin_ctz (x);
}
/* { dg-final { scan-assembler "rbit\tw" } } */
/* { dg-final { scan-assembler "clz\tw" } } */
|
the_stack_data/78208.c | // All Copyrights reseved Jugal Shah 2020
// Source Code 6 : Data Encryption
// Project Name : Lib Managemant Sys
// AU1940316
#include <stdio.h>
#include <stdlib.h>
int main(){
FILE *fdr,*fdw;
char ch,fileName[20],output[20];
int op;
printf("Enter file name to be read:");
scanf("%s",fileName);
printf("Enter the name of output file:");
scanf("%s",output);
fdr=fopen(fileName,"r");
fdw=fopen(output,"w");
if(fdr==NULL){
printf("\nFile does not exist...!\n");
exit(0);
}
ch=fgetc(fdr);
while(ch!=EOF){
op=(int)ch;
op=op+5;
fprintf(fdw,"%c",op);
ch=fgetc(fdr);
}
fclose(fdw);
fclose(fdr);
printf("Encrypted file %s is created..\n",output);
return 0;
}
|
the_stack_data/62638235.c | #include <stdio.h>
int main()
{
int a, b, auxiliar, i, n;
a = 0;
b = 1;
i = 1;
printf("Digite um número: ");
scanf("%d" , &n);
printf("Série de Fibonacci:\n");
printf("%d\n" , b);
while(i < n)
{
auxiliar = a + b;
a = b;
b = auxiliar;
printf("%d\n", auxiliar);
i++;
}
return 0;
} |
the_stack_data/154828154.c | /**
*@file use_enum.c
*@brief 使用enum枚举类型
*@author Zhaohui Mei<[email protected]>
*@date 2019-10-21
*@return 0
*/
#include <stdio.h>
enum season {spring, summer, autumn=3, winter};
enum DAY {MON=1, TUE, WED, THU=7, FRI, SAT, SUN};
int main()
{
printf("spring: %d\n", spring);
printf("summer: %d\n", summer);
printf("autumn: %d\n", autumn);
printf("winter: %d\n", winter);
printf("DAY枚举常量%d %d %d %d %d %d %d\n", MON, TUE, WED, THU, FRI, SAT, SUN );
}
|
the_stack_data/79180.c | /*! \file messqsrv.c
\descr Message queue example simulates an airport control
A flight request, arrival or departure is read
from message queue (with arrivals priority) and
runway is given to the flight for a random time
*/
#include<sys/ipc.h>
#include<sys/msg.h>
#include<stdlib.h>
#include<stdio.h>
#include<unistd.h>
#include<string.h>
#include<errno.h>
#define RAND(i) (random()%(i))
#define NELS(i) (sizeof(i)/sizeof(*i))
#define APPPATH "/etc/passwd"
#define LANDING 10L
#define TAKINGOFF 20L
struct Request {
long type;
int no;
char name[30];
char city[30];
char model[20];
};
void printrequest(struct Request *r) {
printf("Airline: %s, No: %d, Model: %s\n",
r->name,r->no,r->model);
if (r->type==LANDING)
printf("Coming from %s",r->city);
else
printf("Departing to %s",r->city);
printf(" is given the runway\n\n");
}
int fetchrequest(int key,struct Request *r) {
int tmp;
/* -TAKINGOFF picks the smallest type <= TAKINGOFF
giving priority to LANDING requests since
LANDING < TAKINGOFF
replace it by 0 to any request, FIFO
replace it by LANDING for only landing requests
*/
tmp=msgrcv(key,r,sizeof(struct Request),-TAKINGOFF,0);
if (tmp<0) {
return 0;
}
return 1;
}
int main() {
struct Request req;
long queueid,key;
queueid=ftok(APPPATH,0);
printf("opening/creating %x\n",queueid);
if ((key=msgget(queueid,0664|IPC_CREAT))<0) {
perror("opening/creating queue");
exit(1);
}
while (1) {
if (fetchrequest(key,&req))
printrequest(&req);
sleep(RAND(10));
}
}
|
the_stack_data/121879.c | /* { dg-options "-std=gnu99 -O" } */
/* N1150 5.2 Conversions among decimal floating types and between
decimal floating types and generic floating types.
C99 6.3.1.5(3) New. */
extern void link_error ();
int
main ()
{
_Decimal32 d32;
_Decimal64 d64;
_Decimal128 d128;
/* Conversions to larger types. */
d32 = 123.4df;
d64 = d32;
if (d64 != 123.4dd)
link_error ();
d128 = d32;
if (d128 != 123.4dl)
link_error ();
d64 = 345.678dd;
d128 = d64;
if (d128 != 345.678dl)
link_error ();
/* Conversions to smaller types for which the value fits. */
d64 = 3456.789dd;
d32 = d64;
if (d32 != 3456.789df)
link_error ();
d128 = 123.4567dl;
d32 = d128;
if (d32 != 123.4567dl)
link_error ();
d128 = 1234567890.123456dl;
d64 = d128;
if (d64 != 1234567890.123456dd)
link_error ();
return 0;
}
|
the_stack_data/40402.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,b2,aux,q,r;
scanf("%d%d", &a, &b);
// scaneia a e b;
if(a<0) // se primeiro negativo
{
b2=b; // guarda b
if(b<0) b2=b*-1;
for(r=0; r<b2; r++)
{
aux=a-r;
if(aux%b==0) break;
}
q=aux/b;
}
else
{
q=a/b;
r=a%b;
}
printf("%d %d\n",q,r);
return 0;
}
|
the_stack_data/67344.c | #include <stdio.h>
typedef char* bool;
#define true "true"
#define false "false"
/*
Given two strings, find if one is a permutation of the other
First method will use two dictionaries to see if they match, and if they do they must be permutations of eachother.
-Colan
*/
int length (char *string){
int count = 0;
while(*string++)
count++;
return count;
}
bool checkDictionaries(int dicitonaryA[],int dicitonaryB[]){
for(int i = 0; i < 256; i++)
if(dicitonaryA[i] != dicitonaryB[i]){
return false;
}
return true;
}
bool permuationDicitonary(char *a, char*b){
int lengthA = length(a);
if(lengthA != length(b)){
return false;
}
int length = 256;
int dicitonaryA[length];
int dicitonaryB[length];
for(int i = 0;i<length;i++){
dicitonaryA[i] = 0;
dicitonaryB[i] = 0;
}
for(int i = 0;i<lengthA;i++){
dicitonaryA[a[i]]++;
dicitonaryB[b[i]]++;
}
return checkDictionaries(dicitonaryA,dicitonaryB);
}
int main(){
char *a = "The eyes";
char *b = "They see";
char *c = "dac";
/*
a will match b
a will not match c
b will not match c
*/
printf("Permutation dictionary method:\n");
printf("%s matches %s: %s\n",a,b,permuationDicitonary(a,b));
printf("%s matches %s: %s\n",a,c,permuationDicitonary(a,c));
printf("%s matches %s: %s\n",b,c,permuationDicitonary(b,c));
} |
the_stack_data/165765269.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 p8_c, _x_p8_c;
bool p5_evt, _x_p5_evt;
float _diverge_delta, _x__diverge_delta;
bool p19_l1, _x_p19_l1;
float delta, _x_delta;
bool p19_l0, _x_p19_l0;
int v1, _x_v1;
bool p6_evt, _x_p6_evt;
bool p19_l2, _x_p19_l2;
bool p7_evt, _x_p7_evt;
bool p8_evt, _x_p8_evt;
bool p19_l3, _x_p19_l3;
bool p9_evt, _x_p9_evt;
bool p10_evt, _x_p10_evt;
bool p11_evt, _x_p11_evt;
bool p12_evt, _x_p12_evt;
bool p9_l1, _x_p9_l1;
float p19_c, _x_p19_c;
bool p9_l0, _x_p9_l0;
bool p13_evt, _x_p13_evt;
bool p14_evt, _x_p14_evt;
bool p9_l2, _x_p9_l2;
bool p15_evt, _x_p15_evt;
bool p9_l3, _x_p9_l3;
bool p16_evt, _x_p16_evt;
bool p17_evt, _x_p17_evt;
bool p18_evt, _x_p18_evt;
bool p19_evt, _x_p19_evt;
bool p20_evt, _x_p20_evt;
float p9_c, _x_p9_c;
bool p21_evt, _x_p21_evt;
bool p20_l1, _x_p20_l1;
bool p22_evt, _x_p22_evt;
bool p20_l0, _x_p20_l0;
bool p23_evt, _x_p23_evt;
bool p20_l2, _x_p20_l2;
bool p24_evt, _x_p24_evt;
bool p20_l3, _x_p20_l3;
bool p25_evt, _x_p25_evt;
bool p26_evt, _x_p26_evt;
bool p27_evt, _x_p27_evt;
bool p10_l1, _x_p10_l1;
float p20_c, _x_p20_c;
bool p10_l0, _x_p10_l0;
bool v2, _x_v2;
bool p10_l2, _x_p10_l2;
bool p10_l3, _x_p10_l3;
bool p0_l1, _x_p0_l1;
float p10_c, _x_p10_c;
bool p0_l0, _x_p0_l0;
bool p0_l2, _x_p0_l2;
bool p21_l1, _x_p21_l1;
bool p21_l0, _x_p21_l0;
bool p0_l3, _x_p0_l3;
bool p21_l2, _x_p21_l2;
bool p21_l3, _x_p21_l3;
float p0_c, _x_p0_c;
bool p11_l1, _x_p11_l1;
float p21_c, _x_p21_c;
bool p11_l0, _x_p11_l0;
bool p11_l2, _x_p11_l2;
bool p11_l3, _x_p11_l3;
bool p1_l1, _x_p1_l1;
float p11_c, _x_p11_c;
bool p1_l0, _x_p1_l0;
bool p22_l1, _x_p22_l1;
bool p1_l2, _x_p1_l2;
bool p22_l0, _x_p22_l0;
bool p1_l3, _x_p1_l3;
bool p22_l2, _x_p22_l2;
bool p22_l3, _x_p22_l3;
float p1_c, _x_p1_c;
bool p12_l1, _x_p12_l1;
float p22_c, _x_p22_c;
bool p12_l0, _x_p12_l0;
bool p12_l2, _x_p12_l2;
bool p12_l3, _x_p12_l3;
bool p2_l1, _x_p2_l1;
float p12_c, _x_p12_c;
bool p2_l0, _x_p2_l0;
bool p23_l1, _x_p23_l1;
bool p2_l2, _x_p2_l2;
bool p23_l0, _x_p23_l0;
bool p2_l3, _x_p2_l3;
bool p23_l2, _x_p23_l2;
bool p23_l3, _x_p23_l3;
float p2_c, _x_p2_c;
bool p13_l1, _x_p13_l1;
float p23_c, _x_p23_c;
bool p13_l0, _x_p13_l0;
bool p13_l2, _x_p13_l2;
bool p13_l3, _x_p13_l3;
bool p3_l1, _x_p3_l1;
float p13_c, _x_p13_c;
bool p3_l0, _x_p3_l0;
bool p24_l1, _x_p24_l1;
bool p3_l2, _x_p3_l2;
bool p24_l0, _x_p24_l0;
bool p3_l3, _x_p3_l3;
bool p24_l2, _x_p24_l2;
bool p24_l3, _x_p24_l3;
float p3_c, _x_p3_c;
bool p14_l1, _x_p14_l1;
float p24_c, _x_p24_c;
bool p14_l0, _x_p14_l0;
bool p14_l2, _x_p14_l2;
bool p14_l3, _x_p14_l3;
bool p4_l1, _x_p4_l1;
float p14_c, _x_p14_c;
bool p4_l0, _x_p4_l0;
bool p25_l1, _x_p25_l1;
bool p4_l2, _x_p4_l2;
bool p25_l0, _x_p25_l0;
bool p4_l3, _x_p4_l3;
bool p25_l2, _x_p25_l2;
bool p25_l3, _x_p25_l3;
float p4_c, _x_p4_c;
bool p15_l1, _x_p15_l1;
float p25_c, _x_p25_c;
bool p15_l0, _x_p15_l0;
bool p15_l2, _x_p15_l2;
bool p15_l3, _x_p15_l3;
bool p5_l1, _x_p5_l1;
float p15_c, _x_p15_c;
bool p5_l0, _x_p5_l0;
bool p26_l1, _x_p26_l1;
bool p5_l2, _x_p5_l2;
bool p26_l0, _x_p26_l0;
bool p5_l3, _x_p5_l3;
bool p26_l2, _x_p26_l2;
bool p26_l3, _x_p26_l3;
float p5_c, _x_p5_c;
bool p16_l1, _x_p16_l1;
float p26_c, _x_p26_c;
bool p16_l0, _x_p16_l0;
bool p16_l2, _x_p16_l2;
bool p16_l3, _x_p16_l3;
bool p6_l1, _x_p6_l1;
float p16_c, _x_p16_c;
bool p6_l0, _x_p6_l0;
bool p27_l1, _x_p27_l1;
bool p6_l2, _x_p6_l2;
bool p27_l0, _x_p27_l0;
bool p6_l3, _x_p6_l3;
bool p27_l2, _x_p27_l2;
bool p27_l3, _x_p27_l3;
float p6_c, _x_p6_c;
bool p17_l1, _x_p17_l1;
float p27_c, _x_p27_c;
bool p17_l0, _x_p17_l0;
bool p17_l2, _x_p17_l2;
bool p17_l3, _x_p17_l3;
bool p7_l1, _x_p7_l1;
float p17_c, _x_p17_c;
bool p7_l0, _x_p7_l0;
bool p7_l2, _x_p7_l2;
bool _J6205, _x__J6205;
bool p7_l3, _x_p7_l3;
bool _J6199, _x__J6199;
bool _J6192, _x__J6192;
bool _J6186, _x__J6186;
bool _J6181, _x__J6181;
bool _J6175, _x__J6175;
bool _EL_U_6138, _x__EL_U_6138;
float p7_c, _x_p7_c;
bool _EL_U_6140, _x__EL_U_6140;
bool _EL_U_6142, _x__EL_U_6142;
bool p18_l1, _x_p18_l1;
bool _EL_U_6144, _x__EL_U_6144;
bool p18_l0, _x_p18_l0;
bool _EL_U_6146, _x__EL_U_6146;
bool p18_l2, _x_p18_l2;
bool _EL_U_6148, _x__EL_U_6148;
bool p18_l3, _x_p18_l3;
bool p8_l1, _x_p8_l1;
float p18_c, _x_p18_c;
bool p8_l0, _x_p8_l0;
bool p8_l2, _x_p8_l2;
bool p8_l3, _x_p8_l3;
bool p1_evt, _x_p1_evt;
bool p0_evt, _x_p0_evt;
bool p2_evt, _x_p2_evt;
bool p3_evt, _x_p3_evt;
bool p4_evt, _x_p4_evt;
int __steps_to_fair = __VERIFIER_nondet_int();
p8_c = __VERIFIER_nondet_float();
p5_evt = __VERIFIER_nondet_bool();
_diverge_delta = __VERIFIER_nondet_float();
p19_l1 = __VERIFIER_nondet_bool();
delta = __VERIFIER_nondet_float();
p19_l0 = __VERIFIER_nondet_bool();
v1 = __VERIFIER_nondet_int();
p6_evt = __VERIFIER_nondet_bool();
p19_l2 = __VERIFIER_nondet_bool();
p7_evt = __VERIFIER_nondet_bool();
p8_evt = __VERIFIER_nondet_bool();
p19_l3 = __VERIFIER_nondet_bool();
p9_evt = __VERIFIER_nondet_bool();
p10_evt = __VERIFIER_nondet_bool();
p11_evt = __VERIFIER_nondet_bool();
p12_evt = __VERIFIER_nondet_bool();
p9_l1 = __VERIFIER_nondet_bool();
p19_c = __VERIFIER_nondet_float();
p9_l0 = __VERIFIER_nondet_bool();
p13_evt = __VERIFIER_nondet_bool();
p14_evt = __VERIFIER_nondet_bool();
p9_l2 = __VERIFIER_nondet_bool();
p15_evt = __VERIFIER_nondet_bool();
p9_l3 = __VERIFIER_nondet_bool();
p16_evt = __VERIFIER_nondet_bool();
p17_evt = __VERIFIER_nondet_bool();
p18_evt = __VERIFIER_nondet_bool();
p19_evt = __VERIFIER_nondet_bool();
p20_evt = __VERIFIER_nondet_bool();
p9_c = __VERIFIER_nondet_float();
p21_evt = __VERIFIER_nondet_bool();
p20_l1 = __VERIFIER_nondet_bool();
p22_evt = __VERIFIER_nondet_bool();
p20_l0 = __VERIFIER_nondet_bool();
p23_evt = __VERIFIER_nondet_bool();
p20_l2 = __VERIFIER_nondet_bool();
p24_evt = __VERIFIER_nondet_bool();
p20_l3 = __VERIFIER_nondet_bool();
p25_evt = __VERIFIER_nondet_bool();
p26_evt = __VERIFIER_nondet_bool();
p27_evt = __VERIFIER_nondet_bool();
p10_l1 = __VERIFIER_nondet_bool();
p20_c = __VERIFIER_nondet_float();
p10_l0 = __VERIFIER_nondet_bool();
v2 = __VERIFIER_nondet_bool();
p10_l2 = __VERIFIER_nondet_bool();
p10_l3 = __VERIFIER_nondet_bool();
p0_l1 = __VERIFIER_nondet_bool();
p10_c = __VERIFIER_nondet_float();
p0_l0 = __VERIFIER_nondet_bool();
p0_l2 = __VERIFIER_nondet_bool();
p21_l1 = __VERIFIER_nondet_bool();
p21_l0 = __VERIFIER_nondet_bool();
p0_l3 = __VERIFIER_nondet_bool();
p21_l2 = __VERIFIER_nondet_bool();
p21_l3 = __VERIFIER_nondet_bool();
p0_c = __VERIFIER_nondet_float();
p11_l1 = __VERIFIER_nondet_bool();
p21_c = __VERIFIER_nondet_float();
p11_l0 = __VERIFIER_nondet_bool();
p11_l2 = __VERIFIER_nondet_bool();
p11_l3 = __VERIFIER_nondet_bool();
p1_l1 = __VERIFIER_nondet_bool();
p11_c = __VERIFIER_nondet_float();
p1_l0 = __VERIFIER_nondet_bool();
p22_l1 = __VERIFIER_nondet_bool();
p1_l2 = __VERIFIER_nondet_bool();
p22_l0 = __VERIFIER_nondet_bool();
p1_l3 = __VERIFIER_nondet_bool();
p22_l2 = __VERIFIER_nondet_bool();
p22_l3 = __VERIFIER_nondet_bool();
p1_c = __VERIFIER_nondet_float();
p12_l1 = __VERIFIER_nondet_bool();
p22_c = __VERIFIER_nondet_float();
p12_l0 = __VERIFIER_nondet_bool();
p12_l2 = __VERIFIER_nondet_bool();
p12_l3 = __VERIFIER_nondet_bool();
p2_l1 = __VERIFIER_nondet_bool();
p12_c = __VERIFIER_nondet_float();
p2_l0 = __VERIFIER_nondet_bool();
p23_l1 = __VERIFIER_nondet_bool();
p2_l2 = __VERIFIER_nondet_bool();
p23_l0 = __VERIFIER_nondet_bool();
p2_l3 = __VERIFIER_nondet_bool();
p23_l2 = __VERIFIER_nondet_bool();
p23_l3 = __VERIFIER_nondet_bool();
p2_c = __VERIFIER_nondet_float();
p13_l1 = __VERIFIER_nondet_bool();
p23_c = __VERIFIER_nondet_float();
p13_l0 = __VERIFIER_nondet_bool();
p13_l2 = __VERIFIER_nondet_bool();
p13_l3 = __VERIFIER_nondet_bool();
p3_l1 = __VERIFIER_nondet_bool();
p13_c = __VERIFIER_nondet_float();
p3_l0 = __VERIFIER_nondet_bool();
p24_l1 = __VERIFIER_nondet_bool();
p3_l2 = __VERIFIER_nondet_bool();
p24_l0 = __VERIFIER_nondet_bool();
p3_l3 = __VERIFIER_nondet_bool();
p24_l2 = __VERIFIER_nondet_bool();
p24_l3 = __VERIFIER_nondet_bool();
p3_c = __VERIFIER_nondet_float();
p14_l1 = __VERIFIER_nondet_bool();
p24_c = __VERIFIER_nondet_float();
p14_l0 = __VERIFIER_nondet_bool();
p14_l2 = __VERIFIER_nondet_bool();
p14_l3 = __VERIFIER_nondet_bool();
p4_l1 = __VERIFIER_nondet_bool();
p14_c = __VERIFIER_nondet_float();
p4_l0 = __VERIFIER_nondet_bool();
p25_l1 = __VERIFIER_nondet_bool();
p4_l2 = __VERIFIER_nondet_bool();
p25_l0 = __VERIFIER_nondet_bool();
p4_l3 = __VERIFIER_nondet_bool();
p25_l2 = __VERIFIER_nondet_bool();
p25_l3 = __VERIFIER_nondet_bool();
p4_c = __VERIFIER_nondet_float();
p15_l1 = __VERIFIER_nondet_bool();
p25_c = __VERIFIER_nondet_float();
p15_l0 = __VERIFIER_nondet_bool();
p15_l2 = __VERIFIER_nondet_bool();
p15_l3 = __VERIFIER_nondet_bool();
p5_l1 = __VERIFIER_nondet_bool();
p15_c = __VERIFIER_nondet_float();
p5_l0 = __VERIFIER_nondet_bool();
p26_l1 = __VERIFIER_nondet_bool();
p5_l2 = __VERIFIER_nondet_bool();
p26_l0 = __VERIFIER_nondet_bool();
p5_l3 = __VERIFIER_nondet_bool();
p26_l2 = __VERIFIER_nondet_bool();
p26_l3 = __VERIFIER_nondet_bool();
p5_c = __VERIFIER_nondet_float();
p16_l1 = __VERIFIER_nondet_bool();
p26_c = __VERIFIER_nondet_float();
p16_l0 = __VERIFIER_nondet_bool();
p16_l2 = __VERIFIER_nondet_bool();
p16_l3 = __VERIFIER_nondet_bool();
p6_l1 = __VERIFIER_nondet_bool();
p16_c = __VERIFIER_nondet_float();
p6_l0 = __VERIFIER_nondet_bool();
p27_l1 = __VERIFIER_nondet_bool();
p6_l2 = __VERIFIER_nondet_bool();
p27_l0 = __VERIFIER_nondet_bool();
p6_l3 = __VERIFIER_nondet_bool();
p27_l2 = __VERIFIER_nondet_bool();
p27_l3 = __VERIFIER_nondet_bool();
p6_c = __VERIFIER_nondet_float();
p17_l1 = __VERIFIER_nondet_bool();
p27_c = __VERIFIER_nondet_float();
p17_l0 = __VERIFIER_nondet_bool();
p17_l2 = __VERIFIER_nondet_bool();
p17_l3 = __VERIFIER_nondet_bool();
p7_l1 = __VERIFIER_nondet_bool();
p17_c = __VERIFIER_nondet_float();
p7_l0 = __VERIFIER_nondet_bool();
p7_l2 = __VERIFIER_nondet_bool();
_J6205 = __VERIFIER_nondet_bool();
p7_l3 = __VERIFIER_nondet_bool();
_J6199 = __VERIFIER_nondet_bool();
_J6192 = __VERIFIER_nondet_bool();
_J6186 = __VERIFIER_nondet_bool();
_J6181 = __VERIFIER_nondet_bool();
_J6175 = __VERIFIER_nondet_bool();
_EL_U_6138 = __VERIFIER_nondet_bool();
p7_c = __VERIFIER_nondet_float();
_EL_U_6140 = __VERIFIER_nondet_bool();
_EL_U_6142 = __VERIFIER_nondet_bool();
p18_l1 = __VERIFIER_nondet_bool();
_EL_U_6144 = __VERIFIER_nondet_bool();
p18_l0 = __VERIFIER_nondet_bool();
_EL_U_6146 = __VERIFIER_nondet_bool();
p18_l2 = __VERIFIER_nondet_bool();
_EL_U_6148 = __VERIFIER_nondet_bool();
p18_l3 = __VERIFIER_nondet_bool();
p8_l1 = __VERIFIER_nondet_bool();
p18_c = __VERIFIER_nondet_float();
p8_l0 = __VERIFIER_nondet_bool();
p8_l2 = __VERIFIER_nondet_bool();
p8_l3 = __VERIFIER_nondet_bool();
p1_evt = __VERIFIER_nondet_bool();
p0_evt = __VERIFIER_nondet_bool();
p2_evt = __VERIFIER_nondet_bool();
p3_evt = __VERIFIER_nondet_bool();
p4_evt = __VERIFIER_nondet_bool();
bool __ok = (((((((( !p27_l3) && (( !p27_l2) && (( !p27_l0) && ( !p27_l1)))) && (p27_c == 0.0)) && ((p27_l3 && (( !p27_l2) && (( !p27_l0) && ( !p27_l1)))) || ((( !p27_l3) && (p27_l2 && (p27_l0 && p27_l1))) || ((( !p27_l3) && (p27_l2 && (p27_l1 && ( !p27_l0)))) || ((( !p27_l3) && (p27_l2 && (p27_l0 && ( !p27_l1)))) || ((( !p27_l3) && (p27_l2 && (( !p27_l0) && ( !p27_l1)))) || ((( !p27_l3) && (( !p27_l2) && (p27_l0 && p27_l1))) || ((( !p27_l3) && (( !p27_l2) && (p27_l1 && ( !p27_l0)))) || ((( !p27_l3) && (( !p27_l2) && (( !p27_l0) && ( !p27_l1)))) || (( !p27_l3) && (( !p27_l2) && (p27_l0 && ( !p27_l1))))))))))))) && ((p27_c <= 16.0) || ( !(((( !p27_l3) && (( !p27_l2) && (p27_l0 && ( !p27_l1)))) || (( !p27_l3) && (p27_l2 && (( !p27_l0) && ( !p27_l1))))) || ((( !p27_l3) && (p27_l2 && (p27_l0 && p27_l1))) || (p27_l3 && (( !p27_l2) && (( !p27_l0) && ( !p27_l1))))))))) && (((((( !p26_l3) && (( !p26_l2) && (( !p26_l0) && ( !p26_l1)))) && (p26_c == 0.0)) && ((p26_l3 && (( !p26_l2) && (( !p26_l0) && ( !p26_l1)))) || ((( !p26_l3) && (p26_l2 && (p26_l0 && p26_l1))) || ((( !p26_l3) && (p26_l2 && (p26_l1 && ( !p26_l0)))) || ((( !p26_l3) && (p26_l2 && (p26_l0 && ( !p26_l1)))) || ((( !p26_l3) && (p26_l2 && (( !p26_l0) && ( !p26_l1)))) || ((( !p26_l3) && (( !p26_l2) && (p26_l0 && p26_l1))) || ((( !p26_l3) && (( !p26_l2) && (p26_l1 && ( !p26_l0)))) || ((( !p26_l3) && (( !p26_l2) && (( !p26_l0) && ( !p26_l1)))) || (( !p26_l3) && (( !p26_l2) && (p26_l0 && ( !p26_l1))))))))))))) && ((p26_c <= 16.0) || ( !(((( !p26_l3) && (( !p26_l2) && (p26_l0 && ( !p26_l1)))) || (( !p26_l3) && (p26_l2 && (( !p26_l0) && ( !p26_l1))))) || ((( !p26_l3) && (p26_l2 && (p26_l0 && p26_l1))) || (p26_l3 && (( !p26_l2) && (( !p26_l0) && ( !p26_l1))))))))) && (((((( !p25_l3) && (( !p25_l2) && (( !p25_l0) && ( !p25_l1)))) && (p25_c == 0.0)) && ((p25_l3 && (( !p25_l2) && (( !p25_l0) && ( !p25_l1)))) || ((( !p25_l3) && (p25_l2 && (p25_l0 && p25_l1))) || ((( !p25_l3) && (p25_l2 && (p25_l1 && ( !p25_l0)))) || ((( !p25_l3) && (p25_l2 && (p25_l0 && ( !p25_l1)))) || ((( !p25_l3) && (p25_l2 && (( !p25_l0) && ( !p25_l1)))) || ((( !p25_l3) && (( !p25_l2) && (p25_l0 && p25_l1))) || ((( !p25_l3) && (( !p25_l2) && (p25_l1 && ( !p25_l0)))) || ((( !p25_l3) && (( !p25_l2) && (( !p25_l0) && ( !p25_l1)))) || (( !p25_l3) && (( !p25_l2) && (p25_l0 && ( !p25_l1))))))))))))) && ((p25_c <= 16.0) || ( !(((( !p25_l3) && (( !p25_l2) && (p25_l0 && ( !p25_l1)))) || (( !p25_l3) && (p25_l2 && (( !p25_l0) && ( !p25_l1))))) || ((( !p25_l3) && (p25_l2 && (p25_l0 && p25_l1))) || (p25_l3 && (( !p25_l2) && (( !p25_l0) && ( !p25_l1))))))))) && (((((( !p24_l3) && (( !p24_l2) && (( !p24_l0) && ( !p24_l1)))) && (p24_c == 0.0)) && ((p24_l3 && (( !p24_l2) && (( !p24_l0) && ( !p24_l1)))) || ((( !p24_l3) && (p24_l2 && (p24_l0 && p24_l1))) || ((( !p24_l3) && (p24_l2 && (p24_l1 && ( !p24_l0)))) || ((( !p24_l3) && (p24_l2 && (p24_l0 && ( !p24_l1)))) || ((( !p24_l3) && (p24_l2 && (( !p24_l0) && ( !p24_l1)))) || ((( !p24_l3) && (( !p24_l2) && (p24_l0 && p24_l1))) || ((( !p24_l3) && (( !p24_l2) && (p24_l1 && ( !p24_l0)))) || ((( !p24_l3) && (( !p24_l2) && (( !p24_l0) && ( !p24_l1)))) || (( !p24_l3) && (( !p24_l2) && (p24_l0 && ( !p24_l1))))))))))))) && ((p24_c <= 16.0) || ( !(((( !p24_l3) && (( !p24_l2) && (p24_l0 && ( !p24_l1)))) || (( !p24_l3) && (p24_l2 && (( !p24_l0) && ( !p24_l1))))) || ((( !p24_l3) && (p24_l2 && (p24_l0 && p24_l1))) || (p24_l3 && (( !p24_l2) && (( !p24_l0) && ( !p24_l1))))))))) && (((((( !p23_l3) && (( !p23_l2) && (( !p23_l0) && ( !p23_l1)))) && (p23_c == 0.0)) && ((p23_l3 && (( !p23_l2) && (( !p23_l0) && ( !p23_l1)))) || ((( !p23_l3) && (p23_l2 && (p23_l0 && p23_l1))) || ((( !p23_l3) && (p23_l2 && (p23_l1 && ( !p23_l0)))) || ((( !p23_l3) && (p23_l2 && (p23_l0 && ( !p23_l1)))) || ((( !p23_l3) && (p23_l2 && (( !p23_l0) && ( !p23_l1)))) || ((( !p23_l3) && (( !p23_l2) && (p23_l0 && p23_l1))) || ((( !p23_l3) && (( !p23_l2) && (p23_l1 && ( !p23_l0)))) || ((( !p23_l3) && (( !p23_l2) && (( !p23_l0) && ( !p23_l1)))) || (( !p23_l3) && (( !p23_l2) && (p23_l0 && ( !p23_l1))))))))))))) && ((p23_c <= 16.0) || ( !(((( !p23_l3) && (( !p23_l2) && (p23_l0 && ( !p23_l1)))) || (( !p23_l3) && (p23_l2 && (( !p23_l0) && ( !p23_l1))))) || ((( !p23_l3) && (p23_l2 && (p23_l0 && p23_l1))) || (p23_l3 && (( !p23_l2) && (( !p23_l0) && ( !p23_l1))))))))) && (((((( !p22_l3) && (( !p22_l2) && (( !p22_l0) && ( !p22_l1)))) && (p22_c == 0.0)) && ((p22_l3 && (( !p22_l2) && (( !p22_l0) && ( !p22_l1)))) || ((( !p22_l3) && (p22_l2 && (p22_l0 && p22_l1))) || ((( !p22_l3) && (p22_l2 && (p22_l1 && ( !p22_l0)))) || ((( !p22_l3) && (p22_l2 && (p22_l0 && ( !p22_l1)))) || ((( !p22_l3) && (p22_l2 && (( !p22_l0) && ( !p22_l1)))) || ((( !p22_l3) && (( !p22_l2) && (p22_l0 && p22_l1))) || ((( !p22_l3) && (( !p22_l2) && (p22_l1 && ( !p22_l0)))) || ((( !p22_l3) && (( !p22_l2) && (( !p22_l0) && ( !p22_l1)))) || (( !p22_l3) && (( !p22_l2) && (p22_l0 && ( !p22_l1))))))))))))) && ((p22_c <= 16.0) || ( !(((( !p22_l3) && (( !p22_l2) && (p22_l0 && ( !p22_l1)))) || (( !p22_l3) && (p22_l2 && (( !p22_l0) && ( !p22_l1))))) || ((( !p22_l3) && (p22_l2 && (p22_l0 && p22_l1))) || (p22_l3 && (( !p22_l2) && (( !p22_l0) && ( !p22_l1))))))))) && (((((( !p21_l3) && (( !p21_l2) && (( !p21_l0) && ( !p21_l1)))) && (p21_c == 0.0)) && ((p21_l3 && (( !p21_l2) && (( !p21_l0) && ( !p21_l1)))) || ((( !p21_l3) && (p21_l2 && (p21_l0 && p21_l1))) || ((( !p21_l3) && (p21_l2 && (p21_l1 && ( !p21_l0)))) || ((( !p21_l3) && (p21_l2 && (p21_l0 && ( !p21_l1)))) || ((( !p21_l3) && (p21_l2 && (( !p21_l0) && ( !p21_l1)))) || ((( !p21_l3) && (( !p21_l2) && (p21_l0 && p21_l1))) || ((( !p21_l3) && (( !p21_l2) && (p21_l1 && ( !p21_l0)))) || ((( !p21_l3) && (( !p21_l2) && (( !p21_l0) && ( !p21_l1)))) || (( !p21_l3) && (( !p21_l2) && (p21_l0 && ( !p21_l1))))))))))))) && ((p21_c <= 16.0) || ( !(((( !p21_l3) && (( !p21_l2) && (p21_l0 && ( !p21_l1)))) || (( !p21_l3) && (p21_l2 && (( !p21_l0) && ( !p21_l1))))) || ((( !p21_l3) && (p21_l2 && (p21_l0 && p21_l1))) || (p21_l3 && (( !p21_l2) && (( !p21_l0) && ( !p21_l1))))))))) && (((((( !p20_l3) && (( !p20_l2) && (( !p20_l0) && ( !p20_l1)))) && (p20_c == 0.0)) && ((p20_l3 && (( !p20_l2) && (( !p20_l0) && ( !p20_l1)))) || ((( !p20_l3) && (p20_l2 && (p20_l0 && p20_l1))) || ((( !p20_l3) && (p20_l2 && (p20_l1 && ( !p20_l0)))) || ((( !p20_l3) && (p20_l2 && (p20_l0 && ( !p20_l1)))) || ((( !p20_l3) && (p20_l2 && (( !p20_l0) && ( !p20_l1)))) || ((( !p20_l3) && (( !p20_l2) && (p20_l0 && p20_l1))) || ((( !p20_l3) && (( !p20_l2) && (p20_l1 && ( !p20_l0)))) || ((( !p20_l3) && (( !p20_l2) && (( !p20_l0) && ( !p20_l1)))) || (( !p20_l3) && (( !p20_l2) && (p20_l0 && ( !p20_l1))))))))))))) && ((p20_c <= 16.0) || ( !(((( !p20_l3) && (( !p20_l2) && (p20_l0 && ( !p20_l1)))) || (( !p20_l3) && (p20_l2 && (( !p20_l0) && ( !p20_l1))))) || ((( !p20_l3) && (p20_l2 && (p20_l0 && p20_l1))) || (p20_l3 && (( !p20_l2) && (( !p20_l0) && ( !p20_l1))))))))) && (((((( !p19_l3) && (( !p19_l2) && (( !p19_l0) && ( !p19_l1)))) && (p19_c == 0.0)) && ((p19_l3 && (( !p19_l2) && (( !p19_l0) && ( !p19_l1)))) || ((( !p19_l3) && (p19_l2 && (p19_l0 && p19_l1))) || ((( !p19_l3) && (p19_l2 && (p19_l1 && ( !p19_l0)))) || ((( !p19_l3) && (p19_l2 && (p19_l0 && ( !p19_l1)))) || ((( !p19_l3) && (p19_l2 && (( !p19_l0) && ( !p19_l1)))) || ((( !p19_l3) && (( !p19_l2) && (p19_l0 && p19_l1))) || ((( !p19_l3) && (( !p19_l2) && (p19_l1 && ( !p19_l0)))) || ((( !p19_l3) && (( !p19_l2) && (( !p19_l0) && ( !p19_l1)))) || (( !p19_l3) && (( !p19_l2) && (p19_l0 && ( !p19_l1))))))))))))) && ((p19_c <= 16.0) || ( !(((( !p19_l3) && (( !p19_l2) && (p19_l0 && ( !p19_l1)))) || (( !p19_l3) && (p19_l2 && (( !p19_l0) && ( !p19_l1))))) || ((( !p19_l3) && (p19_l2 && (p19_l0 && p19_l1))) || (p19_l3 && (( !p19_l2) && (( !p19_l0) && ( !p19_l1))))))))) && (((((( !p18_l3) && (( !p18_l2) && (( !p18_l0) && ( !p18_l1)))) && (p18_c == 0.0)) && ((p18_l3 && (( !p18_l2) && (( !p18_l0) && ( !p18_l1)))) || ((( !p18_l3) && (p18_l2 && (p18_l0 && p18_l1))) || ((( !p18_l3) && (p18_l2 && (p18_l1 && ( !p18_l0)))) || ((( !p18_l3) && (p18_l2 && (p18_l0 && ( !p18_l1)))) || ((( !p18_l3) && (p18_l2 && (( !p18_l0) && ( !p18_l1)))) || ((( !p18_l3) && (( !p18_l2) && (p18_l0 && p18_l1))) || ((( !p18_l3) && (( !p18_l2) && (p18_l1 && ( !p18_l0)))) || ((( !p18_l3) && (( !p18_l2) && (( !p18_l0) && ( !p18_l1)))) || (( !p18_l3) && (( !p18_l2) && (p18_l0 && ( !p18_l1))))))))))))) && ((p18_c <= 16.0) || ( !(((( !p18_l3) && (( !p18_l2) && (p18_l0 && ( !p18_l1)))) || (( !p18_l3) && (p18_l2 && (( !p18_l0) && ( !p18_l1))))) || ((( !p18_l3) && (p18_l2 && (p18_l0 && p18_l1))) || (p18_l3 && (( !p18_l2) && (( !p18_l0) && ( !p18_l1))))))))) && (((((( !p17_l3) && (( !p17_l2) && (( !p17_l0) && ( !p17_l1)))) && (p17_c == 0.0)) && ((p17_l3 && (( !p17_l2) && (( !p17_l0) && ( !p17_l1)))) || ((( !p17_l3) && (p17_l2 && (p17_l0 && p17_l1))) || ((( !p17_l3) && (p17_l2 && (p17_l1 && ( !p17_l0)))) || ((( !p17_l3) && (p17_l2 && (p17_l0 && ( !p17_l1)))) || ((( !p17_l3) && (p17_l2 && (( !p17_l0) && ( !p17_l1)))) || ((( !p17_l3) && (( !p17_l2) && (p17_l0 && p17_l1))) || ((( !p17_l3) && (( !p17_l2) && (p17_l1 && ( !p17_l0)))) || ((( !p17_l3) && (( !p17_l2) && (( !p17_l0) && ( !p17_l1)))) || (( !p17_l3) && (( !p17_l2) && (p17_l0 && ( !p17_l1))))))))))))) && ((p17_c <= 16.0) || ( !(((( !p17_l3) && (( !p17_l2) && (p17_l0 && ( !p17_l1)))) || (( !p17_l3) && (p17_l2 && (( !p17_l0) && ( !p17_l1))))) || ((( !p17_l3) && (p17_l2 && (p17_l0 && p17_l1))) || (p17_l3 && (( !p17_l2) && (( !p17_l0) && ( !p17_l1))))))))) && (((((( !p16_l3) && (( !p16_l2) && (( !p16_l0) && ( !p16_l1)))) && (p16_c == 0.0)) && ((p16_l3 && (( !p16_l2) && (( !p16_l0) && ( !p16_l1)))) || ((( !p16_l3) && (p16_l2 && (p16_l0 && p16_l1))) || ((( !p16_l3) && (p16_l2 && (p16_l1 && ( !p16_l0)))) || ((( !p16_l3) && (p16_l2 && (p16_l0 && ( !p16_l1)))) || ((( !p16_l3) && (p16_l2 && (( !p16_l0) && ( !p16_l1)))) || ((( !p16_l3) && (( !p16_l2) && (p16_l0 && p16_l1))) || ((( !p16_l3) && (( !p16_l2) && (p16_l1 && ( !p16_l0)))) || ((( !p16_l3) && (( !p16_l2) && (( !p16_l0) && ( !p16_l1)))) || (( !p16_l3) && (( !p16_l2) && (p16_l0 && ( !p16_l1))))))))))))) && ((p16_c <= 16.0) || ( !(((( !p16_l3) && (( !p16_l2) && (p16_l0 && ( !p16_l1)))) || (( !p16_l3) && (p16_l2 && (( !p16_l0) && ( !p16_l1))))) || ((( !p16_l3) && (p16_l2 && (p16_l0 && p16_l1))) || (p16_l3 && (( !p16_l2) && (( !p16_l0) && ( !p16_l1))))))))) && (((((( !p15_l3) && (( !p15_l2) && (( !p15_l0) && ( !p15_l1)))) && (p15_c == 0.0)) && ((p15_l3 && (( !p15_l2) && (( !p15_l0) && ( !p15_l1)))) || ((( !p15_l3) && (p15_l2 && (p15_l0 && p15_l1))) || ((( !p15_l3) && (p15_l2 && (p15_l1 && ( !p15_l0)))) || ((( !p15_l3) && (p15_l2 && (p15_l0 && ( !p15_l1)))) || ((( !p15_l3) && (p15_l2 && (( !p15_l0) && ( !p15_l1)))) || ((( !p15_l3) && (( !p15_l2) && (p15_l0 && p15_l1))) || ((( !p15_l3) && (( !p15_l2) && (p15_l1 && ( !p15_l0)))) || ((( !p15_l3) && (( !p15_l2) && (( !p15_l0) && ( !p15_l1)))) || (( !p15_l3) && (( !p15_l2) && (p15_l0 && ( !p15_l1))))))))))))) && ((p15_c <= 16.0) || ( !(((( !p15_l3) && (( !p15_l2) && (p15_l0 && ( !p15_l1)))) || (( !p15_l3) && (p15_l2 && (( !p15_l0) && ( !p15_l1))))) || ((( !p15_l3) && (p15_l2 && (p15_l0 && p15_l1))) || (p15_l3 && (( !p15_l2) && (( !p15_l0) && ( !p15_l1))))))))) && (((((( !p14_l3) && (( !p14_l2) && (( !p14_l0) && ( !p14_l1)))) && (p14_c == 0.0)) && ((p14_l3 && (( !p14_l2) && (( !p14_l0) && ( !p14_l1)))) || ((( !p14_l3) && (p14_l2 && (p14_l0 && p14_l1))) || ((( !p14_l3) && (p14_l2 && (p14_l1 && ( !p14_l0)))) || ((( !p14_l3) && (p14_l2 && (p14_l0 && ( !p14_l1)))) || ((( !p14_l3) && (p14_l2 && (( !p14_l0) && ( !p14_l1)))) || ((( !p14_l3) && (( !p14_l2) && (p14_l0 && p14_l1))) || ((( !p14_l3) && (( !p14_l2) && (p14_l1 && ( !p14_l0)))) || ((( !p14_l3) && (( !p14_l2) && (( !p14_l0) && ( !p14_l1)))) || (( !p14_l3) && (( !p14_l2) && (p14_l0 && ( !p14_l1))))))))))))) && ((p14_c <= 16.0) || ( !(((( !p14_l3) && (( !p14_l2) && (p14_l0 && ( !p14_l1)))) || (( !p14_l3) && (p14_l2 && (( !p14_l0) && ( !p14_l1))))) || ((( !p14_l3) && (p14_l2 && (p14_l0 && p14_l1))) || (p14_l3 && (( !p14_l2) && (( !p14_l0) && ( !p14_l1))))))))) && (((((( !p13_l3) && (( !p13_l2) && (( !p13_l0) && ( !p13_l1)))) && (p13_c == 0.0)) && ((p13_l3 && (( !p13_l2) && (( !p13_l0) && ( !p13_l1)))) || ((( !p13_l3) && (p13_l2 && (p13_l0 && p13_l1))) || ((( !p13_l3) && (p13_l2 && (p13_l1 && ( !p13_l0)))) || ((( !p13_l3) && (p13_l2 && (p13_l0 && ( !p13_l1)))) || ((( !p13_l3) && (p13_l2 && (( !p13_l0) && ( !p13_l1)))) || ((( !p13_l3) && (( !p13_l2) && (p13_l0 && p13_l1))) || ((( !p13_l3) && (( !p13_l2) && (p13_l1 && ( !p13_l0)))) || ((( !p13_l3) && (( !p13_l2) && (( !p13_l0) && ( !p13_l1)))) || (( !p13_l3) && (( !p13_l2) && (p13_l0 && ( !p13_l1))))))))))))) && ((p13_c <= 16.0) || ( !(((( !p13_l3) && (( !p13_l2) && (p13_l0 && ( !p13_l1)))) || (( !p13_l3) && (p13_l2 && (( !p13_l0) && ( !p13_l1))))) || ((( !p13_l3) && (p13_l2 && (p13_l0 && p13_l1))) || (p13_l3 && (( !p13_l2) && (( !p13_l0) && ( !p13_l1))))))))) && (((((( !p12_l3) && (( !p12_l2) && (( !p12_l0) && ( !p12_l1)))) && (p12_c == 0.0)) && ((p12_l3 && (( !p12_l2) && (( !p12_l0) && ( !p12_l1)))) || ((( !p12_l3) && (p12_l2 && (p12_l0 && p12_l1))) || ((( !p12_l3) && (p12_l2 && (p12_l1 && ( !p12_l0)))) || ((( !p12_l3) && (p12_l2 && (p12_l0 && ( !p12_l1)))) || ((( !p12_l3) && (p12_l2 && (( !p12_l0) && ( !p12_l1)))) || ((( !p12_l3) && (( !p12_l2) && (p12_l0 && p12_l1))) || ((( !p12_l3) && (( !p12_l2) && (p12_l1 && ( !p12_l0)))) || ((( !p12_l3) && (( !p12_l2) && (( !p12_l0) && ( !p12_l1)))) || (( !p12_l3) && (( !p12_l2) && (p12_l0 && ( !p12_l1))))))))))))) && ((p12_c <= 16.0) || ( !(((( !p12_l3) && (( !p12_l2) && (p12_l0 && ( !p12_l1)))) || (( !p12_l3) && (p12_l2 && (( !p12_l0) && ( !p12_l1))))) || ((( !p12_l3) && (p12_l2 && (p12_l0 && p12_l1))) || (p12_l3 && (( !p12_l2) && (( !p12_l0) && ( !p12_l1))))))))) && (((((( !p11_l3) && (( !p11_l2) && (( !p11_l0) && ( !p11_l1)))) && (p11_c == 0.0)) && ((p11_l3 && (( !p11_l2) && (( !p11_l0) && ( !p11_l1)))) || ((( !p11_l3) && (p11_l2 && (p11_l0 && p11_l1))) || ((( !p11_l3) && (p11_l2 && (p11_l1 && ( !p11_l0)))) || ((( !p11_l3) && (p11_l2 && (p11_l0 && ( !p11_l1)))) || ((( !p11_l3) && (p11_l2 && (( !p11_l0) && ( !p11_l1)))) || ((( !p11_l3) && (( !p11_l2) && (p11_l0 && p11_l1))) || ((( !p11_l3) && (( !p11_l2) && (p11_l1 && ( !p11_l0)))) || ((( !p11_l3) && (( !p11_l2) && (( !p11_l0) && ( !p11_l1)))) || (( !p11_l3) && (( !p11_l2) && (p11_l0 && ( !p11_l1))))))))))))) && ((p11_c <= 16.0) || ( !(((( !p11_l3) && (( !p11_l2) && (p11_l0 && ( !p11_l1)))) || (( !p11_l3) && (p11_l2 && (( !p11_l0) && ( !p11_l1))))) || ((( !p11_l3) && (p11_l2 && (p11_l0 && p11_l1))) || (p11_l3 && (( !p11_l2) && (( !p11_l0) && ( !p11_l1))))))))) && (((((( !p10_l3) && (( !p10_l2) && (( !p10_l0) && ( !p10_l1)))) && (p10_c == 0.0)) && ((p10_l3 && (( !p10_l2) && (( !p10_l0) && ( !p10_l1)))) || ((( !p10_l3) && (p10_l2 && (p10_l0 && p10_l1))) || ((( !p10_l3) && (p10_l2 && (p10_l1 && ( !p10_l0)))) || ((( !p10_l3) && (p10_l2 && (p10_l0 && ( !p10_l1)))) || ((( !p10_l3) && (p10_l2 && (( !p10_l0) && ( !p10_l1)))) || ((( !p10_l3) && (( !p10_l2) && (p10_l0 && p10_l1))) || ((( !p10_l3) && (( !p10_l2) && (p10_l1 && ( !p10_l0)))) || ((( !p10_l3) && (( !p10_l2) && (( !p10_l0) && ( !p10_l1)))) || (( !p10_l3) && (( !p10_l2) && (p10_l0 && ( !p10_l1))))))))))))) && ((p10_c <= 16.0) || ( !(((( !p10_l3) && (( !p10_l2) && (p10_l0 && ( !p10_l1)))) || (( !p10_l3) && (p10_l2 && (( !p10_l0) && ( !p10_l1))))) || ((( !p10_l3) && (p10_l2 && (p10_l0 && p10_l1))) || (p10_l3 && (( !p10_l2) && (( !p10_l0) && ( !p10_l1))))))))) && (((((( !p9_l3) && (( !p9_l2) && (( !p9_l0) && ( !p9_l1)))) && (p9_c == 0.0)) && ((p9_l3 && (( !p9_l2) && (( !p9_l0) && ( !p9_l1)))) || ((( !p9_l3) && (p9_l2 && (p9_l0 && p9_l1))) || ((( !p9_l3) && (p9_l2 && (p9_l1 && ( !p9_l0)))) || ((( !p9_l3) && (p9_l2 && (p9_l0 && ( !p9_l1)))) || ((( !p9_l3) && (p9_l2 && (( !p9_l0) && ( !p9_l1)))) || ((( !p9_l3) && (( !p9_l2) && (p9_l0 && p9_l1))) || ((( !p9_l3) && (( !p9_l2) && (p9_l1 && ( !p9_l0)))) || ((( !p9_l3) && (( !p9_l2) && (( !p9_l0) && ( !p9_l1)))) || (( !p9_l3) && (( !p9_l2) && (p9_l0 && ( !p9_l1))))))))))))) && ((p9_c <= 16.0) || ( !(((( !p9_l3) && (( !p9_l2) && (p9_l0 && ( !p9_l1)))) || (( !p9_l3) && (p9_l2 && (( !p9_l0) && ( !p9_l1))))) || ((( !p9_l3) && (p9_l2 && (p9_l0 && p9_l1))) || (p9_l3 && (( !p9_l2) && (( !p9_l0) && ( !p9_l1))))))))) && (((((( !p8_l3) && (( !p8_l2) && (( !p8_l0) && ( !p8_l1)))) && (p8_c == 0.0)) && ((p8_l3 && (( !p8_l2) && (( !p8_l0) && ( !p8_l1)))) || ((( !p8_l3) && (p8_l2 && (p8_l0 && p8_l1))) || ((( !p8_l3) && (p8_l2 && (p8_l1 && ( !p8_l0)))) || ((( !p8_l3) && (p8_l2 && (p8_l0 && ( !p8_l1)))) || ((( !p8_l3) && (p8_l2 && (( !p8_l0) && ( !p8_l1)))) || ((( !p8_l3) && (( !p8_l2) && (p8_l0 && p8_l1))) || ((( !p8_l3) && (( !p8_l2) && (p8_l1 && ( !p8_l0)))) || ((( !p8_l3) && (( !p8_l2) && (( !p8_l0) && ( !p8_l1)))) || (( !p8_l3) && (( !p8_l2) && (p8_l0 && ( !p8_l1))))))))))))) && ((p8_c <= 16.0) || ( !(((( !p8_l3) && (( !p8_l2) && (p8_l0 && ( !p8_l1)))) || (( !p8_l3) && (p8_l2 && (( !p8_l0) && ( !p8_l1))))) || ((( !p8_l3) && (p8_l2 && (p8_l0 && p8_l1))) || (p8_l3 && (( !p8_l2) && (( !p8_l0) && ( !p8_l1))))))))) && (((((( !p7_l3) && (( !p7_l2) && (( !p7_l0) && ( !p7_l1)))) && (p7_c == 0.0)) && ((p7_l3 && (( !p7_l2) && (( !p7_l0) && ( !p7_l1)))) || ((( !p7_l3) && (p7_l2 && (p7_l0 && p7_l1))) || ((( !p7_l3) && (p7_l2 && (p7_l1 && ( !p7_l0)))) || ((( !p7_l3) && (p7_l2 && (p7_l0 && ( !p7_l1)))) || ((( !p7_l3) && (p7_l2 && (( !p7_l0) && ( !p7_l1)))) || ((( !p7_l3) && (( !p7_l2) && (p7_l0 && p7_l1))) || ((( !p7_l3) && (( !p7_l2) && (p7_l1 && ( !p7_l0)))) || ((( !p7_l3) && (( !p7_l2) && (( !p7_l0) && ( !p7_l1)))) || (( !p7_l3) && (( !p7_l2) && (p7_l0 && ( !p7_l1))))))))))))) && ((p7_c <= 16.0) || ( !(((( !p7_l3) && (( !p7_l2) && (p7_l0 && ( !p7_l1)))) || (( !p7_l3) && (p7_l2 && (( !p7_l0) && ( !p7_l1))))) || ((( !p7_l3) && (p7_l2 && (p7_l0 && p7_l1))) || (p7_l3 && (( !p7_l2) && (( !p7_l0) && ( !p7_l1))))))))) && (((((( !p6_l3) && (( !p6_l2) && (( !p6_l0) && ( !p6_l1)))) && (p6_c == 0.0)) && ((p6_l3 && (( !p6_l2) && (( !p6_l0) && ( !p6_l1)))) || ((( !p6_l3) && (p6_l2 && (p6_l0 && p6_l1))) || ((( !p6_l3) && (p6_l2 && (p6_l1 && ( !p6_l0)))) || ((( !p6_l3) && (p6_l2 && (p6_l0 && ( !p6_l1)))) || ((( !p6_l3) && (p6_l2 && (( !p6_l0) && ( !p6_l1)))) || ((( !p6_l3) && (( !p6_l2) && (p6_l0 && p6_l1))) || ((( !p6_l3) && (( !p6_l2) && (p6_l1 && ( !p6_l0)))) || ((( !p6_l3) && (( !p6_l2) && (( !p6_l0) && ( !p6_l1)))) || (( !p6_l3) && (( !p6_l2) && (p6_l0 && ( !p6_l1))))))))))))) && ((p6_c <= 16.0) || ( !(((( !p6_l3) && (( !p6_l2) && (p6_l0 && ( !p6_l1)))) || (( !p6_l3) && (p6_l2 && (( !p6_l0) && ( !p6_l1))))) || ((( !p6_l3) && (p6_l2 && (p6_l0 && p6_l1))) || (p6_l3 && (( !p6_l2) && (( !p6_l0) && ( !p6_l1))))))))) && (((((( !p5_l3) && (( !p5_l2) && (( !p5_l0) && ( !p5_l1)))) && (p5_c == 0.0)) && ((p5_l3 && (( !p5_l2) && (( !p5_l0) && ( !p5_l1)))) || ((( !p5_l3) && (p5_l2 && (p5_l0 && p5_l1))) || ((( !p5_l3) && (p5_l2 && (p5_l1 && ( !p5_l0)))) || ((( !p5_l3) && (p5_l2 && (p5_l0 && ( !p5_l1)))) || ((( !p5_l3) && (p5_l2 && (( !p5_l0) && ( !p5_l1)))) || ((( !p5_l3) && (( !p5_l2) && (p5_l0 && p5_l1))) || ((( !p5_l3) && (( !p5_l2) && (p5_l1 && ( !p5_l0)))) || ((( !p5_l3) && (( !p5_l2) && (( !p5_l0) && ( !p5_l1)))) || (( !p5_l3) && (( !p5_l2) && (p5_l0 && ( !p5_l1))))))))))))) && ((p5_c <= 16.0) || ( !(((( !p5_l3) && (( !p5_l2) && (p5_l0 && ( !p5_l1)))) || (( !p5_l3) && (p5_l2 && (( !p5_l0) && ( !p5_l1))))) || ((( !p5_l3) && (p5_l2 && (p5_l0 && p5_l1))) || (p5_l3 && (( !p5_l2) && (( !p5_l0) && ( !p5_l1))))))))) && (((((( !p4_l3) && (( !p4_l2) && (( !p4_l0) && ( !p4_l1)))) && (p4_c == 0.0)) && ((p4_l3 && (( !p4_l2) && (( !p4_l0) && ( !p4_l1)))) || ((( !p4_l3) && (p4_l2 && (p4_l0 && p4_l1))) || ((( !p4_l3) && (p4_l2 && (p4_l1 && ( !p4_l0)))) || ((( !p4_l3) && (p4_l2 && (p4_l0 && ( !p4_l1)))) || ((( !p4_l3) && (p4_l2 && (( !p4_l0) && ( !p4_l1)))) || ((( !p4_l3) && (( !p4_l2) && (p4_l0 && p4_l1))) || ((( !p4_l3) && (( !p4_l2) && (p4_l1 && ( !p4_l0)))) || ((( !p4_l3) && (( !p4_l2) && (( !p4_l0) && ( !p4_l1)))) || (( !p4_l3) && (( !p4_l2) && (p4_l0 && ( !p4_l1))))))))))))) && ((p4_c <= 16.0) || ( !(((( !p4_l3) && (( !p4_l2) && (p4_l0 && ( !p4_l1)))) || (( !p4_l3) && (p4_l2 && (( !p4_l0) && ( !p4_l1))))) || ((( !p4_l3) && (p4_l2 && (p4_l0 && p4_l1))) || (p4_l3 && (( !p4_l2) && (( !p4_l0) && ( !p4_l1))))))))) && (((((( !p3_l3) && (( !p3_l2) && (( !p3_l0) && ( !p3_l1)))) && (p3_c == 0.0)) && ((p3_l3 && (( !p3_l2) && (( !p3_l0) && ( !p3_l1)))) || ((( !p3_l3) && (p3_l2 && (p3_l0 && p3_l1))) || ((( !p3_l3) && (p3_l2 && (p3_l1 && ( !p3_l0)))) || ((( !p3_l3) && (p3_l2 && (p3_l0 && ( !p3_l1)))) || ((( !p3_l3) && (p3_l2 && (( !p3_l0) && ( !p3_l1)))) || ((( !p3_l3) && (( !p3_l2) && (p3_l0 && p3_l1))) || ((( !p3_l3) && (( !p3_l2) && (p3_l1 && ( !p3_l0)))) || ((( !p3_l3) && (( !p3_l2) && (( !p3_l0) && ( !p3_l1)))) || (( !p3_l3) && (( !p3_l2) && (p3_l0 && ( !p3_l1))))))))))))) && ((p3_c <= 16.0) || ( !(((( !p3_l3) && (( !p3_l2) && (p3_l0 && ( !p3_l1)))) || (( !p3_l3) && (p3_l2 && (( !p3_l0) && ( !p3_l1))))) || ((( !p3_l3) && (p3_l2 && (p3_l0 && p3_l1))) || (p3_l3 && (( !p3_l2) && (( !p3_l0) && ( !p3_l1))))))))) && (((((( !p2_l3) && (( !p2_l2) && (( !p2_l0) && ( !p2_l1)))) && (p2_c == 0.0)) && ((p2_l3 && (( !p2_l2) && (( !p2_l0) && ( !p2_l1)))) || ((( !p2_l3) && (p2_l2 && (p2_l0 && p2_l1))) || ((( !p2_l3) && (p2_l2 && (p2_l1 && ( !p2_l0)))) || ((( !p2_l3) && (p2_l2 && (p2_l0 && ( !p2_l1)))) || ((( !p2_l3) && (p2_l2 && (( !p2_l0) && ( !p2_l1)))) || ((( !p2_l3) && (( !p2_l2) && (p2_l0 && p2_l1))) || ((( !p2_l3) && (( !p2_l2) && (p2_l1 && ( !p2_l0)))) || ((( !p2_l3) && (( !p2_l2) && (( !p2_l0) && ( !p2_l1)))) || (( !p2_l3) && (( !p2_l2) && (p2_l0 && ( !p2_l1))))))))))))) && ((p2_c <= 16.0) || ( !(((( !p2_l3) && (( !p2_l2) && (p2_l0 && ( !p2_l1)))) || (( !p2_l3) && (p2_l2 && (( !p2_l0) && ( !p2_l1))))) || ((( !p2_l3) && (p2_l2 && (p2_l0 && p2_l1))) || (p2_l3 && (( !p2_l2) && (( !p2_l0) && ( !p2_l1))))))))) && (((((( !p1_l3) && (( !p1_l2) && (( !p1_l0) && ( !p1_l1)))) && (p1_c == 0.0)) && ((p1_l3 && (( !p1_l2) && (( !p1_l0) && ( !p1_l1)))) || ((( !p1_l3) && (p1_l2 && (p1_l0 && p1_l1))) || ((( !p1_l3) && (p1_l2 && (p1_l1 && ( !p1_l0)))) || ((( !p1_l3) && (p1_l2 && (p1_l0 && ( !p1_l1)))) || ((( !p1_l3) && (p1_l2 && (( !p1_l0) && ( !p1_l1)))) || ((( !p1_l3) && (( !p1_l2) && (p1_l0 && p1_l1))) || ((( !p1_l3) && (( !p1_l2) && (p1_l1 && ( !p1_l0)))) || ((( !p1_l3) && (( !p1_l2) && (( !p1_l0) && ( !p1_l1)))) || (( !p1_l3) && (( !p1_l2) && (p1_l0 && ( !p1_l1))))))))))))) && ((p1_c <= 16.0) || ( !(((( !p1_l3) && (( !p1_l2) && (p1_l0 && ( !p1_l1)))) || (( !p1_l3) && (p1_l2 && (( !p1_l0) && ( !p1_l1))))) || ((( !p1_l3) && (p1_l2 && (p1_l0 && p1_l1))) || (p1_l3 && (( !p1_l2) && (( !p1_l0) && ( !p1_l1))))))))) && (((((( !p0_l3) && (( !p0_l2) && (( !p0_l0) && ( !p0_l1)))) && (p0_c == 0.0)) && ((p0_l3 && (( !p0_l2) && (( !p0_l0) && ( !p0_l1)))) || ((( !p0_l3) && (p0_l2 && (p0_l0 && p0_l1))) || ((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || ((( !p0_l3) && (p0_l2 && (p0_l0 && ( !p0_l1)))) || ((( !p0_l3) && (p0_l2 && (( !p0_l0) && ( !p0_l1)))) || ((( !p0_l3) && (( !p0_l2) && (p0_l0 && p0_l1))) || ((( !p0_l3) && (( !p0_l2) && (p0_l1 && ( !p0_l0)))) || ((( !p0_l3) && (( !p0_l2) && (( !p0_l0) && ( !p0_l1)))) || (( !p0_l3) && (( !p0_l2) && (p0_l0 && ( !p0_l1))))))))))))) && ((p0_c <= 16.0) || ( !(((( !p0_l3) && (( !p0_l2) && (p0_l0 && ( !p0_l1)))) || (( !p0_l3) && (p0_l2 && (( !p0_l0) && ( !p0_l1))))) || ((( !p0_l3) && (p0_l2 && (p0_l0 && p0_l1))) || (p0_l3 && (( !p0_l2) && (( !p0_l0) && ( !p0_l1))))))))) && ((0.0 <= delta) && ((v1 == 28) || ((v1 == 27) || ((v1 == 26) || ((v1 == 25) || ((v1 == 24) || ((v1 == 23) || ((v1 == 22) || ((v1 == 21) || ((v1 == 20) || ((v1 == 19) || ((v1 == 18) || ((v1 == 17) || ((v1 == 16) || ((v1 == 15) || ((v1 == 14) || ((v1 == 13) || ((v1 == 12) || ((v1 == 11) || ((v1 == 10) || ((v1 == 9) || ((v1 == 8) || ((v1 == 7) || ((v1 == 6) || ((v1 == 5) || ((v1 == 4) || ((v1 == 3) || ((v1 == 2) || ((v1 == 0) || (v1 == 1)))))))))))))))))))))))))))))))))))))))))))))))))))))))))) && (delta == _diverge_delta)) && ((((((( !((( !(_EL_U_6148 || ( !((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || _EL_U_6146)))) || (_EL_U_6144 || ( !((v1 == 1) || _EL_U_6142)))) || (_EL_U_6140 || ( !((1.0 <= _diverge_delta) || _EL_U_6138))))) && ( !_J6175)) && ( !_J6181)) && ( !_J6186)) && ( !_J6192)) && ( !_J6199)) && ( !_J6205)));
while (__steps_to_fair >= 0 && __ok) {
if ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) {
__steps_to_fair = __VERIFIER_nondet_int();
} else {
__steps_to_fair--;
}
_x_p8_c = __VERIFIER_nondet_float();
_x_p5_evt = __VERIFIER_nondet_bool();
_x__diverge_delta = __VERIFIER_nondet_float();
_x_p19_l1 = __VERIFIER_nondet_bool();
_x_delta = __VERIFIER_nondet_float();
_x_p19_l0 = __VERIFIER_nondet_bool();
_x_v1 = __VERIFIER_nondet_int();
_x_p6_evt = __VERIFIER_nondet_bool();
_x_p19_l2 = __VERIFIER_nondet_bool();
_x_p7_evt = __VERIFIER_nondet_bool();
_x_p8_evt = __VERIFIER_nondet_bool();
_x_p19_l3 = __VERIFIER_nondet_bool();
_x_p9_evt = __VERIFIER_nondet_bool();
_x_p10_evt = __VERIFIER_nondet_bool();
_x_p11_evt = __VERIFIER_nondet_bool();
_x_p12_evt = __VERIFIER_nondet_bool();
_x_p9_l1 = __VERIFIER_nondet_bool();
_x_p19_c = __VERIFIER_nondet_float();
_x_p9_l0 = __VERIFIER_nondet_bool();
_x_p13_evt = __VERIFIER_nondet_bool();
_x_p14_evt = __VERIFIER_nondet_bool();
_x_p9_l2 = __VERIFIER_nondet_bool();
_x_p15_evt = __VERIFIER_nondet_bool();
_x_p9_l3 = __VERIFIER_nondet_bool();
_x_p16_evt = __VERIFIER_nondet_bool();
_x_p17_evt = __VERIFIER_nondet_bool();
_x_p18_evt = __VERIFIER_nondet_bool();
_x_p19_evt = __VERIFIER_nondet_bool();
_x_p20_evt = __VERIFIER_nondet_bool();
_x_p9_c = __VERIFIER_nondet_float();
_x_p21_evt = __VERIFIER_nondet_bool();
_x_p20_l1 = __VERIFIER_nondet_bool();
_x_p22_evt = __VERIFIER_nondet_bool();
_x_p20_l0 = __VERIFIER_nondet_bool();
_x_p23_evt = __VERIFIER_nondet_bool();
_x_p20_l2 = __VERIFIER_nondet_bool();
_x_p24_evt = __VERIFIER_nondet_bool();
_x_p20_l3 = __VERIFIER_nondet_bool();
_x_p25_evt = __VERIFIER_nondet_bool();
_x_p26_evt = __VERIFIER_nondet_bool();
_x_p27_evt = __VERIFIER_nondet_bool();
_x_p10_l1 = __VERIFIER_nondet_bool();
_x_p20_c = __VERIFIER_nondet_float();
_x_p10_l0 = __VERIFIER_nondet_bool();
_x_v2 = __VERIFIER_nondet_bool();
_x_p10_l2 = __VERIFIER_nondet_bool();
_x_p10_l3 = __VERIFIER_nondet_bool();
_x_p0_l1 = __VERIFIER_nondet_bool();
_x_p10_c = __VERIFIER_nondet_float();
_x_p0_l0 = __VERIFIER_nondet_bool();
_x_p0_l2 = __VERIFIER_nondet_bool();
_x_p21_l1 = __VERIFIER_nondet_bool();
_x_p21_l0 = __VERIFIER_nondet_bool();
_x_p0_l3 = __VERIFIER_nondet_bool();
_x_p21_l2 = __VERIFIER_nondet_bool();
_x_p21_l3 = __VERIFIER_nondet_bool();
_x_p0_c = __VERIFIER_nondet_float();
_x_p11_l1 = __VERIFIER_nondet_bool();
_x_p21_c = __VERIFIER_nondet_float();
_x_p11_l0 = __VERIFIER_nondet_bool();
_x_p11_l2 = __VERIFIER_nondet_bool();
_x_p11_l3 = __VERIFIER_nondet_bool();
_x_p1_l1 = __VERIFIER_nondet_bool();
_x_p11_c = __VERIFIER_nondet_float();
_x_p1_l0 = __VERIFIER_nondet_bool();
_x_p22_l1 = __VERIFIER_nondet_bool();
_x_p1_l2 = __VERIFIER_nondet_bool();
_x_p22_l0 = __VERIFIER_nondet_bool();
_x_p1_l3 = __VERIFIER_nondet_bool();
_x_p22_l2 = __VERIFIER_nondet_bool();
_x_p22_l3 = __VERIFIER_nondet_bool();
_x_p1_c = __VERIFIER_nondet_float();
_x_p12_l1 = __VERIFIER_nondet_bool();
_x_p22_c = __VERIFIER_nondet_float();
_x_p12_l0 = __VERIFIER_nondet_bool();
_x_p12_l2 = __VERIFIER_nondet_bool();
_x_p12_l3 = __VERIFIER_nondet_bool();
_x_p2_l1 = __VERIFIER_nondet_bool();
_x_p12_c = __VERIFIER_nondet_float();
_x_p2_l0 = __VERIFIER_nondet_bool();
_x_p23_l1 = __VERIFIER_nondet_bool();
_x_p2_l2 = __VERIFIER_nondet_bool();
_x_p23_l0 = __VERIFIER_nondet_bool();
_x_p2_l3 = __VERIFIER_nondet_bool();
_x_p23_l2 = __VERIFIER_nondet_bool();
_x_p23_l3 = __VERIFIER_nondet_bool();
_x_p2_c = __VERIFIER_nondet_float();
_x_p13_l1 = __VERIFIER_nondet_bool();
_x_p23_c = __VERIFIER_nondet_float();
_x_p13_l0 = __VERIFIER_nondet_bool();
_x_p13_l2 = __VERIFIER_nondet_bool();
_x_p13_l3 = __VERIFIER_nondet_bool();
_x_p3_l1 = __VERIFIER_nondet_bool();
_x_p13_c = __VERIFIER_nondet_float();
_x_p3_l0 = __VERIFIER_nondet_bool();
_x_p24_l1 = __VERIFIER_nondet_bool();
_x_p3_l2 = __VERIFIER_nondet_bool();
_x_p24_l0 = __VERIFIER_nondet_bool();
_x_p3_l3 = __VERIFIER_nondet_bool();
_x_p24_l2 = __VERIFIER_nondet_bool();
_x_p24_l3 = __VERIFIER_nondet_bool();
_x_p3_c = __VERIFIER_nondet_float();
_x_p14_l1 = __VERIFIER_nondet_bool();
_x_p24_c = __VERIFIER_nondet_float();
_x_p14_l0 = __VERIFIER_nondet_bool();
_x_p14_l2 = __VERIFIER_nondet_bool();
_x_p14_l3 = __VERIFIER_nondet_bool();
_x_p4_l1 = __VERIFIER_nondet_bool();
_x_p14_c = __VERIFIER_nondet_float();
_x_p4_l0 = __VERIFIER_nondet_bool();
_x_p25_l1 = __VERIFIER_nondet_bool();
_x_p4_l2 = __VERIFIER_nondet_bool();
_x_p25_l0 = __VERIFIER_nondet_bool();
_x_p4_l3 = __VERIFIER_nondet_bool();
_x_p25_l2 = __VERIFIER_nondet_bool();
_x_p25_l3 = __VERIFIER_nondet_bool();
_x_p4_c = __VERIFIER_nondet_float();
_x_p15_l1 = __VERIFIER_nondet_bool();
_x_p25_c = __VERIFIER_nondet_float();
_x_p15_l0 = __VERIFIER_nondet_bool();
_x_p15_l2 = __VERIFIER_nondet_bool();
_x_p15_l3 = __VERIFIER_nondet_bool();
_x_p5_l1 = __VERIFIER_nondet_bool();
_x_p15_c = __VERIFIER_nondet_float();
_x_p5_l0 = __VERIFIER_nondet_bool();
_x_p26_l1 = __VERIFIER_nondet_bool();
_x_p5_l2 = __VERIFIER_nondet_bool();
_x_p26_l0 = __VERIFIER_nondet_bool();
_x_p5_l3 = __VERIFIER_nondet_bool();
_x_p26_l2 = __VERIFIER_nondet_bool();
_x_p26_l3 = __VERIFIER_nondet_bool();
_x_p5_c = __VERIFIER_nondet_float();
_x_p16_l1 = __VERIFIER_nondet_bool();
_x_p26_c = __VERIFIER_nondet_float();
_x_p16_l0 = __VERIFIER_nondet_bool();
_x_p16_l2 = __VERIFIER_nondet_bool();
_x_p16_l3 = __VERIFIER_nondet_bool();
_x_p6_l1 = __VERIFIER_nondet_bool();
_x_p16_c = __VERIFIER_nondet_float();
_x_p6_l0 = __VERIFIER_nondet_bool();
_x_p27_l1 = __VERIFIER_nondet_bool();
_x_p6_l2 = __VERIFIER_nondet_bool();
_x_p27_l0 = __VERIFIER_nondet_bool();
_x_p6_l3 = __VERIFIER_nondet_bool();
_x_p27_l2 = __VERIFIER_nondet_bool();
_x_p27_l3 = __VERIFIER_nondet_bool();
_x_p6_c = __VERIFIER_nondet_float();
_x_p17_l1 = __VERIFIER_nondet_bool();
_x_p27_c = __VERIFIER_nondet_float();
_x_p17_l0 = __VERIFIER_nondet_bool();
_x_p17_l2 = __VERIFIER_nondet_bool();
_x_p17_l3 = __VERIFIER_nondet_bool();
_x_p7_l1 = __VERIFIER_nondet_bool();
_x_p17_c = __VERIFIER_nondet_float();
_x_p7_l0 = __VERIFIER_nondet_bool();
_x_p7_l2 = __VERIFIER_nondet_bool();
_x__J6205 = __VERIFIER_nondet_bool();
_x_p7_l3 = __VERIFIER_nondet_bool();
_x__J6199 = __VERIFIER_nondet_bool();
_x__J6192 = __VERIFIER_nondet_bool();
_x__J6186 = __VERIFIER_nondet_bool();
_x__J6181 = __VERIFIER_nondet_bool();
_x__J6175 = __VERIFIER_nondet_bool();
_x__EL_U_6138 = __VERIFIER_nondet_bool();
_x_p7_c = __VERIFIER_nondet_float();
_x__EL_U_6140 = __VERIFIER_nondet_bool();
_x__EL_U_6142 = __VERIFIER_nondet_bool();
_x_p18_l1 = __VERIFIER_nondet_bool();
_x__EL_U_6144 = __VERIFIER_nondet_bool();
_x_p18_l0 = __VERIFIER_nondet_bool();
_x__EL_U_6146 = __VERIFIER_nondet_bool();
_x_p18_l2 = __VERIFIER_nondet_bool();
_x__EL_U_6148 = __VERIFIER_nondet_bool();
_x_p18_l3 = __VERIFIER_nondet_bool();
_x_p8_l1 = __VERIFIER_nondet_bool();
_x_p18_c = __VERIFIER_nondet_float();
_x_p8_l0 = __VERIFIER_nondet_bool();
_x_p8_l2 = __VERIFIER_nondet_bool();
_x_p8_l3 = __VERIFIER_nondet_bool();
_x_p1_evt = __VERIFIER_nondet_bool();
_x_p0_evt = __VERIFIER_nondet_bool();
_x_p2_evt = __VERIFIER_nondet_bool();
_x_p3_evt = __VERIFIER_nondet_bool();
_x_p4_evt = __VERIFIER_nondet_bool();
__ok = ((((((((((((((((((((((((_x_p27_l3 && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) || ((( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l0 && _x_p27_l1))) || ((( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l1 && ( !_x_p27_l0)))) || ((( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l0 && ( !_x_p27_l1)))) || ((( !_x_p27_l3) && (_x_p27_l2 && (( !_x_p27_l0) && ( !_x_p27_l1)))) || ((( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && _x_p27_l1))) || ((( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l1 && ( !_x_p27_l0)))) || ((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) || (( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && ( !_x_p27_l1)))))))))))) && ((_x_p27_c <= 16.0) || ( !(((( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && ( !_x_p27_l1)))) || (( !_x_p27_l3) && (_x_p27_l2 && (( !_x_p27_l0) && ( !_x_p27_l1))))) || ((( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l0 && _x_p27_l1))) || (_x_p27_l3 && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1))))))))) && ((delta <= 0.0) || (((((p27_l0 == _x_p27_l0) && (p27_l1 == _x_p27_l1)) && (p27_l2 == _x_p27_l2)) && (p27_l3 == _x_p27_l3)) && ((delta + (p27_c + (-1.0 * _x_p27_c))) == 0.0)))) && (p27_evt || (((((p27_l0 == _x_p27_l0) && (p27_l1 == _x_p27_l1)) && (p27_l2 == _x_p27_l2)) && (p27_l3 == _x_p27_l3)) && ((delta + (p27_c + (-1.0 * _x_p27_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && ( !_x_p27_l1))))) && ((v2 == _x_v2) && (_x_p27_c == 0.0)))) || ( !((( !p27_l3) && (( !p27_l2) && (( !p27_l0) && ( !p27_l1)))) && ((delta == 0.0) && p27_evt))))) && ((((v2 == _x_v2) && (_x_p27_c == 0.0)) && ((( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l1 && ( !_x_p27_l0)))) && (_x_v1 == 28))) || ( !((( !p27_l3) && (( !p27_l2) && (p27_l0 && ( !p27_l1)))) && ((delta == 0.0) && p27_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) || (( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && _x_p27_l1)))) && (p27_c == _x_p27_c))) || ( !((( !p27_l3) && (( !p27_l2) && (p27_l1 && ( !p27_l0)))) && ((delta == 0.0) && p27_evt))))) && (( !(v1 == 28)) || ( !((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) && ((( !p27_l3) && (( !p27_l2) && (p27_l1 && ( !p27_l0)))) && ((delta == 0.0) && p27_evt)))))) && (((v1 == 28) && ( !(p27_c <= 16.0))) || ( !((( !_x_p27_l3) && (( !_x_p27_l2) && (_x_p27_l0 && _x_p27_l1))) && ((( !p27_l3) && (( !p27_l2) && (p27_l1 && ( !p27_l0)))) && ((delta == 0.0) && p27_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) || (( !_x_p27_l3) && (_x_p27_l2 && (( !_x_p27_l0) && ( !_x_p27_l1)))))) || ( !((( !p27_l3) && (( !p27_l2) && (p27_l0 && p27_l1))) && ((delta == 0.0) && p27_evt))))) && ((v2 && (p27_c == _x_p27_c)) || ( !(((delta == 0.0) && p27_evt) && ((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) && (( !p27_l3) && (( !p27_l2) && (p27_l0 && p27_l1)))))))) && ((( !v2) && (_x_p27_c == 0.0)) || ( !(((delta == 0.0) && p27_evt) && ((( !p27_l3) && (( !p27_l2) && (p27_l0 && p27_l1))) && (( !_x_p27_l3) && (_x_p27_l2 && (( !_x_p27_l0) && ( !_x_p27_l1))))))))) && (((_x_v2 && (( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l0 && ( !_x_p27_l1))))) && ((v1 == _x_v1) && (_x_p27_c == 0.0))) || ( !((( !p27_l3) && (p27_l2 && (( !p27_l0) && ( !p27_l1)))) && ((delta == 0.0) && p27_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p27_c == _x_p27_c) && ((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) || (( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l1 && ( !_x_p27_l0))))))) || ( !((( !p27_l3) && (p27_l2 && (p27_l0 && ( !p27_l1)))) && ((delta == 0.0) && p27_evt))))) && (( !(v1 == 28)) || ( !(((delta == 0.0) && p27_evt) && ((( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))) && (( !p27_l3) && (p27_l2 && (p27_l0 && ( !p27_l1))))))))) && ((v1 == 28) || ( !(((delta == 0.0) && p27_evt) && ((( !p27_l3) && (p27_l2 && (p27_l0 && ( !p27_l1)))) && (( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l1 && ( !_x_p27_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p27_l3) && (_x_p27_l2 && (_x_p27_l0 && _x_p27_l1))) && (_x_p27_c == 0.0))) || ( !((( !p27_l3) && (p27_l2 && (p27_l1 && ( !p27_l0)))) && ((delta == 0.0) && p27_evt))))) && ((((v1 == _x_v1) && (_x_p27_c == 0.0)) && (( !_x_v2) && (_x_p27_l3 && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1)))))) || ( !((( !p27_l3) && (p27_l2 && (p27_l0 && p27_l1))) && ((delta == 0.0) && p27_evt))))) && ((((_x_v1 == 0) && (( !_x_p27_l3) && (( !_x_p27_l2) && (( !_x_p27_l0) && ( !_x_p27_l1))))) && ((v2 == _x_v2) && (p27_c == _x_p27_c))) || ( !((p27_l3 && (( !p27_l2) && (( !p27_l0) && ( !p27_l1)))) && ((delta == 0.0) && p27_evt))))) && (((((((((((((((((((((_x_p26_l3 && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) || ((( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l0 && _x_p26_l1))) || ((( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l1 && ( !_x_p26_l0)))) || ((( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l0 && ( !_x_p26_l1)))) || ((( !_x_p26_l3) && (_x_p26_l2 && (( !_x_p26_l0) && ( !_x_p26_l1)))) || ((( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && _x_p26_l1))) || ((( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l1 && ( !_x_p26_l0)))) || ((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) || (( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && ( !_x_p26_l1)))))))))))) && ((_x_p26_c <= 16.0) || ( !(((( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && ( !_x_p26_l1)))) || (( !_x_p26_l3) && (_x_p26_l2 && (( !_x_p26_l0) && ( !_x_p26_l1))))) || ((( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l0 && _x_p26_l1))) || (_x_p26_l3 && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1))))))))) && ((delta <= 0.0) || (((((p26_l0 == _x_p26_l0) && (p26_l1 == _x_p26_l1)) && (p26_l2 == _x_p26_l2)) && (p26_l3 == _x_p26_l3)) && ((delta + (p26_c + (-1.0 * _x_p26_c))) == 0.0)))) && (p26_evt || (((((p26_l0 == _x_p26_l0) && (p26_l1 == _x_p26_l1)) && (p26_l2 == _x_p26_l2)) && (p26_l3 == _x_p26_l3)) && ((delta + (p26_c + (-1.0 * _x_p26_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && ( !_x_p26_l1))))) && ((v2 == _x_v2) && (_x_p26_c == 0.0)))) || ( !((( !p26_l3) && (( !p26_l2) && (( !p26_l0) && ( !p26_l1)))) && ((delta == 0.0) && p26_evt))))) && ((((v2 == _x_v2) && (_x_p26_c == 0.0)) && ((( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l1 && ( !_x_p26_l0)))) && (_x_v1 == 27))) || ( !((( !p26_l3) && (( !p26_l2) && (p26_l0 && ( !p26_l1)))) && ((delta == 0.0) && p26_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) || (( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && _x_p26_l1)))) && (p26_c == _x_p26_c))) || ( !((( !p26_l3) && (( !p26_l2) && (p26_l1 && ( !p26_l0)))) && ((delta == 0.0) && p26_evt))))) && (( !(v1 == 27)) || ( !((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) && ((( !p26_l3) && (( !p26_l2) && (p26_l1 && ( !p26_l0)))) && ((delta == 0.0) && p26_evt)))))) && (((v1 == 27) && ( !(p26_c <= 16.0))) || ( !((( !_x_p26_l3) && (( !_x_p26_l2) && (_x_p26_l0 && _x_p26_l1))) && ((( !p26_l3) && (( !p26_l2) && (p26_l1 && ( !p26_l0)))) && ((delta == 0.0) && p26_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) || (( !_x_p26_l3) && (_x_p26_l2 && (( !_x_p26_l0) && ( !_x_p26_l1)))))) || ( !((( !p26_l3) && (( !p26_l2) && (p26_l0 && p26_l1))) && ((delta == 0.0) && p26_evt))))) && ((v2 && (p26_c == _x_p26_c)) || ( !(((delta == 0.0) && p26_evt) && ((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) && (( !p26_l3) && (( !p26_l2) && (p26_l0 && p26_l1)))))))) && ((( !v2) && (_x_p26_c == 0.0)) || ( !(((delta == 0.0) && p26_evt) && ((( !p26_l3) && (( !p26_l2) && (p26_l0 && p26_l1))) && (( !_x_p26_l3) && (_x_p26_l2 && (( !_x_p26_l0) && ( !_x_p26_l1))))))))) && (((_x_v2 && (( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l0 && ( !_x_p26_l1))))) && ((v1 == _x_v1) && (_x_p26_c == 0.0))) || ( !((( !p26_l3) && (p26_l2 && (( !p26_l0) && ( !p26_l1)))) && ((delta == 0.0) && p26_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p26_c == _x_p26_c) && ((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) || (( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l1 && ( !_x_p26_l0))))))) || ( !((( !p26_l3) && (p26_l2 && (p26_l0 && ( !p26_l1)))) && ((delta == 0.0) && p26_evt))))) && (( !(v1 == 27)) || ( !(((delta == 0.0) && p26_evt) && ((( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))) && (( !p26_l3) && (p26_l2 && (p26_l0 && ( !p26_l1))))))))) && ((v1 == 27) || ( !(((delta == 0.0) && p26_evt) && ((( !p26_l3) && (p26_l2 && (p26_l0 && ( !p26_l1)))) && (( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l1 && ( !_x_p26_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p26_l3) && (_x_p26_l2 && (_x_p26_l0 && _x_p26_l1))) && (_x_p26_c == 0.0))) || ( !((( !p26_l3) && (p26_l2 && (p26_l1 && ( !p26_l0)))) && ((delta == 0.0) && p26_evt))))) && ((((v1 == _x_v1) && (_x_p26_c == 0.0)) && (( !_x_v2) && (_x_p26_l3 && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1)))))) || ( !((( !p26_l3) && (p26_l2 && (p26_l0 && p26_l1))) && ((delta == 0.0) && p26_evt))))) && ((((_x_v1 == 0) && (( !_x_p26_l3) && (( !_x_p26_l2) && (( !_x_p26_l0) && ( !_x_p26_l1))))) && ((v2 == _x_v2) && (p26_c == _x_p26_c))) || ( !((p26_l3 && (( !p26_l2) && (( !p26_l0) && ( !p26_l1)))) && ((delta == 0.0) && p26_evt))))) && (((((((((((((((((((((_x_p25_l3 && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) || ((( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l0 && _x_p25_l1))) || ((( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l1 && ( !_x_p25_l0)))) || ((( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l0 && ( !_x_p25_l1)))) || ((( !_x_p25_l3) && (_x_p25_l2 && (( !_x_p25_l0) && ( !_x_p25_l1)))) || ((( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && _x_p25_l1))) || ((( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l1 && ( !_x_p25_l0)))) || ((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) || (( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && ( !_x_p25_l1)))))))))))) && ((_x_p25_c <= 16.0) || ( !(((( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && ( !_x_p25_l1)))) || (( !_x_p25_l3) && (_x_p25_l2 && (( !_x_p25_l0) && ( !_x_p25_l1))))) || ((( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l0 && _x_p25_l1))) || (_x_p25_l3 && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1))))))))) && ((delta <= 0.0) || (((((p25_l0 == _x_p25_l0) && (p25_l1 == _x_p25_l1)) && (p25_l2 == _x_p25_l2)) && (p25_l3 == _x_p25_l3)) && ((delta + (p25_c + (-1.0 * _x_p25_c))) == 0.0)))) && (p25_evt || (((((p25_l0 == _x_p25_l0) && (p25_l1 == _x_p25_l1)) && (p25_l2 == _x_p25_l2)) && (p25_l3 == _x_p25_l3)) && ((delta + (p25_c + (-1.0 * _x_p25_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && ( !_x_p25_l1))))) && ((v2 == _x_v2) && (_x_p25_c == 0.0)))) || ( !((( !p25_l3) && (( !p25_l2) && (( !p25_l0) && ( !p25_l1)))) && ((delta == 0.0) && p25_evt))))) && ((((v2 == _x_v2) && (_x_p25_c == 0.0)) && ((( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l1 && ( !_x_p25_l0)))) && (_x_v1 == 26))) || ( !((( !p25_l3) && (( !p25_l2) && (p25_l0 && ( !p25_l1)))) && ((delta == 0.0) && p25_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) || (( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && _x_p25_l1)))) && (p25_c == _x_p25_c))) || ( !((( !p25_l3) && (( !p25_l2) && (p25_l1 && ( !p25_l0)))) && ((delta == 0.0) && p25_evt))))) && (( !(v1 == 26)) || ( !((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) && ((( !p25_l3) && (( !p25_l2) && (p25_l1 && ( !p25_l0)))) && ((delta == 0.0) && p25_evt)))))) && (((v1 == 26) && ( !(p25_c <= 16.0))) || ( !((( !_x_p25_l3) && (( !_x_p25_l2) && (_x_p25_l0 && _x_p25_l1))) && ((( !p25_l3) && (( !p25_l2) && (p25_l1 && ( !p25_l0)))) && ((delta == 0.0) && p25_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) || (( !_x_p25_l3) && (_x_p25_l2 && (( !_x_p25_l0) && ( !_x_p25_l1)))))) || ( !((( !p25_l3) && (( !p25_l2) && (p25_l0 && p25_l1))) && ((delta == 0.0) && p25_evt))))) && ((v2 && (p25_c == _x_p25_c)) || ( !(((delta == 0.0) && p25_evt) && ((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) && (( !p25_l3) && (( !p25_l2) && (p25_l0 && p25_l1)))))))) && ((( !v2) && (_x_p25_c == 0.0)) || ( !(((delta == 0.0) && p25_evt) && ((( !p25_l3) && (( !p25_l2) && (p25_l0 && p25_l1))) && (( !_x_p25_l3) && (_x_p25_l2 && (( !_x_p25_l0) && ( !_x_p25_l1))))))))) && (((_x_v2 && (( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l0 && ( !_x_p25_l1))))) && ((v1 == _x_v1) && (_x_p25_c == 0.0))) || ( !((( !p25_l3) && (p25_l2 && (( !p25_l0) && ( !p25_l1)))) && ((delta == 0.0) && p25_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p25_c == _x_p25_c) && ((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) || (( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l1 && ( !_x_p25_l0))))))) || ( !((( !p25_l3) && (p25_l2 && (p25_l0 && ( !p25_l1)))) && ((delta == 0.0) && p25_evt))))) && (( !(v1 == 26)) || ( !(((delta == 0.0) && p25_evt) && ((( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))) && (( !p25_l3) && (p25_l2 && (p25_l0 && ( !p25_l1))))))))) && ((v1 == 26) || ( !(((delta == 0.0) && p25_evt) && ((( !p25_l3) && (p25_l2 && (p25_l0 && ( !p25_l1)))) && (( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l1 && ( !_x_p25_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p25_l3) && (_x_p25_l2 && (_x_p25_l0 && _x_p25_l1))) && (_x_p25_c == 0.0))) || ( !((( !p25_l3) && (p25_l2 && (p25_l1 && ( !p25_l0)))) && ((delta == 0.0) && p25_evt))))) && ((((v1 == _x_v1) && (_x_p25_c == 0.0)) && (( !_x_v2) && (_x_p25_l3 && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1)))))) || ( !((( !p25_l3) && (p25_l2 && (p25_l0 && p25_l1))) && ((delta == 0.0) && p25_evt))))) && ((((_x_v1 == 0) && (( !_x_p25_l3) && (( !_x_p25_l2) && (( !_x_p25_l0) && ( !_x_p25_l1))))) && ((v2 == _x_v2) && (p25_c == _x_p25_c))) || ( !((p25_l3 && (( !p25_l2) && (( !p25_l0) && ( !p25_l1)))) && ((delta == 0.0) && p25_evt))))) && (((((((((((((((((((((_x_p24_l3 && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) || ((( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l0 && _x_p24_l1))) || ((( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l1 && ( !_x_p24_l0)))) || ((( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l0 && ( !_x_p24_l1)))) || ((( !_x_p24_l3) && (_x_p24_l2 && (( !_x_p24_l0) && ( !_x_p24_l1)))) || ((( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && _x_p24_l1))) || ((( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l1 && ( !_x_p24_l0)))) || ((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) || (( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && ( !_x_p24_l1)))))))))))) && ((_x_p24_c <= 16.0) || ( !(((( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && ( !_x_p24_l1)))) || (( !_x_p24_l3) && (_x_p24_l2 && (( !_x_p24_l0) && ( !_x_p24_l1))))) || ((( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l0 && _x_p24_l1))) || (_x_p24_l3 && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1))))))))) && ((delta <= 0.0) || (((((p24_l0 == _x_p24_l0) && (p24_l1 == _x_p24_l1)) && (p24_l2 == _x_p24_l2)) && (p24_l3 == _x_p24_l3)) && ((delta + (p24_c + (-1.0 * _x_p24_c))) == 0.0)))) && (p24_evt || (((((p24_l0 == _x_p24_l0) && (p24_l1 == _x_p24_l1)) && (p24_l2 == _x_p24_l2)) && (p24_l3 == _x_p24_l3)) && ((delta + (p24_c + (-1.0 * _x_p24_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && ( !_x_p24_l1))))) && ((v2 == _x_v2) && (_x_p24_c == 0.0)))) || ( !((( !p24_l3) && (( !p24_l2) && (( !p24_l0) && ( !p24_l1)))) && ((delta == 0.0) && p24_evt))))) && ((((v2 == _x_v2) && (_x_p24_c == 0.0)) && ((( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l1 && ( !_x_p24_l0)))) && (_x_v1 == 25))) || ( !((( !p24_l3) && (( !p24_l2) && (p24_l0 && ( !p24_l1)))) && ((delta == 0.0) && p24_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) || (( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && _x_p24_l1)))) && (p24_c == _x_p24_c))) || ( !((( !p24_l3) && (( !p24_l2) && (p24_l1 && ( !p24_l0)))) && ((delta == 0.0) && p24_evt))))) && (( !(v1 == 25)) || ( !((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) && ((( !p24_l3) && (( !p24_l2) && (p24_l1 && ( !p24_l0)))) && ((delta == 0.0) && p24_evt)))))) && (((v1 == 25) && ( !(p24_c <= 16.0))) || ( !((( !_x_p24_l3) && (( !_x_p24_l2) && (_x_p24_l0 && _x_p24_l1))) && ((( !p24_l3) && (( !p24_l2) && (p24_l1 && ( !p24_l0)))) && ((delta == 0.0) && p24_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) || (( !_x_p24_l3) && (_x_p24_l2 && (( !_x_p24_l0) && ( !_x_p24_l1)))))) || ( !((( !p24_l3) && (( !p24_l2) && (p24_l0 && p24_l1))) && ((delta == 0.0) && p24_evt))))) && ((v2 && (p24_c == _x_p24_c)) || ( !(((delta == 0.0) && p24_evt) && ((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) && (( !p24_l3) && (( !p24_l2) && (p24_l0 && p24_l1)))))))) && ((( !v2) && (_x_p24_c == 0.0)) || ( !(((delta == 0.0) && p24_evt) && ((( !p24_l3) && (( !p24_l2) && (p24_l0 && p24_l1))) && (( !_x_p24_l3) && (_x_p24_l2 && (( !_x_p24_l0) && ( !_x_p24_l1))))))))) && (((_x_v2 && (( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l0 && ( !_x_p24_l1))))) && ((v1 == _x_v1) && (_x_p24_c == 0.0))) || ( !((( !p24_l3) && (p24_l2 && (( !p24_l0) && ( !p24_l1)))) && ((delta == 0.0) && p24_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p24_c == _x_p24_c) && ((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) || (( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l1 && ( !_x_p24_l0))))))) || ( !((( !p24_l3) && (p24_l2 && (p24_l0 && ( !p24_l1)))) && ((delta == 0.0) && p24_evt))))) && (( !(v1 == 25)) || ( !(((delta == 0.0) && p24_evt) && ((( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))) && (( !p24_l3) && (p24_l2 && (p24_l0 && ( !p24_l1))))))))) && ((v1 == 25) || ( !(((delta == 0.0) && p24_evt) && ((( !p24_l3) && (p24_l2 && (p24_l0 && ( !p24_l1)))) && (( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l1 && ( !_x_p24_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p24_l3) && (_x_p24_l2 && (_x_p24_l0 && _x_p24_l1))) && (_x_p24_c == 0.0))) || ( !((( !p24_l3) && (p24_l2 && (p24_l1 && ( !p24_l0)))) && ((delta == 0.0) && p24_evt))))) && ((((v1 == _x_v1) && (_x_p24_c == 0.0)) && (( !_x_v2) && (_x_p24_l3 && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1)))))) || ( !((( !p24_l3) && (p24_l2 && (p24_l0 && p24_l1))) && ((delta == 0.0) && p24_evt))))) && ((((_x_v1 == 0) && (( !_x_p24_l3) && (( !_x_p24_l2) && (( !_x_p24_l0) && ( !_x_p24_l1))))) && ((v2 == _x_v2) && (p24_c == _x_p24_c))) || ( !((p24_l3 && (( !p24_l2) && (( !p24_l0) && ( !p24_l1)))) && ((delta == 0.0) && p24_evt))))) && (((((((((((((((((((((_x_p23_l3 && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) || ((( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l0 && _x_p23_l1))) || ((( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l1 && ( !_x_p23_l0)))) || ((( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l0 && ( !_x_p23_l1)))) || ((( !_x_p23_l3) && (_x_p23_l2 && (( !_x_p23_l0) && ( !_x_p23_l1)))) || ((( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && _x_p23_l1))) || ((( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l1 && ( !_x_p23_l0)))) || ((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) || (( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && ( !_x_p23_l1)))))))))))) && ((_x_p23_c <= 16.0) || ( !(((( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && ( !_x_p23_l1)))) || (( !_x_p23_l3) && (_x_p23_l2 && (( !_x_p23_l0) && ( !_x_p23_l1))))) || ((( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l0 && _x_p23_l1))) || (_x_p23_l3 && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1))))))))) && ((delta <= 0.0) || (((((p23_l0 == _x_p23_l0) && (p23_l1 == _x_p23_l1)) && (p23_l2 == _x_p23_l2)) && (p23_l3 == _x_p23_l3)) && ((delta + (p23_c + (-1.0 * _x_p23_c))) == 0.0)))) && (p23_evt || (((((p23_l0 == _x_p23_l0) && (p23_l1 == _x_p23_l1)) && (p23_l2 == _x_p23_l2)) && (p23_l3 == _x_p23_l3)) && ((delta + (p23_c + (-1.0 * _x_p23_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && ( !_x_p23_l1))))) && ((v2 == _x_v2) && (_x_p23_c == 0.0)))) || ( !((( !p23_l3) && (( !p23_l2) && (( !p23_l0) && ( !p23_l1)))) && ((delta == 0.0) && p23_evt))))) && ((((v2 == _x_v2) && (_x_p23_c == 0.0)) && ((( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l1 && ( !_x_p23_l0)))) && (_x_v1 == 24))) || ( !((( !p23_l3) && (( !p23_l2) && (p23_l0 && ( !p23_l1)))) && ((delta == 0.0) && p23_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) || (( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && _x_p23_l1)))) && (p23_c == _x_p23_c))) || ( !((( !p23_l3) && (( !p23_l2) && (p23_l1 && ( !p23_l0)))) && ((delta == 0.0) && p23_evt))))) && (( !(v1 == 24)) || ( !((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) && ((( !p23_l3) && (( !p23_l2) && (p23_l1 && ( !p23_l0)))) && ((delta == 0.0) && p23_evt)))))) && (((v1 == 24) && ( !(p23_c <= 16.0))) || ( !((( !_x_p23_l3) && (( !_x_p23_l2) && (_x_p23_l0 && _x_p23_l1))) && ((( !p23_l3) && (( !p23_l2) && (p23_l1 && ( !p23_l0)))) && ((delta == 0.0) && p23_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) || (( !_x_p23_l3) && (_x_p23_l2 && (( !_x_p23_l0) && ( !_x_p23_l1)))))) || ( !((( !p23_l3) && (( !p23_l2) && (p23_l0 && p23_l1))) && ((delta == 0.0) && p23_evt))))) && ((v2 && (p23_c == _x_p23_c)) || ( !(((delta == 0.0) && p23_evt) && ((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) && (( !p23_l3) && (( !p23_l2) && (p23_l0 && p23_l1)))))))) && ((( !v2) && (_x_p23_c == 0.0)) || ( !(((delta == 0.0) && p23_evt) && ((( !p23_l3) && (( !p23_l2) && (p23_l0 && p23_l1))) && (( !_x_p23_l3) && (_x_p23_l2 && (( !_x_p23_l0) && ( !_x_p23_l1))))))))) && (((_x_v2 && (( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l0 && ( !_x_p23_l1))))) && ((v1 == _x_v1) && (_x_p23_c == 0.0))) || ( !((( !p23_l3) && (p23_l2 && (( !p23_l0) && ( !p23_l1)))) && ((delta == 0.0) && p23_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p23_c == _x_p23_c) && ((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) || (( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l1 && ( !_x_p23_l0))))))) || ( !((( !p23_l3) && (p23_l2 && (p23_l0 && ( !p23_l1)))) && ((delta == 0.0) && p23_evt))))) && (( !(v1 == 24)) || ( !(((delta == 0.0) && p23_evt) && ((( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))) && (( !p23_l3) && (p23_l2 && (p23_l0 && ( !p23_l1))))))))) && ((v1 == 24) || ( !(((delta == 0.0) && p23_evt) && ((( !p23_l3) && (p23_l2 && (p23_l0 && ( !p23_l1)))) && (( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l1 && ( !_x_p23_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p23_l3) && (_x_p23_l2 && (_x_p23_l0 && _x_p23_l1))) && (_x_p23_c == 0.0))) || ( !((( !p23_l3) && (p23_l2 && (p23_l1 && ( !p23_l0)))) && ((delta == 0.0) && p23_evt))))) && ((((v1 == _x_v1) && (_x_p23_c == 0.0)) && (( !_x_v2) && (_x_p23_l3 && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1)))))) || ( !((( !p23_l3) && (p23_l2 && (p23_l0 && p23_l1))) && ((delta == 0.0) && p23_evt))))) && ((((_x_v1 == 0) && (( !_x_p23_l3) && (( !_x_p23_l2) && (( !_x_p23_l0) && ( !_x_p23_l1))))) && ((v2 == _x_v2) && (p23_c == _x_p23_c))) || ( !((p23_l3 && (( !p23_l2) && (( !p23_l0) && ( !p23_l1)))) && ((delta == 0.0) && p23_evt))))) && (((((((((((((((((((((_x_p22_l3 && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) || ((( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l0 && _x_p22_l1))) || ((( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l1 && ( !_x_p22_l0)))) || ((( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l0 && ( !_x_p22_l1)))) || ((( !_x_p22_l3) && (_x_p22_l2 && (( !_x_p22_l0) && ( !_x_p22_l1)))) || ((( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && _x_p22_l1))) || ((( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l1 && ( !_x_p22_l0)))) || ((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) || (( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && ( !_x_p22_l1)))))))))))) && ((_x_p22_c <= 16.0) || ( !(((( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && ( !_x_p22_l1)))) || (( !_x_p22_l3) && (_x_p22_l2 && (( !_x_p22_l0) && ( !_x_p22_l1))))) || ((( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l0 && _x_p22_l1))) || (_x_p22_l3 && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1))))))))) && ((delta <= 0.0) || (((((p22_l0 == _x_p22_l0) && (p22_l1 == _x_p22_l1)) && (p22_l2 == _x_p22_l2)) && (p22_l3 == _x_p22_l3)) && ((delta + (p22_c + (-1.0 * _x_p22_c))) == 0.0)))) && (p22_evt || (((((p22_l0 == _x_p22_l0) && (p22_l1 == _x_p22_l1)) && (p22_l2 == _x_p22_l2)) && (p22_l3 == _x_p22_l3)) && ((delta + (p22_c + (-1.0 * _x_p22_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && ( !_x_p22_l1))))) && ((v2 == _x_v2) && (_x_p22_c == 0.0)))) || ( !((( !p22_l3) && (( !p22_l2) && (( !p22_l0) && ( !p22_l1)))) && ((delta == 0.0) && p22_evt))))) && ((((v2 == _x_v2) && (_x_p22_c == 0.0)) && ((( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l1 && ( !_x_p22_l0)))) && (_x_v1 == 23))) || ( !((( !p22_l3) && (( !p22_l2) && (p22_l0 && ( !p22_l1)))) && ((delta == 0.0) && p22_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) || (( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && _x_p22_l1)))) && (p22_c == _x_p22_c))) || ( !((( !p22_l3) && (( !p22_l2) && (p22_l1 && ( !p22_l0)))) && ((delta == 0.0) && p22_evt))))) && (( !(v1 == 23)) || ( !((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) && ((( !p22_l3) && (( !p22_l2) && (p22_l1 && ( !p22_l0)))) && ((delta == 0.0) && p22_evt)))))) && (((v1 == 23) && ( !(p22_c <= 16.0))) || ( !((( !_x_p22_l3) && (( !_x_p22_l2) && (_x_p22_l0 && _x_p22_l1))) && ((( !p22_l3) && (( !p22_l2) && (p22_l1 && ( !p22_l0)))) && ((delta == 0.0) && p22_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) || (( !_x_p22_l3) && (_x_p22_l2 && (( !_x_p22_l0) && ( !_x_p22_l1)))))) || ( !((( !p22_l3) && (( !p22_l2) && (p22_l0 && p22_l1))) && ((delta == 0.0) && p22_evt))))) && ((v2 && (p22_c == _x_p22_c)) || ( !(((delta == 0.0) && p22_evt) && ((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) && (( !p22_l3) && (( !p22_l2) && (p22_l0 && p22_l1)))))))) && ((( !v2) && (_x_p22_c == 0.0)) || ( !(((delta == 0.0) && p22_evt) && ((( !p22_l3) && (( !p22_l2) && (p22_l0 && p22_l1))) && (( !_x_p22_l3) && (_x_p22_l2 && (( !_x_p22_l0) && ( !_x_p22_l1))))))))) && (((_x_v2 && (( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l0 && ( !_x_p22_l1))))) && ((v1 == _x_v1) && (_x_p22_c == 0.0))) || ( !((( !p22_l3) && (p22_l2 && (( !p22_l0) && ( !p22_l1)))) && ((delta == 0.0) && p22_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p22_c == _x_p22_c) && ((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) || (( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l1 && ( !_x_p22_l0))))))) || ( !((( !p22_l3) && (p22_l2 && (p22_l0 && ( !p22_l1)))) && ((delta == 0.0) && p22_evt))))) && (( !(v1 == 23)) || ( !(((delta == 0.0) && p22_evt) && ((( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))) && (( !p22_l3) && (p22_l2 && (p22_l0 && ( !p22_l1))))))))) && ((v1 == 23) || ( !(((delta == 0.0) && p22_evt) && ((( !p22_l3) && (p22_l2 && (p22_l0 && ( !p22_l1)))) && (( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l1 && ( !_x_p22_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p22_l3) && (_x_p22_l2 && (_x_p22_l0 && _x_p22_l1))) && (_x_p22_c == 0.0))) || ( !((( !p22_l3) && (p22_l2 && (p22_l1 && ( !p22_l0)))) && ((delta == 0.0) && p22_evt))))) && ((((v1 == _x_v1) && (_x_p22_c == 0.0)) && (( !_x_v2) && (_x_p22_l3 && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1)))))) || ( !((( !p22_l3) && (p22_l2 && (p22_l0 && p22_l1))) && ((delta == 0.0) && p22_evt))))) && ((((_x_v1 == 0) && (( !_x_p22_l3) && (( !_x_p22_l2) && (( !_x_p22_l0) && ( !_x_p22_l1))))) && ((v2 == _x_v2) && (p22_c == _x_p22_c))) || ( !((p22_l3 && (( !p22_l2) && (( !p22_l0) && ( !p22_l1)))) && ((delta == 0.0) && p22_evt))))) && (((((((((((((((((((((_x_p21_l3 && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) || ((( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l0 && _x_p21_l1))) || ((( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l1 && ( !_x_p21_l0)))) || ((( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l0 && ( !_x_p21_l1)))) || ((( !_x_p21_l3) && (_x_p21_l2 && (( !_x_p21_l0) && ( !_x_p21_l1)))) || ((( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && _x_p21_l1))) || ((( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l1 && ( !_x_p21_l0)))) || ((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) || (( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && ( !_x_p21_l1)))))))))))) && ((_x_p21_c <= 16.0) || ( !(((( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && ( !_x_p21_l1)))) || (( !_x_p21_l3) && (_x_p21_l2 && (( !_x_p21_l0) && ( !_x_p21_l1))))) || ((( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l0 && _x_p21_l1))) || (_x_p21_l3 && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1))))))))) && ((delta <= 0.0) || (((((p21_l0 == _x_p21_l0) && (p21_l1 == _x_p21_l1)) && (p21_l2 == _x_p21_l2)) && (p21_l3 == _x_p21_l3)) && ((delta + (p21_c + (-1.0 * _x_p21_c))) == 0.0)))) && (p21_evt || (((((p21_l0 == _x_p21_l0) && (p21_l1 == _x_p21_l1)) && (p21_l2 == _x_p21_l2)) && (p21_l3 == _x_p21_l3)) && ((delta + (p21_c + (-1.0 * _x_p21_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && ( !_x_p21_l1))))) && ((v2 == _x_v2) && (_x_p21_c == 0.0)))) || ( !((( !p21_l3) && (( !p21_l2) && (( !p21_l0) && ( !p21_l1)))) && ((delta == 0.0) && p21_evt))))) && ((((v2 == _x_v2) && (_x_p21_c == 0.0)) && ((( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l1 && ( !_x_p21_l0)))) && (_x_v1 == 22))) || ( !((( !p21_l3) && (( !p21_l2) && (p21_l0 && ( !p21_l1)))) && ((delta == 0.0) && p21_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) || (( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && _x_p21_l1)))) && (p21_c == _x_p21_c))) || ( !((( !p21_l3) && (( !p21_l2) && (p21_l1 && ( !p21_l0)))) && ((delta == 0.0) && p21_evt))))) && (( !(v1 == 22)) || ( !((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) && ((( !p21_l3) && (( !p21_l2) && (p21_l1 && ( !p21_l0)))) && ((delta == 0.0) && p21_evt)))))) && (((v1 == 22) && ( !(p21_c <= 16.0))) || ( !((( !_x_p21_l3) && (( !_x_p21_l2) && (_x_p21_l0 && _x_p21_l1))) && ((( !p21_l3) && (( !p21_l2) && (p21_l1 && ( !p21_l0)))) && ((delta == 0.0) && p21_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) || (( !_x_p21_l3) && (_x_p21_l2 && (( !_x_p21_l0) && ( !_x_p21_l1)))))) || ( !((( !p21_l3) && (( !p21_l2) && (p21_l0 && p21_l1))) && ((delta == 0.0) && p21_evt))))) && ((v2 && (p21_c == _x_p21_c)) || ( !(((delta == 0.0) && p21_evt) && ((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) && (( !p21_l3) && (( !p21_l2) && (p21_l0 && p21_l1)))))))) && ((( !v2) && (_x_p21_c == 0.0)) || ( !(((delta == 0.0) && p21_evt) && ((( !p21_l3) && (( !p21_l2) && (p21_l0 && p21_l1))) && (( !_x_p21_l3) && (_x_p21_l2 && (( !_x_p21_l0) && ( !_x_p21_l1))))))))) && (((_x_v2 && (( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l0 && ( !_x_p21_l1))))) && ((v1 == _x_v1) && (_x_p21_c == 0.0))) || ( !((( !p21_l3) && (p21_l2 && (( !p21_l0) && ( !p21_l1)))) && ((delta == 0.0) && p21_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p21_c == _x_p21_c) && ((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) || (( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l1 && ( !_x_p21_l0))))))) || ( !((( !p21_l3) && (p21_l2 && (p21_l0 && ( !p21_l1)))) && ((delta == 0.0) && p21_evt))))) && (( !(v1 == 22)) || ( !(((delta == 0.0) && p21_evt) && ((( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))) && (( !p21_l3) && (p21_l2 && (p21_l0 && ( !p21_l1))))))))) && ((v1 == 22) || ( !(((delta == 0.0) && p21_evt) && ((( !p21_l3) && (p21_l2 && (p21_l0 && ( !p21_l1)))) && (( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l1 && ( !_x_p21_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p21_l3) && (_x_p21_l2 && (_x_p21_l0 && _x_p21_l1))) && (_x_p21_c == 0.0))) || ( !((( !p21_l3) && (p21_l2 && (p21_l1 && ( !p21_l0)))) && ((delta == 0.0) && p21_evt))))) && ((((v1 == _x_v1) && (_x_p21_c == 0.0)) && (( !_x_v2) && (_x_p21_l3 && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1)))))) || ( !((( !p21_l3) && (p21_l2 && (p21_l0 && p21_l1))) && ((delta == 0.0) && p21_evt))))) && ((((_x_v1 == 0) && (( !_x_p21_l3) && (( !_x_p21_l2) && (( !_x_p21_l0) && ( !_x_p21_l1))))) && ((v2 == _x_v2) && (p21_c == _x_p21_c))) || ( !((p21_l3 && (( !p21_l2) && (( !p21_l0) && ( !p21_l1)))) && ((delta == 0.0) && p21_evt))))) && (((((((((((((((((((((_x_p20_l3 && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) || ((( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l0 && _x_p20_l1))) || ((( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l1 && ( !_x_p20_l0)))) || ((( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l0 && ( !_x_p20_l1)))) || ((( !_x_p20_l3) && (_x_p20_l2 && (( !_x_p20_l0) && ( !_x_p20_l1)))) || ((( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && _x_p20_l1))) || ((( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l1 && ( !_x_p20_l0)))) || ((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) || (( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && ( !_x_p20_l1)))))))))))) && ((_x_p20_c <= 16.0) || ( !(((( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && ( !_x_p20_l1)))) || (( !_x_p20_l3) && (_x_p20_l2 && (( !_x_p20_l0) && ( !_x_p20_l1))))) || ((( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l0 && _x_p20_l1))) || (_x_p20_l3 && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1))))))))) && ((delta <= 0.0) || (((((p20_l0 == _x_p20_l0) && (p20_l1 == _x_p20_l1)) && (p20_l2 == _x_p20_l2)) && (p20_l3 == _x_p20_l3)) && ((delta + (p20_c + (-1.0 * _x_p20_c))) == 0.0)))) && (p20_evt || (((((p20_l0 == _x_p20_l0) && (p20_l1 == _x_p20_l1)) && (p20_l2 == _x_p20_l2)) && (p20_l3 == _x_p20_l3)) && ((delta + (p20_c + (-1.0 * _x_p20_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && ( !_x_p20_l1))))) && ((v2 == _x_v2) && (_x_p20_c == 0.0)))) || ( !((( !p20_l3) && (( !p20_l2) && (( !p20_l0) && ( !p20_l1)))) && ((delta == 0.0) && p20_evt))))) && ((((v2 == _x_v2) && (_x_p20_c == 0.0)) && ((( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l1 && ( !_x_p20_l0)))) && (_x_v1 == 21))) || ( !((( !p20_l3) && (( !p20_l2) && (p20_l0 && ( !p20_l1)))) && ((delta == 0.0) && p20_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) || (( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && _x_p20_l1)))) && (p20_c == _x_p20_c))) || ( !((( !p20_l3) && (( !p20_l2) && (p20_l1 && ( !p20_l0)))) && ((delta == 0.0) && p20_evt))))) && (( !(v1 == 21)) || ( !((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) && ((( !p20_l3) && (( !p20_l2) && (p20_l1 && ( !p20_l0)))) && ((delta == 0.0) && p20_evt)))))) && (((v1 == 21) && ( !(p20_c <= 16.0))) || ( !((( !_x_p20_l3) && (( !_x_p20_l2) && (_x_p20_l0 && _x_p20_l1))) && ((( !p20_l3) && (( !p20_l2) && (p20_l1 && ( !p20_l0)))) && ((delta == 0.0) && p20_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) || (( !_x_p20_l3) && (_x_p20_l2 && (( !_x_p20_l0) && ( !_x_p20_l1)))))) || ( !((( !p20_l3) && (( !p20_l2) && (p20_l0 && p20_l1))) && ((delta == 0.0) && p20_evt))))) && ((v2 && (p20_c == _x_p20_c)) || ( !(((delta == 0.0) && p20_evt) && ((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) && (( !p20_l3) && (( !p20_l2) && (p20_l0 && p20_l1)))))))) && ((( !v2) && (_x_p20_c == 0.0)) || ( !(((delta == 0.0) && p20_evt) && ((( !p20_l3) && (( !p20_l2) && (p20_l0 && p20_l1))) && (( !_x_p20_l3) && (_x_p20_l2 && (( !_x_p20_l0) && ( !_x_p20_l1))))))))) && (((_x_v2 && (( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l0 && ( !_x_p20_l1))))) && ((v1 == _x_v1) && (_x_p20_c == 0.0))) || ( !((( !p20_l3) && (p20_l2 && (( !p20_l0) && ( !p20_l1)))) && ((delta == 0.0) && p20_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p20_c == _x_p20_c) && ((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) || (( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l1 && ( !_x_p20_l0))))))) || ( !((( !p20_l3) && (p20_l2 && (p20_l0 && ( !p20_l1)))) && ((delta == 0.0) && p20_evt))))) && (( !(v1 == 21)) || ( !(((delta == 0.0) && p20_evt) && ((( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))) && (( !p20_l3) && (p20_l2 && (p20_l0 && ( !p20_l1))))))))) && ((v1 == 21) || ( !(((delta == 0.0) && p20_evt) && ((( !p20_l3) && (p20_l2 && (p20_l0 && ( !p20_l1)))) && (( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l1 && ( !_x_p20_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p20_l3) && (_x_p20_l2 && (_x_p20_l0 && _x_p20_l1))) && (_x_p20_c == 0.0))) || ( !((( !p20_l3) && (p20_l2 && (p20_l1 && ( !p20_l0)))) && ((delta == 0.0) && p20_evt))))) && ((((v1 == _x_v1) && (_x_p20_c == 0.0)) && (( !_x_v2) && (_x_p20_l3 && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1)))))) || ( !((( !p20_l3) && (p20_l2 && (p20_l0 && p20_l1))) && ((delta == 0.0) && p20_evt))))) && ((((_x_v1 == 0) && (( !_x_p20_l3) && (( !_x_p20_l2) && (( !_x_p20_l0) && ( !_x_p20_l1))))) && ((v2 == _x_v2) && (p20_c == _x_p20_c))) || ( !((p20_l3 && (( !p20_l2) && (( !p20_l0) && ( !p20_l1)))) && ((delta == 0.0) && p20_evt))))) && (((((((((((((((((((((_x_p19_l3 && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) || ((( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l0 && _x_p19_l1))) || ((( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l1 && ( !_x_p19_l0)))) || ((( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l0 && ( !_x_p19_l1)))) || ((( !_x_p19_l3) && (_x_p19_l2 && (( !_x_p19_l0) && ( !_x_p19_l1)))) || ((( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && _x_p19_l1))) || ((( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l1 && ( !_x_p19_l0)))) || ((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) || (( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && ( !_x_p19_l1)))))))))))) && ((_x_p19_c <= 16.0) || ( !(((( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && ( !_x_p19_l1)))) || (( !_x_p19_l3) && (_x_p19_l2 && (( !_x_p19_l0) && ( !_x_p19_l1))))) || ((( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l0 && _x_p19_l1))) || (_x_p19_l3 && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1))))))))) && ((delta <= 0.0) || (((((p19_l0 == _x_p19_l0) && (p19_l1 == _x_p19_l1)) && (p19_l2 == _x_p19_l2)) && (p19_l3 == _x_p19_l3)) && ((delta + (p19_c + (-1.0 * _x_p19_c))) == 0.0)))) && (p19_evt || (((((p19_l0 == _x_p19_l0) && (p19_l1 == _x_p19_l1)) && (p19_l2 == _x_p19_l2)) && (p19_l3 == _x_p19_l3)) && ((delta + (p19_c + (-1.0 * _x_p19_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && ( !_x_p19_l1))))) && ((v2 == _x_v2) && (_x_p19_c == 0.0)))) || ( !((( !p19_l3) && (( !p19_l2) && (( !p19_l0) && ( !p19_l1)))) && ((delta == 0.0) && p19_evt))))) && ((((v2 == _x_v2) && (_x_p19_c == 0.0)) && ((( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l1 && ( !_x_p19_l0)))) && (_x_v1 == 20))) || ( !((( !p19_l3) && (( !p19_l2) && (p19_l0 && ( !p19_l1)))) && ((delta == 0.0) && p19_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) || (( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && _x_p19_l1)))) && (p19_c == _x_p19_c))) || ( !((( !p19_l3) && (( !p19_l2) && (p19_l1 && ( !p19_l0)))) && ((delta == 0.0) && p19_evt))))) && (( !(v1 == 20)) || ( !((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) && ((( !p19_l3) && (( !p19_l2) && (p19_l1 && ( !p19_l0)))) && ((delta == 0.0) && p19_evt)))))) && (((v1 == 20) && ( !(p19_c <= 16.0))) || ( !((( !_x_p19_l3) && (( !_x_p19_l2) && (_x_p19_l0 && _x_p19_l1))) && ((( !p19_l3) && (( !p19_l2) && (p19_l1 && ( !p19_l0)))) && ((delta == 0.0) && p19_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) || (( !_x_p19_l3) && (_x_p19_l2 && (( !_x_p19_l0) && ( !_x_p19_l1)))))) || ( !((( !p19_l3) && (( !p19_l2) && (p19_l0 && p19_l1))) && ((delta == 0.0) && p19_evt))))) && ((v2 && (p19_c == _x_p19_c)) || ( !(((delta == 0.0) && p19_evt) && ((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) && (( !p19_l3) && (( !p19_l2) && (p19_l0 && p19_l1)))))))) && ((( !v2) && (_x_p19_c == 0.0)) || ( !(((delta == 0.0) && p19_evt) && ((( !p19_l3) && (( !p19_l2) && (p19_l0 && p19_l1))) && (( !_x_p19_l3) && (_x_p19_l2 && (( !_x_p19_l0) && ( !_x_p19_l1))))))))) && (((_x_v2 && (( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l0 && ( !_x_p19_l1))))) && ((v1 == _x_v1) && (_x_p19_c == 0.0))) || ( !((( !p19_l3) && (p19_l2 && (( !p19_l0) && ( !p19_l1)))) && ((delta == 0.0) && p19_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p19_c == _x_p19_c) && ((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) || (( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l1 && ( !_x_p19_l0))))))) || ( !((( !p19_l3) && (p19_l2 && (p19_l0 && ( !p19_l1)))) && ((delta == 0.0) && p19_evt))))) && (( !(v1 == 20)) || ( !(((delta == 0.0) && p19_evt) && ((( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))) && (( !p19_l3) && (p19_l2 && (p19_l0 && ( !p19_l1))))))))) && ((v1 == 20) || ( !(((delta == 0.0) && p19_evt) && ((( !p19_l3) && (p19_l2 && (p19_l0 && ( !p19_l1)))) && (( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l1 && ( !_x_p19_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p19_l3) && (_x_p19_l2 && (_x_p19_l0 && _x_p19_l1))) && (_x_p19_c == 0.0))) || ( !((( !p19_l3) && (p19_l2 && (p19_l1 && ( !p19_l0)))) && ((delta == 0.0) && p19_evt))))) && ((((v1 == _x_v1) && (_x_p19_c == 0.0)) && (( !_x_v2) && (_x_p19_l3 && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1)))))) || ( !((( !p19_l3) && (p19_l2 && (p19_l0 && p19_l1))) && ((delta == 0.0) && p19_evt))))) && ((((_x_v1 == 0) && (( !_x_p19_l3) && (( !_x_p19_l2) && (( !_x_p19_l0) && ( !_x_p19_l1))))) && ((v2 == _x_v2) && (p19_c == _x_p19_c))) || ( !((p19_l3 && (( !p19_l2) && (( !p19_l0) && ( !p19_l1)))) && ((delta == 0.0) && p19_evt))))) && (((((((((((((((((((((_x_p18_l3 && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) || ((( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l0 && _x_p18_l1))) || ((( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l1 && ( !_x_p18_l0)))) || ((( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l0 && ( !_x_p18_l1)))) || ((( !_x_p18_l3) && (_x_p18_l2 && (( !_x_p18_l0) && ( !_x_p18_l1)))) || ((( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && _x_p18_l1))) || ((( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l1 && ( !_x_p18_l0)))) || ((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) || (( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && ( !_x_p18_l1)))))))))))) && ((_x_p18_c <= 16.0) || ( !(((( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && ( !_x_p18_l1)))) || (( !_x_p18_l3) && (_x_p18_l2 && (( !_x_p18_l0) && ( !_x_p18_l1))))) || ((( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l0 && _x_p18_l1))) || (_x_p18_l3 && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1))))))))) && ((delta <= 0.0) || (((((p18_l0 == _x_p18_l0) && (p18_l1 == _x_p18_l1)) && (p18_l2 == _x_p18_l2)) && (p18_l3 == _x_p18_l3)) && ((delta + (p18_c + (-1.0 * _x_p18_c))) == 0.0)))) && (p18_evt || (((((p18_l0 == _x_p18_l0) && (p18_l1 == _x_p18_l1)) && (p18_l2 == _x_p18_l2)) && (p18_l3 == _x_p18_l3)) && ((delta + (p18_c + (-1.0 * _x_p18_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && ( !_x_p18_l1))))) && ((v2 == _x_v2) && (_x_p18_c == 0.0)))) || ( !((( !p18_l3) && (( !p18_l2) && (( !p18_l0) && ( !p18_l1)))) && ((delta == 0.0) && p18_evt))))) && ((((v2 == _x_v2) && (_x_p18_c == 0.0)) && ((( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l1 && ( !_x_p18_l0)))) && (_x_v1 == 19))) || ( !((( !p18_l3) && (( !p18_l2) && (p18_l0 && ( !p18_l1)))) && ((delta == 0.0) && p18_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) || (( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && _x_p18_l1)))) && (p18_c == _x_p18_c))) || ( !((( !p18_l3) && (( !p18_l2) && (p18_l1 && ( !p18_l0)))) && ((delta == 0.0) && p18_evt))))) && (( !(v1 == 19)) || ( !((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) && ((( !p18_l3) && (( !p18_l2) && (p18_l1 && ( !p18_l0)))) && ((delta == 0.0) && p18_evt)))))) && (((v1 == 19) && ( !(p18_c <= 16.0))) || ( !((( !_x_p18_l3) && (( !_x_p18_l2) && (_x_p18_l0 && _x_p18_l1))) && ((( !p18_l3) && (( !p18_l2) && (p18_l1 && ( !p18_l0)))) && ((delta == 0.0) && p18_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) || (( !_x_p18_l3) && (_x_p18_l2 && (( !_x_p18_l0) && ( !_x_p18_l1)))))) || ( !((( !p18_l3) && (( !p18_l2) && (p18_l0 && p18_l1))) && ((delta == 0.0) && p18_evt))))) && ((v2 && (p18_c == _x_p18_c)) || ( !(((delta == 0.0) && p18_evt) && ((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) && (( !p18_l3) && (( !p18_l2) && (p18_l0 && p18_l1)))))))) && ((( !v2) && (_x_p18_c == 0.0)) || ( !(((delta == 0.0) && p18_evt) && ((( !p18_l3) && (( !p18_l2) && (p18_l0 && p18_l1))) && (( !_x_p18_l3) && (_x_p18_l2 && (( !_x_p18_l0) && ( !_x_p18_l1))))))))) && (((_x_v2 && (( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l0 && ( !_x_p18_l1))))) && ((v1 == _x_v1) && (_x_p18_c == 0.0))) || ( !((( !p18_l3) && (p18_l2 && (( !p18_l0) && ( !p18_l1)))) && ((delta == 0.0) && p18_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p18_c == _x_p18_c) && ((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) || (( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l1 && ( !_x_p18_l0))))))) || ( !((( !p18_l3) && (p18_l2 && (p18_l0 && ( !p18_l1)))) && ((delta == 0.0) && p18_evt))))) && (( !(v1 == 19)) || ( !(((delta == 0.0) && p18_evt) && ((( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))) && (( !p18_l3) && (p18_l2 && (p18_l0 && ( !p18_l1))))))))) && ((v1 == 19) || ( !(((delta == 0.0) && p18_evt) && ((( !p18_l3) && (p18_l2 && (p18_l0 && ( !p18_l1)))) && (( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l1 && ( !_x_p18_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p18_l3) && (_x_p18_l2 && (_x_p18_l0 && _x_p18_l1))) && (_x_p18_c == 0.0))) || ( !((( !p18_l3) && (p18_l2 && (p18_l1 && ( !p18_l0)))) && ((delta == 0.0) && p18_evt))))) && ((((v1 == _x_v1) && (_x_p18_c == 0.0)) && (( !_x_v2) && (_x_p18_l3 && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1)))))) || ( !((( !p18_l3) && (p18_l2 && (p18_l0 && p18_l1))) && ((delta == 0.0) && p18_evt))))) && ((((_x_v1 == 0) && (( !_x_p18_l3) && (( !_x_p18_l2) && (( !_x_p18_l0) && ( !_x_p18_l1))))) && ((v2 == _x_v2) && (p18_c == _x_p18_c))) || ( !((p18_l3 && (( !p18_l2) && (( !p18_l0) && ( !p18_l1)))) && ((delta == 0.0) && p18_evt))))) && (((((((((((((((((((((_x_p17_l3 && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) || ((( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l0 && _x_p17_l1))) || ((( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l1 && ( !_x_p17_l0)))) || ((( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l0 && ( !_x_p17_l1)))) || ((( !_x_p17_l3) && (_x_p17_l2 && (( !_x_p17_l0) && ( !_x_p17_l1)))) || ((( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && _x_p17_l1))) || ((( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l1 && ( !_x_p17_l0)))) || ((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) || (( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && ( !_x_p17_l1)))))))))))) && ((_x_p17_c <= 16.0) || ( !(((( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && ( !_x_p17_l1)))) || (( !_x_p17_l3) && (_x_p17_l2 && (( !_x_p17_l0) && ( !_x_p17_l1))))) || ((( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l0 && _x_p17_l1))) || (_x_p17_l3 && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1))))))))) && ((delta <= 0.0) || (((((p17_l0 == _x_p17_l0) && (p17_l1 == _x_p17_l1)) && (p17_l2 == _x_p17_l2)) && (p17_l3 == _x_p17_l3)) && ((delta + (p17_c + (-1.0 * _x_p17_c))) == 0.0)))) && (p17_evt || (((((p17_l0 == _x_p17_l0) && (p17_l1 == _x_p17_l1)) && (p17_l2 == _x_p17_l2)) && (p17_l3 == _x_p17_l3)) && ((delta + (p17_c + (-1.0 * _x_p17_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && ( !_x_p17_l1))))) && ((v2 == _x_v2) && (_x_p17_c == 0.0)))) || ( !((( !p17_l3) && (( !p17_l2) && (( !p17_l0) && ( !p17_l1)))) && ((delta == 0.0) && p17_evt))))) && ((((v2 == _x_v2) && (_x_p17_c == 0.0)) && ((( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l1 && ( !_x_p17_l0)))) && (_x_v1 == 18))) || ( !((( !p17_l3) && (( !p17_l2) && (p17_l0 && ( !p17_l1)))) && ((delta == 0.0) && p17_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) || (( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && _x_p17_l1)))) && (p17_c == _x_p17_c))) || ( !((( !p17_l3) && (( !p17_l2) && (p17_l1 && ( !p17_l0)))) && ((delta == 0.0) && p17_evt))))) && (( !(v1 == 18)) || ( !((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) && ((( !p17_l3) && (( !p17_l2) && (p17_l1 && ( !p17_l0)))) && ((delta == 0.0) && p17_evt)))))) && (((v1 == 18) && ( !(p17_c <= 16.0))) || ( !((( !_x_p17_l3) && (( !_x_p17_l2) && (_x_p17_l0 && _x_p17_l1))) && ((( !p17_l3) && (( !p17_l2) && (p17_l1 && ( !p17_l0)))) && ((delta == 0.0) && p17_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) || (( !_x_p17_l3) && (_x_p17_l2 && (( !_x_p17_l0) && ( !_x_p17_l1)))))) || ( !((( !p17_l3) && (( !p17_l2) && (p17_l0 && p17_l1))) && ((delta == 0.0) && p17_evt))))) && ((v2 && (p17_c == _x_p17_c)) || ( !(((delta == 0.0) && p17_evt) && ((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) && (( !p17_l3) && (( !p17_l2) && (p17_l0 && p17_l1)))))))) && ((( !v2) && (_x_p17_c == 0.0)) || ( !(((delta == 0.0) && p17_evt) && ((( !p17_l3) && (( !p17_l2) && (p17_l0 && p17_l1))) && (( !_x_p17_l3) && (_x_p17_l2 && (( !_x_p17_l0) && ( !_x_p17_l1))))))))) && (((_x_v2 && (( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l0 && ( !_x_p17_l1))))) && ((v1 == _x_v1) && (_x_p17_c == 0.0))) || ( !((( !p17_l3) && (p17_l2 && (( !p17_l0) && ( !p17_l1)))) && ((delta == 0.0) && p17_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p17_c == _x_p17_c) && ((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) || (( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l1 && ( !_x_p17_l0))))))) || ( !((( !p17_l3) && (p17_l2 && (p17_l0 && ( !p17_l1)))) && ((delta == 0.0) && p17_evt))))) && (( !(v1 == 18)) || ( !(((delta == 0.0) && p17_evt) && ((( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))) && (( !p17_l3) && (p17_l2 && (p17_l0 && ( !p17_l1))))))))) && ((v1 == 18) || ( !(((delta == 0.0) && p17_evt) && ((( !p17_l3) && (p17_l2 && (p17_l0 && ( !p17_l1)))) && (( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l1 && ( !_x_p17_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p17_l3) && (_x_p17_l2 && (_x_p17_l0 && _x_p17_l1))) && (_x_p17_c == 0.0))) || ( !((( !p17_l3) && (p17_l2 && (p17_l1 && ( !p17_l0)))) && ((delta == 0.0) && p17_evt))))) && ((((v1 == _x_v1) && (_x_p17_c == 0.0)) && (( !_x_v2) && (_x_p17_l3 && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1)))))) || ( !((( !p17_l3) && (p17_l2 && (p17_l0 && p17_l1))) && ((delta == 0.0) && p17_evt))))) && ((((_x_v1 == 0) && (( !_x_p17_l3) && (( !_x_p17_l2) && (( !_x_p17_l0) && ( !_x_p17_l1))))) && ((v2 == _x_v2) && (p17_c == _x_p17_c))) || ( !((p17_l3 && (( !p17_l2) && (( !p17_l0) && ( !p17_l1)))) && ((delta == 0.0) && p17_evt))))) && (((((((((((((((((((((_x_p16_l3 && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) || ((( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l0 && _x_p16_l1))) || ((( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l1 && ( !_x_p16_l0)))) || ((( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l0 && ( !_x_p16_l1)))) || ((( !_x_p16_l3) && (_x_p16_l2 && (( !_x_p16_l0) && ( !_x_p16_l1)))) || ((( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && _x_p16_l1))) || ((( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l1 && ( !_x_p16_l0)))) || ((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) || (( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && ( !_x_p16_l1)))))))))))) && ((_x_p16_c <= 16.0) || ( !(((( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && ( !_x_p16_l1)))) || (( !_x_p16_l3) && (_x_p16_l2 && (( !_x_p16_l0) && ( !_x_p16_l1))))) || ((( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l0 && _x_p16_l1))) || (_x_p16_l3 && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1))))))))) && ((delta <= 0.0) || (((((p16_l0 == _x_p16_l0) && (p16_l1 == _x_p16_l1)) && (p16_l2 == _x_p16_l2)) && (p16_l3 == _x_p16_l3)) && ((delta + (p16_c + (-1.0 * _x_p16_c))) == 0.0)))) && (p16_evt || (((((p16_l0 == _x_p16_l0) && (p16_l1 == _x_p16_l1)) && (p16_l2 == _x_p16_l2)) && (p16_l3 == _x_p16_l3)) && ((delta + (p16_c + (-1.0 * _x_p16_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && ( !_x_p16_l1))))) && ((v2 == _x_v2) && (_x_p16_c == 0.0)))) || ( !((( !p16_l3) && (( !p16_l2) && (( !p16_l0) && ( !p16_l1)))) && ((delta == 0.0) && p16_evt))))) && ((((v2 == _x_v2) && (_x_p16_c == 0.0)) && ((( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l1 && ( !_x_p16_l0)))) && (_x_v1 == 17))) || ( !((( !p16_l3) && (( !p16_l2) && (p16_l0 && ( !p16_l1)))) && ((delta == 0.0) && p16_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) || (( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && _x_p16_l1)))) && (p16_c == _x_p16_c))) || ( !((( !p16_l3) && (( !p16_l2) && (p16_l1 && ( !p16_l0)))) && ((delta == 0.0) && p16_evt))))) && (( !(v1 == 17)) || ( !((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) && ((( !p16_l3) && (( !p16_l2) && (p16_l1 && ( !p16_l0)))) && ((delta == 0.0) && p16_evt)))))) && (((v1 == 17) && ( !(p16_c <= 16.0))) || ( !((( !_x_p16_l3) && (( !_x_p16_l2) && (_x_p16_l0 && _x_p16_l1))) && ((( !p16_l3) && (( !p16_l2) && (p16_l1 && ( !p16_l0)))) && ((delta == 0.0) && p16_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) || (( !_x_p16_l3) && (_x_p16_l2 && (( !_x_p16_l0) && ( !_x_p16_l1)))))) || ( !((( !p16_l3) && (( !p16_l2) && (p16_l0 && p16_l1))) && ((delta == 0.0) && p16_evt))))) && ((v2 && (p16_c == _x_p16_c)) || ( !(((delta == 0.0) && p16_evt) && ((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) && (( !p16_l3) && (( !p16_l2) && (p16_l0 && p16_l1)))))))) && ((( !v2) && (_x_p16_c == 0.0)) || ( !(((delta == 0.0) && p16_evt) && ((( !p16_l3) && (( !p16_l2) && (p16_l0 && p16_l1))) && (( !_x_p16_l3) && (_x_p16_l2 && (( !_x_p16_l0) && ( !_x_p16_l1))))))))) && (((_x_v2 && (( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l0 && ( !_x_p16_l1))))) && ((v1 == _x_v1) && (_x_p16_c == 0.0))) || ( !((( !p16_l3) && (p16_l2 && (( !p16_l0) && ( !p16_l1)))) && ((delta == 0.0) && p16_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p16_c == _x_p16_c) && ((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) || (( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l1 && ( !_x_p16_l0))))))) || ( !((( !p16_l3) && (p16_l2 && (p16_l0 && ( !p16_l1)))) && ((delta == 0.0) && p16_evt))))) && (( !(v1 == 17)) || ( !(((delta == 0.0) && p16_evt) && ((( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))) && (( !p16_l3) && (p16_l2 && (p16_l0 && ( !p16_l1))))))))) && ((v1 == 17) || ( !(((delta == 0.0) && p16_evt) && ((( !p16_l3) && (p16_l2 && (p16_l0 && ( !p16_l1)))) && (( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l1 && ( !_x_p16_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p16_l3) && (_x_p16_l2 && (_x_p16_l0 && _x_p16_l1))) && (_x_p16_c == 0.0))) || ( !((( !p16_l3) && (p16_l2 && (p16_l1 && ( !p16_l0)))) && ((delta == 0.0) && p16_evt))))) && ((((v1 == _x_v1) && (_x_p16_c == 0.0)) && (( !_x_v2) && (_x_p16_l3 && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1)))))) || ( !((( !p16_l3) && (p16_l2 && (p16_l0 && p16_l1))) && ((delta == 0.0) && p16_evt))))) && ((((_x_v1 == 0) && (( !_x_p16_l3) && (( !_x_p16_l2) && (( !_x_p16_l0) && ( !_x_p16_l1))))) && ((v2 == _x_v2) && (p16_c == _x_p16_c))) || ( !((p16_l3 && (( !p16_l2) && (( !p16_l0) && ( !p16_l1)))) && ((delta == 0.0) && p16_evt))))) && (((((((((((((((((((((_x_p15_l3 && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) || ((( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l0 && _x_p15_l1))) || ((( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l1 && ( !_x_p15_l0)))) || ((( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l0 && ( !_x_p15_l1)))) || ((( !_x_p15_l3) && (_x_p15_l2 && (( !_x_p15_l0) && ( !_x_p15_l1)))) || ((( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && _x_p15_l1))) || ((( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l1 && ( !_x_p15_l0)))) || ((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) || (( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && ( !_x_p15_l1)))))))))))) && ((_x_p15_c <= 16.0) || ( !(((( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && ( !_x_p15_l1)))) || (( !_x_p15_l3) && (_x_p15_l2 && (( !_x_p15_l0) && ( !_x_p15_l1))))) || ((( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l0 && _x_p15_l1))) || (_x_p15_l3 && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1))))))))) && ((delta <= 0.0) || (((((p15_l0 == _x_p15_l0) && (p15_l1 == _x_p15_l1)) && (p15_l2 == _x_p15_l2)) && (p15_l3 == _x_p15_l3)) && ((delta + (p15_c + (-1.0 * _x_p15_c))) == 0.0)))) && (p15_evt || (((((p15_l0 == _x_p15_l0) && (p15_l1 == _x_p15_l1)) && (p15_l2 == _x_p15_l2)) && (p15_l3 == _x_p15_l3)) && ((delta + (p15_c + (-1.0 * _x_p15_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && ( !_x_p15_l1))))) && ((v2 == _x_v2) && (_x_p15_c == 0.0)))) || ( !((( !p15_l3) && (( !p15_l2) && (( !p15_l0) && ( !p15_l1)))) && ((delta == 0.0) && p15_evt))))) && ((((v2 == _x_v2) && (_x_p15_c == 0.0)) && ((( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l1 && ( !_x_p15_l0)))) && (_x_v1 == 16))) || ( !((( !p15_l3) && (( !p15_l2) && (p15_l0 && ( !p15_l1)))) && ((delta == 0.0) && p15_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) || (( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && _x_p15_l1)))) && (p15_c == _x_p15_c))) || ( !((( !p15_l3) && (( !p15_l2) && (p15_l1 && ( !p15_l0)))) && ((delta == 0.0) && p15_evt))))) && (( !(v1 == 16)) || ( !((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) && ((( !p15_l3) && (( !p15_l2) && (p15_l1 && ( !p15_l0)))) && ((delta == 0.0) && p15_evt)))))) && (((v1 == 16) && ( !(p15_c <= 16.0))) || ( !((( !_x_p15_l3) && (( !_x_p15_l2) && (_x_p15_l0 && _x_p15_l1))) && ((( !p15_l3) && (( !p15_l2) && (p15_l1 && ( !p15_l0)))) && ((delta == 0.0) && p15_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) || (( !_x_p15_l3) && (_x_p15_l2 && (( !_x_p15_l0) && ( !_x_p15_l1)))))) || ( !((( !p15_l3) && (( !p15_l2) && (p15_l0 && p15_l1))) && ((delta == 0.0) && p15_evt))))) && ((v2 && (p15_c == _x_p15_c)) || ( !(((delta == 0.0) && p15_evt) && ((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) && (( !p15_l3) && (( !p15_l2) && (p15_l0 && p15_l1)))))))) && ((( !v2) && (_x_p15_c == 0.0)) || ( !(((delta == 0.0) && p15_evt) && ((( !p15_l3) && (( !p15_l2) && (p15_l0 && p15_l1))) && (( !_x_p15_l3) && (_x_p15_l2 && (( !_x_p15_l0) && ( !_x_p15_l1))))))))) && (((_x_v2 && (( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l0 && ( !_x_p15_l1))))) && ((v1 == _x_v1) && (_x_p15_c == 0.0))) || ( !((( !p15_l3) && (p15_l2 && (( !p15_l0) && ( !p15_l1)))) && ((delta == 0.0) && p15_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p15_c == _x_p15_c) && ((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) || (( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l1 && ( !_x_p15_l0))))))) || ( !((( !p15_l3) && (p15_l2 && (p15_l0 && ( !p15_l1)))) && ((delta == 0.0) && p15_evt))))) && (( !(v1 == 16)) || ( !(((delta == 0.0) && p15_evt) && ((( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))) && (( !p15_l3) && (p15_l2 && (p15_l0 && ( !p15_l1))))))))) && ((v1 == 16) || ( !(((delta == 0.0) && p15_evt) && ((( !p15_l3) && (p15_l2 && (p15_l0 && ( !p15_l1)))) && (( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l1 && ( !_x_p15_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p15_l3) && (_x_p15_l2 && (_x_p15_l0 && _x_p15_l1))) && (_x_p15_c == 0.0))) || ( !((( !p15_l3) && (p15_l2 && (p15_l1 && ( !p15_l0)))) && ((delta == 0.0) && p15_evt))))) && ((((v1 == _x_v1) && (_x_p15_c == 0.0)) && (( !_x_v2) && (_x_p15_l3 && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1)))))) || ( !((( !p15_l3) && (p15_l2 && (p15_l0 && p15_l1))) && ((delta == 0.0) && p15_evt))))) && ((((_x_v1 == 0) && (( !_x_p15_l3) && (( !_x_p15_l2) && (( !_x_p15_l0) && ( !_x_p15_l1))))) && ((v2 == _x_v2) && (p15_c == _x_p15_c))) || ( !((p15_l3 && (( !p15_l2) && (( !p15_l0) && ( !p15_l1)))) && ((delta == 0.0) && p15_evt))))) && (((((((((((((((((((((_x_p14_l3 && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) || ((( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l0 && _x_p14_l1))) || ((( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l1 && ( !_x_p14_l0)))) || ((( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l0 && ( !_x_p14_l1)))) || ((( !_x_p14_l3) && (_x_p14_l2 && (( !_x_p14_l0) && ( !_x_p14_l1)))) || ((( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && _x_p14_l1))) || ((( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l1 && ( !_x_p14_l0)))) || ((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) || (( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && ( !_x_p14_l1)))))))))))) && ((_x_p14_c <= 16.0) || ( !(((( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && ( !_x_p14_l1)))) || (( !_x_p14_l3) && (_x_p14_l2 && (( !_x_p14_l0) && ( !_x_p14_l1))))) || ((( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l0 && _x_p14_l1))) || (_x_p14_l3 && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1))))))))) && ((delta <= 0.0) || (((((p14_l0 == _x_p14_l0) && (p14_l1 == _x_p14_l1)) && (p14_l2 == _x_p14_l2)) && (p14_l3 == _x_p14_l3)) && ((delta + (p14_c + (-1.0 * _x_p14_c))) == 0.0)))) && (p14_evt || (((((p14_l0 == _x_p14_l0) && (p14_l1 == _x_p14_l1)) && (p14_l2 == _x_p14_l2)) && (p14_l3 == _x_p14_l3)) && ((delta + (p14_c + (-1.0 * _x_p14_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && ( !_x_p14_l1))))) && ((v2 == _x_v2) && (_x_p14_c == 0.0)))) || ( !((( !p14_l3) && (( !p14_l2) && (( !p14_l0) && ( !p14_l1)))) && ((delta == 0.0) && p14_evt))))) && ((((v2 == _x_v2) && (_x_p14_c == 0.0)) && ((( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l1 && ( !_x_p14_l0)))) && (_x_v1 == 15))) || ( !((( !p14_l3) && (( !p14_l2) && (p14_l0 && ( !p14_l1)))) && ((delta == 0.0) && p14_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) || (( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && _x_p14_l1)))) && (p14_c == _x_p14_c))) || ( !((( !p14_l3) && (( !p14_l2) && (p14_l1 && ( !p14_l0)))) && ((delta == 0.0) && p14_evt))))) && (( !(v1 == 15)) || ( !((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) && ((( !p14_l3) && (( !p14_l2) && (p14_l1 && ( !p14_l0)))) && ((delta == 0.0) && p14_evt)))))) && (((v1 == 15) && ( !(p14_c <= 16.0))) || ( !((( !_x_p14_l3) && (( !_x_p14_l2) && (_x_p14_l0 && _x_p14_l1))) && ((( !p14_l3) && (( !p14_l2) && (p14_l1 && ( !p14_l0)))) && ((delta == 0.0) && p14_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) || (( !_x_p14_l3) && (_x_p14_l2 && (( !_x_p14_l0) && ( !_x_p14_l1)))))) || ( !((( !p14_l3) && (( !p14_l2) && (p14_l0 && p14_l1))) && ((delta == 0.0) && p14_evt))))) && ((v2 && (p14_c == _x_p14_c)) || ( !(((delta == 0.0) && p14_evt) && ((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) && (( !p14_l3) && (( !p14_l2) && (p14_l0 && p14_l1)))))))) && ((( !v2) && (_x_p14_c == 0.0)) || ( !(((delta == 0.0) && p14_evt) && ((( !p14_l3) && (( !p14_l2) && (p14_l0 && p14_l1))) && (( !_x_p14_l3) && (_x_p14_l2 && (( !_x_p14_l0) && ( !_x_p14_l1))))))))) && (((_x_v2 && (( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l0 && ( !_x_p14_l1))))) && ((v1 == _x_v1) && (_x_p14_c == 0.0))) || ( !((( !p14_l3) && (p14_l2 && (( !p14_l0) && ( !p14_l1)))) && ((delta == 0.0) && p14_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p14_c == _x_p14_c) && ((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) || (( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l1 && ( !_x_p14_l0))))))) || ( !((( !p14_l3) && (p14_l2 && (p14_l0 && ( !p14_l1)))) && ((delta == 0.0) && p14_evt))))) && (( !(v1 == 15)) || ( !(((delta == 0.0) && p14_evt) && ((( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))) && (( !p14_l3) && (p14_l2 && (p14_l0 && ( !p14_l1))))))))) && ((v1 == 15) || ( !(((delta == 0.0) && p14_evt) && ((( !p14_l3) && (p14_l2 && (p14_l0 && ( !p14_l1)))) && (( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l1 && ( !_x_p14_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p14_l3) && (_x_p14_l2 && (_x_p14_l0 && _x_p14_l1))) && (_x_p14_c == 0.0))) || ( !((( !p14_l3) && (p14_l2 && (p14_l1 && ( !p14_l0)))) && ((delta == 0.0) && p14_evt))))) && ((((v1 == _x_v1) && (_x_p14_c == 0.0)) && (( !_x_v2) && (_x_p14_l3 && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1)))))) || ( !((( !p14_l3) && (p14_l2 && (p14_l0 && p14_l1))) && ((delta == 0.0) && p14_evt))))) && ((((_x_v1 == 0) && (( !_x_p14_l3) && (( !_x_p14_l2) && (( !_x_p14_l0) && ( !_x_p14_l1))))) && ((v2 == _x_v2) && (p14_c == _x_p14_c))) || ( !((p14_l3 && (( !p14_l2) && (( !p14_l0) && ( !p14_l1)))) && ((delta == 0.0) && p14_evt))))) && (((((((((((((((((((((_x_p13_l3 && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) || ((( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l0 && _x_p13_l1))) || ((( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l1 && ( !_x_p13_l0)))) || ((( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l0 && ( !_x_p13_l1)))) || ((( !_x_p13_l3) && (_x_p13_l2 && (( !_x_p13_l0) && ( !_x_p13_l1)))) || ((( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && _x_p13_l1))) || ((( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l1 && ( !_x_p13_l0)))) || ((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) || (( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && ( !_x_p13_l1)))))))))))) && ((_x_p13_c <= 16.0) || ( !(((( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && ( !_x_p13_l1)))) || (( !_x_p13_l3) && (_x_p13_l2 && (( !_x_p13_l0) && ( !_x_p13_l1))))) || ((( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l0 && _x_p13_l1))) || (_x_p13_l3 && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1))))))))) && ((delta <= 0.0) || (((((p13_l0 == _x_p13_l0) && (p13_l1 == _x_p13_l1)) && (p13_l2 == _x_p13_l2)) && (p13_l3 == _x_p13_l3)) && ((delta + (p13_c + (-1.0 * _x_p13_c))) == 0.0)))) && (p13_evt || (((((p13_l0 == _x_p13_l0) && (p13_l1 == _x_p13_l1)) && (p13_l2 == _x_p13_l2)) && (p13_l3 == _x_p13_l3)) && ((delta + (p13_c + (-1.0 * _x_p13_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && ( !_x_p13_l1))))) && ((v2 == _x_v2) && (_x_p13_c == 0.0)))) || ( !((( !p13_l3) && (( !p13_l2) && (( !p13_l0) && ( !p13_l1)))) && ((delta == 0.0) && p13_evt))))) && ((((v2 == _x_v2) && (_x_p13_c == 0.0)) && ((( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l1 && ( !_x_p13_l0)))) && (_x_v1 == 14))) || ( !((( !p13_l3) && (( !p13_l2) && (p13_l0 && ( !p13_l1)))) && ((delta == 0.0) && p13_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) || (( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && _x_p13_l1)))) && (p13_c == _x_p13_c))) || ( !((( !p13_l3) && (( !p13_l2) && (p13_l1 && ( !p13_l0)))) && ((delta == 0.0) && p13_evt))))) && (( !(v1 == 14)) || ( !((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) && ((( !p13_l3) && (( !p13_l2) && (p13_l1 && ( !p13_l0)))) && ((delta == 0.0) && p13_evt)))))) && (((v1 == 14) && ( !(p13_c <= 16.0))) || ( !((( !_x_p13_l3) && (( !_x_p13_l2) && (_x_p13_l0 && _x_p13_l1))) && ((( !p13_l3) && (( !p13_l2) && (p13_l1 && ( !p13_l0)))) && ((delta == 0.0) && p13_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) || (( !_x_p13_l3) && (_x_p13_l2 && (( !_x_p13_l0) && ( !_x_p13_l1)))))) || ( !((( !p13_l3) && (( !p13_l2) && (p13_l0 && p13_l1))) && ((delta == 0.0) && p13_evt))))) && ((v2 && (p13_c == _x_p13_c)) || ( !(((delta == 0.0) && p13_evt) && ((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) && (( !p13_l3) && (( !p13_l2) && (p13_l0 && p13_l1)))))))) && ((( !v2) && (_x_p13_c == 0.0)) || ( !(((delta == 0.0) && p13_evt) && ((( !p13_l3) && (( !p13_l2) && (p13_l0 && p13_l1))) && (( !_x_p13_l3) && (_x_p13_l2 && (( !_x_p13_l0) && ( !_x_p13_l1))))))))) && (((_x_v2 && (( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l0 && ( !_x_p13_l1))))) && ((v1 == _x_v1) && (_x_p13_c == 0.0))) || ( !((( !p13_l3) && (p13_l2 && (( !p13_l0) && ( !p13_l1)))) && ((delta == 0.0) && p13_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p13_c == _x_p13_c) && ((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) || (( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l1 && ( !_x_p13_l0))))))) || ( !((( !p13_l3) && (p13_l2 && (p13_l0 && ( !p13_l1)))) && ((delta == 0.0) && p13_evt))))) && (( !(v1 == 14)) || ( !(((delta == 0.0) && p13_evt) && ((( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))) && (( !p13_l3) && (p13_l2 && (p13_l0 && ( !p13_l1))))))))) && ((v1 == 14) || ( !(((delta == 0.0) && p13_evt) && ((( !p13_l3) && (p13_l2 && (p13_l0 && ( !p13_l1)))) && (( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l1 && ( !_x_p13_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p13_l3) && (_x_p13_l2 && (_x_p13_l0 && _x_p13_l1))) && (_x_p13_c == 0.0))) || ( !((( !p13_l3) && (p13_l2 && (p13_l1 && ( !p13_l0)))) && ((delta == 0.0) && p13_evt))))) && ((((v1 == _x_v1) && (_x_p13_c == 0.0)) && (( !_x_v2) && (_x_p13_l3 && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1)))))) || ( !((( !p13_l3) && (p13_l2 && (p13_l0 && p13_l1))) && ((delta == 0.0) && p13_evt))))) && ((((_x_v1 == 0) && (( !_x_p13_l3) && (( !_x_p13_l2) && (( !_x_p13_l0) && ( !_x_p13_l1))))) && ((v2 == _x_v2) && (p13_c == _x_p13_c))) || ( !((p13_l3 && (( !p13_l2) && (( !p13_l0) && ( !p13_l1)))) && ((delta == 0.0) && p13_evt))))) && (((((((((((((((((((((_x_p12_l3 && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) || ((( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l0 && _x_p12_l1))) || ((( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l1 && ( !_x_p12_l0)))) || ((( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l0 && ( !_x_p12_l1)))) || ((( !_x_p12_l3) && (_x_p12_l2 && (( !_x_p12_l0) && ( !_x_p12_l1)))) || ((( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && _x_p12_l1))) || ((( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l1 && ( !_x_p12_l0)))) || ((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) || (( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && ( !_x_p12_l1)))))))))))) && ((_x_p12_c <= 16.0) || ( !(((( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && ( !_x_p12_l1)))) || (( !_x_p12_l3) && (_x_p12_l2 && (( !_x_p12_l0) && ( !_x_p12_l1))))) || ((( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l0 && _x_p12_l1))) || (_x_p12_l3 && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1))))))))) && ((delta <= 0.0) || (((((p12_l0 == _x_p12_l0) && (p12_l1 == _x_p12_l1)) && (p12_l2 == _x_p12_l2)) && (p12_l3 == _x_p12_l3)) && ((delta + (p12_c + (-1.0 * _x_p12_c))) == 0.0)))) && (p12_evt || (((((p12_l0 == _x_p12_l0) && (p12_l1 == _x_p12_l1)) && (p12_l2 == _x_p12_l2)) && (p12_l3 == _x_p12_l3)) && ((delta + (p12_c + (-1.0 * _x_p12_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && ( !_x_p12_l1))))) && ((v2 == _x_v2) && (_x_p12_c == 0.0)))) || ( !((( !p12_l3) && (( !p12_l2) && (( !p12_l0) && ( !p12_l1)))) && ((delta == 0.0) && p12_evt))))) && ((((v2 == _x_v2) && (_x_p12_c == 0.0)) && ((( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l1 && ( !_x_p12_l0)))) && (_x_v1 == 13))) || ( !((( !p12_l3) && (( !p12_l2) && (p12_l0 && ( !p12_l1)))) && ((delta == 0.0) && p12_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) || (( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && _x_p12_l1)))) && (p12_c == _x_p12_c))) || ( !((( !p12_l3) && (( !p12_l2) && (p12_l1 && ( !p12_l0)))) && ((delta == 0.0) && p12_evt))))) && (( !(v1 == 13)) || ( !((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) && ((( !p12_l3) && (( !p12_l2) && (p12_l1 && ( !p12_l0)))) && ((delta == 0.0) && p12_evt)))))) && (((v1 == 13) && ( !(p12_c <= 16.0))) || ( !((( !_x_p12_l3) && (( !_x_p12_l2) && (_x_p12_l0 && _x_p12_l1))) && ((( !p12_l3) && (( !p12_l2) && (p12_l1 && ( !p12_l0)))) && ((delta == 0.0) && p12_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) || (( !_x_p12_l3) && (_x_p12_l2 && (( !_x_p12_l0) && ( !_x_p12_l1)))))) || ( !((( !p12_l3) && (( !p12_l2) && (p12_l0 && p12_l1))) && ((delta == 0.0) && p12_evt))))) && ((v2 && (p12_c == _x_p12_c)) || ( !(((delta == 0.0) && p12_evt) && ((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) && (( !p12_l3) && (( !p12_l2) && (p12_l0 && p12_l1)))))))) && ((( !v2) && (_x_p12_c == 0.0)) || ( !(((delta == 0.0) && p12_evt) && ((( !p12_l3) && (( !p12_l2) && (p12_l0 && p12_l1))) && (( !_x_p12_l3) && (_x_p12_l2 && (( !_x_p12_l0) && ( !_x_p12_l1))))))))) && (((_x_v2 && (( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l0 && ( !_x_p12_l1))))) && ((v1 == _x_v1) && (_x_p12_c == 0.0))) || ( !((( !p12_l3) && (p12_l2 && (( !p12_l0) && ( !p12_l1)))) && ((delta == 0.0) && p12_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p12_c == _x_p12_c) && ((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) || (( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l1 && ( !_x_p12_l0))))))) || ( !((( !p12_l3) && (p12_l2 && (p12_l0 && ( !p12_l1)))) && ((delta == 0.0) && p12_evt))))) && (( !(v1 == 13)) || ( !(((delta == 0.0) && p12_evt) && ((( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))) && (( !p12_l3) && (p12_l2 && (p12_l0 && ( !p12_l1))))))))) && ((v1 == 13) || ( !(((delta == 0.0) && p12_evt) && ((( !p12_l3) && (p12_l2 && (p12_l0 && ( !p12_l1)))) && (( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l1 && ( !_x_p12_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p12_l3) && (_x_p12_l2 && (_x_p12_l0 && _x_p12_l1))) && (_x_p12_c == 0.0))) || ( !((( !p12_l3) && (p12_l2 && (p12_l1 && ( !p12_l0)))) && ((delta == 0.0) && p12_evt))))) && ((((v1 == _x_v1) && (_x_p12_c == 0.0)) && (( !_x_v2) && (_x_p12_l3 && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1)))))) || ( !((( !p12_l3) && (p12_l2 && (p12_l0 && p12_l1))) && ((delta == 0.0) && p12_evt))))) && ((((_x_v1 == 0) && (( !_x_p12_l3) && (( !_x_p12_l2) && (( !_x_p12_l0) && ( !_x_p12_l1))))) && ((v2 == _x_v2) && (p12_c == _x_p12_c))) || ( !((p12_l3 && (( !p12_l2) && (( !p12_l0) && ( !p12_l1)))) && ((delta == 0.0) && p12_evt))))) && (((((((((((((((((((((_x_p11_l3 && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) || ((( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l0 && _x_p11_l1))) || ((( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l1 && ( !_x_p11_l0)))) || ((( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l0 && ( !_x_p11_l1)))) || ((( !_x_p11_l3) && (_x_p11_l2 && (( !_x_p11_l0) && ( !_x_p11_l1)))) || ((( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && _x_p11_l1))) || ((( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l1 && ( !_x_p11_l0)))) || ((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) || (( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && ( !_x_p11_l1)))))))))))) && ((_x_p11_c <= 16.0) || ( !(((( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && ( !_x_p11_l1)))) || (( !_x_p11_l3) && (_x_p11_l2 && (( !_x_p11_l0) && ( !_x_p11_l1))))) || ((( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l0 && _x_p11_l1))) || (_x_p11_l3 && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1))))))))) && ((delta <= 0.0) || (((((p11_l0 == _x_p11_l0) && (p11_l1 == _x_p11_l1)) && (p11_l2 == _x_p11_l2)) && (p11_l3 == _x_p11_l3)) && ((delta + (p11_c + (-1.0 * _x_p11_c))) == 0.0)))) && (p11_evt || (((((p11_l0 == _x_p11_l0) && (p11_l1 == _x_p11_l1)) && (p11_l2 == _x_p11_l2)) && (p11_l3 == _x_p11_l3)) && ((delta + (p11_c + (-1.0 * _x_p11_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && ( !_x_p11_l1))))) && ((v2 == _x_v2) && (_x_p11_c == 0.0)))) || ( !((( !p11_l3) && (( !p11_l2) && (( !p11_l0) && ( !p11_l1)))) && ((delta == 0.0) && p11_evt))))) && ((((v2 == _x_v2) && (_x_p11_c == 0.0)) && ((( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l1 && ( !_x_p11_l0)))) && (_x_v1 == 12))) || ( !((( !p11_l3) && (( !p11_l2) && (p11_l0 && ( !p11_l1)))) && ((delta == 0.0) && p11_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) || (( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && _x_p11_l1)))) && (p11_c == _x_p11_c))) || ( !((( !p11_l3) && (( !p11_l2) && (p11_l1 && ( !p11_l0)))) && ((delta == 0.0) && p11_evt))))) && (( !(v1 == 12)) || ( !((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) && ((( !p11_l3) && (( !p11_l2) && (p11_l1 && ( !p11_l0)))) && ((delta == 0.0) && p11_evt)))))) && (((v1 == 12) && ( !(p11_c <= 16.0))) || ( !((( !_x_p11_l3) && (( !_x_p11_l2) && (_x_p11_l0 && _x_p11_l1))) && ((( !p11_l3) && (( !p11_l2) && (p11_l1 && ( !p11_l0)))) && ((delta == 0.0) && p11_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) || (( !_x_p11_l3) && (_x_p11_l2 && (( !_x_p11_l0) && ( !_x_p11_l1)))))) || ( !((( !p11_l3) && (( !p11_l2) && (p11_l0 && p11_l1))) && ((delta == 0.0) && p11_evt))))) && ((v2 && (p11_c == _x_p11_c)) || ( !(((delta == 0.0) && p11_evt) && ((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) && (( !p11_l3) && (( !p11_l2) && (p11_l0 && p11_l1)))))))) && ((( !v2) && (_x_p11_c == 0.0)) || ( !(((delta == 0.0) && p11_evt) && ((( !p11_l3) && (( !p11_l2) && (p11_l0 && p11_l1))) && (( !_x_p11_l3) && (_x_p11_l2 && (( !_x_p11_l0) && ( !_x_p11_l1))))))))) && (((_x_v2 && (( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l0 && ( !_x_p11_l1))))) && ((v1 == _x_v1) && (_x_p11_c == 0.0))) || ( !((( !p11_l3) && (p11_l2 && (( !p11_l0) && ( !p11_l1)))) && ((delta == 0.0) && p11_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p11_c == _x_p11_c) && ((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) || (( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l1 && ( !_x_p11_l0))))))) || ( !((( !p11_l3) && (p11_l2 && (p11_l0 && ( !p11_l1)))) && ((delta == 0.0) && p11_evt))))) && (( !(v1 == 12)) || ( !(((delta == 0.0) && p11_evt) && ((( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))) && (( !p11_l3) && (p11_l2 && (p11_l0 && ( !p11_l1))))))))) && ((v1 == 12) || ( !(((delta == 0.0) && p11_evt) && ((( !p11_l3) && (p11_l2 && (p11_l0 && ( !p11_l1)))) && (( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l1 && ( !_x_p11_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p11_l3) && (_x_p11_l2 && (_x_p11_l0 && _x_p11_l1))) && (_x_p11_c == 0.0))) || ( !((( !p11_l3) && (p11_l2 && (p11_l1 && ( !p11_l0)))) && ((delta == 0.0) && p11_evt))))) && ((((v1 == _x_v1) && (_x_p11_c == 0.0)) && (( !_x_v2) && (_x_p11_l3 && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1)))))) || ( !((( !p11_l3) && (p11_l2 && (p11_l0 && p11_l1))) && ((delta == 0.0) && p11_evt))))) && ((((_x_v1 == 0) && (( !_x_p11_l3) && (( !_x_p11_l2) && (( !_x_p11_l0) && ( !_x_p11_l1))))) && ((v2 == _x_v2) && (p11_c == _x_p11_c))) || ( !((p11_l3 && (( !p11_l2) && (( !p11_l0) && ( !p11_l1)))) && ((delta == 0.0) && p11_evt))))) && (((((((((((((((((((((_x_p10_l3 && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) || ((( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l0 && _x_p10_l1))) || ((( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l1 && ( !_x_p10_l0)))) || ((( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l0 && ( !_x_p10_l1)))) || ((( !_x_p10_l3) && (_x_p10_l2 && (( !_x_p10_l0) && ( !_x_p10_l1)))) || ((( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && _x_p10_l1))) || ((( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l1 && ( !_x_p10_l0)))) || ((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) || (( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && ( !_x_p10_l1)))))))))))) && ((_x_p10_c <= 16.0) || ( !(((( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && ( !_x_p10_l1)))) || (( !_x_p10_l3) && (_x_p10_l2 && (( !_x_p10_l0) && ( !_x_p10_l1))))) || ((( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l0 && _x_p10_l1))) || (_x_p10_l3 && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1))))))))) && ((delta <= 0.0) || (((((p10_l0 == _x_p10_l0) && (p10_l1 == _x_p10_l1)) && (p10_l2 == _x_p10_l2)) && (p10_l3 == _x_p10_l3)) && ((delta + (p10_c + (-1.0 * _x_p10_c))) == 0.0)))) && (p10_evt || (((((p10_l0 == _x_p10_l0) && (p10_l1 == _x_p10_l1)) && (p10_l2 == _x_p10_l2)) && (p10_l3 == _x_p10_l3)) && ((delta + (p10_c + (-1.0 * _x_p10_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && ( !_x_p10_l1))))) && ((v2 == _x_v2) && (_x_p10_c == 0.0)))) || ( !((( !p10_l3) && (( !p10_l2) && (( !p10_l0) && ( !p10_l1)))) && ((delta == 0.0) && p10_evt))))) && ((((v2 == _x_v2) && (_x_p10_c == 0.0)) && ((( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l1 && ( !_x_p10_l0)))) && (_x_v1 == 11))) || ( !((( !p10_l3) && (( !p10_l2) && (p10_l0 && ( !p10_l1)))) && ((delta == 0.0) && p10_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) || (( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && _x_p10_l1)))) && (p10_c == _x_p10_c))) || ( !((( !p10_l3) && (( !p10_l2) && (p10_l1 && ( !p10_l0)))) && ((delta == 0.0) && p10_evt))))) && (( !(v1 == 11)) || ( !((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) && ((( !p10_l3) && (( !p10_l2) && (p10_l1 && ( !p10_l0)))) && ((delta == 0.0) && p10_evt)))))) && (((v1 == 11) && ( !(p10_c <= 16.0))) || ( !((( !_x_p10_l3) && (( !_x_p10_l2) && (_x_p10_l0 && _x_p10_l1))) && ((( !p10_l3) && (( !p10_l2) && (p10_l1 && ( !p10_l0)))) && ((delta == 0.0) && p10_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) || (( !_x_p10_l3) && (_x_p10_l2 && (( !_x_p10_l0) && ( !_x_p10_l1)))))) || ( !((( !p10_l3) && (( !p10_l2) && (p10_l0 && p10_l1))) && ((delta == 0.0) && p10_evt))))) && ((v2 && (p10_c == _x_p10_c)) || ( !(((delta == 0.0) && p10_evt) && ((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) && (( !p10_l3) && (( !p10_l2) && (p10_l0 && p10_l1)))))))) && ((( !v2) && (_x_p10_c == 0.0)) || ( !(((delta == 0.0) && p10_evt) && ((( !p10_l3) && (( !p10_l2) && (p10_l0 && p10_l1))) && (( !_x_p10_l3) && (_x_p10_l2 && (( !_x_p10_l0) && ( !_x_p10_l1))))))))) && (((_x_v2 && (( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l0 && ( !_x_p10_l1))))) && ((v1 == _x_v1) && (_x_p10_c == 0.0))) || ( !((( !p10_l3) && (p10_l2 && (( !p10_l0) && ( !p10_l1)))) && ((delta == 0.0) && p10_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p10_c == _x_p10_c) && ((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) || (( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l1 && ( !_x_p10_l0))))))) || ( !((( !p10_l3) && (p10_l2 && (p10_l0 && ( !p10_l1)))) && ((delta == 0.0) && p10_evt))))) && (( !(v1 == 11)) || ( !(((delta == 0.0) && p10_evt) && ((( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))) && (( !p10_l3) && (p10_l2 && (p10_l0 && ( !p10_l1))))))))) && ((v1 == 11) || ( !(((delta == 0.0) && p10_evt) && ((( !p10_l3) && (p10_l2 && (p10_l0 && ( !p10_l1)))) && (( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l1 && ( !_x_p10_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p10_l3) && (_x_p10_l2 && (_x_p10_l0 && _x_p10_l1))) && (_x_p10_c == 0.0))) || ( !((( !p10_l3) && (p10_l2 && (p10_l1 && ( !p10_l0)))) && ((delta == 0.0) && p10_evt))))) && ((((v1 == _x_v1) && (_x_p10_c == 0.0)) && (( !_x_v2) && (_x_p10_l3 && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1)))))) || ( !((( !p10_l3) && (p10_l2 && (p10_l0 && p10_l1))) && ((delta == 0.0) && p10_evt))))) && ((((_x_v1 == 0) && (( !_x_p10_l3) && (( !_x_p10_l2) && (( !_x_p10_l0) && ( !_x_p10_l1))))) && ((v2 == _x_v2) && (p10_c == _x_p10_c))) || ( !((p10_l3 && (( !p10_l2) && (( !p10_l0) && ( !p10_l1)))) && ((delta == 0.0) && p10_evt))))) && (((((((((((((((((((((_x_p9_l3 && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) || ((( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l0 && _x_p9_l1))) || ((( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l1 && ( !_x_p9_l0)))) || ((( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l0 && ( !_x_p9_l1)))) || ((( !_x_p9_l3) && (_x_p9_l2 && (( !_x_p9_l0) && ( !_x_p9_l1)))) || ((( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && _x_p9_l1))) || ((( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l1 && ( !_x_p9_l0)))) || ((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) || (( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && ( !_x_p9_l1)))))))))))) && ((_x_p9_c <= 16.0) || ( !(((( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && ( !_x_p9_l1)))) || (( !_x_p9_l3) && (_x_p9_l2 && (( !_x_p9_l0) && ( !_x_p9_l1))))) || ((( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l0 && _x_p9_l1))) || (_x_p9_l3 && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1))))))))) && ((delta <= 0.0) || (((((p9_l0 == _x_p9_l0) && (p9_l1 == _x_p9_l1)) && (p9_l2 == _x_p9_l2)) && (p9_l3 == _x_p9_l3)) && ((delta + (p9_c + (-1.0 * _x_p9_c))) == 0.0)))) && (p9_evt || (((((p9_l0 == _x_p9_l0) && (p9_l1 == _x_p9_l1)) && (p9_l2 == _x_p9_l2)) && (p9_l3 == _x_p9_l3)) && ((delta + (p9_c + (-1.0 * _x_p9_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && ( !_x_p9_l1))))) && ((v2 == _x_v2) && (_x_p9_c == 0.0)))) || ( !((( !p9_l3) && (( !p9_l2) && (( !p9_l0) && ( !p9_l1)))) && ((delta == 0.0) && p9_evt))))) && ((((v2 == _x_v2) && (_x_p9_c == 0.0)) && ((( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l1 && ( !_x_p9_l0)))) && (_x_v1 == 10))) || ( !((( !p9_l3) && (( !p9_l2) && (p9_l0 && ( !p9_l1)))) && ((delta == 0.0) && p9_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) || (( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && _x_p9_l1)))) && (p9_c == _x_p9_c))) || ( !((( !p9_l3) && (( !p9_l2) && (p9_l1 && ( !p9_l0)))) && ((delta == 0.0) && p9_evt))))) && (( !(v1 == 10)) || ( !((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) && ((( !p9_l3) && (( !p9_l2) && (p9_l1 && ( !p9_l0)))) && ((delta == 0.0) && p9_evt)))))) && (((v1 == 10) && ( !(p9_c <= 16.0))) || ( !((( !_x_p9_l3) && (( !_x_p9_l2) && (_x_p9_l0 && _x_p9_l1))) && ((( !p9_l3) && (( !p9_l2) && (p9_l1 && ( !p9_l0)))) && ((delta == 0.0) && p9_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) || (( !_x_p9_l3) && (_x_p9_l2 && (( !_x_p9_l0) && ( !_x_p9_l1)))))) || ( !((( !p9_l3) && (( !p9_l2) && (p9_l0 && p9_l1))) && ((delta == 0.0) && p9_evt))))) && ((v2 && (p9_c == _x_p9_c)) || ( !(((delta == 0.0) && p9_evt) && ((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) && (( !p9_l3) && (( !p9_l2) && (p9_l0 && p9_l1)))))))) && ((( !v2) && (_x_p9_c == 0.0)) || ( !(((delta == 0.0) && p9_evt) && ((( !p9_l3) && (( !p9_l2) && (p9_l0 && p9_l1))) && (( !_x_p9_l3) && (_x_p9_l2 && (( !_x_p9_l0) && ( !_x_p9_l1))))))))) && (((_x_v2 && (( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l0 && ( !_x_p9_l1))))) && ((v1 == _x_v1) && (_x_p9_c == 0.0))) || ( !((( !p9_l3) && (p9_l2 && (( !p9_l0) && ( !p9_l1)))) && ((delta == 0.0) && p9_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p9_c == _x_p9_c) && ((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) || (( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l1 && ( !_x_p9_l0))))))) || ( !((( !p9_l3) && (p9_l2 && (p9_l0 && ( !p9_l1)))) && ((delta == 0.0) && p9_evt))))) && (( !(v1 == 10)) || ( !(((delta == 0.0) && p9_evt) && ((( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))) && (( !p9_l3) && (p9_l2 && (p9_l0 && ( !p9_l1))))))))) && ((v1 == 10) || ( !(((delta == 0.0) && p9_evt) && ((( !p9_l3) && (p9_l2 && (p9_l0 && ( !p9_l1)))) && (( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l1 && ( !_x_p9_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p9_l3) && (_x_p9_l2 && (_x_p9_l0 && _x_p9_l1))) && (_x_p9_c == 0.0))) || ( !((( !p9_l3) && (p9_l2 && (p9_l1 && ( !p9_l0)))) && ((delta == 0.0) && p9_evt))))) && ((((v1 == _x_v1) && (_x_p9_c == 0.0)) && (( !_x_v2) && (_x_p9_l3 && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1)))))) || ( !((( !p9_l3) && (p9_l2 && (p9_l0 && p9_l1))) && ((delta == 0.0) && p9_evt))))) && ((((_x_v1 == 0) && (( !_x_p9_l3) && (( !_x_p9_l2) && (( !_x_p9_l0) && ( !_x_p9_l1))))) && ((v2 == _x_v2) && (p9_c == _x_p9_c))) || ( !((p9_l3 && (( !p9_l2) && (( !p9_l0) && ( !p9_l1)))) && ((delta == 0.0) && p9_evt))))) && (((((((((((((((((((((_x_p8_l3 && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) || ((( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l0 && _x_p8_l1))) || ((( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l1 && ( !_x_p8_l0)))) || ((( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l0 && ( !_x_p8_l1)))) || ((( !_x_p8_l3) && (_x_p8_l2 && (( !_x_p8_l0) && ( !_x_p8_l1)))) || ((( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && _x_p8_l1))) || ((( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l1 && ( !_x_p8_l0)))) || ((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) || (( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && ( !_x_p8_l1)))))))))))) && ((_x_p8_c <= 16.0) || ( !(((( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && ( !_x_p8_l1)))) || (( !_x_p8_l3) && (_x_p8_l2 && (( !_x_p8_l0) && ( !_x_p8_l1))))) || ((( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l0 && _x_p8_l1))) || (_x_p8_l3 && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1))))))))) && ((delta <= 0.0) || (((((p8_l0 == _x_p8_l0) && (p8_l1 == _x_p8_l1)) && (p8_l2 == _x_p8_l2)) && (p8_l3 == _x_p8_l3)) && ((delta + (p8_c + (-1.0 * _x_p8_c))) == 0.0)))) && (p8_evt || (((((p8_l0 == _x_p8_l0) && (p8_l1 == _x_p8_l1)) && (p8_l2 == _x_p8_l2)) && (p8_l3 == _x_p8_l3)) && ((delta + (p8_c + (-1.0 * _x_p8_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && ( !_x_p8_l1))))) && ((v2 == _x_v2) && (_x_p8_c == 0.0)))) || ( !((( !p8_l3) && (( !p8_l2) && (( !p8_l0) && ( !p8_l1)))) && ((delta == 0.0) && p8_evt))))) && ((((v2 == _x_v2) && (_x_p8_c == 0.0)) && ((( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l1 && ( !_x_p8_l0)))) && (_x_v1 == 9))) || ( !((( !p8_l3) && (( !p8_l2) && (p8_l0 && ( !p8_l1)))) && ((delta == 0.0) && p8_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) || (( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && _x_p8_l1)))) && (p8_c == _x_p8_c))) || ( !((( !p8_l3) && (( !p8_l2) && (p8_l1 && ( !p8_l0)))) && ((delta == 0.0) && p8_evt))))) && (( !(v1 == 9)) || ( !((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) && ((( !p8_l3) && (( !p8_l2) && (p8_l1 && ( !p8_l0)))) && ((delta == 0.0) && p8_evt)))))) && (((v1 == 9) && ( !(p8_c <= 16.0))) || ( !((( !_x_p8_l3) && (( !_x_p8_l2) && (_x_p8_l0 && _x_p8_l1))) && ((( !p8_l3) && (( !p8_l2) && (p8_l1 && ( !p8_l0)))) && ((delta == 0.0) && p8_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) || (( !_x_p8_l3) && (_x_p8_l2 && (( !_x_p8_l0) && ( !_x_p8_l1)))))) || ( !((( !p8_l3) && (( !p8_l2) && (p8_l0 && p8_l1))) && ((delta == 0.0) && p8_evt))))) && ((v2 && (p8_c == _x_p8_c)) || ( !(((delta == 0.0) && p8_evt) && ((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) && (( !p8_l3) && (( !p8_l2) && (p8_l0 && p8_l1)))))))) && ((( !v2) && (_x_p8_c == 0.0)) || ( !(((delta == 0.0) && p8_evt) && ((( !p8_l3) && (( !p8_l2) && (p8_l0 && p8_l1))) && (( !_x_p8_l3) && (_x_p8_l2 && (( !_x_p8_l0) && ( !_x_p8_l1))))))))) && (((_x_v2 && (( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l0 && ( !_x_p8_l1))))) && ((v1 == _x_v1) && (_x_p8_c == 0.0))) || ( !((( !p8_l3) && (p8_l2 && (( !p8_l0) && ( !p8_l1)))) && ((delta == 0.0) && p8_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p8_c == _x_p8_c) && ((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) || (( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l1 && ( !_x_p8_l0))))))) || ( !((( !p8_l3) && (p8_l2 && (p8_l0 && ( !p8_l1)))) && ((delta == 0.0) && p8_evt))))) && (( !(v1 == 9)) || ( !(((delta == 0.0) && p8_evt) && ((( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))) && (( !p8_l3) && (p8_l2 && (p8_l0 && ( !p8_l1))))))))) && ((v1 == 9) || ( !(((delta == 0.0) && p8_evt) && ((( !p8_l3) && (p8_l2 && (p8_l0 && ( !p8_l1)))) && (( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l1 && ( !_x_p8_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p8_l3) && (_x_p8_l2 && (_x_p8_l0 && _x_p8_l1))) && (_x_p8_c == 0.0))) || ( !((( !p8_l3) && (p8_l2 && (p8_l1 && ( !p8_l0)))) && ((delta == 0.0) && p8_evt))))) && ((((v1 == _x_v1) && (_x_p8_c == 0.0)) && (( !_x_v2) && (_x_p8_l3 && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1)))))) || ( !((( !p8_l3) && (p8_l2 && (p8_l0 && p8_l1))) && ((delta == 0.0) && p8_evt))))) && ((((_x_v1 == 0) && (( !_x_p8_l3) && (( !_x_p8_l2) && (( !_x_p8_l0) && ( !_x_p8_l1))))) && ((v2 == _x_v2) && (p8_c == _x_p8_c))) || ( !((p8_l3 && (( !p8_l2) && (( !p8_l0) && ( !p8_l1)))) && ((delta == 0.0) && p8_evt))))) && (((((((((((((((((((((_x_p7_l3 && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) || ((( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l0 && _x_p7_l1))) || ((( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l1 && ( !_x_p7_l0)))) || ((( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l0 && ( !_x_p7_l1)))) || ((( !_x_p7_l3) && (_x_p7_l2 && (( !_x_p7_l0) && ( !_x_p7_l1)))) || ((( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && _x_p7_l1))) || ((( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l1 && ( !_x_p7_l0)))) || ((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) || (( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && ( !_x_p7_l1)))))))))))) && ((_x_p7_c <= 16.0) || ( !(((( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && ( !_x_p7_l1)))) || (( !_x_p7_l3) && (_x_p7_l2 && (( !_x_p7_l0) && ( !_x_p7_l1))))) || ((( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l0 && _x_p7_l1))) || (_x_p7_l3 && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1))))))))) && ((delta <= 0.0) || (((((p7_l0 == _x_p7_l0) && (p7_l1 == _x_p7_l1)) && (p7_l2 == _x_p7_l2)) && (p7_l3 == _x_p7_l3)) && ((delta + (p7_c + (-1.0 * _x_p7_c))) == 0.0)))) && (p7_evt || (((((p7_l0 == _x_p7_l0) && (p7_l1 == _x_p7_l1)) && (p7_l2 == _x_p7_l2)) && (p7_l3 == _x_p7_l3)) && ((delta + (p7_c + (-1.0 * _x_p7_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && ( !_x_p7_l1))))) && ((v2 == _x_v2) && (_x_p7_c == 0.0)))) || ( !((( !p7_l3) && (( !p7_l2) && (( !p7_l0) && ( !p7_l1)))) && ((delta == 0.0) && p7_evt))))) && ((((v2 == _x_v2) && (_x_p7_c == 0.0)) && ((( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l1 && ( !_x_p7_l0)))) && (_x_v1 == 8))) || ( !((( !p7_l3) && (( !p7_l2) && (p7_l0 && ( !p7_l1)))) && ((delta == 0.0) && p7_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) || (( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && _x_p7_l1)))) && (p7_c == _x_p7_c))) || ( !((( !p7_l3) && (( !p7_l2) && (p7_l1 && ( !p7_l0)))) && ((delta == 0.0) && p7_evt))))) && (( !(v1 == 8)) || ( !((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) && ((( !p7_l3) && (( !p7_l2) && (p7_l1 && ( !p7_l0)))) && ((delta == 0.0) && p7_evt)))))) && (((v1 == 8) && ( !(p7_c <= 16.0))) || ( !((( !_x_p7_l3) && (( !_x_p7_l2) && (_x_p7_l0 && _x_p7_l1))) && ((( !p7_l3) && (( !p7_l2) && (p7_l1 && ( !p7_l0)))) && ((delta == 0.0) && p7_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) || (( !_x_p7_l3) && (_x_p7_l2 && (( !_x_p7_l0) && ( !_x_p7_l1)))))) || ( !((( !p7_l3) && (( !p7_l2) && (p7_l0 && p7_l1))) && ((delta == 0.0) && p7_evt))))) && ((v2 && (p7_c == _x_p7_c)) || ( !(((delta == 0.0) && p7_evt) && ((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) && (( !p7_l3) && (( !p7_l2) && (p7_l0 && p7_l1)))))))) && ((( !v2) && (_x_p7_c == 0.0)) || ( !(((delta == 0.0) && p7_evt) && ((( !p7_l3) && (( !p7_l2) && (p7_l0 && p7_l1))) && (( !_x_p7_l3) && (_x_p7_l2 && (( !_x_p7_l0) && ( !_x_p7_l1))))))))) && (((_x_v2 && (( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l0 && ( !_x_p7_l1))))) && ((v1 == _x_v1) && (_x_p7_c == 0.0))) || ( !((( !p7_l3) && (p7_l2 && (( !p7_l0) && ( !p7_l1)))) && ((delta == 0.0) && p7_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p7_c == _x_p7_c) && ((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) || (( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l1 && ( !_x_p7_l0))))))) || ( !((( !p7_l3) && (p7_l2 && (p7_l0 && ( !p7_l1)))) && ((delta == 0.0) && p7_evt))))) && (( !(v1 == 8)) || ( !(((delta == 0.0) && p7_evt) && ((( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))) && (( !p7_l3) && (p7_l2 && (p7_l0 && ( !p7_l1))))))))) && ((v1 == 8) || ( !(((delta == 0.0) && p7_evt) && ((( !p7_l3) && (p7_l2 && (p7_l0 && ( !p7_l1)))) && (( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l1 && ( !_x_p7_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p7_l3) && (_x_p7_l2 && (_x_p7_l0 && _x_p7_l1))) && (_x_p7_c == 0.0))) || ( !((( !p7_l3) && (p7_l2 && (p7_l1 && ( !p7_l0)))) && ((delta == 0.0) && p7_evt))))) && ((((v1 == _x_v1) && (_x_p7_c == 0.0)) && (( !_x_v2) && (_x_p7_l3 && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1)))))) || ( !((( !p7_l3) && (p7_l2 && (p7_l0 && p7_l1))) && ((delta == 0.0) && p7_evt))))) && ((((_x_v1 == 0) && (( !_x_p7_l3) && (( !_x_p7_l2) && (( !_x_p7_l0) && ( !_x_p7_l1))))) && ((v2 == _x_v2) && (p7_c == _x_p7_c))) || ( !((p7_l3 && (( !p7_l2) && (( !p7_l0) && ( !p7_l1)))) && ((delta == 0.0) && p7_evt))))) && (((((((((((((((((((((_x_p6_l3 && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) || ((( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l0 && _x_p6_l1))) || ((( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l1 && ( !_x_p6_l0)))) || ((( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l0 && ( !_x_p6_l1)))) || ((( !_x_p6_l3) && (_x_p6_l2 && (( !_x_p6_l0) && ( !_x_p6_l1)))) || ((( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && _x_p6_l1))) || ((( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l1 && ( !_x_p6_l0)))) || ((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) || (( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && ( !_x_p6_l1)))))))))))) && ((_x_p6_c <= 16.0) || ( !(((( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && ( !_x_p6_l1)))) || (( !_x_p6_l3) && (_x_p6_l2 && (( !_x_p6_l0) && ( !_x_p6_l1))))) || ((( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l0 && _x_p6_l1))) || (_x_p6_l3 && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1))))))))) && ((delta <= 0.0) || (((((p6_l0 == _x_p6_l0) && (p6_l1 == _x_p6_l1)) && (p6_l2 == _x_p6_l2)) && (p6_l3 == _x_p6_l3)) && ((delta + (p6_c + (-1.0 * _x_p6_c))) == 0.0)))) && (p6_evt || (((((p6_l0 == _x_p6_l0) && (p6_l1 == _x_p6_l1)) && (p6_l2 == _x_p6_l2)) && (p6_l3 == _x_p6_l3)) && ((delta + (p6_c + (-1.0 * _x_p6_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && ( !_x_p6_l1))))) && ((v2 == _x_v2) && (_x_p6_c == 0.0)))) || ( !((( !p6_l3) && (( !p6_l2) && (( !p6_l0) && ( !p6_l1)))) && ((delta == 0.0) && p6_evt))))) && ((((v2 == _x_v2) && (_x_p6_c == 0.0)) && ((( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l1 && ( !_x_p6_l0)))) && (_x_v1 == 7))) || ( !((( !p6_l3) && (( !p6_l2) && (p6_l0 && ( !p6_l1)))) && ((delta == 0.0) && p6_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) || (( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && _x_p6_l1)))) && (p6_c == _x_p6_c))) || ( !((( !p6_l3) && (( !p6_l2) && (p6_l1 && ( !p6_l0)))) && ((delta == 0.0) && p6_evt))))) && (( !(v1 == 7)) || ( !((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) && ((( !p6_l3) && (( !p6_l2) && (p6_l1 && ( !p6_l0)))) && ((delta == 0.0) && p6_evt)))))) && (((v1 == 7) && ( !(p6_c <= 16.0))) || ( !((( !_x_p6_l3) && (( !_x_p6_l2) && (_x_p6_l0 && _x_p6_l1))) && ((( !p6_l3) && (( !p6_l2) && (p6_l1 && ( !p6_l0)))) && ((delta == 0.0) && p6_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) || (( !_x_p6_l3) && (_x_p6_l2 && (( !_x_p6_l0) && ( !_x_p6_l1)))))) || ( !((( !p6_l3) && (( !p6_l2) && (p6_l0 && p6_l1))) && ((delta == 0.0) && p6_evt))))) && ((v2 && (p6_c == _x_p6_c)) || ( !(((delta == 0.0) && p6_evt) && ((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) && (( !p6_l3) && (( !p6_l2) && (p6_l0 && p6_l1)))))))) && ((( !v2) && (_x_p6_c == 0.0)) || ( !(((delta == 0.0) && p6_evt) && ((( !p6_l3) && (( !p6_l2) && (p6_l0 && p6_l1))) && (( !_x_p6_l3) && (_x_p6_l2 && (( !_x_p6_l0) && ( !_x_p6_l1))))))))) && (((_x_v2 && (( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l0 && ( !_x_p6_l1))))) && ((v1 == _x_v1) && (_x_p6_c == 0.0))) || ( !((( !p6_l3) && (p6_l2 && (( !p6_l0) && ( !p6_l1)))) && ((delta == 0.0) && p6_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p6_c == _x_p6_c) && ((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) || (( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l1 && ( !_x_p6_l0))))))) || ( !((( !p6_l3) && (p6_l2 && (p6_l0 && ( !p6_l1)))) && ((delta == 0.0) && p6_evt))))) && (( !(v1 == 7)) || ( !(((delta == 0.0) && p6_evt) && ((( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))) && (( !p6_l3) && (p6_l2 && (p6_l0 && ( !p6_l1))))))))) && ((v1 == 7) || ( !(((delta == 0.0) && p6_evt) && ((( !p6_l3) && (p6_l2 && (p6_l0 && ( !p6_l1)))) && (( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l1 && ( !_x_p6_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p6_l3) && (_x_p6_l2 && (_x_p6_l0 && _x_p6_l1))) && (_x_p6_c == 0.0))) || ( !((( !p6_l3) && (p6_l2 && (p6_l1 && ( !p6_l0)))) && ((delta == 0.0) && p6_evt))))) && ((((v1 == _x_v1) && (_x_p6_c == 0.0)) && (( !_x_v2) && (_x_p6_l3 && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1)))))) || ( !((( !p6_l3) && (p6_l2 && (p6_l0 && p6_l1))) && ((delta == 0.0) && p6_evt))))) && ((((_x_v1 == 0) && (( !_x_p6_l3) && (( !_x_p6_l2) && (( !_x_p6_l0) && ( !_x_p6_l1))))) && ((v2 == _x_v2) && (p6_c == _x_p6_c))) || ( !((p6_l3 && (( !p6_l2) && (( !p6_l0) && ( !p6_l1)))) && ((delta == 0.0) && p6_evt))))) && (((((((((((((((((((((_x_p5_l3 && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) || ((( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l0 && _x_p5_l1))) || ((( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l1 && ( !_x_p5_l0)))) || ((( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l0 && ( !_x_p5_l1)))) || ((( !_x_p5_l3) && (_x_p5_l2 && (( !_x_p5_l0) && ( !_x_p5_l1)))) || ((( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && _x_p5_l1))) || ((( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l1 && ( !_x_p5_l0)))) || ((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) || (( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && ( !_x_p5_l1)))))))))))) && ((_x_p5_c <= 16.0) || ( !(((( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && ( !_x_p5_l1)))) || (( !_x_p5_l3) && (_x_p5_l2 && (( !_x_p5_l0) && ( !_x_p5_l1))))) || ((( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l0 && _x_p5_l1))) || (_x_p5_l3 && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1))))))))) && ((delta <= 0.0) || (((((p5_l0 == _x_p5_l0) && (p5_l1 == _x_p5_l1)) && (p5_l2 == _x_p5_l2)) && (p5_l3 == _x_p5_l3)) && ((delta + (p5_c + (-1.0 * _x_p5_c))) == 0.0)))) && (p5_evt || (((((p5_l0 == _x_p5_l0) && (p5_l1 == _x_p5_l1)) && (p5_l2 == _x_p5_l2)) && (p5_l3 == _x_p5_l3)) && ((delta + (p5_c + (-1.0 * _x_p5_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && ( !_x_p5_l1))))) && ((v2 == _x_v2) && (_x_p5_c == 0.0)))) || ( !((( !p5_l3) && (( !p5_l2) && (( !p5_l0) && ( !p5_l1)))) && ((delta == 0.0) && p5_evt))))) && ((((v2 == _x_v2) && (_x_p5_c == 0.0)) && ((( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l1 && ( !_x_p5_l0)))) && (_x_v1 == 6))) || ( !((( !p5_l3) && (( !p5_l2) && (p5_l0 && ( !p5_l1)))) && ((delta == 0.0) && p5_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) || (( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && _x_p5_l1)))) && (p5_c == _x_p5_c))) || ( !((( !p5_l3) && (( !p5_l2) && (p5_l1 && ( !p5_l0)))) && ((delta == 0.0) && p5_evt))))) && (( !(v1 == 6)) || ( !((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) && ((( !p5_l3) && (( !p5_l2) && (p5_l1 && ( !p5_l0)))) && ((delta == 0.0) && p5_evt)))))) && (((v1 == 6) && ( !(p5_c <= 16.0))) || ( !((( !_x_p5_l3) && (( !_x_p5_l2) && (_x_p5_l0 && _x_p5_l1))) && ((( !p5_l3) && (( !p5_l2) && (p5_l1 && ( !p5_l0)))) && ((delta == 0.0) && p5_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) || (( !_x_p5_l3) && (_x_p5_l2 && (( !_x_p5_l0) && ( !_x_p5_l1)))))) || ( !((( !p5_l3) && (( !p5_l2) && (p5_l0 && p5_l1))) && ((delta == 0.0) && p5_evt))))) && ((v2 && (p5_c == _x_p5_c)) || ( !(((delta == 0.0) && p5_evt) && ((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) && (( !p5_l3) && (( !p5_l2) && (p5_l0 && p5_l1)))))))) && ((( !v2) && (_x_p5_c == 0.0)) || ( !(((delta == 0.0) && p5_evt) && ((( !p5_l3) && (( !p5_l2) && (p5_l0 && p5_l1))) && (( !_x_p5_l3) && (_x_p5_l2 && (( !_x_p5_l0) && ( !_x_p5_l1))))))))) && (((_x_v2 && (( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l0 && ( !_x_p5_l1))))) && ((v1 == _x_v1) && (_x_p5_c == 0.0))) || ( !((( !p5_l3) && (p5_l2 && (( !p5_l0) && ( !p5_l1)))) && ((delta == 0.0) && p5_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p5_c == _x_p5_c) && ((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) || (( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l1 && ( !_x_p5_l0))))))) || ( !((( !p5_l3) && (p5_l2 && (p5_l0 && ( !p5_l1)))) && ((delta == 0.0) && p5_evt))))) && (( !(v1 == 6)) || ( !(((delta == 0.0) && p5_evt) && ((( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))) && (( !p5_l3) && (p5_l2 && (p5_l0 && ( !p5_l1))))))))) && ((v1 == 6) || ( !(((delta == 0.0) && p5_evt) && ((( !p5_l3) && (p5_l2 && (p5_l0 && ( !p5_l1)))) && (( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l1 && ( !_x_p5_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p5_l3) && (_x_p5_l2 && (_x_p5_l0 && _x_p5_l1))) && (_x_p5_c == 0.0))) || ( !((( !p5_l3) && (p5_l2 && (p5_l1 && ( !p5_l0)))) && ((delta == 0.0) && p5_evt))))) && ((((v1 == _x_v1) && (_x_p5_c == 0.0)) && (( !_x_v2) && (_x_p5_l3 && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1)))))) || ( !((( !p5_l3) && (p5_l2 && (p5_l0 && p5_l1))) && ((delta == 0.0) && p5_evt))))) && ((((_x_v1 == 0) && (( !_x_p5_l3) && (( !_x_p5_l2) && (( !_x_p5_l0) && ( !_x_p5_l1))))) && ((v2 == _x_v2) && (p5_c == _x_p5_c))) || ( !((p5_l3 && (( !p5_l2) && (( !p5_l0) && ( !p5_l1)))) && ((delta == 0.0) && p5_evt))))) && (((((((((((((((((((((_x_p4_l3 && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) || ((( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l0 && _x_p4_l1))) || ((( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l1 && ( !_x_p4_l0)))) || ((( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l0 && ( !_x_p4_l1)))) || ((( !_x_p4_l3) && (_x_p4_l2 && (( !_x_p4_l0) && ( !_x_p4_l1)))) || ((( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && _x_p4_l1))) || ((( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l1 && ( !_x_p4_l0)))) || ((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) || (( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && ( !_x_p4_l1)))))))))))) && ((_x_p4_c <= 16.0) || ( !(((( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && ( !_x_p4_l1)))) || (( !_x_p4_l3) && (_x_p4_l2 && (( !_x_p4_l0) && ( !_x_p4_l1))))) || ((( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l0 && _x_p4_l1))) || (_x_p4_l3 && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1))))))))) && ((delta <= 0.0) || (((((p4_l0 == _x_p4_l0) && (p4_l1 == _x_p4_l1)) && (p4_l2 == _x_p4_l2)) && (p4_l3 == _x_p4_l3)) && ((delta + (p4_c + (-1.0 * _x_p4_c))) == 0.0)))) && (p4_evt || (((((p4_l0 == _x_p4_l0) && (p4_l1 == _x_p4_l1)) && (p4_l2 == _x_p4_l2)) && (p4_l3 == _x_p4_l3)) && ((delta + (p4_c + (-1.0 * _x_p4_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && ( !_x_p4_l1))))) && ((v2 == _x_v2) && (_x_p4_c == 0.0)))) || ( !((( !p4_l3) && (( !p4_l2) && (( !p4_l0) && ( !p4_l1)))) && ((delta == 0.0) && p4_evt))))) && ((((v2 == _x_v2) && (_x_p4_c == 0.0)) && ((( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l1 && ( !_x_p4_l0)))) && (_x_v1 == 5))) || ( !((( !p4_l3) && (( !p4_l2) && (p4_l0 && ( !p4_l1)))) && ((delta == 0.0) && p4_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) || (( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && _x_p4_l1)))) && (p4_c == _x_p4_c))) || ( !((( !p4_l3) && (( !p4_l2) && (p4_l1 && ( !p4_l0)))) && ((delta == 0.0) && p4_evt))))) && (( !(v1 == 5)) || ( !((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) && ((( !p4_l3) && (( !p4_l2) && (p4_l1 && ( !p4_l0)))) && ((delta == 0.0) && p4_evt)))))) && (((v1 == 5) && ( !(p4_c <= 16.0))) || ( !((( !_x_p4_l3) && (( !_x_p4_l2) && (_x_p4_l0 && _x_p4_l1))) && ((( !p4_l3) && (( !p4_l2) && (p4_l1 && ( !p4_l0)))) && ((delta == 0.0) && p4_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) || (( !_x_p4_l3) && (_x_p4_l2 && (( !_x_p4_l0) && ( !_x_p4_l1)))))) || ( !((( !p4_l3) && (( !p4_l2) && (p4_l0 && p4_l1))) && ((delta == 0.0) && p4_evt))))) && ((v2 && (p4_c == _x_p4_c)) || ( !(((delta == 0.0) && p4_evt) && ((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) && (( !p4_l3) && (( !p4_l2) && (p4_l0 && p4_l1)))))))) && ((( !v2) && (_x_p4_c == 0.0)) || ( !(((delta == 0.0) && p4_evt) && ((( !p4_l3) && (( !p4_l2) && (p4_l0 && p4_l1))) && (( !_x_p4_l3) && (_x_p4_l2 && (( !_x_p4_l0) && ( !_x_p4_l1))))))))) && (((_x_v2 && (( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l0 && ( !_x_p4_l1))))) && ((v1 == _x_v1) && (_x_p4_c == 0.0))) || ( !((( !p4_l3) && (p4_l2 && (( !p4_l0) && ( !p4_l1)))) && ((delta == 0.0) && p4_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p4_c == _x_p4_c) && ((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) || (( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l1 && ( !_x_p4_l0))))))) || ( !((( !p4_l3) && (p4_l2 && (p4_l0 && ( !p4_l1)))) && ((delta == 0.0) && p4_evt))))) && (( !(v1 == 5)) || ( !(((delta == 0.0) && p4_evt) && ((( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))) && (( !p4_l3) && (p4_l2 && (p4_l0 && ( !p4_l1))))))))) && ((v1 == 5) || ( !(((delta == 0.0) && p4_evt) && ((( !p4_l3) && (p4_l2 && (p4_l0 && ( !p4_l1)))) && (( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l1 && ( !_x_p4_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p4_l3) && (_x_p4_l2 && (_x_p4_l0 && _x_p4_l1))) && (_x_p4_c == 0.0))) || ( !((( !p4_l3) && (p4_l2 && (p4_l1 && ( !p4_l0)))) && ((delta == 0.0) && p4_evt))))) && ((((v1 == _x_v1) && (_x_p4_c == 0.0)) && (( !_x_v2) && (_x_p4_l3 && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1)))))) || ( !((( !p4_l3) && (p4_l2 && (p4_l0 && p4_l1))) && ((delta == 0.0) && p4_evt))))) && ((((_x_v1 == 0) && (( !_x_p4_l3) && (( !_x_p4_l2) && (( !_x_p4_l0) && ( !_x_p4_l1))))) && ((v2 == _x_v2) && (p4_c == _x_p4_c))) || ( !((p4_l3 && (( !p4_l2) && (( !p4_l0) && ( !p4_l1)))) && ((delta == 0.0) && p4_evt))))) && (((((((((((((((((((((_x_p3_l3 && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) || ((( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l0 && _x_p3_l1))) || ((( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l1 && ( !_x_p3_l0)))) || ((( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l0 && ( !_x_p3_l1)))) || ((( !_x_p3_l3) && (_x_p3_l2 && (( !_x_p3_l0) && ( !_x_p3_l1)))) || ((( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && _x_p3_l1))) || ((( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l1 && ( !_x_p3_l0)))) || ((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) || (( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && ( !_x_p3_l1)))))))))))) && ((_x_p3_c <= 16.0) || ( !(((( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && ( !_x_p3_l1)))) || (( !_x_p3_l3) && (_x_p3_l2 && (( !_x_p3_l0) && ( !_x_p3_l1))))) || ((( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l0 && _x_p3_l1))) || (_x_p3_l3 && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1))))))))) && ((delta <= 0.0) || (((((p3_l0 == _x_p3_l0) && (p3_l1 == _x_p3_l1)) && (p3_l2 == _x_p3_l2)) && (p3_l3 == _x_p3_l3)) && ((delta + (p3_c + (-1.0 * _x_p3_c))) == 0.0)))) && (p3_evt || (((((p3_l0 == _x_p3_l0) && (p3_l1 == _x_p3_l1)) && (p3_l2 == _x_p3_l2)) && (p3_l3 == _x_p3_l3)) && ((delta + (p3_c + (-1.0 * _x_p3_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && ( !_x_p3_l1))))) && ((v2 == _x_v2) && (_x_p3_c == 0.0)))) || ( !((( !p3_l3) && (( !p3_l2) && (( !p3_l0) && ( !p3_l1)))) && ((delta == 0.0) && p3_evt))))) && ((((v2 == _x_v2) && (_x_p3_c == 0.0)) && ((( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l1 && ( !_x_p3_l0)))) && (_x_v1 == 4))) || ( !((( !p3_l3) && (( !p3_l2) && (p3_l0 && ( !p3_l1)))) && ((delta == 0.0) && p3_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) || (( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && _x_p3_l1)))) && (p3_c == _x_p3_c))) || ( !((( !p3_l3) && (( !p3_l2) && (p3_l1 && ( !p3_l0)))) && ((delta == 0.0) && p3_evt))))) && (( !(v1 == 4)) || ( !((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) && ((( !p3_l3) && (( !p3_l2) && (p3_l1 && ( !p3_l0)))) && ((delta == 0.0) && p3_evt)))))) && (((v1 == 4) && ( !(p3_c <= 16.0))) || ( !((( !_x_p3_l3) && (( !_x_p3_l2) && (_x_p3_l0 && _x_p3_l1))) && ((( !p3_l3) && (( !p3_l2) && (p3_l1 && ( !p3_l0)))) && ((delta == 0.0) && p3_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) || (( !_x_p3_l3) && (_x_p3_l2 && (( !_x_p3_l0) && ( !_x_p3_l1)))))) || ( !((( !p3_l3) && (( !p3_l2) && (p3_l0 && p3_l1))) && ((delta == 0.0) && p3_evt))))) && ((v2 && (p3_c == _x_p3_c)) || ( !(((delta == 0.0) && p3_evt) && ((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) && (( !p3_l3) && (( !p3_l2) && (p3_l0 && p3_l1)))))))) && ((( !v2) && (_x_p3_c == 0.0)) || ( !(((delta == 0.0) && p3_evt) && ((( !p3_l3) && (( !p3_l2) && (p3_l0 && p3_l1))) && (( !_x_p3_l3) && (_x_p3_l2 && (( !_x_p3_l0) && ( !_x_p3_l1))))))))) && (((_x_v2 && (( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l0 && ( !_x_p3_l1))))) && ((v1 == _x_v1) && (_x_p3_c == 0.0))) || ( !((( !p3_l3) && (p3_l2 && (( !p3_l0) && ( !p3_l1)))) && ((delta == 0.0) && p3_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p3_c == _x_p3_c) && ((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) || (( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l1 && ( !_x_p3_l0))))))) || ( !((( !p3_l3) && (p3_l2 && (p3_l0 && ( !p3_l1)))) && ((delta == 0.0) && p3_evt))))) && (( !(v1 == 4)) || ( !(((delta == 0.0) && p3_evt) && ((( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))) && (( !p3_l3) && (p3_l2 && (p3_l0 && ( !p3_l1))))))))) && ((v1 == 4) || ( !(((delta == 0.0) && p3_evt) && ((( !p3_l3) && (p3_l2 && (p3_l0 && ( !p3_l1)))) && (( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l1 && ( !_x_p3_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p3_l3) && (_x_p3_l2 && (_x_p3_l0 && _x_p3_l1))) && (_x_p3_c == 0.0))) || ( !((( !p3_l3) && (p3_l2 && (p3_l1 && ( !p3_l0)))) && ((delta == 0.0) && p3_evt))))) && ((((v1 == _x_v1) && (_x_p3_c == 0.0)) && (( !_x_v2) && (_x_p3_l3 && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1)))))) || ( !((( !p3_l3) && (p3_l2 && (p3_l0 && p3_l1))) && ((delta == 0.0) && p3_evt))))) && ((((_x_v1 == 0) && (( !_x_p3_l3) && (( !_x_p3_l2) && (( !_x_p3_l0) && ( !_x_p3_l1))))) && ((v2 == _x_v2) && (p3_c == _x_p3_c))) || ( !((p3_l3 && (( !p3_l2) && (( !p3_l0) && ( !p3_l1)))) && ((delta == 0.0) && p3_evt))))) && (((((((((((((((((((((_x_p2_l3 && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) || ((( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l0 && _x_p2_l1))) || ((( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l1 && ( !_x_p2_l0)))) || ((( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l0 && ( !_x_p2_l1)))) || ((( !_x_p2_l3) && (_x_p2_l2 && (( !_x_p2_l0) && ( !_x_p2_l1)))) || ((( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && _x_p2_l1))) || ((( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l1 && ( !_x_p2_l0)))) || ((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) || (( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && ( !_x_p2_l1)))))))))))) && ((_x_p2_c <= 16.0) || ( !(((( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && ( !_x_p2_l1)))) || (( !_x_p2_l3) && (_x_p2_l2 && (( !_x_p2_l0) && ( !_x_p2_l1))))) || ((( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l0 && _x_p2_l1))) || (_x_p2_l3 && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1))))))))) && ((delta <= 0.0) || (((((p2_l0 == _x_p2_l0) && (p2_l1 == _x_p2_l1)) && (p2_l2 == _x_p2_l2)) && (p2_l3 == _x_p2_l3)) && ((delta + (p2_c + (-1.0 * _x_p2_c))) == 0.0)))) && (p2_evt || (((((p2_l0 == _x_p2_l0) && (p2_l1 == _x_p2_l1)) && (p2_l2 == _x_p2_l2)) && (p2_l3 == _x_p2_l3)) && ((delta + (p2_c + (-1.0 * _x_p2_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && ( !_x_p2_l1))))) && ((v2 == _x_v2) && (_x_p2_c == 0.0)))) || ( !((( !p2_l3) && (( !p2_l2) && (( !p2_l0) && ( !p2_l1)))) && ((delta == 0.0) && p2_evt))))) && ((((v2 == _x_v2) && (_x_p2_c == 0.0)) && ((( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l1 && ( !_x_p2_l0)))) && (_x_v1 == 3))) || ( !((( !p2_l3) && (( !p2_l2) && (p2_l0 && ( !p2_l1)))) && ((delta == 0.0) && p2_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) || (( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && _x_p2_l1)))) && (p2_c == _x_p2_c))) || ( !((( !p2_l3) && (( !p2_l2) && (p2_l1 && ( !p2_l0)))) && ((delta == 0.0) && p2_evt))))) && (( !(v1 == 3)) || ( !((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) && ((( !p2_l3) && (( !p2_l2) && (p2_l1 && ( !p2_l0)))) && ((delta == 0.0) && p2_evt)))))) && (((v1 == 3) && ( !(p2_c <= 16.0))) || ( !((( !_x_p2_l3) && (( !_x_p2_l2) && (_x_p2_l0 && _x_p2_l1))) && ((( !p2_l3) && (( !p2_l2) && (p2_l1 && ( !p2_l0)))) && ((delta == 0.0) && p2_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) || (( !_x_p2_l3) && (_x_p2_l2 && (( !_x_p2_l0) && ( !_x_p2_l1)))))) || ( !((( !p2_l3) && (( !p2_l2) && (p2_l0 && p2_l1))) && ((delta == 0.0) && p2_evt))))) && ((v2 && (p2_c == _x_p2_c)) || ( !(((delta == 0.0) && p2_evt) && ((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) && (( !p2_l3) && (( !p2_l2) && (p2_l0 && p2_l1)))))))) && ((( !v2) && (_x_p2_c == 0.0)) || ( !(((delta == 0.0) && p2_evt) && ((( !p2_l3) && (( !p2_l2) && (p2_l0 && p2_l1))) && (( !_x_p2_l3) && (_x_p2_l2 && (( !_x_p2_l0) && ( !_x_p2_l1))))))))) && (((_x_v2 && (( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l0 && ( !_x_p2_l1))))) && ((v1 == _x_v1) && (_x_p2_c == 0.0))) || ( !((( !p2_l3) && (p2_l2 && (( !p2_l0) && ( !p2_l1)))) && ((delta == 0.0) && p2_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p2_c == _x_p2_c) && ((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) || (( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l1 && ( !_x_p2_l0))))))) || ( !((( !p2_l3) && (p2_l2 && (p2_l0 && ( !p2_l1)))) && ((delta == 0.0) && p2_evt))))) && (( !(v1 == 3)) || ( !(((delta == 0.0) && p2_evt) && ((( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))) && (( !p2_l3) && (p2_l2 && (p2_l0 && ( !p2_l1))))))))) && ((v1 == 3) || ( !(((delta == 0.0) && p2_evt) && ((( !p2_l3) && (p2_l2 && (p2_l0 && ( !p2_l1)))) && (( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l1 && ( !_x_p2_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p2_l3) && (_x_p2_l2 && (_x_p2_l0 && _x_p2_l1))) && (_x_p2_c == 0.0))) || ( !((( !p2_l3) && (p2_l2 && (p2_l1 && ( !p2_l0)))) && ((delta == 0.0) && p2_evt))))) && ((((v1 == _x_v1) && (_x_p2_c == 0.0)) && (( !_x_v2) && (_x_p2_l3 && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1)))))) || ( !((( !p2_l3) && (p2_l2 && (p2_l0 && p2_l1))) && ((delta == 0.0) && p2_evt))))) && ((((_x_v1 == 0) && (( !_x_p2_l3) && (( !_x_p2_l2) && (( !_x_p2_l0) && ( !_x_p2_l1))))) && ((v2 == _x_v2) && (p2_c == _x_p2_c))) || ( !((p2_l3 && (( !p2_l2) && (( !p2_l0) && ( !p2_l1)))) && ((delta == 0.0) && p2_evt))))) && (((((((((((((((((((((_x_p1_l3 && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) || ((( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l0 && _x_p1_l1))) || ((( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l1 && ( !_x_p1_l0)))) || ((( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l0 && ( !_x_p1_l1)))) || ((( !_x_p1_l3) && (_x_p1_l2 && (( !_x_p1_l0) && ( !_x_p1_l1)))) || ((( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && _x_p1_l1))) || ((( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l1 && ( !_x_p1_l0)))) || ((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) || (( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && ( !_x_p1_l1)))))))))))) && ((_x_p1_c <= 16.0) || ( !(((( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && ( !_x_p1_l1)))) || (( !_x_p1_l3) && (_x_p1_l2 && (( !_x_p1_l0) && ( !_x_p1_l1))))) || ((( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l0 && _x_p1_l1))) || (_x_p1_l3 && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1))))))))) && ((delta <= 0.0) || (((((p1_l0 == _x_p1_l0) && (p1_l1 == _x_p1_l1)) && (p1_l2 == _x_p1_l2)) && (p1_l3 == _x_p1_l3)) && ((delta + (p1_c + (-1.0 * _x_p1_c))) == 0.0)))) && (p1_evt || (((((p1_l0 == _x_p1_l0) && (p1_l1 == _x_p1_l1)) && (p1_l2 == _x_p1_l2)) && (p1_l3 == _x_p1_l3)) && ((delta + (p1_c + (-1.0 * _x_p1_c))) == 0.0)))) && (((v1 == _x_v1) && (((v1 == 0) && (( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && ( !_x_p1_l1))))) && ((v2 == _x_v2) && (_x_p1_c == 0.0)))) || ( !((( !p1_l3) && (( !p1_l2) && (( !p1_l0) && ( !p1_l1)))) && ((delta == 0.0) && p1_evt))))) && ((((v2 == _x_v2) && (_x_p1_c == 0.0)) && ((( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l1 && ( !_x_p1_l0)))) && (_x_v1 == 2))) || ( !((( !p1_l3) && (( !p1_l2) && (p1_l0 && ( !p1_l1)))) && ((delta == 0.0) && p1_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && (((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) || (( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && _x_p1_l1)))) && (p1_c == _x_p1_c))) || ( !((( !p1_l3) && (( !p1_l2) && (p1_l1 && ( !p1_l0)))) && ((delta == 0.0) && p1_evt))))) && (( !(v1 == 2)) || ( !((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) && ((( !p1_l3) && (( !p1_l2) && (p1_l1 && ( !p1_l0)))) && ((delta == 0.0) && p1_evt)))))) && (((v1 == 2) && ( !(p1_c <= 16.0))) || ( !((( !_x_p1_l3) && (( !_x_p1_l2) && (_x_p1_l0 && _x_p1_l1))) && ((( !p1_l3) && (( !p1_l2) && (p1_l1 && ( !p1_l0)))) && ((delta == 0.0) && p1_evt)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) || (( !_x_p1_l3) && (_x_p1_l2 && (( !_x_p1_l0) && ( !_x_p1_l1)))))) || ( !((( !p1_l3) && (( !p1_l2) && (p1_l0 && p1_l1))) && ((delta == 0.0) && p1_evt))))) && ((v2 && (p1_c == _x_p1_c)) || ( !(((delta == 0.0) && p1_evt) && ((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) && (( !p1_l3) && (( !p1_l2) && (p1_l0 && p1_l1)))))))) && ((( !v2) && (_x_p1_c == 0.0)) || ( !(((delta == 0.0) && p1_evt) && ((( !p1_l3) && (( !p1_l2) && (p1_l0 && p1_l1))) && (( !_x_p1_l3) && (_x_p1_l2 && (( !_x_p1_l0) && ( !_x_p1_l1))))))))) && (((_x_v2 && (( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l0 && ( !_x_p1_l1))))) && ((v1 == _x_v1) && (_x_p1_c == 0.0))) || ( !((( !p1_l3) && (p1_l2 && (( !p1_l0) && ( !p1_l1)))) && ((delta == 0.0) && p1_evt))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p1_c == _x_p1_c) && ((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) || (( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l1 && ( !_x_p1_l0))))))) || ( !((( !p1_l3) && (p1_l2 && (p1_l0 && ( !p1_l1)))) && ((delta == 0.0) && p1_evt))))) && (( !(v1 == 2)) || ( !(((delta == 0.0) && p1_evt) && ((( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))) && (( !p1_l3) && (p1_l2 && (p1_l0 && ( !p1_l1))))))))) && ((v1 == 2) || ( !(((delta == 0.0) && p1_evt) && ((( !p1_l3) && (p1_l2 && (p1_l0 && ( !p1_l1)))) && (( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l1 && ( !_x_p1_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p1_l3) && (_x_p1_l2 && (_x_p1_l0 && _x_p1_l1))) && (_x_p1_c == 0.0))) || ( !((( !p1_l3) && (p1_l2 && (p1_l1 && ( !p1_l0)))) && ((delta == 0.0) && p1_evt))))) && ((((v1 == _x_v1) && (_x_p1_c == 0.0)) && (( !_x_v2) && (_x_p1_l3 && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1)))))) || ( !((( !p1_l3) && (p1_l2 && (p1_l0 && p1_l1))) && ((delta == 0.0) && p1_evt))))) && ((((_x_v1 == 0) && (( !_x_p1_l3) && (( !_x_p1_l2) && (( !_x_p1_l0) && ( !_x_p1_l1))))) && ((v2 == _x_v2) && (p1_c == _x_p1_c))) || ( !((p1_l3 && (( !p1_l2) && (( !p1_l0) && ( !p1_l1)))) && ((delta == 0.0) && p1_evt))))) && (((((((((((((((((((((_x_p0_l3 && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) || ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l0 && _x_p0_l1))) || ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l1 && ( !_x_p0_l0)))) || ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l0 && ( !_x_p0_l1)))) || ((( !_x_p0_l3) && (_x_p0_l2 && (( !_x_p0_l0) && ( !_x_p0_l1)))) || ((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && _x_p0_l1))) || ((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l1 && ( !_x_p0_l0)))) || ((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) || (( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && ( !_x_p0_l1)))))))))))) && ((_x_p0_c <= 16.0) || ( !(((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && ( !_x_p0_l1)))) || (( !_x_p0_l3) && (_x_p0_l2 && (( !_x_p0_l0) && ( !_x_p0_l1))))) || ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l0 && _x_p0_l1))) || (_x_p0_l3 && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1))))))))) && ((delta <= 0.0) || (((((p0_l0 == _x_p0_l0) && (p0_l1 == _x_p0_l1)) && (p0_l2 == _x_p0_l2)) && (p0_l3 == _x_p0_l3)) && ((delta + (p0_c + (-1.0 * _x_p0_c))) == 0.0)))) && (p0_evt || (((((p0_l0 == _x_p0_l0) && (p0_l1 == _x_p0_l1)) && (p0_l2 == _x_p0_l2)) && (p0_l3 == _x_p0_l3)) && ((delta + (p0_c + (-1.0 * _x_p0_c))) == 0.0)))) && (((((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && ( !_x_p0_l1)))) && (v1 == 0)) && ((_x_p0_c == 0.0) && (v2 == _x_v2))) && (v1 == _x_v1)) || ( !((( !p0_l3) && (( !p0_l2) && (( !p0_l0) && ( !p0_l1)))) && (p0_evt && (delta == 0.0)))))) && ((((_x_p0_c == 0.0) && (v2 == _x_v2)) && ((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l1 && ( !_x_p0_l0)))) && (_x_v1 == 1))) || ( !((( !p0_l3) && (( !p0_l2) && (p0_l0 && ( !p0_l1)))) && (p0_evt && (delta == 0.0)))))) && (((((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) || (( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && _x_p0_l1)))) && (p0_c == _x_p0_c)) && ((v2 == _x_v2) && (v1 == _x_v1))) || ( !((( !p0_l3) && (( !p0_l2) && (p0_l1 && ( !p0_l0)))) && (p0_evt && (delta == 0.0)))))) && (( !(v1 == 1)) || ( !((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) && ((( !p0_l3) && (( !p0_l2) && (p0_l1 && ( !p0_l0)))) && (p0_evt && (delta == 0.0))))))) && (((v1 == 1) && ( !(p0_c <= 16.0))) || ( !((( !_x_p0_l3) && (( !_x_p0_l2) && (_x_p0_l0 && _x_p0_l1))) && ((( !p0_l3) && (( !p0_l2) && (p0_l1 && ( !p0_l0)))) && (p0_evt && (delta == 0.0))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) || (( !_x_p0_l3) && (_x_p0_l2 && (( !_x_p0_l0) && ( !_x_p0_l1)))))) || ( !((( !p0_l3) && (( !p0_l2) && (p0_l0 && p0_l1))) && (p0_evt && (delta == 0.0)))))) && ((v2 && (p0_c == _x_p0_c)) || ( !((p0_evt && (delta == 0.0)) && ((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) && (( !p0_l3) && (( !p0_l2) && (p0_l0 && p0_l1)))))))) && (((_x_p0_c == 0.0) && ( !v2)) || ( !((p0_evt && (delta == 0.0)) && ((( !p0_l3) && (( !p0_l2) && (p0_l0 && p0_l1))) && (( !_x_p0_l3) && (_x_p0_l2 && (( !_x_p0_l0) && ( !_x_p0_l1))))))))) && (((_x_v2 && (( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l0 && ( !_x_p0_l1))))) && ((_x_p0_c == 0.0) && (v1 == _x_v1))) || ( !((( !p0_l3) && (p0_l2 && (( !p0_l0) && ( !p0_l1)))) && (p0_evt && (delta == 0.0)))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((p0_c == _x_p0_c) && ((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) || (( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l1 && ( !_x_p0_l0))))))) || ( !((( !p0_l3) && (p0_l2 && (p0_l0 && ( !p0_l1)))) && (p0_evt && (delta == 0.0)))))) && (( !(v1 == 1)) || ( !((p0_evt && (delta == 0.0)) && ((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) && (( !p0_l3) && (p0_l2 && (p0_l0 && ( !p0_l1))))))))) && ((v1 == 1) || ( !((p0_evt && (delta == 0.0)) && ((( !p0_l3) && (p0_l2 && (p0_l0 && ( !p0_l1)))) && (( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l1 && ( !_x_p0_l0))))))))) && ((((v2 == _x_v2) && (v1 == _x_v1)) && ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l0 && _x_p0_l1))) && (_x_p0_c == 0.0))) || ( !((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) && (p0_evt && (delta == 0.0)))))) && ((((_x_p0_c == 0.0) && (v1 == _x_v1)) && ((_x_p0_l3 && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) && ( !_x_v2))) || ( !((( !p0_l3) && (p0_l2 && (p0_l0 && p0_l1))) && (p0_evt && (delta == 0.0)))))) && ((((( !_x_p0_l3) && (( !_x_p0_l2) && (( !_x_p0_l0) && ( !_x_p0_l1)))) && (_x_v1 == 0)) && ((v2 == _x_v2) && (p0_c == _x_p0_c))) || ( !((p0_l3 && (( !p0_l2) && (( !p0_l0) && ( !p0_l1)))) && (p0_evt && (delta == 0.0)))))) && ((((_x_v1 == 28) || ((_x_v1 == 27) || ((_x_v1 == 26) || ((_x_v1 == 25) || ((_x_v1 == 24) || ((_x_v1 == 23) || ((_x_v1 == 22) || ((_x_v1 == 21) || ((_x_v1 == 20) || ((_x_v1 == 19) || ((_x_v1 == 18) || ((_x_v1 == 17) || ((_x_v1 == 16) || ((_x_v1 == 15) || ((_x_v1 == 14) || ((_x_v1 == 13) || ((_x_v1 == 12) || ((_x_v1 == 11) || ((_x_v1 == 10) || ((_x_v1 == 9) || ((_x_v1 == 8) || ((_x_v1 == 7) || ((_x_v1 == 6) || ((_x_v1 == 5) || ((_x_v1 == 4) || ((_x_v1 == 3) || ((_x_v1 == 2) || ((_x_v1 == 1) || (_x_v1 == 0))))))))))))))))))))))))))))) && (0.0 <= _x_delta)) && ((delta <= 0.0) || ((v2 == _x_v2) && (v1 == _x_v1)))))))))))))))))))))))))))))))) && (( !(( !p27_evt) && (( !p26_evt) && (( !p25_evt) && (( !p24_evt) && (( !p23_evt) && (( !p22_evt) && (( !p21_evt) && (( !p20_evt) && (( !p19_evt) && (( !p18_evt) && (( !p17_evt) && (( !p16_evt) && (( !p15_evt) && (( !p14_evt) && (( !p13_evt) && (( !p12_evt) && (( !p11_evt) && (( !p10_evt) && (( !p9_evt) && (( !p8_evt) && (( !p7_evt) && (( !p6_evt) && (( !p5_evt) && (( !p4_evt) && (( !p3_evt) && (( !p2_evt) && (( !p0_evt) && ( !p1_evt))))))))))))))))))))))))))))) || ( !(delta == 0.0)))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0)))) && ((((((((_EL_U_6140 == (_x__EL_U_6140 || ( !(_x__EL_U_6138 || (1.0 <= _x__diverge_delta))))) && ((_EL_U_6138 == (_x__EL_U_6138 || (1.0 <= _x__diverge_delta))) && ((_EL_U_6144 == (_x__EL_U_6144 || ( !((_x_v1 == 1) || _x__EL_U_6142)))) && ((_EL_U_6142 == ((_x_v1 == 1) || _x__EL_U_6142)) && ((_EL_U_6146 == ((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l1 && ( !_x_p0_l0)))) || _x__EL_U_6146)) && (_EL_U_6148 == (_x__EL_U_6148 || ( !((( !_x_p0_l3) && (_x_p0_l2 && (_x_p0_l1 && ( !_x_p0_l0)))) || _x__EL_U_6146))))))))) && (_x__J6175 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || (((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || ( !((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || _EL_U_6146))) || _J6175))))) && (_x__J6181 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || ((( !((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || _EL_U_6146)) || ( !(_EL_U_6148 || ( !((( !p0_l3) && (p0_l2 && (p0_l1 && ( !p0_l0)))) || _EL_U_6146))))) || _J6181))))) && (_x__J6186 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || (((v1 == 1) || ( !((v1 == 1) || _EL_U_6142))) || _J6186))))) && (_x__J6192 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || ((( !((v1 == 1) || _EL_U_6142)) || ( !(_EL_U_6144 || ( !((v1 == 1) || _EL_U_6142))))) || _J6192))))) && (_x__J6199 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || (((1.0 <= _diverge_delta) || ( !((1.0 <= _diverge_delta) || _EL_U_6138))) || _J6199))))) && (_x__J6205 == (( !(((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205)) && ((((((_J6175 && _J6181) && _J6186) && _J6192) && _J6199) && _J6205) || ((( !((1.0 <= _diverge_delta) || _EL_U_6138)) || ( !(_EL_U_6140 || ( !((1.0 <= _diverge_delta) || _EL_U_6138))))) || _J6205))))));
p8_c = _x_p8_c;
p5_evt = _x_p5_evt;
_diverge_delta = _x__diverge_delta;
p19_l1 = _x_p19_l1;
delta = _x_delta;
p19_l0 = _x_p19_l0;
v1 = _x_v1;
p6_evt = _x_p6_evt;
p19_l2 = _x_p19_l2;
p7_evt = _x_p7_evt;
p8_evt = _x_p8_evt;
p19_l3 = _x_p19_l3;
p9_evt = _x_p9_evt;
p10_evt = _x_p10_evt;
p11_evt = _x_p11_evt;
p12_evt = _x_p12_evt;
p9_l1 = _x_p9_l1;
p19_c = _x_p19_c;
p9_l0 = _x_p9_l0;
p13_evt = _x_p13_evt;
p14_evt = _x_p14_evt;
p9_l2 = _x_p9_l2;
p15_evt = _x_p15_evt;
p9_l3 = _x_p9_l3;
p16_evt = _x_p16_evt;
p17_evt = _x_p17_evt;
p18_evt = _x_p18_evt;
p19_evt = _x_p19_evt;
p20_evt = _x_p20_evt;
p9_c = _x_p9_c;
p21_evt = _x_p21_evt;
p20_l1 = _x_p20_l1;
p22_evt = _x_p22_evt;
p20_l0 = _x_p20_l0;
p23_evt = _x_p23_evt;
p20_l2 = _x_p20_l2;
p24_evt = _x_p24_evt;
p20_l3 = _x_p20_l3;
p25_evt = _x_p25_evt;
p26_evt = _x_p26_evt;
p27_evt = _x_p27_evt;
p10_l1 = _x_p10_l1;
p20_c = _x_p20_c;
p10_l0 = _x_p10_l0;
v2 = _x_v2;
p10_l2 = _x_p10_l2;
p10_l3 = _x_p10_l3;
p0_l1 = _x_p0_l1;
p10_c = _x_p10_c;
p0_l0 = _x_p0_l0;
p0_l2 = _x_p0_l2;
p21_l1 = _x_p21_l1;
p21_l0 = _x_p21_l0;
p0_l3 = _x_p0_l3;
p21_l2 = _x_p21_l2;
p21_l3 = _x_p21_l3;
p0_c = _x_p0_c;
p11_l1 = _x_p11_l1;
p21_c = _x_p21_c;
p11_l0 = _x_p11_l0;
p11_l2 = _x_p11_l2;
p11_l3 = _x_p11_l3;
p1_l1 = _x_p1_l1;
p11_c = _x_p11_c;
p1_l0 = _x_p1_l0;
p22_l1 = _x_p22_l1;
p1_l2 = _x_p1_l2;
p22_l0 = _x_p22_l0;
p1_l3 = _x_p1_l3;
p22_l2 = _x_p22_l2;
p22_l3 = _x_p22_l3;
p1_c = _x_p1_c;
p12_l1 = _x_p12_l1;
p22_c = _x_p22_c;
p12_l0 = _x_p12_l0;
p12_l2 = _x_p12_l2;
p12_l3 = _x_p12_l3;
p2_l1 = _x_p2_l1;
p12_c = _x_p12_c;
p2_l0 = _x_p2_l0;
p23_l1 = _x_p23_l1;
p2_l2 = _x_p2_l2;
p23_l0 = _x_p23_l0;
p2_l3 = _x_p2_l3;
p23_l2 = _x_p23_l2;
p23_l3 = _x_p23_l3;
p2_c = _x_p2_c;
p13_l1 = _x_p13_l1;
p23_c = _x_p23_c;
p13_l0 = _x_p13_l0;
p13_l2 = _x_p13_l2;
p13_l3 = _x_p13_l3;
p3_l1 = _x_p3_l1;
p13_c = _x_p13_c;
p3_l0 = _x_p3_l0;
p24_l1 = _x_p24_l1;
p3_l2 = _x_p3_l2;
p24_l0 = _x_p24_l0;
p3_l3 = _x_p3_l3;
p24_l2 = _x_p24_l2;
p24_l3 = _x_p24_l3;
p3_c = _x_p3_c;
p14_l1 = _x_p14_l1;
p24_c = _x_p24_c;
p14_l0 = _x_p14_l0;
p14_l2 = _x_p14_l2;
p14_l3 = _x_p14_l3;
p4_l1 = _x_p4_l1;
p14_c = _x_p14_c;
p4_l0 = _x_p4_l0;
p25_l1 = _x_p25_l1;
p4_l2 = _x_p4_l2;
p25_l0 = _x_p25_l0;
p4_l3 = _x_p4_l3;
p25_l2 = _x_p25_l2;
p25_l3 = _x_p25_l3;
p4_c = _x_p4_c;
p15_l1 = _x_p15_l1;
p25_c = _x_p25_c;
p15_l0 = _x_p15_l0;
p15_l2 = _x_p15_l2;
p15_l3 = _x_p15_l3;
p5_l1 = _x_p5_l1;
p15_c = _x_p15_c;
p5_l0 = _x_p5_l0;
p26_l1 = _x_p26_l1;
p5_l2 = _x_p5_l2;
p26_l0 = _x_p26_l0;
p5_l3 = _x_p5_l3;
p26_l2 = _x_p26_l2;
p26_l3 = _x_p26_l3;
p5_c = _x_p5_c;
p16_l1 = _x_p16_l1;
p26_c = _x_p26_c;
p16_l0 = _x_p16_l0;
p16_l2 = _x_p16_l2;
p16_l3 = _x_p16_l3;
p6_l1 = _x_p6_l1;
p16_c = _x_p16_c;
p6_l0 = _x_p6_l0;
p27_l1 = _x_p27_l1;
p6_l2 = _x_p6_l2;
p27_l0 = _x_p27_l0;
p6_l3 = _x_p6_l3;
p27_l2 = _x_p27_l2;
p27_l3 = _x_p27_l3;
p6_c = _x_p6_c;
p17_l1 = _x_p17_l1;
p27_c = _x_p27_c;
p17_l0 = _x_p17_l0;
p17_l2 = _x_p17_l2;
p17_l3 = _x_p17_l3;
p7_l1 = _x_p7_l1;
p17_c = _x_p17_c;
p7_l0 = _x_p7_l0;
p7_l2 = _x_p7_l2;
_J6205 = _x__J6205;
p7_l3 = _x_p7_l3;
_J6199 = _x__J6199;
_J6192 = _x__J6192;
_J6186 = _x__J6186;
_J6181 = _x__J6181;
_J6175 = _x__J6175;
_EL_U_6138 = _x__EL_U_6138;
p7_c = _x_p7_c;
_EL_U_6140 = _x__EL_U_6140;
_EL_U_6142 = _x__EL_U_6142;
p18_l1 = _x_p18_l1;
_EL_U_6144 = _x__EL_U_6144;
p18_l0 = _x_p18_l0;
_EL_U_6146 = _x__EL_U_6146;
p18_l2 = _x_p18_l2;
_EL_U_6148 = _x__EL_U_6148;
p18_l3 = _x_p18_l3;
p8_l1 = _x_p8_l1;
p18_c = _x_p18_c;
p8_l0 = _x_p8_l0;
p8_l2 = _x_p8_l2;
p8_l3 = _x_p8_l3;
p1_evt = _x_p1_evt;
p0_evt = _x_p0_evt;
p2_evt = _x_p2_evt;
p3_evt = _x_p3_evt;
p4_evt = _x_p4_evt;
}
}
|
the_stack_data/1057855.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int lexicographic_sort(const char* a, const char* b) {
return strcmp(a, b);
}
int lexicographic_sort_reverse(const char* a, const char* b) {
return strcmp(b, a);
}
#define CHARS 26
int distinct_chars(const char *a)
{
int dist = 0;
int chars[CHARS] = {0};
while (*a != '\0') {
int chr = (*a++) - 'a';
if (chr < CHARS)
chars[chr]++;
}
for (int i = 0; i < CHARS; i++)
if (chars[i])
dist++;
return dist;
}
int sort_by_number_of_distinct_characters(const char* a, const char* b) {
int res = distinct_chars(a) - distinct_chars(b);
return (res) ? res : lexicographic_sort(a, b);
}
int sort_by_length(const char* a, const char* b) {
int res = strlen(a) - strlen(b);
return (res) ? res : lexicographic_sort(a, b);
}
/* simple bubble sort :) */
void string_sort(char** arr, const int len,int (*cmp_func)(const char* a, const char* b)) {
int sorted = 0;
int top = len - 1;
while (!sorted) {
sorted = 1;
for (int i = 0; i < top; i++) {
if (cmp_func(arr[i], arr[i + 1]) > 0) {
char *tmp = arr[i];
arr[i] = arr[i + 1];
arr[i + 1] = tmp;
sorted = 0;
}
}
top--;
}
}
int main()
{
int n;
scanf("%d", &n);
char** arr;
arr = (char**)malloc(n * sizeof(char*));
for(int i = 0; i < n; i++){
*(arr + i) = malloc(1024 * sizeof(char));
scanf("%s", *(arr + i));
*(arr + i) = realloc(*(arr + i), strlen(*(arr + i)) + 1);
}
string_sort(arr, n, lexicographic_sort);
for(int i = 0; i < n; i++)
printf("%s\n", arr[i]);
printf("\n");
string_sort(arr, n, lexicographic_sort_reverse);
for(int i = 0; i < n; i++)
printf("%s\n", arr[i]);
printf("\n");
string_sort(arr, n, sort_by_length);
for(int i = 0; i < n; i++)
printf("%s\n", arr[i]);
printf("\n");
string_sort(arr, n, sort_by_number_of_distinct_characters);
for(int i = 0; i < n; i++)
printf("%s\n", arr[i]);
printf("\n");
}
|
the_stack_data/168892244.c | /*
* Copyright (c) Huawei Technologies Co., Ltd. 2020. All rights reserved.
* secGEAR is licensed under the Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
* PURPOSE.
* See the Mulan PSL v2 for more details.
*/
#include <stdio.h>
#include <syslog.h>
__attribute__((visibility("default"))) void cc_enclave_PrintInfo(const char *str)
{
openlog("secGear", LOG_CONS | LOG_PID, 0);
syslog(LOG_INFO, "%s\n", str);
closelog();
return;
}
|
the_stack_data/955292.c | #include "stdio.h"
int main() {
int num = 0;
printf("Enter number : ");
scanf("%d", &num);
printf("The number is: %d\n", num);
return 0;
}
|
the_stack_data/406762.c | /*
** $Id: charset-arabic.c 8944 2007-12-29 08:29:16Z houhh $
**
** charset.c: The charset's arabic operation set.
**
** Copyright (C) 2003 ~ 2008 Feynman Software
** Copyright (C) 2000 ~ 2002 Wei Yongming.
**
** All right reserved by Feynman Software.
**
** Current maintainer: houhuihua.
**
** Create date: 2008/01/23
*/
#ifdef _MGCHARSET_ARABIC
#include "gdi.h"
#include "bidi.h"
typedef struct _SHAPEINFO {
unsigned short int isolated;
unsigned short int final;
unsigned short int initial;
unsigned short int medial;
}SHAPEINFO;
#define MAX_GLYPH_VALUE 0x133
#define SHAPENUMBER 36
static const SHAPEINFO shape_info[SHAPENUMBER] = {
/* Base Isol Final Initial Medial */
{ /* 0 0xC1 (0x0621) */ 0xC1/*0xFE80*/, 0x00, 0x00, 0x00 /* Arabic letter Hamza */ },
{ /* 1 0xC2 (0x0622) */ 0xC2/*0xFE81*/, 0x102/*0xFE82*/, 0x00, 0x00 /* Arabic letter Alef with Madda above */ },
{ /* 2 0xC3 (0x0623) */ 0xC3/*0xFE83*/, 0x103/*0xFE84*/, 0x00, 0x00 /* Arabic letter Alef with Hamza above */ },
{ /* 3 0xC4 (0x0624) */ 0xC4/*0xFE85*/, 0x104/*0xFE86*/, 0x00, 0x00 /* Arabic letter Waw with Hamza above */ },
{ /* 4 0xC5 (0x0625) */ 0xC5/*0xFE87*/, 0x105/*0xFE88*/, 0x00, 0x00 /* Arabic letter Alef with Hamza below */ },
{ /* 5 0xC6 (0x0626) */ 0x9F/*0xFE89*/, 0xC6 /*0xFE8A*/, 0xC0/*0xFE8B*/, 0x106/*0xFE8C*/ /* Arabic letter Yeh with Hamza above */ },
{ /* 6 0xC7 (0x0627) */ 0xC7/*0xFE8D*/, 0x107/*0xFE8E*/, 0x00, 0x00 /* Arabic letter Alef */ },
{ /* 7 0xC8 (0x0628) */ 0xC8/*0xFE8F*/, 0x108/*0xFE90*/, 0xEB/*0xFE91*/, 0x11E/*0xFE92*/ /* Arabic letter Beh */ },
{ /* 8 0xC9 (0x0629) */ 0xC9/*0xFE93*/, 0x8E /*0xFE94*/, 0x00, 0x00 /* Arabic letter Teh Marbuta */ },
{ /* 9 0xCA (0x062A) */ 0xCA/*0xFE95*/, 0x109/*0xFE96*/, 0xEC/*0xFE97*/, 0x11F/*0xFE98*/ /* Arabic letter Teh */ },
{ /* 10 0xCB (0x062B) */ 0xCB/*0xFE99*/, 0x10A/*0xFE9A*/, 0xED/*0xFE9B*/, 0x120/*0xFE9C*/ /* Arabic letter Theh */ },
{ /* 11 0xCC (0x062C) */ 0xCC/*0xFE9D*/, 0x10B/*0xFE9E*/, 0xEE/*0xFE9F*/, 0x121/*0xFEA0*/ /* Arabic letter Jeem */ },
{ /* 12 0xCD (0x062D) */ 0xCD/*0xFEA1*/, 0x10C/*0xFEA2*/, 0xEF/*0xFEA3*/, 0x122/*0xFEA4*/ /* Arabic letter Hah */ },
{ /* 13 0xCE (0x062E) */ 0xCE/*0xFEA5*/, 0x10D/*0xFEA6*/, 0xF0/*0xFEA7*/, 0x123/*0xFEA8*/ /* Arabic letter Khah */ },
{ /* 14 0xCF (0x062F) */ 0xCF/*0xFEA9*/, 0x10E/*0xFEAA*/, 0x00, 0x00 /* Arabic letter Dal */ },
{ /* 15 0xD0 (0x0630) */ 0xD0/*0xFEAB*/, 0x10F/*0xFEAC*/, 0x00, 0x00 /* Arabic letter Thal */ },
{ /* 16 0xD1 (0x0631) */ 0xD1/*0xFEAD*/, 0x110/*0xFEAE*/, 0x00, 0x00 /* Arabic letter Reh */ },
{ /* 17 0xD2 (0x0632) */ 0xD2/*0xFEAF*/, 0x111/*0xFEB0*/, 0x00, 0x00 /* Arabic letter Zain */ },
{ /* 18 0xD3 (0x0633) */ 0xD3/*0xFEB1*/, 0x8F /*0xFEB2*/, 0xF1/*0xFEB3*/, 0x124/*0xFEB4*/ /* Arabic letter Seen */ },
{ /* 19 0xD4 (0x0634) */ 0xD4/*0xFEB5*/, 0x90 /*0xFEB6*/, 0xF2/*0xFEB7*/, 0x125/*0xFEB8*/ /* Arabic letter Sheen */ },
{ /* 20 0xD5 (0x0635) */ 0xD5/*0xFEB9*/, 0x91 /*0xFEBA*/, 0xF3/*0xFEBB*/, 0x126/*0xFEBC*/ /* Arabic letter Sad */ },
{ /* 21 0xD6 (0x0636) */ 0xD6/*0xFEBD*/, 0x92 /*0xFEBE*/, 0xF4/*0xFEBF*/, 0x127/*0xFEC0*/ /* Arabic letter Dad */ },
{ /* 22 0xD7 (0x0637) */ 0xD7/*0xFEC1*/, 0x93 /*0xFEC2*/, 0x112/*0xFEC3*/,0x100/*0xFEC4*/ /* Arabic letter Tah */ },
{ /* 23 0xD8 (0x0638) */ 0xD8/*0xFEC5*/, 0x101/*0xFEC6*/, 0xD8/*0xFEC7*/, 0x94 /*0xFEC8*/ /* Arabic letter Zah */ },
{ /* 24 0xD9 (0x0639) */ 0xD9/*0xFEC9*/, 0x96 /*0xFECA*/, 0xF5/*0xFECB*/, 0x95 /*0xFECC*/ /* Arabic letter Ain */ },
{ /* 25 0xDA (0x063A) */ 0xDA/*0xFECD*/, 0x98 /*0xFECE*/, 0xF6/*0xFECF*/, 0x97 /*0xFED0*/ /* Arabic letter Ghain */ },
{ /* 26 0xE1 (0x0641) */ 0xE1/*0xFED1*/, 0x114/*0xFED2*/, 0xF7/*0xFED3*/, 0x99 /*0xFED4*/ /* Arabic letter Feh */ },
{ /* 27 0xE2 (0x0642) */ 0xE2/*0xFED5*/, 0x115/*0xFED6*/, 0xF8/*0xFED7*/, 0x9A /*0xFED8*/ /* Arabic letter Qaf */ },
{ /* 28 0xE3 (0x0643) */ 0xE3/*0xFED9*/, 0x116/*0xFEDA*/, 0xF9/*0xFEDB*/, 0x9B /*0xFEDC*/ /* Arabic letter Kaf */ },
{ /* 29 0xE4 (0x0644) */ 0xE4/*0xFEDD*/, 0x117/*0xFEDE*/, 0xFA/*0xFEDF*/, 0x128/*0xFEE0*/ /* Arabic letter Lam */ },
{ /* 30 0xE5 (0x0645) */ 0xE5/*0xFEE1*/, 0x118/*0xFEE2*/, 0xFB/*0xFEE3*/, 0x129/*0xFEE4*/ /* Arabic letter Meem */ },
{ /* 31 0xE6 (0x0646) */ 0xE6/*0xFEE5*/, 0x119/*0xFEE6*/, 0xFC/*0xFEE7*/, 0x12A/*0xFEE8*/ /* Arabic letter Noon */ },
{ /* 32 0xE7 (0x0647) */ 0xE7/*0xFEE9*/, 0x11A/*0xFEEA*/, 0xFD/*0xFEEB*/, 0x9C /*0xFEEC*/ /* Arabic letter Heh */ },
{ /* 33 0xE8 (0x0648) */ 0xE8/*0xFEED*/, 0x11B/*0xFEEE*/, 0x00, 0x00 /* Arabic letter Waw */ },
{ /* 34 0xE9 (0x0649) */ 0x8D/*0xFEEF*/, 0x11C/*0xFEF0*/, 0x00, 0x00 /* Arabic letter Alef Maksura */ },
{ /* 35 0xEA (0x064A) */ 0x9E/*0xFEF1*/, 0x11D/*0xFEF2*/, 0xFE/*0xFEF3*/, 0x12B/*0xFEF4*/ /* Arabic letter Yeh */ },
};
/************************* ISO8859-6 Specific Operations **********************/
static int iso8859_6_is_this_charset (const unsigned char* charset)
{
int i;
char name [LEN_FONT_NAME + 1];
for (i = 0; i < LEN_FONT_NAME + 1; i++) {
if (charset [i] == '\0')
break;
name [i] = toupper (charset [i]);
}
name [i] = '\0';
if (strstr (name, "ISO") && strstr (name, "8859-6"))
return 0;
if (strstr (name, "ARABIC"))
return 0;
return 1;
}
#ifdef _MGCHARSET_UNICODE
static unsigned short iso8859_68x_unicode_map [] =
{
/*vowel with tadweel.*/
0xFE70, 0xFC5E, 0xFC5F, 0xFC60, /*0x81~0x84*/
0xFC61, 0xFC62, 0xFC63, 0xFC64, /*0x85~0x88*/
0xFE70, 0xFCF2, 0xFCF3, 0xFCF4, /*0x89~0x8C*/
0xFEEF, 0xFE94, 0xFEB2, 0xFEB6, /*0x8D~0x90*/
0xFEBA, 0xFEBE, 0xFEC2, 0xFEC8, /*0x93~0x94*/
0xFECC, 0xFECA, 0xFED0, 0xFECE,
0xFED4, 0xFED8, 0xFEDC, 0xFEEC,
0xFEEA, 0xFEF1, 0xFE89, 0x0020,
/*two cell ligature.*/
0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF, /*0xA1~0xA4*/
0xFFFF, 0xFFFF, 0xFFFF, /*0xA5~0xA7*/
0xFE70, 0xFE72, 0xFE74, 0xFE76, /*0xA8~0xAB*/
0xFE78, 0xFE7A, 0xFE7C, 0xFE7E, /*0xAC~0xAF*/
0x0660, 0x0661, 0x0662, 0x0663, /*0~9*/
0x0664, 0x0665, 0x0666, 0x0667,
0x0668, 0x0669, 0x060C, 0x061B,
0xFE71, 0xFE72, 0xFE74, 0x061F, /*0xBD~0xBF*/
0xFE8B, 0xFE80, /*0xC0,0xC1*/
0xFE81, 0xFE83, 0xFE85, 0xFE87, /*0xC2~0xC5*/
0xFE8A, 0xFE8D, 0xFE8F, 0xFE93, /*0xC6~0xC9*/
0xFE95, 0xFE99, 0xFE9D, 0xFEA1, /*0xCA~0xCD*/
0xFEA5, 0xFEA9, 0xFEAB, 0xFEAD, /*0xCE~0xD1*/
0xFEAF, 0xFEB1, 0xFEB5, 0xFEB9, /*0xD2~0xD5*/
0xFEBD, 0xFEC1, 0xFEC5, 0xFEC9, /*0xD6~0xD9*/
0xFECD, 0xFE77, 0xFE79, 0xFE7B, /*0xDA~0xDD*/
0xFE7D, 0xFE7F, 0x0640,
0xFED1, 0xFED5, 0xFED9, 0xFEDD, /*0xE1~0xE4*/
0xFEE1, 0xFEE5, 0xFEE9, 0xFEED, /*0xE5~0xE8*/
0xFEEF, 0xFEF1, 0xFE91, 0xFE97, /*0xE9~0xEC*/
0xFE9B, 0xFE9F, 0xFEA3, 0xFEA7, /*0xED~0xF0*/
0xFEB3, 0xFEB7, 0xFEBB, 0xFEBF, /*0xF1~0xF4*/
0xFECB, 0xFECF, 0xFED3, 0xFED7, /*0xF5~0xF8*/
0xFEDB, 0xFEDF, 0xFEE3, 0xFEE7, /*0xF9~0xFC*/
0xFEEB, 0xFEF4, 0xFFFF, /*0xFD~0xFF*/
0xFEC4, 0xFEC6, 0xFE82, 0xFE84, /*0x100~0x103*/
0xFE86, 0xFE88, 0xFE8C, 0xFE8E, /*0x104~0x107*/
0xFE90, 0xFE96, 0xFE9A, 0xFE9E, /*0x108~0x10B*/
0xFEA2, 0xFEA6, 0xFEAA, 0xFEAC, /*0x10C~0x10F*/
0xFEAE, 0xFEB0, 0xFEC3, 0xFEC7, /*0x110~0x113*/
0xFED2, 0xFED6, 0xFEDA, 0xFEDE, /*0x114~0x117*/
0xFEE2, 0xFEE6, 0xFEEA, 0xFEEE, /*0x118~0x11B*/
0xFEF0, 0xFEF2, 0xFE92, 0xFE98, /*0x11C~0x11F*/
0xFE9C, 0xFEA0, 0xFEA4, 0xFEA8, /*0x120~0x123*/
0xFEB4, 0xFEB8, 0xFEBC, 0xFEC0, /*0x124~0x127*/
0xFEE0, 0xFEE4, 0xFEE8, 0xFEF4, /*0x128~0x12B*/
0xFEFB, 0xFEFC, 0xFEF5, 0xFEF6, /*0x12C~0x12F*/
0xFEF7, 0xFEF8, 0xFEF9, 0xFEFA, /*0x130~0x133*/
};
static UChar32 iso8859_6_conv_to_uc32 (Glyph32 glyph_value)
{
if (glyph_value < 0x81)
return (Glyph32) (glyph_value);
else if (glyph_value <= MAX_GLYPH_VALUE )
return (Glyph32) iso8859_68x_unicode_map[glyph_value - 0x81];
else
return 0xFFFF;
}
static int iso8859_6_conv_from_uc32 (UChar32 wc, unsigned char* mchar)
{
switch (wc) {
case 0x060C:
*mchar = 0xAC;
return 1;
case 0x061B:
*mchar = 0xBB;
return 1;
case 0x061F:
*mchar = 0xBF;
return 1;
}
if (wc < 0xC1) {
*mchar = (unsigned char) wc;
return 1;
}
if (wc >= 0x0621 && wc <= (0x0621 + 0xF2 - 0xC1)) {
*mchar = (unsigned char) (wc - 0x0621 + 0xC1);
return 1;
}
return 0;
}
#endif
/* must attetion the para s is arabic glyph value.*/
static int is_arabic_glyph_vowel(Uint8 c)
{
if ((c >= 0x81) && (c <= 0x86)) return 1;
if ((c >= 0xa8) && (c <= 0xaf)) return 1;
/* unicode vowel range. */
/* if ((s >= 0x64B) && (s <= 0x655)) return 1;
if ((s >= 0xFC5E) && (s <= 0xFC63)) return 1;
if ((s >= 0xFE70) && (s <= 0xFE7F)) return 1;
*/
return 0;
}
/* ISO8859-6 charset vowel relative define and judge */
#define ISARABIC_VOWEL(s) ((s >= FATHATAN) && (s <= SUKUN))
#define ISARABIC_PUNC(s) ((s == COMMA) || (s == SEMICOLON) \
|| (s == DOLLAR) || (s == QUESTION))
#define ALIF 0xC7
#define ALIFHAMZA 0xC5
#define ALIFAHAMZA 0xC3
#define ALIFMADDA 0xC2 //ARABIC LETTER ALEF WITH MADDA ABOVE
#define LAM 0xE4
/* ISO 8859-6 punctuation mark.*/
#define COMMA 0xAC
#define SEMICOLON 0xBB
#define QUESTION 0xBF
#define DOLLAR 0xA4
#define TADWEEL 0xE0
#define FATHATAN 0xEB
#define DAMMATAN 0xEC
#define KASRATAN 0xED
#define FATHA 0xEE
#define DAMMA 0xEF
#define KASRA 0xF0
#define SHADDA 0xF1
#define SUKUN 0xF2
/* this define is relative with fontset 0xa1~0xa7.
* it it used for ligature such as LAM+ALEF, one ligature
* have two fontset glyphs.*/
#define LAM_ALIF 0x12C //0xA1A5
#define LAM_ALIF_F 0x12D //0xA1A6
#define LAM_ALIFMADDA 0x12E //0xA2A5
#define LAM_ALIFMADDA_F 0x12F //0xA2A6
#define LAM_ALIFAHAMZA 0x130 //0xA3A5
#define LAM_ALIFAHAMZA_F 0x131 //0xA3A6 //ARABIC LETTER ALEF WITH HAMZA BELOW
#define LAM_ALIFHAMZA 0x132 //0xA4A5
#define LAM_ALIFHAMZA_F 0x133 //0xA4A6 //ARABIC LETTER ALEF WITH HAMZA ABOVE final.
/* Because the get_ligature is close relative with fontset 6.8x, so
* do it in the follow five functions, if the fontset is change, you only
* need to implement follow five interface.
* 1. get_vowel_glyph().
* 2. get_twovowel_glyph().
* 3. get_tadweel_glyph().
* 4. get_ligature_glyph().
* 5. get_punpoint_glyph().
* houhh 20080128.
* */
static int fontset_68x_get_punpoint_glyph(Uint8 c)
{
int ligature = -1;
switch(c){
case COMMA: ligature = 0xba; break;
case SEMICOLON: ligature = 0xbb; break;
case QUESTION: ligature = 0xbf; break;
case DOLLAR: ligature = 0x24; break;
default: ligature = -1; break; // this will not happen.
}
return ligature;
}
static int fontset_68x_get_vowel_glyph(Uint8 c)
{
int ligature = -1;
switch(c){
case FATHATAN: ligature = 0xa8; break;
case DAMMATAN: ligature = 0xa9; break;
case KASRATAN: ligature = 0xaa; break;
case FATHA: ligature = 0xab; break;
case DAMMA: ligature = 0xac; break;
case KASRA: ligature = 0xad; break;
case SHADDA: ligature = 0xae; break;
case SUKUN: ligature = 0xaf; break;
default: ligature = -1; break; // this will not happen.
}
return ligature;
}
static int fontset_68x_get_twovowel_glyph(unsigned char c, unsigned char next, int* ignore)
{
int ligature = -1;
if(c == SHADDA){
switch(next){
case FATHATAN: *ignore = 1; ligature = 0x81; break;
case DAMMATAN: *ignore = 1; ligature = 0x82; break;
case KASRATAN: *ignore = 1; ligature = 0x83; break;
case FATHA: *ignore = 1; ligature = 0x84; break;
case DAMMA: *ignore = 1; ligature = 0x85; break;
case KASRA: *ignore = 1; ligature = 0x86; break;
default: *ignore = 0; ligature = 0xae; break; //FIX BUG, only SHADDA.
}
}
else {
*ignore = 0;
ligature = fontset_68x_get_vowel_glyph(c);
}
return ligature;
}
static int fontset_68x_get_ligature_glyph(unsigned char c, BOOL prev_affects_joining, int* ignore)
{
int ligature = -1;
if(prev_affects_joining){
switch (c){
case ALIF: *ignore = 1; ligature = LAM_ALIF_F; break;
case ALIFHAMZA: *ignore = 1; ligature = LAM_ALIFHAMZA_F; break;
case ALIFAHAMZA: *ignore = 1; ligature = LAM_ALIFAHAMZA_F;break;
case ALIFMADDA: *ignore = 1; ligature = LAM_ALIFMADDA_F; break;
default: *ignore = 0; ligature = -1; break; // FIX BUG, later do the shape continue.
}
}
else{
switch (c){
case ALIF: *ignore = 1; ligature = LAM_ALIF; break;
case ALIFHAMZA: *ignore = 1; ligature = LAM_ALIFHAMZA; break;
case ALIFAHAMZA: *ignore = 1; ligature = LAM_ALIFAHAMZA;break;
case ALIFMADDA: *ignore = 1; ligature = LAM_ALIFMADDA; break;
default: *ignore = 0; ligature = -1; break;
}
}
return ligature;
}
static int fontset_68x_get_tadweel_glyph(unsigned char c, unsigned char next, int* ignore)
{
int ligature = -1;
if(c == SHADDA){
/* TADWEEL combine with two vowel except SUKUN
* can not combine with SHADDA.*/
switch(next){
case FATHATAN: *ignore = 2; ligature = 0x87; break;
case DAMMATAN: *ignore = 2; ligature = 0x88; break;
case KASRATAN: *ignore = 2; ligature = 0x89; break;
case FATHA: *ignore = 2; ligature = 0x8a; break;
case DAMMA: *ignore = 2; ligature = 0x8b; break;
case KASRA: *ignore = 2; ligature = 0x8c; break;
default: *ignore = 1; ligature = 0xde; break; // FIX BUG combine of TADWELL SHADDA.
}
}
else {
/* TADWEEL combine withe one vowel. */
switch(c){
case FATHATAN: *ignore = 1; ligature = 0xbc; break;
case DAMMATAN: *ignore = 1; ligature = 0xbd; break;
case KASRATAN: *ignore = 1; ligature = 0xbe; break;
case FATHA: *ignore = 1; ligature = 0xdb; break;
case DAMMA: *ignore = 1; ligature = 0xdc; break;
case KASRA: *ignore = 1; ligature = 0xdd; break;
case SHADDA: *ignore = 1; ligature = 0xde; break;
case SUKUN: *ignore = 1; ligature = 0xdf; break;
default: *ignore = 0; ligature = TADWEEL; break; // FIX BUG of only TADWEEL.
}
}
return ligature;
}
#ifndef _DEBUG
static
#endif
int get_ligature(const unsigned char* mchar, int len, BOOL prev_affects_joining, int* ignore)
{
int ligature = -1;
Uint8 cur_char, next, next_next;
if(ignore) *ignore = 0;
cur_char = *mchar;
ligature = fontset_68x_get_punpoint_glyph(cur_char);
if(ligature > 0) return ligature;
if(len == 1){
if (ISARABIC_VOWEL(cur_char)){
ligature = fontset_68x_get_vowel_glyph(cur_char);
}
else if(cur_char == TADWEEL){
ligature = TADWEEL;
}
}
else if(len > 1){
next = *(mchar+1);
if (ISARABIC_VOWEL(cur_char)){ /* two VOWEL, one must be SHADDA first. */
ligature = fontset_68x_get_twovowel_glyph(cur_char, next, ignore);
}
else if (cur_char == LAM) { /* LAM+ALEF+HAMAZ+MADDA ligature. */
ligature = fontset_68x_get_ligature_glyph(next, prev_affects_joining, ignore);
}
else if(cur_char == TADWEEL){ /* TADWEEL combine with VOWEL*/
if(len > 2) next_next = *(mchar+2);
else next_next = 0;
ligature = fontset_68x_get_tadweel_glyph(next, next_next, ignore);
if(ligature == -1 && cur_char == TADWEEL){
ligature = TADWEEL;
}
}
}
else{
*ignore = 0;
}
return ligature;
}
static int iso8859_6_len_first_char (const unsigned char* mstr, int len)
{
int ignore = 0;
/* if ligature, ligature will have two or three bytes.*/
get_ligature (mstr, len, FALSE, &ignore);
if (ignore == 1)
return 2;
else if (ignore == 2)
return 3;
else
return 1;
}
#define ISARABIC_LIG_HALF(s) ((s == 0xa5) || (s == 0xa6))
static unsigned int iso8859_6_glyph_type (Glyph32 glyph_value)
{
unsigned int ch_type = MCHAR_TYPE_UNKNOWN;
if (is_arabic_glyph_vowel (glyph_value)){ /* is vowel */
ch_type = MCHAR_TYPE_VOWEL;
}
else{
ch_type = sb_glyph_type (glyph_value);
}
return ch_type;
}
static unsigned int iso8859_6_bidi_glyph_type (Glyph32 glyph_value)
{
unsigned int ch_type = BIDI_TYPE_AL;
ch_type = bidi_glyph_type(FONT_CHARSET_ISO8859_6, glyph_value);
return ch_type;
}
static int get_table_index(Uint8 c)
{
/* is arabic letter range. */
if (c < 0xc0 || c == 0xe0) {
return -1;
}
if (c > 0xea) {
return -1;
}
/* first continue char range.*/
if ((c >= 0xc1) && (c <= 0xda)) {
return c - 0xc1;
}
/* second continue char shape range.*/
if ((c > 0xe0) && (c <= 0xea)) {
return (c - 0xe0) + (0xda- 0xc1);
}
return -1;
}
/* must attetion the para s is arabic letter value.*/
static int is_arabic_letter_vowel(Uint8 s)
{
if ((s >= 0xeb) && (s <= 0xf2)) return 1;
return 0;
}
/* arabic letter will affect shape, ascii or space will not. */
static int is_char_transparent(Uint8 c)
{
BOOL is_ascii = (c < 0x7f) ? 1 : 0;
BOOL is_space = ((c == 0x20) || (c == 0xa0)) ? 1 : 0;
BOOL is_punctuation = ((c == 0xac) || (c == 0xbb)
|| (c == 0xbf) || (c == DOLLAR)) ? 1 : 0;
BOOL is_vowel = is_arabic_letter_vowel(c);
if(is_ascii || is_space || is_punctuation || is_vowel)
return 0;
else return 1;
}
static int get_next_char(const unsigned char* mchar, int len)
{
int next_char = *mchar;
int left_bytes = len, len_cur_char = 0;
/* skip all vowel, get the next_char. */
if(len <= 1) return 0;
while (left_bytes > 0) {
len_cur_char = iso8859_6_len_first_char(mchar, left_bytes);
if (len_cur_char > 0 && is_arabic_letter_vowel(*(mchar+len_cur_char))) {
left_bytes -= len_cur_char;
mchar += len_cur_char;
}
else{
next_char = *(mchar+len_cur_char);
break;
}
}
return next_char;
}
Glyph32 iso8859_6_char_glyph_value (const unsigned char* prev_mchar, int prev_len, const unsigned char* mchar, int len)
{
BOOL next_affects_joining = FALSE, prev_affects_joining = FALSE;
int char_index, prev_index;
int final, initial, medial, ligature;
int ignore;
char next_char = 0, prev_char = 0;
/*ascii*/
if(*mchar < 0x7f) return *mchar;
char_index = get_table_index(*mchar);
/*current glyph has no transfiguration and has no ligature*/
if (char_index < 0 && !ISARABIC_PUNC(*mchar)
&& !ISARABIC_VOWEL(*mchar) && !(*mchar == TADWEEL)) {
return *mchar;
}
if(prev_mchar){
prev_index = get_table_index(*prev_mchar);
prev_affects_joining = ( prev_index >= 0 || is_char_transparent(*prev_mchar)) && (shape_info[prev_index].medial);
prev_char = *prev_mchar;
/*houhh 20080505, check if ligature. */
if(prev_affects_joining) {
ligature = get_ligature(prev_mchar, prev_len, 1, &ignore);
if(ligature > 0)
prev_affects_joining = 0;
}
}
/* processing ligature first.*/
ligature = get_ligature(mchar, len, prev_affects_joining, &ignore);
if (ligature > 0)
return ligature;
/* if not ligature char, get it's relative shape from shape_info table.*/
next_char = get_next_char(mchar, len);
next_affects_joining = ((get_table_index(next_char) > 0 || is_char_transparent(next_char)) && (shape_info[char_index].medial));
/* 1.prev and next char not affect, return isoliate */
if ((!prev_affects_joining) && (!next_affects_joining)) {
return shape_info[char_index].isolated;
}
/* 2.only next char affect,if has Initial,return Initial; else return Isolated */
else if ((!prev_affects_joining) && (next_affects_joining)) {
initial = shape_info[char_index].initial;
if (initial)
return initial;
else
return shape_info[char_index].isolated;
}
/* 3.prev and next char affect all,if has Medial, return Medial; else Isolated */
else if ((prev_affects_joining) && (next_affects_joining)) {
medial = shape_info[char_index].medial;
if (medial)
return medial;
else
return shape_info[char_index].isolated;
}
/* 4.only prev char affect,if has Final, return Final; else Isolated */
else if ((prev_affects_joining) && (!next_affects_joining)) {
final = shape_info[char_index].final;
if (final)
return final;
else
return shape_info[char_index].isolated;
}
return *mchar;
}
static const unsigned char* iso8859_6_get_next_word (const unsigned char* mstr,
int mstrlen, WORDINFO* word_info)
{
int i;
word_info->len = 0;
word_info->delimiter = '\0';
word_info->nr_delimiters = 0;
if (mstrlen == 0) return NULL;
for (i = 0; i < mstrlen; i++) {
switch (mstr[i]) {
case 0xa0:
case ' ':
case '\t':
case '\n':
case '\r':
if (word_info->delimiter == '\0') {
word_info->delimiter = mstr[i];
word_info->nr_delimiters ++;
}
else if (word_info->delimiter == mstr[i])
word_info->nr_delimiters ++;
else
return mstr + word_info->len + word_info->nr_delimiters;
break;
default:
if (word_info->delimiter != '\0')
break;
word_info->len++;
}
}
return mstr + word_info->len + word_info->nr_delimiters;
//return sb_get_next_word(mstr, mstrlen, word_info);
}
static Glyph32* iso8859_6_bidi_str_reorder (Glyph32* glyphs, int len)
{
return bidi_str_reorder (FONT_CHARSET_ISO8859_6, glyphs, len);
}
/*if cur_len>1, search ligature shape,
* else search letter or phonetic symbol shape*/
static Glyph32 iso8859_6_glyph_shape (const unsigned char* cur_mchar,
int cur_len, int shape_type)
{
Glyph32 glyph_value = -1;
int ignore;
int index;
if (cur_len > 1)
{
if (shape_type == GLYPH_ISOLATED)
glyph_value = get_ligature (cur_mchar, cur_len, FALSE, &ignore);
else if (shape_type != GLYPH_INITIAL) {
/* LAM+ALEF+HAMAZ+MADDA ligature. */
if (*cur_mchar == LAM)
glyph_value = fontset_68x_get_ligature_glyph(*(cur_mchar+1), TRUE, &ignore);
}
}
if (glyph_value == -1 || glyph_value == 0) {
if (ISARABIC_VOWEL(*cur_mchar)){
glyph_value = fontset_68x_get_vowel_glyph(*cur_mchar);
}
if (glyph_value == 0 || glyph_value == -1) {
index = get_table_index(*cur_mchar);
if (index >=0)
{
switch (shape_type) {
case GLYPH_ISOLATED:
glyph_value = shape_info[index].isolated;
break;
case GLYPH_FINAL:
glyph_value = shape_info[index].final;
break;
case GLYPH_INITIAL:
glyph_value = shape_info[index].initial;
break;
case GLYPH_MEDIAL:
glyph_value = shape_info[index].medial;
break;
}
}
else
glyph_value = *cur_mchar;
}
}
if (glyph_value == 0)
glyph_value =-1;
return glyph_value;
}
static CHARSETOPS CharsetOps_iso8859_6 = {
256,
3,
FONT_CHARSET_ISO8859_6,
0,
iso8859_6_len_first_char,
iso8859_6_char_glyph_value,
iso8859_6_glyph_shape,
iso8859_6_bidi_glyph_type,
iso8859_6_glyph_type,
sb_nr_chars_in_str,
iso8859_6_is_this_charset,
sb_len_first_substr,
iso8859_6_get_next_word,
sb_pos_first_char,
iso8859_6_bidi_str_reorder,
#ifdef _MGCHARSET_UNICODE
iso8859_6_conv_to_uc32,
iso8859_6_conv_from_uc32
#endif
};
#ifdef _DEBUG
int test_glyph_value (int char_index, Glyph32 glyph_value)
{
int i = 0;
for (i = 0; i<SHAPENUMBER; i++) {
if (shape_info[i].isolated == glyph_value ||
shape_info[i].initial == glyph_value ||
shape_info[i].medial == glyph_value ||
shape_info[i].final == glyph_value )
if( char_index == i)
return 1;
}
return 0;
}
#endif
#endif /* _ARABIC */
|
the_stack_data/87602.c | #include <stdio.h>
int main()
{
float j = 1, i = 0, a = 0.2;
int x, b = 1, y;
while ( i <= 1.9)
{
for(x = 0; x < 3; x++)
{
if(i == 0.0 || i == 1.0)
{
printf("I=%.0f J=%.0f\n", i, j);
}else
{
printf("I=%.1f J=%.1f\n", i, j);
}
j += 1;
}
i += 0.2;
j = b + a;
a += 0.2;
if (a > 8)
{
a = 0.2;
b += 1;
}
}
for(x=3; x<=5; x++) {
printf("I=2 J=%d\n",x);
}
return 0;
}
|
the_stack_data/528051.c | #include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/wait.h>
#include<unistd.h>
int main()
{
int pid,status,childid;
pid_t waitch;
pid=fork();
if(pid==0)
{printf("child pid %u its parent pid %u\n",getpid(),getppid());
execl("/bin/ls","ls",0);}
else
{do{waitch=wait(&status);}while(waitch!=childid);
}
return 0;
}
|
the_stack_data/26699011.c | #include <stdio.h>
int main()
{
float fahr, celsius;
float lower, upper, step;
lower = 0;
upper = 300;
step = 20;
printf("Fahrenheit\tCelsius\n");
fahr = lower;
while (fahr <= upper) {
celsius = (5.0 / 9.0) * (fahr - 32.0);
printf("%10.0f\t%7.1f\n", fahr, celsius);
fahr = fahr + step;
}
}
|
the_stack_data/75138084.c | struct a {
int b
} * e;
c, d;
f() {
struct a g = e[0];
unsigned h;
if (d == 0)
return c;
h = 0;
for (; h < d; ++h) {
g = e[h];
g.b && 0;
}
if (g.b)
i();
}
|
the_stack_data/36076539.c | #include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
typedef unsigned long long randType;
typedef randType elemType;
typedef randType indexType;
#ifndef printParams
#define printParams 1
#endif
#ifndef printArrays
#define printArrays 0
#endif
#ifndef printStats
#define printStats 1
#endif
#define numArrays 1
indexType n;
indexType N_U;
indexType m;
indexType indexMask;
#define errorTolerance 1.0e-2
randType m2[64];
int randWidth = 64;
// copied from Chapel runtime
double _now_time(void) {
struct tm * now;
struct timezone tz;
struct timeval t;
gettimeofday(&t, &tz);
now = localtime(&t.tv_sec);
return (double)(now->tm_hour)*3600.0e+6 +
(double)(now->tm_min)*60.0e+6 +
(double)(now->tm_sec)*1.0e+6 +
(double)(t.tv_usec);
}
double getCurrentTime(void) {
return _now_time() / 1.0e+6;
}
void getNextRandom(randType* x) {
randType POLY = 0x7;
randType hiRandBit = 0x1LL << (randWidth-1);
*x = (*x << 1) ^ ((*x & hiRandBit) ? POLY : 0);
}
void computeM2Vals(int numVals) {
randType nextVal = 0x1;
int i;
for (i=0; i<64; i++) {
m2[i] = nextVal;
getNextRandom(&nextVal);
getNextRandom(&nextVal);
}
}
int lg(int n) {
int retval = -1;
while (n != 0) {
n >> 1;
retval += 1;
}
return retval;
}
randType getNthRandom(indexType n) {
randType period = 0x7fffffffffffffffLL/7;
n %= period;
if (n == 0) { return 0x1; }
randType ran = 0x2;
int i = lg(n)-1;
while (i != -1) {
randType val = 0;
int j;
for (j=0; j<64; j++) {
if ((ran >> j) & 1) { val ^= m2[j]; }
}
ran = val;
if ((n >> i) & 1) { getNextRandom(&ran); }
i--;
}
return ran;
}
randType getFirstRandom() {
static int firstCall = 1;
if (firstCall) {
firstCall = 0;
computeM2Vals(64);
}
return getNthRandom(0);
}
void printProblemSize(indexType problemSize, indexType lgProbSize) {
const indexType bytesPerArray = problemSize * sizeof(elemType);
const double totalMemInGB = (double)bytesPerArray / (1024.0*1024.0*1024.0);
printf("Problem size = %llu (2 ** %llu)\n", problemSize, lgProbSize);
printf("Bytes per array = %llu\n", bytesPerArray);
printf("Total memory required (GB) = %lg\n", totalMemInGB);
}
void printConfiguration() {
if (printParams) {
printProblemSize(m,n);
printf("Number of updates = %llu\n\n", N_U);
}
}
void printTable(elemType T[]) {
indexType i;
for (i=0; i<m-1; i++) {
printf("%llu ", T[i]);
}
printf("%llu", T[m-1]);
printf("\n");
}
int verifyResults(elemType T[]) {
indexType i;
if (printArrays) {
printf("After updates, T is: ");
printTable(T);
printf("\n");
}
randType r = getFirstRandom();
for (i=0; i<N_U; i++) {
getNextRandom(&r);
T[r & indexMask] ^= r;
}
if (printArrays) {
printf("After verification, T is: ");
printTable(T);
printf("\n");
}
indexType numErrors = 0;
for (i=0; i<m; i++) {
if (T[i] != i) {
numErrors++;
}
}
if (printStats) { printf("Number of errors is: %d\n\n", numErrors); }
return (numErrors <= (errorTolerance * N_U));
}
void printResults(int successful, double execTime) {
printf("Validation: %s\n", successful ? "SUCCESS" : "FAILURE");
if (printStats) {
printf("Execution time = %lg\n", execTime);
printf("Performance (GUPS) = %lg\n", (double)N_U / execTime * 1.0e-9);
}
}
int main(int argc, char* argv[]) {
if (argc != 2) {
fprintf(stderr, "Usage: %s <n>\n", argv[0]);
fprintf(stderr, " n is log2() of the problem size\n");
exit(0);
}
n = atoi(argv[1]);
N_U = pow(2, n+2);
m = 0x1 << n;
indexMask = m-1;
printConfiguration();
elemType * const __restrict T = (elemType*)malloc(m*sizeof(elemType));
indexType i;
for (i=0; i<m; i++) T[i] = 0; // warm up memory (and zero out)
double startTime = getCurrentTime();
for (i=0; i<m; i++) {
T[i] = i;
}
randType r = getFirstRandom();
for (i=0; i<N_U; i++) {
getNextRandom(&r);
T[r & indexMask] ^= r;
}
double execTime = getCurrentTime() - startTime;
int validAnswer = verifyResults(T);
printResults(validAnswer, execTime);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.