file
stringlengths
18
26
data
stringlengths
3
1.04M
the_stack_data/100140654.c
#include <stdio.h> #include <time.h> static unsigned _seed = 1; int rand(void) { _seed = _seed * 1103515245 + 12345; return (unsigned int)(_seed / 65536) % 32768; } int srand(unsigned int seed) { /* setting random seed, default=1 */ _seed = seed; } // int main() // { // srand(time(0)); // for (int i = 1; i < 5; ++i) // { // printf("%d\n", rand()); // } // return 0; // }
the_stack_data/468085.c
/* Copyright (c) 2011, Matt Joseph All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the <organization> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> 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. University of Pittsburgh CS449 Project 5 Modified: 2011-12-11 @ 23:30 Note: Tested successfully by compiling with the following argument: gcc -O2 -pthread -o server server.c Also, this program assumes that any file requested RELATIVE to the directory of the server! For example, if this server is in /home/testuser/public/html/, then a request saying GET http://localhost:80/example.html is translated to /home/testuser/public/html/example.html */ #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <stdio.h> #include <sys/wait.h> #include <errno.h> #include <pthread.h> #include <time.h> #include <string.h> // Max threads/(open/finished) connections is # defined here #define MAX_PTHREADS 100 /* intlen * Takes an int and returns the length of the int. * Length means how many characters it takes to print on screen/to file. Aka how many digits. */ int intlen(float start) { int length = 0; while(start >= 1) { start = start/10; length++; } return length; } /* connection * Handles connections to the server. Returns file contents/file not found/bad command. */ void *connection(void *arg) { // Mutex pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; // File size variables int read_file_size; int read_file_size_length; // Length if the string value of the file size // Time variables time_t current_time; struct tm* current_gmtime; // Stats file FILE *stats_file; int stats_string_length; // Read file variables char file_name[100]; FILE *read_file; // Buffers char receive_buffer[1024]; char *send_buffer; int receive_buffer_size = 1024; int send_buffer_size; char time_buffer[30]; char *page_buffer; char *stats_buffer; int stats_buffer_size; // Receiving variables int receive_return; // Sending variables int send_return; int sent_so_far; // "Convert" arg to connfd for better code legibility int *connfd_value = (int *)arg; // Receive a packet recv(*connfd_value, receive_buffer, receive_buffer_size, 0); if (receive_return < 0) { // If receive returned an error printf("Error encountered in receive.\n"); exit(0); } // Get the current date and time for the information header time(&current_time); current_gmtime = gmtime(&current_time); strftime(time_buffer, 30, "%a, %d %b %Y %X %Z", current_gmtime); if (!(strncmp(receive_buffer, "GET ", 4) == 0)) { printf("Unknown command encountered.\n"); send_buffer = (char *)malloc(32); strcpy(send_buffer,"Unknown command encountered.\n\n"); // Get the size of the send_buffer for later send_buffer_size = strlen(send_buffer); strcpy(file_name, "N/A"); } else { // Get the file name requested int i; int j = 0; // In case a slash was skipped, a second variable is needed for (i = 0; i < 100; i++) { if ((receive_buffer[j+5] == ' ') || (receive_buffer[j+5] == '\0') || (receive_buffer[j+5] == '\n')) { break; } if ((i == 0) && (receive_buffer[i+4] == '/')) { // Make sure there's no beginning slash j--; // Decrement j if a slash is found. That means that the character transfer is offset by 1 now } else { file_name[j] = receive_buffer[i+4]; // Copy character } if (i == 98) { printf("Encountered a request for a file that had too long of a name.\n"); } j++; } file_name[i] = '\0'; // Try opening the file read_file = fopen(file_name,"r"); if (read_file != NULL) { // Getting file size fseek(read_file,0,SEEK_END); read_file_size = ftell(read_file); fseek(read_file,0,SEEK_SET); // Set the length of that int read_file_size_length = intlen(read_file_size); // Calloc the size of the file. Calloc is better than malloc because it zeroes the space page_buffer = (char *)calloc(read_file_size + 1, sizeof(char)); // Read the file fread(page_buffer,1,read_file_size,read_file); // Close the file fclose(read_file); // Malloc the send buffer send_buffer = (char*)malloc(read_file_size+read_file_size_length+120); // Add information and date beginning strcpy(send_buffer,"HTTP/1.1 200 OK\nDate: "); // Adds the date and time strcat(send_buffer,time_buffer); // Combines info and variables sprintf(send_buffer,"%s\nContent-Length: %d\nConnection: close\nContent-Type: text/html\n\n",send_buffer,read_file_size); // Concat the info with the page to send_buffer strcat(send_buffer, page_buffer); // Add new line at the end just in case strcat(send_buffer, "\n"); // Get the size of the send_buffer for later send_buffer_size = strlen(send_buffer); // Free the page_buffer. No longer needed free(page_buffer); } else // If the file does not exist { send_buffer = (char *)malloc(64); strcpy(send_buffer,"HTTP/1.1 404 File Not Found\n\n"); // Get the size of the send_buffer for later send_buffer_size = strlen(send_buffer); } } sent_so_far = 0; // How much of the data has been sent so far // Loop to send the page. Loop is due to the potential size being greater than that of a packet while (sent_so_far < send_buffer_size) { send_return = send(*connfd_value, send_buffer+sent_so_far, send_buffer_size-sent_so_far, 0); if (send_return < 0) // If an error occured sending the file { printf("Encountered an error while sending the file.\n"); exit(0); } // Increase what has been sent so far sent_so_far += send_return; } // Close the connection close(*connfd_value); // Free the send buffer free(send_buffer); // Locks the current thread in for writing to stats.txt pthread_mutex_lock(&mutex); // Get the total size of the stats. Written this way for clarity stats_buffer_size = strlen(file_name); stats_buffer_size += strlen(time_buffer); stats_buffer_size += 32; // Malloc for stats_buffer stats_buffer = malloc(stats_buffer_size); // Create the string of stats to output sprintf(stats_buffer, "%s - File Requested: %s\n",time_buffer,file_name); stats_string_length = strlen(stats_buffer); // Try to open/create the stats file for appending stats_file = fopen("stats.txt","a"); if (stats_file != NULL) // If the file is usable { // Write to the stats file fwrite(stats_buffer,stats_string_length,1,stats_file); // Close the stats file fclose(stats_file); } else { // Note: This does not cause the program to terminate. printf("Encountered an error opening/creating stats file for appending.\n"); } // Free the stats_buffer free(stats_buffer); // Unlock the thread when done pthread_mutex_unlock(&mutex); return NULL; } /* main * Creates pthreads for each connection. * Maximum of 100 open/finished connections by default. Defined by macro at the top. * Takes a port via commandline argument. */ int main (int argc, char *argv[]) { // Connection variables int port; int sfd; int status; struct sockaddr_in addr; pid_t pid; int connfd_array[MAX_PTHREADS]; // pthread variables void *exit_spointer; pthread_t thread_array[MAX_PTHREADS]; int thread_int_array[MAX_PTHREADS]; int thread_counter; if(argc < 2) { printf("Usage: server <port>\n"); exit(0); } // Get port from command line port = atoi(argv[1]); // Creat the socket sfd = socket(PF_INET, SOCK_STREAM, 0); if(sfd == -1) { printf("Encountered an error while creating the socket."); return -1; } // Unbind on termination int so_reuseaddr = 1; setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, &so_reuseaddr, sizeof(so_reuseaddr)); // Set up structure. Set port according to command line memset(addr.sin_zero, 0, sizeof(addr)); addr.sin_family = AF_INET; addr.sin_port = htons(port); addr.sin_addr.s_addr = INADDR_ANY; // Bind to port int id = bind(sfd, (struct sockaddr *)&addr, sizeof(addr)); if(id <0) // Check to make sure bind did not error { printf("Encountered an error in bind. ID: %d\n", id); return -1; } // Max number of connections (threads) is defined at the top. Default is 100 thread_counter = 0; while(thread_counter < 100) { // Listen for a connection if(listen(sfd, 10) < 0) // Make sure listen did not error { printf("Encountered an error in listen.\n"); return -1; } // Accept a connection connfd_array[thread_counter] = accept(sfd, NULL, NULL); if(connfd_array[thread_counter] < 0) // Make sure accepting did not error { printf("Encountered an error in accept.\n"); return -1; } printf("Creating a connection...\n"); // Create the thread/connection thread_int_array[thread_counter] = pthread_create(&(thread_array[thread_counter]), NULL, connection, &(connfd_array[thread_counter])); // Increment the thread counter thread_counter++; } // Wait for all pthreads (connections) to close int j; for (j = 0;j < thread_counter;j++) { pthread_join(thread_array[j], &exit_spointer); } // Close the socket close(sfd); // Return 0 if everything went okay return 0; }
the_stack_data/190769208.c
/* * nxRTOS Kernel V0.0.1 * Copyright (C) 2019 or its affiliates. All Rights Reserved. * * 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. * * 1 tab == 4 spaces! */ // removing #if 0 /*----------------------------------------------------------------------------- * Implementation of functions defined in arch4rtos.h for the architecture of * ARM CM4F. * Refer to arch4rtos.tx for design consideration. *---------------------------------------------------------------------------*/ #include "arch4rtos.h" #include "nxRTOSConfig.h" // the initial value prevent any of pending Job to be executed. // at the end of Os_Initialized, xSetThreadPriorityMaskLevel(configIdlePriority) // will allow pending Jobs to executing based on priority order. static uint32_t xCurrentThreadPriorityMaskLevel = 0x01 << __NVIC_PRIO_BITS; uint32_t xGetThreadPriorityMaskLevel(void) { return xCurrentThreadPriorityMaskLevel; } uint32_t xSetThreadPriorityMaskLevel(uint32_t newLevel) { if(newLevel < IrqPriorityMaskLevelNOMASK) { newLevel = IrqPriorityMaskLevelNOMASK; } if(newLevel > configIdlePriority) { newLevel = configIdlePriority; } xCurrentThreadPriorityMaskLevel = newLevel; return newLevel; } uint32_t xGetOsPriorityMaskLevel(void) { uint32_t theLevel; theLevel = xGetIrqPriorityBase(); if(theLevel == IrqPriorityMaskLevelNOMASK) { theLevel = xGetThreadPriorityMaskLevel(); } return theLevel; } uint32_t xSetOsPriorityMaskLevel(uint32_t newLevel) { uint32_t theLevel; theLevel = newLevel; if(theLevel < IrqPriorityMaskLevelNOMASK) { xSetIrqPriorityBase(theLevel); // set ThreadPriorityMaskLevel to highest // to prohibit thread context switching xSetThreadPriorityMaskLevel(IrqPriorityMaskLevelNOMASK); } else { // clear IrqPriorityMaskLevel xSetIrqPriorityBase(IrqPriorityMaskLevelNOMASK); // set ThreadPriorityMaskLevel newLevel theLevel = xSetThreadPriorityMaskLevel(theLevel); } return theLevel; } // prototypes from core_cm4.h /* NVIC_GetPriority(IRQn_Type IRQn) NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) \brief Set Interrupt Priority \details Sets the priority of a device specific interrupt or a processor exception. The interrupt number can be positive to specify a device specific interrupt, or negative to specify a processor exception. \param [in] IRQn Interrupt number. \param [in] priority Priority to set. 0 to ((0x01<<__NVIC_PRIO_BITS) -1). un-shifted. 0 is default value from reset and highest priority. ((0x01<<__NVIC_PRIO_BITS) -1) is lowest priority. \note The priority cannot be set for every processor exception. */ //uint32_t __NVIC_GetPriority(IRQn_Type IRQn) //void __NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority) /* \brief Get Current Context Priority Level \details Gets the priority level on current context. if the API is invoked from an ISR, the current context will be the ISR. otherwise will be a thread context, and a thread priority level to be returned */ /* TCB_t * xGetTheadHandle() \brief get Current Thread Handle */ #if 0 #include "rtos_jcb.h" LiveTCB_t * xGetTheadHandle(void); uint32_t xGetSysIrqPriorityLevel(SysIRQ_Type xSysIrq) { return NVIC_GetPriority((IRQn_Type)xSysIrq -16); } uint32_t xSetSysIrqPriorityLevel(SysIRQ_Type xSysIrq, uint32_t newLevel) { NVIC_SetPriority((IRQn_Type)xSysIrq -16, newLevel); return NVIC_GetPriority((IRQn_Type)xSysIrq -16); } uint32_t xGetThreadPriorityLevel(void * xThreadHandle) { uint32_t xThreadPriorityLevel = 0; if(xThreadHandle == NULL) { xThreadHandle = xGetTheadHandle(); } if(xThreadHandle != NULL) { return ((LiveTCB_t *)xThreadHandle)->uxPriority; } else { } return xThreadPriorityLevel; } uint32_t xSetThreadPriorityLevel(void * xThreadHandle, uint32_t newLevel) { uint32_t xThreadPriorityLevel = 0; if(xThreadHandle == NULL) { xThreadHandle = xGetTheadHandle(); } if(xThreadHandle != NULL) { ((LiveTCB_t *)xThreadHandle)->uxPriority = newLevel; xThreadPriorityLevel = ((LiveTCB_t *)xThreadHandle)->uxPriority; } else { // == NULL, current Thread } return xThreadPriorityLevel; } #endif uint32_t xGetContextPriorityLevel(void * contextHandle) { uint32_t xException, xPriorityLevel; if(!contextHandle) { // =0 is a special contextHandle to current context xException = __get_IPSR(); if(!xException) { // current context is in thread mode xPriorityLevel = IrqPriorityMaskLevelNOMASK; // highest priority in thread mode // may invoke a generic RTOS Function to adjust to a lower number } else { // current context is in ISR mode xPriorityLevel = NVIC_GetPriority(xException -16); } } else if((uint32_t)contextHandle < 255) { xException = (uint32_t)contextHandle; xPriorityLevel = NVIC_GetPriority(xException -16); } else { // look up contextHandle to find out // (pThread *)contextHandle -> xPriorityLevel; xPriorityLevel = IrqPriorityMaskLevelNOMASK; } return xPriorityLevel; } uint32_t xSetContextPriorityLevel(void * contextHandle, uint32_t newLevel) { uint32_t xException, xPriorityLevel; if(!contextHandle) { // =0 is a special contextHandle to current context xException = __get_IPSR(); if(!xException) { // current context is in thread mode if(newLevel >= IrqPriorityMaskLevelNOMASK) { // update current thread priority to newLevel. // xSetThreadPriorityLevel(0/*current thread*/, newLevel) // some restriction may applied and result not exact newLevel // was assigned. xPriorityLevel = newLevel; } else { xPriorityLevel = IrqPriorityMaskLevelNOMASK; } // highest priority in thread mode // may invoke a generic RTOS Function to adjust to a lower number } else { // current context is in ISR mode if(newLevel < IrqPriorityMaskLevelNOMASK) { NVIC_SetPriority(xException -16, newLevel); xPriorityLevel = newLevel; } else { xPriorityLevel = NVIC_GetPriority(xException -16); } } } else if((uint32_t)contextHandle < 255) { xException = (uint32_t)contextHandle; if(newLevel < IrqPriorityMaskLevelNOMASK) { NVIC_SetPriority(xException -16, newLevel); } // newLeve is out range, get the original level as below // this is either set as newLevel by NVIC_SetPriority(...) above, // or the original level as before xSetContextPriorityLevel(...) xPriorityLevel = NVIC_GetPriority(xException -16); } else { // look up contextHandle to find out // (pThread *)contextHandle -> xPriorityLevel = newLevel; xPriorityLevel = IrqPriorityMaskLevelNOMASK; } return xPriorityLevel; } #endif
the_stack_data/92324636.c
/** 1. Include necessary headers 2. Declare variables 3. Get Array Size and Array elements as inputs 4. Perform Bubble Sort 5. Print Sorted Array **/ #include<stdio.h> int main(){ int a[50], n, temp, i, j; printf("Enter the array size\n"); scanf("%d", &n); printf("Enter the array elements\n"); for(i=0;i<n;i++){ scanf("%d", &a[i]); } for(i=0;i<n-1;i++){ for(j=0;j<n-i-1;j++){ if(a[j] > a[j+1]){ //swap temp = a[j]; a[j] = a[j+1]; a[j+1] = temp; } } } printf("Sorted Array is \n"); for(i=0;i<n;i++){ printf("%d\t", a[i]); } return 0; }
the_stack_data/145452779.c
#include<stdio.h> void create(int []); void down_adjust(int [],int); int main() { int heap[30],n,i,last,temp; printf("Enter no. of elements:"); scanf("%d",&n); printf("\nEnter elements:"); for(i=1;i<=n;i++) scanf("%d",&heap[i]); heap[0]=n; create(heap); while(heap[0] > 1) { //swap heap[1] and heap[last] last=heap[0]; temp=heap[1]; heap[1]=heap[last]; heap[last]=temp; heap[0]--; down_adjust(heap,1); } //print sorted data printf("\nArray after sorting:\n"); for(i=1;i<=n;i++) printf("%d ",heap[i]); } void create(int heap[]) { int i,n; n=heap[0]; for(i=n/2;i>=1;i--) down_adjust(heap,i); } void down_adjust(int heap[],int i) { int j,temp,n,flag=1; n=heap[0]; while(2*i<=n && flag==1) { j=2*i; //j points to left child if(j+1<=n && heap[j+1] > heap[j]) j=j+1; if(heap[i] > heap[j]) flag=0; else { temp=heap[i]; heap[i]=heap[j]; heap[j]=temp; i=j; } } }
the_stack_data/107951856.c
// kernel.c // by Preston Hager void kernel_main() { while (1) { } }
the_stack_data/101112.c
// author: jürgen zangerl #include <stdlib.h> #include <stdio.h> #include <string.h> #define LINEMAXLENGHT 254 #define STRINGMAX 64 #define MAXLINES 120 #define MAXHOBBIES 5 struct Personinfo { char s_vorname[STRINGMAX]; char s_nachname[STRINGMAX]; int s_alter; struct { char s_hobby[STRINGMAX]; } hobbies[MAXHOBBIES]; } person[MAXLINES]; int main() { // Datei öffnen FILE *datei = fopen("persons_input.txt", "r"); fflush(datei); if (datei == NULL) { // perror gibt die übergebene Fehlermeldung auf stderr aus und hängt zusätzlich noch einen String dran, der die Fehlerursache beschreibt perror("Fehler: Konnte Datei nicht öffnen."); return 1; } // Folgender Code liest bis zu MXLINES Zeilen aus der Textdatei int n=0, i, ret_scan; // Liest bis zur Ende der Datei bzw. < MAXLINES Zeile für Zeile aus der Datei char v_zeile[LINEMAXLENGHT]; while ( fgets(v_zeile, LINEMAXLENGHT, datei) && n < MAXLINES ) { fflush(stdout); ret_scan = sscanf(v_zeile, "%63[^;];%63[^;];%i;%63[^,\n],%63[^,\n],%63[^,\n],%63[^,\n],%63[^,\n]", person[n].s_vorname, person[n].s_nachname, &person[n].s_alter,person[n].hobbies[0].s_hobby, person[n].hobbies[1].s_hobby, person[n].hobbies[2].s_hobby,person[n].hobbies[3].s_hobby, person[n].hobbies[4].s_hobby); if(ret_scan >= 4) { n++; } } // Datei ist fertig ausgelesen und wird geschlossen fclose(datei); // Ausgeben der Nachnamen der Personen zwischen 20 und inklusive 30 und Hobby Tanzen for (n=0; n < MAXLINES; n++) { if ( person[n].s_alter > 20 && person[n].s_alter <= 30 ){ for (i = 0; i < MAXHOBBIES; i++) { if(strcmp(person[n].hobbies[i].s_hobby, "Tanzen") == 0) { printf("%s\n", person[n].s_nachname); } } } } return 0; }
the_stack_data/148578283.c
/* This program can be used to illustrates how the kernel sets up the * startup routine. Call with "-e" to specify any of the functions as the * entry point instead of 'main'; compare otool(1)/objdump(1) output and * exit codes. * * To display the entry point of the program: * NetBSD: * - readelf -h a.out | grep ntry * - objdump -d a.out * * Mac OS X: * - otool -l a.out | grep ntry # decimal address * - otool -v -t a.out # hex address */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> int bar(void) { printf("bar rules!\n"); exit(EXIT_FAILURE); /* Unlike foo(), this will not cause a segfault, since we are not * returning; we explicitly call exit(3). */ } int foo(void) { printf("Foo for the win!\n"); return EXIT_FAILURE; /* Note: this will cause a segfault on NetBSD, because this function * returns, but there is nothing to return to: the routines set up * by the kernel remain set up for 'main', we just told the linker * to jump into 'foo' at program start. Compare objdump(1) * output. * Note: on OS X, we do not segfault! */ } int main(int argc, char **argv) { printf("main is at 0x%lX\n", (unsigned long)&main); /* Note that we do explicitly _not_ return an error here, nor call * any of the exit(3) functions. Your compiler may warn you * about this. We're also not casting the return value of printf(3) * to void. Inspect the return value. */ }
the_stack_data/126654.c
#include <stdio.h> int main() { int vetor[15], aux; for (int i=0;i<15;i++){ printf("Digite o numero %d do vetor: ", i); scanf("%d", &vetor[i]); } for (int x=0;x<15;x++){ for(int y=x;y<15;y++){ if(vetor[x]> vetor[y]){ aux = vetor[x]; vetor[x] = vetor[y]; vetor[y] = aux; } } } for (int i=0;i<15;i++){ printf("numero %d eh: %d ",i, vetor[i]); } }
the_stack_data/190768180.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 _diverge_delta, _x__diverge_delta; float delta, _x_delta; int id, _x_id; bool c_initial, _x_c_initial; bool c_move, _x_c_move; bool a0_evt1, _x_a0_evt1; bool a0_evt0, _x_a0_evt0; bool a0_l, _x_a0_l; bool a1_evt1, _x_a1_evt1; bool a1_evt0, _x_a1_evt0; bool a1_l, _x_a1_l; bool a2_evt1, _x_a2_evt1; bool a2_evt0, _x_a2_evt0; bool a2_l, _x_a2_l; bool a3_evt1, _x_a3_evt1; bool a3_evt0, _x_a3_evt0; bool a3_l, _x_a3_l; bool a4_evt1, _x_a4_evt1; bool a4_evt0, _x_a4_evt0; bool a4_l, _x_a4_l; bool a5_evt1, _x_a5_evt1; bool a5_evt0, _x_a5_evt0; bool a5_l, _x_a5_l; bool a6_evt1, _x_a6_evt1; bool a6_evt0, _x_a6_evt0; bool a6_l, _x_a6_l; bool a7_evt1, _x_a7_evt1; bool a7_evt0, _x_a7_evt0; bool a7_l, _x_a7_l; bool pc0_l1, _x_pc0_l1; bool pc0_l0, _x_pc0_l0; bool pc0_l2, _x_pc0_l2; bool pc0_evt1, _x_pc0_evt1; bool pc0_evt0, _x_pc0_evt0; float pc0_x, _x_pc0_x; bool pc1_l1, _x_pc1_l1; bool pc1_l0, _x_pc1_l0; bool pc1_l2, _x_pc1_l2; bool pc1_evt1, _x_pc1_evt1; bool pc1_evt0, _x_pc1_evt0; float pc1_x, _x_pc1_x; bool pc2_l1, _x_pc2_l1; bool pc2_l0, _x_pc2_l0; bool pc2_l2, _x_pc2_l2; bool pc2_evt1, _x_pc2_evt1; bool pc2_evt0, _x_pc2_evt0; float pc2_x, _x_pc2_x; bool pc3_l1, _x_pc3_l1; bool pc3_l0, _x_pc3_l0; bool pc3_l2, _x_pc3_l2; bool pc3_evt1, _x_pc3_evt1; bool pc3_evt0, _x_pc3_evt0; float pc3_x, _x_pc3_x; bool pc4_l1, _x_pc4_l1; bool pc4_l0, _x_pc4_l0; bool pc4_l2, _x_pc4_l2; bool pc4_evt1, _x_pc4_evt1; bool pc4_evt0, _x_pc4_evt0; float pc4_x, _x_pc4_x; bool pc5_l1, _x_pc5_l1; bool pc5_l0, _x_pc5_l0; bool pc5_l2, _x_pc5_l2; bool pc5_evt1, _x_pc5_evt1; bool pc5_evt0, _x_pc5_evt0; float pc5_x, _x_pc5_x; bool pc6_l1, _x_pc6_l1; bool pc6_l0, _x_pc6_l0; bool pc6_l2, _x_pc6_l2; bool pc6_evt1, _x_pc6_evt1; bool pc6_evt0, _x_pc6_evt0; float pc6_x, _x_pc6_x; bool pc7_l1, _x_pc7_l1; bool pc7_l0, _x_pc7_l0; bool pc7_l2, _x_pc7_l2; bool pc7_evt1, _x_pc7_evt1; bool pc7_evt0, _x_pc7_evt0; float pc7_x, _x_pc7_x; bool _J1981, _x__J1981; bool _J1975, _x__J1975; bool _J1968, _x__J1968; bool _J1959, _x__J1959; bool _J1953, _x__J1953; bool _EL_U_1920, _x__EL_U_1920; bool _EL_U_1922, _x__EL_U_1922; bool _EL_U_1925, _x__EL_U_1925; bool _EL_U_1927, _x__EL_U_1927; bool _EL_U_1929, _x__EL_U_1929; int __steps_to_fair = __VERIFIER_nondet_int(); _diverge_delta = __VERIFIER_nondet_float(); delta = __VERIFIER_nondet_float(); id = __VERIFIER_nondet_int(); c_initial = __VERIFIER_nondet_bool(); c_move = __VERIFIER_nondet_bool(); a0_evt1 = __VERIFIER_nondet_bool(); a0_evt0 = __VERIFIER_nondet_bool(); a0_l = __VERIFIER_nondet_bool(); a1_evt1 = __VERIFIER_nondet_bool(); a1_evt0 = __VERIFIER_nondet_bool(); a1_l = __VERIFIER_nondet_bool(); a2_evt1 = __VERIFIER_nondet_bool(); a2_evt0 = __VERIFIER_nondet_bool(); a2_l = __VERIFIER_nondet_bool(); a3_evt1 = __VERIFIER_nondet_bool(); a3_evt0 = __VERIFIER_nondet_bool(); a3_l = __VERIFIER_nondet_bool(); a4_evt1 = __VERIFIER_nondet_bool(); a4_evt0 = __VERIFIER_nondet_bool(); a4_l = __VERIFIER_nondet_bool(); a5_evt1 = __VERIFIER_nondet_bool(); a5_evt0 = __VERIFIER_nondet_bool(); a5_l = __VERIFIER_nondet_bool(); a6_evt1 = __VERIFIER_nondet_bool(); a6_evt0 = __VERIFIER_nondet_bool(); a6_l = __VERIFIER_nondet_bool(); a7_evt1 = __VERIFIER_nondet_bool(); a7_evt0 = __VERIFIER_nondet_bool(); a7_l = __VERIFIER_nondet_bool(); pc0_l1 = __VERIFIER_nondet_bool(); pc0_l0 = __VERIFIER_nondet_bool(); pc0_l2 = __VERIFIER_nondet_bool(); pc0_evt1 = __VERIFIER_nondet_bool(); pc0_evt0 = __VERIFIER_nondet_bool(); pc0_x = __VERIFIER_nondet_float(); pc1_l1 = __VERIFIER_nondet_bool(); pc1_l0 = __VERIFIER_nondet_bool(); pc1_l2 = __VERIFIER_nondet_bool(); pc1_evt1 = __VERIFIER_nondet_bool(); pc1_evt0 = __VERIFIER_nondet_bool(); pc1_x = __VERIFIER_nondet_float(); pc2_l1 = __VERIFIER_nondet_bool(); pc2_l0 = __VERIFIER_nondet_bool(); pc2_l2 = __VERIFIER_nondet_bool(); pc2_evt1 = __VERIFIER_nondet_bool(); pc2_evt0 = __VERIFIER_nondet_bool(); pc2_x = __VERIFIER_nondet_float(); pc3_l1 = __VERIFIER_nondet_bool(); pc3_l0 = __VERIFIER_nondet_bool(); pc3_l2 = __VERIFIER_nondet_bool(); pc3_evt1 = __VERIFIER_nondet_bool(); pc3_evt0 = __VERIFIER_nondet_bool(); pc3_x = __VERIFIER_nondet_float(); pc4_l1 = __VERIFIER_nondet_bool(); pc4_l0 = __VERIFIER_nondet_bool(); pc4_l2 = __VERIFIER_nondet_bool(); pc4_evt1 = __VERIFIER_nondet_bool(); pc4_evt0 = __VERIFIER_nondet_bool(); pc4_x = __VERIFIER_nondet_float(); pc5_l1 = __VERIFIER_nondet_bool(); pc5_l0 = __VERIFIER_nondet_bool(); pc5_l2 = __VERIFIER_nondet_bool(); pc5_evt1 = __VERIFIER_nondet_bool(); pc5_evt0 = __VERIFIER_nondet_bool(); pc5_x = __VERIFIER_nondet_float(); pc6_l1 = __VERIFIER_nondet_bool(); pc6_l0 = __VERIFIER_nondet_bool(); pc6_l2 = __VERIFIER_nondet_bool(); pc6_evt1 = __VERIFIER_nondet_bool(); pc6_evt0 = __VERIFIER_nondet_bool(); pc6_x = __VERIFIER_nondet_float(); pc7_l1 = __VERIFIER_nondet_bool(); pc7_l0 = __VERIFIER_nondet_bool(); pc7_l2 = __VERIFIER_nondet_bool(); pc7_evt1 = __VERIFIER_nondet_bool(); pc7_evt0 = __VERIFIER_nondet_bool(); pc7_x = __VERIFIER_nondet_float(); _J1981 = __VERIFIER_nondet_bool(); _J1975 = __VERIFIER_nondet_bool(); _J1968 = __VERIFIER_nondet_bool(); _J1959 = __VERIFIER_nondet_bool(); _J1953 = __VERIFIER_nondet_bool(); _EL_U_1920 = __VERIFIER_nondet_bool(); _EL_U_1922 = __VERIFIER_nondet_bool(); _EL_U_1925 = __VERIFIER_nondet_bool(); _EL_U_1927 = __VERIFIER_nondet_bool(); _EL_U_1929 = __VERIFIER_nondet_bool(); bool __ok = ((((((((( !pc7_l2) && (( !pc7_l0) && ( !pc7_l1))) && (pc7_x == 0.0)) && (((( !pc7_evt0) && ( !pc7_evt1)) || (pc7_evt1 && ( !pc7_evt0))) || ((pc7_evt0 && ( !pc7_evt1)) || (pc7_evt0 && pc7_evt1)))) && ((( !pc7_l2) && (pc7_l0 && pc7_l1)) || ((((( !pc7_l2) && (( !pc7_l0) && ( !pc7_l1))) || (pc7_l2 && (( !pc7_l0) && ( !pc7_l1)))) || ((( !pc7_l2) && (pc7_l1 && ( !pc7_l0))) || (pc7_l2 && (pc7_l1 && ( !pc7_l0))))) || ((( !pc7_l2) && (pc7_l0 && ( !pc7_l1))) || (pc7_l2 && (pc7_l0 && ( !pc7_l1))))))) && (((((( !pc6_l2) && (( !pc6_l0) && ( !pc6_l1))) && (pc6_x == 0.0)) && (((( !pc6_evt0) && ( !pc6_evt1)) || (pc6_evt1 && ( !pc6_evt0))) || ((pc6_evt0 && ( !pc6_evt1)) || (pc6_evt0 && pc6_evt1)))) && ((( !pc6_l2) && (pc6_l0 && pc6_l1)) || ((((( !pc6_l2) && (( !pc6_l0) && ( !pc6_l1))) || (pc6_l2 && (( !pc6_l0) && ( !pc6_l1)))) || ((( !pc6_l2) && (pc6_l1 && ( !pc6_l0))) || (pc6_l2 && (pc6_l1 && ( !pc6_l0))))) || ((( !pc6_l2) && (pc6_l0 && ( !pc6_l1))) || (pc6_l2 && (pc6_l0 && ( !pc6_l1))))))) && (((((( !pc5_l2) && (( !pc5_l0) && ( !pc5_l1))) && (pc5_x == 0.0)) && (((( !pc5_evt0) && ( !pc5_evt1)) || (pc5_evt1 && ( !pc5_evt0))) || ((pc5_evt0 && ( !pc5_evt1)) || (pc5_evt0 && pc5_evt1)))) && ((( !pc5_l2) && (pc5_l0 && pc5_l1)) || ((((( !pc5_l2) && (( !pc5_l0) && ( !pc5_l1))) || (pc5_l2 && (( !pc5_l0) && ( !pc5_l1)))) || ((( !pc5_l2) && (pc5_l1 && ( !pc5_l0))) || (pc5_l2 && (pc5_l1 && ( !pc5_l0))))) || ((( !pc5_l2) && (pc5_l0 && ( !pc5_l1))) || (pc5_l2 && (pc5_l0 && ( !pc5_l1))))))) && (((((( !pc4_l2) && (( !pc4_l0) && ( !pc4_l1))) && (pc4_x == 0.0)) && (((( !pc4_evt0) && ( !pc4_evt1)) || (pc4_evt1 && ( !pc4_evt0))) || ((pc4_evt0 && ( !pc4_evt1)) || (pc4_evt0 && pc4_evt1)))) && ((( !pc4_l2) && (pc4_l0 && pc4_l1)) || ((((( !pc4_l2) && (( !pc4_l0) && ( !pc4_l1))) || (pc4_l2 && (( !pc4_l0) && ( !pc4_l1)))) || ((( !pc4_l2) && (pc4_l1 && ( !pc4_l0))) || (pc4_l2 && (pc4_l1 && ( !pc4_l0))))) || ((( !pc4_l2) && (pc4_l0 && ( !pc4_l1))) || (pc4_l2 && (pc4_l0 && ( !pc4_l1))))))) && (((((( !pc3_l2) && (( !pc3_l0) && ( !pc3_l1))) && (pc3_x == 0.0)) && (((( !pc3_evt0) && ( !pc3_evt1)) || (pc3_evt1 && ( !pc3_evt0))) || ((pc3_evt0 && ( !pc3_evt1)) || (pc3_evt0 && pc3_evt1)))) && ((( !pc3_l2) && (pc3_l0 && pc3_l1)) || ((((( !pc3_l2) && (( !pc3_l0) && ( !pc3_l1))) || (pc3_l2 && (( !pc3_l0) && ( !pc3_l1)))) || ((( !pc3_l2) && (pc3_l1 && ( !pc3_l0))) || (pc3_l2 && (pc3_l1 && ( !pc3_l0))))) || ((( !pc3_l2) && (pc3_l0 && ( !pc3_l1))) || (pc3_l2 && (pc3_l0 && ( !pc3_l1))))))) && (((((( !pc2_l2) && (( !pc2_l0) && ( !pc2_l1))) && (pc2_x == 0.0)) && (((( !pc2_evt0) && ( !pc2_evt1)) || (pc2_evt1 && ( !pc2_evt0))) || ((pc2_evt0 && ( !pc2_evt1)) || (pc2_evt0 && pc2_evt1)))) && ((( !pc2_l2) && (pc2_l0 && pc2_l1)) || ((((( !pc2_l2) && (( !pc2_l0) && ( !pc2_l1))) || (pc2_l2 && (( !pc2_l0) && ( !pc2_l1)))) || ((( !pc2_l2) && (pc2_l1 && ( !pc2_l0))) || (pc2_l2 && (pc2_l1 && ( !pc2_l0))))) || ((( !pc2_l2) && (pc2_l0 && ( !pc2_l1))) || (pc2_l2 && (pc2_l0 && ( !pc2_l1))))))) && (((((( !pc1_l2) && (( !pc1_l0) && ( !pc1_l1))) && (pc1_x == 0.0)) && (((( !pc1_evt0) && ( !pc1_evt1)) || (pc1_evt1 && ( !pc1_evt0))) || ((pc1_evt0 && ( !pc1_evt1)) || (pc1_evt0 && pc1_evt1)))) && ((( !pc1_l2) && (pc1_l0 && pc1_l1)) || ((((( !pc1_l2) && (( !pc1_l0) && ( !pc1_l1))) || (pc1_l2 && (( !pc1_l0) && ( !pc1_l1)))) || ((( !pc1_l2) && (pc1_l1 && ( !pc1_l0))) || (pc1_l2 && (pc1_l1 && ( !pc1_l0))))) || ((( !pc1_l2) && (pc1_l0 && ( !pc1_l1))) || (pc1_l2 && (pc1_l0 && ( !pc1_l1))))))) && (((((( !pc0_l2) && (( !pc0_l0) && ( !pc0_l1))) && (pc0_x == 0.0)) && (((( !pc0_evt0) && ( !pc0_evt1)) || (pc0_evt1 && ( !pc0_evt0))) || ((pc0_evt0 && ( !pc0_evt1)) || (pc0_evt0 && pc0_evt1)))) && ((( !pc0_l2) && (pc0_l0 && pc0_l1)) || ((((( !pc0_l2) && (( !pc0_l0) && ( !pc0_l1))) || (pc0_l2 && (( !pc0_l0) && ( !pc0_l1)))) || ((( !pc0_l2) && (pc0_l1 && ( !pc0_l0))) || (pc0_l2 && (pc0_l1 && ( !pc0_l0))))) || ((( !pc0_l2) && (pc0_l0 && ( !pc0_l1))) || (pc0_l2 && (pc0_l0 && ( !pc0_l1))))))) && ((( !a7_l) && ((( !a7_evt0) && ( !a7_evt1)) || ((a7_evt1 && ( !a7_evt0)) || (a7_evt0 && ( !a7_evt1))))) && ((( !a6_l) && ((( !a6_evt0) && ( !a6_evt1)) || ((a6_evt1 && ( !a6_evt0)) || (a6_evt0 && ( !a6_evt1))))) && ((( !a5_l) && ((( !a5_evt0) && ( !a5_evt1)) || ((a5_evt1 && ( !a5_evt0)) || (a5_evt0 && ( !a5_evt1))))) && ((( !a4_l) && ((( !a4_evt0) && ( !a4_evt1)) || ((a4_evt1 && ( !a4_evt0)) || (a4_evt0 && ( !a4_evt1))))) && ((( !a3_l) && ((( !a3_evt0) && ( !a3_evt1)) || ((a3_evt1 && ( !a3_evt0)) || (a3_evt0 && ( !a3_evt1))))) && ((( !a2_l) && ((( !a2_evt0) && ( !a2_evt1)) || ((a2_evt1 && ( !a2_evt0)) || (a2_evt0 && ( !a2_evt1))))) && ((( !a1_l) && ((( !a1_evt0) && ( !a1_evt1)) || ((a1_evt1 && ( !a1_evt0)) || (a1_evt0 && ( !a1_evt1))))) && ((( !a0_l) && ((( !a0_evt0) && ( !a0_evt1)) || ((a0_evt1 && ( !a0_evt0)) || (a0_evt0 && ( !a0_evt1))))) && (c_initial && (0.0 <= delta)))))))))))))))))) && ((id == 7) || ((id == 6) || ((id == 5) || ((id == 4) || ((id == 3) || ((id == 2) || ((id == 0) || (id == 1))))))))) && (delta == _diverge_delta)) && (((((( !((( !(_EL_U_1929 || ( !((id == 1) || _EL_U_1927)))) || (( !(( !(( !pc0_l2) && (pc0_l0 && pc0_l1))) || ( !(( !pc1_l2) && (pc1_l0 && pc1_l1))))) || _EL_U_1925)) || (_EL_U_1922 || ( !((1.0 <= _diverge_delta) || _EL_U_1920))))) && ( !_J1953)) && ( !_J1959)) && ( !_J1968)) && ( !_J1975)) && ( !_J1981))); while (__steps_to_fair >= 0 && __ok) { if (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) { __steps_to_fair = __VERIFIER_nondet_int(); } else { __steps_to_fair--; } _x__diverge_delta = __VERIFIER_nondet_float(); _x_delta = __VERIFIER_nondet_float(); _x_id = __VERIFIER_nondet_int(); _x_c_initial = __VERIFIER_nondet_bool(); _x_c_move = __VERIFIER_nondet_bool(); _x_a0_evt1 = __VERIFIER_nondet_bool(); _x_a0_evt0 = __VERIFIER_nondet_bool(); _x_a0_l = __VERIFIER_nondet_bool(); _x_a1_evt1 = __VERIFIER_nondet_bool(); _x_a1_evt0 = __VERIFIER_nondet_bool(); _x_a1_l = __VERIFIER_nondet_bool(); _x_a2_evt1 = __VERIFIER_nondet_bool(); _x_a2_evt0 = __VERIFIER_nondet_bool(); _x_a2_l = __VERIFIER_nondet_bool(); _x_a3_evt1 = __VERIFIER_nondet_bool(); _x_a3_evt0 = __VERIFIER_nondet_bool(); _x_a3_l = __VERIFIER_nondet_bool(); _x_a4_evt1 = __VERIFIER_nondet_bool(); _x_a4_evt0 = __VERIFIER_nondet_bool(); _x_a4_l = __VERIFIER_nondet_bool(); _x_a5_evt1 = __VERIFIER_nondet_bool(); _x_a5_evt0 = __VERIFIER_nondet_bool(); _x_a5_l = __VERIFIER_nondet_bool(); _x_a6_evt1 = __VERIFIER_nondet_bool(); _x_a6_evt0 = __VERIFIER_nondet_bool(); _x_a6_l = __VERIFIER_nondet_bool(); _x_a7_evt1 = __VERIFIER_nondet_bool(); _x_a7_evt0 = __VERIFIER_nondet_bool(); _x_a7_l = __VERIFIER_nondet_bool(); _x_pc0_l1 = __VERIFIER_nondet_bool(); _x_pc0_l0 = __VERIFIER_nondet_bool(); _x_pc0_l2 = __VERIFIER_nondet_bool(); _x_pc0_evt1 = __VERIFIER_nondet_bool(); _x_pc0_evt0 = __VERIFIER_nondet_bool(); _x_pc0_x = __VERIFIER_nondet_float(); _x_pc1_l1 = __VERIFIER_nondet_bool(); _x_pc1_l0 = __VERIFIER_nondet_bool(); _x_pc1_l2 = __VERIFIER_nondet_bool(); _x_pc1_evt1 = __VERIFIER_nondet_bool(); _x_pc1_evt0 = __VERIFIER_nondet_bool(); _x_pc1_x = __VERIFIER_nondet_float(); _x_pc2_l1 = __VERIFIER_nondet_bool(); _x_pc2_l0 = __VERIFIER_nondet_bool(); _x_pc2_l2 = __VERIFIER_nondet_bool(); _x_pc2_evt1 = __VERIFIER_nondet_bool(); _x_pc2_evt0 = __VERIFIER_nondet_bool(); _x_pc2_x = __VERIFIER_nondet_float(); _x_pc3_l1 = __VERIFIER_nondet_bool(); _x_pc3_l0 = __VERIFIER_nondet_bool(); _x_pc3_l2 = __VERIFIER_nondet_bool(); _x_pc3_evt1 = __VERIFIER_nondet_bool(); _x_pc3_evt0 = __VERIFIER_nondet_bool(); _x_pc3_x = __VERIFIER_nondet_float(); _x_pc4_l1 = __VERIFIER_nondet_bool(); _x_pc4_l0 = __VERIFIER_nondet_bool(); _x_pc4_l2 = __VERIFIER_nondet_bool(); _x_pc4_evt1 = __VERIFIER_nondet_bool(); _x_pc4_evt0 = __VERIFIER_nondet_bool(); _x_pc4_x = __VERIFIER_nondet_float(); _x_pc5_l1 = __VERIFIER_nondet_bool(); _x_pc5_l0 = __VERIFIER_nondet_bool(); _x_pc5_l2 = __VERIFIER_nondet_bool(); _x_pc5_evt1 = __VERIFIER_nondet_bool(); _x_pc5_evt0 = __VERIFIER_nondet_bool(); _x_pc5_x = __VERIFIER_nondet_float(); _x_pc6_l1 = __VERIFIER_nondet_bool(); _x_pc6_l0 = __VERIFIER_nondet_bool(); _x_pc6_l2 = __VERIFIER_nondet_bool(); _x_pc6_evt1 = __VERIFIER_nondet_bool(); _x_pc6_evt0 = __VERIFIER_nondet_bool(); _x_pc6_x = __VERIFIER_nondet_float(); _x_pc7_l1 = __VERIFIER_nondet_bool(); _x_pc7_l0 = __VERIFIER_nondet_bool(); _x_pc7_l2 = __VERIFIER_nondet_bool(); _x_pc7_evt1 = __VERIFIER_nondet_bool(); _x_pc7_evt0 = __VERIFIER_nondet_bool(); _x_pc7_x = __VERIFIER_nondet_float(); _x__J1981 = __VERIFIER_nondet_bool(); _x__J1975 = __VERIFIER_nondet_bool(); _x__J1968 = __VERIFIER_nondet_bool(); _x__J1959 = __VERIFIER_nondet_bool(); _x__J1953 = __VERIFIER_nondet_bool(); _x__EL_U_1920 = __VERIFIER_nondet_bool(); _x__EL_U_1922 = __VERIFIER_nondet_bool(); _x__EL_U_1925 = __VERIFIER_nondet_bool(); _x__EL_U_1927 = __VERIFIER_nondet_bool(); _x__EL_U_1929 = __VERIFIER_nondet_bool(); __ok = ((((((((((((((((((((((((((((((((((((((((( !_x_pc7_evt0) && ( !_x_pc7_evt1)) || (_x_pc7_evt1 && ( !_x_pc7_evt0))) || ((_x_pc7_evt0 && ( !_x_pc7_evt1)) || (_x_pc7_evt0 && _x_pc7_evt1))) && ((( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1)) || ((((( !_x_pc7_l2) && (( !_x_pc7_l0) && ( !_x_pc7_l1))) || (_x_pc7_l2 && (( !_x_pc7_l0) && ( !_x_pc7_l1)))) || ((( !_x_pc7_l2) && (_x_pc7_l1 && ( !_x_pc7_l0))) || (_x_pc7_l2 && (_x_pc7_l1 && ( !_x_pc7_l0))))) || ((( !_x_pc7_l2) && (_x_pc7_l0 && ( !_x_pc7_l1))) || (_x_pc7_l2 && (_x_pc7_l0 && ( !_x_pc7_l1))))))) && ((delta <= 0.0) || ((((pc7_l0 == _x_pc7_l0) && (pc7_l1 == _x_pc7_l1)) && (pc7_l2 == _x_pc7_l2)) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)))) && (((((pc7_l0 == _x_pc7_l0) && (pc7_l1 == _x_pc7_l1)) && (pc7_l2 == _x_pc7_l2)) && ((delta + (pc7_x + (-1.0 * _x_pc7_x))) == 0.0)) || ( !(( !pc7_evt0) && ( !pc7_evt1))))) && ((((pc7_evt0 && pc7_evt1) && (pc7_x <= 50.0)) && ((_x_pc7_l2 && (( !_x_pc7_l0) && ( !_x_pc7_l1))) && (_x_pc7_x == 0.0))) || ( !((( !pc7_l2) && (( !pc7_l0) && ( !pc7_l1))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && (((pc7_evt0 && pc7_evt1) && ((( !_x_pc7_l2) && (( !_x_pc7_l0) && ( !_x_pc7_l1))) || (( !_x_pc7_l2) && (_x_pc7_l1 && ( !_x_pc7_l0))))) || ( !((pc7_l2 && (( !pc7_l0) && ( !pc7_l1))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && (((_x_pc7_x == 0.0) && (25.0 <= pc7_x)) || ( !((( !_x_pc7_l2) && (( !_x_pc7_l0) && ( !_x_pc7_l1))) && (pc7_l2 && (( !pc7_l0) && ( !pc7_l1))))))) && (((pc7_x <= 24.0) && (pc7_x == _x_pc7_x)) || ( !((pc7_l2 && (( !pc7_l0) && ( !pc7_l1))) && (( !_x_pc7_l2) && (_x_pc7_l1 && ( !_x_pc7_l0))))))) && (((_x_pc7_x == 0.0) && ((pc7_evt1 && ( !pc7_evt0)) && (_x_pc7_l2 && (_x_pc7_l1 && ( !_x_pc7_l0))))) || ( !((( !pc7_l2) && (pc7_l1 && ( !pc7_l0))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && (((( !_x_pc7_l2) && (_x_pc7_l0 && ( !_x_pc7_l1))) || (( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1))) || ( !((pc7_l2 && (pc7_l1 && ( !pc7_l0))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && (((pc7_x == _x_pc7_x) && ((pc7_evt0 && pc7_evt1) && (50.0 <= pc7_x))) || ( !((pc7_l2 && (pc7_l1 && ( !pc7_l0))) && (( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1)))))) && (((_x_pc7_x == 0.0) && ((pc7_evt0 && ( !pc7_evt1)) && (pc7_x <= 25.0))) || ( !((pc7_l2 && (pc7_l1 && ( !pc7_l0))) && (( !_x_pc7_l2) && (_x_pc7_l0 && ( !_x_pc7_l1))))))) && ((((pc7_evt0 && pc7_evt1) && (pc7_x == _x_pc7_x)) && ((_x_pc7_l2 && (_x_pc7_l0 && ( !_x_pc7_l1))) || (( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1)))) || ( !((( !pc7_l2) && (pc7_l0 && ( !pc7_l1))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && ((25.0 <= pc7_x) || ( !((( !pc7_l2) && (pc7_l0 && ( !pc7_l1))) && (( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1)))))) && ((pc7_x <= 24.0) || ( !((( !pc7_l2) && (pc7_l0 && ( !pc7_l1))) && (_x_pc7_l2 && (_x_pc7_l0 && ( !_x_pc7_l1))))))) && ((( !_x_pc7_l2) && (_x_pc7_l0 && _x_pc7_l1)) || ( !((( !pc7_l2) && (pc7_l0 && pc7_l1)) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && ((( !_x_pc7_l2) && (( !_x_pc7_l0) && ( !_x_pc7_l1))) || ( !((pc7_l2 && (pc7_l0 && ( !pc7_l1))) && ((delta == 0.0) && ( !(( !pc7_evt0) && ( !pc7_evt1)))))))) && ((((((((((((((((((((( !_x_pc6_evt0) && ( !_x_pc6_evt1)) || (_x_pc6_evt1 && ( !_x_pc6_evt0))) || ((_x_pc6_evt0 && ( !_x_pc6_evt1)) || (_x_pc6_evt0 && _x_pc6_evt1))) && ((( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1)) || ((((( !_x_pc6_l2) && (( !_x_pc6_l0) && ( !_x_pc6_l1))) || (_x_pc6_l2 && (( !_x_pc6_l0) && ( !_x_pc6_l1)))) || ((( !_x_pc6_l2) && (_x_pc6_l1 && ( !_x_pc6_l0))) || (_x_pc6_l2 && (_x_pc6_l1 && ( !_x_pc6_l0))))) || ((( !_x_pc6_l2) && (_x_pc6_l0 && ( !_x_pc6_l1))) || (_x_pc6_l2 && (_x_pc6_l0 && ( !_x_pc6_l1))))))) && ((delta <= 0.0) || ((((pc6_l0 == _x_pc6_l0) && (pc6_l1 == _x_pc6_l1)) && (pc6_l2 == _x_pc6_l2)) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)))) && (((((pc6_l0 == _x_pc6_l0) && (pc6_l1 == _x_pc6_l1)) && (pc6_l2 == _x_pc6_l2)) && ((delta + (pc6_x + (-1.0 * _x_pc6_x))) == 0.0)) || ( !(( !pc6_evt0) && ( !pc6_evt1))))) && ((((pc6_evt0 && pc6_evt1) && (pc6_x <= 50.0)) && ((_x_pc6_l2 && (( !_x_pc6_l0) && ( !_x_pc6_l1))) && (_x_pc6_x == 0.0))) || ( !((( !pc6_l2) && (( !pc6_l0) && ( !pc6_l1))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && (((pc6_evt0 && pc6_evt1) && ((( !_x_pc6_l2) && (( !_x_pc6_l0) && ( !_x_pc6_l1))) || (( !_x_pc6_l2) && (_x_pc6_l1 && ( !_x_pc6_l0))))) || ( !((pc6_l2 && (( !pc6_l0) && ( !pc6_l1))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && (((_x_pc6_x == 0.0) && (25.0 <= pc6_x)) || ( !((( !_x_pc6_l2) && (( !_x_pc6_l0) && ( !_x_pc6_l1))) && (pc6_l2 && (( !pc6_l0) && ( !pc6_l1))))))) && (((pc6_x <= 24.0) && (pc6_x == _x_pc6_x)) || ( !((pc6_l2 && (( !pc6_l0) && ( !pc6_l1))) && (( !_x_pc6_l2) && (_x_pc6_l1 && ( !_x_pc6_l0))))))) && (((_x_pc6_x == 0.0) && ((pc6_evt1 && ( !pc6_evt0)) && (_x_pc6_l2 && (_x_pc6_l1 && ( !_x_pc6_l0))))) || ( !((( !pc6_l2) && (pc6_l1 && ( !pc6_l0))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && (((( !_x_pc6_l2) && (_x_pc6_l0 && ( !_x_pc6_l1))) || (( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1))) || ( !((pc6_l2 && (pc6_l1 && ( !pc6_l0))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && (((pc6_x == _x_pc6_x) && ((pc6_evt0 && pc6_evt1) && (50.0 <= pc6_x))) || ( !((pc6_l2 && (pc6_l1 && ( !pc6_l0))) && (( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1)))))) && (((_x_pc6_x == 0.0) && ((pc6_evt0 && ( !pc6_evt1)) && (pc6_x <= 25.0))) || ( !((pc6_l2 && (pc6_l1 && ( !pc6_l0))) && (( !_x_pc6_l2) && (_x_pc6_l0 && ( !_x_pc6_l1))))))) && ((((pc6_evt0 && pc6_evt1) && (pc6_x == _x_pc6_x)) && ((_x_pc6_l2 && (_x_pc6_l0 && ( !_x_pc6_l1))) || (( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1)))) || ( !((( !pc6_l2) && (pc6_l0 && ( !pc6_l1))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && ((25.0 <= pc6_x) || ( !((( !pc6_l2) && (pc6_l0 && ( !pc6_l1))) && (( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1)))))) && ((pc6_x <= 24.0) || ( !((( !pc6_l2) && (pc6_l0 && ( !pc6_l1))) && (_x_pc6_l2 && (_x_pc6_l0 && ( !_x_pc6_l1))))))) && ((( !_x_pc6_l2) && (_x_pc6_l0 && _x_pc6_l1)) || ( !((( !pc6_l2) && (pc6_l0 && pc6_l1)) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && ((( !_x_pc6_l2) && (( !_x_pc6_l0) && ( !_x_pc6_l1))) || ( !((pc6_l2 && (pc6_l0 && ( !pc6_l1))) && ((delta == 0.0) && ( !(( !pc6_evt0) && ( !pc6_evt1)))))))) && ((((((((((((((((((((( !_x_pc5_evt0) && ( !_x_pc5_evt1)) || (_x_pc5_evt1 && ( !_x_pc5_evt0))) || ((_x_pc5_evt0 && ( !_x_pc5_evt1)) || (_x_pc5_evt0 && _x_pc5_evt1))) && ((( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1)) || ((((( !_x_pc5_l2) && (( !_x_pc5_l0) && ( !_x_pc5_l1))) || (_x_pc5_l2 && (( !_x_pc5_l0) && ( !_x_pc5_l1)))) || ((( !_x_pc5_l2) && (_x_pc5_l1 && ( !_x_pc5_l0))) || (_x_pc5_l2 && (_x_pc5_l1 && ( !_x_pc5_l0))))) || ((( !_x_pc5_l2) && (_x_pc5_l0 && ( !_x_pc5_l1))) || (_x_pc5_l2 && (_x_pc5_l0 && ( !_x_pc5_l1))))))) && ((delta <= 0.0) || ((((pc5_l0 == _x_pc5_l0) && (pc5_l1 == _x_pc5_l1)) && (pc5_l2 == _x_pc5_l2)) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)))) && (((((pc5_l0 == _x_pc5_l0) && (pc5_l1 == _x_pc5_l1)) && (pc5_l2 == _x_pc5_l2)) && ((delta + (pc5_x + (-1.0 * _x_pc5_x))) == 0.0)) || ( !(( !pc5_evt0) && ( !pc5_evt1))))) && ((((pc5_evt0 && pc5_evt1) && (pc5_x <= 50.0)) && ((_x_pc5_l2 && (( !_x_pc5_l0) && ( !_x_pc5_l1))) && (_x_pc5_x == 0.0))) || ( !((( !pc5_l2) && (( !pc5_l0) && ( !pc5_l1))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && (((pc5_evt0 && pc5_evt1) && ((( !_x_pc5_l2) && (( !_x_pc5_l0) && ( !_x_pc5_l1))) || (( !_x_pc5_l2) && (_x_pc5_l1 && ( !_x_pc5_l0))))) || ( !((pc5_l2 && (( !pc5_l0) && ( !pc5_l1))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && (((_x_pc5_x == 0.0) && (25.0 <= pc5_x)) || ( !((( !_x_pc5_l2) && (( !_x_pc5_l0) && ( !_x_pc5_l1))) && (pc5_l2 && (( !pc5_l0) && ( !pc5_l1))))))) && (((pc5_x <= 24.0) && (pc5_x == _x_pc5_x)) || ( !((pc5_l2 && (( !pc5_l0) && ( !pc5_l1))) && (( !_x_pc5_l2) && (_x_pc5_l1 && ( !_x_pc5_l0))))))) && (((_x_pc5_x == 0.0) && ((pc5_evt1 && ( !pc5_evt0)) && (_x_pc5_l2 && (_x_pc5_l1 && ( !_x_pc5_l0))))) || ( !((( !pc5_l2) && (pc5_l1 && ( !pc5_l0))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && (((( !_x_pc5_l2) && (_x_pc5_l0 && ( !_x_pc5_l1))) || (( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1))) || ( !((pc5_l2 && (pc5_l1 && ( !pc5_l0))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && (((pc5_x == _x_pc5_x) && ((pc5_evt0 && pc5_evt1) && (50.0 <= pc5_x))) || ( !((pc5_l2 && (pc5_l1 && ( !pc5_l0))) && (( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1)))))) && (((_x_pc5_x == 0.0) && ((pc5_evt0 && ( !pc5_evt1)) && (pc5_x <= 25.0))) || ( !((pc5_l2 && (pc5_l1 && ( !pc5_l0))) && (( !_x_pc5_l2) && (_x_pc5_l0 && ( !_x_pc5_l1))))))) && ((((pc5_evt0 && pc5_evt1) && (pc5_x == _x_pc5_x)) && ((_x_pc5_l2 && (_x_pc5_l0 && ( !_x_pc5_l1))) || (( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1)))) || ( !((( !pc5_l2) && (pc5_l0 && ( !pc5_l1))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && ((25.0 <= pc5_x) || ( !((( !pc5_l2) && (pc5_l0 && ( !pc5_l1))) && (( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1)))))) && ((pc5_x <= 24.0) || ( !((( !pc5_l2) && (pc5_l0 && ( !pc5_l1))) && (_x_pc5_l2 && (_x_pc5_l0 && ( !_x_pc5_l1))))))) && ((( !_x_pc5_l2) && (_x_pc5_l0 && _x_pc5_l1)) || ( !((( !pc5_l2) && (pc5_l0 && pc5_l1)) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && ((( !_x_pc5_l2) && (( !_x_pc5_l0) && ( !_x_pc5_l1))) || ( !((pc5_l2 && (pc5_l0 && ( !pc5_l1))) && ((delta == 0.0) && ( !(( !pc5_evt0) && ( !pc5_evt1)))))))) && ((((((((((((((((((((( !_x_pc4_evt0) && ( !_x_pc4_evt1)) || (_x_pc4_evt1 && ( !_x_pc4_evt0))) || ((_x_pc4_evt0 && ( !_x_pc4_evt1)) || (_x_pc4_evt0 && _x_pc4_evt1))) && ((( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1)) || ((((( !_x_pc4_l2) && (( !_x_pc4_l0) && ( !_x_pc4_l1))) || (_x_pc4_l2 && (( !_x_pc4_l0) && ( !_x_pc4_l1)))) || ((( !_x_pc4_l2) && (_x_pc4_l1 && ( !_x_pc4_l0))) || (_x_pc4_l2 && (_x_pc4_l1 && ( !_x_pc4_l0))))) || ((( !_x_pc4_l2) && (_x_pc4_l0 && ( !_x_pc4_l1))) || (_x_pc4_l2 && (_x_pc4_l0 && ( !_x_pc4_l1))))))) && ((delta <= 0.0) || ((((pc4_l0 == _x_pc4_l0) && (pc4_l1 == _x_pc4_l1)) && (pc4_l2 == _x_pc4_l2)) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)))) && (((((pc4_l0 == _x_pc4_l0) && (pc4_l1 == _x_pc4_l1)) && (pc4_l2 == _x_pc4_l2)) && ((delta + (pc4_x + (-1.0 * _x_pc4_x))) == 0.0)) || ( !(( !pc4_evt0) && ( !pc4_evt1))))) && ((((pc4_evt0 && pc4_evt1) && (pc4_x <= 50.0)) && ((_x_pc4_l2 && (( !_x_pc4_l0) && ( !_x_pc4_l1))) && (_x_pc4_x == 0.0))) || ( !((( !pc4_l2) && (( !pc4_l0) && ( !pc4_l1))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && (((pc4_evt0 && pc4_evt1) && ((( !_x_pc4_l2) && (( !_x_pc4_l0) && ( !_x_pc4_l1))) || (( !_x_pc4_l2) && (_x_pc4_l1 && ( !_x_pc4_l0))))) || ( !((pc4_l2 && (( !pc4_l0) && ( !pc4_l1))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && (((_x_pc4_x == 0.0) && (25.0 <= pc4_x)) || ( !((( !_x_pc4_l2) && (( !_x_pc4_l0) && ( !_x_pc4_l1))) && (pc4_l2 && (( !pc4_l0) && ( !pc4_l1))))))) && (((pc4_x <= 24.0) && (pc4_x == _x_pc4_x)) || ( !((pc4_l2 && (( !pc4_l0) && ( !pc4_l1))) && (( !_x_pc4_l2) && (_x_pc4_l1 && ( !_x_pc4_l0))))))) && (((_x_pc4_x == 0.0) && ((pc4_evt1 && ( !pc4_evt0)) && (_x_pc4_l2 && (_x_pc4_l1 && ( !_x_pc4_l0))))) || ( !((( !pc4_l2) && (pc4_l1 && ( !pc4_l0))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && (((( !_x_pc4_l2) && (_x_pc4_l0 && ( !_x_pc4_l1))) || (( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1))) || ( !((pc4_l2 && (pc4_l1 && ( !pc4_l0))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && (((pc4_x == _x_pc4_x) && ((pc4_evt0 && pc4_evt1) && (50.0 <= pc4_x))) || ( !((pc4_l2 && (pc4_l1 && ( !pc4_l0))) && (( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1)))))) && (((_x_pc4_x == 0.0) && ((pc4_evt0 && ( !pc4_evt1)) && (pc4_x <= 25.0))) || ( !((pc4_l2 && (pc4_l1 && ( !pc4_l0))) && (( !_x_pc4_l2) && (_x_pc4_l0 && ( !_x_pc4_l1))))))) && ((((pc4_evt0 && pc4_evt1) && (pc4_x == _x_pc4_x)) && ((_x_pc4_l2 && (_x_pc4_l0 && ( !_x_pc4_l1))) || (( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1)))) || ( !((( !pc4_l2) && (pc4_l0 && ( !pc4_l1))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && ((25.0 <= pc4_x) || ( !((( !pc4_l2) && (pc4_l0 && ( !pc4_l1))) && (( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1)))))) && ((pc4_x <= 24.0) || ( !((( !pc4_l2) && (pc4_l0 && ( !pc4_l1))) && (_x_pc4_l2 && (_x_pc4_l0 && ( !_x_pc4_l1))))))) && ((( !_x_pc4_l2) && (_x_pc4_l0 && _x_pc4_l1)) || ( !((( !pc4_l2) && (pc4_l0 && pc4_l1)) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && ((( !_x_pc4_l2) && (( !_x_pc4_l0) && ( !_x_pc4_l1))) || ( !((pc4_l2 && (pc4_l0 && ( !pc4_l1))) && ((delta == 0.0) && ( !(( !pc4_evt0) && ( !pc4_evt1)))))))) && ((((((((((((((((((((( !_x_pc3_evt0) && ( !_x_pc3_evt1)) || (_x_pc3_evt1 && ( !_x_pc3_evt0))) || ((_x_pc3_evt0 && ( !_x_pc3_evt1)) || (_x_pc3_evt0 && _x_pc3_evt1))) && ((( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1)) || ((((( !_x_pc3_l2) && (( !_x_pc3_l0) && ( !_x_pc3_l1))) || (_x_pc3_l2 && (( !_x_pc3_l0) && ( !_x_pc3_l1)))) || ((( !_x_pc3_l2) && (_x_pc3_l1 && ( !_x_pc3_l0))) || (_x_pc3_l2 && (_x_pc3_l1 && ( !_x_pc3_l0))))) || ((( !_x_pc3_l2) && (_x_pc3_l0 && ( !_x_pc3_l1))) || (_x_pc3_l2 && (_x_pc3_l0 && ( !_x_pc3_l1))))))) && ((delta <= 0.0) || ((((pc3_l0 == _x_pc3_l0) && (pc3_l1 == _x_pc3_l1)) && (pc3_l2 == _x_pc3_l2)) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)))) && (((((pc3_l0 == _x_pc3_l0) && (pc3_l1 == _x_pc3_l1)) && (pc3_l2 == _x_pc3_l2)) && ((delta + (pc3_x + (-1.0 * _x_pc3_x))) == 0.0)) || ( !(( !pc3_evt0) && ( !pc3_evt1))))) && ((((pc3_evt0 && pc3_evt1) && (pc3_x <= 50.0)) && ((_x_pc3_l2 && (( !_x_pc3_l0) && ( !_x_pc3_l1))) && (_x_pc3_x == 0.0))) || ( !((( !pc3_l2) && (( !pc3_l0) && ( !pc3_l1))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && (((pc3_evt0 && pc3_evt1) && ((( !_x_pc3_l2) && (( !_x_pc3_l0) && ( !_x_pc3_l1))) || (( !_x_pc3_l2) && (_x_pc3_l1 && ( !_x_pc3_l0))))) || ( !((pc3_l2 && (( !pc3_l0) && ( !pc3_l1))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && (((_x_pc3_x == 0.0) && (25.0 <= pc3_x)) || ( !((( !_x_pc3_l2) && (( !_x_pc3_l0) && ( !_x_pc3_l1))) && (pc3_l2 && (( !pc3_l0) && ( !pc3_l1))))))) && (((pc3_x <= 24.0) && (pc3_x == _x_pc3_x)) || ( !((pc3_l2 && (( !pc3_l0) && ( !pc3_l1))) && (( !_x_pc3_l2) && (_x_pc3_l1 && ( !_x_pc3_l0))))))) && (((_x_pc3_x == 0.0) && ((pc3_evt1 && ( !pc3_evt0)) && (_x_pc3_l2 && (_x_pc3_l1 && ( !_x_pc3_l0))))) || ( !((( !pc3_l2) && (pc3_l1 && ( !pc3_l0))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && (((( !_x_pc3_l2) && (_x_pc3_l0 && ( !_x_pc3_l1))) || (( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1))) || ( !((pc3_l2 && (pc3_l1 && ( !pc3_l0))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && (((pc3_x == _x_pc3_x) && ((pc3_evt0 && pc3_evt1) && (50.0 <= pc3_x))) || ( !((pc3_l2 && (pc3_l1 && ( !pc3_l0))) && (( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1)))))) && (((_x_pc3_x == 0.0) && ((pc3_evt0 && ( !pc3_evt1)) && (pc3_x <= 25.0))) || ( !((pc3_l2 && (pc3_l1 && ( !pc3_l0))) && (( !_x_pc3_l2) && (_x_pc3_l0 && ( !_x_pc3_l1))))))) && ((((pc3_evt0 && pc3_evt1) && (pc3_x == _x_pc3_x)) && ((_x_pc3_l2 && (_x_pc3_l0 && ( !_x_pc3_l1))) || (( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1)))) || ( !((( !pc3_l2) && (pc3_l0 && ( !pc3_l1))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && ((25.0 <= pc3_x) || ( !((( !pc3_l2) && (pc3_l0 && ( !pc3_l1))) && (( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1)))))) && ((pc3_x <= 24.0) || ( !((( !pc3_l2) && (pc3_l0 && ( !pc3_l1))) && (_x_pc3_l2 && (_x_pc3_l0 && ( !_x_pc3_l1))))))) && ((( !_x_pc3_l2) && (_x_pc3_l0 && _x_pc3_l1)) || ( !((( !pc3_l2) && (pc3_l0 && pc3_l1)) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && ((( !_x_pc3_l2) && (( !_x_pc3_l0) && ( !_x_pc3_l1))) || ( !((pc3_l2 && (pc3_l0 && ( !pc3_l1))) && ((delta == 0.0) && ( !(( !pc3_evt0) && ( !pc3_evt1)))))))) && ((((((((((((((((((((( !_x_pc2_evt0) && ( !_x_pc2_evt1)) || (_x_pc2_evt1 && ( !_x_pc2_evt0))) || ((_x_pc2_evt0 && ( !_x_pc2_evt1)) || (_x_pc2_evt0 && _x_pc2_evt1))) && ((( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1)) || ((((( !_x_pc2_l2) && (( !_x_pc2_l0) && ( !_x_pc2_l1))) || (_x_pc2_l2 && (( !_x_pc2_l0) && ( !_x_pc2_l1)))) || ((( !_x_pc2_l2) && (_x_pc2_l1 && ( !_x_pc2_l0))) || (_x_pc2_l2 && (_x_pc2_l1 && ( !_x_pc2_l0))))) || ((( !_x_pc2_l2) && (_x_pc2_l0 && ( !_x_pc2_l1))) || (_x_pc2_l2 && (_x_pc2_l0 && ( !_x_pc2_l1))))))) && ((delta <= 0.0) || ((((pc2_l0 == _x_pc2_l0) && (pc2_l1 == _x_pc2_l1)) && (pc2_l2 == _x_pc2_l2)) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)))) && (((((pc2_l0 == _x_pc2_l0) && (pc2_l1 == _x_pc2_l1)) && (pc2_l2 == _x_pc2_l2)) && ((delta + (pc2_x + (-1.0 * _x_pc2_x))) == 0.0)) || ( !(( !pc2_evt0) && ( !pc2_evt1))))) && ((((pc2_evt0 && pc2_evt1) && (pc2_x <= 50.0)) && ((_x_pc2_l2 && (( !_x_pc2_l0) && ( !_x_pc2_l1))) && (_x_pc2_x == 0.0))) || ( !((( !pc2_l2) && (( !pc2_l0) && ( !pc2_l1))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && (((pc2_evt0 && pc2_evt1) && ((( !_x_pc2_l2) && (( !_x_pc2_l0) && ( !_x_pc2_l1))) || (( !_x_pc2_l2) && (_x_pc2_l1 && ( !_x_pc2_l0))))) || ( !((pc2_l2 && (( !pc2_l0) && ( !pc2_l1))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && (((_x_pc2_x == 0.0) && (25.0 <= pc2_x)) || ( !((( !_x_pc2_l2) && (( !_x_pc2_l0) && ( !_x_pc2_l1))) && (pc2_l2 && (( !pc2_l0) && ( !pc2_l1))))))) && (((pc2_x <= 24.0) && (pc2_x == _x_pc2_x)) || ( !((pc2_l2 && (( !pc2_l0) && ( !pc2_l1))) && (( !_x_pc2_l2) && (_x_pc2_l1 && ( !_x_pc2_l0))))))) && (((_x_pc2_x == 0.0) && ((pc2_evt1 && ( !pc2_evt0)) && (_x_pc2_l2 && (_x_pc2_l1 && ( !_x_pc2_l0))))) || ( !((( !pc2_l2) && (pc2_l1 && ( !pc2_l0))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && (((( !_x_pc2_l2) && (_x_pc2_l0 && ( !_x_pc2_l1))) || (( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1))) || ( !((pc2_l2 && (pc2_l1 && ( !pc2_l0))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && (((pc2_x == _x_pc2_x) && ((pc2_evt0 && pc2_evt1) && (50.0 <= pc2_x))) || ( !((pc2_l2 && (pc2_l1 && ( !pc2_l0))) && (( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1)))))) && (((_x_pc2_x == 0.0) && ((pc2_evt0 && ( !pc2_evt1)) && (pc2_x <= 25.0))) || ( !((pc2_l2 && (pc2_l1 && ( !pc2_l0))) && (( !_x_pc2_l2) && (_x_pc2_l0 && ( !_x_pc2_l1))))))) && ((((pc2_evt0 && pc2_evt1) && (pc2_x == _x_pc2_x)) && ((_x_pc2_l2 && (_x_pc2_l0 && ( !_x_pc2_l1))) || (( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1)))) || ( !((( !pc2_l2) && (pc2_l0 && ( !pc2_l1))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && ((25.0 <= pc2_x) || ( !((( !pc2_l2) && (pc2_l0 && ( !pc2_l1))) && (( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1)))))) && ((pc2_x <= 24.0) || ( !((( !pc2_l2) && (pc2_l0 && ( !pc2_l1))) && (_x_pc2_l2 && (_x_pc2_l0 && ( !_x_pc2_l1))))))) && ((( !_x_pc2_l2) && (_x_pc2_l0 && _x_pc2_l1)) || ( !((( !pc2_l2) && (pc2_l0 && pc2_l1)) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && ((( !_x_pc2_l2) && (( !_x_pc2_l0) && ( !_x_pc2_l1))) || ( !((pc2_l2 && (pc2_l0 && ( !pc2_l1))) && ((delta == 0.0) && ( !(( !pc2_evt0) && ( !pc2_evt1)))))))) && ((((((((((((((((((((( !_x_pc1_evt0) && ( !_x_pc1_evt1)) || (_x_pc1_evt1 && ( !_x_pc1_evt0))) || ((_x_pc1_evt0 && ( !_x_pc1_evt1)) || (_x_pc1_evt0 && _x_pc1_evt1))) && ((( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1)) || ((((( !_x_pc1_l2) && (( !_x_pc1_l0) && ( !_x_pc1_l1))) || (_x_pc1_l2 && (( !_x_pc1_l0) && ( !_x_pc1_l1)))) || ((( !_x_pc1_l2) && (_x_pc1_l1 && ( !_x_pc1_l0))) || (_x_pc1_l2 && (_x_pc1_l1 && ( !_x_pc1_l0))))) || ((( !_x_pc1_l2) && (_x_pc1_l0 && ( !_x_pc1_l1))) || (_x_pc1_l2 && (_x_pc1_l0 && ( !_x_pc1_l1))))))) && ((delta <= 0.0) || ((((pc1_l0 == _x_pc1_l0) && (pc1_l1 == _x_pc1_l1)) && (pc1_l2 == _x_pc1_l2)) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)))) && (((((pc1_l0 == _x_pc1_l0) && (pc1_l1 == _x_pc1_l1)) && (pc1_l2 == _x_pc1_l2)) && ((delta + (pc1_x + (-1.0 * _x_pc1_x))) == 0.0)) || ( !(( !pc1_evt0) && ( !pc1_evt1))))) && ((((pc1_evt0 && pc1_evt1) && (pc1_x <= 50.0)) && ((_x_pc1_l2 && (( !_x_pc1_l0) && ( !_x_pc1_l1))) && (_x_pc1_x == 0.0))) || ( !((( !pc1_l2) && (( !pc1_l0) && ( !pc1_l1))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && (((pc1_evt0 && pc1_evt1) && ((( !_x_pc1_l2) && (( !_x_pc1_l0) && ( !_x_pc1_l1))) || (( !_x_pc1_l2) && (_x_pc1_l1 && ( !_x_pc1_l0))))) || ( !((pc1_l2 && (( !pc1_l0) && ( !pc1_l1))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && (((_x_pc1_x == 0.0) && (25.0 <= pc1_x)) || ( !((( !_x_pc1_l2) && (( !_x_pc1_l0) && ( !_x_pc1_l1))) && (pc1_l2 && (( !pc1_l0) && ( !pc1_l1))))))) && (((pc1_x <= 24.0) && (pc1_x == _x_pc1_x)) || ( !((pc1_l2 && (( !pc1_l0) && ( !pc1_l1))) && (( !_x_pc1_l2) && (_x_pc1_l1 && ( !_x_pc1_l0))))))) && (((_x_pc1_x == 0.0) && ((pc1_evt1 && ( !pc1_evt0)) && (_x_pc1_l2 && (_x_pc1_l1 && ( !_x_pc1_l0))))) || ( !((( !pc1_l2) && (pc1_l1 && ( !pc1_l0))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && (((( !_x_pc1_l2) && (_x_pc1_l0 && ( !_x_pc1_l1))) || (( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1))) || ( !((pc1_l2 && (pc1_l1 && ( !pc1_l0))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && (((pc1_x == _x_pc1_x) && ((pc1_evt0 && pc1_evt1) && (50.0 <= pc1_x))) || ( !((pc1_l2 && (pc1_l1 && ( !pc1_l0))) && (( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1)))))) && (((_x_pc1_x == 0.0) && ((pc1_evt0 && ( !pc1_evt1)) && (pc1_x <= 25.0))) || ( !((pc1_l2 && (pc1_l1 && ( !pc1_l0))) && (( !_x_pc1_l2) && (_x_pc1_l0 && ( !_x_pc1_l1))))))) && ((((pc1_evt0 && pc1_evt1) && (pc1_x == _x_pc1_x)) && ((_x_pc1_l2 && (_x_pc1_l0 && ( !_x_pc1_l1))) || (( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1)))) || ( !((( !pc1_l2) && (pc1_l0 && ( !pc1_l1))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && ((25.0 <= pc1_x) || ( !((( !pc1_l2) && (pc1_l0 && ( !pc1_l1))) && (( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1)))))) && ((pc1_x <= 24.0) || ( !((( !pc1_l2) && (pc1_l0 && ( !pc1_l1))) && (_x_pc1_l2 && (_x_pc1_l0 && ( !_x_pc1_l1))))))) && ((( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1)) || ( !((( !pc1_l2) && (pc1_l0 && pc1_l1)) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && ((( !_x_pc1_l2) && (( !_x_pc1_l0) && ( !_x_pc1_l1))) || ( !((pc1_l2 && (pc1_l0 && ( !pc1_l1))) && ((delta == 0.0) && ( !(( !pc1_evt0) && ( !pc1_evt1)))))))) && ((((((((((((((((((((( !_x_pc0_evt0) && ( !_x_pc0_evt1)) || (_x_pc0_evt1 && ( !_x_pc0_evt0))) || ((_x_pc0_evt0 && ( !_x_pc0_evt1)) || (_x_pc0_evt0 && _x_pc0_evt1))) && ((( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1)) || ((((( !_x_pc0_l2) && (( !_x_pc0_l0) && ( !_x_pc0_l1))) || (_x_pc0_l2 && (( !_x_pc0_l0) && ( !_x_pc0_l1)))) || ((( !_x_pc0_l2) && (_x_pc0_l1 && ( !_x_pc0_l0))) || (_x_pc0_l2 && (_x_pc0_l1 && ( !_x_pc0_l0))))) || ((( !_x_pc0_l2) && (_x_pc0_l0 && ( !_x_pc0_l1))) || (_x_pc0_l2 && (_x_pc0_l0 && ( !_x_pc0_l1))))))) && ((delta <= 0.0) || ((((pc0_l0 == _x_pc0_l0) && (pc0_l1 == _x_pc0_l1)) && (pc0_l2 == _x_pc0_l2)) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)))) && (((((pc0_l0 == _x_pc0_l0) && (pc0_l1 == _x_pc0_l1)) && (pc0_l2 == _x_pc0_l2)) && ((delta + (pc0_x + (-1.0 * _x_pc0_x))) == 0.0)) || ( !(( !pc0_evt0) && ( !pc0_evt1))))) && ((((pc0_evt0 && pc0_evt1) && (pc0_x <= 50.0)) && ((_x_pc0_l2 && (( !_x_pc0_l0) && ( !_x_pc0_l1))) && (_x_pc0_x == 0.0))) || ( !((( !pc0_l2) && (( !pc0_l0) && ( !pc0_l1))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && (((pc0_evt0 && pc0_evt1) && ((( !_x_pc0_l2) && (( !_x_pc0_l0) && ( !_x_pc0_l1))) || (( !_x_pc0_l2) && (_x_pc0_l1 && ( !_x_pc0_l0))))) || ( !((pc0_l2 && (( !pc0_l0) && ( !pc0_l1))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && (((_x_pc0_x == 0.0) && (25.0 <= pc0_x)) || ( !((( !_x_pc0_l2) && (( !_x_pc0_l0) && ( !_x_pc0_l1))) && (pc0_l2 && (( !pc0_l0) && ( !pc0_l1))))))) && (((pc0_x <= 24.0) && (pc0_x == _x_pc0_x)) || ( !((pc0_l2 && (( !pc0_l0) && ( !pc0_l1))) && (( !_x_pc0_l2) && (_x_pc0_l1 && ( !_x_pc0_l0))))))) && (((_x_pc0_x == 0.0) && ((pc0_evt1 && ( !pc0_evt0)) && (_x_pc0_l2 && (_x_pc0_l1 && ( !_x_pc0_l0))))) || ( !((( !pc0_l2) && (pc0_l1 && ( !pc0_l0))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && (((( !_x_pc0_l2) && (_x_pc0_l0 && ( !_x_pc0_l1))) || (( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1))) || ( !((pc0_l2 && (pc0_l1 && ( !pc0_l0))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && (((pc0_x == _x_pc0_x) && ((pc0_evt0 && pc0_evt1) && (50.0 <= pc0_x))) || ( !((pc0_l2 && (pc0_l1 && ( !pc0_l0))) && (( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1)))))) && (((_x_pc0_x == 0.0) && ((pc0_evt0 && ( !pc0_evt1)) && (pc0_x <= 25.0))) || ( !((pc0_l2 && (pc0_l1 && ( !pc0_l0))) && (( !_x_pc0_l2) && (_x_pc0_l0 && ( !_x_pc0_l1))))))) && ((((pc0_evt0 && pc0_evt1) && (pc0_x == _x_pc0_x)) && ((_x_pc0_l2 && (_x_pc0_l0 && ( !_x_pc0_l1))) || (( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1)))) || ( !((( !pc0_l2) && (pc0_l0 && ( !pc0_l1))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && ((25.0 <= pc0_x) || ( !((( !pc0_l2) && (pc0_l0 && ( !pc0_l1))) && (( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1)))))) && ((pc0_x <= 24.0) || ( !((( !pc0_l2) && (pc0_l0 && ( !pc0_l1))) && (_x_pc0_l2 && (_x_pc0_l0 && ( !_x_pc0_l1))))))) && ((( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1)) || ( !((( !pc0_l2) && (pc0_l0 && pc0_l1)) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && ((( !_x_pc0_l2) && (( !_x_pc0_l0) && ( !_x_pc0_l1))) || ( !((pc0_l2 && (pc0_l0 && ( !pc0_l1))) && ((delta == 0.0) && ( !(( !pc0_evt0) && ( !pc0_evt1)))))))) && ((((((( !_x_a7_evt0) && ( !_x_a7_evt1)) || ((_x_a7_evt1 && ( !_x_a7_evt0)) || (_x_a7_evt0 && ( !_x_a7_evt1)))) && ((a7_l == _x_a7_l) || ( !(( !(delta <= 0.0)) || (( !a7_evt0) && ( !a7_evt1)))))) && (((_x_id == 0) && (((a7_evt1 && ( !a7_evt0)) && _x_a7_l) && (id == 8))) || ( !(( !a7_l) && ((delta == 0.0) && ( !(( !a7_evt0) && ( !a7_evt1)))))))) && ((((a7_evt0 && ( !a7_evt1)) && ( !_x_a7_l)) && (_x_id == 8)) || ( !(a7_l && ((delta == 0.0) && ( !(( !a7_evt0) && ( !a7_evt1)))))))) && ((((((( !_x_a6_evt0) && ( !_x_a6_evt1)) || ((_x_a6_evt1 && ( !_x_a6_evt0)) || (_x_a6_evt0 && ( !_x_a6_evt1)))) && ((a6_l == _x_a6_l) || ( !(( !(delta <= 0.0)) || (( !a6_evt0) && ( !a6_evt1)))))) && (((_x_id == 0) && (((a6_evt1 && ( !a6_evt0)) && _x_a6_l) && (id == 7))) || ( !(( !a6_l) && ((delta == 0.0) && ( !(( !a6_evt0) && ( !a6_evt1)))))))) && ((((a6_evt0 && ( !a6_evt1)) && ( !_x_a6_l)) && (_x_id == 7)) || ( !(a6_l && ((delta == 0.0) && ( !(( !a6_evt0) && ( !a6_evt1)))))))) && ((((((( !_x_a5_evt0) && ( !_x_a5_evt1)) || ((_x_a5_evt1 && ( !_x_a5_evt0)) || (_x_a5_evt0 && ( !_x_a5_evt1)))) && ((a5_l == _x_a5_l) || ( !(( !(delta <= 0.0)) || (( !a5_evt0) && ( !a5_evt1)))))) && (((_x_id == 0) && (((a5_evt1 && ( !a5_evt0)) && _x_a5_l) && (id == 6))) || ( !(( !a5_l) && ((delta == 0.0) && ( !(( !a5_evt0) && ( !a5_evt1)))))))) && ((((a5_evt0 && ( !a5_evt1)) && ( !_x_a5_l)) && (_x_id == 6)) || ( !(a5_l && ((delta == 0.0) && ( !(( !a5_evt0) && ( !a5_evt1)))))))) && ((((((( !_x_a4_evt0) && ( !_x_a4_evt1)) || ((_x_a4_evt1 && ( !_x_a4_evt0)) || (_x_a4_evt0 && ( !_x_a4_evt1)))) && ((a4_l == _x_a4_l) || ( !(( !(delta <= 0.0)) || (( !a4_evt0) && ( !a4_evt1)))))) && (((_x_id == 0) && (((a4_evt1 && ( !a4_evt0)) && _x_a4_l) && (id == 5))) || ( !(( !a4_l) && ((delta == 0.0) && ( !(( !a4_evt0) && ( !a4_evt1)))))))) && ((((a4_evt0 && ( !a4_evt1)) && ( !_x_a4_l)) && (_x_id == 5)) || ( !(a4_l && ((delta == 0.0) && ( !(( !a4_evt0) && ( !a4_evt1)))))))) && ((((((( !_x_a3_evt0) && ( !_x_a3_evt1)) || ((_x_a3_evt1 && ( !_x_a3_evt0)) || (_x_a3_evt0 && ( !_x_a3_evt1)))) && ((a3_l == _x_a3_l) || ( !(( !(delta <= 0.0)) || (( !a3_evt0) && ( !a3_evt1)))))) && (((_x_id == 0) && (((a3_evt1 && ( !a3_evt0)) && _x_a3_l) && (id == 4))) || ( !(( !a3_l) && ((delta == 0.0) && ( !(( !a3_evt0) && ( !a3_evt1)))))))) && ((((a3_evt0 && ( !a3_evt1)) && ( !_x_a3_l)) && (_x_id == 4)) || ( !(a3_l && ((delta == 0.0) && ( !(( !a3_evt0) && ( !a3_evt1)))))))) && ((((((( !_x_a2_evt0) && ( !_x_a2_evt1)) || ((_x_a2_evt1 && ( !_x_a2_evt0)) || (_x_a2_evt0 && ( !_x_a2_evt1)))) && ((a2_l == _x_a2_l) || ( !(( !(delta <= 0.0)) || (( !a2_evt0) && ( !a2_evt1)))))) && (((_x_id == 0) && (((a2_evt1 && ( !a2_evt0)) && _x_a2_l) && (id == 3))) || ( !(( !a2_l) && ((delta == 0.0) && ( !(( !a2_evt0) && ( !a2_evt1)))))))) && ((((a2_evt0 && ( !a2_evt1)) && ( !_x_a2_l)) && (_x_id == 3)) || ( !(a2_l && ((delta == 0.0) && ( !(( !a2_evt0) && ( !a2_evt1)))))))) && ((((((( !_x_a1_evt0) && ( !_x_a1_evt1)) || ((_x_a1_evt1 && ( !_x_a1_evt0)) || (_x_a1_evt0 && ( !_x_a1_evt1)))) && ((a1_l == _x_a1_l) || ( !(( !(delta <= 0.0)) || (( !a1_evt0) && ( !a1_evt1)))))) && (((_x_id == 0) && (((a1_evt1 && ( !a1_evt0)) && _x_a1_l) && (id == 2))) || ( !(( !a1_l) && ((delta == 0.0) && ( !(( !a1_evt0) && ( !a1_evt1)))))))) && ((((a1_evt0 && ( !a1_evt1)) && ( !_x_a1_l)) && (_x_id == 2)) || ( !(a1_l && ((delta == 0.0) && ( !(( !a1_evt0) && ( !a1_evt1)))))))) && ((((((( !_x_a0_evt0) && ( !_x_a0_evt1)) || ((_x_a0_evt1 && ( !_x_a0_evt0)) || (_x_a0_evt0 && ( !_x_a0_evt1)))) && ((a0_l == _x_a0_l) || ( !(( !(delta <= 0.0)) || (( !a0_evt0) && ( !a0_evt1)))))) && (((((a0_evt1 && ( !a0_evt0)) && _x_a0_l) && (id == 1)) && (_x_id == 0)) || ( !(( !a0_l) && ((delta == 0.0) && ( !(( !a0_evt0) && ( !a0_evt1)))))))) && (((_x_id == 1) && ((a0_evt0 && ( !a0_evt1)) && ( !_x_a0_l))) || ( !(a0_l && ((delta == 0.0) && ( !(( !a0_evt0) && ( !a0_evt1)))))))) && (((((((c_initial == _x_c_initial) || ( !(( !c_move) || ( !(delta <= 0.0))))) && ((((id == 0) && (_x_id == 1)) && ( !_x_c_initial)) || ( !((delta == 0.0) && (c_move && c_initial))))) && (( !_x_c_initial) || ( !((c_move && (delta == 0.0)) && ( !c_initial))))) && ((_x_id == 1) || ( !(((delta == 0.0) && (8 <= id)) && (( !_x_c_initial) && ( !c_initial)))))) && ((_x_id == 1) || ( !((( !_x_c_initial) && ( !c_initial)) && ((delta == 0.0) && ( !(8 <= id))))))) && (0.0 <= _x_delta)))))))))))))))))) && ((_x_id == 7) || ((_x_id == 6) || ((_x_id == 5) || ((_x_id == 4) || ((_x_id == 3) || ((_x_id == 2) || ((_x_id == 1) || (_x_id == 0))))))))) && ((id == _x_id) || ( !((( !pc7_evt0) && ( !pc7_evt1)) && ((( !pc6_evt0) && ( !pc6_evt1)) && ((( !pc5_evt0) && ( !pc5_evt1)) && ((( !pc4_evt0) && ( !pc4_evt1)) && ((( !pc3_evt0) && ( !pc3_evt1)) && ((( !pc2_evt0) && ( !pc2_evt1)) && ((( !pc1_evt0) && ( !pc1_evt1)) && ((( !pc0_evt0) && ( !pc0_evt1)) && ((( !a7_evt0) && ( !a7_evt1)) && ((( !a6_evt0) && ( !a6_evt1)) && ((( !a5_evt0) && ( !a5_evt1)) && ((( !a4_evt0) && ( !a4_evt1)) && ((( !a3_evt0) && ( !a3_evt1)) && ((( !a2_evt0) && ( !a2_evt1)) && ((( !a1_evt0) && ( !a1_evt1)) && (( !c_move) && (( !a0_evt0) && ( !a0_evt1))))))))))))))))))))) && (((a0_evt1 && ( !a0_evt0)) == (pc0_evt1 && ( !pc0_evt0))) || ( !(delta == 0.0)))) && (( !(delta == 0.0)) || ((a0_evt0 && ( !a0_evt1)) == (pc0_evt0 && ( !pc0_evt1))))) && (( !(delta == 0.0)) || ((a1_evt1 && ( !a1_evt0)) == (pc1_evt1 && ( !pc1_evt0))))) && (( !(delta == 0.0)) || ((a1_evt0 && ( !a1_evt1)) == (pc1_evt0 && ( !pc1_evt1))))) && (( !(delta == 0.0)) || ((a2_evt1 && ( !a2_evt0)) == (pc2_evt1 && ( !pc2_evt0))))) && (( !(delta == 0.0)) || ((a2_evt0 && ( !a2_evt1)) == (pc2_evt0 && ( !pc2_evt1))))) && (( !(delta == 0.0)) || ((a3_evt1 && ( !a3_evt0)) == (pc3_evt1 && ( !pc3_evt0))))) && (( !(delta == 0.0)) || ((a3_evt0 && ( !a3_evt1)) == (pc3_evt0 && ( !pc3_evt1))))) && (( !(delta == 0.0)) || ((a4_evt1 && ( !a4_evt0)) == (pc4_evt1 && ( !pc4_evt0))))) && (( !(delta == 0.0)) || ((a4_evt0 && ( !a4_evt1)) == (pc4_evt0 && ( !pc4_evt1))))) && (( !(delta == 0.0)) || ((a5_evt1 && ( !a5_evt0)) == (pc5_evt1 && ( !pc5_evt0))))) && (( !(delta == 0.0)) || ((a5_evt0 && ( !a5_evt1)) == (pc5_evt0 && ( !pc5_evt1))))) && (( !(delta == 0.0)) || ((a6_evt1 && ( !a6_evt0)) == (pc6_evt1 && ( !pc6_evt0))))) && (( !(delta == 0.0)) || ((a6_evt0 && ( !a6_evt1)) == (pc6_evt0 && ( !pc6_evt1))))) && (( !(delta == 0.0)) || ((a7_evt1 && ( !a7_evt0)) == (pc7_evt1 && ( !pc7_evt0))))) && (( !(delta == 0.0)) || ((a7_evt0 && ( !a7_evt1)) == (pc7_evt0 && ( !pc7_evt1))))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0)))) && (((((((_EL_U_1922 == (_x__EL_U_1922 || ( !(_x__EL_U_1920 || (1.0 <= _x__diverge_delta))))) && ((_EL_U_1920 == (_x__EL_U_1920 || (1.0 <= _x__diverge_delta))) && ((_EL_U_1925 == (_x__EL_U_1925 || ( !(( !(( !_x_pc1_l2) && (_x_pc1_l0 && _x_pc1_l1))) || ( !(( !_x_pc0_l2) && (_x_pc0_l0 && _x_pc0_l1))))))) && ((_EL_U_1927 == ((_x_id == 1) || _x__EL_U_1927)) && (_EL_U_1929 == (_x__EL_U_1929 || ( !((_x_id == 1) || _x__EL_U_1927)))))))) && (_x__J1953 == (( !((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) && (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981) || (((id == 1) || ( !((id == 1) || _EL_U_1927))) || _J1953))))) && (_x__J1959 == (( !((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) && (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981) || ((( !((id == 1) || _EL_U_1927)) || ( !(_EL_U_1929 || ( !((id == 1) || _EL_U_1927))))) || _J1959))))) && (_x__J1968 == (( !((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) && (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981) || ((( !(( !(( !pc0_l2) && (pc0_l0 && pc0_l1))) || ( !(( !pc1_l2) && (pc1_l0 && pc1_l1))))) || ( !(( !(( !(( !pc0_l2) && (pc0_l0 && pc0_l1))) || ( !(( !pc1_l2) && (pc1_l0 && pc1_l1))))) || _EL_U_1925))) || _J1968))))) && (_x__J1975 == (( !((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) && (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981) || (((1.0 <= _diverge_delta) || ( !((1.0 <= _diverge_delta) || _EL_U_1920))) || _J1975))))) && (_x__J1981 == (( !((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981)) && (((((_J1953 && _J1959) && _J1968) && _J1975) && _J1981) || ((( !((1.0 <= _diverge_delta) || _EL_U_1920)) || ( !(_EL_U_1922 || ( !((1.0 <= _diverge_delta) || _EL_U_1920))))) || _J1981)))))); _diverge_delta = _x__diverge_delta; delta = _x_delta; id = _x_id; c_initial = _x_c_initial; c_move = _x_c_move; a0_evt1 = _x_a0_evt1; a0_evt0 = _x_a0_evt0; a0_l = _x_a0_l; a1_evt1 = _x_a1_evt1; a1_evt0 = _x_a1_evt0; a1_l = _x_a1_l; a2_evt1 = _x_a2_evt1; a2_evt0 = _x_a2_evt0; a2_l = _x_a2_l; a3_evt1 = _x_a3_evt1; a3_evt0 = _x_a3_evt0; a3_l = _x_a3_l; a4_evt1 = _x_a4_evt1; a4_evt0 = _x_a4_evt0; a4_l = _x_a4_l; a5_evt1 = _x_a5_evt1; a5_evt0 = _x_a5_evt0; a5_l = _x_a5_l; a6_evt1 = _x_a6_evt1; a6_evt0 = _x_a6_evt0; a6_l = _x_a6_l; a7_evt1 = _x_a7_evt1; a7_evt0 = _x_a7_evt0; a7_l = _x_a7_l; pc0_l1 = _x_pc0_l1; pc0_l0 = _x_pc0_l0; pc0_l2 = _x_pc0_l2; pc0_evt1 = _x_pc0_evt1; pc0_evt0 = _x_pc0_evt0; pc0_x = _x_pc0_x; pc1_l1 = _x_pc1_l1; pc1_l0 = _x_pc1_l0; pc1_l2 = _x_pc1_l2; pc1_evt1 = _x_pc1_evt1; pc1_evt0 = _x_pc1_evt0; pc1_x = _x_pc1_x; pc2_l1 = _x_pc2_l1; pc2_l0 = _x_pc2_l0; pc2_l2 = _x_pc2_l2; pc2_evt1 = _x_pc2_evt1; pc2_evt0 = _x_pc2_evt0; pc2_x = _x_pc2_x; pc3_l1 = _x_pc3_l1; pc3_l0 = _x_pc3_l0; pc3_l2 = _x_pc3_l2; pc3_evt1 = _x_pc3_evt1; pc3_evt0 = _x_pc3_evt0; pc3_x = _x_pc3_x; pc4_l1 = _x_pc4_l1; pc4_l0 = _x_pc4_l0; pc4_l2 = _x_pc4_l2; pc4_evt1 = _x_pc4_evt1; pc4_evt0 = _x_pc4_evt0; pc4_x = _x_pc4_x; pc5_l1 = _x_pc5_l1; pc5_l0 = _x_pc5_l0; pc5_l2 = _x_pc5_l2; pc5_evt1 = _x_pc5_evt1; pc5_evt0 = _x_pc5_evt0; pc5_x = _x_pc5_x; pc6_l1 = _x_pc6_l1; pc6_l0 = _x_pc6_l0; pc6_l2 = _x_pc6_l2; pc6_evt1 = _x_pc6_evt1; pc6_evt0 = _x_pc6_evt0; pc6_x = _x_pc6_x; pc7_l1 = _x_pc7_l1; pc7_l0 = _x_pc7_l0; pc7_l2 = _x_pc7_l2; pc7_evt1 = _x_pc7_evt1; pc7_evt0 = _x_pc7_evt0; pc7_x = _x_pc7_x; _J1981 = _x__J1981; _J1975 = _x__J1975; _J1968 = _x__J1968; _J1959 = _x__J1959; _J1953 = _x__J1953; _EL_U_1920 = _x__EL_U_1920; _EL_U_1922 = _x__EL_U_1922; _EL_U_1925 = _x__EL_U_1925; _EL_U_1927 = _x__EL_U_1927; _EL_U_1929 = _x__EL_U_1929; } }
the_stack_data/560378.c
int maxAscendingSum(int *nums, int numsSize) { if (numsSize == 1) return *nums; // Keep track of current sum and max found so far. int current_sum = 0, max_found = 0; for (int i = 0; i < numsSize - 1; i++) { int a = *(nums + i), b = *(nums + i + 1); current_sum += a; if (b <= a) { // update max if current exceeds it. if (current_sum > max_found) max_found = current_sum; current_sum = 0; } } // Check final value. Either it contributes to current or // it is the final value to compare to max_found. int final = nums[numsSize - 1]; if (final > nums[numsSize - 2]) { current_sum += final; return max_found > current_sum ? max_found : current_sum; } return max_found > final ? max_found : final; }
the_stack_data/247019016.c
#ifdef HAVE_UART #include <avr/io.h> #define BAUDRATE 19200 //9600 void serial_init(void) { /* Set the baud rate */ UBRR0H = (unsigned char) (((F_CPU / (BAUDRATE) / 8) - 1)) >> 8; UBRR0L = (unsigned char) (((F_CPU / (BAUDRATE) / 8) - 1)); /* double speed to archive higher precision on 12 Mhz */ UCSR0A = _BV(U2X0); /* set the framing to 8N1 */ UCSR0C = (3 << UCSZ00); /* Engage! */ UCSR0B = (1 << RXEN0) | (1 << TXEN0); return; } void serial_write(unsigned char c) { #ifndef AVRSIM while ( !(UCSR0A & (1 << UDRE0)) ); #endif UDR0 = c; } #endif /* uart1 */
the_stack_data/138490.c
/* * Author: Alessandro Coppe * Purpose: To tranform a FASTQ file to a FASTA one * Language: C * * (c) 2019 Coppe * This code is licensed under MIT license (see LICENSE.txt for details) */ #include<stdio.h> #include<unistd.h> #include<stdlib.h> #include<stdbool.h> #include<string.h> void split_line_with_newlines(char *string); int main(int argc, char *argv[]){ const int STRING_MAX_LEN = 350; char line[STRING_MAX_LEN + 1]; FILE *file; char ch; int exit = 0; _Bool READ_LABEL = 0; int string_length; char *seq; /* Help string */ char help[] = "Usage: from_fastq_to_fasta [OPTION]... FASTA_FILE.\n " "-h\tshow help options"; /* Options section */ while ((ch = getopt(argc, argv, "dh")) != EOF) { switch (ch) { case 'd': break; case 'h': exit = 1; puts(help); return 0; default: return -1; } } argc -= optind; argv += optind; /* Options end */ /* Check if there is a FASTA file argument */ if (argc < 1) { fprintf(stderr, "Fastq file name not specified\n"); return 1; } /* If the FASTA file is not present */ if (!(file = fopen(argv[0], "r"))) { fprintf(stderr, "Coud not find file: %s\n", argv[0]); return 1; } while (fgets(line, STRING_MAX_LEN, file)) { if (line[0] == '@'){ READ_LABEL = 1; fprintf(stdout, ">%s", line + 1); continue; } if (READ_LABEL == 1) { seq = line; string_length = strlen(seq); /* Split and print the DNA/RNA strings by new lines */ split_line_with_newlines(seq); READ_LABEL = 0; continue; } } } void split_line_with_newlines(char *string) { int start = 0; int length = 80; int string_length = strlen(string); fprintf(stdout, "%.*s\n", length, string); while (start < string_length) { fprintf(stdout, "%.*s", length, string + (start + length)); start = start + length; } }
the_stack_data/17667.c
#include <stdio.h> #include <string.h> #include <math.h> int main(){ char s[256]; char inv[256]; char freq[26]; int i, len, pangram; float H,p; scanf("%[^\n]s",s); len = strlen(s); inv[len] = '\0'; for( i=0;i<len;i++ ){ inv[i] = s[len-i-1]; } printf("%s\n",inv); for( i=0;i<26;i++ ) freq[i]=0; for( i=0;i<len;i++ ){ freq[tolower(s[i])-'a']++; } pangram = 1; for( i=0;i<26;i++ ){ if( !freq[i] ){ pangram=0; break; } } if( pangram ) printf("É pangram\n"); else printf("Não é pangram\n"); H = 0.0; for( i=0;i<26;i++ ){ if( freq[i] ){ p = freq[i]/(float)len; H -= p*log(p)/log(2.0); } } printf("%f\n",H); return 0; }
the_stack_data/30121.c
// Author: Luka Napotnik <[email protected]> // This code is public domain. #include <stdlib.h> #include <fcntl.h> #include <signal.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include <assert.h> #define _ struct _memory_watchlist_addr { void *addr; size_t size; struct _memory_watchlist_addr *next, *prev; }; struct _memory_watchlist_addr *_memory_watchlist = NULL; void _watch_address(void *addr, size_t size, int prot) { struct _memory_watchlist_addr *watch_addr = malloc(sizeof(*watch_addr)); watch_addr->addr = addr; watch_addr->size = size; if (_memory_watchlist) _memory_watchlist->prev = watch_addr; // prepend watch to list watch_addr->next = _memory_watchlist; watch_addr->prev = NULL; _memory_watchlist = watch_addr; // now protect the memory map mprotect(addr, size, prot); } void _sigsegv_protector(int s, siginfo_t *sig_info, void *context) { printf("---\n"); printf("%s: Process received segmentation fault, examening ...\n", __func__); printf("%s: cause was address %p\n", __func__, sig_info->si_addr); struct _memory_watchlist_addr *watched_addr = _memory_watchlist; for (; watched_addr != NULL; watched_addr = watched_addr->next) { if (watched_addr->addr == sig_info->si_addr) break; } if (watched_addr) { printf("%s: raised because of invalid r/w acces to address (was in watchlist) ...\n", __func__); if (watched_addr->prev) watched_addr->prev->next = watched_addr->next; _memory_watchlist = watched_addr->next; mprotect (sig_info->si_addr, watched_addr->size, PROT_READ | PROT_WRITE); free(watched_addr); printf("---\n"); } else { printf("---\n"); exit(1); } } void test_segfault_protector() { char *memory; int fd, alloc_size; // size of one page on our system alloc_size = getpagesize(); // allocate page-aligned memory fd = open ("/dev/zero", O_RDONLY); memory = mmap(NULL, alloc_size, PROT_WRITE, MAP_PRIVATE, fd, 0); assert(memory != NULL); close (fd); // obtain a private copy of the page memory[0] = 0; // Here's the main part ... add the allocated memory to the // watchlist. After this call, the memory will be unreadable/unwriteble. _watch_address(memory, alloc_size, PROT_NONE); // Let's try this out. The following line should cause a SIGSEGV. char *ref = &memory[0]; // And we're finished. munmap (memory, alloc_size); } int main () { struct sigaction sa; // Setup our signal handler memset (&sa, 0, sizeof (sa)); sa.sa_sigaction = &_sigsegv_protector; sa.sa_flags = SA_SIGINFO; sigaction (SIGSEGV, &sa, NULL); // Run test test_segfault_protector(); printf("Program exited\n"); return 0; }
the_stack_data/95451498.c
#include <stdio.h> int fun(int a[], int n); int main() { int x[7] = {1, 2, 3, 4, 5, 6, 7}, s; s = fun(x, 7); printf("%d\n", s); return 0; } int fun(int a[], int n) { if (n >= 1) return fun(a, n - 1) + a[n - 1]; else return 0; }
the_stack_data/32951163.c
/* HAL raised several warnings, ignore them */ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-parameter" #ifdef STM32MP1xx #include "stm32mp1xx_hal_ipcc.c" #elif STM32WBxx #include "stm32wbxx_hal_ipcc.c" #elif STM32WLxx #include "stm32wlxx_hal_ipcc.c" #endif #pragma GCC diagnostic pop
the_stack_data/95450710.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_opp.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: akharrou <[email protected]> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2018/11/04 14:55:52 by akharrou #+# #+# */ /* Updated: 2018/11/04 16:30:23 by akharrou ### ########.fr */ /* */ /* ************************************************************************** */ int ft_sub(int a, int b) { return (a - b); } int ft_add(int a, int b) { return (a + b); } int ft_mul(int a, int b) { return (a * b); } int ft_div(int a, int b) { if (b == 0) return (0); return (a / b); } int ft_mod(int a, int b) { if (b == 0) return (0); return (a % b); }
the_stack_data/139718.c
struct S { int if1: 1; int if2: 2; int if3: 3; int if4: 4; int : 0; unsigned uf1:10; unsigned uf2:20; int x; unsigned uf3:30; unsigned :0; unsigned uf4:30; unsigned uf5:30; int if5:1; unsigned uf6:1; long long llf:33; };
the_stack_data/125141933.c
struct a { int aa }; b, c, d; *e(); f() { int g, h; struct a *i, *j; int a = i = e(); j = e(); if (i == 0) { g = k(); if (g == 0) goto ae; if (c) i = l(); } if (i == 0 || j) d = i; if (j->aa) h = m(); for (; d;) goto ae; a = b; ae: if (h) n(h); if (g) n(); return a; }
the_stack_data/476241.c
#include <stdio.h> void swap_integer(int*, int*); int main() { int a, b; scanf("%d %d", &a, &b); printf("before: %d %d\n", a, b); swap_integer(&a, &b); printf("after: %d %d\n", a, b); return 0; } void swap_integer(int* x, int* y) { int tmp = *x; *x = *y; *y = tmp; }
the_stack_data/1146741.c
void fun (void) { float *fp; #pragma acc parallel copy(fp[0:2],fp[0:2]) /* { dg-error "'fp' appears more than once in data clauses" } */ ; #pragma acc kernels present_or_copyin(fp[3]) present_or_copyout(fp[7:4]) /* { dg-error "'fp' appears more than once in data clauses" } */ ; #pragma acc data create(fp[:10]) deviceptr(fp) /* { dg-error "'fp' appears more than once in data clauses" } */ ; #pragma acc data create(fp) present(fp) /* { dg-error "'fp' appears more than once in data clauses" } */ ; }
the_stack_data/247017388.c
#include <stdio.h> #include <stdlib.h> #include <pthread.h> #include <semaphore.h> #include <time.h> #define N 10 typedef struct Leader { pthread_mutex_t mutex; int best_rank; int cnt; long int tid; } Leader; Leader* leader; sem_t* barrier; int randomRank(int max); void* thRoutine(void* thArg); int main(int argc, char** argv) { int *arg, i, j, k, ranks[N]; pthread_t th; /* Seed the rand() function */ srand(time(NULL)); /* Allocate and initialize the leader */ leader = (Leader*)malloc(sizeof(Leader)); pthread_mutex_init(&leader->mutex, NULL); leader->best_rank = 0; leader->cnt = 0; /* Allocate and initialize the barrier */ barrier = (sem_t*)malloc(sizeof(sem_t)); sem_init(barrier, 0, 0); /* Create the threads */ for (i=0; i<N; i++) { ranks[i] = i; } k = N; for (i=0; i<N; i++) { arg = (int*)malloc(sizeof(int)); j = randomRank(k); *arg = ranks[i] + 1; ranks[j] = ranks[--k]; pthread_create(&th, NULL, (void*)thRoutine, (void*)arg); } pthread_exit(0); } int randomRank(int max) { int r; r = rand() % max; return (int)r; } void* thRoutine(void* thArg) { int* rank = (int*)thArg; int i; long int id; id = pthread_self(); pthread_detach(pthread_self()); pthread_mutex_lock(&leader->mutex); if (leader->best_rank < *rank) { leader->best_rank = *rank; leader->tid = id; } leader->cnt++; if (leader->cnt == N) { for(i=0; i<N; i++) { sem_post(barrier); } } pthread_mutex_unlock(&leader->mutex); sem_wait(barrier); fprintf(stdout, "Thread ID: %ld\tThread Rank: %d\tLeader ID: %ld\tLeader Rank: %d\n", id, *rank, leader->tid, leader->best_rank); pthread_exit((void*)0); }
the_stack_data/111048.c
#include <stdlib.h> #include <string.h> #include <limits.h> #include <stdio.h> #include <inttypes.h> static uintmax_t get_width(void) { static uintmax_t width = 0; static int done = 0; static uintmax_t n = UINTMAX_MAX; if (done) { return width; } while (n > 0) { ++width; n >>= 1; } done = 1; return width; } static size_t count_bits(uintmax_t v) { size_t n = 0; for (n = 0; v; ++n) { v &= v - 1; } return n; } size_t lcs_len(const char *a, const char *b) { size_t a_len = strlen(a); size_t b_len = strlen(b); size_t a_lower = 0; size_t a_upper = a_len; size_t b_lower = 0; size_t b_upper = b_len; const uintmax_t width = get_width(); uintmax_t positions[UCHAR_MAX + 1] = {0}; uintmax_t i = 0; uintmax_t v = ULLONG_MAX; uintmax_t p = 0; uintmax_t u = 0; if (a_len == 0 || b_len == 0) { return 0; } --a_upper; --b_upper; /* find the lower bound of difference */ while (a_lower <= a_upper && b_lower <= b_upper && a[a_lower] == b[b_lower]) { ++a_lower; ++b_lower; } /* find the upper bound of difference */ while (a_lower <= a_upper && b_lower <= b_upper && a[a_upper] == b[b_upper]) { --a_upper; --b_upper; } /* not supported yet */ if (a_upper >= width) { return 0; } for (i = a_lower; i <= a_upper; ++i) { positions[(unsigned char)a[i]] |= 1 << (i % width); } for (i = b_lower; i <= b_upper; ++i) { p = positions[(unsigned char)b[i]]; u = v & p; v = (v + u) | (v - u); } return a_lower + count_bits(~v) + a_len - 1 - a_upper; } struct test_case { char *a; char *b; size_t expected_value; }; int main(void) { int ret_val = EXIT_SUCCESS; struct test_case test_cases[] = { { "abcdef", "abcdef", 6 }, { "aaaaa", "bbbbb", 0 }, { "xabczdefy", "def", 3 } }; size_t num_of_cases = sizeof test_cases / sizeof *test_cases; size_t success_count = 0; size_t failure_count = 0; size_t i = 0; for (; i < num_of_cases; ++i) { struct test_case *t = test_cases + i; size_t actual_value = lcs_len(t->a, t->b); if (t->expected_value == actual_value) { ++success_count; } else { ++failure_count; fprintf(stderr, "Not OK. Case %zu: Expected: %zu, Actual: %zu\n", i, t->expected_value, actual_value); } } printf("%zu/%zu OK\n", success_count, num_of_cases); if (failure_count > 0) { printf("%zu/%zu OK\n", failure_count, num_of_cases); ret_val = EXIT_FAILURE; } return ret_val; }
the_stack_data/28262143.c
#include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <unistd.h> #define MAXLENGTH 1024 int main (){ int fd_caller; char *myfifo_caller="/tmp/myfifo_listener0"; char buffer1[MAXLENGTH+1]; printf("Receiving....\n"); fd_caller= open(myfifo_caller, O_RDONLY); do{ /*EOF is received when write on other end completes execution*/ read(fd_caller, buffer1, MAXLENGTH) ; //read message from broadcaster printf("Received : %s\n", buffer1); }while(strcmp(buffer1, "Quit")); close(fd_caller); return 0; }
the_stack_data/98574174.c
#include <stdio.h> int main(void) { char *lines[5] = //字符指针数组 { "COSC1283/1984", "Programming", "Techniques", "is", "great fun" }; char *str1 = lines[1]; // lines[1] = *(lines + 1) char *str2 = *(lines + 3); char c1 = *(*(lines + 4) + 6); char c2 = (*lines + 5)[5]; // = *( (*lines +5) + 5) = 'c'的地址加5,再加5,再解引用*(地址 + 5) char c3 = *lines[0] + 2; printf("str1 = %s\n", str1); //"Programming" printf("str2 = %s\n", str2); //"is" printf("c1 = %c\n", c1); //f printf("c2 = %c\n", c2); //9 printf("c3 = %c\n", c3); //'C'+2 = 'E' return 0; }
the_stack_data/1200570.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <ctype.h> char *rtrim(const char *s) { while( isspace(*s) || !isprint(*s) ) ++s; return strdup(s); } char *ltrim(const char *s) { char *r = strdup(s); if (r != NULL) { char *fr = r + strlen(s) - 1; while( (isspace(*fr) || !isprint(*fr) || *fr == 0) && fr >= r) --fr; *++fr = 0; } return r; } char *trim(const char *s) { char *r = rtrim(s); char *f = ltrim(r); free(r); return f; } const char *a = " this is a string "; int main() { char *b = rtrim(a); char *c = ltrim(a); char *d = trim(a); printf("'%s'\n'%s'\n'%s'\n", b, c, d); free(b); free(c); free(d); return 0; }
the_stack_data/36075703.c
int f1(int q[][3]) { return 0; } int f2(int (*q[][3])[5]) { return 0; } int f3(int (*(**q[])[])[][2]) { return 0; } int main(void) { int q[10][30]; f1(q); f2(q); f3(q); int (*r[20][3])[50]; f1(r); f2(r); f3(r); int (*(**s[30])[])[][20]; f1(s); f2(s); f3(s); }
the_stack_data/1067064.c
#include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> /* it's really stupid that there isn't a syscall for this */ static int fd = -1; void randombytes(unsigned char *x,unsigned long long xlen) { int i; if (fd == -1) { for (;;) { fd = open("/dev/urandom",O_RDONLY); if (fd != -1) break; sleep(1); } } while (xlen > 0) { if (xlen < 1048576) i = xlen; else i = 1048576; i = read(fd,x,i); if (i < 1) { sleep(1); continue; } x += i; xlen -= i; } }
the_stack_data/14201297.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #define PTR_SIZE 100 #define PTR2_SIZE 10 #define PTR3_SIZE 10 #define OUT_OF_BOUNDS_EXCESS 1 typedef struct UserStruct { unsigned int *ptr1; unsigned int *ptr2; unsigned int var1; char var2; float var3; float* ptr3; unsigned int *ptr4; } UserStruct; int main() { int *ptr = (int*)malloc(PTR_SIZE*sizeof(int)); int *ptr2 = (int*)malloc(PTR2_SIZE*sizeof(int)); UserStruct structvar = {NULL, (unsigned int*)ptr, 5, 'a', 3.5, (float*)ptr2, NULL}; UserStruct **structptr = (UserStruct**)malloc(PTR_SIZE*sizeof(UserStruct*)); for(unsigned int index = 0; index < PTR_SIZE; index++) { structptr[index] = (UserStruct*)malloc(PTR2_SIZE*sizeof(UserStruct)); } for(unsigned int i = 0; i < PTR_SIZE; i++) { for(unsigned int j = 0; j < PTR2_SIZE; j++) { structptr[i][j].ptr1= (unsigned int*)malloc(PTR_SIZE*sizeof(unsigned int)); structptr[i][j].ptr2 = (unsigned int*)malloc(PTR2_SIZE*sizeof(unsigned int)); structptr[i][j].ptr3 = (float*)malloc((PTR_SIZE+100)*sizeof(float)); structptr[i][j].ptr4 = (unsigned int*)malloc((PTR2_SIZE+50)*sizeof(unsigned int)); } } for(unsigned int i = 0; i < PTR_SIZE; i++) { for(unsigned int j = 0; j < PTR2_SIZE; j++) { structptr[i][j].ptr1 = NULL; structptr[i][j].ptr2 = NULL; } } int* start_ptr = ptr; int* start_ptr2 = ptr2; // Crossing the boundary of ptr. The condition should // be less than, not less than or equal to // ptr[PTR_SIZE] is an out-of-bounds access for(int index = 0; index <= (PTR_SIZE + OUT_OF_BOUNDS_EXCESS); index++) { *ptr = index; ptr++; } for(unsigned int i = 0; i < PTR_SIZE; i++) { for(unsigned int j = 0; j < PTR2_SIZE; j++) { printf("%lf\n", structptr[i][j].ptr3); printf("%u\n", structptr[i][j].ptr4); } } // Resetting ptr to start_ptr, so that it points to the beginning // of the allocation ptr = start_ptr; // Printing what we wrote above for(int index = 0; index <= (PTR_SIZE + OUT_OF_BOUNDS_EXCESS); index++) { printf("ptr[%d]=%d\n", index, *ptr); ptr++; } return 0; }
the_stack_data/90975.c
/* * Copyright 2013-2016 The OpenSSL Project Authors. All Rights Reserved. * * Licensed under the Apache License 2.0 (the "License"). You may not use * this file except in compliance with the License. You can obtain a copy * in the file LICENSE in the source distribution or at * https://www.openssl.org/source/license.html */ #include <string.h> #include <openssl/err.h> #include <openssl/ssl.h> #include <openssl/conf.h> int main(int argc, char **argv) { BIO *sbio = NULL, *out = NULL; int i, len, rv; char tmpbuf[1024]; SSL_CTX *ctx = NULL; SSL_CONF_CTX *cctx = NULL; SSL *ssl = NULL; CONF *conf = NULL; STACK_OF(CONF_VALUE) *sect = NULL; CONF_VALUE *cnf; const char *connect_str = "localhost:4433"; long errline = -1; conf = VR_NCONF_new(NULL); if (VR_NCONF_load(conf, "connect.cnf", &errline) <= 0) { if (errline <= 0) fprintf(stderr, "Error processing config file\n"); else fprintf(stderr, "Error on line %ld\n", errline); goto end; } sect = VR_NCONF_get_section(conf, "default"); if (sect == NULL) { fprintf(stderr, "Error retrieving default section\n"); goto end; } ctx = VR_SSL_CTX_new(VR_TLS_client_method()); cctx = VR_SSL_CONF_CTX_new(); VR_SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_CLIENT); VR_SSL_CONF_CTX_set_flags(cctx, SSL_CONF_FLAG_FILE); VR_SSL_CONF_CTX_set_ssl_ctx(cctx, ctx); for (i = 0; i < sk_CONF_VALUE_num(sect); i++) { cnf = sk_CONF_VALUE_value(sect, i); rv = VR_SSL_CONF_cmd(cctx, cnf->name, cnf->value); if (rv > 0) continue; if (rv != -2) { fprintf(stderr, "Error processing %s = %s\n", cnf->name, cnf->value); VR_ERR_print_errors_fp(stderr); goto end; } if (strcmp(cnf->name, "Connect") == 0) { connect_str = cnf->value; } else { fprintf(stderr, "Unknown configuration option %s\n", cnf->name); goto end; } } if (!VR_SSL_CONF_CTX_finish(cctx)) { fprintf(stderr, "Finish error\n"); VR_ERR_print_errors_fp(stderr); goto end; } /* * We'd normally set some stuff like the verify paths and * mode here * because as things stand this will connect to * any server whose * certificate is signed by any CA. */ sbio = VR_BIO_new_ssl_connect(ctx); VR_BIO_get_ssl(sbio, &ssl); if (!ssl) { fprintf(stderr, "Can't locate SSL pointer\n"); goto end; } /* Don't want any retries */ SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY); /* We might want to do other things with ssl here */ BIO_set_conn_hostname(sbio, connect_str); out = VR_BIO_new_fp(stdout, BIO_NOCLOSE); if (BIO_do_connect(sbio) <= 0) { fprintf(stderr, "Error connecting to server\n"); VR_ERR_print_errors_fp(stderr); goto end; } if (VR_BIO_do_handshake(sbio) <= 0) { fprintf(stderr, "Error establishing SSL connection\n"); VR_ERR_print_errors_fp(stderr); goto end; } /* Could examine ssl here to get connection info */ VR_BIO_puts(sbio, "GET / HTTP/1.0\n\n"); for (;;) { len = VR_BIO_read(sbio, tmpbuf, 1024); if (len <= 0) break; VR_BIO_write(out, tmpbuf, len); } end: VR_SSL_CONF_CTX_free(cctx); VR_BIO_free_all(sbio); VR_BIO_free(out); VR_NCONF_free(conf); return 0; }
the_stack_data/18671.c
// SPDX-FileCopyrightText: The Predator authors // // SPDX-License-Identifier: GPL-3.0-only extern void __VERIFIER_error() __attribute__ ((__noreturn__)); #include <stdlib.h> extern int __VERIFIER_nondet_int(void); struct node { int value; struct node *next; }; struct list { struct node *slist; struct list *next; }; struct iterator { struct list *list; struct node *node; }; int main() { struct list *data = NULL; int c = 0; // ------------------------------------------------------------------------ // seq_read(&data); // static void seq_read(struct list **data) { while (c < 2 && __VERIFIER_nondet_int()) // seq_insert(data, value); // static void seq_insert(struct list **data, int value) { struct node *node = malloc(sizeof *node); if (!node) abort(); c++; node->next = NULL; node->value = __VERIFIER_nondet_int(); struct list *item = malloc(sizeof *item); if (!item) abort(); item->slist = node; item->next = data; data = item; } } // ------------------------------------------------------------------------ // seq_write(data); // static void seq_write(struct list *data) { struct iterator iter; // setup_iterator(&iter, data); // static void setup_iterator(struct iterator *iter, struct list *list) { struct list *list = data; if ((iter.list = list)) iter.node = list->slist; } struct node *node; // node = get_next(&iter) // static struct node* get_next(struct iterator *iter) { if (!iter.list) node = NULL; else { struct node *current = iter.node; if ((iter.node = current->next)) node = current; else { if ((iter.list = iter.list->next)) iter.node = iter.list->slist; node = current; } } } while ((node)) { // node = get_next(&iter) // static struct node* get_next(struct iterator *iter) { if (!iter.list) node = NULL; else { struct node *current = iter.node; if ((iter.node = current->next)) node = current; else { if ((iter.list = iter.list->next)) iter.node = iter.list->slist; node = current; } } } } } // ------------------------------------------------------------------------ // seq_sort(&data); // static void seq_sort(struct list **data) { struct list *list = data; // do O(log N) iterations while (list && list->next) { // list = seq_sort_core(list); // static struct list* seq_sort_core(struct list *data) struct list *dst = NULL; while (list) { struct list *next = list->next; if (!next) { // take any odd/even padding as it is list->next = dst; dst = list; break; } // ........................................................................... // take the current sub-list and the next one and merge them into one // merge_pair(&list->slist, list->slist, next->slist); // static void merge_pair(struct node **dst, // struct node *sub1, // struct node *sub2) { struct node **dst = &list->slist; struct node *sub1 = list->slist; struct node *sub2 = next->slist; // merge two sorted sub-lists into one while (sub1 || sub2) { // if (!sub2 || (sub1 && sub1->value < sub2->value)) // merge_single_node(&dst, &sub1); // else // merge_single_node(&dst, &sub2); // static void merge_single_node(struct node ***dst, // struct node **data) struct node ***pdst = &dst; struct node **pdata; // if (!sub2 || (sub1 && sub1->value < sub2->value)) if (!sub2 || (sub1 && __VERIFIER_nondet_int())) pdata = &sub1; else pdata = &sub2; // merge_single_node(&dst, &sub1); // pick up the current item and jump to the next one struct node *node = *pdata; *pdata = node->next; node->next = NULL; // insert the item into dst and move cursor **pdst = node; *pdst = &node->next; } } // ........................................................................... list->next = dst; dst = list; // free the just processed sub-list and jump to the next pair list = next->next; free(next); } list = dst; } data = list; } // ------------------------------------------------------------------------ // seq_write(data); // static void seq_write(struct list *data) { struct iterator iter; // setup_iterator(&iter, data); // static void setup_iterator(struct iterator *iter, struct list *list) { struct list *list = data; if ((iter.list = list)) iter.node = list->slist; } struct node *node; // node = get_next(&iter) // static struct node* get_next(struct iterator *iter) { if (!iter.list) node = NULL; else { struct node *current = iter.node; if ((iter.node = current->next)) node = current; else { if ((iter.list = iter.list->next)) iter.node = iter.list->slist; node = current; } } } while ((node)) { // node = get_next(&iter) // static struct node* get_next(struct iterator *iter) { if (!iter.list) node = NULL; else { struct node *current = iter.node; if ((iter.node = current->next)) node = current; else { if ((iter.list = iter.list->next)) iter.node = iter.list->slist; node = current; } } } } } // ------------------------------------------------------------------------ // seq_destroy(data); // static void seq_destroy(struct list *data) { while (data) { struct list *next = data->next; struct node *node = data->slist; while (node) { struct node *snext = node->next; free(node); node = snext; } free(data); data = next; } } // ------------------------------------------------------------------------ return 0; }
the_stack_data/137486.c
#include <stdio.h> long long int goal,step=0; void hanoi(int n,char A,char B,char C) { if(step<0)return; if(n==1) printf("move %d from %c to %c\n",n,A,C); else{ long long int temp=1; temp<<=(n-1); if(step+temp>goal) hanoi(n-1,A,C,B); else if(step+temp==goal) printf("move %d from %c to %c\n",n,A,C); else{ step+=temp; hanoi(n-1,B,A,C); } } } int main(){ int n; while(scanf("%d%lld",&n,&goal)!=EOF){ step=0; hanoi(n,'1','2','3'); } } /*#include <stdio.h> long long int step; void move(int i , char x , char y) { static long long int c=0; ++c; if(step==c){ printf("move %d from %c to %c",i,x,y); step=-1; } } void hanoi(int i,char A,char B,char C) { if(step<0)return; if(i==1) move(i,A,C); else{ hanoi(i-1,A,C,B); move(i,A,C); hanoi(i-1,B,A,C); } } int main(){ int n; scanf("%d%lld",&n,&step); hanoi(n,'1','2','3'); }*/
the_stack_data/590764.c
#include <sys/stat.h> #include <stdio.h> int stat(const char *filename, struct stat *buf) { fprintf(stderr, "stat: not implemented\n"); return -1; }
the_stack_data/190767196.c
// WARNING: ODEBUG bug in free_tcf // https://syzkaller.appspot.com/bug?id=198cce0d8a18b97ad2469ab39f891510941f28ed // status:open // 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> #define BITMASK(bf_off, bf_len) (((1ull << (bf_len)) - 1) << (bf_off)) #define STORE_BY_BITMASK(type, htobe, addr, val, bf_off, bf_len) \ *(type*)(addr) = \ htobe((htobe(*(type*)(addr)) & ~BITMASK((bf_off), (bf_len))) | \ (((type)(val) << (bf_off)) & BITMASK((bf_off), (bf_len)))) uint64_t r[1] = {0xffffffffffffffff}; int main(void) { syscall(__NR_mmap, 0x20000000ul, 0x1000000ul, 3ul, 0x32ul, -1, 0); intptr_t res = 0; res = syscall(__NR_socket, 0x10ul, 0x80002ul, 0); if (res != -1) r[0] = res; *(uint64_t*)0x20002980 = 0; *(uint32_t*)0x20002988 = 0; *(uint64_t*)0x20002990 = 0x20002940; *(uint64_t*)0x20002940 = 0x20000000; *(uint32_t*)0x20000000 = 0x58; *(uint16_t*)0x20000004 = 0x30; *(uint16_t*)0x20000006 = 0x53b; *(uint32_t*)0x20000008 = 0; *(uint32_t*)0x2000000c = 0; *(uint8_t*)0x20000010 = 0; *(uint8_t*)0x20000011 = 0; *(uint16_t*)0x20000012 = 0; *(uint16_t*)0x20000014 = 0x44; *(uint16_t*)0x20000016 = 1; *(uint16_t*)0x20000018 = 0x40; STORE_BY_BITMASK(uint16_t, , 0x2000001a, 1, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000001b, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000001b, 0, 7, 1); *(uint16_t*)0x2000001c = 0xb; *(uint16_t*)0x2000001e = 1; memcpy((void*)0x20000020, "sample\000", 7); *(uint16_t*)0x20000028 = 0x2c; STORE_BY_BITMASK(uint16_t, , 0x2000002a, 2, 0, 14); STORE_BY_BITMASK(uint16_t, , 0x2000002b, 0, 6, 1); STORE_BY_BITMASK(uint16_t, , 0x2000002b, 1, 7, 1); *(uint16_t*)0x2000002c = 0x18; *(uint16_t*)0x2000002e = 2; *(uint32_t*)0x20000030 = 0; *(uint32_t*)0x20000034 = 0; *(uint32_t*)0x20000038 = 0x3f000000; *(uint32_t*)0x2000003c = 0; *(uint32_t*)0x20000040 = 0; *(uint16_t*)0x20000044 = 8; *(uint16_t*)0x20000046 = 3; *(uint32_t*)0x20000048 = 0; *(uint16_t*)0x2000004c = 8; *(uint16_t*)0x2000004e = 5; *(uint32_t*)0x20000050 = 0; *(uint16_t*)0x20000054 = 4; *(uint16_t*)0x20000056 = 6; *(uint64_t*)0x20002948 = 0x58; *(uint64_t*)0x20002998 = 1; *(uint64_t*)0x200029a0 = 0; *(uint64_t*)0x200029a8 = 0; *(uint32_t*)0x200029b0 = 0; syscall(__NR_sendmsg, r[0], 0x20002980ul, 0ul); return 0; }
the_stack_data/129642.c
/* Description: This program is an initial definition of my implementation of the "Ant Colony" algorithm to solve the "Travelling Salesman Problem" Author: Georgios Evangelou (1046900) Year: 5 Parallel Programming in Machine Learning Problems Electrical and Computer Engineering Department, University of Patras System Specifications: CPU: AMD Ryzen 2600 (6 cores/12 threads, @3.8 GHz, 6786.23 bogomips) GPU: Nvidia GTX 1050 (dual-fan, overclocked) RAM: 8GB (dual-channel, @2666 MHz) Version Notes: Compiles/Runs/Debugs with: gcc tsp_ant01.c -o tsp_ant01 -lm -O3 -fopt-info -pg && time ./tsp_ant01 && gprof ./tsp_ant01 Runs too slow (cannot even test for 100.000 cities) but produces seemingly correct results (maybe better than any other previous solution method) Needs: ~08 seconds to find optimal path for N=50 cities for ANTS=100 and REPETITIONS=20 with all optimizations listed below */ // **************************************************************************************************************** #pragma GCC optimize("O3","unroll-loops","omit-frame-pointer","inline") //Apply O3 and extra optimizations #pragma GCC option("arch=native","tune=native","no-zero-upper") //Adapt to the current system #pragma GCC target("avx") //Enable AVX // **************************************************************************************************************** #include "stdio.h" #include "stdlib.h" #include "math.h" // **************************************************************************************************************** #define N 50 #define Nx 1000 #define Ny 1000 #define nonExist -999999 #define ALPHA 0.50 //0.50 // Affects pherormone dependency #define BETA 0.10 //0.50 // Affects path length dependency #define GAMMA 1.00 #define RHO 0.50 //0.50 #define TAU_INITIAL_VALUE 0.50 //0.50 #define ANTS 100 #define REPETITIONS 20 #define DEBUG 0 // **************************************************************************************************************** float CitiesX[N]; float CitiesY[N]; double CalculatedDistances[N][N]; double TauValues[N][N]; // Pherormone values between all city pairs double DistanceTravelled[ANTS]; // The total length of each ant's path int AntsPaths[ANTS][N+1]; // The paths of all ants // **************************************************************************************************************** // Checks if a city is already in ants <ant> path (until path[currentPathLength]) // **************************************************************************************************************** int IsInAntsPath(int city, int currentPathLength, int ant) { for (int i=0; i<currentPathLength; i++) if (AntsPaths[ant][i] == city) return 1; return 0; } // **************************************************************************************************************** // Prints an int array // **************************************************************************************************************** void PrintIntArray(int ARRAY[], const int SIZE) { for (int i=0; i<SIZE; i++) { printf("%3d ", ARRAY[i]); } printf("\n"); } // **************************************************************************************************************** // Find min of an double array // **************************************************************************************************************** double MinOfDoubleArray(double ARRAY[], const int SIZE) { double min = INFINITY; for (int i=0; i<SIZE; i++) if (ARRAY[i] < min) min = ARRAY[i]; return min; } // **************************************************************************************************************** // Prints the cities' positions // **************************************************************************************************************** void PrintCities() { printf("> The cities are:\n"); for (int i=0; i<N; i++) { printf(">> City: %6d X:%5.2f Y:%5.2f\n", i, CitiesX[i], CitiesY[i] ); } printf("\n"); } // **************************************************************************************************************** // Prints the travelling sequence of given path // **************************************************************************************************************** void PrintPath_2(int Path[N+1]) { printf("> The path is:\n"); for (int i=0; i<N+1; i++) { printf(">> %d ", Path[i]); } printf("\n"); } // **************************************************************************************************************** // Visually maps the cities' positions // **************************************************************************************************************** void MapCities() { int Map[Ny+1][Nx+1]; printf("Now creating a visual map of the cities...\n"); for (int i=0; i<Nx+1; i++) for (int j=0; j<Ny+1; j++) Map[j][i] = (float) nonExist; //printf("Quantized coordinates are:\n"); for (int c=0; c<N; c++) { int x = (int) CitiesX[c] ; int y = (int) CitiesY[c] ; //printf(" City:%d y=%d and x=%d\n",c,y,x); if (Map[y][x] == nonExist) Map[y][x] = c; else Map[y][x] = -1; } printf("This is the cities' map:\n"); printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); for (int y=0; y<Ny+1; y++){ for (int x=0; x<Nx+1; x++) printf("%8d ", Map[y][x]); printf("\n"); } printf("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n"); printf("\n"); } // **************************************************************************************************************** // Finds Euclidean distance between two cities // **************************************************************************************************************** double Distance(int A, int B) { return (double) sqrt( (CitiesX[A]-CitiesX[B])*(CitiesX[A]-CitiesX[B]) + (CitiesY[A]-CitiesY[B])*(CitiesY[A]-CitiesY[B]) ); } // **************************************************************************************************************** // Finds Eucleidian distance in a given path // **************************************************************************************************************** double PathDistance_2(int Path[N+1]) { double totDist = 0.0; for (int i=0; i<N; i++) { totDist += Distance(Path[i], Path[i+1]); } totDist += Distance(Path[N], Path[0]); return totDist; } // **************************************************************************************************************** // Calculates the possibility that an ant <ant> located at city I travels to city J // **************************************************************************************************************** double Possibility(int ant, int I, int J, int ant_path_length) { double summation = 0.0; for (int j=0; j<N; j++) if (!IsInAntsPath(j, ant_path_length, ant)) summation += pow(TauValues[I][j],ALPHA) * pow(CalculatedDistances[I][j],-BETA); if (isnan(summation)) {printf("\nFATAL ERROR: <summation> IS NAN\nTHE PROGRAM WILL BE TERMINATED.\n"); exit(1);} return (pow(TauValues[I][J],ALPHA) * pow(CalculatedDistances[I][J],-BETA) / summation); } // **************************************************************************************************************** // Calculates new Tau of path between cities <I> and <J> // **************************************************************************************************************** double CalculateNewTau(int I, int J) { if (DEBUG>1) printf("Calculating new tau value between %d and %d...\n", I, J); double DeltaTau = 0.0; // For each ant for (int ant=0; ant<ANTS; ant++) { if (DEBUG>1) printf("\r> Progress: %.2f%%", 100*(ant+1)/((float)ANTS)); // ...run through its path for (int city=0; city<N; city++) { // ...and check if path from <I> to <J> was used if ( ((AntsPaths[ant][city]==I)||(AntsPaths[ant][city]==J)) && ((AntsPaths[ant][city+1]==I)||(AntsPaths[ant][city+1]==J)) ) { DeltaTau += 1.0 / DistanceTravelled[ant]; //printf("Delta tau is: %.10lf\n", DeltaTau); break; } } } if (DEBUG==1) printf("Delta tau is: %.10lf\n", DeltaTau); if (DEBUG>1) printf(" ===> Completed.\n"); return ( ((1-RHO) * TauValues[I][J]) + (GAMMA*DeltaTau) ); } // **************************************************************************************************************** // Calculates new Tau values of all pairs of cities // **************************************************************************************************************** void CalculateNewTaus() { if (DEBUG) printf("Now calculating new tau values of all pairs of cities...\n"); for (int i=0; i<N; i++) { if (DEBUG) printf("\r> Progress: %.2f%%", 100*(i+1)/((float)N)); for (int j=i+1; j<N; j++) { double newTau = CalculateNewTau(i, j); TauValues[i][j] = newTau; TauValues[j][i] = newTau; } } if (DEBUG) printf(" ===> Completed.\n"); } // **************************************************************************************************************** // Initializes the Tau values // **************************************************************************************************************** void InitializeTauValues() { printf("Now initializing the tau values...\n"); for (int i=0; i<N; i++) { printf("\r> Progress: %.2f%%", 100*(i+1)/((float)N)); for (int j=0; j<N; j++) { TauValues[i][j] = TAU_INITIAL_VALUE; //(float) rand() / RAND_MAX; } } printf(" ===> Completed.\n"); } // **************************************************************************************************************** // Finds all Eucleidian distances between all pairs of cities // **************************************************************************************************************** void CalculateAllDistances() { printf("Now calculating distances between all pairs of cities...\n"); for (int i=0; i<N; i++) { printf("\r> Progress: %.2f%%", 100*(i+1)/((float)N)); for (int j=i+1; j<N; j++) { double temp = Distance(i, j); CalculatedDistances[i][j] = temp; CalculatedDistances[j][i] = temp; } } printf(" ===> Completed.\n"); } // **************************************************************************************************************** // Initializes the cities' positions // **************************************************************************************************************** void SetCities() { printf("Now initializing the positions of the cities...\n"); for (int i=0; i<N; i++) { CitiesX[i] = Nx * (float) rand() / RAND_MAX; CitiesY[i] = Ny * (float) rand() / RAND_MAX; } } // **************************************************************************************************************** // Ant <ant> starts finding a path, starting from <starting_city> // **************************************************************************************************************** void AntRun(int ant, int starting_city) { if (DEBUG) printf("> ANT %d IS RUNNING...\n", ant); double totDist = 0.0; int visited_cities = 1, current_city = starting_city; AntsPaths[ant][0] = starting_city; AntsPaths[ant][N] = starting_city; do { if (DEBUG) printf("\r>> Progress: %.2f%%", 100*(visited_cities+1)/((float) N) ); double highest_decision_value = 0.0; int next_city = -1; // For every city set a decision value and choose the one with the highest for (int i=0; i<N; i++) { if (IsInAntsPath(i, visited_cities, ant)) continue; //...if we are trying to access current city or a visited one, go to next double random_number = 100000.0 * rand() / ((double) RAND_MAX); // random_number = (0, 1) double decision_value = random_number * Possibility(ant, current_city, i, visited_cities); if (DEBUG>1) printf(">>> test-city %d, random number: %.5lf, decision value: %.20lf\n", i, random_number, decision_value); if (decision_value > highest_decision_value) { next_city = i; highest_decision_value = decision_value; } } AntsPaths[ant][visited_cities++] = next_city; //Add decided city to current ant's path totDist += CalculatedDistances[current_city][next_city]; //...add the distance to it current_city = next_city; //...and make it the current city } while (visited_cities < N); totDist += CalculatedDistances[current_city][starting_city]; DistanceTravelled[ant] = totDist; if (DEBUG) printf(" ===> Finished\n"); } // **************************************************************************************************************** // The main program // **************************************************************************************************************** int main( int argc, const char* argv[] ) { printf("------------------------------------------------------------------------------\n"); printf("This program searches for the optimal traveling distance between %d cities,\n", N); printf("spanning in an area of X=(0,%d) and Y=(0,%d)\n", Nx, Ny); printf("------------------------------------------------------------------------------\n"); srand(1046900); SetCities(); CalculateAllDistances(); InitializeTauValues(); int repetitions = 0; do { //printf("\n===============================================================\n"); for (int ant=0; ant<ANTS; ant++) { int starting_city = (int) ((double)N*rand()/((double) RAND_MAX) ); AntRun(ant, starting_city); if (DEBUG>1) printf(">> Ants path was:\n>>> "); if (DEBUG>1) PrintIntArray(AntsPaths[ant], N+1); } //printf("\n"); CalculateNewTaus(); //printf("-----------------------------------------------------------------\n"); printf("REPETITION: %9d ESTIMATED_OPTIMAL_PATH_LENGTH: %8.3lf\n", ++repetitions, MinOfDoubleArray(DistanceTravelled, ANTS)); //printf("=================================================================\n\n"); } while (repetitions < REPETITIONS); printf("\nCalculations completed. Results:\n"); printf("Optimal path distance found is: %.2lf\n", MinOfDoubleArray(DistanceTravelled, ANTS)); //printf("Estimated Ant0 distance found is: %.2lf\n", DistanceTravelled[0]); //printf("Real Ant0 distance found is: %.2lf\n", PathDistance_2(AntsPaths[0])); return 0 ; }
the_stack_data/148577295.c
/* ** SQLCipher ** http://sqlcipher.net ** ** Copyright (c) 2008 - 2013, ZETETIC LLC ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without ** modification, are permitted provided that the following conditions are met: ** * Redistributions of source code must retain the above copyright ** notice, this list of conditions and the following disclaimer. ** * Redistributions in binary form must reproduce the above copyright ** notice, this list of conditions and the following disclaimer in the ** documentation and/or other materials provided with the distribution. ** * Neither the name of the ZETETIC LLC 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 ZETETIC LLC ''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 ZETETIC LLC 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. ** */ /* BEGIN SQLCIPHER */ #ifdef SQLITE_HAS_CODEC #ifdef SQLCIPHER_CRYPTO_OPENSSL #include "sqliteInt.h" #include "crypto.h" #include "sqlcipher.h" #include <openssl/rand.h> #include <openssl/evp.h> #include <openssl/hmac.h> #include <openssl/err.h> typedef struct { EVP_CIPHER *evp_cipher; } openssl_ctx; static unsigned int openssl_external_init = 0; static unsigned int openssl_init_count = 0; static sqlite3_mutex* openssl_rand_mutex = NULL; #if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) static HMAC_CTX *HMAC_CTX_new(void) { HMAC_CTX *ctx = OPENSSL_malloc(sizeof(*ctx)); if (ctx != NULL) { HMAC_CTX_init(ctx); } return ctx; } /* Per 1.1.0 (https://wiki.openssl.org/index.php/1.1_API_Changes) HMAC_CTX_free should call HMAC_CTX_cleanup, then EVP_MD_CTX_Cleanup. HMAC_CTX_cleanup internally calls EVP_MD_CTX_cleanup so these calls are not needed. */ static void HMAC_CTX_free(HMAC_CTX *ctx) { if (ctx != NULL) { HMAC_CTX_cleanup(ctx); OPENSSL_free(ctx); } } #endif static int sqlcipher_openssl_add_random(void *ctx, void *buffer, int length) { #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND CODEC_TRACE_MUTEX("sqlcipher_openssl_add_random: entering openssl_rand_mutex %p\n", openssl_rand_mutex); sqlite3_mutex_enter(openssl_rand_mutex); CODEC_TRACE_MUTEX("sqlcipher_openssl_add_random: entered openssl_rand_mutex %p\n", openssl_rand_mutex); #endif RAND_add(buffer, length, 0); #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND CODEC_TRACE_MUTEX("sqlcipher_openssl_add_random: leaving openssl_rand_mutex %p\n", openssl_rand_mutex); sqlite3_mutex_leave(openssl_rand_mutex); CODEC_TRACE_MUTEX("sqlcipher_openssl_add_random: left openssl_rand_mutex %p\n", openssl_rand_mutex); #endif return SQLITE_OK; } #define OPENSSL_CIPHER "sm4-cbc" /* activate and initialize sqlcipher. Most importantly, this will automatically intialize OpenSSL's EVP system if it hasn't already be externally. Note that this function may be called multiple times as new codecs are intiialized. Thus it performs some basic counting to ensure that only the last and final sqlcipher_openssl_deactivate() will free the EVP structures. */ static int sqlcipher_openssl_activate(void *ctx) { /* initialize openssl and increment the internal init counter but only if it hasn't been initalized outside of SQLCipher by this program e.g. on startup */ CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: entering static master mutex"); sqlite3_mutex_enter(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: entered static master mutex"); if(openssl_init_count == 0 && EVP_get_cipherbyname(OPENSSL_CIPHER) != NULL) { /* if openssl has not yet been initialized by this library, but a call to get_cipherbyname works, then the openssl library has been initialized externally already. */ openssl_external_init = 1; } #ifdef SQLCIPHER_FIPS if(!FIPS_mode()){ if(!FIPS_mode_set(1)){ ERR_load_crypto_strings(); ERR_print_errors_fp(stderr); } } #endif if(openssl_init_count == 0 && openssl_external_init == 0) { /* if the library was not externally initialized, then should be now */ #if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) OpenSSL_add_all_algorithms(); #endif } #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND if(openssl_rand_mutex == NULL) { /* allocate a mutex to guard against concurrent calls to RAND_bytes() */ CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: allocating openssl_rand_mutex"); openssl_rand_mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_FAST); CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: allocated openssl_rand_mutex %p", openssl_rand_mutex); } #endif openssl_init_count++; CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: leaving static master mutex"); sqlite3_mutex_leave(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_openssl_activate: left static master mutex"); return SQLITE_OK; } /* deactivate SQLCipher, most imporantly decremeting the activation count and freeing the EVP structures on the final deactivation to ensure that OpenSSL memory is cleaned up */ static int sqlcipher_openssl_deactivate(void *ctx) { CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: entering static master mutex"); sqlite3_mutex_enter(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: entered static master mutex"); openssl_init_count--; if(openssl_init_count == 0) { if(openssl_external_init == 0) { /* if OpenSSL hasn't be initialized externally, and the counter reaches zero after it's decremented, release EVP memory Note: this code will only be reached if OpensSSL_add_all_algorithms() is called by SQLCipher internally. This should prevent SQLCipher from "cleaning up" openssl when it was initialized externally by the program */ #if (defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER < 0x10100000L) || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L) EVP_cleanup(); #endif } else { openssl_external_init = 0; } #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: freeing openssl_rand_mutex %p", openssl_rand_mutex); sqlite3_mutex_free(openssl_rand_mutex); CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: freed openssl_rand_mutex %p", openssl_rand_mutex); openssl_rand_mutex = NULL; #endif } CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: leaving static master mutex"); sqlite3_mutex_leave(sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER)); CODEC_TRACE_MUTEX("sqlcipher_openssl_deactivate: left static master mutex"); return SQLITE_OK; } static const char* sqlcipher_openssl_get_provider_name(void *ctx) { return "openssl"; } static const char* sqlcipher_openssl_get_provider_version(void *ctx) { return OPENSSL_VERSION_TEXT; } /* generate a defined number of random bytes */ static int sqlcipher_openssl_random (void *ctx, void *buffer, int length) { int rc = 0; /* concurrent calls to RAND_bytes can cause a crash under some openssl versions when a naive application doesn't use CRYPTO_set_locking_callback and CRYPTO_THREADID_set_callback to ensure openssl thread safety. This is simple workaround to prevent this common crash but a more proper solution is that applications setup platform-appropriate thread saftey in openssl externally */ #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND CODEC_TRACE_MUTEX("sqlcipher_openssl_random: entering openssl_rand_mutex %p", openssl_rand_mutex); sqlite3_mutex_enter(openssl_rand_mutex); CODEC_TRACE_MUTEX("sqlcipher_openssl_random: entered openssl_rand_mutex %p", openssl_rand_mutex); #endif rc = RAND_bytes((unsigned char *)buffer, length); #ifndef SQLCIPHER_OPENSSL_NO_MUTEX_RAND CODEC_TRACE_MUTEX("sqlcipher_openssl_random: leaving openssl_rand_mutex %p", openssl_rand_mutex); sqlite3_mutex_leave(openssl_rand_mutex); CODEC_TRACE_MUTEX("sqlcipher_openssl_random: left openssl_rand_mutex %p", openssl_rand_mutex); #endif return (rc == 1) ? SQLITE_OK : SQLITE_ERROR; } static int sqlcipher_openssl_hmac(void *ctx, int algorithm, unsigned char *hmac_key, int key_sz, unsigned char *in, int in_sz, unsigned char *in2, int in2_sz, unsigned char *out) { unsigned int outlen; int rc = SQLITE_OK; HMAC_CTX* hctx = NULL; if(in == NULL) goto error; hctx = HMAC_CTX_new(); if(hctx == NULL) goto error; switch(algorithm) { case SQLCIPHER_HMAC_SHA1: if(!HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha1(), NULL)) goto error; break; case SQLCIPHER_HMAC_SHA256: if(!HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha256(), NULL)) goto error; break; case SQLCIPHER_HMAC_SHA512: if(!HMAC_Init_ex(hctx, hmac_key, key_sz, EVP_sha512(), NULL)) goto error; break; default: goto error; } if(!HMAC_Update(hctx, in, in_sz)) goto error; if(in2 != NULL) { if(!HMAC_Update(hctx, in2, in2_sz)) goto error; } if(!HMAC_Final(hctx, out, &outlen)) goto error; goto cleanup; error: rc = SQLITE_ERROR; cleanup: if(hctx) HMAC_CTX_free(hctx); return rc; } static int sqlcipher_openssl_kdf(void *ctx, int algorithm, const unsigned char *pass, int pass_sz, unsigned char* salt, int salt_sz, int workfactor, int key_sz, unsigned char *key) { int rc = SQLITE_OK; switch(algorithm) { case SQLCIPHER_HMAC_SHA1: if(!PKCS5_PBKDF2_HMAC((const char *)pass, pass_sz, salt, salt_sz, workfactor, EVP_sha1(), key_sz, key)) goto error; break; case SQLCIPHER_HMAC_SHA256: if(!PKCS5_PBKDF2_HMAC((const char *)pass, pass_sz, salt, salt_sz, workfactor, EVP_sha256(), key_sz, key)) goto error; break; case SQLCIPHER_HMAC_SHA512: if(!PKCS5_PBKDF2_HMAC((const char *)pass, pass_sz, salt, salt_sz, workfactor, EVP_sha512(), key_sz, key)) goto error; break; default: return SQLITE_ERROR; } goto cleanup; error: rc = SQLITE_ERROR; cleanup: return rc; } static int sqlcipher_openssl_cipher(void *ctx, int mode, unsigned char *key, int key_sz, unsigned char *iv, unsigned char *in, int in_sz, unsigned char *out) { int tmp_csz, csz, rc = SQLITE_OK; EVP_CIPHER_CTX* ectx = EVP_CIPHER_CTX_new(); if(ectx == NULL) goto error; if(!EVP_CipherInit_ex(ectx, ((openssl_ctx *)ctx)->evp_cipher, NULL, NULL, NULL, mode)) goto error; if(!EVP_CIPHER_CTX_set_padding(ectx, 0)) goto error; /* no padding */ if(!EVP_CipherInit_ex(ectx, NULL, NULL, key, iv, mode)) goto error; if(!EVP_CipherUpdate(ectx, out, &tmp_csz, in, in_sz)) goto error; csz = tmp_csz; out += tmp_csz; if(!EVP_CipherFinal_ex(ectx, out, &tmp_csz)) goto error; csz += tmp_csz; assert(in_sz == csz); goto cleanup; error: rc = SQLITE_ERROR; cleanup: if(ectx) EVP_CIPHER_CTX_free(ectx); return rc; } static const char* sqlcipher_openssl_get_cipher(void *ctx) { return EVP_CIPHER_name(((openssl_ctx *)ctx)->evp_cipher); } static int sqlcipher_openssl_get_key_sz(void *ctx) { return EVP_CIPHER_key_length(((openssl_ctx *)ctx)->evp_cipher); } static int sqlcipher_openssl_get_iv_sz(void *ctx) { return EVP_CIPHER_iv_length(((openssl_ctx *)ctx)->evp_cipher); } static int sqlcipher_openssl_get_block_sz(void *ctx) { return EVP_CIPHER_block_size(((openssl_ctx *)ctx)->evp_cipher); } static int sqlcipher_openssl_get_hmac_sz(void *ctx, int algorithm) { switch(algorithm) { case SQLCIPHER_HMAC_SHA1: return EVP_MD_size(EVP_sha1()); break; case SQLCIPHER_HMAC_SHA256: return EVP_MD_size(EVP_sha256()); break; case SQLCIPHER_HMAC_SHA512: return EVP_MD_size(EVP_sha512()); break; default: return 0; } } static int sqlcipher_openssl_ctx_copy(void *target_ctx, void *source_ctx) { memcpy(target_ctx, source_ctx, sizeof(openssl_ctx)); return SQLITE_OK; } static int sqlcipher_openssl_ctx_cmp(void *c1, void *c2) { return ((openssl_ctx *)c1)->evp_cipher == ((openssl_ctx *)c2)->evp_cipher; } static int sqlcipher_openssl_ctx_init(void **ctx) { openssl_ctx *o_ctx; *ctx = sqlcipher_malloc(sizeof(openssl_ctx)); if(*ctx == NULL) return SQLITE_NOMEM; sqlcipher_openssl_activate(*ctx); o_ctx = (openssl_ctx *)*ctx; o_ctx->evp_cipher = (EVP_CIPHER *) EVP_get_cipherbyname(OPENSSL_CIPHER); return o_ctx->evp_cipher != NULL ? SQLITE_OK : SQLITE_ERROR; } static int sqlcipher_openssl_ctx_free(void **ctx) { sqlcipher_openssl_deactivate(*ctx); sqlcipher_free(*ctx, sizeof(openssl_ctx)); return SQLITE_OK; } static int sqlcipher_openssl_fips_status(void *ctx) { #ifdef SQLCIPHER_FIPS return FIPS_mode(); #else return 0; #endif } int sqlcipher_openssl_setup(sqlcipher_provider *p) { p->activate = sqlcipher_openssl_activate; p->deactivate = sqlcipher_openssl_deactivate; p->get_provider_name = sqlcipher_openssl_get_provider_name; p->random = sqlcipher_openssl_random; p->hmac = sqlcipher_openssl_hmac; p->kdf = sqlcipher_openssl_kdf; p->cipher = sqlcipher_openssl_cipher; p->get_cipher = sqlcipher_openssl_get_cipher; p->get_key_sz = sqlcipher_openssl_get_key_sz; p->get_iv_sz = sqlcipher_openssl_get_iv_sz; p->get_block_sz = sqlcipher_openssl_get_block_sz; p->get_hmac_sz = sqlcipher_openssl_get_hmac_sz; p->ctx_copy = sqlcipher_openssl_ctx_copy; p->ctx_cmp = sqlcipher_openssl_ctx_cmp; p->ctx_init = sqlcipher_openssl_ctx_init; p->ctx_free = sqlcipher_openssl_ctx_free; p->add_random = sqlcipher_openssl_add_random; p->fips_status = sqlcipher_openssl_fips_status; p->get_provider_version = sqlcipher_openssl_get_provider_version; return SQLITE_OK; } #endif #endif /* END SQLCIPHER */
the_stack_data/22013979.c
extern int __VERIFIER_nondet_int(void); void f(int n, int d, int log, int firstMultiply) { if (! (n >= 1)) { return; } if (! (d >= 0)) { return; } if (d < 2) { log = 0; firstMultiply = d; while (d <= n) { log = log + 1; d = d * firstMultiply; } } else { ; } } int main() { int v1 = __VERIFIER_nondet_int(); int v2 = __VERIFIER_nondet_int(); int v3 = __VERIFIER_nondet_int(); int v4 = __VERIFIER_nondet_int(); f(v1, v2, v3, v4); return 0; }
the_stack_data/7951486.c
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* main.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: andrmart's group <[email protected] +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2021/06/26 09:28:24 by andrmart's group #+# #+# */ /* Updated: 2021/06/27 14:30:34 by dpoveda- ### ########.fr */ /* */ /* ************************************************************************** */ #include <unistd.h> void ft_putchar(char c); void ft_checkpost_and_putchar(int c, int r, int i, int j) { if (j == 0 && i == 0) ft_putchar('A'); else if (j == c - 1 && i == 0) ft_putchar('C'); else if (j == 0 && i == r - 1) ft_putchar('A'); else if (j == c - 1 && i == r - 1) ft_putchar('C'); else if (i == 0) ft_putchar('B'); else if (i == r - 1) ft_putchar('B'); else if (j == 0) ft_putchar('B'); else if (j == c - 1) ft_putchar('B'); else ft_putchar(' '); } void rush(int c, int r) { int i; int j; i = 0; while (i < r) { j = 0; while (j < c) { ft_checkpost_and_putchar(c, r, i, j); j++; } ft_putchar('\n'); i++; } }
the_stack_data/15762008.c
int main() { int a = 20; int b = 3; return a == b; }
the_stack_data/857207.c
// RUN: %clang_cc1 -fsyntax-only -verify -triple x86_64-linux %s #define EVAL_EXPR(testno, expr) int test##testno = sizeof(struct{char qq[expr];}); // <rdar://problem/10962435> EVAL_EXPR(1, ((char*)-1LL) + 1 == 0 ? 1 : -1) // expected-warning {{folded}} EVAL_EXPR(2, ((char*)-1LL) + 1 < (char*) -1 ? 1 : -1) // expected-warning {{folded}}
the_stack_data/11075567.c
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2019 Broadcom Inc. All rights reserved. * * File: tc_config.c * * Purpose: * * Functions: * bcm_common_ptp_primary_domain_get * bcm_common_ptp_primary_domain_set * bcm_common_ptp_transparent_clock_default_dataset_get * bcm_common_ptp_transparent_clock_port_dataset_get */ #if defined(INCLUDE_PTP) #include <soc/defs.h> #include <soc/drv.h> #include <bcm/ptp.h> #include <bcm_int/common/ptp.h> #include <bcm_int/ptp_common.h> #include <bcm/error.h> /* * Function: * bcm_common_ptp_primary_domain_get * Purpose: * Get primary domain member of a PTP transparent clock default dataset. * Parameters: * unit - (IN) Unit number. * ptp_id - (IN) PTP stack ID. * clock_num - (IN) PTP clock number. * primary_domain - (OUT) PTP transparent clock primary domain. * Returns: * BCM_E_XXX * Notes: * Ref. IEEE Std. 1588-2008, Chapters 8.3.2 and 15.5.3.9.1. */ int bcm_common_ptp_primary_domain_get( int unit, bcm_ptp_stack_id_t ptp_id, int clock_num, int *primary_domain) { int rv = BCM_E_UNAVAIL; uint8 resp[PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS]; int resp_len = PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS; bcm_ptp_port_identity_t portid; if (BCM_FAILURE(rv = _bcm_ptp_function_precheck(unit, ptp_id, clock_num, PTP_CLOCK_PORT_NUMBER_DEFAULT))) { return rv; } if (BCM_FAILURE(rv = bcm_common_ptp_clock_port_identity_get(unit, ptp_id, clock_num, PTP_IEEE1588_ALL_PORTS, &portid))) { return rv; } rv = _bcm_ptp_management_message_send(unit, ptp_id, clock_num, &portid, PTP_MGMTMSG_GET, PTP_MGMTMSG_ID_PRIMARY_DOMAIN, 0, 0, resp, &resp_len); if (rv == BCM_E_NONE) { /* * Parse response. * Octet 0 : Primary domain. * Octet 1 : Reserved. */ *primary_domain = (int8)resp[0]; } return rv; } /* * Function: * bcm_common_ptp_primary_domain_set * Purpose: * Set primary domain member of a PTP transparent clock default dataset. * Parameters: * unit - (IN) Unit number. * ptp_id - (IN) PTP stack ID. * clock_num - (IN) PTP clock number. * primary_domain - (IN) PTP transparent clock primary domain. * Returns: * BCM_E_XXX * Notes: * Ref. IEEE Std. 1588-2008, Chapters 8.3.2 and 15.5.3.9.1. */ int bcm_common_ptp_primary_domain_set( int unit, bcm_ptp_stack_id_t ptp_id, int clock_num, int primary_domain) { int rv = BCM_E_UNAVAIL; uint8 payload[PTP_MGMTMSG_PAYLOAD_MIN_SIZE_OCTETS] = {0}; uint8 resp[PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS]; int resp_len = PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS; bcm_ptp_port_identity_t portid; if (BCM_FAILURE(rv = _bcm_ptp_function_precheck(unit, ptp_id, clock_num, PTP_CLOCK_PORT_NUMBER_DEFAULT))) { return rv; } if (BCM_FAILURE(rv = bcm_common_ptp_clock_port_identity_get(unit, ptp_id, clock_num, PTP_IEEE1588_ALL_PORTS, &portid))) { return rv; } /* * Make payload. * Octet 0 : Primary domain. * Octet 1 : Reserved. */ payload[0] = (uint8)primary_domain; rv = _bcm_ptp_management_message_send(unit, ptp_id, clock_num, &portid, PTP_MGMTMSG_SET, PTP_MGMTMSG_ID_PRIMARY_DOMAIN, payload, PTP_MGMTMSG_PAYLOAD_MIN_SIZE_OCTETS, resp, &resp_len); return rv; } /* * Function: * bcm_common_ptp_transparent_clock_default_dataset_get * Purpose: * Get PTP Transparent clock default dataset * Parameters: * unit - (IN) Unit number. * ptp_id - (IN) PTP stack ID. * clock_num - (IN) PTP clock number. * dataset - (OUT) PTP transparent clock default dataset. * Returns: * BCM_E_XXX * Notes: * The transparent clock default dataset is relevant to PTP transparent * clocks. * Ref. IEEE Std. 1588-2008, Chapters 8.3.2 and 15.5.3.8.1. */ int bcm_common_ptp_transparent_clock_default_dataset_get( int unit, bcm_ptp_stack_id_t ptp_id, int clock_num, bcm_ptp_transparent_clock_default_dataset_t *dataset) { int rv = BCM_E_UNAVAIL; uint8 resp[PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS]; int resp_len = PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS; int i = 0; bcm_ptp_port_identity_t portid; if (BCM_FAILURE(rv = _bcm_ptp_function_precheck(unit, ptp_id, clock_num, PTP_CLOCK_PORT_NUMBER_DEFAULT))) { return rv; } if (BCM_FAILURE(rv = bcm_common_ptp_clock_port_identity_get(unit, ptp_id, clock_num, PTP_IEEE1588_ALL_PORTS, &portid))) { return rv; } rv = _bcm_ptp_management_message_send(unit, ptp_id, clock_num, &portid, PTP_MGMTMSG_GET, PTP_MGMTMSG_ID_TRANSPARENT_CLOCK_DEFAULT_DATASET, 0, 0, resp, &resp_len); if (rv == BCM_E_NONE) { /* * Parse response. * Octet 0...7 : Clock identity. * Octet 8...9 : Number of ports. * Octet 10 : Delay mechanism. * Octet 11 : Primary domain. */ i = 0; sal_memcpy(dataset->clock_identity, resp, sizeof(bcm_ptp_clock_identity_t)); i += sizeof(bcm_ptp_clock_identity_t); dataset->number_ports = _bcm_ptp_uint16_read(resp+i); i += 2; dataset->delay_mechanism = resp[i++]; dataset->primary_domain = resp[i]; } return rv; } /* * Function: * bcm_common_ptp_transparent_clock_port_dataset_get * Purpose: * Get PTP transparent clock port dataset. * Parameters: * unit - (IN) Unit number. * ptp_id - (IN) PTP stack ID. * clock_num - (IN) PTP clock number. * clock_port - (IN) PTP clock port number. * dataset - (OUT) PTP transparent clock port dataset. * Returns: * BCM_E_XXX * Notes: * The transparent clock port dataset is relevant to PTP transparent * clocks. * Ref. IEEE Std. 1588-2008, Chapters 8.3.3 and 15.5.3.10.1. */ int bcm_common_ptp_transparent_clock_port_dataset_get( int unit, bcm_ptp_stack_id_t ptp_id, int clock_num, uint16 clock_port, bcm_ptp_transparent_clock_port_dataset_t *dataset) { int rv = BCM_E_UNAVAIL; uint8 resp[PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS]; int resp_len = PTP_MGMTMSG_RESP_MAX_SIZE_OCTETS; int i = 0; bcm_ptp_port_identity_t portid; if (BCM_FAILURE(rv = _bcm_ptp_function_precheck(unit, ptp_id, clock_num, (uint32)clock_port))) { return rv; } if (BCM_FAILURE(rv = bcm_common_ptp_clock_port_identity_get(unit, ptp_id, clock_num, clock_port, &portid))) { return rv; } rv = _bcm_ptp_management_message_send(unit, ptp_id, clock_num, &portid, PTP_MGMTMSG_GET, PTP_MGMTMSG_ID_TRANSPARENT_CLOCK_PORT_DATASET, 0, 0, resp, &resp_len); if (rv == BCM_E_NONE) { /* * Parse response. * Octet 0...9 : PTP port identity. * Octet 10 : Faulty (FLT) Boolean. * |B7|B6|B5|B4|B3|B2|B1|B0| = |0|0|0|0|0|0|0|FLT| * Octet 11 : Log minimum peer delay request interval. * Octet 12...19 : Peer mean path delay (nanoseconds). */ i = 0; sal_memcpy(dataset->port_identity.clock_identity, resp, sizeof(bcm_ptp_clock_identity_t)); i += sizeof(bcm_ptp_clock_identity_t); dataset->port_identity.port_number = _bcm_ptp_uint16_read(resp+i); i += 2; dataset->faulty = (0x01 & resp[i++]); dataset->log_min_pdelay_req_interval = resp[i++]; dataset->peer_mean_path_delay = _bcm_ptp_uint64_read(resp+i); } return rv; } #endif /* defined(INCLUDE_PTP)*/
the_stack_data/979534.c
/* * ASN.1 data display code, copyright Peter Gutmann * * <[email protected]>, based on ASN.1 dump program by David Kemp, * with contributions from various people including Matthew Hamrick, Bruno * Couillard, Hallvard Furuseth, Geoff Thorpe, David Boyce, John Hughes, * 'Life is hard, and then you die', Hans-Olof Hermansson, Tor Rustad, * Kjetil Barvik, James Sweeny, Chris Ridd, David Lemley, John Tobey, James * Manger and several other people whose names I've misplaced. * * Available from http:www.cs.auckland.ac.nz/~pgut001/dumpasn1.c. Last * updated 9 March 2017 (version 20170309, if you prefer it that way). * To build under Windows, use 'cl /MD dumpasn1.c'. To build on OS390 or * z/OS, use '/bin/c89 -D OS390 -o dumpasn1 dumpasn1.c'. * * This code grew slowly over time without much design or planning, and with * extra features being tacked on as required. It's not representative of my * normal coding style, and should only be used as a debugging/diagnostic * tool and not in a production environment (I'm not sure how you'd use * it in production anyway, but felt I should point that out). cryptlib, * http:www.cs.auckland.ac.nz/~pgut001/cryptlib/, does a much better job of * checking ASN.1 than this does, since dumpasn1 is a display program written * to accept the widest possible range of input and not a compliance checker. * In other words it will bend over backwards to accept even invalid data, * since a common use for it is to try and locate encoding problems that lead * to invalid encoded data. While it will warn about some types of common * errors, the fact that dumpasn1 will display an ASN.1 data item doesn't mean * that the item is valid. * * dumpasn1 requires a config file dumpasn1.cfg to be present in the same * location as the program itself or in a standard directory where binaries * live (it will run without it but will display a warning message, you can * configure the path either by hardcoding it in or using an environment * variable as explained further down). The config file is available from * http:www.cs.auckland.ac.nz/~pgut001/dumpasn1.cfg. * * This code assumes that the input data is binary, having come from a MIME- * aware mailer or been piped through a decoding utility if the original * format used base64 encoding. If you need to decode it, it's recommended * that you use a utility like uudeview, which will strip virtually any kind * of encoding (MIME, PEM, PGP, whatever) to recover the binary original. * * You can use this code in whatever way you want, as long as you don't try * to claim you wrote it. * * (Someone asked for clarification on what this means, treat it as a very * mild form of the BSD license in which you're not required to include LONG * LEGAL DISCLAIMERS IN ALL CAPS but just a small note in a corner somewhere * (e.g. the back of a manual) that you're using the dumpasn1 code. And if * you do use it, please make sure you're using a recent version, I * occasionally see screen shots from incredibly ancient versions that are * nowhere near as good as what current versions produce). * * Editing notes: Tabs to 4, phasers to malky (and in case anyone wants to * complain about that, see "Program Indentation and Comprehensiblity", * Richard Miara, Joyce Musselman, Juan Navarro, and Ben Shneiderman, * Communications of the ACM, Vol.26, No.11 (November 1983), p.861) */ #include <ctype.h> #include <limits.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #ifdef OS390 # include <unistd.h> #endif /* OS390 */ /* The update string, printed as part of the help screen */ #define UPDATE_STRING "9 March 2017" /* Useful defines */ #ifndef TRUE # define FALSE 0 # define TRUE ( !FALSE ) #endif /* TRUE */ #ifndef BYTE typedef unsigned char BYTE; #endif /* BYTE */ /* Tandem Guardian NonStop Kernel options */ #ifdef __TANDEM # pragma nolist /* Spare us the source listing, no GUI... */ # pragma nowarn (1506) /* Implicit type conversion: int to char etc */ #endif /* __TANDEM */ /* SunOS 4.x doesn't define seek codes or exit codes or FILENAME_MAX (it does define _POSIX_MAX_PATH, but in funny locations and to different values depending on which include file you use). Strictly speaking this code isn't right since we need to use PATH_MAX, however not all systems define this, some use _POSIX_PATH_MAX, and then there are all sorts of variations and other defines that you have to check, which require about a page of code to cover each OS, so we just use max( FILENAME_MAX, 512 ) which should work for everything */ #ifndef SEEK_SET # define SEEK_SET 0 # define SEEK_CUR 2 #endif /* No fseek() codes defined */ #ifndef EXIT_FAILURE # define EXIT_FAILURE 1 # define EXIT_SUCCESS ( !EXIT_FAILURE ) #endif /* No exit() codes defined */ #ifndef FILENAME_MAX # define FILENAME_MAX 512 #else # if FILENAME_MAX < 128 #undef FILENAME_MAX #define FILENAME_MAX 512 # endif /* FILENAME_MAX < 128 */ #endif /* FILENAME_MAX */ /* Under Windows we can do special-case handling for paths and Unicode strings (although in practice it can't really handle much except latin-1) */ #if ( defined( _WINDOWS ) || defined( WIN32 ) || defined( _WIN32 ) || \ defined( __WIN32__ ) ) # include <windows.h> # include <io.h> /* For _setmode() */ # include <fcntl.h> /* For _setmode() codes */ # ifndef _O_U16TEXT # define _O_U16TEXT 0x20000 /* _setmode() code */ # endif /* !_O_U16TEXT */ # define __WIN32__ #endif /* Win32 */ /* Under Unix we can do special-case handling for paths and Unicode strings. Detecting Unix systems is a bit tricky but the following should find most versions. This define implicitly assumes that the system has wchar_t support, but this is almost always the case except for very old systems, so it's best to default to allow-all rather than deny-all */ #if defined( linux ) || defined( __linux__ ) || defined( sun ) || \ defined( __bsdi__ ) || defined( __FreeBSD__ ) || defined( __NetBSD__ ) || \ defined( __OpenBSD__ ) || defined( __hpux ) || defined( _M_XENIX ) || \ defined( __osf__ ) || defined( _AIX ) || defined( __MACH__ ) # define __UNIX__ #endif /* Every commonly-used Unix */ #if defined( linux ) || defined( __linux__ ) # ifndef __USE_ISOC99 #define __USE_ISOC99 # endif /* __USE_ISOC99 */ # include <wchar.h> #endif /* Linux */ /* For IBM mainframe OSes we use the Posix environment, so it looks like Unix */ #ifdef OS390 # define __OS390__ # define __UNIX__ #endif /* OS390 / z/OS */ /* Tandem NSK: Don't tangle with Tandem OSS, which is almost UNIX */ #ifdef __TANDEM # ifdef _GUARDIAN_TARGET #define __TANDEM_NSK__ # else #define __UNIX__ # endif /* _GUARDIAN_TARGET */ #endif /* __TANDEM */ /* Some OSes don't define the min() macro */ #ifndef min # define min(a,b) ( ( a ) < ( b ) ? ( a ) : ( b ) ) #endif /* !min */ /* Macros to avoid problems with sign extension */ #define byteToInt( x ) ( ( BYTE ) ( x ) ) /* Turn off pointless VC++ warnings */ #ifdef _MSC_VER # pragma warning( disable: 4018 ) #endif /* VC++ */ /* When we dump a nested data object encapsulated within a larger object, the length is initially set to a magic value which is adjusted to the actual length once we start parsing the object */ #define LENGTH_MAGIC 177545L /* Tag classes */ #define CLASS_MASK 0xC0 /* Bits 8 and 7 */ #define UNIVERSAL 0x00 /* 0 = Universal (defined by ITU X.680) */ #define APPLICATION 0x40 /* 1 = Application */ #define CONTEXT 0x80 /* 2 = Context-specific */ #define PRIVATE 0xC0 /* 3 = Private */ /* Encoding type */ #define FORM_MASK 0x20 /* Bit 6 */ #define PRIMITIVE 0x00 /* 0 = primitive */ #define CONSTRUCTED 0x20 /* 1 = constructed */ /* Universal tags */ #define TAG_MASK 0x1F /* Bits 5 - 1 */ #define EOC 0x00 /* 0: End-of-contents octets */ #define BOOLEAN 0x01 /* 1: Boolean */ #define INTEGER 0x02 /* 2: Integer */ #define BITSTRING 0x03 /* 2: Bit string */ #define OCTETSTRING 0x04 /* 4: Byte string */ #define NULLTAG 0x05 /* 5: NULL */ #define OID 0x06 /* 6: Object Identifier */ #define OBJDESCRIPTOR 0x07 /* 7: Object Descriptor */ #define EXTERNAL 0x08 /* 8: External */ #define REAL 0x09 /* 9: Real */ #define ENUMERATED 0x0A /* 10: Enumerated */ #define EMBEDDED_PDV 0x0B /* 11: Embedded Presentation Data Value */ #define UTF8STRING 0x0C /* 12: UTF8 string */ #define SEQUENCE 0x10 /* 16: Sequence/sequence of */ #define SET 0x11 /* 17: Set/set of */ #define NUMERICSTRING 0x12 /* 18: Numeric string */ #define PRINTABLESTRING 0x13 /* 19: Printable string (ASCII subset) */ #define T61STRING 0x14 /* 20: T61/Teletex string */ #define VIDEOTEXSTRING 0x15 /* 21: Videotex string */ #define IA5STRING 0x16 /* 22: IA5/ASCII string */ #define UTCTIME 0x17 /* 23: UTC time */ #define GENERALIZEDTIME 0x18 /* 24: Generalized time */ #define GRAPHICSTRING 0x19 /* 25: Graphic string */ #define VISIBLESTRING 0x1A /* 26: Visible string (ASCII subset) */ #define GENERALSTRING 0x1B /* 27: General string */ #define UNIVERSALSTRING 0x1C /* 28: Universal string */ #define BMPSTRING 0x1E /* 30: Basic Multilingual Plane/Unicode string */ /* Length encoding */ #define LEN_XTND 0x80 /* Indefinite or long form */ #define LEN_MASK 0x7F /* Bits 7 - 1 */ /* Various special-case operations to perform on strings */ typedef enum { STR_NONE, /* No special handling */ STR_UTCTIME, /* Check it's UTCTime */ STR_GENERALIZED, /* Check it's GeneralizedTime */ STR_PRINTABLE, /* Check it's a PrintableString */ STR_IA5, /* Check it's an IA5String */ STR_LATIN1, /* Read and display string as latin-1 */ STR_UTF8, /* Read and display string as UTF8 */ STR_BMP, /* Read and display string as Unicode */ STR_BMP_REVERSED /* STR_BMP with incorrect endianness */ } STR_OPTION; /* Structure to hold info on an ASN.1 item */ typedef struct { int id; /* Tag class + primitive/constructed */ int tag; /* Tag */ long length; /* Data length */ int indefinite; /* Item has indefinite length */ int nonCanonical; /* Non-canonical length encoding used */ BYTE header[ 16 ]; /* Tag+length data */ int headerSize; /* Size of tag+length */ } ASN1_ITEM; /* Configuration options */ static int printDots = FALSE; /* Whether to print dots to align columns */ static int doPure = FALSE; /* Print data without LHS info column */ static int doDumpHeader = FALSE; /* Dump tag+len in hex (level = 0, 1, 2) */ static int extraOIDinfo = FALSE; /* Print extra information about OIDs */ static int doHexValues = FALSE; /* Display size, offset in hex not dec.*/ static int useStdin = FALSE; /* Take input from stdin */ static int zeroLengthAllowed = FALSE;/* Zero-length items allowed */ static int dumpText = FALSE; /* Dump text alongside hex data */ static int printAllData = FALSE; /* Whether to print all data in long blocks */ static int checkEncaps = TRUE; /* Print encaps.data in BIT/OCTET STRINGs */ static int checkCharset = TRUE; /* Check val.of char strs.hidden in OCTET STRs */ #ifndef __OS390__ static int reverseBitString = TRUE; /* Print BIT STRINGs in natural order */ #else static int reverseBitString = FALSE;/* Natural order on OS390 is the same as ASN.1 */ #endif /* __OS390__ */ static int rawTimeString = FALSE; /* Print raw time strings */ static int shallowIndent = FALSE; /* Perform shallow indenting */ static int outputWidth = 80; /* 80-column display */ static int maxNestLevel = 100; /* Maximum nesting level for which to display output */ static int doOutlineOnly = FALSE; /* Only display constructed-object outline */ /* Formatting information used for the fixed informational column to the left of the displayed data */ static int infoWidth = 4; static const char *indentStringTbl[] = { NULL, NULL, NULL, " : ", /* "xxx xxx: " (3) */ " : ", /* "xxxx xxxx: " (4) */ " : ", /* "xxxxx xxxxx: " (5) */ " : ", /* "xxxxxx xxxxxx: " (6) */ " : ", /* "xxxxxxx xxxxxxx: " (7) */ " : ", /* "xxxxxxxx xxxxxxxx: " (8) */ "", "", "", "" }; static const char *lenTbl[] = { NULL, NULL, NULL, "%3ld %3ld: ", "%4ld %4ld: ", "%5ld %5ld: ", "%6ld %6ld: ", "%7ld %7ld: ", "%8ld %8ld: ", "", "", "", "" }; static const char *lenIndefTbl[] = { NULL, NULL, NULL, "%3ld NDF: ", "%4ld NDEF: ", "%5ld INDEF: ", "%6ld INDEF : ", "%7ld INDEF : ", "%8ld INDEF : ", "", "", "", "" }; static const char *lenHexTbl[] = { NULL, NULL, NULL, "%03lX %3lX: ", "%04lX %4lX: ", "%05lX %5lX: ", "%06lX %6lX: ", "%07lX %7lX: ", "%08lX %8lX: ", "", "", "", "" }; static const char *lenHexIndefTbl[] = { NULL, NULL, NULL, "%03lX NDF: ", "%04lX NDEF: ", "%05lX INDEF: ", "%06lX INDEF : ", "%07lX INDEF : ", "%08lX INDEF : ", "", "", "", "" }; #define INDENT_SIZE ( infoWidth + 1 + infoWidth + 1 + 1 ) #define INDENT_STRING indentStringTbl[ infoWidth ] #define LEN lenTbl[ infoWidth ] #define LEN_INDEF lenIndefTbl[ infoWidth ] #define LEN_HEX lenHexTbl[ infoWidth ] #define LEN_HEX_INDEF lenHexIndefTbl[ infoWidth ] /* Error and warning information */ static int noErrors = 0; /* Number of errors found */ static int noWarnings = 0; /* Number of warnings */ /* Position in the input stream */ static int fPos = 0; /* Absolute position in data */ /* The output stream */ static FILE *output; /* Output stream */ /* OID data sizes. Because of Microsoft's "encode random noise and call it an OID" approach, we maintain two size limits, a sane one and one capable of holding the random-noise OID data, which we warn about */ #define MAX_OID_SIZE 40 #define MAX_SANE_OID_SIZE 32 /* Information on an ASN.1 Object Identifier */ typedef struct tagOIDINFO { struct tagOIDINFO *next; /* Next item in list */ BYTE oid[ MAX_OID_SIZE ]; int oidLength; char *comment, *description; /* Name, rank, serial number */ int warn; /* Whether to warn if OID encountered */ } OIDINFO; static OIDINFO *oidList = NULL; /* If the config file isn't present in the current directory, we search the following paths (this is needed for Unix with dumpasn1 somewhere in the path, since this doesn't set up argv[0] to the full path). Anything beginning with a '$' uses the appropriate environment variable. In addition under Unix we also walk down $PATH looking for it */ #ifdef __TANDEM_NSK__ # define CONFIG_NAME "asn1cfg" #else # define CONFIG_NAME "dumpasn1.cfg" #endif /* __TANDEM_NSK__ */ #if defined( __TANDEM_NSK__ ) static const char *configPaths[] = { "$system.security", "$system.system", NULL }; #elif defined( __WIN32__ ) static const char *configPaths[] = { /* Windoze absolute paths (yeah, this code has been around for awhile, why do you ask?) */ "c:\\windows\\", "c:\\winnt\\", /* It's my program, I'm allowed to hardcode in strange paths that no-one else uses */ "c:\\program files\\bin\\", "c:\\program files (x86)\\bin\\", /* This one seems to be popular as well */ "c:\\program files\\utilities\\", "c:\\program files (x86)\\utilities\\", /* General environment-based paths */ "$DUMPASN1_PATH/", NULL }; #elif defined( __OS390__ ) static const char *configPaths[] = { /* General environment-based paths */ "$DUMPASN1_PATH/", NULL }; #else static const char *configPaths[] = { # ifndef DEBIAN /* Unix absolute paths */ "/usr/bin/", "/usr/local/bin/", "/etc/dumpasn1/", /* Unix environment-based paths */ "$HOME/", "$HOME/bin/", /* It's my program, I'm allowed to hardcode in strange paths that no-one else uses */ "$HOME/BIN/", # else /* Debian has specific places where you're supposed to dump things. Note the dot after $HOME, since config files are supposed to start with a dot for Debian */ "$HOME/.", "/etc/dumpasn1/", # endif /* DEBIAN-specific paths */ /* General environment-based paths */ "$DUMPASN1_PATH/", NULL }; #endif /* OS-specific search paths */ #define isEnvTerminator( c ) \ ( ( ( c ) == '/' ) || ( ( c ) == '.' ) || ( ( c ) == '$' ) || \ ( ( c ) == '\0' ) || ( ( c ) == '~' ) ) /* * *************************************************************************** * * Object Identification/Description Routines * * *************************************************************************** */ /* Return descriptive strings for universal tags */ static char *idstr( const int tagID ) { switch( tagID ) { case EOC: return( "End-of-contents octets" ); case BOOLEAN: return( "BOOLEAN" ); case INTEGER: return( "INTEGER" ); case BITSTRING: return( "BIT STRING" ); case OCTETSTRING: return( "OCTET STRING" ); case NULLTAG: return( "NULL" ); case OID: return( "OBJECT IDENTIFIER" ); case OBJDESCRIPTOR: return( "ObjectDescriptor" ); case EXTERNAL: return( "EXTERNAL" ); case REAL: return( "REAL" ); case ENUMERATED: return( "ENUMERATED" ); case EMBEDDED_PDV: return( "EMBEDDED PDV" ); case UTF8STRING: return( "UTF8String" ); case SEQUENCE: return( "SEQUENCE" ); case SET: return( "SET" ); case NUMERICSTRING: return( "NumericString" ); case PRINTABLESTRING: return( "PrintableString" ); case T61STRING: return( "TeletexString" ); case VIDEOTEXSTRING: return( "VideotexString" ); case IA5STRING: return( "IA5String" ); case UTCTIME: return( "UTCTime" ); case GENERALIZEDTIME: return( "GeneralizedTime" ); case GRAPHICSTRING: return( "GraphicString" ); case VISIBLESTRING: return( "VisibleString" ); case GENERALSTRING: return( "GeneralString" ); case UNIVERSALSTRING: return( "UniversalString" ); case BMPSTRING: return( "BMPString" ); default: return( "Unknown (Reserved)" ); } } /* Return information on an object identifier */ static OIDINFO *getOIDinfo( const BYTE *oid, const int oidLength ) { const BYTE oidByte = oid[ 1 ]; OIDINFO *oidPtr; for( oidPtr = oidList; oidPtr != NULL; oidPtr = oidPtr->next ) { if( oidLength != oidPtr->oidLength - 2 ) continue; /* Quick-reject check */ if( oidByte != oidPtr->oid[ 2 + 1 ] ) continue; /* Quick-reject check */ if( !memcmp( oidPtr->oid + 2, oid, oidLength ) ) return( oidPtr ); } return( NULL ); } /* Add an OID attribute */ static int addAttribute( char **buffer, char *attribute ) { if( ( *buffer = ( char * ) malloc( strlen( attribute ) + 1 ) ) == NULL ) { puts( "Out of memory." ); return( FALSE ); } strcpy( *buffer, attribute ); return( TRUE ); } /* Table to identify valid string chars (taken from cryptlib). Note that IA5String also allows control chars, but we warn about these since finding them in a certificate is a sign that there's something seriously wrong */ #define P 1 /* PrintableString */ #define I 2 /* IA5String */ #define PI 3 /* IA5String and PrintableString */ static int charFlags[] = { /* 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* ! " # $ % & ' ( ) * + , - . / */ PI, I, I, I, I, I, I, PI, PI, PI, I, PI, PI, PI, PI, PI, /* 0 1 2 3 4 5 6 7 8 9 : ; < = > ? */ PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, I, I, PI, I, PI, /* @ A B C D E F G H I J K L M N O */ I, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, /* P Q R S T U V W X Y Z [ \ ] ^ _ */ PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, I, I, I, I, I, /* ` a b c d e f g h i j k l m n o */ I, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, /* p q r s t u v w x y z { | } ~ DL */ PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, PI, I, I, I, I, 0 }; static int isPrintable( int ch ) { if( ch >= 128 || !( charFlags[ ch ] & P ) ) return( FALSE ); return( TRUE ); } static int isIA5( int ch ) { if( ch >= 128 || !( charFlags[ ch ] & I ) ) return( FALSE ); return( TRUE ); } /* * *************************************************************************** * * Config File Read Routines * * ************************************************************************** */ /* Files coming from DOS/Windows systems may have a ^Z (the CP/M EOF char) at the end, so we need to filter this out */ #define CPM_EOF 0x1A /* ^Z = CPM EOF char */ /* The maximum input line length */ #define MAX_LINESIZE 512 /* Read a line of text from the config file */ static int lineNo; static int readLine( FILE *file, char *buffer ) { int bufCount = 0, ch; /* Skip whitespace */ while( ( ( ch = getc( file ) ) == ' ' || ch == '\t' ) && !feof( file ) ); /* Get a line into the buffer */ while( ch != '\r' && ch != '\n' && ch != CPM_EOF && !feof( file ) ) { /* Check for an illegal char in the data. Note that we don't just check for chars with high bits set because these are legal in non-ASCII strings */ if( !isprint( ch ) ) { printf( "Bad character '%c' in config file line %d.\n", ch, lineNo ); return( FALSE ); } /* Check to see if it's a comment line */ if( ch == '#' && !bufCount ) { /* Skip comment section and trailing whitespace */ while( ch != '\r' && ch != '\n' && ch != CPM_EOF && !feof( file ) ) ch = getc( file ); break; } /* Make sure that the line is of the correct length */ if( bufCount > MAX_LINESIZE ) { printf( "Config file line %d too long.\n", lineNo ); return( FALSE ); } else if( ch ) /* Can happen if we read a binary file */ buffer[ bufCount++ ] = ch; /* Get next character */ ch = getc( file ); } /* If we've just passed a CR, check for a following LF */ if( ch == '\r' ) { if( ( ch = getc( file ) ) != '\n' ) ungetc( ch, file ); } /* Skip trailing whitespace and add der terminador */ while( bufCount > 0 && ( ( ch = buffer[ bufCount - 1 ] ) == ' ' || ch == '\t' ) ) bufCount--; buffer[ bufCount ] = '\0'; /* Handle special-case of ^Z if file came off an MSDOS system */ if( ch == CPM_EOF ) { while( !feof( file ) ) { /* Keep going until we hit the true EOF (or some sort of error) */ ( void ) getc( file ); } } return( ferror( file ) ? FALSE : TRUE ); } /* Process an OID specified as space-separated decimal or hex digits */ static int processOID( OIDINFO *oidInfo, char *string ) { BYTE binaryOID[ MAX_OID_SIZE ]; long value; int firstValue = -1, valueIndex = 0, oidIndex = 3; memset( binaryOID, 0, MAX_OID_SIZE ); binaryOID[ 0 ] = OID; while( *string && oidIndex < MAX_OID_SIZE ) { if( oidIndex >= MAX_OID_SIZE - 4 ) { printf( "Excessively long OID in config file line %d.\n", lineNo ); return( FALSE ); } if( sscanf( string, "%8ld", &value ) != 1 || value < 0 ) { printf( "Invalid value in config file line %d.\n", lineNo ); return( FALSE ); } if( valueIndex == 0 ) { firstValue = value; valueIndex++; } else { if( valueIndex == 1 ) { if( firstValue < 0 || firstValue > 2 || value < 0 || \ ( ( firstValue < 2 && value > 39 ) || \ ( firstValue == 2 && value > 175 ) ) ) { printf( "Invalid value in config file line %d.\n", lineNo ); return( FALSE ); } binaryOID[ 2 ] = ( firstValue * 40 ) + ( int ) value; valueIndex++; } else { int hasHighBits = FALSE; if( value >= 0x200000L ) /* 2^21 */ { binaryOID[ oidIndex++ ] = 0x80 | ( int ) ( value >> 21 ); value %= 0x200000L; hasHighBits = TRUE; } if( ( value >= 0x4000 ) || hasHighBits ) /* 2^14 */ { binaryOID[ oidIndex++ ] = 0x80 | ( int ) ( value >> 14 ); value %= 0x4000; hasHighBits = TRUE; } if( ( value >= 0x80 ) || hasHighBits ) /* 2^7 */ { binaryOID[ oidIndex++ ] = 0x80 | ( int ) ( value >> 7 ); value %= 128; } binaryOID[ oidIndex++ ] = ( int ) value; } } while( *string && isdigit( byteToInt( *string ) ) ) string++; if( *string && *string++ != ' ' ) { printf( "Invalid OID string in config file line %d.\n", lineNo ); return( FALSE ); } } binaryOID[ 1 ] = oidIndex - 2; memcpy( oidInfo->oid, binaryOID, oidIndex ); oidInfo->oidLength = oidIndex; return( TRUE ); } static int processHexOID( OIDINFO *oidInfo, char *string ) { unsigned value, index = 0; while( *string && index < MAX_OID_SIZE - 1 ) { if (sscanf(string, "%4x", &value) != 1 || value > 255 ) { printf( "Invalid hex value in config file line %d.\n", lineNo ); return( FALSE ); } oidInfo->oid[ index++ ] = value; string += 2; if( *string && *string++ != ' ' ) { printf( "Invalid hex string in config file line %d.\n", lineNo ); return( FALSE ); } } oidInfo->oid[ index ] = 0; oidInfo->oidLength = index; if( index >= MAX_OID_SIZE - 1 ) { printf( "OID value in config file line %d too long.\n", lineNo ); return( FALSE ); } return( TRUE ); } /* Read a config file */ static int readConfig( const char *path, const int isDefaultConfig ) { OIDINFO dummyOID = { NULL, "Dummy", 0, "Dummy", "Dummy", 1 }, *oidPtr; FILE *file; int seenHexOID = FALSE; char buffer[ MAX_LINESIZE ]; int status; /* Try and open the config file */ if( ( file = fopen( path, "rb" ) ) == NULL ) { /* If we can't open the default config file, issue a warning but continue anyway */ if( isDefaultConfig ) { puts( "Cannot open config file 'dumpasn1.cfg', which should be in the same" ); puts( "directory as the dumpasn1 program, a standard system directory, or" ); puts( "in a location pointed to by the DUMPASN1_PATH environment variable." ); puts( "Operation will continue without the ability to display Object " ); puts( "Identifier information." ); puts( "" ); puts( "If the config file is located elsewhere, you can set the environment" ); puts( "variable DUMPASN1_PATH to the path to the file." ); return( TRUE ); } printf( "Cannot open config file '%s'.\n", path ); return( FALSE ); } /* Add the new config entries at the appropriate point in the OID list */ if( oidList == NULL ) oidPtr = &dummyOID; else for( oidPtr = oidList; oidPtr->next != NULL; oidPtr = oidPtr->next ); /* Read each line in the config file */ lineNo = 1; while( ( status = readLine( file, buffer ) ) == TRUE && !feof( file ) ) { /* If it's a comment line, skip it */ if( !*buffer ) { lineNo++; continue; } /* Check for an attribute tag */ if( !strncmp( buffer, "OID = ", 6 ) ) { /* Make sure that all of the required attributes for the current OID are present */ if( oidPtr->description == NULL ) { printf( "OID ending on config file line %d has no " "description attribute.\n", lineNo - 1 ); return( FALSE ); } /* Allocate storage for the new OID */ if( ( oidPtr->next = ( OIDINFO * ) malloc( sizeof( OIDINFO ) ) ) == NULL ) { puts( "Out of memory." ); return( FALSE ); } oidPtr = oidPtr->next; if( oidList == NULL ) oidList = oidPtr; memset( oidPtr, 0, sizeof( OIDINFO ) ); /* Add the new OID */ if( !strncmp( buffer + 6, "06", 2 ) ) { seenHexOID = TRUE; if( !processHexOID( oidPtr, buffer + 6 ) ) return( FALSE ); } else { if( !processOID( oidPtr, buffer + 6 ) ) return( FALSE ); } /* Check that this OID isn't already present in the OID list. This is a quick-and-dirty n^2 algorithm so it's not enabled by default */ #if 0 { OIDINFO *oidCursor; for( oidCursor = oidList; oidCursor->next != NULL; oidCursor = oidCursor->next ) { if( oidCursor->oidLength == oidPtr->oidLength && \ !memcmp( oidCursor->oid, oidPtr->oid, oidCursor->oidLength ) ) { printf( "Duplicate OID '%s' at line %d.\n", buffer, lineNo ); } } } #endif /* 0 */ } else if( !strncmp( buffer, "Description = ", 14 ) ) { if( oidPtr->description != NULL ) { printf( "Duplicate OID description in config file line %d.\n", lineNo ); return( FALSE ); } if( !addAttribute( &oidPtr->description, buffer + 14 ) ) return( FALSE ); } else if( !strncmp( buffer, "Comment = ", 10 ) ) { if( oidPtr->comment != NULL ) { printf( "Duplicate OID comment in config file line %d.\n", lineNo ); return( FALSE ); } if( !addAttribute( &oidPtr->comment, buffer + 10 ) ) return( FALSE ); } else if( !strncmp( buffer, "Warning", 7 ) ) { if( oidPtr->warn ) { printf( "Duplicate OID warning in config file line %d.\n", lineNo ); return( FALSE ); } oidPtr->warn = TRUE; } else { printf( "Unrecognised attribute '%s', line %d.\n", buffer, lineNo ); return( FALSE ); } lineNo++; } fclose( file ); /* If we're processing an old-style config file, tell the user to upgrade */ if( seenHexOID ) { puts( "\nWarning: Use of old-style hex OIDs detected in " "configuration file, please\n update your dumpasn1 " "configuration file.\n" ); } return( status ); } /* Check for the existence of a config file path (access() isn't available on all systems) */ static int testConfigPath( const char *path ) { FILE *file; /* Try and open the config file */ if( ( file = fopen( path, "rb" ) ) == NULL ) return( FALSE ); fclose( file ); return( TRUE ); } /* Build a config path by substituting environment strings for $NAMEs */ static void buildConfigPath( char *path, const char *pathTemplate ) { char pathBuffer[ FILENAME_MAX ], newPath[ FILENAME_MAX ]; int pathLen, pathPos = 0, newPathPos = 0; /* Add the config file name at the end */ strcpy( pathBuffer, pathTemplate ); strcat( pathBuffer, CONFIG_NAME ); pathLen = strlen( pathBuffer ); while( pathPos < pathLen ) { char *strPtr; int substringSize; /* Find the next $ and copy the data before it to the new path */ if( ( strPtr = strstr( pathBuffer + pathPos, "$" ) ) != NULL ) substringSize = ( int ) ( ( strPtr - pathBuffer ) - pathPos ); else substringSize = pathLen - pathPos; if( substringSize > 0 ) { memcpy( newPath + newPathPos, pathBuffer + pathPos, substringSize ); } newPathPos += substringSize; pathPos += substringSize; /* Get the environment string for the $NAME */ if( strPtr != NULL ) { char envName[ MAX_LINESIZE ], *envString; int i; /* Skip the '$', find the end of the $NAME, and copy the name into an internal buffer */ pathPos++; /* Skip the $ */ for( i = 0; !isEnvTerminator( pathBuffer[ pathPos + i ] ); i++ ); memcpy( envName, pathBuffer + pathPos, i ); envName[ i ] = '\0'; /* Get the env.string and copy it over */ if( ( envString = getenv( envName ) ) != NULL ) { const int envStrLen = strlen( envString ); if( newPathPos + envStrLen < FILENAME_MAX - 2 ) { memcpy( newPath + newPathPos, envString, envStrLen ); newPathPos += envStrLen; } } pathPos += i; } } newPath[ newPathPos ] = '\0'; /* Add der terminador */ /* Copy the new path to the output */ strcpy( path, newPath ); } /* Read the global config file */ static int readGlobalConfig( const char *path ) { char buffer[ FILENAME_MAX ]; char *searchPos = ( char * ) path, *namePos, *lastPos = NULL; #ifdef __UNIX__ char *envPath; #endif /* __UNIX__ */ #ifdef __WIN32__ char filePath[ _MAX_PATH ]; DWORD count; #endif /* __WIN32__ */ int i; /* First, try and find the config file in the same directory as the executable by walking down the path until we find the last occurrence of the program name. This requires that argv[0] be set up properly, which isn't the case if Unix search paths are being used and is a bit hit-and-miss under Windows where the contents of argv[0] depend on how the program is being executed. To avoid this we perform some Windows-specific processing to try and find the path to the executable if we can't otherwise find it */ do { namePos = lastPos; lastPos = strstr( searchPos, "dumpasn1" ); if( lastPos == NULL ) lastPos = strstr( searchPos, "DUMPASN1" ); searchPos = lastPos + 1; } while( lastPos != NULL ); #ifdef __UNIX__ if( namePos == NULL && ( namePos = strrchr( path, '/' ) ) != NULL ) { const int endPos = ( int ) ( namePos - path ) + 1; /* If the executable isn't called dumpasn1, we won't be able to find it with the above code, fall back to looking for directory separators. This requires a system where the only separator is the directory separator (ie it doesn't work for Windows or most mainframe environments) */ if( endPos < FILENAME_MAX - 13 ) { memcpy( buffer, path, endPos ); strcpy( buffer + endPos, CONFIG_NAME ); if( testConfigPath( buffer ) ) return( readConfig( buffer, TRUE ) ); } /* That didn't work, try the absolute locations and $PATH */ namePos = NULL; } #endif /* __UNIX__ */ if( strlen( path ) < FILENAME_MAX - 13 && namePos != NULL ) { strcpy( buffer, path ); strcpy( buffer + ( int ) ( namePos - ( char * ) path ), CONFIG_NAME ); if( testConfigPath( buffer ) ) return( readConfig( buffer, TRUE ) ); } /* Now try each of the possible absolute locations for the config file */ for( i = 0; configPaths[ i ] != NULL; i++ ) { buildConfigPath( buffer, configPaths[ i ] ); if( testConfigPath( buffer ) ) return( readConfig( buffer, TRUE ) ); } #ifdef __UNIX__ /* On Unix systems we can also search for the config file on $PATH */ if( ( envPath = getenv( "PATH" ) ) != NULL ) { char *pathPtr = strtok( envPath, ":" ); do { sprintf( buffer, "%s/%s", pathPtr, CONFIG_NAME ); if( testConfigPath( buffer ) ) return( readConfig( buffer, TRUE ) ); pathPtr = strtok( NULL, ":" ); } while( pathPtr != NULL ); } #endif /* __UNIX__ */ #ifdef __WIN32__ /* Under Windows we can use GetModuleFileName() to find the location of the program */ count = GetModuleFileName ( NULL, filePath, _MAX_PATH ); if( count > 0 ) { char *progNameStart = strrchr( filePath, '\\' ); if( progNameStart != NULL && \ ( progNameStart - filePath ) < _MAX_PATH - 13 ) { /* Replace the program name with the config file name */ strcpy( progNameStart + 1, CONFIG_NAME ); if( testConfigPath( filePath ) ) return( readConfig( filePath, TRUE ) ); } } #endif /*__WIN32__*/ /* Default to just the config name (which should fail as it was the first entry in configPaths[]). readConfig() will display the appropriate warning */ return( readConfig( CONFIG_NAME, TRUE ) ); } /* Free the in-memory config data */ static void freeConfig( void ) { OIDINFO *oidPtr = oidList; while( oidPtr != NULL ) { OIDINFO *oidCursor = oidPtr; oidPtr = oidPtr->next; if( oidCursor->comment != NULL ) free( oidCursor->comment ); if( oidCursor->description != NULL ) free( oidCursor->description ); free( oidCursor ); } } /* * *************************************************************************** * * Output/Formatting Routines * * *************************************************************************** */ #ifdef __OS390__ static int asciiToEbcdic( const int ch ) { char convBuffer[ 2 ]; convBuffer[ 0 ] = ch; convBuffer[ 1 ] = '\0'; __atoe( convBuffer ); /* Convert ASCII to EBCDIC for 390 */ return( convBuffer[ 0 ] ); } #endif /* __OS390__ */ /* Output formatted text */ static int printString( const int level, const char *format, ... ) { va_list argPtr; int length; if( level >= maxNestLevel ) return( 0 ); va_start( argPtr, format ); length = vfprintf( output, format, argPtr ); va_end( argPtr ); return( length ); } /* Indent a string by the appropriate amount */ static void doIndent( const int level ) { int i; if( level >= maxNestLevel ) return; for( i = 0; i < level; i++ ) { fprintf( output, printDots ? ". " : \ shallowIndent ? " " : " " ); } } /* Complain about an error in the ASN.1 object */ static void complain( const char *message, const int messageParam, const int level ) { if( level < maxNestLevel ) { if( !doPure ) fprintf( output, "%s", INDENT_STRING ); doIndent( level + 1 ); } fputs( "Error: ", output ); fprintf( output, message, messageParam ); fputs( ".\n", output ); noErrors++; } static void complainLength( const ASN1_ITEM *item, const int level ) { #if 0 /* This is a general error so we don't indent the message to the level of the item */ #else if( level < maxNestLevel ) { if( !doPure ) fprintf( output, "%s", INDENT_STRING ); doIndent( level + 1 ); } #endif /* 0 */ fprintf( output, "Error: %s has invalid length %ld.\n", idstr( item->tag ), item->length ); noErrors++; } static void complainLengthCanonical( const ASN1_ITEM *item, const int level ) { int i; #if 0 /* This is a general error so we don't indent the message to the level of the item */ #else if( level < maxNestLevel ) { if( !doPure ) fprintf( output, "%s", INDENT_STRING ); doIndent( level + 1 ); } #endif /* 0 */ fputs( "Error: Length '", output ); for( i = item->nonCanonical; i < item->headerSize; i++ ) { fprintf( output, "%02X", item->header[ i ] ); if( i < item->headerSize - 1 ) fputc( ' ', output ); } fputs( "' has non-canonical encoding.\n", output ); noErrors++; } static void complainInt( const BYTE *intValue, const int level ) { if( level < maxNestLevel ) { if( !doPure ) fprintf( output, "%s", INDENT_STRING ); doIndent( level + 1 ); } fprintf( output, "Error: Integer '%02X %02X ...' has non-DER encoding.\n", intValue[ 0 ], intValue[ 1 ] ); noErrors++; } static void complainEOF( const int level, const int missingBytes ) { printString( level, "%c", '\n' ); complain( ( missingBytes > 1 ) ? \ "Unexpected EOF, %d bytes missing" : \ "Unexpected EOF, 1 byte missing", missingBytes, level ); } /* Adjust the nesting-level value to make sure that we don't go off the edge of the screen via doIndent() when we're displaying a text or hex dump of data */ static int adjustLevel( const int level, const int maxLevel ) { /* If we've been passed a very large pseudo-level to disable output then we don't try and override this */ if( level >= 1000 ) return( level ); /* If we've exceeded the maximum level for display, cap the value at maxLevel to make sure that we don't end up indenting output off the edge of the screen */ if( level > maxLevel ) return( maxLevel ); return( level ); } #if defined( __WIN32__ ) || defined( __UNIX__ ) || defined( __OS390__ ) /* Try and display to display a Unicode character. This is pretty hit and miss, and if it fails nothing is displayed. To try and detect this we use wcstombs() to see if anything can be displayed, if it can't we drop back to trying to display the data as non-Unicode */ static int displayUnicode( const wchar_t wCh, const int level ) { char outBuf[ 8 ]; int outLen; /* Check whether we can display this character */ outLen = wcstombs( outBuf, &wCh, 8 ); if( outLen < 1 ) { /* Tell the caller that this can't be displayed as Unicode */ return( FALSE ); } #if defined( __WIN32__ ) if( level < maxNestLevel ) { int oldmode; /* To output Unicode to the Win32 console we need to switch the output stream to Unicode-16 mode, but the following may also depend on which code page is currently set for the console, which font is being used, and the phase of the moon (including the moons for Mars and Jupiter) */ fflush( output ); oldmode = _setmode( fileno( output ), _O_U16TEXT ); fputwc( wCh, output ); _setmode( fileno( output ), oldmode ); } #elif defined( __UNIX__ ) && !( defined( __MACH__ ) || defined( __OpenBSD__ ) ) /* Unix environments are even more broken than Win32, like Win32 the output differentiates between char and widechar output, but there's no easy way to deal with this. In theory fwide() can set it, but it's a one-way function, once we've set it a particular way we can't go back (exactly what level of braindamage it takes to have an implementation function like this is a mystery). Other sources suggest using setlocale() tricks, printf() with "%lc" or "%ls" as the format specifier, and others, but none of these seem to work properly either */ if( level < maxNestLevel ) { #if 0 setlocale( LC_ALL, "" ); fputwc( wCh, output ); #elif 1 /* This (and the "%ls" variant below) seem to be the least broken options */ fprintf( output, "%lc", wCh ); #elif 0 wchar_t wChString[ 2 ]; wChString[ 0 ] = wCh; wChString[ 1 ] = 0; fprintf( output, "%ls", wChString ); #else if( fwide( output, 1 ) > 0 ) { fputwc( wCh, output ); fwide( output, -1 ); } else fputc( wCh, output ); #endif } #else # ifdef __OS390__ if( level < maxNestLevel ) { char *p; /* This could use some improvement */ for( p = outBuf; *p != '\0'; p++ ) *p = asciiToEbcdic( *p ); } # endif /* IBM ASCII -> EBCDIC conversion */ printString( level, "%s", outBuf ); #endif /* OS-specific charset handling */ return( TRUE ); } #endif /* __WIN32__ || __UNIX__ || __OS390__ */ /* Display an integer value */ static void printValue( FILE *inFile, const int valueLength, const int level ) { BYTE intBuffer[ 2 ]; long value; int warnNegative = FALSE, warnNonDER = FALSE, i; value = getc( inFile ); if( value == EOF ) { complainEOF( level, valueLength ); return; } if( value & 0x80 ) warnNegative = TRUE; for( i = 0; i < valueLength - 1; i++ ) { const int ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, valueLength - i ); return; } /* Check for the first 9 bits being identical */ if( i == 0 ) { if( ( value == 0x00 ) && ( ( ch & 0x80 ) == 0x00 ) ) warnNonDER = TRUE; if( ( value == 0xFF ) && ( ( ch & 0x80 ) == 0x80 ) ) warnNonDER = TRUE; if( warnNonDER ) { intBuffer[ 0 ] = ( int ) value; intBuffer[ 1 ] = ch; } } value = ( value << 8 ) | ch; } fPos += valueLength; /* Display the integer value and any associated warnings. Note that this will display an incorrectly-encoded integer as a negative value rather than the unsigned value that was probably intended to emphasise that it's incorrect */ printString( level, " %ld\n", value ); if( warnNonDER ) complainInt( intBuffer, level ); if( warnNegative ) complain( "Integer is encoded as a negative value", 0, level ); } /* Dump data as a string of hex digits up to a maximum of 128 bytes */ static void dumpHex( FILE *inFile, long length, int level, const int isInteger ) { const int lineLength = ( dumpText ) ? 8 : 16; const int displayHeaderLength = ( ( doPure ) ? 0 : INDENT_SIZE ) + 2; BYTE intBuffer[ 2 ]; char printable[ 9 ]; long noBytes = length; int warnPadding = FALSE, warnNegative = isInteger, singleLine = FALSE; int displayLength = displayHeaderLength, prevCh = -1, i; memset( printable, 0, 9 ); displayLength += ( length < lineLength ) ? ( length * 3 ) : \ ( lineLength * 3 ); /* Check if the size of the displayed data (LHS status info + hex data) plus the indent-level of spaces will fit into a single line behind the initial label, e.g. "INTEGER" */ if( displayHeaderLength + ( level * 2 ) + ( length * 3 ) < outputWidth ) singleLine = TRUE; /* By default we only output a maximum of 128 bytes to avoid dumping huge amounts of data, however if what's left is a partial lines' worth then we output that as well to avoid displaying a line of text indicating that less than a lines' worth of data remains to be displayed */ if( noBytes >= 128 + lineLength && !printAllData ) noBytes = 128; /* Make sure that the indent level doesn't push the text off the edge of the screen */ level = adjustLevel( level, ( outputWidth - displayLength ) / 2 ); for( i = 0; i < noBytes; i++ ) { int ch; if( !( i % lineLength ) ) { if( singleLine ) printString( level, "%c", ' ' ); else { if( dumpText ) { /* If we're dumping text alongside the hex data, print the accumulated text string */ printString( level, "%s", " " ); printString( level, "%s", printable ); } printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); } } ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, length - i ); return; } printString( level, "%s%02X", ( i % lineLength ) ? " " : "", ch ); printable[ i % 8 ] = ( ch >= ' ' && ch < 127 ) ? ch : '.'; fPos++; /* If we need to check for negative values, check this now */ if( i == 0 ) { prevCh = ch; if( !( ch & 0x80 ) ) warnNegative = FALSE; } if( i == 1 ) { /* Check for the first 9 bits being identical */ if( ( prevCh == 0x00 ) && ( ( ch & 0x80 ) == 0x00 ) ) warnPadding = TRUE; if( ( prevCh == 0xFF ) && ( ( ch & 0x80 ) == 0x80 ) ) warnPadding = TRUE; if( warnPadding ) { intBuffer[ 0 ] = prevCh; intBuffer[ 1 ] = ch; } } } if( dumpText ) { /* Print any remaining text */ i %= lineLength; printable[ i ] = '\0'; while( i < lineLength ) { printString( level, "%s", " " ); i++; } printString( level, "%s", " " ); printString( level, "%s", printable ); } if( length >= 128 + lineLength && !printAllData ) { length -= 128; printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 5 ); printString( level, "[ Another %ld bytes skipped ]", length ); fPos += length; if( useStdin ) { int ch; while( length-- ) { ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, length - i ); return; } } } else fseek( inFile, length, SEEK_CUR ); } printString( level, "%c", '\n' ); if( isInteger ) { if( warnPadding ) complainInt( intBuffer, level ); if( warnNegative ) complain( "Integer is encoded as a negative value", 0, level ); } } /* Convert a binary OID to its string equivalent */ static int oidToString( char *textOID, int *textOIDlength, const BYTE *oid, const int oidLength ) { BYTE uuidBuffer[ 32 ]; long value; int length = 0, uuidBufPos = -1, uuidBitCount = 5, i; int validEncoding = TRUE, isUUID = FALSE; for( i = 0, value = 0; i < oidLength; i++ ) { const BYTE data = oid[ i ]; const long valTmp = value << 7; /* Pick apart the encoding. We keep going after hitting an encoding error at the start of an arc because the overall length is bounded and we may still be able to recover something worth printing */ if( value == 0 && data == 0x80 ) { /* Invalid leading zero value, 0x80 & 0x7F == 0 */ validEncoding = FALSE; } if( isUUID ) { value = 1; /* Set up dummy value since we're bypassing normal read */ if( uuidBitCount == 0 ) uuidBuffer[ uuidBufPos ] = data << 1; else { if( uuidBufPos >= 0 ) uuidBuffer[ uuidBufPos ] |= ( data & 0x7F ) >> ( 7 - uuidBitCount ); uuidBufPos++; if( uuidBitCount < 7 ) uuidBuffer[ uuidBufPos ] = data << ( uuidBitCount + 1 ); } uuidBitCount++; if( uuidBitCount > 7 ) uuidBitCount = 0; if( !( data & 0x80 ) ) { /* The following check isn't completely accurate since we could have less than 16 bytes present if there are leading zeroes, however to handle this properly we'd have to decode the entire value as a bignum and then format it appropriately, and given the fact that the use of these things is practically nonexistent it's probably not worth the code space to deal with this */ if( uuidBufPos != 16 ) { validEncoding = FALSE; break; } length += sprintf( textOID + length, " { %02x%02x%02x%02x-%02x%02x-%02x%02x-%02x%02x-%02x%02x%02x%02x%02x%02x }", uuidBuffer[ 0 ], uuidBuffer[ 1 ], uuidBuffer[ 2 ], uuidBuffer[ 3 ], uuidBuffer[ 4 ], uuidBuffer[ 5 ], uuidBuffer[ 6 ], uuidBuffer[ 7 ], uuidBuffer[ 8 ], uuidBuffer[ 9 ], uuidBuffer[ 10 ], uuidBuffer[ 11 ], uuidBuffer[ 12 ], uuidBuffer[ 13 ], uuidBuffer[ 14 ], uuidBuffer[ 15 ] ); value = 0; } continue; } if( value >= ( LONG_MAX >> 7 ) || \ valTmp >= LONG_MAX - ( data & 0x7F ) ) { validEncoding = FALSE; break; } value = valTmp | ( data & 0x7F ); if( value < 0 || value > LONG_MAX / 2 ) { validEncoding = FALSE; break; } if( !( data & 0x80 ) ) { if( length == 0 ) { long x, y; /* The first two levels are encoded into one byte since the root level has only 3 nodes (40*x + y), however if x = joint-iso-itu-t(2) then y may be > 39, so we have to add special-case handling for this */ x = value / 40; y = value % 40; if( x > 2 ) { /* Handle special case for large y if x == 2 */ y += ( x - 2 ) * 40; x = 2; } if( x < 0 || x > 2 || y < 0 || \ ( ( x < 2 && y > 39 ) || \ ( x == 2 && ( y > 50 && y != 100 ) ) ) ) { /* If x = 0 or 1 then y has to be 0...39, for x = 3 it can take any value but there are no known assigned values over 50 except for one contrived example in X.690 which sets y = 100, so if we see something outside this range it's most likely an encoding error rather than some bizarre new ID that's just appeared */ validEncoding = FALSE; break; } length = sprintf( textOID, "%ld %ld", x, y ); /* A totally stupid ITU facility lets people register UUIDs as OIDs (see http://www.itu.int/ITU-T/asn1/uuid.html), if we find one of these, which live under the arc '2 25' = 0x69 we have to continue decoding the OID as a UUID instead of a standard OID */ if( data == 0x69 ) isUUID = TRUE; } else length += sprintf( textOID + length, " %ld", value ); value = 0; } } if( value != 0 ) { /* We stopped in the middle of a continued value */ validEncoding = FALSE; } textOID[ length ] = '\0'; *textOIDlength = length; return( validEncoding ); } /* Dump a bitstring, reversing the bits into the standard order in the process */ static void dumpBitString( FILE *inFile, const int length, const int unused, const int level ) { unsigned int bitString = 0, currentBitMask = 0x80, remainderMask = 0xFF; int bitFlag, value = 0, noBits, bitNo = -1, i; char *errorStr = NULL; if( unused < 0 || unused > 7 ) complain( "Invalid number %d of unused bits", unused, level ); noBits = ( length * 8 ) - unused; /* ASN.1 bitstrings start at bit 0, so we need to reverse the order of the bits if necessary */ if( length > 0 ) { bitString = fgetc( inFile ); if( bitString == (unsigned)EOF ) { noBits = 0; errorStr = "Truncated BIT STRING data"; } fPos++; } for( i = noBits - 8; i > 0; i -= 8 ) { const int ch = fgetc( inFile ); if( ch == EOF ) { errorStr = "Truncated BIT STRING data"; break; } bitString = ( bitString << 8 ) | ch; currentBitMask <<= 8; remainderMask = ( remainderMask << 8 ) | 0xFF; fPos++; } if( errorStr != NULL ) { printString( level, "%c", '\n' ); complain( errorStr, 0, level ); return; } if( reverseBitString ) { for( i = 0, bitFlag = 1; i < noBits; i++ ) { if( bitString & currentBitMask ) value |= bitFlag; if( !( bitString & remainderMask ) && errorStr == NULL ) { /* The last valid bit should be a one bit */ errorStr = "Spurious zero bits in bitstring"; } bitFlag <<= 1; bitString <<= 1; } if( (unsigned)noBits < sizeof( int ) && \ ( ( remainderMask << noBits ) & value ) && \ errorStr != NULL ) { /* There shouldn't be any bits set after the last valid one. We have to do the noBits check to avoid a fencepost error when there's exactly 32 bits */ errorStr = "Spurious one bits in bitstring"; } } else value = bitString; /* Now that it's in the right order, dump it. If there's only one bit set (which is often the case for bit flags) we also print the bit number to save users having to count the zeroes to figure out which flag is set */ printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); printString( level, "%c", '\'' ); if( reverseBitString ) currentBitMask = 1 << ( noBits - 1 ); for( i = 0; i < noBits; i++ ) { if( value & currentBitMask ) { bitNo = ( bitNo == -1 ) ? ( noBits - 1 ) - i : -2; printString( level, "%c", '1' ); } else printString( level, "%c", '0' ); currentBitMask >>= 1; } if( bitNo >= 0 ) printString( level, "'B (bit %d)\n", bitNo ); else printString( level, "%s", "'B\n" ); if( errorStr != NULL ) complain( errorStr, 0, level ); } /* Display data as a text string up to a maximum of 240 characters (8 lines of 48 chars to match the hex limit of 8 lines of 16 bytes) with special treatement for control characters and other odd things that can turn up in BMPString and UniversalString types. If the string is less than 40 chars in length, we try to print it on the same line as the rest of the text (even if it wraps), otherwise we break it up into 48-char chunks in a somewhat less nice text-dump format */ static void displayString( FILE *inFile, long length, int level, const STR_OPTION strOption ) { char timeStr[ 64 ]; long noBytes = length; int lineLength = 48, i; int firstTime = TRUE, doTimeStr = FALSE, warnIA5 = FALSE; int warnPrintable = FALSE, warnTime = FALSE, warnBMP = FALSE; if( noBytes > 384 && !printAllData ) noBytes = 384; /* Only output a maximum of 384 bytes */ if( strOption == STR_UTCTIME || strOption == STR_GENERALIZED ) { if( ( strOption == STR_UTCTIME && length != 13 ) || \ ( strOption == STR_GENERALIZED && length != 15 ) ) warnTime = TRUE; else doTimeStr = rawTimeString ? FALSE : TRUE; } if( !doTimeStr && length <= 40 ) printString( level, "%s", " '" ); /* Print string on same line */ level = adjustLevel( level, ( doPure ) ? 15 : 8 ); for( i = 0; i < noBytes; i++ ) { int ch; /* If the string is longer than 40 chars, break it up into multiple sections */ if( length > 40 && !( i % lineLength ) ) { if( !firstTime ) printString( level, "%c", '\'' ); printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); printString( level, "%c", '\'' ); firstTime = FALSE; } ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, noBytes - i ); return; } #if defined( __WIN32__ ) || defined( __UNIX__ ) || defined( __OS390__ ) if( strOption == STR_BMP ) { if( i == noBytes - 1 && ( noBytes & 1 ) ) { /* Odd-length BMP string, complain */ warnBMP = TRUE; } else { const wchar_t wCh = ( ch << 8 ) | getc( inFile ); if( displayUnicode( wCh, level ) ) { lineLength++; i++; /* We've read two characters for a wchar_t */ fPos += 2; continue; } /* The value can't be displayed as Unicode, fall back to displaying it as normal text */ ungetc( wCh & 0xFF, inFile ); } } if( strOption == STR_UTF8 && ( ch & 0x80 ) ) { const int secondCh = getc( inFile ); wchar_t wCh; /* It's a multibyte UTF8 character, read it as a widechar */ if( ( ch & 0xE0 ) == 0xC0 ) /* 111xxxxx -> 110xxxxx */ { /* 2-byte character in the range 0x80...0x7FF */ wCh = ( ( ch & 0x1F ) << 6 ) | ( secondCh & 0x3F ); i++; /* We've read 2 characters */ fPos += 2; } else { if( ( ch & 0xF0 ) == 0xE0 ) /* 1111xxxx -> 1110xxxx */ { const int thirdCh = getc( inFile ); /* 3-byte character in the range 0x800...0xFFFF */ wCh = ( ( ch & 0x1F ) << 12 ) | \ ( ( secondCh & 0x3F ) << 6 ) | \ ( thirdCh & 0x3F ); } else wCh = '.'; i += 2; /* We've read 3 characters */ fPos += 3; } if( !displayUnicode( wCh, level ) ) printString( level, "%c", '.' ); lineLength++; continue; } #endif /* __WIN32__ || __UNIX__ || __OS390__ */ switch( strOption ) { case STR_PRINTABLE: case STR_IA5: case STR_LATIN1: if( strOption == STR_PRINTABLE && !isPrintable( ch ) ) warnPrintable = TRUE; if( strOption == STR_IA5 && !isIA5( ch ) ) warnIA5 = TRUE; if( strOption == STR_LATIN1 ) { if( !isprint( ch & 0x7F ) ) ch = '.'; /* Convert non-ASCII to placeholders */ } else { if( !isprint( ch ) ) ch = '.'; /* Convert non-ASCII to placeholders */ } #ifdef __OS390__ ch = asciiToEbcdic( ch ); #endif /* __OS390__ */ break; case STR_UTCTIME: case STR_GENERALIZED: if( !isdigit( ch ) && ch != 'Z' ) { warnTime = TRUE; if( !isprint( ch ) ) ch = '.'; /* Convert non-ASCII to placeholders */ } #ifdef __OS390__ ch = asciiToEbcdic( ch ); #endif /* __OS390__ */ break; case STR_BMP_REVERSED: if( i == noBytes - 1 && ( noBytes & 1 ) ) { /* Odd-length BMP string, complain */ warnBMP = TRUE; } /* Wrong-endianness BMPStrings (Microsoft Unicode) can't be handled through the usual widechar-handling mechanism above since the first widechar looks like an ASCII char followed by a null terminator, so we just treat them as ASCII chars, skipping the following zero byte. This is safe since the code that detects reversed BMPStrings has already checked that every second byte is zero */ getc( inFile ); i++; fPos++; /* Fall through */ default: if( !isprint( ch ) ) ch = '.'; /* Convert control chars to placeholders */ #ifdef __OS390__ ch = asciiToEbcdic( ch ); #endif /* __OS390__ */ } if( doTimeStr ) timeStr[ i ] = ch; else printString( level, "%c", ch ); fPos++; } if( length > 384 && !printAllData ) { length -= 384; printString( level, "%s", "'\n" ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 5 ); printString( level, "[ Another %ld characters skipped ]", length ); fPos += length; while( length-- ) { int ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, length ); return; } if( strOption == STR_PRINTABLE && !isPrintable( ch ) ) warnPrintable = TRUE; if( strOption == STR_IA5 && !isIA5( ch ) ) warnIA5 = TRUE; } } else { if( doTimeStr ) { const char *timeStrPtr = ( strOption == STR_UTCTIME ) ? \ timeStr : timeStr + 2; printString( level, " %c%c/%c%c/", timeStrPtr[ 4 ], timeStrPtr[ 5 ], timeStrPtr[ 2 ], timeStrPtr[ 3 ] ); if( strOption == STR_UTCTIME ) { printString( level, "%s", ( timeStr[ 0 ] < '5' ) ? "20" : "19" ); } else { printString( level, "%c%c", timeStr[ 0 ], timeStr[ 1 ] ); } printString( level, "%c%c %c%c:%c%c:%c%c GMT", timeStrPtr[ 0 ], timeStrPtr[ 1 ], timeStrPtr[ 6 ], timeStrPtr[ 7 ], timeStrPtr[ 8 ], timeStrPtr[ 9 ], timeStrPtr[ 10 ], timeStrPtr[ 11 ] ); } else printString( level, "%c", '\'' ); } printString( level, "%c", '\n' ); /* Display any problems we encountered */ if( warnPrintable ) complain( "PrintableString contains illegal character(s)", 0, level ); if( warnIA5 ) complain( "IA5String contains illegal character(s)", 0, level ); if( warnTime ) complain( "Time is encoded incorrectly", 0, level ); if( warnBMP ) complain( "BMPString has missing final byte/half character", 0, level ); } /* * *************************************************************************** * * ASN.1 Parsing Routines * * *************************************************************************** */ /* Get an ASN.1 object's tag and length. Returns TRUE for an item available, FALSE for end-of-data, and a negative value for an invalid data */ static int getItem( FILE *inFile, ASN1_ITEM *item ) { int tag, length, index = 0; memset( item, 0, sizeof( ASN1_ITEM ) ); item->indefinite = FALSE; tag = item->header[ index++ ] = fgetc( inFile ); if( tag == EOF ) return( FALSE ); fPos++; item->id = tag & ~TAG_MASK; tag &= TAG_MASK; if( tag == TAG_MASK ) { int value; /* Long tag encoded as sequence of 7-bit values. This doesn't try to handle tags > INT_MAX, it'd be pretty peculiar ASN.1 if it had to use tags this large */ tag = 0; do { value = fgetc( inFile ); if( value == EOF ) return( FALSE ); tag = ( tag << 7 ) | ( value & 0x7F ); item->header[ index++ ] = value; fPos++; } while( value & LEN_XTND && index < 5 && !feof( inFile ) ); if( index >= 5 ) return( FALSE ); } item->tag = tag; length = fgetc( inFile ); if( length == EOF ) return( FALSE ); fPos++; item->header[ index++ ] = length; item->headerSize = index; if( length & LEN_XTND ) { const int lengthStart = index; int i; length &= LEN_MASK; if( length > 4 ) { /* Impossible length value, probably because we've run into the weeds */ return( -1 ); } item->headerSize += length; item->length = 0; if( !length ) item->indefinite = TRUE; for( i = 0; i < length; i++ ) { int ch = fgetc( inFile ); if( ch == EOF ) { fPos += length - i; return( FALSE ); } item->length = ( item->length << 8 ) | ch; item->header[ i + index ] = ch; } fPos += length; /* Check for the length being less then 128, which means it shouldn't be encoded as a long length */ if( !item->indefinite && item->length < 128 ) item->nonCanonical = lengthStart; /* Check for the first 9 bits of the length being identical and if they are, remember where the encoded non-canonical length starts */ if( item->headerSize - lengthStart > 1 ) { if( ( item->header[ lengthStart ] == 0x00 ) && \ ( ( item->header[ lengthStart + 1 ] & 0x80 ) == 0x00 ) ) item->nonCanonical = lengthStart - 1; if( ( item->header[ lengthStart ] == 0xFF ) && \ ( ( item->header[ lengthStart + 1 ] & 0x80 ) == 0x80 ) ) item->nonCanonical = lengthStart - 1; } } else item->length = length; return( TRUE ); } /* Check whether a BIT STRING or OCTET STRING encapsulates another object */ static int checkEncapsulate( FILE *inFile, const int length ) { ASN1_ITEM nestedItem; const int currentPos = fPos; int diffPos, status; /* If we're not looking for encapsulated objects, return */ if( !checkEncaps ) return( FALSE ); /* An item of length < 2 can never have encapsulated data. Even for length 2 it can only be an encapsulated NULL, which is somewhat odd, but no doubt there's some PKI protocol somewhere that does this */ if( length < 2 ) return( FALSE ); /* Read the details of the next item in the input stream */ status = getItem( inFile, &nestedItem ); diffPos = fPos - currentPos; fPos = currentPos; fseek( inFile, -diffPos, SEEK_CUR ); if( status <= 0 ) return( FALSE ); /* If it's not a standard tag class, don't try and dig down into it */ if( ( nestedItem.id & CLASS_MASK ) != UNIVERSAL && \ ( nestedItem.id & CLASS_MASK ) != CONTEXT ) return( FALSE ); /* There is one special-case situation that overrides the check below, which is when the nested content is indefinite-length. This is rather tricky to check for because we'd need to read some distance ahead into the stream to be able to safely decide whether we've got true nested content or a false positive, for now we require that the nested content has to be a SEQUENCE containing valid ASN.1 at the start, giving about 24 bits of checking. There's a small risk of false negatives for encapsulated primitive items, but since they're primitive it should be relatively easy to make out the contents inside the OCTET STRING */ if( nestedItem.tag == SEQUENCE && nestedItem.indefinite ) { /* Skip the indefinite-length SEQUENCE and make sure that it's followed by a valid item */ status = getItem( inFile, &nestedItem ); if( status > 0 ) status = getItem( inFile, &nestedItem ); diffPos = fPos - currentPos; fPos = currentPos; fseek( inFile, -diffPos, SEEK_CUR ); if( status <= 0 ) return( FALSE ); /* If the tag on the nest item looks vaguely valid, assume that we've go nested content */ if( ( nestedItem.tag <= 0 || nestedItem.tag > 0x31 ) || \ ( nestedItem.length >= length ) ) return( FALSE ); return( TRUE ); } /* If it doesn't fit exactly within the current item it's not an encapsulated object */ if( nestedItem.length != length - diffPos ) return( FALSE ); /* If it doesn't have a valid-looking tag, don't try and go any further */ if( nestedItem.tag <= 0 || nestedItem.tag > 0x31 ) return( FALSE ); /* Now things get a bit complicated because it's possible to get some (very rare) false positives, for example if a NUMERICSTRING of exactly the right length is nested within an OCTET STRING, since numeric values all look like constructed tags of some kind. To handle this we look for nested constructed items that should really be primitive */ if( ( nestedItem.id & FORM_MASK ) == PRIMITIVE ) return( TRUE ); /* It's constructed, make sure that it's something for which it makes sense as a constructed object. At worst this will give some false negatives for really wierd objects (nested constructed strings inside OCTET STRINGs), but these should probably never occur anyway */ if( nestedItem.tag == SEQUENCE || \ nestedItem.tag == SET ) return( TRUE ); return( FALSE ); } /* Check whether a zero-length item is OK */ static int zeroLengthOK( const ASN1_ITEM *item ) { /* An implicitly-tagged NULL can have a zero length. An occurrence of this type of item is almost always an error, however OCSP uses a weird status encoding that encodes result values in tags and then has to use a NULL value to indicate that there's nothing there except the tag that encodes the status, so we allow this as well if zero-length content is explicitly enabled */ if( zeroLengthAllowed && ( item->id & CLASS_MASK ) == CONTEXT ) return( TRUE ); /* If we can't recognise the type from the tag, reject it */ if( ( item->id & CLASS_MASK ) != UNIVERSAL ) return( FALSE ); /* The following types are zero-length by definition */ if( item->tag == EOC || item->tag == NULLTAG ) return( TRUE ); /* A real with a value of zero has zero length */ if( item->tag == REAL ) return( TRUE ); /* Everything after this point requires input from the user to say that zero-length data is OK (usually it's not, so we flag it as a problem) */ if( !zeroLengthAllowed ) return( FALSE ); /* String types can have zero length except for the Unrestricted Character String type ([UNIVERSAL 29]) which has to have at least one octet for the CH-A/CH-B index */ if( item->tag == OCTETSTRING || item->tag == NUMERICSTRING || \ item->tag == PRINTABLESTRING || item->tag == T61STRING || \ item->tag == VIDEOTEXSTRING || item->tag == VISIBLESTRING || \ item->tag == IA5STRING || item->tag == GRAPHICSTRING || \ item->tag == GENERALSTRING || item->tag == UNIVERSALSTRING || \ item->tag == BMPSTRING || item->tag == UTF8STRING || \ item->tag == OBJDESCRIPTOR ) return( TRUE ); /* SEQUENCE and SET can be zero if there are absent optional/default components */ if( item->tag == SEQUENCE || item->tag == SET ) return( TRUE ); return( FALSE ); } /* Check whether the next item looks like text */ static STR_OPTION checkForText( FILE *inFile, const int length ) { char buffer[ 16 ]; int isBMP = FALSE, isUnicode = FALSE; int sampleLength = min( length, 16 ), i; /* If the sample is very short, we're more careful about what we accept */ if( sampleLength < 4 ) { /* If the sample size is too small, don't try anything */ if( sampleLength <= 2 ) return( STR_NONE ); /* For samples of 3-4 characters we only allow ASCII text. These short strings are used in some places (eg PKCS #12 files) as IDs */ sampleLength = fread( buffer, 1, sampleLength, inFile ); if( sampleLength <= 0 ) return( STR_NONE ); fseek( inFile, -sampleLength, SEEK_CUR ); for( i = 0; i < sampleLength; i++ ) { const int ch = byteToInt( buffer[ i ] ); if( !( isalpha( ch ) || isdigit( ch ) || isspace( ch ) ) ) return( STR_NONE ); } return( STR_IA5 ); } /* Check for ASCII-looking text */ sampleLength = fread( buffer, 1, sampleLength, inFile ); if( sampleLength <= 0 ) return( STR_NONE ); fseek( inFile, -sampleLength, SEEK_CUR ); if( isdigit( byteToInt( buffer[ 0 ] ) ) && \ ( length == 13 || length == 15 ) && \ buffer[ length - 1 ] == 'Z' ) { /* It looks like a time string, make sure that it really is one */ for( i = 0; i < length - 1; i++ ) { if( !isdigit( byteToInt( buffer[ i ] ) ) ) break; } if( i == length - 1 ) return( ( length == 13 ) ? STR_UTCTIME : STR_GENERALIZED ); } for( i = 0; i < sampleLength; i++ ) { /* If even bytes are zero, it could be a BMPString. Initially we set isBMP to FALSE, if it looks like a BMPString we set it to TRUE, if we then encounter a nonzero byte it's neither an ASCII nor a BMPString */ if( !( i & 1 ) ) { if( !buffer[ i ] ) { /* If we thought we were in a Unicode string but we've found a zero byte where it'd occur in a BMP string, it's neither a Unicode nor BMP string */ if( isUnicode ) return( STR_NONE ); /* We've collapsed the eigenstate (in an earlier incarnation isBMP could take values of -1, 0, or 1, with 0 being undecided, in which case this comment made a bit more sense) */ if( i < sampleLength - 2 ) { /* If the last char(s) are zero but preceding ones weren't, don't treat it as a BMP string. This can happen when storing a null-terminated string if the implementation gets the length wrong and stores the null as well */ isBMP = TRUE; } continue; } else { /* If we thought we were in a BMPString but we've found a nonzero byte where there should be a zero, it's neither an ASCII nor BMP string */ if( isBMP ) return( STR_NONE ); } } else { /* Just to make it tricky, Microsoft stuff Unicode strings into some places (to avoid having to convert them to BMPStrings, presumably) so we have to check for these as well */ if( !buffer[ i ] ) { if( isBMP ) return( STR_NONE ); isUnicode = TRUE; continue; } else { if( isUnicode ) return( STR_NONE ); } } if( buffer[ i ] < 0x20 || buffer[ i ] > 0x7E ) return( STR_NONE ); } /* It looks like a text string */ return( isUnicode ? STR_BMP_REVERSED : isBMP ? STR_BMP : STR_IA5 ); } /* Dump the header bytes for an object, useful for vgrepping the original object from a hex dump */ static void dumpHeader( FILE *inFile, const ASN1_ITEM *item, const int level ) { int extraLen = 24 - item->headerSize, i; /* Dump the tag and length bytes */ if( !doPure ) printString( level, "%s", " " ); printString( level, "<%02X", *item->header ); for( i = 1; i < item->headerSize; i++ ) printString( level, " %02X", item->header[ i ] ); /* If we're asked for more, dump enough extra data to make up 24 bytes. This is somewhat ugly since it assumes we can seek backwards over the data, which means it won't always work on streams */ if( extraLen > 0 && doDumpHeader > 1 ) { /* Make sure that we don't print too much data. This doesn't work for indefinite-length data, we don't try and guess the length with this since it involves picking apart what we're printing */ if( extraLen > item->length && !item->indefinite ) extraLen = ( int ) item->length; for( i = 0; i < extraLen; i++ ) { const int ch = fgetc( inFile ); if( ch == EOF ) { /* Exit loop and get fseek() offset correct */ extraLen = i; break; } printString( level, " %02X", ch ); } fseek( inFile, -extraLen, SEEK_CUR ); } printString( level, "%s", ">\n" ); } /* Print a constructed ASN.1 object */ static int printAsn1( FILE *inFile, const int level, long length, const int isIndefinite ); static void markConstructed( const int level, const ASN1_ITEM *item ) { /* If it's a type that's not normally constructed, tag it as such */ if( item->id == BOOLEAN || item->id == INTEGER || \ item->id == BITSTRING || item->id == OCTETSTRING || \ item->id == ENUMERATED || item->id == UTF8STRING || \ ( item->id >= NUMERICSTRING && item->id <= BMPSTRING ) ) printString( level, "%s", " (constructed)" ); } static void printConstructed( FILE *inFile, int level, const ASN1_ITEM *item ) { int result; /* Special case for zero-length objects */ if( !item->length && !item->indefinite ) { printString( level, "%s", " {}\n" ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } printString( level, "%s", " {\n" ); if( item->nonCanonical ) complainLengthCanonical( item, level ); result = printAsn1( inFile, level + 1, item->length, item->indefinite ); if( result ) { fprintf( output, "Error: Inconsistent object length, %d byte%s " "difference.\n", result, ( result > 1 ) ? "s" : "" ); noErrors++; } if( !doPure ) printString( level, "%s", INDENT_STRING ); printString( level, "%s", ( printDots ) ? ". " : " " ); doIndent( level ); printString( level, "%s", "}\n" ); } /* Print a single ASN.1 object */ static void printASN1object( FILE *inFile, ASN1_ITEM *item, int level ) { OIDINFO *oidInfo; STR_OPTION stringType; BYTE buffer[ MAX_OID_SIZE ]; const int nonOutlineObject = \ ( doOutlineOnly && ( item->id & FORM_MASK ) != CONSTRUCTED ) ? \ TRUE : FALSE; if( ( item->id & CLASS_MASK ) != UNIVERSAL ) { static const char *const classtext[] = { "UNIVERSAL ", "APPLICATION ", "", "PRIVATE " }; /* Print the object type */ if( !nonOutlineObject ) { printString( level, "[%s%d]", classtext[ ( item->id & CLASS_MASK ) >> 6 ], item->tag ); } /* Perform a sanity check */ if( ( item->tag != NULLTAG ) && ( item->length < 0 ) ) { int i; fflush( stdout ); fprintf( stderr, "\nError: Object has bad length field, tag = %02X, " "length = %lX, value =", item->tag, item->length ); fprintf( stderr, "<%02X", *item->header ); for( i = 1; i < item->headerSize; i++ ) fprintf( stderr, " %02X", item->header[ i ] ); fputs( ">.\n", stderr ); exit( EXIT_FAILURE ); } if( !item->length && !item->indefinite && !zeroLengthOK( item ) ) { printString( level, "%c", '\n' ); complain( "Object has zero length", 0, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } /* If it's constructed, print the various fields in it */ if( ( item->id & FORM_MASK ) == CONSTRUCTED ) { markConstructed( level, item ); printConstructed( inFile, level, item ); return; } /* It'sprimitive, if we're only displaying the ASN.1 in outline form, supress the display by dumping it with a nesting level that ensures it won't get output (this clears the data from the input without displaying it) */ if( nonOutlineObject ) { dumpHex( inFile, item->length, 1000, FALSE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); printString( level, "%c", '\n' ); return; } /* It's primitive, if it's a seekable stream try and determine whether it's text so we can display it as such */ if( !useStdin && \ ( stringType = checkForText( inFile, item->length ) ) != STR_NONE ) { /* It looks like a text string, dump it as text */ displayString( inFile, item->length, level, stringType ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } /* This could be anything, dump it as hex data */ dumpHex( inFile, item->length, level, FALSE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } /* Print the object type */ if( !doOutlineOnly || ( item->id & FORM_MASK ) == CONSTRUCTED ) printString( level, "%s", idstr( item->tag ) ); /* Perform a sanity check */ if( ( item->tag != NULLTAG ) && ( item->length < 0 ) ) { int i; fflush( stdout ); fprintf( stderr, "\nError: Object has bad length field, tag = %02X, " "length = %lX, value =", item->tag, item->length ); fprintf( stderr, "<%02X", *item->header ); for( i = 1; i < item->headerSize; i++ ) fprintf( stderr, " %02X", item->header[ i ] ); fputs( ">.\n", stderr ); exit( EXIT_FAILURE ); } /* If it's constructed, print the various fields in it */ if( ( item->id & FORM_MASK ) == CONSTRUCTED ) { markConstructed( level, item ); printConstructed( inFile, level, item ); return; } /* It's primitive */ if( doOutlineOnly ) { /* If we're only displaying the ASN.1 in outline form, set an artificially high nesting level that ensures it won't get output (this clears the data from the input without displaying it) */ level = 1000; } if( !item->length && !zeroLengthOK( item ) ) { printString( level, "%c", '\n' ); complain( "Object has zero length", 0, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } switch( item->tag ) { case BOOLEAN: { int ch; if( item->length != 1 ) complainLength( item, level ); ch = getc( inFile ); if( ch == EOF ) { complainEOF( level, 1 ); return; } printString( level, " %s\n", ch ? "TRUE" : "FALSE" ); if( ch != 0 && ch != 0xFF ) { complain( "BOOLEAN '%02X' has non-DER encoding", ch, level ); } if( item->nonCanonical ) complainLengthCanonical( item, level ); fPos++; break; } case INTEGER: case ENUMERATED: if( item->length > 4 ) { dumpHex( inFile, item->length, level, TRUE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); } else { printValue( inFile, item->length, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); } break; case BITSTRING: { int ch; if( item->length < 2 ) complainLength( item, level ); if( ( ch = getc( inFile ) ) != 0 ) { if( ch == EOF ) { complainEOF( level, item->length ); return; } printString( level, " %d unused bit%s", ch, ( ch != 1 ) ? "s" : "" ); } fPos++; if( !--item->length && !ch ) { printString( level, "%c", '\n' ); complain( "Object has zero length", 0, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } if( (unsigned)item->length <= sizeof( int ) ) { /* It's short enough to be a bit flag, dump it as a sequence of bits */ dumpBitString( inFile, ( int ) item->length, ch, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; } /* Fall through to dump it as an octet string */ } /* fallthrough */ case OCTETSTRING: if( checkEncapsulate( inFile, item->length ) ) { /* It's something encapsulated inside the string, print it as a constructed item */ printString( level, "%s", ", encapsulates" ); printConstructed( inFile, level, item ); break; } if( !useStdin && !dumpText && \ ( stringType = checkForText( inFile, item->length ) ) != STR_NONE ) { /* If we'd be doing a straight hex dump and it looks like encapsulated text, display it as such. If the user has overridden character set type checking and it's a string type for which we normally perform type checking, we reset its type to none */ displayString( inFile, item->length, level, \ ( !checkCharset && ( stringType == STR_IA5 || \ stringType == STR_PRINTABLE ) ) ? \ STR_NONE : stringType ); if( item->nonCanonical ) complainLengthCanonical( item, level ); return; } dumpHex( inFile, item->length, level, FALSE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case OID: { char textOID[ 128 ]; int length, isValid; /* Hierarchical Object Identifier */ if( item->length <= 0 || item->length >= MAX_OID_SIZE ) { fflush( stdout ); fprintf( stderr, "\nError: Object identifier length %ld too " "large.\n", item->length ); exit( EXIT_FAILURE ); } length = fread( buffer, 1, ( size_t ) item->length, inFile ); fPos += item->length; if( item->length < 3 ) { fputs( ".\n", output ); complainLength( item, level ); break; } if( length < item->length ) { fputs( ".\n", output ); complain( "Invalid OID data", 0, level ); break; } if( ( oidInfo = getOIDinfo( buffer, ( int ) item->length ) ) != NULL ) { /* Convert the binary OID to text form */ isValid = oidToString( textOID, &length, buffer, ( int ) item->length ); /* Check if LHS status info + indent + "OID " string + oid name + "(" + oid value + ")" will wrap */ if( ( ( doPure ) ? 0 : INDENT_SIZE ) + ( level * 2 ) + 18 + \ strlen( oidInfo->description ) + 2 + length >= (unsigned)outputWidth ) { printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); } else printString( level, "%c", ' ' ); printString( level, "%s (%s)\n", oidInfo->description, textOID ); /* Display extra comments about the OID if required */ if( extraOIDinfo && oidInfo->comment != NULL ) { if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); printString( level, "(%s)\n", oidInfo->comment ); } if( !isValid ) complain( "OID has invalid encoding", 0, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); /* If there's a warning associated with this OID, remember that there was a problem */ if( oidInfo->warn ) noWarnings++; break; } /* Print the OID as a text string */ isValid = oidToString( textOID, &length, buffer, ( int ) item->length ); printString( level, " '%s'\n", textOID ); if( item->length > MAX_SANE_OID_SIZE ) { /* This only occurs with Microsoft's "encode random noise and call it an OID" values, so we warn about the fact that it's not really an OID */ complain( "OID contains random garbage", 0, level ); } if( !isValid ) complain( "OID has invalid encoding", 0, level ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; } case EOC: printString( level, "<<EOC>> %c", '\n' ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case NULLTAG: printString( level, "%c", '\n' ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case OBJDESCRIPTOR: case GRAPHICSTRING: case VISIBLESTRING: case GENERALSTRING: case UNIVERSALSTRING: case NUMERICSTRING: case VIDEOTEXSTRING: case PRINTABLESTRING: displayString( inFile, item->length, level, STR_PRINTABLE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case UTF8STRING: displayString( inFile, item->length, level, STR_UTF8 ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case BMPSTRING: displayString( inFile, item->length, level, STR_BMP ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case UTCTIME: displayString( inFile, item->length, level, STR_UTCTIME ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case GENERALIZEDTIME: displayString( inFile, item->length, level, STR_GENERALIZED ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case IA5STRING: displayString( inFile, item->length, level, STR_IA5 ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case T61STRING: displayString( inFile, item->length, level, STR_LATIN1 ); if( item->nonCanonical ) complainLengthCanonical( item, level ); break; case SEQUENCE: printString( level, "%c", '\n' ); complain( "SEQUENCE has invalid primitive encoding", 0, level ); break; case SET: printString( level, "%c", '\n' ); complain( "SET has invalid primitive encoding", 0, level ); break; default: printString( level, "%c", '\n' ); if( !doPure ) printString( level, "%s", INDENT_STRING ); doIndent( level + 1 ); printString( level, "%s", "Unrecognised primitive, hex value is:"); dumpHex( inFile, item->length, level, FALSE ); if( item->nonCanonical ) complainLengthCanonical( item, level ); noErrors++; /* Treat it as an error */ } } /* Print a complex ASN.1 object */ static long processObjectStart( FILE *inFile, const ASN1_ITEM *item ) { long length = LENGTH_MAGIC; /* If the length isn't known and the item has a definite length, set the length to the item's length */ if( !item->indefinite ) { length = item->headerSize + item->length; /* We can also adjust the width of the informational data column to maximise the amount of screen real estate (for lengths less than the default of four) or get rid of oversized columns (for lengths greater than four) */ if( length < 1000 ) infoWidth = 3; else if( length > 9999999 ) infoWidth = 8; else if( length > 999999 ) infoWidth = 7; else if( length > 99999 ) infoWidth = 6; else if( length > 9999 ) infoWidth = 5; } /* If the input isn't seekable, turn off some options that require the use of fseek(). This check isn't perfect (some streams are slightly seekable due to buffering) but it's better than nothing */ if( fseek( inFile, -item->headerSize, SEEK_CUR ) ) { useStdin = TRUE; checkEncaps = FALSE; puts( "Warning: Input is non-seekable, some functionality has been " "disabled." ); return( length ); } /* If it looks like we've been given a text file, typically due to the input being base64-encoded, check whether it is all text */ if( ( isalnum( item->header[ 0 ] ) && isalnum( item->header[ 1 ] ) ) || \ ( item->header[ 0 ] == '-' && item->header[ 1 ] == '-' ) ) { BYTE buffer[ 4 ]; int count, i; count = fread( buffer, 1, 4, inFile ); for( i = 0; i < count; i++ ) { if( buffer[ i ] != '-' && !isalnum( buffer[ i ] ) ) break; } if( i >= 4 ) { fputs( "Error: This file appears to be a base64-encoded text " "file, not binary data.\n", stderr ); fputs( " In order to display it you first need to decode " "it into its\n", stderr ); fputs( " binary form.\n", stderr ); exit( EXIT_FAILURE ); } fseek( inFile, -4, SEEK_CUR ); } /* Undo the fseek() that we used to determine whether the input was seekable */ fseek( inFile, item->headerSize, SEEK_CUR ); return( length ); } static int printAsn1( FILE *inFile, const int level, long length, const int isIndefinite ) { ASN1_ITEM item; long lastPos = fPos; int seenEOC = FALSE, status; /* Special-case for zero-length objects */ if( !length && !isIndefinite ) return( 0 ); while( ( status = getItem( inFile, &item ) ) > 0 ) { int nonOutlineObject = FALSE; /* Perform various special checks the first time that we're called */ if( length == LENGTH_MAGIC ) length = processObjectStart( inFile, &item ); /* Dump the header as hex data if requested */ if( doDumpHeader ) dumpHeader( inFile, &item, level ); /* If we're displaying the ASN.1 outline only and it's not a constructed object, don't display anything */ if( doOutlineOnly && ( item.id & FORM_MASK ) != CONSTRUCTED ) nonOutlineObject = TRUE; /* Print the offset and length, unless we're in pure ASN.1-only output mode or we're displaying the outline only and it's not a constructed object */ if( item.header[ 0 ] == EOC ) { seenEOC = TRUE; if( !isIndefinite) complain( "Spurious EOC in definite-length item", 0, level ); } if( !doPure && !nonOutlineObject ) { if( item.indefinite ) { printString( level, ( doHexValues ) ? \ LEN_HEX_INDEF : LEN_INDEF, lastPos ); } else { if( !seenEOC ) { printString( level, ( doHexValues ) ? \ LEN_HEX : LEN, lastPos, item.length ); } } } /* Print details on the item */ if( !seenEOC ) { if( !nonOutlineObject ) doIndent( level ); printASN1object( inFile, &item, level ); } /* If it was an indefinite-length object (no length was ever set) and we've come back to the top level, exit */ if( length == LENGTH_MAGIC ) return( 0 ); length -= fPos - lastPos; lastPos = fPos; if( isIndefinite ) { if( seenEOC ) return( 0 ); } else { if( length <= 0 ) { if( length < 0 ) return( ( int ) -length ); return( 0 ); } else { if( length == 1 ) { const int ch = fgetc( inFile ); /* If we've run out of input but there should be more present, let the caller know */ if( ch == EOF ) return( 1 ); /* No object can be one byte long, try and recover. This only works sometimes because it can be caused by spurious data in an OCTET STRING hole or an incorrect length encoding. The following workaround tries to recover from spurious data by skipping the byte if it's zero or a non-basic-ASN.1 tag, but keeping it if it could be valid ASN.1 */ if( ch > 0 && ch <= 0x31 ) ungetc( ch, inFile ); else { fPos++; return( 1 ); } } } } } if( status == -1 ) { int i; fflush( stdout ); fprintf( stderr, "\nError: Invalid data encountered at position " "%d:", fPos ); for( i = 0; i < item.headerSize; i++ ) fprintf( stderr, " %02X", item.header[ i ] ); fprintf( stderr, ".\n" ); exit( EXIT_FAILURE ); } /* If we see an EOF and there's supposed to be more data present, complain */ if( length && length != LENGTH_MAGIC ) { fprintf( output, "Error: Inconsistent object length, %ld byte%s " "difference.\n", length, ( length > 1 ) ? "s" : "" ); noErrors++; } return( 0 ); } /* Show usage and exit */ static void usageExit( void ) { puts( "DumpASN1 - ASN.1 object dump/syntax check program." ); puts( "Copyright Peter Gutmann 1997 - 2016. Last updated " UPDATE_STRING "." ); puts( "" ); puts( "Usage: dumpasn1 [-acdefghilmoprstuvwxz] <file>" ); puts( " Input options:" ); puts( " - = Take input from stdin (some options may not work properly)" ); puts( " -<number> = Start <number> bytes into the file" ); puts( " -- = End of arg list" ); puts( " -c<file> = Read Object Identifier info from alternate config file" ); puts( " (values will override equivalents in global config file)" ); puts( "" ); puts( " Output options:" ); puts( " -f<file> = Dump object at offset -<number> to file (allows data to be" ); puts( " extracted from encapsulating objects)" ); puts( " -w<number> = Set width of output, default = 80 columns" ); puts( "" ); puts( " Display options:" ); puts( " -a = Print all data in long data blocks, not just the first 128 bytes" ); puts( " -d = Print dots to show column alignment" ); puts( " -g = Display ASN.1 structure outline only (no primitive objects)" ); puts( " -h = Hex dump object header (tag+length) before the decoded output" ); puts( " -hh = Same as -h but display more of the object as hex data" ); puts( " -i = Use shallow indenting, for deeply-nested objects" ); puts( " -l = Long format, display extra info about Object Identifiers" ); puts( " -m<number> = Maximum nesting level for which to display content" ); puts( " -p = Pure ASN.1 output without encoding information" ); puts( " -t = Display text values next to hex dump of data" ); puts( " -v = Verbose mode, equivalent to -ahlt" ); puts( "" ); puts( " Format options:" ); puts( " -e = Don't print encapsulated data inside OCTET/BIT STRINGs" ); puts( " -r = Print bits in BIT STRING as encoded in reverse order" ); puts( " -u = Don't format UTCTime/GeneralizedTime string data" ); puts( " -x = Display size and offset in hex not decimal" ); puts( "" ); puts( " Checking options:" ); puts( " -o = Don't check validity of character strings hidden in octet strings" ); puts( " -s = Syntax check only, don't dump ASN.1 structures" ); puts( " -z = Allow zero-length items" ); puts( "" ); puts( "Warnings generated by deprecated OIDs require the use of '-l' to be displayed." ); puts( "Program return code is the number of errors found or EXIT_SUCCESS." ); exit( EXIT_FAILURE ); } int main( int argc, char *argv[] ) { FILE *inFile, *outFile = NULL; #ifdef __WIN32__ CONSOLE_SCREEN_BUFFER_INFO csbiInfo; #endif /* __WIN32__ */ #ifdef __OS390__ char pathPtr[ FILENAME_MAX ]; #else char *pathPtr = argv[ 0 ]; #endif /* __OS390__ */ long offset = 0; int moreArgs = TRUE, doCheckOnly = FALSE; #ifdef __OS390__ memset( pathPtr, '\0', sizeof( pathPtr ) ); getcwd( pathPtr, sizeof( pathPtr ) ); strcat( pathPtr, "/" ); #endif /* __OS390__ */ /* Skip the program name */ argv++; argc--; /* Display usage if no args given */ if( argc < 1 ) usageExit(); output = stdout; /* Needs to be assigned at runtime */ /* Get the output width. Under Unix there's no safe way to do this, so we default to 80 columns */ #ifdef __WIN32__ if( GetConsoleScreenBufferInfo( GetStdHandle( STD_OUTPUT_HANDLE ), &csbiInfo ) ) outputWidth = csbiInfo.dwSize.X; #endif /* __WIN32__ */ /* Check for arguments */ while( argc && *argv[ 0 ] == '-' && moreArgs ) { char *argPtr = argv[ 0 ] + 1; if( !*argPtr ) useStdin = TRUE; while( *argPtr ) { if( isdigit( byteToInt( *argPtr ) ) ) { offset = atol( argPtr ); break; } switch( toupper( byteToInt( *argPtr ) ) ) { case '-': moreArgs = FALSE; /* GNU-style end-of-args flag */ break; case 'A': printAllData = TRUE; break; case 'C': if( !readConfig( argPtr + 1, FALSE ) ) exit( EXIT_FAILURE ); while( argPtr[ 1 ] ) argPtr++; /* Skip rest of arg */ break; case 'D': printDots = TRUE; break; case 'E': checkEncaps = FALSE; break; case 'F': if( ( outFile = fopen( argPtr + 1, "wb" ) ) == NULL ) { perror( argPtr + 1 ); exit( EXIT_FAILURE ); } while( argPtr[ 1 ] ) argPtr++; /* Skip rest of arg */ break; case 'G': doOutlineOnly = TRUE; break; case 'H': doDumpHeader++; break; case 'I': shallowIndent = TRUE; break; case 'L': extraOIDinfo = TRUE; break; case 'M': maxNestLevel = atoi( argPtr + 1 ); if( maxNestLevel < 1 || maxNestLevel > 100 ) { puts( "Invalid maximum nesting level." ); exit( EXIT_FAILURE ); } while( argPtr[ 1 ] ) argPtr++; /* Skip rest of arg */ break; case 'O': checkCharset = FALSE; break; case 'P': doPure = TRUE; break; case 'R': reverseBitString = !reverseBitString; break; case 'S': doCheckOnly = TRUE; #if defined( __WIN32__ ) /* Under Windows we can't fclose( stdout ) because the VC++ runtime reassigns the stdout handle to the next open file (which is valid) but then scribbles stdout garbage all over it for files larger than about 16K (which isn't), so we have to make sure that the stdout handle is pointed to something somewhere */ ( void ) freopen( "nul", "w", stdout ); #elif defined( __UNIX__ ) /* Safety feature in case any Unix libc is as broken as the Win32 version */ ( void ) freopen( "/dev/null", "w", stdout ); #else fclose( stdout ); #endif /* OS-specific bypassing of stdout */ break; case 'T': dumpText = TRUE; break; case 'U': rawTimeString = TRUE; break; case 'V': printAllData = doDumpHeader = TRUE; extraOIDinfo = dumpText = TRUE; break; case 'W': outputWidth = atoi( argPtr + 1 ); if( outputWidth < 40 || outputWidth > 500 ) { puts( "Invalid output width." ); exit( EXIT_FAILURE ); } while( argPtr[ 1 ] ) argPtr++; /* Skip rest of arg */ break; case 'X': doHexValues = TRUE; break; case 'Z': zeroLengthAllowed = TRUE; break; default: printf( "Unknown argument '%c'.\n", *argPtr ); return( EXIT_SUCCESS ); } argPtr++; } argv++; argc--; } /* We can't use options that perform an fseek() if reading from stdin */ if( useStdin && ( doDumpHeader || outFile != NULL ) ) { puts( "Can't use -f or -h when taking input from stdin" ); exit( EXIT_FAILURE ); } /* Check args and read the config file. We don't bother weeding out dups during the read because (a) the linear search would make the process n^2, (b) during the dump process the search will terminate on the first match so dups aren't that serious, and (c) there should be very few dups present */ if( argc != 1 && !useStdin ) usageExit(); if( !readGlobalConfig( pathPtr ) ) exit( EXIT_FAILURE ); /* Dump the given file */ if( useStdin ) inFile = stdin; else { if( ( inFile = fopen( argv[ 0 ], "rb" ) ) == NULL ) { perror( argv[ 0 ] ); freeConfig(); exit( EXIT_FAILURE ); } } if( useStdin ) { while( offset-- ) getc( inFile ); } else fseek( inFile, offset, SEEK_SET ); if( outFile != NULL ) { ASN1_ITEM item; long length; int i, status; /* Make sure that there's something there, and that it has a definite length */ status = getItem( inFile, &item ); if( status == -1 ) { puts( "Non-ASN.1 data encountered." ); freeConfig(); exit( EXIT_FAILURE ); } if( status == 0 ) { puts( "Nothing to read." ); freeConfig(); exit( EXIT_FAILURE ); } if( item.indefinite ) { puts( "Cannot process indefinite-length item." ); freeConfig(); exit( EXIT_FAILURE ); } /* Copy the item across, first the header and then the data */ for( i = 0; i < item.headerSize; i++ ) putc( item.header[ i ], outFile ); for( length = 0; length < item.length && !feof( inFile ); length++ ) putc( getc( inFile ), outFile ); fclose( outFile ); fseek( inFile, offset, SEEK_SET ); } printAsn1( inFile, 0, LENGTH_MAGIC, 0 ); if( !useStdin && offset == 0 ) { BYTE buffer[ 16 ]; long position = ftell( inFile ); /* If we're dumping a standalone ASN.1 object and there's further data appended to it, warn the user of its existence. This is a bit hit-and-miss since there may or may not be additional EOCs present, dumpasn1 always stops once it knows that the data should end (without trying to read any trailing EOCs) because data from some sources has the EOCs truncated, and most apps know that they have to stop at min( data_end, EOCs ). To avoid false positives, we skip at least 4 EOCs worth of data and if there's still more present, we complain */ ( void ) fread( buffer, 1, 8, inFile ); /* Skip 4 EOCs */ if( !feof( inFile ) ) { fprintf( output, "Warning: Further data follows ASN.1 data at " "position %ld.\n", position ); noWarnings++; } } fclose( inFile ); freeConfig(); /* Print a summary of warnings/errors if it's required or appropriate */ if( !doPure ) { fflush( stdout ); if( !doCheckOnly ) fputc( '\n', stderr ); fprintf( stderr, "%d warning%s, %d error%s.\n", noWarnings, ( noWarnings != 1 ) ? "s" : "", noErrors, ( noErrors != 1 ) ? "s" : "" ); } return( ( noErrors ) ? noErrors : EXIT_SUCCESS ); }
the_stack_data/15763380.c
/* * @file startup_efr32bg13p.c * @brief CMSIS Compatible EFR32BG13P startup file in C. * Should be used with GCC 'GNU Tools ARM Embedded' * @version 5.5.0 * Date: 12 June 2014 * */ /* Copyright (c) 2011 - 2014 ARM LIMITED * * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - Neither the name of ARM nor the names of its contributors may be used * to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * ---------------------------------------------------------------------------*/ #include <stdint.h> #include <stdbool.h> /*---------------------------------------------------------------------------- * Linker generated Symbols *----------------------------------------------------------------------------*/ extern uint32_t __etext; extern uint32_t __data_start__; extern uint32_t __data_end__; extern uint32_t __copy_table_start__; extern uint32_t __copy_table_end__; extern uint32_t __zero_table_start__; extern uint32_t __zero_table_end__; extern uint32_t __bss_start__; extern uint32_t __bss_end__; extern uint32_t __StackTop; /*---------------------------------------------------------------------------- * Exception / Interrupt Handler Function Prototype *----------------------------------------------------------------------------*/ typedef union { void (*pFunc)(void); void *topOfStack; } tVectorEntry; /*---------------------------------------------------------------------------- * External References *----------------------------------------------------------------------------*/ #ifndef __START extern void _start(void) __attribute__((noreturn)); /* Pre Main (C library entry point) */ #else extern int __START(void) __attribute__((noreturn)); /* main entry point */ #endif #ifndef __NO_SYSTEM_INIT extern void SystemInit(void); /* CMSIS System Initialization */ #endif /*---------------------------------------------------------------------------- * Internal References *----------------------------------------------------------------------------*/ void Default_Handler(void); /* Default empty handler */ void Reset_Handler(void); /* Reset Handler */ /*---------------------------------------------------------------------------- * User Initial Stack & Heap *----------------------------------------------------------------------------*/ #ifndef __STACK_SIZE #define __STACK_SIZE 0x00000400 #endif static uint8_t stack[__STACK_SIZE] __attribute__ ((aligned(8), used, section(".stack"))); #ifndef __HEAP_SIZE #define __HEAP_SIZE 0x00000C00 #endif #if __HEAP_SIZE > 0 static uint8_t heap[__HEAP_SIZE] __attribute__ ((aligned(8), used, section(".heap"))); #endif /*---------------------------------------------------------------------------- * Exception / Interrupt Handler *----------------------------------------------------------------------------*/ /* Cortex-M Processor Exceptions */ void NMI_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void HardFault_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void MemManage_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void BusFault_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void UsageFault_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void DebugMon_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void SVC_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void PendSV_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); void SysTick_Handler(void) __attribute__ ((weak, alias("Default_Handler"))); /* Part Specific Interrupts */ void EMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void FRC_PRI_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WDOG0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WDOG1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void FRC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void MODEM_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void RAC_SEQ_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void RAC_RSM_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void BUFC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LDMA_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void GPIO_EVEN_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART0_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART0_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void ACMP0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void ADC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void IDAC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void I2C0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void GPIO_ODD_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TIMER1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART1_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART1_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LEUART0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PCNT0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void MSC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYPTO0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LETIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void AGC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PROTIMER_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void PRORTC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void RTCC_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void SYNTH_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYOTIMER_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void RFSENSE_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void FPUEH_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void SMU_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void WTIMER0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART2_RX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void USART2_TX_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void I2C1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void VDAC0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CSEN_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void LESENSE_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void CRYPTO1_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); void TRNG0_IRQHandler(void) __attribute__ ((weak, alias("Default_Handler"))); /*---------------------------------------------------------------------------- * Exception / Interrupt Vector table *----------------------------------------------------------------------------*/ extern const tVectorEntry __Vectors[]; const tVectorEntry __Vectors[] __attribute__ ((section(".vectors"))) = { /* Cortex-M Exception Handlers */ { .topOfStack = &__StackTop }, /* Initial Stack Pointer */ { Reset_Handler }, /* Reset Handler */ { NMI_Handler }, /* NMI Handler */ { HardFault_Handler }, /* Hard Fault Handler */ { MemManage_Handler }, /* MPU Fault Handler */ { BusFault_Handler }, /* Bus Fault Handler */ { UsageFault_Handler }, /* Usage Fault Handler */ { Default_Handler }, /* Reserved */ { Default_Handler }, /* Reserved */ { Default_Handler }, /* Reserved */ { Default_Handler }, /* Reserved */ { SVC_Handler }, /* SVCall Handler */ { DebugMon_Handler }, /* Debug Monitor Handler */ { Default_Handler }, /* Reserved */ { PendSV_Handler }, /* PendSV Handler */ { SysTick_Handler }, /* SysTick Handler */ /* External interrupts */ { EMU_IRQHandler }, /* 0 */ { FRC_PRI_IRQHandler }, /* 1 */ { WDOG0_IRQHandler }, /* 2 */ { WDOG1_IRQHandler }, /* 3 */ { FRC_IRQHandler }, /* 4 */ { MODEM_IRQHandler }, /* 5 */ { RAC_SEQ_IRQHandler }, /* 6 */ { RAC_RSM_IRQHandler }, /* 7 */ { BUFC_IRQHandler }, /* 8 */ { LDMA_IRQHandler }, /* 9 */ { GPIO_EVEN_IRQHandler }, /* 10 */ { TIMER0_IRQHandler }, /* 11 */ { USART0_RX_IRQHandler }, /* 12 */ { USART0_TX_IRQHandler }, /* 13 */ { ACMP0_IRQHandler }, /* 14 */ { ADC0_IRQHandler }, /* 15 */ { IDAC0_IRQHandler }, /* 16 */ { I2C0_IRQHandler }, /* 17 */ { GPIO_ODD_IRQHandler }, /* 18 */ { TIMER1_IRQHandler }, /* 19 */ { USART1_RX_IRQHandler }, /* 20 */ { USART1_TX_IRQHandler }, /* 21 */ { LEUART0_IRQHandler }, /* 22 */ { PCNT0_IRQHandler }, /* 23 */ { CMU_IRQHandler }, /* 24 */ { MSC_IRQHandler }, /* 25 */ { CRYPTO0_IRQHandler }, /* 26 */ { LETIMER0_IRQHandler }, /* 27 */ { AGC_IRQHandler }, /* 28 */ { PROTIMER_IRQHandler }, /* 29 */ { PRORTC_IRQHandler }, /* 30 */ { RTCC_IRQHandler }, /* 31 */ { SYNTH_IRQHandler }, /* 32 */ { CRYOTIMER_IRQHandler }, /* 33 */ { RFSENSE_IRQHandler }, /* 34 */ { FPUEH_IRQHandler }, /* 35 */ { SMU_IRQHandler }, /* 36 */ { WTIMER0_IRQHandler }, /* 37 */ { USART2_RX_IRQHandler }, /* 38 */ { USART2_TX_IRQHandler }, /* 39 */ { I2C1_IRQHandler }, /* 40 */ { VDAC0_IRQHandler }, /* 41 */ { CSEN_IRQHandler }, /* 42 */ { LESENSE_IRQHandler }, /* 43 */ { CRYPTO1_IRQHandler }, /* 44 */ { TRNG0_IRQHandler }, /* 45 */ { Default_Handler }, /* 46 - Reserved */ }; /*---------------------------------------------------------------------------- * Reset Handler called on controller reset *----------------------------------------------------------------------------*/ void Reset_Handler(void) { uint32_t *pSrc, *pDest; uint32_t start, end; uint32_t tableStart __attribute__((unused)); uint32_t tableEnd __attribute__((unused)); #ifndef __NO_SYSTEM_INIT SystemInit(); #endif /* Firstly it copies data from read only memory to RAM. There are two schemes * to copy. One can copy more than one sections. Another can only copy * one section. The former scheme needs more instructions and read-only * data to implement than the latter. * Macro __STARTUP_COPY_MULTIPLE is used to choose between two schemes. */ #ifdef __STARTUP_COPY_MULTIPLE /* Multiple sections scheme. * * Between symbol address __copy_table_start__ and __copy_table_end__, * there are array of triplets, each of which specify: * offset 0: LMA of start of a section to copy from * offset 4: VMA of start of a section to copy to * offset 8: size of the section to copy. Must be multiply of 4 * * All addresses must be aligned to 4 bytes boundary. */ tableStart = (uint32_t) &__copy_table_start__; tableEnd = (uint32_t) &__copy_table_end__; for (; tableStart < tableEnd; tableStart += 12U) { pSrc = (uint32_t *) (*(uint32_t *) tableStart); start = *(uint32_t *) (tableStart + 4U); end = *(uint32_t *) (tableStart + 8U) + start; pDest = (uint32_t *) start; for (; start < end; start += 4U) { *pDest++ = *pSrc++; } } #else /* Single section scheme. * * The ranges of copy from/to are specified by following symbols * __etext: LMA of start of the section to copy from. Usually end of text * __data_start__: VMA of start of the section to copy to * __data_end__: VMA of end of the section to copy to * * All addresses must be aligned to 4 bytes boundary. */ pSrc = &__etext; pDest = &__data_start__; start = (uint32_t) &__data_start__; end = (uint32_t) &__data_end__; for (; start < end; start += 4U) { *pDest++ = *pSrc++; } #endif /*__STARTUP_COPY_MULTIPLE */ /* This part of work usually is done in C library startup code. Otherwise, * define this macro to enable it in this startup. * * There are two schemes too. One can clear multiple BSS sections. Another * can only clear one section. The former is more size expensive than the * latter. * * Define macro __STARTUP_CLEAR_BSS_MULTIPLE to choose the former. * Otherwise efine macro __STARTUP_CLEAR_BSS to choose the later. */ #ifdef __STARTUP_CLEAR_BSS_MULTIPLE /* Multiple sections scheme. * * Between symbol address __zero_table_start__ and __zero_table_end__, * there are array of tuples specifying: * offset 0: Start of a BSS section * offset 4: Size of this BSS section. Must be multiply of 4 */ tableStart = (uint32_t) &__zero_table_start__; tableEnd = (uint32_t) &__zero_table_end__; for (; tableStart < tableEnd; tableStart += 8U) { start = *(uint32_t *) tableStart; end = *(uint32_t *) (tableStart + 4U) + start; pDest = (uint32_t *) start; for (; start < end; start += 4U) { *pDest++ = 0; } } #elif defined (__STARTUP_CLEAR_BSS) /* Single BSS section scheme. * * The BSS section is specified by following symbols * __bss_start__: start of the BSS section. * __bss_end__: end of the BSS section. * * Both addresses must be aligned to 4 bytes boundary. */ pDest = &__bss_start__; start = (uint32_t) &__bss_start__; end = (uint32_t) &__bss_end__; for (; start < end; start += 4U) { *pDest++ = 0; } #endif /* __STARTUP_CLEAR_BSS_MULTIPLE || __STARTUP_CLEAR_BSS */ #ifndef __START #define __START _start #endif __START(); } /*---------------------------------------------------------------------------- * Default Handler for Exceptions / Interrupts *----------------------------------------------------------------------------*/ void Default_Handler(void) { while (true) { } }
the_stack_data/225142665.c
#include<stdio.h> #include<sys/socket.h> #include<stdlib.h> #include<netinet/in.h> int main() { char msg[] = "Trying Scoket Programming in C"; int sfd = socket(AF_INET, SOCK_DGRAM, 0); if (sfd == 0) { printf("Socket Failed\n" ); exit(EXIT_FAILURE); } struct sockaddr_in address; address.sin_family = AF_INET; address.sin_addr.s_addr = INADDR_ANY; address.sin_port = htons(8080); if(bind(sfd, (struct sockaddr*) &address, sizeof(address)) < 0); { printf("Sending Failure\n" ); exit(EXIT_FAILURE); } close(sfd); printf("Socket Closed\n"); return 0; }
the_stack_data/104829063.c
//指针加法 #include <stdio.h> #define LENGTH 5 int main(void){ short sArr[LENGTH]; short *sPtr; double dArr[LENGTH]; double *dPtr; sPtr=sArr; dPtr=dArr; for(int i=0;i<LENGTH;i++){ printf("shortPointer+%d=%p doublePointer+%d=%p\n",i,sPtr+i,i,dPtr+i); } return 0; }
the_stack_data/143153.c
/* { dg-do compile } */ /* { dg-options "-O2 -mno-indirect-branch-register -mfunction-return=keep -mindirect-branch=thunk -fno-pic" } */ typedef void (*dispatch_t)(long offset); dispatch_t dispatch; void male_indirect_jump (long offset) { dispatch(offset); } /* { dg-final { scan-assembler "push(?:l|q)\[ \t\]*_?dispatch" { target { { ! x32 } && *-*-linux* } } } } */ /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk" { target { ! x32 } } } } */ /* { dg-final { scan-assembler "jmp\[ \t\]*__x86_indirect_thunk_(r|e)ax" { target x32 } } } */ /* { dg-final { scan-assembler "jmp\[ \t\]*\.LIND" } } */ /* { dg-final { scan-assembler "call\[ \t\]*\.LIND" } } */ /* { dg-final { scan-assembler {\tpause} } } */ /* { dg-final { scan-assembler {\tlfence} } } */
the_stack_data/303301.c
// RUN: %clang_cc1 -fms-extensions -DDECLARE_SETJMP -triple i686-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=I386 %s // RUN: %clang_cc1 -fms-extensions -DDECLARE_SETJMP -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=X64 %s // RUN: %clang_cc1 -fms-extensions -DDECLARE_SETJMP -triple aarch64-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=AARCH64 %s // RUN: %clang_cc1 -fms-extensions -triple i686-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=I386 %s // RUN: %clang_cc1 -fms-extensions -triple x86_64-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=X64 %s // RUN: %clang_cc1 -fms-extensions -triple aarch64-windows-msvc -emit-llvm %s -o - | FileCheck --check-prefix=AARCH64 %s typedef char jmp_buf[1]; #ifdef DECLARE_SETJMP int _setjmp(jmp_buf env); int _setjmpex(jmp_buf env); #endif jmp_buf jb; int test_setjmp() { return _setjmp(jb); // I386-LABEL: define dso_local i32 @test_setjmp // I386: %[[call:.*]] = call i32 (i8*, i32, ...) @_setjmp3(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @jb, i32 0, i32 0), i32 0) // I386-NEXT: ret i32 %[[call]] // X64-LABEL: define dso_local i32 @test_setjmp // X64: %[[addr:.*]] = call i8* @llvm.frameaddress(i32 0) // X64: %[[call:.*]] = call i32 @_setjmp(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @jb, i32 0, i32 0), i8* %[[addr]]) // X64-NEXT: ret i32 %[[call]] // AARCH64-LABEL: define dso_local i32 @test_setjmp // AARCH64: %[[addr:.*]] = call i8* @llvm.frameaddress(i32 0) // AARCH64: %[[call:.*]] = call i32 @_setjmpex(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @jb, i32 0, i32 0), i8* %[[addr]]) // AARCH64-NEXT: ret i32 %[[call]] } int test_setjmpex() { return _setjmpex(jb); // X64-LABEL: define dso_local i32 @test_setjmpex // X64: %[[addr:.*]] = call i8* @llvm.frameaddress(i32 0) // X64: %[[call:.*]] = call i32 @_setjmpex(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @jb, i32 0, i32 0), i8* %[[addr]]) // X64-NEXT: ret i32 %[[call]] // AARCH64-LABEL: define dso_local i32 @test_setjmpex // AARCH64: %[[addr:.*]] = call i8* @llvm.frameaddress(i32 0) // AARCH64: %[[call:.*]] = call i32 @_setjmpex(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @jb, i32 0, i32 0), i8* %[[addr]]) // AARCH64-NEXT: ret i32 %[[call]] }
the_stack_data/1193948.c
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string.h> /* 4. Faça um programa que receba do usuário o tamanho de uma string e chama uma função para alocar dinamicamente essa string. Em seguida, o usuário deverá informar o conteúdo dessa string. O programa imprime a string sem suas vogais. */ int main(){ setlocale(LC_ALL,""); int size_char = 0; printf("Insira o tamanho da string: "); scanf("%d", &size_char); char *string; string = (char*) malloc(size_char * sizeof(char)); printf("Insira o conteúdo da String: "); setbuf(stdin, NULL); fgets(string, (size_char+2), stdin); //+2 Devido à função fgets que adiciona \n ao final do array. int i=0, j=0, flag=0; char vogais[5]; vogais[0] = 'a'; vogais[1] = 'e'; vogais[2] = 'i'; vogais[3] = 'o'; vogais[4] = 'u'; printf("String sem vogais: "); for(i=0; i<strlen(string); i++){ flag = 0; if(string[i] == '\n') break; for(j=0;j<5;j++){ if(string[i] == vogais[j]){ flag = 1; } } if(flag == 0){ printf("%c", string[i]); } } printf("\n"); free(string); return 0; }
the_stack_data/555837.c
#include <stdio.h> void main() { int num,rev=0,i,temp; printf("Enter the number you want to reverse\n"); scanf("%d",&num); temp=num; while(num!=0) { i=num%10; rev=(rev*10)+i; num=num/10; } printf("Reverse of the number %d is %d",temp,rev); }
the_stack_data/176705258.c
/* ptr_ops.c -- 指针操作 */ #include <stdio.h> int main(void) { int arr[5] = {100, 200, 300, 400, 500}; int * ptr1, * ptr2, * ptr3; ptr1 = arr; // 赋值(assignment) ptr2 = &arr[2]; // 赋值(assignment) printf("pointer value, dereferenced pointer, pointer address:\n"); printf("ptr1 = %p, *ptr1 = %d, &ptr1 = %p\n", ptr1, *ptr1, // 取值(derefrencing) &ptr1); // 取指针的地址 printf("\nadding an int to a pointer:\n"); printf("ptr1 + 4 = %p, *(ptr1 + 4) = %d\n", ptr1 + 4, // 指针加一个整数 *(ptr1 + 4) ); ptr1++; // 递增指针 printf("\nvalues after ptr++\n"); printf("ptr1 = %p, *ptr1 = %d, &ptr1 = %p\n", ptr1, *ptr1, &ptr1); printf("\nsubtracting one pointer from another:\n"); printf("ptr2 = %p, ptr1 = %p, ptr2 - ptr1 = %d\n", ptr2, ptr1, ptr2 - ptr1 // 两个指针相减 ); printf("\n---------------------------------------------\n"); return 0; }
the_stack_data/200143902.c
#include <stdio.h> #define max 5 void ler_vetor(int vet[]) { int i; printf("Digite seu vetor: "); for (i=0; i<max; i++) { scanf("%d", &vet[i]); } } int verifica(int vetx[], int vety[]) { int cont, a, i, j; cont=0; a=0; j=0; while (a<max) { i=0; while (i<max) { if (vetx[i]==vety[j]) { j=j+1; i=max; cont=cont+1; } if (vetx[i]!=vety[j]) { i=i+1; } } a=a+1; } if (cont==max) { return 1; } else { return 0; } } int checa(int vetx[], int vety[]) { int i, cont; i=0; cont=0; while (i<max) { if (vetx[i]==vety[i]) { cont=cont+1; } i=i+1; } if (cont==max) { return 1; } else { return 0; } } int main() { int vetv[max]; int vetw[max]; ler_vetor(vetv); ler_vetor(vetw); if (verifica(vetv, vetw)==1) { if (checa(vetv, vetw)==0) { printf("É permutação!!\n"); } else { printf("Não é permutação!\n"); } } else { printf("Não é permutação!!\n"); } }
the_stack_data/72160.c
static const unsigned int crc32_table[] = { 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d }; unsigned int crc32 (const unsigned char *buf, int len, unsigned int crc) { crc = ~crc; while (len--) { crc = (crc >> 8) ^ crc32_table[(crc ^ *buf) & 255]; buf++; } return ~crc; }
the_stack_data/218893374.c
#include <stdio.h> int a[200][200]; int f[200][200]; int main(int argc, char* argv[]) { int n; scanf("%d", &n); int i, j; for (i=0; i<n; i++) { for (j=0; j<=i; j++) { scanf("%d", &a[i][j]); } } f[0][0] = a[0][0]; for (i=1; i<n; i++) { f[i][0] = a[i][0] + f[i-1][0]; f[i][i] = a[i][i] + f[i-1][i-1]; for (j=1; j<i; j++) { if (f[i-1][j-1] > f[i-1][j]) { f[i][j] = a[i][j] + f[i-1][j-1]; } else { f[i][j] = a[i][j] + f[i-1][j]; } } } int result = -1; i = n-1; for (j=0; j<n; j++) { if (f[i][j] > result) { result = f[i][j]; } } printf("%d\n", result); return 0; }
the_stack_data/55626.c
/* * Copyright 2008 Dormando ([email protected]). All rights reserved. * * Use and distribution licensed under the BSD license. See * the LICENSE file for full text. */ /* * SHA-1 in C * By Steve Reid <[email protected]> * 100% Public Domain * * Test Vectors (from FIPS PUB 180-1) * "abc" * A9993E36 4706816A BA3E2571 7850C26C 9CD0D89D * "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" * 84983E44 1C3BD26E BAAE4AA1 F95129E5 E54670F1 * A million repetitions of "a" * 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F */ #include <sys/param.h> #include <string.h> #include "sha1.h" #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) /* * blk0() and blk() perform the initial expand. * I got the idea of expanding during the round function from SSLeay */ #if BYTE_ORDER == LITTLE_ENDIAN # define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ |(rol(block->l[i],8)&0x00FF00FF)) #else # define blk0(i) block->l[i] #endif #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ ^block->l[(i+2)&15]^block->l[i&15],1)) /* * (R0+R1), R2, R3, R4 are the different operations (rounds) used in SHA1 */ #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30); #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30); #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30); #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); /* * Hash a single 512-bit block. This is the core of the algorithm. */ void SHA1Transform(u_int32_t state[5], const u_int8_t buffer[SHA1_BLOCK_LENGTH]) { u_int32_t a, b, c, d, e; u_int8_t workspace[SHA1_BLOCK_LENGTH]; typedef union { u_int8_t c[64]; u_int32_t l[16]; } CHAR64LONG16; CHAR64LONG16 *block = (CHAR64LONG16 *)workspace; (void)memcpy(block, buffer, SHA1_BLOCK_LENGTH); /* Copy context->state[] to working vars */ a = state[0]; b = state[1]; c = state[2]; d = state[3]; e = state[4]; /* 4 rounds of 20 operations each. Loop unrolled. */ R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); R2(d,e,a,b,c,32); R2(c,d,e,a,b,33); R2(b,c,d,e,a,34); R2(a,b,c,d,e,35); R2(e,a,b,c,d,36); R2(d,e,a,b,c,37); R2(c,d,e,a,b,38); R2(b,c,d,e,a,39); R3(a,b,c,d,e,40); R3(e,a,b,c,d,41); R3(d,e,a,b,c,42); R3(c,d,e,a,b,43); R3(b,c,d,e,a,44); R3(a,b,c,d,e,45); R3(e,a,b,c,d,46); R3(d,e,a,b,c,47); R3(c,d,e,a,b,48); R3(b,c,d,e,a,49); R3(a,b,c,d,e,50); R3(e,a,b,c,d,51); R3(d,e,a,b,c,52); R3(c,d,e,a,b,53); R3(b,c,d,e,a,54); R3(a,b,c,d,e,55); R3(e,a,b,c,d,56); R3(d,e,a,b,c,57); R3(c,d,e,a,b,58); R3(b,c,d,e,a,59); R4(a,b,c,d,e,60); R4(e,a,b,c,d,61); R4(d,e,a,b,c,62); R4(c,d,e,a,b,63); R4(b,c,d,e,a,64); R4(a,b,c,d,e,65); R4(e,a,b,c,d,66); R4(d,e,a,b,c,67); R4(c,d,e,a,b,68); R4(b,c,d,e,a,69); R4(a,b,c,d,e,70); R4(e,a,b,c,d,71); R4(d,e,a,b,c,72); R4(c,d,e,a,b,73); R4(b,c,d,e,a,74); R4(a,b,c,d,e,75); R4(e,a,b,c,d,76); R4(d,e,a,b,c,77); R4(c,d,e,a,b,78); R4(b,c,d,e,a,79); /* Add the working vars back into context.state[] */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; state[4] += e; /* Wipe variables */ a = b = c = d = e = 0; } /* * SHA1Init - Initialize new context */ void SHA1Init(SHA1_CTX *context) { /* SHA1 initialization constants */ context->count = 0; context->state[0] = 0x67452301; context->state[1] = 0xEFCDAB89; context->state[2] = 0x98BADCFE; context->state[3] = 0x10325476; context->state[4] = 0xC3D2E1F0; } /* * Run your data through this. */ void SHA1Update(SHA1_CTX *context, const u_int8_t *data, size_t len) { size_t i, j; j = (size_t)((context->count >> 3) & 63); context->count += (len << 3); if ((j + len) > 63) { (void)memcpy(&context->buffer[j], data, (i = 64-j)); SHA1Transform(context->state, context->buffer); for ( ; i + 63 < len; i += 64) SHA1Transform(context->state, (u_int8_t *)&data[i]); j = 0; } else { i = 0; } (void)memcpy(&context->buffer[j], &data[i], len - i); } /* * Add padding and return the message digest. */ void SHA1Pad(SHA1_CTX *context) { u_int8_t finalcount[8]; u_int i; for (i = 0; i < 8; i++) { finalcount[i] = (u_int8_t)((context->count >> ((7 - (i & 7)) * 8)) & 255); /* Endian independent */ } SHA1Update(context, (u_int8_t *)"\200", 1); while ((context->count & 504) != 448) SHA1Update(context, (u_int8_t *)"\0", 1); SHA1Update(context, finalcount, 8); /* Should cause a SHA1Transform() */ } void SHA1Final(u_int8_t digest[SHA1_DIGEST_LENGTH], SHA1_CTX *context) { u_int i; SHA1Pad(context); if (digest) { for (i = 0; i < SHA1_DIGEST_LENGTH; i++) { digest[i] = (u_int8_t) ((context->state[i>>2] >> ((3-(i & 3)) * 8) ) & 255); } memset(context, 0, sizeof(*context)); } }
the_stack_data/674052.c
/* Generated by CIL v. 1.7.0 */ /* print_CIL_Input is false */ struct _IO_FILE; struct timeval; extern float strtof(char const *str , char const *endptr ) ; extern void signal(int sig , void *func ) ; typedef struct _IO_FILE FILE; extern int atoi(char const *s ) ; extern double strtod(char const *str , char const *endptr ) ; extern int fclose(void *stream ) ; extern void *fopen(char const *filename , char const *mode ) ; extern void abort() ; extern void exit(int status ) ; extern int raise(int sig ) ; extern int fprintf(struct _IO_FILE *stream , char const *format , ...) ; extern int strcmp(char const *a , char const *b ) ; extern int rand() ; extern unsigned long strtoul(char const *str , char const *endptr , int base ) ; void RandomFunc(unsigned long input[1] , unsigned long output[1] ) ; extern int strncmp(char const *s1 , char const *s2 , unsigned long maxlen ) ; extern int gettimeofday(struct timeval *tv , void *tz , ...) ; extern int printf(char const *format , ...) ; int main(int argc , char *argv[] ) ; void megaInit(void) ; extern unsigned long strlen(char const *s ) ; extern long strtol(char const *str , char const *endptr , int base ) ; extern unsigned long strnlen(char const *s , unsigned long maxlen ) ; extern void *memcpy(void *s1 , void const *s2 , unsigned long size ) ; struct timeval { long tv_sec ; long tv_usec ; }; extern void *malloc(unsigned long size ) ; extern int scanf(char const *format , ...) ; void RandomFunc(unsigned long input[1] , unsigned long output[1] ) { unsigned long state[1] ; unsigned long local1 ; char copy12 ; char copy13 ; { state[0UL] = input[0UL] + 1373777115UL; local1 = 0UL; while (local1 < 1UL) { if (state[0UL] == local1) { if (state[0UL] < local1) { state[local1] = state[0UL] + state[local1]; state[local1] |= ((state[0UL] - state[local1]) & 31UL) << 4UL; } else { state[local1] |= (state[local1] & 31UL) << 3UL; } } else if (state[0UL] == local1) { copy12 = *((char *)(& state[local1]) + 0); *((char *)(& state[local1]) + 0) = *((char *)(& state[local1]) + 5); *((char *)(& state[local1]) + 5) = copy12; state[local1] = state[0UL] ^ state[local1]; } else { copy13 = *((char *)(& state[local1]) + 2); *((char *)(& state[local1]) + 2) = *((char *)(& state[local1]) + 4); *((char *)(& state[local1]) + 4) = copy13; state[0UL] = (state[local1] << (((state[0UL] >> 4UL) & 15UL) | 1UL)) | (state[local1] >> (64 - (((state[0UL] >> 4UL) & 15UL) | 1UL))); } local1 ++; } output[0UL] = (state[0UL] << 7UL) | 0xf3fa00000000498dUL; } } int main(int argc , char *argv[] ) { unsigned long input[1] ; unsigned long output[1] ; int randomFuns_i5 ; unsigned long randomFuns_value6 ; int randomFuns_main_i7 ; { megaInit(); if (argc != 2) { printf("Call this program with %i arguments\n", 1); exit(-1); } else { } randomFuns_i5 = 0; while (randomFuns_i5 < 1) { randomFuns_value6 = strtoul(argv[randomFuns_i5 + 1], 0, 10); input[randomFuns_i5] = randomFuns_value6; randomFuns_i5 ++; } RandomFunc(input, output); if (output[0] == 4242424242UL) { printf("You win!\n"); } else { } randomFuns_main_i7 = 0; while (randomFuns_main_i7 < 1) { printf("%lu\n", output[randomFuns_main_i7]); randomFuns_main_i7 ++; } } } void megaInit(void) { { } }
the_stack_data/12637116.c
#include <stdio.h> int main() { int n = 7, x = n/2 + 1; for(int i = 1; i <= n; i++) { for(int j = 1; j <= n; j++) { if(j == n/2 + 1 || (j <= x && j >= n - x + 1 && i <= n/2 + 1)) printf("* "); else printf(" "); } printf("\n"); x++; } return 0; }
the_stack_data/92426.c
#include <stdio.h> void swap(int *p, int *q); int main(void) { int x = 1; int y = 2; printf("x is: %i, y is: %i\n", x, y); swap(&x, &y); printf("x is: %i, y is: %i\n", x, y); } void swap(int *p, int *q) { // Create function that accesses addresses to swap instead of creating copies int temp = *p; *p = *q; *q = temp; }
the_stack_data/1104700.c
/****************************************************************************** * * (c) Copyright 2010-2013 Xilinx, Inc. All rights reserved. * * This file contains confidential and proprietary information of Xilinx, Inc. * and is protected under U.S. and international copyright and other * intellectual property laws. * * DISCLAIMER * This disclaimer is not a license and does not grant any rights to the * materials distributed herewith. Except as otherwise provided in a valid * license issued to you by Xilinx, and to the maximum extent permitted by * applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL * FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS, * IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF * MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; * and (2) Xilinx shall not be liable (whether in contract or tort, including * negligence, or under any other theory of liability) for any loss or damage * of any kind or nature related to, arising under or in connection with these * materials, including for any direct, or any indirect, special, incidental, * or consequential loss or damage (including loss of data, profits, goodwill, * or any type of loss or damage suffered as a result of any action brought by * a third party) even if such damage or loss was reasonably foreseeable or * Xilinx had been advised of the possibility of the same. * * CRITICAL APPLICATIONS * Xilinx products are not designed or intended to be fail-safe, or for use in * any application requiring fail-safe performance, such as life-support or * safety devices or systems, Class III medical devices, nuclear facilities, * applications related to the deployment of airbags, or any other applications * that could lead to death, personal injury, or severe property or * environmental damage (individually and collectively, "Critical * Applications"). Customer assumes the sole risk and liability of any use of * Xilinx products in Critical Applications, subject only to applicable laws * and regulations governing limitations on product liability. * * THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE * AT ALL TIMES. * ******************************************************************************/ /* * platform_zynq.c * * Zynq platform specific functions. * * 02/29/2012: UART initialization is removed. Timer initializations are * removed. All unnecessary include files and hash defines are removed. * 03/01/2013: Timer initialization is added back. Support for SI #692601 is * added in the timer callback. The SI #692601 refers to the following issue. * * The EmacPs has a HW bug on the Rx path for heavy Rx traffic. * Under heavy Rx traffic because of the HW bug there are times when the Rx path * becomes unresponsive. The workaround for it is to check for the Rx path for * traffic (by reading the stats registers regularly). If the stats register * does not increment for sometime (proving no Rx traffic), the function resets * the Rx data path. * * </pre> */ #ifdef __arm__ #include "xparameters.h" #include "xparameters_ps.h" /* defines XPAR values */ #include "xil_cache.h" #include "xscugic.h" #include "xscutimer.h" #include "lwip/tcp.h" #include "xil_printf.h" #include "platform_config.h" #include "netif/xadapter.h" #define INTC_DEVICE_ID XPAR_SCUGIC_SINGLE_DEVICE_ID #define TIMER_DEVICE_ID XPAR_SCUTIMER_DEVICE_ID #define INTC_BASE_ADDR XPAR_SCUGIC_CPU_BASEADDR #define INTC_DIST_BASE_ADDR XPAR_SCUGIC_DIST_BASEADDR #define TIMER_IRPT_INTR XPAR_SCUTIMER_INTR #define RESET_RX_CNTR_LIMIT 400 void tcp_fasttmr(void); void tcp_slowtmr(void); static XScuTimer TimerInstance; #ifndef USE_AXIETH_ON_ZYNQ static int ResetRxCntr = 0; extern struct netif *echo_netif; #endif void timer_callback(XScuTimer * TimerInstance) { /* we need to call tcp_fasttmr & tcp_slowtmr at intervals specified * by lwIP. It is not important that the timing is absoluetly accurate. */ static int odd = 1; odd = !odd; #ifndef USE_AXIETH_ON_ZYNQ ResetRxCntr++; #endif tcp_fasttmr(); if (odd) { tcp_slowtmr(); } /* For providing an SW alternative for the SI #692601. Under heavy * Rx traffic if at some point the Rx path becomes unresponsive, the * following API call will ensures a SW reset of the Rx path. The * API xemacpsif_resetrx_on_no_rxdata is called every 100 milliseconds. * This ensures that if the above HW bug is hit, in the worst case, * the Rx path cannot become unresponsive for more than 100 * milliseconds. */ #ifndef USE_AXIETH_ON_ZYNQ if (ResetRxCntr >= RESET_RX_CNTR_LIMIT) { xemacpsif_resetrx_on_no_rxdata(echo_netif); ResetRxCntr = 0; } #endif XScuTimer_ClearInterruptStatus(TimerInstance); } void platform_setup_timer(void) { int Status = XST_SUCCESS; XScuTimer_Config *ConfigPtr; int TimerLoadValue = 0; ConfigPtr = XScuTimer_LookupConfig(TIMER_DEVICE_ID); Status = XScuTimer_CfgInitialize(&TimerInstance, ConfigPtr, ConfigPtr->BaseAddr); if (Status != XST_SUCCESS) { xil_printf("In %s: Scutimer Cfg initialization failed...\r\n", __func__); return; } Status = XScuTimer_SelfTest(&TimerInstance); if (Status != XST_SUCCESS) { xil_printf("In %s: Scutimer Self test failed...\r\n", __func__); return; } XScuTimer_EnableAutoReload(&TimerInstance); /* * Set for 250 milli seconds timeout. */ TimerLoadValue = XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ / 8; XScuTimer_LoadTimer(&TimerInstance, TimerLoadValue); return; } void platform_setup_interrupts(void) { Xil_ExceptionInit(); XScuGic_DeviceInitialize(INTC_DEVICE_ID); /* * Connect the interrupt controller interrupt handler to the hardware * interrupt handling logic in the processor. */ Xil_ExceptionRegisterHandler(XIL_EXCEPTION_ID_IRQ_INT, (Xil_ExceptionHandler)XScuGic_DeviceInterruptHandler, (void *)INTC_DEVICE_ID); /* * Connect the device driver handler that will be called when an * interrupt for the device occurs, the handler defined above performs * the specific interrupt processing for the device. */ XScuGic_RegisterHandler(INTC_BASE_ADDR, TIMER_IRPT_INTR, (Xil_ExceptionHandler)timer_callback, (void *)&TimerInstance); /* * Enable the interrupt for scu timer. */ XScuGic_EnableIntr(INTC_DIST_BASE_ADDR, TIMER_IRPT_INTR); return; } void platform_enable_interrupts() { /* * Enable non-critical exceptions. */ Xil_ExceptionEnableMask(XIL_EXCEPTION_IRQ); XScuTimer_EnableInterrupt(&TimerInstance); XScuTimer_Start(&TimerInstance); return; } void init_platform() { platform_setup_timer(); platform_setup_interrupts(); return; } void cleanup_platform() { Xil_ICacheDisable(); Xil_DCacheDisable(); return; } #endif
the_stack_data/14200054.c
char readSerial(); void writeSerial(char val); void main() { char val = 0; while(1) { val = readSerial(); writeSerial(val); } } char readSerial() { volatile char* serial_base = (char*) 0x20000000; // wait for data to arrive on serial interface char ready = 0; while(!ready) { ready = *(serial_base + 1); } // read data from serial interface char val = *serial_base; return val; } void writeSerial(char val) { volatile char* serial_base = (char*) 0x20000000; // wait until serial interface is ready to transmit data char ready = 0; while(!ready) { ready = *(serial_base + 2); } // transmit received data (echo) *serial_base = val; }
the_stack_data/28263380.c
#include <stdio.h> #include <string.h> void getNumberFromString(); int main() { enum Flags {AMERICA, INDIA, CHINA}; printf("%d " "%d " "%d\n", AMERICA, INDIA, CHINA); int country = 0; if (country == AMERICA) { printf ("The flag is America"); } else if (country == INDIA) { printf ("The country is India"); } else { printf ("The country is China"); } char c[3] = {1,2,3}; getNumberFromString("123"); return 0; } void getNumberFromString(char s[]) { int i=0, n=0; printf ("%d", s[i]); for (i=0; i < (int)strlen(s) && (s[i] >= '0' && s[i] <= '9'); i++) { printf ("\nASCII Value of character %d\n", s[i]); printf ("Iterating for N = %d\n", n); printf ("Value of [%d - %d] is %d\n", s[i],'0',(s[i]-'0')); printf ("Formula is [ 10*%d + (%d - '0') ]\n", n, s[i]); printf ("N is --> %d\n", n); n = 10*n + (s[i] - '0'); } printf ("\nValue of N is %d\n", n); }
the_stack_data/36075648.c
/*** * This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License. * When used, please cite the following article(s): V. Mrazek, L. Sekanina, Z. Vasicek "Libraries of Approximate Circuits: Automated Design and Application in CNN Accelerators" IEEE Journal on Emerging and Selected Topics in Circuits and Systems, Vol 10, No 4, 2020 * This file contains a circuit from a sub-set of pareto optimal circuits with respect to the pwr and mre parameters ***/ // MAE% = 0.0045 % // MAE = 0.74 // WCE% = 0.012 % // WCE = 2.0 // WCRE% = 100.00 % // EP% = 37.11 % // MRE% = 0.16 % // MSE = 1.5 // PDK45_PWR = 0.255 mW // PDK45_AREA = 493.7 um2 // PDK45_DELAY = 1.58 ns #include <stdint.h> #include <stdlib.h> uint64_t mul8x6u_5TS(const uint64_t A,const uint64_t B) { uint64_t dout_14, dout_16, dout_17, dout_18, dout_19, dout_20, dout_21, dout_22, dout_23, dout_24, dout_25, dout_26, dout_27, dout_28, dout_29, dout_30, dout_32, dout_33, dout_35, dout_37, dout_38, dout_39, dout_40, dout_41, dout_42, dout_43, dout_44, dout_45, dout_46, dout_47, dout_48, dout_49, dout_50, dout_51, dout_52, dout_53, dout_54, dout_55, dout_56, dout_57, dout_58, dout_59, dout_60, dout_61, dout_62, dout_63, dout_64, dout_65, dout_66, dout_67, dout_68, dout_69, dout_70, dout_71, dout_72, dout_73, dout_74, dout_75, dout_76, dout_77, dout_78, dout_79, dout_80, dout_81, dout_82, dout_83, dout_84, dout_85, dout_86, dout_87, dout_88, dout_89, dout_90, dout_91, dout_92, dout_93, dout_94, dout_95, dout_96, dout_97, dout_98, dout_99, dout_100, dout_101, dout_102, dout_103, dout_104, dout_105, dout_106, dout_107, dout_108, dout_109, dout_110, dout_111, dout_112, dout_113, dout_114, dout_115, dout_116, dout_117, dout_118, dout_119, dout_120, dout_121, dout_122, dout_123, dout_124, dout_125, dout_126, dout_127, dout_128, dout_129, dout_130, dout_131, dout_132, dout_133, dout_134, dout_135, dout_136, dout_137, dout_138, dout_139, dout_140, dout_141, dout_142, dout_143, dout_144, dout_145, dout_146, dout_147, dout_148, dout_149, dout_150, dout_151, dout_152, dout_153, dout_154, dout_155, dout_156, dout_157, dout_158, dout_159, dout_160, dout_161, dout_162, dout_163, dout_164, dout_165, dout_166, dout_167, dout_168, dout_169, dout_170, dout_171, dout_172, dout_173, dout_174, dout_175, dout_176, dout_177, dout_178, dout_179, dout_180, dout_181, dout_182, dout_183, dout_184, dout_185, dout_186, dout_187, dout_188, dout_189, dout_190, dout_191, dout_192, dout_193, dout_194, dout_195, dout_196, dout_197, dout_198, dout_199, dout_200, dout_201, dout_202, dout_203, dout_204, dout_205, dout_206, dout_207, dout_208, dout_209, dout_210, dout_211, dout_212, dout_213, dout_214, dout_215, dout_216, dout_217, dout_218, dout_219, dout_220, dout_221, dout_222, dout_223, dout_224, dout_225, dout_226, dout_227, dout_228, dout_229, dout_230, dout_231, dout_232, dout_233, dout_234, dout_235, dout_236, dout_237, dout_238, dout_239, dout_240, dout_241, dout_242, dout_243; uint64_t O; dout_14=((A >> 0)&1)&((B >> 0)&1); dout_16=((A >> 2)&1)&((B >> 0)&1); dout_17=((A >> 3)&1)&((B >> 0)&1); dout_18=((A >> 4)&1)&((B >> 0)&1); dout_19=((A >> 5)&1)&((B >> 0)&1); dout_20=((A >> 6)&1)&((B >> 0)&1); dout_21=((A >> 7)&1)&((B >> 0)&1); dout_22=((B >> 0)&1)&((B >> 1)&1); dout_23=((A >> 1)&1)&((B >> 1)&1); dout_24=((A >> 2)&1)&((B >> 1)&1); dout_25=((A >> 3)&1)&((B >> 1)&1); dout_26=((A >> 4)&1)&((B >> 1)&1); dout_27=((A >> 5)&1)&((B >> 1)&1); dout_28=((A >> 6)&1)&((B >> 1)&1); dout_29=((A >> 7)&1)&((B >> 1)&1); dout_30=((A >> 1)&1)&dout_22; dout_32=dout_16^dout_23; dout_33=((B >> 0)&1)&dout_23; dout_35=dout_32^dout_30; dout_37=dout_17^dout_24; dout_38=dout_17&dout_24; dout_39=dout_37&dout_33; dout_40=dout_37^dout_33; dout_41=dout_38|dout_39; dout_42=dout_18^dout_25; dout_43=dout_18&dout_25; dout_44=dout_42&dout_41; dout_45=dout_42^dout_41; dout_46=dout_43|dout_44; dout_47=dout_19^dout_26; dout_48=dout_19&dout_26; dout_49=dout_47&dout_46; dout_50=dout_47^dout_46; dout_51=dout_48|dout_49; dout_52=dout_20^dout_27; dout_53=dout_20&dout_27; dout_54=dout_52&dout_51; dout_55=dout_52^dout_51; dout_56=dout_53|dout_54; dout_57=dout_21^dout_28; dout_58=dout_21&dout_28; dout_59=dout_57&dout_56; dout_60=dout_57^dout_56; dout_61=dout_58|dout_59; dout_62=dout_61&dout_29; dout_63=dout_61^dout_29; dout_64=((A >> 0)&1)&((B >> 2)&1); dout_65=((A >> 1)&1)&((B >> 2)&1); dout_66=((A >> 2)&1)&((B >> 2)&1); dout_67=((A >> 3)&1)&((B >> 2)&1); dout_68=((A >> 4)&1)&((B >> 2)&1); dout_69=((A >> 5)&1)&((B >> 2)&1); dout_70=((A >> 6)&1)&((B >> 2)&1); dout_71=((A >> 7)&1)&((B >> 2)&1); dout_72=dout_35&dout_64; dout_73=dout_35^dout_64; dout_74=dout_40^dout_65; dout_75=dout_40&dout_65; dout_76=dout_74&dout_72; dout_77=dout_74^dout_72; dout_78=dout_75|dout_76; dout_79=dout_45^dout_66; dout_80=dout_45&dout_66; dout_81=dout_79&dout_78; dout_82=dout_79^dout_78; dout_83=dout_80|dout_81; dout_84=dout_50^dout_67; dout_85=dout_50&dout_67; dout_86=dout_84&dout_83; dout_87=dout_84^dout_83; dout_88=dout_85|dout_86; dout_89=dout_55^dout_68; dout_90=dout_55&dout_68; dout_91=dout_89&dout_88; dout_92=dout_89^dout_88; dout_93=dout_90|dout_91; dout_94=dout_60^dout_69; dout_95=dout_60&dout_69; dout_96=dout_94&dout_93; dout_97=dout_94^dout_93; dout_98=dout_95|dout_96; dout_99=dout_63^dout_70; dout_100=dout_63&dout_70; dout_101=dout_99&dout_98; dout_102=dout_99^dout_98; dout_103=dout_100|dout_101; dout_104=dout_62^dout_71; dout_105=dout_62&((B >> 2)&1); dout_106=((A >> 7)&1)&dout_103; dout_107=dout_104^dout_103; dout_108=dout_105|dout_106; dout_109=((A >> 0)&1)&((B >> 3)&1); dout_110=((A >> 1)&1)&((B >> 3)&1); dout_111=((A >> 2)&1)&((B >> 3)&1); dout_112=((A >> 3)&1)&((B >> 3)&1); dout_113=((A >> 4)&1)&((B >> 3)&1); dout_114=((A >> 5)&1)&((B >> 3)&1); dout_115=((A >> 6)&1)&((B >> 3)&1); dout_116=((A >> 7)&1)&((B >> 3)&1); dout_117=dout_77&dout_109; dout_118=dout_77^dout_109; dout_119=dout_82^dout_110; dout_120=dout_82&dout_110; dout_121=dout_119&dout_117; dout_122=dout_119^dout_117; dout_123=dout_120|dout_121; dout_124=dout_87^dout_111; dout_125=dout_87&dout_111; dout_126=dout_124&dout_123; dout_127=dout_124^dout_123; dout_128=dout_125|dout_126; dout_129=dout_92^dout_112; dout_130=dout_92&dout_112; dout_131=dout_129&dout_128; dout_132=dout_129^dout_128; dout_133=dout_130|dout_131; dout_134=dout_97^dout_113; dout_135=dout_97&dout_113; dout_136=dout_134&dout_133; dout_137=dout_134^dout_133; dout_138=dout_135|dout_136; dout_139=dout_102^dout_114; dout_140=dout_102&dout_114; dout_141=dout_139&dout_138; dout_142=dout_139^dout_138; dout_143=dout_140|dout_141; dout_144=dout_107^dout_115; dout_145=dout_107&dout_115; dout_146=dout_144&dout_143; dout_147=dout_144^dout_143; dout_148=dout_145|dout_146; dout_149=dout_108^dout_116; dout_150=dout_108&((B >> 3)&1); dout_151=dout_149&dout_148; dout_152=dout_149^dout_148; dout_153=dout_150|dout_151; dout_154=((A >> 0)&1)&((B >> 4)&1); dout_155=((A >> 1)&1)&((B >> 4)&1); dout_156=((A >> 2)&1)&((B >> 4)&1); dout_157=((A >> 3)&1)&((B >> 4)&1); dout_158=((A >> 4)&1)&((B >> 4)&1); dout_159=((A >> 5)&1)&((B >> 4)&1); dout_160=((A >> 6)&1)&((B >> 4)&1); dout_161=((A >> 7)&1)&((B >> 4)&1); dout_162=dout_122&dout_154; dout_163=dout_122^dout_154; dout_164=dout_127^dout_155; dout_165=dout_127&dout_155; dout_166=dout_164&dout_162; dout_167=dout_164^dout_162; dout_168=dout_165|dout_166; dout_169=dout_132^dout_156; dout_170=dout_132&dout_156; dout_171=dout_169&dout_168; dout_172=dout_169^dout_168; dout_173=dout_170|dout_171; dout_174=dout_137^dout_157; dout_175=dout_137&dout_157; dout_176=dout_174&dout_173; dout_177=dout_174^dout_173; dout_178=dout_175|dout_176; dout_179=dout_142^dout_158; dout_180=dout_142&dout_158; dout_181=dout_179&dout_178; dout_182=dout_179^dout_178; dout_183=dout_180|dout_181; dout_184=dout_147^dout_159; dout_185=dout_147&dout_159; dout_186=dout_184&dout_183; dout_187=dout_184^dout_183; dout_188=dout_185|dout_186; dout_189=dout_152^dout_160; dout_190=dout_152&dout_160; dout_191=dout_189&dout_188; dout_192=dout_189^dout_188; dout_193=dout_190|dout_191; dout_194=dout_153^dout_161; dout_195=dout_153&((B >> 4)&1); dout_196=dout_161&dout_193; dout_197=dout_194^dout_193; dout_198=dout_195|dout_196; dout_199=((A >> 0)&1)&((B >> 5)&1); dout_200=((A >> 1)&1)&((B >> 5)&1); dout_201=((A >> 2)&1)&((B >> 5)&1); dout_202=((A >> 3)&1)&((B >> 5)&1); dout_203=((A >> 4)&1)&((B >> 5)&1); dout_204=((A >> 5)&1)&((B >> 5)&1); dout_205=((A >> 6)&1)&((B >> 5)&1); dout_206=((A >> 7)&1)&((B >> 5)&1); dout_207=dout_167&dout_199; dout_208=dout_167^dout_199; dout_209=dout_172^dout_200; dout_210=dout_172&dout_200; dout_211=dout_209&dout_207; dout_212=dout_209^dout_207; dout_213=dout_210|dout_211; dout_214=dout_177^dout_201; dout_215=dout_177&dout_201; dout_216=dout_214&dout_213; dout_217=dout_214^dout_213; dout_218=dout_215|dout_216; dout_219=dout_182^dout_202; dout_220=dout_182&dout_202; dout_221=dout_219&dout_218; dout_222=dout_219^dout_218; dout_223=dout_220|dout_221; dout_224=dout_187^dout_203; dout_225=dout_187&dout_203; dout_226=dout_224&dout_223; dout_227=dout_224^dout_223; dout_228=dout_225|dout_226; dout_229=dout_192^dout_204; dout_230=dout_192&dout_204; dout_231=dout_229&dout_228; dout_232=dout_229^dout_228; dout_233=dout_230|dout_231; dout_234=dout_197^dout_205; dout_235=dout_197&dout_205; dout_236=dout_234&dout_233; dout_237=dout_234^dout_233; dout_238=dout_235|dout_236; dout_239=dout_198^dout_206; dout_240=dout_198&((B >> 5)&1); dout_241=((A >> 7)&1)&dout_238; dout_242=dout_239^dout_238; dout_243=dout_240|dout_241; O = 0; O |= (dout_14&1) << 0; O |= (dout_207&1) << 1; O |= (dout_73&1) << 2; O |= (dout_118&1) << 3; O |= (dout_163&1) << 4; O |= (dout_208&1) << 5; O |= (dout_212&1) << 6; O |= (dout_217&1) << 7; O |= (dout_222&1) << 8; O |= (dout_227&1) << 9; O |= (dout_232&1) << 10; O |= (dout_237&1) << 11; O |= (dout_242&1) << 12; O |= (dout_243&1) << 13; return O; }
the_stack_data/28262008.c
#include<stdio.h> #include<stdlib.h> void main(){ int t,n,k,x,y,i; int *arr; scanf("%d",&t); while(t>0){ t--; scanf("%d %d %d %d",&n,&k,&x,&y); arr=(int *)malloc(n*sizeof(int)); i=x; while(1){ i=(i+k)%n; if(x==y || i==y){ printf("YES\n"); break; } else if(i==x){ printf("NO\n"); //exit; break; } } } }
the_stack_data/376417.c
float f[1], e; int j; void main() { e = 5*f[j]; print("e 0.000000"); printid(e); }
the_stack_data/103265167.c
#include <stdio.h> int readwritechar(void); int readwritestring(void); int skipcomment(void); /* remove comments from c program */ int main() { int c; c = getchar(); while (c != EOF) { if (c == '\'') { c = readwritechar(); if (c != '\'') printf("\n-- unbalanced char --\n"); } else if (c == '\"') { c = readwritestring(); if (c != '\"') printf("\n-- unbalanced string --\n"); } else if (c == '/') if ((c = getchar()) == '*') { c = skipcomment(); if (c != '/') printf("\n-- unbalanced comment --\n"); } else printf("/%c", c); else putchar(c); if (c != EOF) c = getchar(); } } int readwritechar(void) { int c; putchar('\''); if ((c = getchar()) == EOF || c == '\'') /* EOF signals unbalanced char */ ; else if (c == '\\') { //escaped char putchar('\\'); if ((c = getchar()) != EOF) { putchar(c); c = getchar(); } } else { // single char putchar(c); c = getchar(); } if (c != EOF) putchar(c); return c; } int readwritestring(void) { int c; putchar('\"'); c = getchar(); while (c != '\"' && c != EOF) { if (c == '\\') { putchar('\\'); c = getchar(); if (c != EOF) { putchar(c); // no support of octal and hex escape char c = getchar(); } } else { putchar(c); c = getchar(); } } if (c != EOF) putchar(c); return c; } int skipcomment(void) { int c; int insidecomment = 1; c = getchar(); while (c != EOF && insidecomment == 1) { if (c == '*') { c = getchar(); if (c == '/') { insidecomment = 0; } else if (c != EOF) { c = getchar(); } } else { c = getchar(); } } return c; }
the_stack_data/111103.c
#include <stdio.h> /* 1. Faça um programa que lia um número inteiro e o imprima. */ int main(){ int inteiro = 0; scanf("%d", &inteiro); printf("inteiro: %d\n", inteiro); return 0; }
the_stack_data/136645.c
// C program to append data to a file #include <stdio.h> #include <stdlib.h> #define BUFFER_SIZE 1000 void readFile(FILE * fPtr); int main() { /* File pointer to hold reference of input file */ FILE *fPtr; char filePath[100]; char dataToAppend[BUFFER_SIZE]; /* Input file path to remove empty lines from user */ printf("Enter file path: "); scanf("%s", filePath); /* Open all file in append mode. */ fPtr = fopen(filePath, "a"); /* fopen() return NULL if unable to open file in given mode. */ if (fPtr == NULL) { /* Unable to open file hence exit */ printf("\nUnable to open '%s' file.\n", filePath); printf("Please check whether file exists and you have write privilege.\n"); exit(EXIT_FAILURE); } /* Input data to append from user */ printf("\nEnter data to append: "); fflush(stdin); // To clear extra white space characters in stdin fgets(dataToAppend, BUFFER_SIZE, stdin); /* Append data to file */ fputs(dataToAppend, fPtr); /* Reopen file in read mode to print file contents */ fPtr = freopen(filePath, "r", fPtr); /* Print file contents after appending string */ printf("\nSuccessfully appended data to file. \n"); printf("Changed file contents:\n\n"); readFile(fPtr); /* Done with file, hence close file. */ fclose(fPtr); return 0; } /** * Reads a file character by character * and prints on console. * * @fPtr Pointer to FILE to read. */ void readFile(FILE * fPtr) { char ch; do { ch = fgetc(fPtr); putchar(ch); } while (ch != EOF); }
the_stack_data/234518756.c
/* See LICENSE file for copyright information * * prime is a program designed to factor prime numbers */ #include <stdio.h> #include <stdint.h> #include <stdbool.h> #include <string.h> #include <math.h> static uint64_t starting_number; static uint64_t ending_number; static float version = 0.1; /* * Basic Trial Division * Ideally replaced by an AKS primality test * Inefficient for large numbers but simple */ bool isPrimeBTD(uint64_t number) { if (number == 2) return true; if (!(number % 2) || number < 2) return false; for (uint64_t integer = 3; integer <= sqrtl(number); integer++) { if (!(number % integer)) return false; } return true; } void listPrimes() { uint64_t current_number = starting_number; while (current_number <= ending_number && current_number <= UINT64_MAX) { if (isPrimeBTD(current_number)) printf("%jd is prime\n", current_number); else printf("%jd is composite\n", current_number); current_number++; } } int main(int argc, char **argv) { // do advanced option handling here if (argc == 2 && !strcmp("-v", argv[1])) { printf("prime %.1f\n", version); } else { starting_number = 1; ending_number = 100; listPrimes(); } return 0; }
the_stack_data/128481.c
#include <stdio.h> #include <string.h> int main() { char c[1000]; fgets(c, sizeof c / sizeof c[0], stdin); int d = strlen(c); char a[d]; int j = 0; for (int i = d - 1; i >= 0; i--) { a[i] = c[j]; j++; } puts(a); return 0; } /** Error: * input ainiqusi * output isuqinia@ */
the_stack_data/20130.c
int a1, b1; const w = 3; const x = 3.14; int main() { const x = 3; float a2; const y = 3.14; char b2; return -1; } float c1; const y = 3.1415; char dog(int x, char y) { float c2; return -1; } const z = 2; float d2, d3; /*This will be omitted!!!*/
the_stack_data/934428.c
typedef float FLOAT; typedef double FLOAT8; typedef enum sound_file_format_e { sf_unknown, sf_wave, sf_aiff, sf_mp3, sf_raw} sound_file_format; typedef struct { unsigned long num_samples; int num_channels; int in_samplerate; int out_samplerate; int gtkflag; int bWriteVbrTag; int quality; int silent; int mode; int mode_fixed; int force_ms; int brate; int copyright; int original; int error_protection; int padding_type; int extension; int disable_reservoir; int experimentalX; int experimentalY; int experimentalZ; int VBR; int VBR_q; int VBR_min_bitrate_kbps; int VBR_max_bitrate_kbps; int lowpassfreq; int highpassfreq; int lowpasswidth; int highpasswidth; sound_file_format input_format; int swapbytes; char *inPath; char *outPath; int ATHonly; int noATH; float cwlimit; int allow_diff_short; int no_short_blocks; int emphasis; long int frameNum; long totalframes; int encoder_delay; int framesize; int version; int padding; int mode_gr; int stereo; int VBR_min_bitrate; int VBR_max_bitrate; float resample_ratio; int bitrate_index; int samplerate_index; int mode_ext; float lowpass1, lowpass2; float highpass1, highpass2; int lowpass_band; int highpass_band; int filter_type; int quantization; int noise_shaping; int noise_shaping_stop; int psymodel; int use_best_huffman; } lame_global_flags; typedef FLOAT8 D576[576]; typedef FLOAT8 D192_3[192][3]; typedef struct { FLOAT8 l[21 + 1]; FLOAT8 s[12 + 1][3]; } III_psy_xmin; #pragma hmpp astex_codelet__17 codelet & #pragma hmpp astex_codelet__17 , args[__astex_addr__sblock].io=out & #pragma hmpp astex_codelet__17 , args[__astex_addr__sb].io=out & #pragma hmpp astex_codelet__17 , args[__astex_addr__k].io=inout & #pragma hmpp astex_codelet__17 , args[__astex_addr__j].io=inout & #pragma hmpp astex_codelet__17 , args[__astex_addr__b].io=out & #pragma hmpp astex_codelet__17 , args[uselongblock].io=inout & #pragma hmpp astex_codelet__17 , args[pe].io=inout & #pragma hmpp astex_codelet__17 , args[numlines_l].io=in & #pragma hmpp astex_codelet__17 , args[numlines_s].io=in & #pragma hmpp astex_codelet__17 , args[s3ind_s].io=in & #pragma hmpp astex_codelet__17 , args[s3ind].io=in & #pragma hmpp astex_codelet__17 , args[bo_s].io=in & #pragma hmpp astex_codelet__17 , args[bu_s].io=in & #pragma hmpp astex_codelet__17 , args[bo_l].io=in & #pragma hmpp astex_codelet__17 , args[bu_l].io=in & #pragma hmpp astex_codelet__17 , args[w2_s].io=in & #pragma hmpp astex_codelet__17 , args[w1_s].io=in & #pragma hmpp astex_codelet__17 , args[w2_l].io=in & #pragma hmpp astex_codelet__17 , args[w1_l].io=in & #pragma hmpp astex_codelet__17 , args[thr].io=inout & #pragma hmpp astex_codelet__17 , args[cb].io=in & #pragma hmpp astex_codelet__17 , args[eb].io=inout & #pragma hmpp astex_codelet__17 , args[energy_s].io=in & #pragma hmpp astex_codelet__17 , args[en].io=inout & #pragma hmpp astex_codelet__17 , args[thm].io=inout & #pragma hmpp astex_codelet__17 , args[s3_l].io=in & #pragma hmpp astex_codelet__17 , args[s3_s].io=in & #pragma hmpp astex_codelet__17 , args[nb_2].io=inout & #pragma hmpp astex_codelet__17 , args[nb_1].io=inout & #pragma hmpp astex_codelet__17 , args[qthr_s].io=in & #pragma hmpp astex_codelet__17 , args[qthr_l].io=in & #pragma hmpp astex_codelet__17 , args[minval].io=in & #pragma hmpp astex_codelet__17 , args[gfp].io=in & #pragma hmpp astex_codelet__17 , target=C & #pragma hmpp astex_codelet__17 , version=1.4.0 void astex_codelet__17(lame_global_flags *gfp, FLOAT8 minval[63], FLOAT8 qthr_l[63], FLOAT8 qthr_s[63], FLOAT8 nb_1[4][63], FLOAT8 nb_2[4][63], FLOAT8 s3_s[63 + 1][63 + 1], FLOAT8 s3_l[63 + 1][63 + 1], III_psy_xmin thm[4], III_psy_xmin en[4], FLOAT energy_s[3][129], FLOAT8 eb[63], FLOAT8 cb[63], FLOAT8 thr[63], FLOAT8 w1_l[21], FLOAT8 w2_l[21], FLOAT8 w1_s[12], FLOAT8 w2_s[12], int bu_l[21], int bo_l[21], int bu_s[12], int bo_s[12], int npart_l, int npart_s, int npart_s_orig, int s3ind[63][2], int s3ind_s[63][2], int numlines_s[63], int numlines_l[63], FLOAT8 pe[4], int uselongblock[2], int chn, int __astex_addr__b[1], int __astex_addr__j[1], int __astex_addr__k[1], int __astex_addr__sb[1], int __astex_addr__sblock[1]) { int sblock; int sb; int k = __astex_addr__k[0]; int j = __astex_addr__j[0]; int b; astex_thread_begin: { for (b = 0 ; b < npart_l ; b++) { FLOAT8 tbb, ecb, ctb; FLOAT8 temp_1; ecb = 0; ctb = 0; for (k = s3ind[b][0] ; k <= s3ind[b][1] ; k++) { ecb += s3_l[b][k] * eb[k]; ctb += s3_l[b][k] * cb[k]; } tbb = ecb; if (tbb != 0) { tbb = ctb / tbb; if (tbb <= 0.04875584301) { tbb = exp(-0.2302585093 * (18 - 6)); } else if (tbb > 0.4989003827) { tbb = 1; } else { tbb = log(tbb); tbb = exp(((18 - 6) * (0.2302585093 * 0.299)) + ((18 - 6) * (0.2302585093 * 0.43)) * tbb); } } tbb = ((minval[b]) < (tbb)?(minval[b]):(tbb)); ecb *= tbb; temp_1 = ((ecb) < (((2 * nb_1[chn][b]) < (16 * nb_2[chn][b])?(2 * nb_1[chn][b]):(16 * nb_2[chn][b])))?(ecb):(((2 * nb_1[chn][b]) < (16 * nb_2[chn][b])?(2 * nb_1[chn][b]):(16 * nb_2[chn][b])))); thr[b] = ((qthr_l[b]) > (temp_1)?(qthr_l[b]):(temp_1)); nb_2[chn][b] = nb_1[chn][b]; nb_1[chn][b] = ecb; if (thr[b] < eb[b]) { pe[chn] -= numlines_l[b] * log(thr[b] / eb[b]); } } if (chn < 2) { if (gfp->no_short_blocks) { uselongblock[chn] = 1; } else { if (pe[chn] > 3000) { uselongblock[chn] = 0; } else { FLOAT mn, mx, ma = 0, mb = 0, mc = 0; for (j = 129 / 2 ; j < 129 ; j++) { ma += energy_s[0][j]; mb += energy_s[1][j]; mc += energy_s[2][j]; } mn = ((ma) < (mb)?(ma):(mb)); mn = ((mn) < (mc)?(mn):(mc)); mx = ((ma) > (mb)?(ma):(mb)); mx = ((mx) > (mc)?(mx):(mc)); uselongblock[chn] = 1; if (mx > 30 * mn) { uselongblock[chn] = 0; } else if ((mx > 10 * mn) && (pe[chn] > 1000)) { uselongblock[chn] = 0; } } } } for (sb = 0 ; sb < 21 ; sb++) { FLOAT8 enn = w1_l[sb] * eb[bu_l[sb]] + w2_l[sb] * eb[bo_l[sb]]; FLOAT8 thmm = w1_l[sb] * thr[bu_l[sb]] + w2_l[sb] * thr[bo_l[sb]]; for (b = bu_l[sb] + 1 ; b < bo_l[sb] ; b++) { enn += eb[b]; thmm += thr[b]; } en[chn].l[sb] = enn; thm[chn].l[sb] = thmm; } for (sblock = 0 ; sblock < 3 ; sblock++) { j = 0; for (b = 0 ; b < npart_s_orig ; b++) { int i; FLOAT ecb = energy_s[sblock][j++]; for (i = numlines_s[b] ; i > 0 ; i--) { ecb += energy_s[sblock][j++]; } eb[b] = ecb; } for (b = 0 ; b < npart_s ; b++) { FLOAT8 ecb = 0; for (k = s3ind_s[b][0] ; k <= s3ind_s[b][1] ; k++) { ecb += s3_s[b][k] * eb[k]; } thr[b] = ((qthr_s[b]) > (ecb)?(qthr_s[b]):(ecb)); } for (sb = 0 ; sb < 12 ; sb++) { FLOAT8 enn = w1_s[sb] * eb[bu_s[sb]] + w2_s[sb] * eb[bo_s[sb]]; FLOAT8 thmm = w1_s[sb] * thr[bu_s[sb]] + w2_s[sb] * thr[bo_s[sb]]; for (b = bu_s[sb] + 1 ; b < bo_s[sb] ; b++) { enn += eb[b]; thmm += thr[b]; } en[chn].s[sb][sblock] = enn; thm[chn].s[sb][sblock] = thmm; } } } astex_thread_end:; __astex_addr__b[0] = b; __astex_addr__j[0] = j; __astex_addr__k[0] = k; __astex_addr__sb[0] = sb; __astex_addr__sblock[0] = sblock; }
the_stack_data/125139360.c
/* CP10_19.C */ /* Example of strlen() Function*/ #include <stdio.h> #include<string.h> int main() { char *str1; int l; printf("Enter a string: "); scanf("%[^\n]", str1); // or, gets(str1); l = strlen(str1); printf("\nCharacter Length of \"%s\" is: %d", str1, l); getch(); return 0; }
the_stack_data/708731.c
/* ** EPITECH PROJECT, 2021 ** Libmy ** File description: ** compare two string with n char */ int my_strlen(char const *); int my_strncmp(char const *s1, char const *s2, int n) { int len_1 = my_strlen(s1); int len_2 = my_strlen(s2); char char_1; char char_2; int return_nb = 0; for (int i = 0; !return_nb && i < n; i++) { char_1 = (i < len_1) ? s1[i] : ' '; char_2 = (i < len_2) ? s2[i] : ' '; return_nb = char_1 - char_2; } return return_nb; }
the_stack_data/22013832.c
/* * Copyright (c) 2013 Jonas 'Sortie' Termansen. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * * wchar/wmemchr.c * Scans memory for a wide character. */ #include <wchar.h> wchar_t* wmemchr(const wchar_t* s, wchar_t c, size_t n) { for ( size_t i = 0; i < n; i++ ) if ( s[i] == c ) return (wchar_t*) s + i; return NULL; }
the_stack_data/1238231.c
#include <stdio.h> int main(void) { int fav; printf("What is your favorite number: "); scanf("%d", &fav); printf("%d is my favorite number too!\n", fav); return(0); }
the_stack_data/7950645.c
/*** *ismbgrph - Test if character is graphical (MBCS) * * Copyright (c) Microsoft Corporation. All rights reserved. * *Purpose: * Test if character is graphical (MBCS) * *******************************************************************************/ #ifdef _MBCS #include <windows.h> #include <awint.h> #include <mtdll.h> #include <cruntime.h> #include <ctype.h> #include <mbdata.h> #include <mbctype.h> #include <mbstring.h> #include <locale.h> #include <setlocal.h> /*** * _ismbcgraph - Test if character is graphical (MBCS) * *Purpose: * Test if the supplied character is graphical or not. * Handles MBCS characters correctly. * * Note: Use test against 0x00FF instead of _ISLEADBYTE * to ensure that we don't call SBCS routine with a two-byte * value. * *Entry: * unsigned int c = character to test * *Exit: * Returns TRUE if c is an graphical character; else FALSE * *Exceptions: * *******************************************************************************/ extern "C" int __cdecl _ismbcgraph_l( unsigned int c, _locale_t plocinfo ) { _LocaleUpdate _loc_update(plocinfo); if (c > 0x00FF) { char buf[2]; unsigned short ctype[2] = {0}; buf[0] = (c >> 8) & 0xFF; buf[1] = c & 0xFF; /* return FALSE if not in supported MB code page */ if (_loc_update.GetLocaleT()->mbcinfo->ismbcodepage == 0) return 0; /* * Since 'c' could be two one-byte MB chars, we need room in the * ctype return array to handle this. In this case, the * second word in the return array will be non-zero. */ if ( __crtGetStringTypeA( _loc_update.GetLocaleT(), CT_CTYPE1, buf, 2, ctype, _loc_update.GetLocaleT()->mbcinfo->mbcodepage, _loc_update.GetLocaleT()->mbcinfo->mblcid, TRUE) == 0 ) return 0; /* ensure single MB character and test for type */ return (ctype[1] == 0 && ctype[0] & (_PUNCT|_ALPHA|_DIGIT)); } else { return _ismbbgraph_l( c, _loc_update.GetLocaleT()); } } extern "C" int (__cdecl _ismbcgraph)( unsigned int c ) { return _ismbcgraph_l(c, NULL); } #endif /* _MBCS */
the_stack_data/151705177.c
#include <stdio.h> #include <string.h> void DSP_blk_eswap32_c ( void * src, void * dst, int n_words ); /* ======================================================================== */ /* DSPLIB function-specific alignments. Refer to the */ /* TMS320C64x DSP Library Programmer's Reference for details. */ /* ======================================================================== */ #pragma DATA_ALIGN(x, 8); #pragma DATA_ALIGN(r_c, 8); /* ======================================================================== */ /* Constant dataset. */ /* ======================================================================== */ #define NX (100) /* ======================================================================== */ /* Initialize arrays with random test data. */ /* ======================================================================== */ unsigned x[NX] = { 0x5A90CAD1, 0xC5D3EB02, 0xDF70446B, 0x2D58237E, 0x7B2EA87B, 0xB08BEB4C, 0xA02C0379, 0x63650879, 0x2972AA59, 0x6DF31315, 0x35CDDC61, 0xB1E7435B, 0x4D2B77CF, 0xBF8A5D83, 0x9862FB74, 0xAE98DFAA, 0xDB191597, 0x003766B9, 0xE500B631, 0xE88FA17D, 0x89020137, 0xBD8B72C3, 0x425421D4, 0x3253A640, 0x58FD2FB1, 0xE99523C9, 0xB12CD65B, 0xA161DB63, 0x506EB30D, 0x7E0C65B3, 0x85EA873F, 0x79861A5D, 0x155FA10D, 0x555FFADB, 0x18AD3E3C, 0x4D88C3C5, 0x4B322454, 0x134E7F8C, 0x3A41952E, 0xC2BFA09E, 0x3BD00F85, 0xB50C3A94, 0x4B95F9F4, 0xD58F5828, 0xCF9073E6, 0xF008463F, 0x2BA465DB, 0x60DA7AC7, 0x8B5C677D, 0x007B0C9E, 0xB6ECD9CA, 0x1354A6B7, 0x70FCC62C, 0x8B0E0DEC, 0x208E9186, 0xAF3B3A2A, 0xB3B5B759, 0xB49C8DE9, 0xD61EBCDF, 0x0CE1C0C6, 0x2795482E, 0x7161ED0A, 0xBF9A4F88, 0x8CDD62D1, 0x2B14EDA5, 0xD7DB12E9, 0x887AEBE0, 0x8D80A15E, 0x0DDAE964, 0xCFD5DB3F, 0xDCEBA9F8, 0x0B18627C, 0x04E4E3ED, 0x61FAA525, 0x93C39E66, 0xA0A51197, 0xDFBB8371, 0xE19C8B2A, 0x846CA06B, 0x013E7174, 0x95928382, 0x5EE3AE4D, 0x4397917E, 0x26842518, 0x50BA84F4, 0x9918D816, 0xA23B2D74, 0x5396E3CC, 0x52164536, 0x30F9C6F0, 0x16DFFF91, 0x02610211, 0x9B453EA5, 0x1A13C5C4, 0x3FC6031B, 0xEC8BB90B, 0xB3B241CB, 0x1CCFDFC4, 0x0D9D646A, 0x7A0FD716 }; unsigned r_c[NX]; unsigned r_c_expected[NX] = { -775253926, 49009605, 1799647455, 2116245549, 2074619515, 1290505136, 2030251168, 2030593379, 1504342569, 353629037, 1641860405, 1531176881, -814273715, -2091021633, 1962631832, -1428186962, -1760224805, -1184483584, 834011365, 2107740136, 922813065, -1015903299, -736013246, 1084642098, -1322255016, -920414743, 1540762801, 1675321761, 229862992, -1285223298, 1065872005, 1562019449, 228679445, -604348587, 1010740504, -977041331, 1411658315, -1937813997, 781533498, -1633632318, -2062561221, -1808134987, -184969909, 676892629, -428633905, 1061554416, -614095829, -948250016, 2103925899, -1643349248, -891687754, -1213836269, 751238256, -334688629, -2037281248, 708459439, 1505211827, -376595276, -541319466, -960438004, 776508711, 183329137, -2008048961, -782049908, -1511189461, -384640041, -521438584, 1587642509, 1693047309, 1071371727, -123081764, 2086803467, -303832060, 631634529, 1721680787, -1760451168, 1904458719, 713792737, 1805675652, 1953578497, -2105306475, 1303307102, 2123470659, 405111846, -192628144, 383260825, 1949121442, -857500077, 910497362, -255395536, -1845502186, 285368578, -1522645605, -993717478, 453232191, 196709356, -884886861, -991965412, 1784978701, 383192954 }; int main(int argc, char** argv) { #pragma monitor start #pragma kernel DSP_blk_eswap32_c(x, r_c, NX); #pragma monitor stop if (argc > 42 && ! strcmp(argv[0], "")) printf("%u", r_c[NX-1]); int i; for(i=0; i < NX; i++) { if(r_c[i] != r_c_expected[i]) { return 1; } } return 10; }
the_stack_data/689840.c
#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { // criando e lendo dados int n[5]; printf("digite 5 numeros: "); scanf("%i%i%i%i%i", &n[0], &n[1], &n[2], &n[3], &n[4]); // pegando o maior valor int maior = 0; for (int i=0; i<5; i++) maior = (n[i]>maior)?n[i]:maior; // pegando os menores valores int menores [] = {maior, maior, maior}; for (int j=0; j<3; j++){ for (int i=0; i<5; i++){ // caso o numero atual for menor que o menor if (n[i]<menores[j]){ menores[j] = n[i]; /* o numero atual é o menor de todos * e por isso tem que deixar de ser, * ou não haverá como pegar o segundo * menor e muito menos o terceiro já * que ele seria o menor. */ n[i] = maior; } } } printf("(%i+%i+%i)/%i = %1.1f\n", menores[0], menores[1], menores[2], maior, (float)(menores[0]+menores[1]+menores[2])/maior ); return 0; }
the_stack_data/388395.c
#include <math.h> void evaluate_path_bidir_mala_7_2_static(const float lens[2], const float primary[17], const float scene[38], const float vertParams[592], float logLumValue[1]) { float _t7289, _t7288, _t7287, _t7286, _t7285, _t7284, _t7283, _t7282, _t7281, _t7280, _t7277, _t7276, _t7275, _t7274, _t7273, _t7272, _t7271, _t7270, _t7269, _t7268, _t7267, _t7265, _t7264, _t7262, _t7261, _t7258, _t7257, _t7256, _t7255, _t7254, _t7253, _t7252, _t7251, _t7247, _t7249, _t7246, _t7245, _t7242, _t7241, _t7240, _t7237, _t6887, _t7232, _t7231, _t7225, _t7224, _t7223, _t7222, _t7230, _t7221, _t7158, _t7157, _t7156, _t7155, _t7217, _t7216, _t7215, _t7214, _t7213, _t7208, _t7210, _t7207, _t7206, _t7205, _t7204, _t7203, _t7202, _t7200, _t7198, _t7195, _t7194, _t7193, _t7192, _t7190, _t7189, _t7188, _t7187, _t7186, _t7185, _t7184, _t7183, _t7182, _t7181, _t7178, _t7180, _t7177, _t7176, _t7174, _t7171, _t7167, _t7166, _t7165, _t7159, _t7153, _t7152, _t7151, _t7150, _t7149, _t7148, _t7146, _t7145, _t7143, _t7142, _t7138, _t7137, _t7136, _t7135, _t7134, _t7129, _t7128, _t7126, _t7125, _t7124, _t7123, _t7122, _t7119, _t7115, _t7114, _t7113, _t7112, _t7111, _t7096, _t7100, _t7110, _t7108, _t7107, _t7106, _t7105, _t7104, _t7103, _t7102, _t7095, _t7094, _t7091, _t7093, _t7090, _t7089, _t7074, _t7078, _t7088, _t7087, _t7086, _t7085, _t7084, _t7083, _t7082, _t7081, _t7080, _t7077, _t7076, _t7073, _t7072, _t7071, _t7068, _t7064, _t7066, _t7061, _t7060, _t7059, _t7058, _t7054, _t7049, _t7045, _t7047, _t7041, _t7040, _t7039, _t7036, _t7034, _t7032, _t7031, _t7030, _t7026, _t7023, _t7021, _t7019, _t7018, _t7017, _t7001, _t6999, _t6998, _t7015, _t7014, _t7013, _t7011, _t7008, _t7007, _t7006, _t7005, _t6990, _t6989, _t6994, _t3512, _t3484, _t6298, _t3483, _t6693, _t3481, _t3492, _t6832, _t3491, _t3494, _t4101, _t6828, _t3477, _t3476, _t1033, _t3475, _t3471, _t6280, _t3470, _t6815, _t2341, _t3454, _t3452, _t3431, _t3564, _t3415, _t5313, _t3444, _t3414, _t1023, _t4344, _t4338, _t3408, _t147, _t3406, _t146, _t3405, _t1957, _t1727, _t2479, _t2321, _t493, _t4316, _t5894, _t3388, _t2799, _t2191, _t2302, _t2189, _t3286, _t3377, _t3376, _t3373, _t3364, _t3363, _t3369, _t2272, _t1593, _t2748, _t5994, _t3328, _t3326, _t3959, _t5439, _t3958, _t3824, _t3220, _t3300, _t3304, _t427, _t5764, _t3299, _t3298, _t18, _t3509, _t3297, _t648, _t5758, _t624, _t3289, _t623, _t4854, _t5739, _t4996, _t4995, _t4997, _t3275, _t2986, _t5734, _t3261, _t3260, _t3259, _t3251, _t3250, _t4611, _t3243, _t2964, _t3238, _t3234, _t3337, _t3210, _t3206, _t1068, _t5261, _t3197, _t1062, _t3194, _t5426, _t6582, _t3271, _t5427, _t6583, _t3191, _t3189, _t3808, _t2842, _t1924, _t313, _t1923, _t64, _t2840, _t63, _t3175, _t3582, _t5412, _t3173, _t5410, _t3172, _t3179, _t3178, _t5395, _t4016, _t3170, _t584, _t618, _t3160, _t3155, _t1048, _t3495, _t3152, _t3473, _t3224, _t3141, _t4208, _t6697, _t3223, _t3140, _t4203, _t6694, _t3135, _t3508, _t2355, _t6810, _t3126, _t4083, _t3125, _t3124, _t3121, _t3459, _t6261, _t3117, _t3116, _t4182, _t1849, _t3103, _t3089, _t5321, _t6239, _t3088, _t4010, _t3087, _t3086, _t3085, _t3084, _t5505, _t3081, _t3428, _t1869, _t3077, _t3422, _t7052, _t5318, _t5497, _t3076, _t3420, _t7051, _t5317, _t3441, _t2332, _t4555, _t3413, _t255, _t3069, _t1797, _t1585, _t3445, _t1874, _t6659, _t2752, _t3442, _t3574, _t4593, _t3055, _t3053, _t7016, _t6000, _t3052, _t7012, _t5981, _t3708, _t3396, _t2199, _t1942, _t3707, _t3045, _t3043, _t3040, _t1769, _t7002, _t3039, _t2071, _t5839, _t3028, _t3036, _t3693, _t3378, _t3030, _t3685, _t2703, _t5957, _t1760, _t224, _t3682, _t3017, _t3514, _t6600, _t3016, _t844, _t3010, _t644, _t4868, _t3009, _t3295, _t3007, _t3294, _t3006, _t3005, _t5751, _t3004, _t640, _t5750, _t6501, _t3000, _t2995, _t4633, _t4858, _t4856, _t3411, _t5002, _t3407, _t2989, _t283, _t4993, _t827, _t2984, _t6478, _t2975, _t5250, _t2974, _t4980, _t2950, _t2949, _t5689, _t2966, _t2918, _t5714, _t3386, _t2965, _t3244, _t4830, _t2960, _t5708, _t2940, _t2939, _t5728, _t2937, _t2915, _t2933, _t29, _t1490, _t2932, _t2977, _t6479, _t2927, _t2926, _t4838, _t2912, _t5702, _t2909, _t6459, _t2901, _t6445, _t2889, _t2888, _t4938, _t2896, _t6170, _t2895, _t1217, _t2893, _t2874, _t2876, _t2875, _t2870, _t4935, _t2867, _t3335, _t2865, _t2862, _t6152, _t2850, _t2849, _t173, _t2848, _t2847, _t6396, _t238, _t2852, _t4924, _t1926, _t1919, _t2837, _t2489, _t4472, _t243, _t2661, _t2833, _t220, _t216, _t2825, _t2584, _t2824, _t2577, _t2829, _t2828, _t2827, _t2581, _t6121, _t217, _t2755, _t2754, _t3334, _t6104, _t7260, _t2816, _t1945, _t2203, _t794, _t2814, _t2812, _t3398, _t4310, _t2811, _t2808, _t2310, _t5888, _t478, _t5887, _t477, _t2801, _t2800, _t3389, _t3063, _t1582, _t7279, _t3725, _t2798, _t2194, _t3060, _t2795, _t761, _t3436, _t2188, _t758, _t2785, _t391, _t2783, _t2781, _t2780, _t2774, _t2773, _t2771, _t2444, _t951, _t2767, _t2766, _t945, _t1602, _t2765, _t3743, _t3353, _t2764, _t1598, _t2760, _t3344, _t3345, _t2759, _t3343, _t2757, _t2149, _t3340, _t2743, _t2742, _t2741, _t2738, _t5836, _t5989, _t2733, _t3305, _t3231, _t2730, _t3230, _t6604, _t2729, _t2728, _t1560, _t3218, _t3622, _t1718, _t2722, _t7244, _t3699, _t1770, _t1768, _t3205, _t2716, _t3691, _t3208, _t5262, _t2715, _t5968, _t2714, _t3288, _t1501, _t3287, _t3204, _t7139, _t2065, _t3690, _t2697, _t2707, _t2702, _t5956, _t5789, _t3254, _t5952, _t3245, _t4827, _t2671, _t2007, _t2685, _t5631, _t2679, _t2021, _t5123, _t3324, _t5388, _t6547, _t2488, _t3168, _t581, _t5387, _t2487, _t4795, _t3064, _t2670, _t5620, _t2669, _t2668, _t2597, _t2660, _t6126, _t6123, _t2657, _t67, _t2656, _t2654, _t1895, _t2653, _t2652, _t2644, _t2627, _t759, _t2620, _t2618, _t1263, _t1629, _t2599, _t2598, _t2595, _t2611, _t6083, _t2601, _t2586, _t2609, _t2585, _t2589, _t2563, _t2562, _t2561, _t1907, _t2583, _t214, _t6377, _t2580, _t2579, _t893, _t2555, _t2553, _t6091, _t2552, _t2550, _t3474, _t6689, _t1183, _t3329, _t2745, _t1581, _t833, _t4853, _t2537, _t2992, _t832, _t2536, _t1487, _t2544, _t2725, _t1776, _t2449, _t5629, _t2022, _t2540, _t2539, _t1871, _t2507, _t3182, _t6580, _t3014, _t2506, _t7069, _t4493, _t2525, _t5204, _t3256, _t2515, _t2514, _t2963, _t2511, _t1548, _t2497, _t2496, _t1537, _t5612, _t5080, _t2494, _t2502, _t4489, _t2499, _t2493, _t2946, _t2478, _t1946, _t4315, _t3458, _t46, _t5356, _t2476, _t5900, _t2474, _t2202, _t1934, _t1930, _t1929, _t1928, _t1927, _t2330, _t2465, _t3382, _t2464, _t3381, _t6030, _t5328, _t1275, _t3380, _t6029, _t2367, _t3097, _t2462, _t3379, _t3279, _t753, _t6028, _t2556, _t2784, _t1273, _t2183, _t6027, _t3479, _t2452, _t6281, _t4312, _t2443, _t6159, _t138, _t3339, _t5860, _t2426, _t1419, _t2425, _t1421, _t2440, _t2439, _t2158, _t941, _t2431, _t2430, _t2429, _t1622, _t1415, _t2447, _t2678, _t6014, _t2406, _t3478, _t2408, _t1167, _t1177, _t2403, _t2399, _t2397, _t6064, _t2392, _t3453, _t2384, _t1748, _t3094, _t4012, _t5324, _t6650, _t289, _t5372, _t5509, _t292, _t2364, _t4092, _t6297, _t2378, _t3157, _t6839, _t2375, _t6831, _t2405, _t1242, _t6829, _t3461, _t5362, _t2359, _t4578, _t2358, _t4041, _t4198, _t2351, _t3464, _t6269, _t2350, _t2349, _t3462, _t2315, _t3392, _t480, _t2348, _t2797, _t2305, _t4292, _t2335, _t3482, _t5340, _t3102, _t2210, _t2325, _t2631, _t3399, _t4311, _t3147, _t7229, _t2471, _t5896, _t3331, _t471, _t4306, _t7029, _t2313, _t2312, _t2311, _t481, _t3225, _t3142, _t4204, _t6695, _t3132, _t2303, _t58, _t2301, _t3290, _t763, _t2606, _t2295, _t967, _t388, _t2287, _t3113, _t4178, _t135, _t2420, _t2279, _t2275, _t2159, _t2273, _t22, _t2314, _t6011, _t2880, _t2326, _t1024, _t2269, _t2266, _t1171, _t2259, _t2594, _t1197, _t6386, _t1262, _t2252, _t1179, _t2251, _t2250, _t1178, _t1256, _t2249, _t1260, _t2248, _t1255, _t2613, _t2240, _t1247, _t2239, _t2237, _t3270, _t2607, _t820, _t2236, _t2235, _t1249, _t2233, _t3247, _t358, _t2227, _t816, _t276, _t125, _t347, _t6036, _t2217, _t568, _t6056, _t2214, _t1978, _t567, _t6055, _t2213, _t1977, _t566, _t2779, _t3409, _t3057, _t1711, _t2195, _t1710, _t777, _t461, _t460, _t3424, _t5982, _t3569, _t4556, _t2186, _t2299, _t964, _t2179, _t2176, _t2768, _t2813, _t1601, _t3744, _t3354, _t2289, _t3368, _t3325, _t5851, _t2446, _t593, _t3323, _t6546, _t3283, _t756, _t3035, _t2064, _t3032, _t3750, _t2167, _t877, _t3318, _t725, _t3166, _t4892, _t2166, _t2164, _t5859, _t2163, _t2161, _t2160, _t3049, _t1566, _t263, _t3712, _t2142, _t7009, _t3048, _t261, _t2141, _t3050, _t260, _t2140, _t2139, _t2777, _t5870, _t6021, _t2138, _t3790, _t4904, _t2153, _t1592, _t5638, _t2151, _t6575, _t2740, _t2150, _t1664, _t6576, _t3435, _t4548, _t6412, _t2146, _t6892, _t3433, _t4009, _t5878, _t4906, _t6557, _t3393, _t1941, _t3046, _t2134, _t2129, _t3327, _t4681, _t2125, _t2068, _t3695, _t2123, _t4894, _t2285, _t3037, _t2067, _t3694, _t2121, _t2758, _t3341, _t2165, _t599, _t4669, _t2162, _t7191, _t2441, _t2115, _t6533, _t2107, _t2418, _t711, _t183, _t2104, _t1804, _t2103, _t424, _t2102, _t3500, _t2354, _t3336, _t1587, _t2097, _t1801, _t2096, _t1803, _t2095, _t1802, _t2263, _t2383, _t2094, _t1800, _t3362, _t5884, _t2083, _t2786, _t2082, _t2081, _t3439, _t2091, _t182, _t2090, _t3718, _t3487, _t2338, _t1789, _t2734, _t2088, _t1788, _t6578, _t2087, _t2086, _t1570, _t2058, _t6558, _t2078, _t2077, _t1774, _t1554, _t5812, _t7144, _t2075, _t5814, _t2074, _t5813, _t2073, _t7239, _t3698, _t5811, _t2072, _t5810, _t1597, _t236, _t234, _t2057, _t3215, _t3134, _t2719, _t1959, _t3367, _t4332, _t3214, _t3136, _t1716, _t1958, _t3213, _t3133, _t2056, _t108, _t2055, _t2054, _t2053, _t1761, _t3375, _t2052, _t1758, _t3374, _t221, _t5793, _t2046, _t2509, _t2045, _t2044, _t5794, _t2043, _t2042, _t3165, _t2485, _t2686, _t5785, _t2036, _t3171, _t2034, _t2693, _t5780, _t7098, _t1449, _t2032, _t6451, _t1448, _t2031, _t6040, _t5240, _t3167, _t580, _t5386, _t2486, _t4794, _t5221, _t2020, _t4805, _t2019, _t7218, _t2018, _t5626, _t2463, _t2016, _t7199, _t7211, _t2013, _t5118, _t2010, _t4791, _t2864, _t2006, _t2680, _t5212, _t2005, _t5211, _t2004, _t5923, _t2003, _t1434, _t2002, _t1433, _t2860, _t6414, _t2001, _t2859, _t6411, _t2000, _t6410, _t1999, _t1428, _t6409, _t1997, _t5917, _t7197, _t1996, _t5916, _t1995, _t1994, _t1993, _t2322, _t2207, _t1992, _t1991, _t1990, _t4509, _t2451, _t5103, _t1989, _t5195, _t1988, _t1986, _t2650, _t1124, _t2400, _t6370, _t1921, _t6388, _t1981, _t346, _t1920, _t3749, _t2838, _t1980, _t345, _t4363, _t1972, _t2718, _t6071, _t1707, _t2720, _t2201, _t4333, _t2665, _t5644, _t1725, _t2591, _t1939, _t1947, _t3127, _t2582, _t212, _t6379, _t3394, _t2658, _t85, _t5657, _t1910, _t2635, _t3242, _t3154, _t1047, _t3770, _t1900, _t6122, _t1897, _t2830, _t1794, _t1944, _t490, _t1877, _t1893, _t3131, _t1888, _t1886, _t847, _t1885, _t3276, _t2612, _t6084, _t1884, _t2753, _t6102, _t1883, _t1882, _t842, _t1880, _t885, _t6189, _t1875, _t2262, _t1201, _t3054, _t1782, _t1872, _t1866, _t1864, _t2866, _t2181, _t6057, _t963, _t4276, _t1863, _t1858, _t1857, _t6231, _t646, _t2124, _t1850, _t3384, _t3550, _t1844, _t6223, _t1843, _t1834, _t2427, _t776, _t1833, _t3371, _t384, _t4273, _t5873, _t1832, _t4540, _t592, _t3316, _t4666, _t6530, _t6628, _t2823, _t5999, _t1828, _t1827, _t6626, _t1826, _t2156, _t1825, _t1824, _t1823, _t1815, _t1812, _t1810, _t1809, _t1808, _t6206, _t1807, _t3209, _t1806, _t948, _t1380, _t2835, _t1793, _t1580, _t5838, _t2834, _t1792, _t3001, _t4864, _t1786, _t179, _t3003, _t1784, _t3401, _t2477, _t2331, _t869, _t2961, _t4350, _t3400, _t4313, _t868, _t7053, _t5319, _t867, _t4348, _t3421, _t7050, _t5316, _t866, _t259, _t4347, _t3418, _t2261, _t3397, _t474, _t865, _t864, _t4345, _t4341, _t1429, _t1780, _t1779, _t1778, _t3709, _t1777, _t3272, _t2985, _t6487, _t754, _t3280, _t2708, _t237, _t1773, _t1772, _t4469, _t1700, _t3212, _t1699, _t3211, _t107, _t2979, _t2934, _t5384, _t6481, _t1698, _t3395, _t2978, _t6480, _t2704, _t7227, _t2033, _t1759, _t223, _t1753, _t2619, _t561, _t1896, _t1755, _t2751, _t1028, _t585, _t314, _t1752, _t560, _t1751, _t562, _t5238, _t2747, _t1750, _t559, _t2368, _t1746, _t3221, _t3138, _t1744, _t1743, _t6082, _t383, _t5875, _t6125, _t246, _t1973, _t1729, _t1728, _t3067, _t2319, _t4314, _t1722, _t2573, _t2228, _t6072, _t2723, _t1719, _t2712, _t1714, _t3112, _t2713, _t3111, _t2711, _t1712, _t5886, _t3746, _t2229, _t1035, _t1709, _t465, _t131, _t4298, _t2025, _t2468, _t57, _t2216, _t1032, _t570, _t1708, _t130, _t463, _t4297, _t1702, _t3621, _t1695, _t1694, _t2699, _t1693, _t3506, _t1692, _t3617, _t1691, _t2972, _t4615, _t1690, _t3615, _t3187, _t4918, _t1689, _t3258, _t1488, _t2971, _t1688, _t1687, _t1686, _t1685, _t5409, _t3948, _t2518, _t5098, _t1683, _t3253, _t1682, _t6591, _t1681, _t1679, _t1763, _t1678, _t7238, _t1762, _t225, _t1677, _t1676, _t1673, _t3190, _t2692, _t1672, _t3796, _t1671, _t1670, _t2505, _t5183, _t1669, _t53, _t6188, _t6468, _t2504, _t5085, _t1668, _t2038, _t1661, _t1660, _t6888, _t4704, _t6572, _t1659, _t3928, _t5425, _t1657, _t361, _t1655, _t2030, _t1462, _t5776, _t1654, _t4701, _t6569, _t2029, _t1653, _t3923, _t6568, _t3967, _t2340, _t5352, _t802, _t3232, _t3964, _t801, _t3412, _t800, _t33, _t792, _t2473, _t487, _t1150, _t791, _t5897, _t1837, _t786, _t1836, _t785, _t1835, _t784, _t1027, _t783, _t3391, _t1026, _t2114, _t739, _t1383, _t3027, _t2357, _t6464, _t1799, _t3066, _t2105, _t2617, _t760, _t93, _t3330, _t6522, _t1130, _t1160, _t2423, _t543, _t377, _t1423, _t6094, _t152, _t1734, _t3107, _t2205, _t149, _t1732, _t1478, _t4551, _t2204, _t795, _t148, _t3105, _t3571, _t6657, _t2559, _t732, _t4610, _t6851, _t3104, _t3443, _t3570, _t731, _t3241, _t717, _t715, _t286, _t3158, _t6840, _t1787, _t2421, _t714, _t285, _t713, _t4664, _t4161, _t738, _t6678, _t6855, _t1172, _t2208, _t1971, _t704, _t431, _t3303, _t3145, _t2416, _t703, _t1229, _t3144, _t3227, _t2997, _t3143, _t4914, _t3226, _t3960, _t6199, _t699, _t1283, _t2063, _t697, _t3896, _t2938, _t734, _t695, _t690, _t1933, _t689, _t1932, _t974, _t688, _t4717, _t1596, _t687, _t1724, _t851, _t686, _t1723, _t850, _t2803, _t799, _t382, _t4274, _t5874, _t676, _t2292, _t381, _t4272, _t2212, _t5872, _t674, _t2772, _t856, _t150, _t6320, _t673, _t672, _t3122, _t6265, _t2472, _t486, _t3385, _t5898, _t671, _t4244, _t3120, _t6264, _t670, _t2608, _t886, _t1881, _t3119, _t438, _t416, _t6263, _t669, _t1631, _t4441, _t655, _t7120, _t650, _t4442, _t6372, _t627, _t626, _t643, _t7116, _t680, _t1781, _t6124, _t1561, _t3710, _t642, _t2982, _t2529, _t4785, _t628, _t4635, _t3692, _t1856, _t49, _t2527, _t625, _t2422, _t1125, _t1646, _t1122, _t621, _t6368, _t3268, _t273, _t6483, _t2836, _t1791, _t2858, _t187, _t1970, _t266, _t3713, _t5983, _t3523, _t3267, _t2936, _t265, _t3266, _t3008, _t4051, _t420, _t264, _t3156, _t3496, _t6308, _t1120, _t896, _t1, _t6365, _t1644, _t617, _t583, _t710, _t615, _t2012, _t1441, _t4678, _t611, _t609, _t608, _t607, _t4300, _t1021, _t1103, _t2746, _t1749, _t606, _t6544, _t2968, _t1961, _t249, _t1018, _t1422, _t3207, _t1191, _t1767, _t8, _t817, _t1101, _t1276, _t694, _t3274, _t5731, _t1325, _t6879, _t691, _t1599, _t591, _t6528, _t2545, _t706, _t1663, _t588, _t405, _t692, _t594, _t3315, _t6529, _t2193, _t1814, _t256, _t4674, _t4888, _t2684, _t2035, _t5804, _t579, _t576, _t4672, _t2324, _t287, _t798, _t3278, _t826, _t4275, _t198, _t635, _t2727, _t1484, _t2433, _t550, _t619, _t6366, _t5377, _t3423, _t5498, _t6044, _t5019, _t554, _t5472, _t3101, _t727, _t1057, _t569, _t2215, _t1756, _t726, _t4609, _t6846, _t3742, _t3352, _t2390, _t557, _t6048, _t1020, _t2651, _t1790, _t1666, _t2983, _t4620, _t629, _t547, _t2810, _t2175, _t472, _t2187, _t4307, _t545, _t2386, _t544, _t747, _t3448, _t2345, _t537, _t1740, _t745, _t2334, _t2344, _t5359, _t536, _t6311, _t532, _t2244, _t1738, _t535, _t448, _t2243, _t1737, _t1963, _t447, _t1952, _t153, _t445, _t5131, _t923, _t5133, _t6948, _t527, _t922, _t4428, _t5130, _t3486, _t2112, _t1173, _t25, _t3239, _t3522, _t716, _t3095, _t4878, _t2135, _t712, _t2329, _t4330, _t5792, _t2623, _t770, _t3410, _t145, _t2050, _t652, _t3467, _t6812, _t397, _t6350, _t6137, _t2789, _t499, _t4321, _t1140, _t564, _t768, _t3293, _t766, _t2890, _t1296, _t1616, _t1410, _t2410, _t2621, _t3292, _t765, _t5880, _t612, _t3319, _t954, _t5865, _t3291, _t764, _t3284, _t775, _t2690, _t488, _t1477, _t4962, _t5701, _t1479, _t600, _t3767, _t4059, _t5381, _t1132, _t6781, _t485, _t1060, _t1476, _t6515, _t4961, _t5700, _t133, _t6187, _t1059, _t531, _t2404, _t484, _t1474, _t1238, _t1816, _t1813, _t1982, _t308, _t718, _t3098, _t4881, _t1286, _t470, _t1426, _t813, _t2226, _t122, _t3296, _t1395, _t6069, _t2855, _t779, _t4036, _t578, _t4893, _t2871, _t300, _t2675, _t3070, _t1783, _t3730, _t466, _t132, _t4346, _t5883, _t831, _t6495, _t11, _t2300, _t1962, _t6711, _t4255, _t1264, _t2122, _t1186, _t3263, _t2393, _t782, _t5473, _t1408, _t1131, _t0, _t3137, _t6294, _t2254, _t1258, _t900, _t6112, _t457, _t442, _t2955, _t2482, _t437, _t6463, _t417, _t4185, _t2604, _t887, _t436, _t4954, _t483, _t668, _t3080, _t51, _t2603, _t1876, _t6097, _t435, _t6457, _t1236, _t2040, _t4317, _t1859, _t432, _t2343, _t5842, _t464, _t128, _t4295, _t707, _t555, _t5020, _t5766, _t426, _t425, _t1842, _t1357, _t2394, _t415, _t409, _t118, _t512, _t365, _t4758, _t1200, _t3174, _t5411, _t2500, _t56, _t2919, _t82, _t6100, _t889, _t5646, _t209, _t203, _t5028, _t639, _t5749, _t6500, _t1867, _t1008, _t2930, _t3561, _t297, _t3403, _t2255, _t458, _t201, _t667, _t476, _t2180, _t2455, _t968, _t389, _t5877, _t1865, _t413, _t2648, _t1416, _t2258, _t296, _t2241, _t859, _t1412, _t2614, _t921, _t2456, _t2411, _t969, _t778, _t2802, _t2710, _t1713, _t2132, _t3, _t3669, _t2991, _t853, _t2615, _t1889, _t538, _t451, _t326, _t5066, _t534, _t6767, _t450, _t7220, _t2024, _t2467, _t479, _t339, _t318, _t2625, _t772, _t2048, _t4923, _t5655, _t677, _t1461, _t5535, _t3252, _t1431, _t2534, _t176, _t2993, _t830, _t2857, _t186, _t1765, _t7233, _t3686, _t385, _t966, _t1337, _t4164, _t349, _t2069, _t5805, _t3257, _t500, _t1496, _t823, _t1904, _t805, _t2396, _t3149, _t3236, _t2041, _t5787, _t3616, _t1912, _t160, _t114, _t1798, _t1583, _t1458, _t2688, _t73, _t5713, _t741, _t2271, _t1595, _t1031, _t541, _t52, _t749, _t2879, _t6407, _t2268, _t1656, _t3926, _t577, _t3779, _t1841, _t1903, _t804, _t2395, _t6203, _t1840, _t5895, _t3568, _t1839, _t2206, _t1949, _t151, _t3314, _t858, _t1733, _t3108, _t1987, _t228, _t2750, _t2093, _t774, _t1379, _t3022, _t1475, _t724, _t3163, _t2920, _t1320, _t1369, _t30, _t4229, _t6687, _t379, _t2290, _t2450, _t475, _t2177, _t3372, _t4269, _t1424, _t1633, _t6092, _t2632, _t787, _t6162, _t2037, _t3672, _t4818, _t2381, _t96, _t1665, _t730, _t4670, _t4233, _t895, _t2569, _t2973, _t3248, _t359, _t2246, _t4373, _t1363, _t47, _t5690, _t5148, _t100, _t340, _t4361, _t2642, _t7131, _t2060, _t563, _t767, _t1297, _t222, _t2484, _t227, _t1736, _t271, _t4639, _t2726, _t6995, _t5974, _t1447, _t5932, _t120, _t325, _t5065, _t3061, _t6009, _t6110, _t1246, _t2185, _t184, _t6374, _t507, _t323, _t2884, _t1194, _t1113, _t3219, _t3449, _t3498, _t746, _t2904, _t6446, _t989, _t106, _t91, _t622, _t2109, _t6321, _t2624, _t771, _t1092, _t2113, _t631, _t5593, _t514, _t6731, _t367, _t1540, _t5178, _t828, _t6494, _t2120, _t1182, _t1267, _t1309, _t60, _t808, _t59, _t6899, _t807, _t247, _t5082, _t1546, _t226, _t2749, _t2092, _t2626, _t773, _t723, _t4677, _t1259, _t4388, _t3510, _t5264, _t2807, _t1590, _t1432, _t177, _t5833, _t55, _t6105, _t1870, _t2535, _t205, _t3825, _t275, _t681, _t5042, _t2131, _t2, _t3668, _t327, _t317, _t2011, _t2457, _t2532, _t1430, _t1096, _t630, _t6042, _t952, _t5791, _t755, _t3282, _t4994, _t637, _t5008, _t2198, _t5892, _t884, _t3196, _t2353, _t31, _t3633, _t3183, _t3513, _t5265, _t1731, _t267, _t5171, _t5984, _t2687, _t4815, _t824, _t1494, _t2361, _t4582, _t5018, _t553, _t3651, _t2253, _t899, _t522, _t5586, _t748, _t395, _t6869, _t818, _t1465, _t3285, _t2616, _t2419, _t1626, _t45, _t5692, _t793, _t489, _t104, _t4409, _t573, _t2899, _t390, _t6176, _t1050, _t5189, _t7132, _t2061, _t1452, _t1038, _t2284, _t142, _t43, _t169, _t3193, _t1766, _t5970, _t1411, _t2605, _t181, _t1575, _t533, _t6766, _t4372, _t2245, _t449, _t26, _t2593, _t736, _t455, _t1512, _t4458, _t2663, _t159, _t1460, _t102, _t262, _t6997, _t5980, _t698, _t1067, _t282, _t4850, _t6492, _t288, _t109, _t2887, _t6150, _t1911, _t1819, _t293, _t3013, _t165, _t653, _t98, _t290, _t1817, _t1265, _t2548, _t188, _t1530, _t3180, _t4698, _t170, _t1847, _t1361, _t6335, _t1539, _t5180, _t546, _t2317, _t3065, _t1584, _t459, _t9, _t5761, _t20, _t1093, _t632, _t5743, _t190, _t1158, _t4417, _t5511, _t1532, _t2276, _t740, _t984, _t3446, _t2347, _t4029, _t2763, _t1552, _t36, _t509, _t363, _t6353, _t74, _t373, _t520, _t6755, _t6896, _t5855, _t3333, _t1095, _t971, _t401, _t3078, _t4871, _t5763, _t811, _t846, _t5757, _t610, _t3264, _t4982, _t402, _t6877, _t508, _t362, _t3265, _t3192, _t6063, _t2700, _t7035, _t675, _t513, _t366, _t6730, _t5658, _t44, _t1384, _t4153, _t2990, _t829, _t6496, _t185, _t324, _t117, _t4351, _t2957, _t2172, _t1091, _t1269, _t3416, _t6229, _t115, _t1608, _t2157, _t1831, _t4516, _t780, _t1481, _t6493, _t3489, _t3199, _t634, _t5744, _t2363, _t1036, _t5474, _t1625, _t6109, _t1245, _t1409, _t2976, _t2234, _t86, _t2908, _t78, _t1165, _t5026, _t2219, _t343, _t4416, _t6590, _t1976, _t6054, _t1605, _t342, _t16, _t4058, _t1531, _t72, _t6173, _t1571, _t2868, _t920, _t2610, _t540, _t3249, _t360, _t4374, _t231, _t937, _t233, _t3201, _t175, _t2110, _t1472, _t2209, _t54, _t5519, _t685, _t5035, _t5139, _t1851, _t19, _t757, _t3281, _t2709, _t2117, _t636, _t1094, _t633, _t218, _t2398, _t752, _t354, _t2640, _t797, _t1399, _t2806, _t1635, _t1099, _t312, _t162, _t3365, _t953, _t2739, _t2841, _t2453, _t2883, _t65, _t2967, _t4353, _t2956, _t2218, _t4783, _t6060, _t589, _t253, _t1080, _t3115, _t71, _t6172, _t2943, _t6863, _t6376, _t558, _t1969, _t6049, _t7109, _t105, _t1313, _t1480, _t39, _t6936, _t2706, _t129, _t4296, _t1053, _t2356, _t406, _t3450, _t306, _t5846, _t814, _t123, _t6070, _t2788, _t498, _t3361, _t4320, _t5902, _t95, _t5293, _t1228, _t3988, _t6228, _t2878, _t2804, _t6144, _t1908, _t5512, _t2362, _t6820, _t1011, _t1162, _t1366, _t2892, _t2501, _t519, _t372, _t1076, _t411, _t769, _t565, _t2099, _t2388, _t551, _t5469, _t3309, _t2108, _t719, _t1466, _t280, _t6490, _t2886, _t1642, _t2683, _t582, _t248, _t1017, _t3072, _t812, _t1534, _t254, _t728, _t7118, _t1117, _t4364, _t2980, _t41, _t1565, _t1649, _t5428, _t1658, _t3091, _t1386, _t516, _t369, _t1542, _t4435, _t99, _t5465, _t213, _t656, _t2409, _t641, _t418, _t3490, _t1413, _t788, _t505, _t6885, _t322, _t638, _t3002, _t5009, _t6499, _t2910, _t1215, _t84, _t5656, _t3151, _t4100, _t1757, _t503, _t2737, _t1742, _t103, _t1349, _t97, _t2116, _t6527, _t1077, _t3624, _t2039, _t5951, _t4258, _t683, _t935, _t539, _t272, _t3177, _t4696, _t127, _t278, _t682, _t6959, _t1166, _t1164, _t70, _t5502, _t3472, _t6234, _t1795, _t7278, _t3727, _t1045, _t1456, _t3181, _t3925, _t239, _t3719, _t5802, _t523, _t319, _t6898, _t2951, _t2200, _t4331, _t841, _t806, _t1703, _t3237, _t3106, _t3572, _t733, _t4235, _t2756, _t244, _t809, _t2346, _t5361, _t810, _t5955, _t1375, _t6357, _t1019, _t469, _t815, _t124, _t10, _t6073, _t5303, _t6624, _t6295, _t2376, _t4103, _t310, _t2256, _t3404, _t883, _t6053, _t6296, _t2377, _t4202, _t6838, _t571, _t68, _t1550, _t4500, _t5628, _t2628, _t1128, _t2647, _t229, _t1983, _t601, _t3768, _t898, _t1244, _t6108, _t1100, _t3511, _t268, _t269, _t3716, _t1735, _t270, _t2815, _t281, _t4849, _t542, _t750, _t4407, _t1675, _t1075, _t302, _t4077, _t6718, _t1519, _t274, _t6484, _t5270, _t2646, _t1899, _t6120, _t320, _t284, _t136, _t3312, _t3096, _t4879, _t2839, _t2152, _t3673, _t5782, _t137, _t3313, _t3761, _t3023, _t139, _t2916, _t1482, _t2079, _t1508, _t4453, _t5709, _t1274, _t2066, _t4456, _t141, _t2576, _t1285, _t66, _t2881, _t2885, _t1818, _t291, _t4231, _t2882, _t1820, _t3895, _t307, _t301, _t4076, _t4236, _t1518, _t321, _t693, _t5560, _t4089, _t410, _t5344, _t119, _t158, _t1544, _t518, _t371, _t2337, _t501, _t3306, _t854, _t311, _t2155, _t3737, _t143, _t3751, _t1139, _t1277, _t2401, _t1022, _t862, _t4343, _t2962, _t2221, _t350, _t3041, _t6613, _t1861, _t863, _t2655, _t202, _t4922, _t6399, _t1137, _t2649, _t50, _t1614, _t2223, _t2762, _t1606, _t352, _t2101, _t2551, _t1266, _t2373, _t1401, _t1638, _t5662, _t316, _t1398, _t2222, _t351, _t1862, _t3307, _t380, _t1667, _t1141, _t7, _t3346, _t467, _t180, _t5834, _t1572, _t1890, _t452, _t3240, _t1589, _t4277, _t2168, _t5848, _t1891, _t398, _t2592, _t1892, _t329, _t7168, _t6982, _t331, _t6984, _t2664, _t5665, _t5166, _t1146, _t4404, _t6935, _t335, _t2470, _t2281, _t1603, _t3747, _t1175, _t337, _t1528, _t5072, _t3031, _t2278, _t5857, _t4378, _t2466, _t2023, _t338, _t2469, _t4291, _t6038, _t341, _t5890, _t2220, _t344, _t348, _t1984, _t232, _t42, _t2224, _t353, _t2637, _t796, _t1396, _t1985, _t7234, _t3687, _t355, _t2638, _t1397, _t15, _t356, _t1610, _t2721, _t1717, _t3246, _t357, _t2230, _t28, _t1848, _t6904, _t6729, _t1025, _t386, _t1541, _t5179, _t548, _t1822, _t549, _t3649, _t6696, _t2059, _t3317, _t2085, _t111, _t3650, _t1674, _t3977, _t5470, _t943, _t4766, _t7133, _t2119, _t1906, _t1123, _t399, _t6380, _t1189, _t1107, _t1279, _t3463, _t23, _t821, _t2778, _t1105, _t1106, _t3301, _t4873, _t5762, _t1495, _t235, _t517, _t370, _t1543, _t3186, _t3797, _t1557, _t5816, _t3109, _t3184, _t1089, _t834, _t1090, _t5295, _t3322, _t835, _t5095, _t3320, _t836, _t3321, _t837, _t1417, _t838, _t5591, _t2954, _t439, _t2817, _t154, _t3269, _t840, _t4647, _t5017, _t2705, _t843, _t645, _t2270, _t3011, _t1232, _t2906, _t1563, _t5823, _t845, _t1231, _t1312, _t2905, _t6450, _t4325, _t1491, _t2769, _t4293, _t5856, _t849, _t3700, _t4804, _t1956, _t857, _t4336, _t6740, _t1811, _t5455, _t497, _t4319, _t2969, _t5901, _t3432, _t3565, _t2481, _t79, _t890, _t3130, _t5370, _t1953, _t443, _t891, _t211, _t892, _t1195, _t1114, _t1887, _t1203, _t2267, _t894, _t5285, _t215, _t6378, _t1747, _t1968, _t206, _t906, _t5663, _t910, _t5635, _t1223, _t5027, _t6940, _t696, _t5037, _t5039, _t5143, _t1046, _t5533, _t2170, _t4279, _t5167, _t931, _t5534, _t2282, _t932, _t1878, _t2415, _t702, _t1196, _t2924, _t5719, _t7000, _t934, _t1133, _t204, _t6783, _t530, _t6920, _t5537, _t2436, _t473, _t4308, _t2389, _t939, _t3455, _t2435, _t3739, _t942, _t3456, _t944, _t3480, _t4031, _t1556, _t3703, _t3468, _t958, _t3469, _t1001, _t1213, _t3083, _t3563, _t1159, _t1220, _t1914, _t4951, _t965, _t1567, _t3082, _t3562, _t3457, _t5504, _t4877, _t3092, _t4549, _t5325, _t3093, _t1940, _t976, _t6776, _t168, _t3866, _t1324, _t4138, _t6738, _t6876, _t2897, _t5680, _t6167, _t87, _t1618, _t977, _t983, _t6788, _t985, _t279, _t988, _t3856, _t2903, _t6448, _t2533, _t990, _t3858, _t2520, _t991, _t2902, _t6178, _t6447, _t4927, _t6157, _t2519, _t992, _t2521, _t993, _t2522, _t994, _t5699, _t6461, _t2523, _t995, _t1298, _t3864, _t1355, _t6943, _t998, _t999, _t6506, _t1338, _t1212, _t506, _t6433, _t1000, _t2622, _t2636, _t1394, _t904, _t6373, _t89, _t1002, _t1350, _t2437, _t140, _t1009, _t1010, _t950, _t2442, _t1016, _t3466, _t6683, _t396, _t4254, _t1136, _t1013, _t949, _t1014, _t1003, _t1042, _t4210, _t1004, _t1040, _t1527, _t336, _t5979, _t3033, _t1041, _t4212, _t6825, _t1049, _t1034, _t6290, _t729, _t1680, _t1152, _t4410, _t6224, _t6, _t4862, _t1039, _t6700, _t2126, _t1043, _t6691, _t4225, _t428, _t2928, _t5722, _t1367, _t6341, _t1055, _t4440, _t1315, _t5696, _t4302, _t4349, _t5885, _t1056, _t861, _t4342, _t2137, _t3789, _t1918, _t6135, _t299, _t6077, _t134, _t4301, _t6443, _t1061, _t4068, _t1066, _t3957, _t1070, _t3819, _t1071, _t2495, _t1072, _t1074, _t1951, _t444, _t2590, _t2147, _t5639, _t1097, _t1098, _t1199, _t2247, _t2145, _t722, _t4676, _t3019, _t5781, _t3520, _t1083, _t3518, _t980, _t1084, _t3519, _t1085, _t3527, _t1184, _t1104, _t1108, _t2127, _t1187, _t1109, _t230, _t1110, _t6363, _t2629, _t1271, _t1966, _t6043, _t2630, _t1894, _t6118, _t1115, _t1116, _t705, _t3766, _t1898, _t1118, _t3870, _t1647, _t3580, _t3919, _t3198, _t4902, _t6375, _t2328, _t4329, _t6756, _t3203, _t1208, _t1651, _t3583, _t6563, _t5417, _t6653, _t3847, _t116, _t3262, _t5102, _t1558, _t1134, _t2178, _t2863, _t6155, _t1135, _t1138, _t1547, _t5906, _t328, _t1143, _t6260, _t4399, _t6930, _t1144, _t1145, _t3862, _t913, _t5517, _t3161, _t1250, _t6085, _t1157, _t2947, _t1161, _t5515, _t3488, _t1704, _t1168, _t2854, _t178, _t1573, _t1705, _t1169, _t2948, _t2677, _t1955, _t4802, _t1174, _t3185, _t3110, _t2402, _t3501, _t40, _t2424, _t1180, _t2900, _t2517, _t987, _t3855, _t1252, _t1181, _t1726, _t679, _t1185, _t1188, _t6381, _t1190, _t495, _t2232, _t1111, _t6385, _t1192, _t434, _t6088, _t1730, _t6387, _t1198, _t1280, _t2483, _t2988, _t4354, _t1637, _t1464, _t1102, _t1206, _t915, _t3255, _t5953, _t1684, _t6589, _t6419, _t1209, _t1210, _t1300, _t6164, _t1211, _t1652, _t3584, _t6564, _t1030, _t1214, _t1216, _t1218, _t1221, _t192, _t5514, _t6938, _t1222, _t926, _t6952, _t195, _t1224, _t199, _t1568, _t1225, _t1569, _t193, _t5024, _t6939, _t1226, _t1311, _t6449, _t429, _t2931, _t1235, _t1240, _t1241, _t5678, _t1551, _t1248, _t914, _t4423, _t2775, _t1261, _t2264, _t4389, _t1591, _t839, _t1418, _t2782, _t1270, _t2942, _t1147, _t1148, _t1153, _t4411, _t1154, _t4412, _t2945, _t6174, _t1155, _t4413, _t2366, _t1287, _t1510, _t4732, _t6424, _t2907, _t996, _t1290, _t4976, _t1291, _t38, _t5673, _t1293, _t5675, _t90, _t919, _t1516, _t2587, _t1301, _t1012, _t6165, _t6430, _t1302, _t6431, _t1303, _t5684, _t2914, _t1931, _t1304, _t5685, _t1307, _t1308, _t400, _t164, _t1359, _t6333, _t933, _t1347, _t5698, _t2049, _t651, _t1317, _t4956, _t1334, _t1318, _t1493, _t5730, _t1321, _t4256, _t5379, _t1323, _t4141, _t1328, _t4146, _t1065, _t3505, _t2929, _t1326, _t1073, _t4156, _t1339, _t1525, _t1340, _t1341, _t1342, _t1343, _t1344, _t1345, _t6758, _t1335, _t1346, _t1348, _t5385, _t590, _t1353, _t1351, _t1354, _t2898, _t6336, _t1624, _t1364, _t1365, _t4128, _t163, _t1358, _t6332, _t1846, _t1360, _t6334, _t1257, _t1868, _t1381, _t6881, _t4086, _t1382, _t1227, _t412, _t1368, _t1370, _t4131, _t7055, _t6347, _t1371, _t6861, _t4132, _t7056, _t6348, _t1372, _t7057, _t6349, _t1388, _t2922, _t2512, _t6752, _t101, _t1627, _t781, _t1389, _t1391, _t6066, _t3164, _t3075, _t790, _t2633, _t872, _t4096, _t789, _t1392, _t871, _t4266, _t1440, _t2372, _t962, _t1442, _t2639, _t1400, _t2549, _t2374, _t1402, _t848, _t1403, _t277, _t126, _t1404, _t1405, _t3090, _t1406, _t1445, _t6031, _t5232, _t1407, _t2554, _t2380, _t860, _t1414, _t1454, _t5771, _t2602, _t4003, _t873, _t491, _t874, _t3427, _t6236, _t492, _t875, _t1506, _t876, _t1507, _t4640, _t3429, _t494, _t3430, _t1873, _t878, _t496, _t4318, _t879, _t1420, _t1427, _t2460, _t5108, _t5206, _t3277, _t1438, _t1444, _t5231, _t5624, _t1446, _t2717, _t5808, _t1576, _t1439, _t252, _t5217, _t708, _t5767, _t1455, _t4812, _t1457, _t1459, _t852, _t3308, _t4889, _t34, _t1463, _t2154, _t3736, _t1470, _t3752, _t1471, _t2111, _t1058, _t1473, _t2645, _t3310, _t4880, _t1821, _t6212, _t720, _t1052, _t1467, _t3311, _t2144, _t721, _t4675, _t1468, _t552, _t1485, _t4024, _t1492, _t1497, _t574, _t1498, _t6964, _t4831, _t1499, _t1628, _t1502, _t5741, _t1504, _t4859, _t1511, _t4457, _t4733, _t1513, _t4460, _t1514, _t5059, _t1515, _t4459, _t1517, _t2080, _t1520, _t2352, _t511, _t6665, _t3854, _t5579, _t1523, _t5577, _t1524, _t5383, _t1535, _t1538, _t975, _t2503, _t1079, _t3628, _t5444, _t1549, _t4774, _t5599, _t2894, _t6166, _t981, _t3850, _t1620, _t1553, _t4773, _t7172, _t5598, _t5962, _t1555, _t1333, _t1559, _t978, _t1619, _t2981, _t2528, _t4787, _t1562, _t3273, _t6510, _t1564, _t7259, _t2818, _t1775, _t1577, _t1623, _t3216, _t647, _t5760, _t2787, _t1578, _t5844, _t2832, _t1785, _t1600, _t5858, _t2736, _t2327, _t4328, _t161, _t1126, _t526, _t1609, _t1613, _t1917, _t298, _t1253, _t1611, _t1948, _t6075, _t174, _t1615, _t2666, _t6127, _t1254, _t2998, _t4381, _t1289, _t1632, _t1594, _t2744, _t6099, _t2873, _t1640, _t1641, _t4682, _t6770, _t5933, _t330, _t3908, _t4895, _t6551, _t1645, _t1648, _t3581, _t3920, _t3585, _t616, _t5413, _t6562, _t3502, _t6703, _t3503, _t3504, _t3815, _t6277, _t5260, _t3515, _t3118, _t3516, _t3188, _t3517, _t5280, _t3521, _t5286, _t3524, _t3525, _t5454, _t3526, _t2572, _t3642, _t3643, _t6207, _t6209, _t5458, _t3530, _t3647, _t3972, _t6617, _t3528, _t5457, _t3531, _t6211, _t5466, _t414, _t6616, _t3532, _t3975, _t3534, _t3535, _t3536, _t1299, _t3653, _t3537, _t1149, _t3979, _t3217, _t3538, _t5475, _t3539, _t3139, _t3222, _t3540, _t3655, _t3229, _t3542, _t6632, _t3544, _t1163, _t3233, _t3545, _t1696, _t3986, _t5307, _t3148, _t3235, _t3546, _t1697, _t5308, _t3547, _t3548, _t3551, _t5315, _t3552, _t3553, _t3554, _t6640, _t3996, _t3555, _t3557, _t1316, _t4007, _t6645, _t3558, _t4568, _t3559, _t1838, _t3567, _t1845, _t3573, _t3575, _t4896, _t6606, _t3576, _t6660, _t3577, _t3946, _t604, _t5402, _t3578, _t4686, _t803, _t3579, _t3916, _t295, _t3560, _t3587, _t3589, _t2925, _t3924, _t3590, _t3591, _t2565, _t3795, _t3592, _t2566, _t3798, _t3593, _t3594, _t3595, _t3596, _t3598, _t3599, _t3600, _t4913, _t3128, _t3601, _t3602, _t4932, _t822, _t4933, _t1292, _t3806, _t4713, _t1902, _t4940, _t1905, _t3608, _t3813, _t5450, _t4939, _t1901, _t3606, _t3778, _t3610, _t3611, _t3612, _t613, _t3949, _t5433, _t3613, _t614, _t3950, _t5434, _t3614, _t4415, _t5432, _t1916, _t3618, _t3619, _t3623, _t3603, _t5245, _t3604, _t3419, _t6198, _t3635, _t3953, _t5435, _t6592, _t3636, _t2567, _t3637, _t2568, _t3638, _t5287, _t3639, _t5288, _t2570, _t3640, _t3644, _t3645, _t3971, _t3646, _t3974, _t6614, _t3973, _t5296, _t6615, _t1288, _t5289, _t3658, _t5484, _t3659, _t7043, _t5304, _t6221, _t3660, _t4521, _t3661, _t3662, _t4524, _t3663, _t3440, _t5485, _t3665, _t3666, _t3667, _t3670, _t3674, _t2027, _t3675, _t3676, _t3677, _t3678, _t3681, _t3679, _t7228, _t3684, _t4522, _t6634, _t7235, _t3688, _t7236, _t3689, _t3701, _t3702, _t5784, _t3704, _t3705, _t7243, _t3706, _t3714, _t3715, _t7266, _t2820, _t3720, _t3722, _t3723, _t3724, _t2821, _t3726, _t5997, _t2822, _t3728, _t5998, _t3731, _t3338, _t3732, _t5820, _t1829, _t3733, _t3342, _t3740, _t3741, _t3351, _t3745, _t3753, _t3754, _t3586, _t3757, _t3755, _t6636, _t3625, _t3626, _t3627, _t3629, _t5445, _t3630, _t3631, _t3632, _t6521, _t3760, _t3758, _t3763, _t4937, _t3764, _t6535, _t3765, _t4884, _t3769, _t3771, _t3772, _t3773, _t6541, _t3780, _t3781, _t6586, _t1915, _t3784, _t3942, _t5397, _t3782, _t1922, _t3785, _t3786, _t4909, _t3799, _t3929, _t1282, _t3800, _t3930, _t2571, _t3641, _t3801, _t3791, _t2557, _t3787, _t3802, _t2574, _t4967, _t3803, _t2578, _t4919, _t2575, _t3804, _t3202, _t3807, _t5252, _t3150, _t6584, _t3811, _t3812, _t3816, _t1306, _t3817, _t3818, _t3820, _t3821, _t3822, _t6595, _t6598, _t1294, _t3809, _t5274, _t5438, _t3827, _t2379, _t5276, _t5277, _t6602, _t5278, _t3963, _t5275, _t3832, _t3833, _t3834, _t3835, _t3841, _t3843, _t3844, _t3836, _t3837, _t3838, _t3839, _t196, _t6778, _t4201, _t6837, _t3853, _t3857, _t4395, _t3859, _t3860, _t393, _t6801, _t4402, _t6932, _t3848, _t3849, _t4663, _t6853, _t3865, _t6854, _t4661, _t3867, _t3869, _t3873, _t4668, _t3874, _t4424, _t3875, _t3877, _t4425, _t3878, _t3879, _t3880, _t5127, _t3885, _t3886, _t3887, _t3888, _t3889, _t3890, _t5528, _t3349, _t3350, _t3355, _t3356, _t2192, _t2944, _t3357, _t3897, _t4259, _t3898, _t658, _t5547, _t3899, _t4722, _t3900, _t5050, _t7154, _t5578, _t5051, _t3904, _t6715, _t3902, _t5053, _t5154, _t3905, _t5057, _t3906, _t684, _t5556, _t172, _t6971, _t3922, _t4712, _t6891, _t4707, _t4912, _t2935, _t1330, _t3933, _t1331, _t3934, _t4915, _t6257, _t5246, _t3935, _t3936, _t3937, _t4916, _t595, _t3938, _t596, _t3939, _t597, _t3940, _t598, _t3941, _t3951, _t5436, _t3952, _t3954, _t3955, _t602, _t5400, _t3944, _t3927, _t5441, _t6200, _t5380, _t3962, _t3965, _t3966, _t3968, _t3969, _t3970, _t433, _t1860, _t6612, _t3976, _t663, _t5298, _t6618, _t5437, _t3978, _t6622, _t1151, _t2531, _t4513, _t3980, _t3434, _t5477, _t3982, _t21, _t4518, _t1378, _t6629, _t2596, _t3989, _t5310, _t3823, _t3990, _t3991, _t3992, _t3993, _t3994, _t5314, _t3995, _t3997, _t3828, _t3998, _t6811, _t6641, _t3999, _t6643, _t4000, _t6644, _t4001, _t6642, _t4002, _t4004, _t4005, _t4006, _t3984, _t7042, _t5305, _t3985, _t5306, _t4013, _t6655, _t4014, _t4008, _t4547, _t4015, _t5337, _t4025, _t6262, _t4026, _t4027, _t572, _t4028, _t4030, _t4081, _t4032, _t1500, _t4033, _t5365, _t4034, _t6680, _t4035, _t4017, _t917, _t5965, _t4561, _t4018, _t3024, _t4563, _t1486, _t4019, _t4172, _t1489, _t4020, _t4173, _t4021, _t4022, _t4037, _t6803, _t4038, _t586, _t4039, _t5369, _t4183, _t6813, _t4040, _t4042, _t4043, _t2293, _t4575, _t4045, _t4046, _t4047, _t6292, _t4048, _t5267, _t6293, _t4049, _t6821, _t419, _t4050, _t4177, _t4093, _t421, _t3917, _t4052, _t422, _t3918, _t4053, _t4054, _t4098, _t2923, _t4055, _t2921, _t4056, _t4060, _t2308, _t4595, _t430, _t4061, _t6662, _t6833, _t4062, _t4220, _t6708, _t3852, _t6836, _t1329, _t4224, _t6842, _t4067, _t3932, _t4065, _t4110, _t4604, _t7028, _t662, _t5297, _t6316, _t3861, _t6845, _t4070, _t4111, _t6317, _t4071, _t6318, _t4216, _t6677, _t6850, _t4072, _t4607, _t4073, _t4074, _t4075, _t4078, _t4080, _t4063, _t4655, _t5360, _t446, _t454, _t1377, _t453, _t1376, _t4084, _t4087, _t4088, _t4097, _t6303, _t4106, _t4600, _t4107, _t4108, _t4113, _t6717, _t4211, _t4123, _t4124, _t4125, _t4126, _t4127, _t4223, _t4129, _t4226, _t4130, _t4116, _t4133, _t4134, _t4135, _t3876, _t4136, _t4137, _t4139, _t3884, _t4241, _t4145, _t4147, _t6701, _t4148, _t4149, _t4151, _t4263, _t4152, _t4684, _t4155, _t4157, _t4158, _t4159, _t4163, _t4165, _t4167, _t4168, _t4614, _t4170, _t6804, _t4171, _t4179, _t6255, _t4205, _t6669, _t4180, _t6256, _t4181, _t6814, _t4565, _t4186, _t6267, _t4187, _t4188, _t4102, _t4189, _t4105, _t4190, _t4572, _t4191, _t6806, _t4104, _t4574, _t4194, _t3842, _t4192, _t4195, _t5368, _t4109, _t4197, _t6686, _t6827, _t4207, _t3863, _t6675, _t4214, _t6848, _t4217, _t3056, _t4599, _t3893, _t4122, _t4218, _t4594, _t4221, _t6309, _t4222, _t6310, _t4234, _t3881, _t4142, _t4237, _t3882, _t4143, _t4238, _t4243, _t4176, _t6882, _t4250, _t6342, _t4251, _t4252, _t4253, _t6733, _t4688, _t4246, _t4257, _t6737, _t6874, _t3907, _t4044, _t3909, _t6552, _t3910, _t6553, _t3911, _t6554, _t3912, _t3347, _t4261, _t4262, _t4264, _t1082, _t6746, _t27, _t4265, _t2846, _t4267, _t4268, _t938, _t6016, _t4270, _t6022, _t4271, _t2190, _t5871, _t4630, _t4289, _t4290, _t6037, _t4294, _t2869, _t4299, _t4303, _t4304, _t4305, _t4322, _t4323, _t2196, _t4324, _t4326, _t4327, _t4334, _t3370, _t4335, _t4337, _t4339, _t4340, _t2958, _t4352, _t1319, _t4355, _t4907, _t4356, _t4448, _t4357, _t5904, _t4358, _t4359, _t110, _t4365, _t113, _t4366, _t121, _t4367, _t112, _t2238, _t4368, _t4369, _t2242, _t4370, _t4371, _t4375, _t4376, _t4360, _t2856, _t2171, _t4280, _t4281, _t4282, _t2173, _t4283, _t5850, _t4284, _t4285, _t4286, _t2952, _t4287, _t4377, _t4379, _t4380, _t4382, _t2999, _t4383, _t4384, _t4385, _t4386, _t4387, _t4390, _t2296, _t4393, _t2385, _t2265, _t4391, _t4394, _t5247, _t4396, _t392, _t6800, _t4397, _t394, _t6802, _t5269, _t4427, _t4429, _t4430, _t4422, _t4431, _t5032, _t4432, _t5557, _t5030, _t5132, _t5525, _t4437, _t4438, _t4444, _t742, _t4445, _t744, _t5536, _t743, _t4446, _t5046, _t5985, _t4720, _t4449, _t4719, _t4451, _t6965, _t4452, _t7004, _t4725, _t4454, _t4455, _t5054, _t7038, _t4463, _t5569, _t4465, _t4466, _t6985, _t4467, _t6986, _t4468, _t5074, _t4470, _t4471, _t4745, _t4473, _t4474, _t4475, _t5572, _t4461, _t4476, _t4477, _t4478, _t4479, _t4480, _t5580, _t4481, _t4482, _t4484, _t4486, _t4487, _t4488, _t4490, _t4491, _t7067, _t4492, _t5587, _t4494, _t5088, _t5184, _t4496, _t5089, _t4497, _t5097, _t4499, _t4501, _t4502, _t4503, _t4504, _t961, _t4512, _t1006, _t4515, _t189, _t4517, _t1005, _t4519, _t4520, _t4523, _t4505, _t4506, _t4507, _t4508, _t4778, _t4510, _t2454, _t5100, _t5197, _t6638, _t5942, _t4526, _t4527, _t4464, _t5312, _t4528, _t4529, _t4530, _t6791, _t4531, _t4534, _t4535, _t2543, _t4536, _t4538, _t4539, _t4546, _t4554, _t4557, _t4495, _t5332, _t6245, _t5333, _t6246, _t4559, _t5331, _t4550, _t4485, _t5323, _t4541, _t4543, _t925, _t4213, _t6674, _t4569, _t5357, _t4570, _t5168, _t4571, _t4091, _t1387, _t4174, _t6807, _t930, _t4573, _t4562, _t5322, _t4566, _t4577, _t4581, _t4583, _t6291, _t4584, _t4585, _t3883, _t4144, _t4240, _t6692, _t7010, _t4586, _t2371, _t6287, _t4590, _t7024, _t4597, _t4114, _t6834, _t7025, _t4598, _t3062, _t6010, _t2320, _t4602, _t3894, _t6713, _t6844, _t2673, _t4605, _t2674, _t4606, _t3074, _t4608, _t6849, _t4612, _t1385, _t4613, _t4617, _t4094, _t4618, _t4619, _t4988, _t3845, _t4629, _t4998, _t6523, _t4631, _t4632, _t5001, _t4634, _t4636, _t3831, _t5006, _t4637, _t6826, _t4638, _t4621, _t5022, _t4622, _t4623, _t4624, _t4986, _t4625, _t4641, _t4642, _t5013, _t5012, _t4644, _t5014, _t4645, _t5011, _t4646, _t5015, _t4648, _t4649, _t4650, _t6511, _t4206, _t4120, _t4651, _t1234, _t4118, _t4652, _t4119, _t4653, _t4654, _t4656, _t4658, _t4659, _t6852, _t4660, _t6679, _t4662, _t4671, _t4887, _t4673, _t4679, _t4899, _t4140, _t4695, _t4697, _t305, _t6565, _t4699, _t4700, _t4702, _t6570, _t3901, _t4703, _t6889, _t4705, _t6890, _t4706, _t4710, _t5418, _t4711, _t5419, _t3549, _t4920, _t504, _t4715, _t3153, _t332, _t6905, _t4716, _t5254, _t2291, _t4718, _t4723, _t7117, _t657, _t5546, _t4726, _t4727, _t4728, _t2297, _t5990, _t4729, _t4730, _t4731, _t4734, _t5156, _t4588, _t4737, _t6972, _t4738, _t2304, _t4591, _t4741, _t5161, _t6978, _t4739, _t3059, _t6008, _t2309, _t7022, _t4596, _t4742, _t4744, _t4747, _t4748, _t4749, _t3068, _t4750, _t4603, _t4751, _t4752, _t4576, _t5173, _t4753, _t4754, _t3071, _t4755, _t5175, _t3073, _t4756, _t4759, _t5581, _t4760, _t5584, _t4764, _t946, _t4768, _t5091, _t4772, _t5069, _t5595, _t6739, _t5905, _t4770, _t5087, _t4775, _t5601, _t4776, _t2318, _t4779, _t5076, _t5607, _t4780, _t970, _t1938, _t4784, _t4786, _t2701, _t5617, _t240, _t4761, _t5208, _t2516, _t5922, _t4790, _t5115, _t4788, _t2434, _t5619, _t4792, _t251, _t4767, _t5216, _t4793, _t6476, _t4796, _t5225, _t1950, _t4797, _t5121, _t4798, _t5220, _t4799, _t4800, _t1954, _t4801, _t4803, _t5125, _t4806, _t4807, _t4808, _t4809, _t5241, _t5770, _t4810, _t4811, _t4813, _t4814, _t1965, _t4817, _t4685, _t4162, _t4245, _t4687, _t4247, _t4689, _t4248, _t4690, _t4691, _t4692, _t4693, _t1739, _t4820, _t2732, _t4823, _t2731, _t6093, _t4821, _t4824, _t4825, _t4826, _t4828, _t4829, _t4832, _t5716, _t4834, _t4835, _t4836, _t5718, _t4837, _t4839, _t1295, _t4977, _t5752, _t4841, _t4844, _t3657, _t4985, _t6509, _t5753, _t4842, _t4845, _t4846, _t4987, _t5736, _t4855, _t4857, _t4860, _t4861, _t4851, _t4847, _t4863, _t5748, _t6502, _t3162, _t4866, _t4867, _t5416, _t6581, _t5756, _t3079, _t4872, _t4875, _t4876, _t3099, _t4882, _t3100, _t4883, _t6579, _t4869, _t4885, _t4886, _t4891, _t4901, _t4903, _t4897, _t4898, _t5765, _t3543, _t4917, _t5420, _t3588, _t4921, _t3200, _t4905, _t4908, _t4910, _t4925, _t4926, _t5664, _t4929, _t88, _t5668, _t6416, _t4930, _t5670, _t4934, _t4936, _t4941, _t3774, _t4942, _t3775, _t4943, _t5679, _t3776, _t4944, _t897, _t6434, _t3609, _t3777, _t4945, _t81, _t6435, _t4946, _t6436, _t2546, _t4947, _t6437, _t2547, _t4948, _t1913, _t4949, _t4950, _t4952, _t4953, _t387, _t6175, _t4414, _t4955, _t3793, _t4957, _t4958, _t4959, _t3794, _t4960, _t6465, _t3652, _t4964, _t4965, _t4966, _t6474, _t3656, _t4983, _t4984, _t4978, _t4979, _t3664, _t4992, _t3826, _t4999, _t3829, _t5000, _t5010, _t5003, _t5004, _t5005, _t4989, _t4990, _t5023, _t5025, _t5016, _t5031, _t5033, _t5034, _t7130, _t5559, _t5036, _t5733, _t6519, _t5038, _t7141, _t5568, _t5040, _t1526, _t5052, _t7121, _t5551, _t5055, _t7127, _t5029, _t5554, _t7160, _t5058, _t7162, _t5060, _t7161, _t5061, _t5062, _t5063, _t5064, _t6976, _t5044, _t5045, _t7163, _t5585, _t5067, _t2076, _t5073, _t5075, _t5084, _t5086, _t5090, _t1998, _t5092, _t5093, _t5094, _t7201, _t5096, _t5099, _t5101, _t5198, _t5104, _t5105, _t2323, _t5200, _t2458, _t5106, _t5918, _t7212, _t2459, _t5107, _t2461, _t5109, _t5207, _t5110, _t5111, _t2017, _t5112, _t5113, _t3671, _t5114, _t5214, _t2026, _t5116, _t5119, _t5120, _t5122, _t5227, _t5228, _t956, _t5234, _t5129, _t5948, _t5136, _t5141, _t167, _t5146, _t166, _t5144, _t4552, _t5147, _t5151, _t5545, _t6974, _t5149, _t918, _t5152, _t4560, _t5153, _t659, _t5548, _t6988, _t5157, _t2277, _t5160, _t6977, _t5563, _t2283, _t928, _t5163, _t929, _t5164, _t5973, _t927, _t5165, _t5158, _t936, _t5169, _t5170, _t5174, _t4587, _t4735, _t5182, _t5187, _t7020, _t5188, _t5190, _t4579, _t5176, _t1529, _t5600, _t5191, _t5192, _t2316, _t5193, _t6742, _t5909, _t5196, _t6012, _t4746, _t5199, _t6743, _t5910, _t5201, _t979, _t5914, _t5202, _t5078, _t5610, _t5203, _t5079, _t5611, _t5205, _t5081, _t32, _t241, _t4762, _t5209, _t2682, _t5210, _t250, _t5215, _t4769, _t5218, _t5219, _t947, _t5222, _t258, _t5223, _t997, _t5929, _t5226, _t6045, _t5229, _t5230, _t6032, _t955, _t5233, _t6039, _t5239, _t194, _t5936, _t2695, _t5242, _t2696, _t5243, _t2014, _t5634, _t5248, _t5249, _t5251, _t5255, _t5256, _t6587, _t5257, _t5429, _t6271, _t5258, _t5431, _t5263, _t6593, _t5266, _t6597, _t5268, _t6594, _t5271, _t5272, _t5273, _t1356, _t6299, _t4433, _t5443, _t5281, _t4439, _t5282, _t5449, _t5283, _t6204, _t5290, _t5291, _t5294, _t5299, _t664, _t5300, _t6619, _t666, _t7033, _t3447, _t440, _t6620, _t665, _t5301, _t6214, _t2691, _t959, _t5235, _t5236, _t5237, _t5608, _t7147, _t5573, _t5311, _t4968, _t4969, _t4970, _t4971, _t4972, _t4398, _t1081, _t6929, _t4400, _t6933, _t4401, _t5913, _t6931, _t4403, _t4405, _t4406, _t6238, _t6652, _t5327, _t6661, _t5329, _t5330, _t6247, _t5334, _t5335, _t5336, _t4209, _t6670, _t5349, _t6672, _t5350, _t6673, _t5351, _t5353, _t5354, _t5355, _t5358, _t5363, _t5364, _t5366, _t5367, _t5371, _t6816, _t5373, _t6282, _t5374, _t6283, _t5375, _t6284, _t5376, _t6285, _t1322, _t5378, _t6536, _t5382, _t2370, _t6286, _t5389, _t5390, _t5391, _t4069, _t5392, _t5393, _t6550, _t5394, _t5396, _t3956, _t5398, _t3943, _t5399, _t603, _t3945, _t5401, _t605, _t5403, _t6556, _t4079, _t5404, _t5405, _t5406, _t5407, _t5408, _t5414, _t1650, _t5415, _t5423, _t5424, _t1662, _t5430, _t5421, _t5338, _t5339, _t5341, _t5342, _t5343, _t6841, _t6666, _t5345, _t5346, _t5347, _t5440, _t5442, _t5446, _t5447, _t5448, _t1701, _t5453, _t5451, _t3417, _t5456, _t1830, _t3426, _t3437, _t1374, _t6627, _t5481, _t6633, _t5487, _t5488, _t5489, _t3460, _t6227, _t5490, _t5482, _t6630, _t5483, _t6218, _t5491, _t5492, _t5493, _t5494, _t5495, _t5496, _t3533, _t5506, _t5508, _t5513, _t7099, _t1450, _t5523, _t1451, _t1037, _t5524, _t5526, _t5527, _t5529, _t5530, _t1044, _t5531, _t5532, _t5516, _t5518, _t5520, _t5521, _t5538, _t75, _t5539, _t76, _t5540, _t5541, _t5542, _t1054, _t819, _t5543, _t5544, _t5140, _t6962, _t660, _t5549, _t649, _t5550, _t5552, _t678, _t5553, _t2051, _t5555, _t6969, _t5561, _t5562, _t5564, _t5574, _t1521, _t5048, _t5575, _t1522, _t5049, _t5576, _t5582, _t5056, _t5583, _t700, _t5565, _t5566, _t7140, _t5567, _t6983, _t5570, _t5588, _t1536, _t5589, _t5590, _t5592, _t2089, _t5068, _t5594, _t7169, _t5070, _t5596, _t7170, _t5597, _t5499, _t5500, _t5501, _t7175, _t5606, _t2432, _t5614, _t5615, _t5616, _t5618, _t5621, _t2100, _t5077, _t5609, _t5602, _t5603, _t5604, _t2008, _t5630, _t5632, _t2009, _t5633, _t2098, _t5622, _t2438, _t5623, _t5625, _t5636, _t5637, _t5640, _t5641, _t5642, _t5643, _t208, _t5645, _t2412, _t2128, _t6382, _t210, _t1112, _t1193, _t6383, _t2148, _t69, _t5647, _t219, _t5650, _t5648, _t5651, _t5652, _t83, _t5653, _t5654, _t1630, _t5659, _t309, _t908, _t907, _t5660, _t155, _t5666, _t6452, _t5667, _t5669, _t5671, _t6422, _t5672, _t5674, _t5677, _t5687, _t5688, _t5691, _t5693, _t5694, _t5695, _t5697, _t5681, _t6168, _t5682, _t6169, _t5683, _t5703, _t6190, _t5704, _t6193, _t5705, _t5706, _t6191, _t5707, _t6192, _t5710, _t5711, _t5712, _t304, _t5715, _t5720, _t5721, _t6477, _t5735, _t6520, _t5737, _t5738, _t5723, _t5724, _t4840, _t2475, _t5769, _t5772, _t2047, _t5775, _t5773, _t3696, _t5777, _t5778, _t5779, _t6797, _t5134, _t5949, _t5783, _t6796, _t5946, _t5786, _t5788, _t5790, _t5795, _t5796, _t5797, _t5798, _t7250, _t5801, _t5959, _t5799, _t7263, _t5806, _t5807, _t5809, _t5815, _t5818, _t5819, _t3734, _t5821, _t5977, _t3735, _t5822, _t2831, _t3738, _t5824, _t5825, _t5826, _t1796, _t5827, _t5828, _t5829, _t5832, _t5830, _t3748, _t5835, _t5840, _t462, _t200, _t5843, _t4592, _t6001, _t2853, _t5845, _t5847, _t2169, _t4278, _t5852, _t5853, _t5194, _t6013, _t5854, _t5861, _t5862, _t5863, _t5864, _t5866, _t2872, _t5867, _t5868, _t4765, _t940, _t6018, _t4309, _t5869, _t5213, _t2681, _t6020, _t5745, _t6497, _t5746, _t5747, _t5881, _t5889, _t2959, _t5891, _t5893, _t5899, _t2970, _t982, _t6937, _t5915, _t5919, _t5920, _t5921, _t6744, _t5911, _t5907, _t5926, _t5924, _t4514, _t6771, _t5931, _t6951, _t5937, _t5938, _t5939, _t6954, _t5940, _t4525, _t5941, _t5137, _t4537, _t5138, _t4558, _t5961, _t916, _t5964, _t3018, _t911, _t5958, _t3026, _t2280, _t5162, _t5972, _t6996, _t3034, _t5975, _t5976, _t2286, _t3038, _t5978, _t5966, _t5967, _t5969, _t4721, _t5986, _t3044, _t4580, _t4724, _t5987, _t5992, _t4736, _t5993, _t5995, _t5996, _t37, _t6002, _t5185, _t6003, _t5186, _t6004, _t2307, _t6005, _t6006, _t3058, _t6007, _t5476, _t6015, _t245, _t6017, _t4763, _t242, _t6019, _t6024, _t5224, _t6025, _t6026, _t6046, _t6052, _t6058, _t4782, _t6059, _t6061, _t972, _t6062, _t6068, _t6074, _t6065, _t957, _t6047, _t6050, _t6086, _t6087, _t6076, _t2724, _t6078, _t1720, _t6079, _t6080, _t1974, _t6089, _t1975, _t6090, _t6095, _t2735, _t6096, _t1745, _t6098, _t6111, _t6113, _t6114, _t6115, _t6116, _t6117, _t6119, _t6106, _t1268, _t6132, _t6133, _t1574, _t6134, _t6128, _t6129, _t6130, _t1272, _t6136, _t2805, _t6145, _t6146, _t1636, _t6147, _t6148, _t6149, _t6151, _t6153, _t6154, _t6156, _t2790, _t6138, _t6391, _t2791, _t6139, _t1121, _t6392, _t2792, _t6140, _t6393, _t2793, _t6141, _t2136, _t6394, _t2794, _t6142, _t6395, _t6158, _t6160, _t6161, _t6163, _t6171, _t6179, _t6180, _t6181, _t94, _t6182, _t157, _t6454, _t6460, _t6185, _t6194, _t6195, _t6196, _t6197, _t6183, _t5463, _t6201, _t5471, _t6208, _t5459, _t6213, _t6216, _t6217, _t6220, _t6222, _t6225, _t6226, _t6230, _t3465, _t6233, _t6235, _t6242, _t6243, _t6654, _t6244, _t6248, _t2342, _t6249, _t6250, _t6240, _t3499, _t6251, _t3497, _t6252, _t6667, _t6253, _t6254, _t6258, _t6259, _t6266, _t6268, _t6270, _t6272, _t6809, _t6273, _t6274, _t6275, _t6276, _t4228, _t6684, _t6278, _t4421, _t6279, _t6288, _t6818, _t6289, _t4436, _t6300, _t4434, _t6301, _t6302, _t5284, _t6305, _t735, _t6306, _t737, _t6307, _t4160, _t6707, _t6314, _t6312, _t7027, _t661, _t6315, _t6322, _t6323, _t6324, _t6325, _t6860, _t6326, _t6327, _t6328, _t6329, _t6330, _t6865, _t6331, _t6337, _t7048, _t6340, _t6338, _t6343, _t6344, _t6345, _t6346, _t6351, _t4483, _t6354, _t7063, _t5320, _t6355, _t6356, _t6358, _t6359, _t6360, _t5326, _t6361, _t6364, _t6371, _t620, _t6367, _t5460, _t5461, _t5462, _t5464, _t3425, _t5467, _t2130, _t2413, _t6384, _t709, _t6389, _t6390, _t6413, _t6415, _t6417, _t6418, _t6420, _t6421, _t6423, _t6425, _t6426, _t6427, _t6428, _t6429, _t2414, _t701, _t6432, _t6438, _t901, _t6439, _t902, _t6440, _t903, _t6441, _t6442, _t6444, _t156, _t6453, _t6455, _t6456, _t6458, _t6462, _t6466, _t6467, _t6469, _t6470, _t6471, _t6472, _t6473, _t6475, _t1204, _t6485, _t6486, _t6488, _t6489, _t1207, _t6491, _t6397, _t6398, _t456, _t762, _t6400, _t6401, _t6402, _t6403, _t6404, _t6405, _t6406, _t6498, _t6503, _t6504, _t1230, _t6505, _t5726, _t6507, _t6508, _t1237, _t5729, _t6513, _t6514, _t5732, _t6516, _t5755, _t6517, _t6518, _t6524, _t6525, _t6526, _t6540, _t48, _t5759, _t6548, _t6549, _t6542, _t6543, _t6559, _t6560, _t6561, _t6566, _t6573, _t6574, _t6577, _t6567, _t6588, _t6596, _t6599, _t6601, _t6603, _t1855, _t441, _t6621, _t6623, _t6625, _t1852, _t6608, _t1853, _t408, _t61, _t6609, _t1854, _t62, _t6610, _t6631, _t4169, _t6637, _t6639, _t6648, _t6649, _t6651, _t4196, _t6656, _t6658, _t6646, _t4115, _t4643, _t6663, _t6664, _t6668, _t6671, _t4215, _t6847, _t6676, _t6682, _t4230, _t6685, _t6868, _t6698, _t6699, _t3891, _t6704, _t4154, _t4683, _t3892, _t6705, _t6710, _t6712, _t4709, _t6720, _t315, _t6721, _t4260, _t6724, _t502, _t6725, _t17, _t6726, _t333, _t6727, _t334, _t6728, _t4239, _t515, _t368, _t6732, _t6722, _t6734, _t524, _t6735, _t6921, _t6934, _t6747, _t1086, _t6748, _t2510, _t6749, _t6750, _t1087, _t6751, _t986, _t2513, _t6753, _t6754, _t6757, _t6759, _t6760, _t5927, _t6761, _t5928, _t6762, _t6763, _t6944, _t6764, _t6902, _t2526, _t6765, _t6903, _t4, _t6768, _t191, _t6772, _t6773, _t6774, _t5935, _t6775, _t6777, _t654, _t6779, _t6780, _t6782, _t6786, _t5943, _t6787, _t5128, _t6789, _t6957, _t6790, _t4532, _t6792, _t6923, _t5944, _t4533, _t6793, _t6924, _t5945, _t6794, _t6925, _t2541, _t6795, _t6805, _t4542, _t4175, _t6819, _t4628, _t3846, _t6824, _t4627, _t6822, _t4200, _t6830, _t6835, _t6857, _t6858, _t4227, _t6859, _t6862, _t3872, _t6864, _t6867, _t6798, _t6799, _t2542, _t5947, _t5135, _t6875, _t6702, _t6870, _t4150, _t6871, _t6872, _t6878, _t4166, _t6880, _t6883, _t5742, _t4833, _t6531, _t6532, _t6534, _t6884, _t6716, _t6886, _t6897, _t6900, _t510, _t364, _t6906, _t374, _t521, _t6912, _t1064, _t6913, _t6914, _t525, _t6915, _t376, _t6916, _t6917, _t1069, _t528, _t6918, _t529, _t6919, _t6922, _t6928, _t6926, _t6907, _t6908, _t6909, _t6910, _t6942, _t2530, _t6945, _t5, _t6769, _t6946, _t6947, _t6949, _t6950, _t257, _t6953, _t6784, _t6955, _t6785, _t6956, _t6958, _t6960, _t6968, _t6970, _t171, _t6973, _t6975, _t3021, _t6979, _t6980, _t6981, _t6966, _t5963, _t6987, _t5954, _t4544, _t6992, _t4564, _t6993; if (vertParams[4] == 0.000000) { _t15 = 6.283185 * primary[3]; _t16 = 3.141593 * primary[4]; _t17 = sin(_t16); _t18 = cos(_t16); _t19 = sin(_t15); _t20 = _t17 * _t19; _t21 = cos(_t15); _t22 = _t17 * _t21; if (_t17 >= 0.000000) { _t23 = _t17; } else { _t25 = -_t17; _t23 = _t25; } _t26 = _t23 * 6.283185; _t27 = _t26 * 3.141593; _t0 = vertParams[5]; _t1 = vertParams[6]; _t2 = vertParams[7]; _t3 = _t22; _t4 = _t20; _t5 = _t18; _t6 = vertParams[8]; _t7 = vertParams[9]; _t8 = vertParams[10]; _t9 = 1.000000; _t10 = 0.079577; _t11 = 1.000000; } else if (vertParams[4] == 1.000000) { if (vertParams[5] == 0.000000) { _t36 = 1.000001-primary[1]; _t37 = sqrt(_t36); _t38 = 1.000000-_t37; _t39 = _t37 * primary[2]; _t40 = vertParams[13] * _t39; _t41 = vertParams[10] * _t38; _t42 = vertParams[7]+_t41; _t43 = _t42+_t40; _t44 = vertParams[14] * _t39; _t45 = vertParams[11] * _t38; _t46 = vertParams[8]+_t45; _t47 = _t46+_t44; _t48 = vertParams[15] * _t39; _t49 = vertParams[12] * _t38; _t50 = vertParams[9]+_t49; _t51 = _t50+_t48; _t52 = 1.000000-_t38; _t53 = _t52-_t39; _t54 = vertParams[22] * _t39; _t55 = vertParams[19] * _t38; _t56 = vertParams[16] * _t53; _t57 = _t56+_t55; _t58 = _t57+_t54; _t59 = vertParams[23] * _t39; _t60 = vertParams[20] * _t38; _t61 = vertParams[17] * _t53; _t62 = _t61+_t60; _t63 = _t62+_t59; _t64 = vertParams[24] * _t39; _t65 = vertParams[21] * _t38; _t66 = vertParams[18] * _t53; _t67 = _t66+_t65; _t68 = _t67+_t64; _t69 = sqrt(_t58*_t58+_t63*_t63+_t68*_t68); _t70 = (float)1.0 / (_t69); _t71 = _t58 * _t70; _t72 = _t63 * _t70; _t73 = _t68 * _t70; _t28 = _t43; _t29 = _t47; _t30 = _t51; _t31 = _t71; _t32 = _t72; _t33 = _t73; _t34 = vertParams[50]; } else { _t28 = 0.000000; _t29 = 0.000000; _t30 = 0.000000; _t31 = 0.000000; _t32 = 0.000000; _t33 = 0.000000; _t34 = 0.000000; } _t74 = 6.283185 * primary[3]; _t75 = 1.000000-primary[4]; if (_t75 >= 0.000001) { _t76 = _t75; } else { _t76 = 0.000001; } _t78 = sqrt(_t76); if (primary[4] >= 0.000001) { _t79 = primary[4]; } else { _t79 = 0.000001; } _t81 = sqrt(_t79); _t82 = sin(_t74); _t83 = _t82 * _t78; _t84 = cos(_t74); _t85 = _t84 * _t78; if (_t33 < -0.999999) { _t86 = 0.000000; _t87 = -1.000000; _t88 = 0.000000; _t89 = -1.000000; _t90 = 0.000000; _t91 = 0.000000; } else { _t93 = 1.000000+_t33; _t94 = (float)1.0 / (_t93); _t95 = -_t31; _t96 = _t95 * _t32; _t97 = _t96 * _t94; _t98 = -_t31; _t99 = _t31 * _t31; _t100 = _t99 * _t94; _t101 = 1.000000-_t100; _t102 = -_t32; _t103 = _t32 * _t32; _t104 = _t103 * _t94; _t105 = 1.000000-_t104; _t86 = _t101; _t87 = _t97; _t88 = _t98; _t89 = _t97; _t90 = _t105; _t91 = _t102; } _t106 = _t81 * _t31; _t107 = _t83 * _t89; _t108 = _t85 * _t86; _t109 = _t108+_t107; _t110 = _t109+_t106; _t111 = _t81 * _t32; _t112 = _t83 * _t90; _t113 = _t85 * _t87; _t114 = _t113+_t112; _t115 = _t114+_t111; _t116 = _t81 * _t33; _t117 = _t83 * _t91; _t118 = _t85 * _t88; _t119 = _t118+_t117; _t120 = _t119+_t116; _t121 = (float)1.0 / (_t34); _t122 = 3.141593 * _t121; _t123 = vertParams[51] * _t122; _t124 = vertParams[52] * _t122; _t125 = vertParams[53] * _t122; _t126 = _t81 * 0.318310; _t127 = _t126 * _t34; _t0 = _t28; _t1 = _t29; _t2 = _t30; _t3 = _t110; _t4 = _t115; _t5 = _t120; _t6 = _t123; _t7 = _t124; _t8 = _t125; _t9 = _t81; _t10 = _t127; _t11 = _t34; } else if (vertParams[4] == 2.000000) { if (vertParams[5] == 0.000000) { _t145 = vertParams[12] * vertParams[12]; _t146 = vertParams[13] * vertParams[13]; _t147 = vertParams[14] * vertParams[14]; _t148 = vertParams[12] * vertParams[13]; _t149 = vertParams[12] * vertParams[14]; _t150 = vertParams[13] * vertParams[14]; _t151 = vertParams[12] * vertParams[15]; _t152 = vertParams[13] * vertParams[15]; _t153 = vertParams[14] * vertParams[15]; _t154 = _t146+_t147; _t155 = 2.000000 * _t154; _t156 = 1.000000-_t155; _t157 = _t148+_t153; _t158 = 2.000000 * _t157; _t159 = _t149-_t152; _t160 = 2.000000 * _t159; _t161 = _t148-_t153; _t162 = 2.000000 * _t161; _t163 = _t145+_t147; _t164 = 2.000000 * _t163; _t165 = 1.000000-_t164; _t166 = _t150+_t151; _t167 = 2.000000 * _t166; _t168 = _t149+_t152; _t169 = 2.000000 * _t168; _t170 = _t150-_t151; _t171 = 2.000000 * _t170; _t172 = _t145+_t146; _t173 = 2.000000 * _t172; _t174 = 1.000000-_t173; _t128 = _t156; _t129 = _t158; _t130 = _t160; _t131 = 0.000000; _t132 = _t162; _t133 = _t165; _t134 = _t167; _t135 = 0.000000; _t136 = _t169; _t137 = _t171; _t138 = _t174; _t139 = 0.000000; _t140 = vertParams[6]; _t141 = vertParams[7]; _t142 = vertParams[8]; _t143 = 1.000000; } else { _t175 = 1.000000-primary[0]; _t176 = primary[0] * vertParams[9]; _t177 = _t175 * vertParams[6]; _t178 = _t177+_t176; _t179 = primary[0] * vertParams[10]; _t180 = _t175 * vertParams[7]; _t181 = _t180+_t179; _t182 = primary[0] * vertParams[11]; _t183 = _t175 * vertParams[8]; _t184 = _t183+_t182; _t185 = vertParams[15] * vertParams[19]; _t186 = vertParams[14] * vertParams[18]; _t187 = vertParams[13] * vertParams[17]; _t188 = vertParams[12] * vertParams[16]; _t189 = _t188+_t187; _t190 = _t189+_t186; _t191 = _t190+_t185; if (_t191 < 0.000000) { _t198 = -vertParams[16]; _t199 = -vertParams[17]; _t200 = -vertParams[18]; _t201 = -vertParams[19]; _t202 = -_t191; _t192 = _t198; _t193 = _t199; _t194 = _t200; _t195 = _t201; _t196 = _t202; } else { _t192 = vertParams[16]; _t193 = vertParams[17]; _t194 = vertParams[18]; _t195 = vertParams[19]; _t196 = _t191; } if (_t196 > 0.999500) { _t208 = 1.000000-primary[0]; _t209 = primary[0] * _t192; _t210 = _t208 * vertParams[12]; _t211 = _t210+_t209; _t212 = primary[0] * _t193; _t213 = _t208 * vertParams[13]; _t214 = _t213+_t212; _t215 = primary[0] * _t194; _t216 = _t208 * vertParams[14]; _t217 = _t216+_t215; _t218 = primary[0] * _t195; _t219 = _t208 * vertParams[15]; _t220 = _t219+_t218; _t221 = sqrt(_t211*_t211+_t214*_t214+_t217*_t217+_t220*_t220); _t222 = (float)1.0 / (_t221); _t223 = _t211 * _t222; _t224 = _t214 * _t222; _t225 = _t217 * _t222; _t226 = _t220 * _t222; _t203 = _t223; _t204 = _t224; _t205 = _t225; _t206 = _t226; } else { _t227 = acos(_t196); _t228 = _t227 * primary[0]; _t229 = vertParams[12] * _t196; _t230 = _t192-_t229; _t231 = vertParams[13] * _t196; _t232 = _t193-_t231; _t233 = vertParams[14] * _t196; _t234 = _t194-_t233; _t235 = vertParams[15] * _t196; _t236 = _t195-_t235; _t237 = sqrt(_t230*_t230+_t232*_t232+_t234*_t234+_t236*_t236); _t238 = (float)1.0 / (_t237); _t239 = _t230 * _t238; _t240 = _t232 * _t238; _t241 = _t234 * _t238; _t242 = _t236 * _t238; _t243 = sin(_t228); _t244 = cos(_t228); _t245 = _t239 * _t243; _t246 = vertParams[12] * _t244; _t247 = _t246+_t245; _t248 = _t240 * _t243; _t249 = vertParams[13] * _t244; _t250 = _t249+_t248; _t251 = _t241 * _t243; _t252 = vertParams[14] * _t244; _t253 = _t252+_t251; _t254 = _t242 * _t243; _t255 = vertParams[15] * _t244; _t256 = _t255+_t254; _t203 = _t247; _t204 = _t250; _t205 = _t253; _t206 = _t256; } _t257 = _t203 * _t203; _t258 = _t204 * _t204; _t259 = _t205 * _t205; _t260 = _t203 * _t204; _t261 = _t203 * _t205; _t262 = _t204 * _t205; _t263 = _t203 * _t206; _t264 = _t204 * _t206; _t265 = _t205 * _t206; _t266 = _t258+_t259; _t267 = 2.000000 * _t266; _t268 = 1.000000-_t267; _t269 = _t260+_t265; _t270 = 2.000000 * _t269; _t271 = _t261-_t264; _t272 = 2.000000 * _t271; _t273 = _t260-_t265; _t274 = 2.000000 * _t273; _t275 = _t257+_t259; _t276 = 2.000000 * _t275; _t277 = 1.000000-_t276; _t278 = _t262+_t263; _t279 = 2.000000 * _t278; _t280 = _t261+_t264; _t281 = 2.000000 * _t280; _t282 = _t262-_t263; _t283 = 2.000000 * _t282; _t284 = _t257+_t258; _t285 = 2.000000 * _t284; _t286 = 1.000000-_t285; _t128 = _t268; _t129 = _t270; _t130 = _t272; _t131 = 0.000000; _t132 = _t274; _t133 = _t277; _t134 = _t279; _t135 = 0.000000; _t136 = _t281; _t137 = _t283; _t138 = _t286; _t139 = 0.000000; _t140 = _t178; _t141 = _t181; _t142 = _t184; _t143 = 1.000000; } _t287 = vertParams[36]-vertParams[35]; _t288 = primary[3]-vertParams[35]; _t289 = _t288 / _t287; _t290 = vertParams[38]-vertParams[37]; _t291 = primary[4]-vertParams[37]; _t292 = _t291 / _t290; if (_t292 < 0.500000) { _t295 = 2.000000 * _t292; _t296 = sqrt(_t295); _t297 = 1.000000-_t296; _t293 = _t297; } else { _t298 = _t292-0.500000; _t299 = 2.000000 * _t298; _t300 = sqrt(_t299); _t301 = _t300-1.000000; _t293 = _t301; } if (_t289 < 0.500000) { _t304 = 2.000000 * _t289; _t305 = sqrt(_t304); _t306 = 1.000000-_t305; _t302 = _t306; } else { _t307 = _t289-0.500000; _t308 = 2.000000 * _t307; _t309 = sqrt(_t308); _t310 = _t309-1.000000; _t302 = _t310; } _t311 = vertParams[39]+_t302; _t312 = vertParams[40]+_t293; _t313 = _t311+0.500000; _t314 = _t313 * vertParams[41]; _t315 = _t312+0.500000; _t316 = _t315 * vertParams[42]; _t317 = sin(_t314); _t318 = cos(_t314); _t319 = sin(_t316); _t320 = cos(_t316); _t321 = -_t318; _t322 = _t321 * _t319; _t323 = _t317 * _t319; _t324 = _t138 * _t322; _t325 = _t134 * _t320; _t326 = _t130 * _t323; _t327 = _t326+_t325; _t328 = _t327+_t324; _t329 = _t137 * _t322; _t330 = _t133 * _t320; _t331 = _t129 * _t323; _t332 = _t331+_t330; _t333 = _t332+_t329; _t334 = _t136 * _t322; _t335 = _t132 * _t320; _t336 = _t128 * _t323; _t337 = _t336+_t335; _t338 = _t337+_t334; _t339 = 1.000000-_t302; _t340 = 1.000000-_t293; _t341 = vertParams[46] * _t302; _t342 = _t341 * _t340; _t343 = vertParams[43] * _t339; _t344 = _t343 * _t340; _t345 = _t344+_t342; _t346 = vertParams[47] * _t302; _t347 = _t346 * _t340; _t348 = vertParams[44] * _t339; _t349 = _t348 * _t340; _t350 = _t349+_t347; _t351 = vertParams[48] * _t302; _t352 = _t351 * _t340; _t353 = vertParams[45] * _t339; _t354 = _t353 * _t340; _t355 = _t354+_t352; _t356 = vertParams[52] * _t302; _t357 = _t356 * _t293; _t358 = vertParams[49] * _t339; _t359 = _t358 * _t293; _t360 = _t359+_t357; _t361 = vertParams[53] * _t302; _t362 = _t361 * _t293; _t363 = vertParams[50] * _t339; _t364 = _t363 * _t293; _t365 = _t364+_t362; _t366 = vertParams[54] * _t302; _t367 = _t366 * _t293; _t368 = vertParams[51] * _t339; _t369 = _t368 * _t293; _t370 = _t369+_t367; _t371 = _t345+_t360; _t372 = _t350+_t365; _t373 = _t355+_t370; if (_t319 >= 0.000000) { _t374 = _t319; } else { _t376 = -_t319; _t374 = _t376; } if (_t374 >= 0.000000) { _t377 = _t374; } else { _t377 = 0.000000; } _t379 = _t370 * 0.072169; _t380 = _t365 * 0.715160; _t381 = _t360 * 0.212671; _t382 = _t381+_t380; _t383 = _t382+_t379; _t384 = _t383 * vertParams[56]; _t385 = _t355 * 0.072169; _t386 = _t350 * 0.715160; _t387 = _t345 * 0.212671; _t388 = _t387+_t386; _t389 = _t388+_t385; _t390 = _t389 * vertParams[55]; _t391 = _t390+_t384; _t392 = _t391 * vertParams[57]; _t393 = _t392 / _t377; _t394 = -_t338; _t395 = -_t333; _t396 = -_t328; _t397 = 2.000000 * primary[1]; _t398 = _t397-1.000000; _t399 = 2.000000 * primary[2]; _t400 = _t399-1.000000; if (_t398 == 0.000000) { _t401 = 0.000000; _t402 = 0.000000; } else if (_t400 == 0.000000) { _t406 = _t400 * _t400; _t405 = _t398 * _t398; _t401 = 0.000000; _t402 = 0.000000; } else if (_t405 > _t406) { _t408 = _t400 / _t398; _t409 = 0.785398 * _t408; _t401 = _t398; _t402 = _t409; } else { _t410 = _t398 / _t400; _t411 = _t410 * 0.785398; _t412 = 1.570796-_t411; _t401 = _t400; _t402 = _t412; } _t413 = sin(_t402); _t414 = cos(_t402); _t415 = _t401 * _t413; _t416 = _t401 * _t414; if (_t396 < -0.999999) { _t417 = 0.000000; _t418 = -1.000000; _t419 = 0.000000; _t420 = -1.000000; _t421 = 0.000000; _t422 = 0.000000; } else { _t424 = 1.000000+_t396; _t425 = (float)1.0 / (_t424); _t426 = -_t394; _t427 = _t426 * _t395; _t428 = _t427 * _t425; _t429 = -_t394; _t430 = _t394 * _t394; _t431 = _t430 * _t425; _t432 = 1.000000-_t431; _t433 = -_t395; _t434 = _t395 * _t395; _t435 = _t434 * _t425; _t436 = 1.000000-_t435; _t417 = _t432; _t418 = _t428; _t419 = _t429; _t420 = _t428; _t421 = _t436; _t422 = _t433; } _t437 = _t415 * _t420; _t438 = _t416 * _t417; _t439 = _t438+_t437; _t440 = _t415 * _t421; _t441 = _t416 * _t418; _t442 = _t441+_t440; _t443 = _t415 * _t422; _t444 = _t416 * _t419; _t445 = _t444+_t443; _t446 = _t439-_t394; _t447 = _t446 * scene[37]; _t448 = scene[34]+_t447; _t449 = _t442-_t395; _t450 = _t449 * scene[37]; _t451 = scene[35]+_t450; _t452 = _t445-_t396; _t453 = _t452 * scene[37]; _t454 = scene[36]+_t453; _t455 = scene[37] * scene[37]; _t456 = (float)1.0 / (_t455); _t457 = 0.318310 * _t456; _t458 = _t393 * _t457; _t0 = _t448; _t1 = _t451; _t2 = _t454; _t3 = _t394; _t4 = _t395; _t5 = _t396; _t6 = _t371; _t7 = _t372; _t8 = _t373; _t9 = 1.000000; _t10 = _t458; _t11 = _t393; } else { _t0 = 0.000000; _t1 = 0.000000; _t2 = 0.000000; _t3 = 0.000000; _t4 = 0.000000; _t5 = 0.000000; _t6 = 0.000000; _t7 = 0.000000; _t8 = 0.000000; _t9 = 0.000000; _t10 = 0.000000; _t11 = 0.000000; } _t459 = _t10 * vertParams[3]; _t460 = _t11 * vertParams[3]; _t461 = (float)1.0 / (vertParams[3]); _t462 = _t6 * _t461; _t463 = _t7 * _t461; _t464 = _t8 * _t461; _t465 = _t460 / _t459; _t466 = _t465 * _t465; if (vertParams[4] == 0.000000) { _t469 = _t9 / _t459; _t470 = _t469 * _t469; _t467 = _t470; } else { _t467 = 0.000000; } if (vertParams[60] == 0.000000) { _t483 = vertParams[66] * vertParams[68]; _t484 = vertParams[65] * vertParams[69]; _t485 = _t484-_t483; _t486 = vertParams[65] * vertParams[70]; _t487 = vertParams[67] * vertParams[68]; _t488 = _t487-_t486; _t489 = vertParams[67] * vertParams[69]; _t490 = vertParams[66] * vertParams[70]; _t491 = _t490-_t489; _t492 = sqrt(_t491*_t491+_t488*_t488+_t485*_t485); _t493 = (float)1.0 / (_t492); _t494 = _t491 * _t493; _t495 = _t488 * _t493; _t496 = _t485 * _t493; _t497 = _t4 * vertParams[68]; _t498 = _t3 * vertParams[69]; _t499 = _t498-_t497; _t500 = _t3 * vertParams[70]; _t501 = _t5 * vertParams[68]; _t502 = _t501-_t500; _t503 = _t5 * vertParams[69]; _t504 = _t4 * vertParams[70]; _t505 = _t504-_t503; _t506 = _t505 * vertParams[65] + _t502 * vertParams[66] + _t499 * vertParams[67]; _t507 = (float)1.0 / (_t506); _t508 = _t0-vertParams[62]; _t509 = _t1-vertParams[63]; _t510 = _t2-vertParams[64]; _t511 = _t508 * _t505 + _t509 * _t502 + _t510 * _t499; _t512 = _t511 * _t507; _t513 = _t509 * vertParams[65]; _t514 = _t508 * vertParams[66]; _t515 = _t514-_t513; _t516 = _t508 * vertParams[67]; _t517 = _t510 * vertParams[65]; _t518 = _t517-_t516; _t519 = _t510 * vertParams[66]; _t520 = _t509 * vertParams[67]; _t521 = _t520-_t519; _t522 = _t3 * _t521 + _t4 * _t518 + _t5 * _t515; _t523 = _t522 * _t507; _t524 = vertParams[68] * _t521 + vertParams[69] * _t518 + vertParams[70] * _t515; _t525 = _t524 * _t507; _t526 = 1.000000-_t512; _t527 = _t526-_t523; _t528 = _t525 * _t3; _t529 = _t0+_t528; _t530 = _t525 * _t4; _t531 = _t1+_t530; _t532 = _t525 * _t5; _t533 = _t2+_t532; _t534 = _t523 * vertParams[77]; _t535 = _t512 * vertParams[74]; _t536 = _t527 * vertParams[71]; _t537 = _t536+_t535; _t538 = _t537+_t534; _t539 = _t523 * vertParams[78]; _t540 = _t512 * vertParams[75]; _t541 = _t527 * vertParams[72]; _t542 = _t541+_t540; _t543 = _t542+_t539; _t544 = _t523 * vertParams[79]; _t545 = _t512 * vertParams[76]; _t546 = _t527 * vertParams[73]; _t547 = _t546+_t545; _t548 = _t547+_t544; _t549 = sqrt(_t538*_t538+_t543*_t543+_t548*_t548); _t550 = (float)1.0 / (_t549); _t551 = _t538 * _t550; _t552 = _t543 * _t550; _t553 = _t548 * _t550; if (vertParams[98] == 0.000000) { _t554 = _t512; _t555 = _t523; } else { _t557 = _t523 * vertParams[103]; _t558 = _t512 * vertParams[101]; _t559 = 1.000000-_t512; _t560 = _t559-_t523; _t561 = _t560 * vertParams[99]; _t562 = _t561+_t558; _t563 = _t562+_t557; _t564 = _t523 * vertParams[104]; _t565 = _t512 * vertParams[102]; _t566 = 1.000000-_t512; _t567 = _t566-_t523; _t568 = _t567 * vertParams[100]; _t569 = _t568+_t565; _t570 = _t569+_t564; _t554 = _t563; _t555 = _t570; } _t471 = _t529; _t472 = _t531; _t473 = _t533; _t474 = _t494; _t475 = _t495; _t476 = _t496; _t477 = _t551; _t478 = _t552; _t479 = _t553; _t480 = _t554; _t481 = _t555; } else { _t471 = 0.000000; _t472 = 0.000000; _t473 = 0.000000; _t474 = 0.000000; _t475 = 0.000000; _t476 = 0.000000; _t477 = 0.000000; _t478 = 0.000000; _t479 = 0.000000; _t480 = 0.000000; _t481 = 0.000000; } _t571 = -_t3; _t572 = -_t4; _t573 = -_t5; if (vertParams[4] == 2.000000) { _t574 = 1.000000; } else { _t576 = _t2-_t473; _t577 = _t576 * _t576; _t578 = _t1-_t472; _t579 = _t578 * _t578; _t580 = _t0-_t471; _t581 = _t580 * _t580; _t582 = _t581+_t579; _t583 = _t582+_t577; _t584 = _t583 * _t583; _t574 = _t584; } _t585 = _t3 * _t477 + _t4 * _t478 + _t5 * _t479; if (_t585 >= 0.000000) { _t586 = _t585; } else { _t588 = -_t585; _t586 = _t588; } _t589 = _t586 * _t586; _t590 = (float)1.0 / (_t589); _t591 = _t590 * _t574; _t592 = _t466 * _t591; _t593 = _t467 * _t590; _t594 = scene[8] * 0.500000; _t595 = scene[4] * 0.500000; _t596 = _t595+_t594; _t597 = _t596+scene[16]; _t598 = scene[7] * 0.500000; _t599 = scene[3] * 0.500000; _t600 = _t599+_t598; _t601 = _t600+scene[15]; _t602 = scene[6] * 0.500000; _t603 = scene[2] * 0.500000; _t604 = _t603+_t602; _t605 = _t604+scene[14]; _t606 = scene[5] * 0.500000; _t607 = scene[1] * 0.500000; _t608 = _t607+_t606; _t609 = _t608+scene[13]; _t610 = (float)1.0 / (_t597); _t611 = _t601 * _t610; _t612 = _t605 * _t610; _t613 = _t609 * _t610; _t614 = sqrt(_t613*_t613+_t612*_t612+_t611*_t611); _t615 = (float)1.0 / (_t614); _t616 = _t613 * _t615; _t617 = _t612 * _t615; _t618 = _t611 * _t615; _t619 = scene[24] * scene[24]; _t620 = scene[25] * scene[25]; _t621 = scene[26] * scene[26]; _t622 = scene[24] * scene[25]; _t623 = scene[24] * scene[26]; _t624 = scene[25] * scene[26]; _t625 = scene[24] * scene[27]; _t626 = scene[25] * scene[27]; _t627 = scene[26] * scene[27]; _t628 = _t620+_t621; _t629 = 2.000000 * _t628; _t630 = 1.000000-_t629; _t631 = _t622+_t627; _t632 = 2.000000 * _t631; _t633 = _t623-_t626; _t634 = 2.000000 * _t633; _t635 = _t622-_t627; _t636 = 2.000000 * _t635; _t637 = _t619+_t621; _t638 = 2.000000 * _t637; _t639 = 1.000000-_t638; _t640 = _t624+_t625; _t641 = 2.000000 * _t640; _t642 = _t623+_t626; _t643 = 2.000000 * _t642; _t644 = _t624-_t625; _t645 = 2.000000 * _t644; _t646 = _t619+_t620; _t647 = 2.000000 * _t646; _t648 = 1.000000-_t647; _t649 = _t648 * _t618; _t650 = _t641 * _t617; _t651 = _t634 * _t616; _t652 = _t651+_t650; _t653 = _t652+_t649; _t654 = _t645 * _t618; _t655 = _t639 * _t617; _t656 = _t632 * _t616; _t657 = _t656+_t655; _t658 = _t657+_t654; _t659 = _t643 * _t618; _t660 = _t636 * _t617; _t661 = _t630 * _t616; _t662 = _t661+_t660; _t663 = _t662+_t659; _t664 = scene[8] * primary[6]; _t665 = scene[4] * primary[5]; _t666 = _t665+_t664; _t667 = _t666+scene[16]; _t668 = scene[7] * primary[6]; _t669 = scene[3] * primary[5]; _t670 = _t669+_t668; _t671 = _t670+scene[15]; _t672 = scene[6] * primary[6]; _t673 = scene[2] * primary[5]; _t674 = _t673+_t672; _t675 = _t674+scene[14]; _t676 = scene[5] * primary[6]; _t677 = scene[1] * primary[5]; _t678 = _t677+_t676; _t679 = _t678+scene[13]; _t680 = (float)1.0 / (_t667); _t681 = _t671 * _t680; _t682 = _t675 * _t680; _t683 = _t679 * _t680; _t684 = sqrt(_t683*_t683+_t682*_t682+_t681*_t681); _t685 = (float)1.0 / (_t684); _t686 = _t683 * _t685; _t687 = _t682 * _t685; _t688 = _t681 * _t685; _t689 = scene[24] * scene[24]; _t690 = scene[25] * scene[25]; _t691 = scene[26] * scene[26]; _t692 = scene[24] * scene[25]; _t693 = scene[24] * scene[26]; _t694 = scene[25] * scene[26]; _t695 = scene[24] * scene[27]; _t696 = scene[25] * scene[27]; _t697 = scene[26] * scene[27]; _t698 = _t690+_t691; _t699 = 2.000000 * _t698; _t700 = 1.000000-_t699; _t701 = _t692+_t697; _t702 = 2.000000 * _t701; _t703 = _t693-_t696; _t704 = 2.000000 * _t703; _t705 = _t692-_t697; _t706 = 2.000000 * _t705; _t707 = _t689+_t691; _t708 = 2.000000 * _t707; _t709 = 1.000000-_t708; _t710 = _t694+_t695; _t711 = 2.000000 * _t710; _t712 = _t693+_t696; _t713 = 2.000000 * _t712; _t714 = _t694-_t695; _t715 = 2.000000 * _t714; _t716 = _t689+_t690; _t717 = 2.000000 * _t716; _t718 = 1.000000-_t717; _t719 = _t718 * _t688; _t720 = _t711 * _t687; _t721 = _t704 * _t686; _t722 = _t721+_t720; _t723 = _t722+_t719; _t724 = _t715 * _t688; _t725 = _t709 * _t687; _t726 = _t702 * _t686; _t727 = _t726+_t725; _t728 = _t727+_t724; _t729 = _t713 * _t688; _t730 = _t706 * _t687; _t731 = _t700 * _t686; _t732 = _t731+_t730; _t733 = _t732+_t729; _t734 = _t663 * _t733 + _t658 * _t728 + _t653 * _t723; _t735 = scene[33] / _t734; _t736 = _t735 * _t735; _t737 = _t736 / _t734; _t738 = scene[32] / _t737; _t739 = _t738 * _t738; if (vertParams[118] == 0.000000) { _t752 = vertParams[124] * vertParams[126]; _t753 = vertParams[123] * vertParams[127]; _t754 = _t753-_t752; _t755 = vertParams[123] * vertParams[128]; _t756 = vertParams[125] * vertParams[126]; _t757 = _t756-_t755; _t758 = vertParams[125] * vertParams[127]; _t759 = vertParams[124] * vertParams[128]; _t760 = _t759-_t758; _t761 = sqrt(_t760*_t760+_t757*_t757+_t754*_t754); _t762 = (float)1.0 / (_t761); _t763 = _t760 * _t762; _t764 = _t757 * _t762; _t765 = _t754 * _t762; _t766 = _t728 * vertParams[126]; _t767 = _t733 * vertParams[127]; _t768 = _t767-_t766; _t769 = _t733 * vertParams[128]; _t770 = _t723 * vertParams[126]; _t771 = _t770-_t769; _t772 = _t723 * vertParams[127]; _t773 = _t728 * vertParams[128]; _t774 = _t773-_t772; _t775 = _t774 * vertParams[123] + _t771 * vertParams[124] + _t768 * vertParams[125]; _t776 = (float)1.0 / (_t775); _t777 = scene[18]-vertParams[120]; _t778 = scene[19]-vertParams[121]; _t779 = scene[20]-vertParams[122]; _t780 = _t777 * _t774 + _t778 * _t771 + _t779 * _t768; _t781 = _t780 * _t776; _t782 = _t778 * vertParams[123]; _t783 = _t777 * vertParams[124]; _t784 = _t783-_t782; _t785 = _t777 * vertParams[125]; _t786 = _t779 * vertParams[123]; _t787 = _t786-_t785; _t788 = _t779 * vertParams[124]; _t789 = _t778 * vertParams[125]; _t790 = _t789-_t788; _t791 = _t733 * _t790 + _t728 * _t787 + _t723 * _t784; _t792 = _t791 * _t776; _t793 = vertParams[126] * _t790 + vertParams[127] * _t787 + vertParams[128] * _t784; _t794 = _t793 * _t776; _t795 = 1.000000-_t781; _t796 = _t795-_t792; _t797 = _t794 * _t733; _t798 = scene[18]+_t797; _t799 = _t794 * _t728; _t800 = scene[19]+_t799; _t801 = _t794 * _t723; _t802 = scene[20]+_t801; _t803 = _t792 * vertParams[135]; _t804 = _t781 * vertParams[132]; _t805 = _t796 * vertParams[129]; _t806 = _t805+_t804; _t807 = _t806+_t803; _t808 = _t792 * vertParams[136]; _t809 = _t781 * vertParams[133]; _t810 = _t796 * vertParams[130]; _t811 = _t810+_t809; _t812 = _t811+_t808; _t813 = _t792 * vertParams[137]; _t814 = _t781 * vertParams[134]; _t815 = _t796 * vertParams[131]; _t816 = _t815+_t814; _t817 = _t816+_t813; _t818 = sqrt(_t807*_t807+_t812*_t812+_t817*_t817); _t819 = (float)1.0 / (_t818); _t820 = _t807 * _t819; _t821 = _t812 * _t819; _t822 = _t817 * _t819; if (vertParams[156] == 0.000000) { _t823 = _t781; _t824 = _t792; } else { _t826 = _t792 * vertParams[161]; _t827 = _t781 * vertParams[159]; _t828 = 1.000000-_t781; _t829 = _t828-_t792; _t830 = _t829 * vertParams[157]; _t831 = _t830+_t827; _t832 = _t831+_t826; _t833 = _t792 * vertParams[162]; _t834 = _t781 * vertParams[160]; _t835 = 1.000000-_t781; _t836 = _t835-_t792; _t837 = _t836 * vertParams[158]; _t838 = _t837+_t834; _t839 = _t838+_t833; _t823 = _t832; _t824 = _t839; } _t740 = _t798; _t741 = _t800; _t742 = _t802; _t743 = _t763; _t744 = _t764; _t745 = _t765; _t746 = _t820; _t747 = _t821; _t748 = _t822; _t749 = _t823; _t750 = _t824; } else { _t740 = 0.000000; _t741 = 0.000000; _t742 = 0.000000; _t743 = 0.000000; _t744 = 0.000000; _t745 = 0.000000; _t746 = 0.000000; _t747 = 0.000000; _t748 = 0.000000; _t749 = 0.000000; _t750 = 0.000000; } _t840 = -_t733; _t841 = -_t728; _t842 = -_t723; _t843 = scene[20]-_t742; _t844 = _t843 * _t843; _t845 = scene[19]-_t741; _t846 = _t845 * _t845; _t847 = scene[18]-_t740; _t848 = _t847 * _t847; _t849 = _t848+_t846; _t850 = _t849+_t844; _t851 = _t850 * _t850; _t852 = _t739 * _t851; _t853 = _t733 * _t746 + _t728 * _t747 + _t723 * _t748; if (_t853 >= 0.000000) { _t854 = _t853; } else { _t856 = -_t853; _t854 = _t856; } _t857 = _t854 * _t854; _t858 = (float)1.0 / (_t857); _t859 = _t852 * _t858; if (vertParams[165] == 0.000000) { if (vertParams[166] == 1.000000) { _t883 = _t746 * _t840 + _t747 * _t841 + _t748 * _t842; if (_t883 > 0.000000) { _t884 = _t746; _t885 = _t747; _t886 = _t748; _t887 = _t883; } else { _t889 = -_t746; _t890 = -_t747; _t891 = -_t748; _t892 = -_t883; _t884 = _t889; _t885 = _t890; _t886 = _t891; _t887 = _t892; } _t893 = _t840 * _t884 + _t841 * _t885 + _t842 * _t886; _t894 = 2.000000 * _t893; _t895 = _t894 * _t884; _t896 = _t895-_t840; _t897 = _t894 * _t885; _t898 = _t897-_t841; _t899 = _t894 * _t886; _t900 = _t899-_t842; if (vertParams[164] > vertParams[174]) { _t906 = 6.283185 * primary[7]; _t907 = 1.000000-primary[8]; if (_t907 >= 0.000001) { _t908 = _t907; } else { _t908 = 0.000001; } _t910 = sqrt(_t908); if (primary[8] >= 0.000001) { _t911 = primary[8]; } else { _t911 = 0.000001; } _t913 = sqrt(_t911); _t914 = sin(_t906); _t915 = _t914 * _t910; _t916 = cos(_t906); _t917 = _t916 * _t910; if (_t886 < -0.999999) { _t918 = 0.000000; _t919 = -1.000000; _t920 = 0.000000; _t921 = -1.000000; _t922 = 0.000000; _t923 = 0.000000; } else { _t925 = 1.000000+_t886; _t926 = (float)1.0 / (_t925); _t927 = -_t884; _t928 = _t927 * _t885; _t929 = _t928 * _t926; _t930 = -_t884; _t931 = _t884 * _t884; _t932 = _t931 * _t926; _t933 = 1.000000-_t932; _t934 = -_t885; _t935 = _t885 * _t885; _t936 = _t935 * _t926; _t937 = 1.000000-_t936; _t918 = _t933; _t919 = _t929; _t920 = _t930; _t921 = _t929; _t922 = _t937; _t923 = _t934; } _t938 = _t913 * _t884; _t939 = _t915 * _t921; _t940 = _t917 * _t918; _t941 = _t940+_t939; _t942 = _t941+_t938; _t943 = _t913 * _t885; _t944 = _t915 * _t922; _t945 = _t917 * _t919; _t946 = _t945+_t944; _t947 = _t946+_t943; _t948 = _t913 * _t886; _t949 = _t915 * _t923; _t950 = _t917 * _t920; _t951 = _t950+_t949; _t952 = _t951+_t948; _t953 = 1.000000-vertParams[174]; _t901 = _t942; _t902 = _t947; _t903 = _t952; _t904 = _t953; } else { _t954 = vertParams[173]+1.000000; _t955 = (float)1.0 / (_t954); _t956 = pow(primary[8],_t955); _t957 = _t956 * _t956; _t958 = 1.000000-_t957; if (_t958 >= 0.000001) { _t959 = _t958; } else { _t959 = 0.000001; } _t961 = sqrt(_t959); _t962 = 6.283185 * primary[7]; _t963 = sin(_t962); _t964 = _t961 * _t963; _t965 = cos(_t962); _t966 = _t961 * _t965; if (_t900 < -0.999999) { _t967 = 0.000000; _t968 = -1.000000; _t969 = 0.000000; _t970 = -1.000000; _t971 = 0.000000; _t972 = 0.000000; } else { _t974 = 1.000000+_t900; _t975 = (float)1.0 / (_t974); _t976 = -_t896; _t977 = _t976 * _t898; _t978 = _t977 * _t975; _t979 = -_t896; _t980 = _t896 * _t896; _t981 = _t980 * _t975; _t982 = 1.000000-_t981; _t983 = -_t898; _t984 = _t898 * _t898; _t985 = _t984 * _t975; _t986 = 1.000000-_t985; _t967 = _t982; _t968 = _t978; _t969 = _t979; _t970 = _t978; _t971 = _t986; _t972 = _t983; } _t987 = _t956 * _t896; _t988 = _t964 * _t970; _t989 = _t966 * _t967; _t990 = _t989+_t988; _t991 = _t990+_t987; _t992 = _t956 * _t898; _t993 = _t964 * _t971; _t994 = _t966 * _t968; _t995 = _t994+_t993; _t996 = _t995+_t992; _t997 = _t956 * _t900; _t998 = _t964 * _t972; _t999 = _t966 * _t969; _t1000 = _t999+_t998; _t1001 = _t1000+_t997; _t901 = _t991; _t902 = _t996; _t903 = _t1001; _t904 = vertParams[174]; } _t1002 = _t884 * _t901 + _t885 * _t902 + _t886 * _t903; if (vertParams[174] > 0.000000) { _t1008 = _t896 * _t901 + _t898 * _t902 + _t900 * _t903; _t1009 = pow(_t1008,vertParams[173]); _t1010 = _t1009 * 0.159155; if (_t1010 > 0.000000) { _t1016 = vertParams[173]+1.000000; _t1017 = vertParams[173]+2.000000; _t1018 = _t1017 * _t1010; _t1019 = vertParams[170] * _t1018; _t1020 = vertParams[171] * _t1018; _t1021 = vertParams[172] * _t1018; _t1022 = vertParams[174] * _t1016; _t1023 = _t1022 * _t1010; _t1011 = _t1019; _t1012 = _t1020; _t1013 = _t1021; _t1014 = _t1023; } else { _t1011 = 0.000000; _t1012 = 0.000000; _t1013 = 0.000000; _t1014 = 0.000000; } _t1003 = _t1011; _t1004 = _t1012; _t1005 = _t1013; _t1006 = _t1014; } else { _t1003 = 0.000000; _t1004 = 0.000000; _t1005 = 0.000000; _t1006 = 0.000000; } if (vertParams[174] < 1.000000) { _t1030 = vertParams[167] * 0.318310; _t1031 = vertParams[168] * 0.318310; _t1032 = vertParams[169] * 0.318310; _t1033 = 1.000000-vertParams[174]; _t1034 = _t1033 * 0.318310; _t1035 = _t1034 * _t1002; _t1036 = _t1034 * _t887; _t1024 = _t1030; _t1025 = _t1031; _t1026 = _t1032; _t1027 = _t1035; _t1028 = _t1036; } else { _t1024 = 0.000000; _t1025 = 0.000000; _t1026 = 0.000000; _t1027 = 0.000000; _t1028 = 0.000000; } _t1037 = _t1003+_t1024; _t1038 = _t1004+_t1025; _t1039 = _t1005+_t1026; _t1040 = _t1006+_t1027; _t1041 = _t1006+_t1028; _t1042 = _t1037 * _t1002; _t1043 = _t1038 * _t1002; _t1044 = _t1039 * _t1002; _t1045 = (float)1.0 / (_t1040); _t1046 = _t1042 * _t1045; _t1047 = _t1043 * _t1045; _t1048 = _t1044 * _t1045; _t871 = _t901; _t872 = _t902; _t873 = _t903; _t874 = _t1046; _t875 = _t1047; _t876 = _t1048; _t877 = _t1002; _t878 = _t1040; _t879 = _t1041; } else if (vertParams[166] == 2.000000) { _t1049 = _t840 * _t746 + _t841 * _t747 + _t842 * _t748; if (_t1049 >= 0.000000) { _t1050 = _t1049; } else { _t1052 = -_t1049; _t1050 = _t1052; } _t1053 = sqrt(_t1050); _t1054 = 0.200000 * _t1053; _t1055 = 1.200000-_t1054; _t1056 = vertParams[175] * _t1055; _t1057 = 6.283185 * primary[8]; _t1058 = sin(_t1057); _t1059 = cos(_t1057); _t1060 = _t1056 * _t1056; _t1061 = 1.000000-primary[7]; if (_t1061 >= 0.000001) { _t1062 = _t1061; } else { _t1062 = 0.000001; } _t1064 = log(_t1062); _t1065 = -_t1064; _t1066 = _t1060 * _t1065; _t1067 = 1.000000+_t1066; _t1068 = sqrt(_t1067); _t1069 = (float)1.0 / (_t1068); _t1070 = _t1069 * _t1069; _t1071 = 3.141593 * _t1060; _t1072 = _t1071 * _t1069; _t1073 = _t1072 * _t1070; _t1074 = 1.000000-primary[7]; _t1075 = _t1074 / _t1073; _t1076 = 1.000000-_t1070; if (_t1076 >= 0.000001) { _t1077 = _t1076; } else { _t1077 = 0.000001; } _t1079 = sqrt(_t1077); _t1080 = _t1079 * _t1058; _t1081 = _t1079 * _t1059; if (_t748 < -0.999999) { _t1082 = 0.000000; _t1083 = -1.000000; _t1084 = 0.000000; _t1085 = -1.000000; _t1086 = 0.000000; _t1087 = 0.000000; } else { _t1089 = 1.000000+_t748; _t1090 = (float)1.0 / (_t1089); _t1091 = -_t746; _t1092 = _t1091 * _t747; _t1093 = _t1092 * _t1090; _t1094 = -_t746; _t1095 = _t746 * _t746; _t1096 = _t1095 * _t1090; _t1097 = 1.000000-_t1096; _t1098 = -_t747; _t1099 = _t747 * _t747; _t1100 = _t1099 * _t1090; _t1101 = 1.000000-_t1100; _t1082 = _t1097; _t1083 = _t1093; _t1084 = _t1094; _t1085 = _t1093; _t1086 = _t1101; _t1087 = _t1098; } _t1102 = _t1069 * _t746; _t1103 = _t1080 * _t1085; _t1104 = _t1081 * _t1082; _t1105 = _t1104+_t1103; _t1106 = _t1105+_t1102; _t1107 = _t1069 * _t747; _t1108 = _t1080 * _t1086; _t1109 = _t1081 * _t1083; _t1110 = _t1109+_t1108; _t1111 = _t1110+_t1107; _t1112 = _t1069 * _t748; _t1113 = _t1080 * _t1087; _t1114 = _t1081 * _t1084; _t1115 = _t1114+_t1113; _t1116 = _t1115+_t1112; _t1117 = _t840 * _t1106 + _t841 * _t1111 + _t842 * _t1116; if (_t1117 > 0.000000) { _t1118 = vertParams[174]; } else { _t1118 = vertParams[173]; } _t1120 = _t1118 * _t1118; _t1121 = _t1117 * _t1117; _t1122 = 1.000000-_t1121; _t1123 = _t1122 * _t1120; _t1124 = 1.000000-_t1123; if (_t1124 <= 0.000000) { _t1125 = 0.000000; _t1126 = 1.000000; } else { if (_t1117 >= 0.000000) { _t1128 = _t1117; } else { _t1130 = -_t1117; _t1128 = _t1130; } _t1131 = sqrt(_t1124); _t1132 = vertParams[173] * _t1131; _t1133 = vertParams[173] * _t1128; _t1134 = _t1128+_t1132; _t1135 = _t1128-_t1132; _t1136 = _t1135 / _t1134; _t1137 = _t1133+_t1131; _t1138 = _t1133-_t1131; _t1139 = _t1138 / _t1137; _t1140 = -_t1131; if (_t1117 > 0.000000) { _t1141 = _t1140; } else { _t1141 = _t1131; } _t1143 = _t1139 * _t1139; _t1144 = _t1136 * _t1136; _t1145 = _t1144+_t1143; _t1146 = 0.500000 * _t1145; _t1125 = _t1141; _t1126 = _t1146; } if (vertParams[164] <= _t1126) { _t1157 = _t840 * _t1106 + _t841 * _t1111 + _t842 * _t1116; _t1158 = 2.000000 * _t1157; _t1159 = _t1158 * _t1106; _t1160 = _t1159-_t840; _t1161 = _t1158 * _t1111; _t1162 = _t1161-_t841; _t1163 = _t1158 * _t1116; _t1164 = _t1163-_t842; _t1165 = _t1160 * _t1106 + _t1162 * _t1111 + _t1164 * _t1116; _t1166 = 4.000000 * _t1165; _t1167 = _t1075 * _t1126; _t1168 = _t1167 / _t1166; if (_t1168 >= 0.000000) { _t1169 = _t1168; } else { _t1171 = -_t1168; _t1169 = _t1171; } _t1172 = 4.000000 * _t1117; _t1173 = (float)1.0 / (_t1172); _t1174 = _t1160 * _t746 + _t1162 * _t747 + _t1164 * _t748; if (_t1174 >= 0.000000) { _t1175 = _t1174; } else { _t1177 = -_t1174; _t1175 = _t1177; } _t1178 = sqrt(_t1175); _t1179 = 0.200000 * _t1178; _t1180 = 1.200000-_t1179; _t1181 = vertParams[175] * _t1180; _t1182 = _t1069 * _t1069; _t1183 = _t1181 * _t1181; _t1184 = _t1080 * _t1080; _t1185 = _t1184 / _t1183; _t1186 = _t1181 * _t1181; _t1187 = _t1081 * _t1081; _t1188 = _t1187 / _t1186; _t1189 = _t1188+_t1185; _t1190 = _t1189 / _t1182; _t1191 = _t1182 * _t1182; _t1192 = 3.141593 * _t1181; _t1193 = _t1192 * _t1181; _t1194 = _t1193 * _t1191; _t1195 = -_t1190; _t1196 = exp(_t1195); _t1197 = _t1196 / _t1194; _t1198 = _t1126 * _t1197; _t1199 = _t1198 * _t1069; _t1200 = _t1199 * _t1173; if (_t1200 >= 0.000000) { _t1201 = _t1200; } else { _t1203 = -_t1200; _t1201 = _t1203; } _t1147 = _t1160; _t1148 = _t1162; _t1149 = _t1164; _t1150 = vertParams[167]; _t1151 = vertParams[168]; _t1152 = vertParams[169]; _t1153 = _t1174; _t1154 = _t1169; _t1155 = _t1201; } else { if (_t1125 < 0.000000) { _t1204 = vertParams[174]; } else { _t1204 = vertParams[173]; } _t1206 = _t840 * _t1106 + _t841 * _t1111 + _t842 * _t1116; _t1207 = _t1206 * _t1204; _t1208 = _t1207+_t1125; _t1209 = _t840 * _t1204; _t1210 = _t1106 * _t1208; _t1211 = _t1210-_t1209; _t1212 = _t841 * _t1204; _t1213 = _t1111 * _t1208; _t1214 = _t1213-_t1212; _t1215 = _t842 * _t1204; _t1216 = _t1116 * _t1208; _t1217 = _t1216-_t1215; if (_t1049 > 0.000000) { _t1218 = vertParams[173]; } else { _t1218 = vertParams[174]; } _t1220 = (float)1.0 / (_t1218); _t1221 = _t1220 * _t1220; _t1222 = vertParams[170] * _t1221; _t1223 = vertParams[171] * _t1221; _t1224 = vertParams[172] * _t1221; _t1225 = _t1211 * _t1106 + _t1214 * _t1111 + _t1217 * _t1116; _t1226 = _t1218 * _t1225; _t1227 = _t1117+_t1226; _t1228 = _t1227 * _t1227; _t1229 = _t1218 * _t1218; _t1230 = _t1229 * _t1225; _t1231 = _t1230 / _t1228; if (_t1231 >= 0.000000) { _t1232 = _t1231; } else { _t1234 = -_t1231; _t1232 = _t1234; } _t1235 = 1.000000-_t1126; _t1236 = _t1075 * _t1235; _t1237 = _t1236 * _t1232; if (_t1237 >= 0.000000) { _t1238 = _t1237; } else { _t1240 = -_t1237; _t1238 = _t1240; } _t1241 = _t1211 * _t746 + _t1214 * _t747 + _t1217 * _t748; if (_t1241 > 0.000000) { _t1242 = vertParams[173]; } else { _t1242 = vertParams[174]; } _t1244 = _t1242 * _t1117; _t1245 = _t1225+_t1244; _t1246 = _t1245 * _t1245; _t1247 = _t1242 * _t1242; _t1248 = _t1247 * _t1117; _t1249 = _t1248 / _t1246; if (_t1241 >= 0.000000) { _t1250 = _t1241; } else { _t1252 = -_t1241; _t1250 = _t1252; } _t1253 = sqrt(_t1250); _t1254 = 0.200000 * _t1253; _t1255 = 1.200000-_t1254; _t1256 = vertParams[175] * _t1255; _t1257 = _t1069 * _t1069; _t1258 = _t1256 * _t1256; _t1259 = _t1080 * _t1080; _t1260 = _t1259 / _t1258; _t1261 = _t1256 * _t1256; _t1262 = _t1081 * _t1081; _t1263 = _t1262 / _t1261; _t1264 = _t1263+_t1260; _t1265 = _t1264 / _t1257; _t1266 = _t1257 * _t1257; _t1267 = 3.141593 * _t1256; _t1268 = _t1267 * _t1256; _t1269 = _t1268 * _t1266; _t1270 = -_t1265; _t1271 = exp(_t1270); _t1272 = _t1271 / _t1269; _t1273 = 1.000000-_t1126; _t1274 = _t1273 * _t1272; _t1275 = _t1274 * _t1069; _t1276 = _t1275 * _t1249; if (_t1276 >= 0.000000) { _t1277 = _t1276; } else { _t1279 = -_t1276; _t1277 = _t1279; } _t1147 = _t1211; _t1148 = _t1214; _t1149 = _t1217; _t1150 = _t1222; _t1151 = _t1223; _t1152 = _t1224; _t1153 = _t1241; _t1154 = _t1238; _t1155 = _t1277; } if (_t1049 >= 0.000000) { _t1280 = _t1049; } else { _t1282 = -_t1049; _t1280 = _t1282; } if (_t1153 >= 0.000000) { _t1283 = _t1153; } else { _t1285 = -_t1153; _t1283 = _t1285; } _t1286 = _t1069 * _t1069; _t1287 = vertParams[175] * vertParams[175]; _t1288 = _t1080 * _t1080; _t1289 = _t1288 / _t1287; _t1290 = vertParams[175] * vertParams[175]; _t1291 = _t1081 * _t1081; _t1292 = _t1291 / _t1290; _t1293 = _t1292+_t1289; _t1294 = _t1293 / _t1286; _t1295 = _t1286 * _t1286; _t1296 = 3.141593 * vertParams[175]; _t1297 = _t1296 * vertParams[175]; _t1298 = _t1297 * _t1295; _t1299 = -_t1294; _t1300 = exp(_t1299); _t1301 = _t1300 / _t1298; _t1302 = _t1283 * _t1283; _t1303 = 1.000001-_t1302; if (_t1303 >= 0.000000) { _t1304 = _t1303; } else { _t1306 = -_t1303; _t1304 = _t1306; } _t1307 = sqrt(_t1304); _t1308 = _t1307 / _t1283; if (_t1308 <= 0.000000) { _t1309 = 1.000000; } else { _t1311 = vertParams[175] * _t1308; _t1312 = (float)1.0 / (_t1311); if (_t1312 >= 1.600000) { _t1313 = 1.000000; } else { _t1315 = _t1312 * _t1312; _t1316 = 2.577000 * _t1315; _t1317 = 2.276000 * _t1312; _t1318 = 1.000000+_t1317; _t1319 = _t1318+_t1316; _t1320 = 2.181000 * _t1315; _t1321 = 3.535000 * _t1312; _t1322 = _t1321+_t1320; _t1323 = _t1322 / _t1319; _t1313 = _t1323; } _t1309 = _t1313; } _t1324 = _t1280 * _t1280; _t1325 = 1.000001-_t1324; if (_t1325 >= 0.000000) { _t1326 = _t1325; } else { _t1328 = -_t1325; _t1326 = _t1328; } _t1329 = sqrt(_t1326); _t1330 = _t1329 / _t1280; if (_t1330 <= 0.000000) { _t1331 = 1.000000; } else { _t1333 = vertParams[175] * _t1330; _t1334 = (float)1.0 / (_t1333); if (_t1334 >= 1.600000) { _t1335 = 1.000000; } else { _t1337 = _t1334 * _t1334; _t1338 = 2.577000 * _t1337; _t1339 = 2.276000 * _t1334; _t1340 = 1.000000+_t1339; _t1341 = _t1340+_t1338; _t1342 = 2.181000 * _t1337; _t1343 = 3.535000 * _t1334; _t1344 = _t1343+_t1342; _t1345 = _t1344 / _t1341; _t1335 = _t1345; } _t1331 = _t1335; } _t1346 = _t1331 * _t1309; _t1347 = _t1301 * _t1346; _t1348 = _t1347 * _t1117; _t1349 = _t1075 * _t1280; _t1350 = _t1348 / _t1349; if (_t1350 >= 0.000000) { _t1351 = _t1350; } else { _t1353 = -_t1350; _t1351 = _t1353; } _t1354 = _t1150 * _t1351; _t1355 = _t1151 * _t1351; _t1356 = _t1152 * _t1351; _t871 = _t1147; _t872 = _t1148; _t873 = _t1149; _t874 = _t1354; _t875 = _t1355; _t876 = _t1356; _t877 = _t1153; _t878 = _t1154; _t879 = _t1155; } else if (vertParams[166] == 0.000000) { _t1357 = _t840 * _t746 + _t841 * _t747 + _t842 * _t748; if (_t1357 > 0.000000) { _t1358 = _t746; _t1359 = _t747; _t1360 = _t748; _t1361 = _t1357; } else { _t1363 = -_t746; _t1364 = -_t747; _t1365 = -_t748; _t1366 = -_t1357; _t1358 = _t1363; _t1359 = _t1364; _t1360 = _t1365; _t1361 = _t1366; } if (_t1360 < -0.999999) { _t1367 = 0.000000; _t1368 = -1.000000; _t1369 = 0.000000; _t1370 = -1.000000; _t1371 = 0.000000; _t1372 = 0.000000; } else { _t1374 = 1.000000+_t1360; _t1375 = (float)1.0 / (_t1374); _t1376 = -_t1358; _t1377 = _t1376 * _t1359; _t1378 = _t1377 * _t1375; _t1379 = -_t1358; _t1380 = _t1358 * _t1358; _t1381 = _t1380 * _t1375; _t1382 = 1.000000-_t1381; _t1383 = -_t1359; _t1384 = _t1359 * _t1359; _t1385 = _t1384 * _t1375; _t1386 = 1.000000-_t1385; _t1367 = _t1382; _t1368 = _t1378; _t1369 = _t1379; _t1370 = _t1378; _t1371 = _t1386; _t1372 = _t1383; } _t1387 = 6.283185 * primary[7]; _t1388 = 1.000000-primary[8]; if (_t1388 >= 0.000001) { _t1389 = _t1388; } else { _t1389 = 0.000001; } _t1391 = sqrt(_t1389); if (primary[8] >= 0.000001) { _t1392 = primary[8]; } else { _t1392 = 0.000001; } _t1394 = sqrt(_t1392); _t1395 = sin(_t1387); _t1396 = _t1395 * _t1391; _t1397 = cos(_t1387); _t1398 = _t1397 * _t1391; _t1399 = _t1394 * _t1358; _t1400 = _t1396 * _t1370; _t1401 = _t1398 * _t1367; _t1402 = _t1401+_t1400; _t1403 = _t1402+_t1399; _t1404 = _t1394 * _t1359; _t1405 = _t1396 * _t1371; _t1406 = _t1398 * _t1368; _t1407 = _t1406+_t1405; _t1408 = _t1407+_t1404; _t1409 = _t1394 * _t1360; _t1410 = _t1396 * _t1372; _t1411 = _t1398 * _t1369; _t1412 = _t1411+_t1410; _t1413 = _t1412+_t1409; _t1414 = _t1394 * 0.318310; _t1415 = _t1361 * 0.318310; _t871 = _t1403; _t872 = _t1408; _t873 = _t1413; _t874 = vertParams[167]; _t875 = vertParams[168]; _t876 = vertParams[169]; _t877 = _t1394; _t878 = _t1414; _t879 = _t1415; } else { _t871 = 0.000000; _t872 = 0.000000; _t873 = 0.000000; _t874 = 0.000000; _t875 = 0.000000; _t876 = 0.000000; _t877 = 0.000000; _t878 = 0.000000; _t879 = 0.000000; } _t860 = _t871; _t861 = _t872; _t862 = _t873; _t863 = _t874; _t864 = _t875; _t865 = _t876; _t866 = _t877; _t867 = _t878; _t868 = _t879; _t869 = 1.000000; } else { _t1416 = 6.283185 * primary[7]; _t1417 = 3.141593 * primary[8]; _t1418 = sin(_t1417); _t1419 = cos(_t1417); _t1420 = sin(_t1416); _t1421 = _t1418 * _t1420; _t1422 = cos(_t1416); _t1423 = _t1418 * _t1422; if (_t1418 >= 0.000000) { _t1424 = _t1418; } else { _t1426 = -_t1418; _t1424 = _t1426; } _t1427 = _t1424 * 6.283185; _t1428 = _t1427 * 3.141593; if (vertParams[166] == 1.000000) { _t1438 = _t746 * _t840 + _t747 * _t841 + _t748 * _t842; if (_t1438 > 0.000000) { _t1439 = _t746; _t1440 = _t747; _t1441 = _t748; _t1442 = _t1438; } else { _t1444 = -_t746; _t1445 = -_t747; _t1446 = -_t748; _t1447 = -_t1438; _t1439 = _t1444; _t1440 = _t1445; _t1441 = _t1446; _t1442 = _t1447; } _t1448 = _t1439 * _t1423 + _t1440 * _t1421 + _t1441 * _t1419; if (vertParams[174] > 0.000000) { _t1454 = _t840 * _t1439 + _t841 * _t1440 + _t842 * _t1441; _t1455 = 2.000000 * _t1454; _t1456 = _t1455 * _t1439; _t1457 = _t1456-_t840; _t1458 = _t1455 * _t1440; _t1459 = _t1458-_t841; _t1460 = _t1455 * _t1441; _t1461 = _t1460-_t842; _t1462 = _t1457 * _t1423 + _t1459 * _t1421 + _t1461 * _t1419; _t1463 = pow(_t1462,vertParams[173]); _t1464 = _t1463 * 0.159155; if (_t1464 > 0.000000) { _t1470 = vertParams[173]+1.000000; _t1471 = vertParams[173]+2.000000; _t1472 = _t1471 * _t1464; _t1473 = vertParams[170] * _t1472; _t1474 = vertParams[171] * _t1472; _t1475 = vertParams[172] * _t1472; _t1476 = vertParams[174] * _t1470; _t1477 = _t1476 * _t1464; _t1465 = _t1473; _t1466 = _t1474; _t1467 = _t1475; _t1468 = _t1477; } else { _t1465 = 0.000000; _t1466 = 0.000000; _t1467 = 0.000000; _t1468 = 0.000000; } _t1449 = _t1465; _t1450 = _t1466; _t1451 = _t1467; _t1452 = _t1468; } else { _t1449 = 0.000000; _t1450 = 0.000000; _t1451 = 0.000000; _t1452 = 0.000000; } if (vertParams[174] < 1.000000) { _t1484 = vertParams[167] * 0.318310; _t1485 = vertParams[168] * 0.318310; _t1486 = vertParams[169] * 0.318310; _t1487 = 1.000000-vertParams[174]; _t1488 = _t1487 * 0.318310; _t1489 = _t1488 * _t1448; _t1490 = _t1488 * _t1442; _t1478 = _t1484; _t1479 = _t1485; _t1480 = _t1486; _t1481 = _t1489; _t1482 = _t1490; } else { _t1478 = 0.000000; _t1479 = 0.000000; _t1480 = 0.000000; _t1481 = 0.000000; _t1482 = 0.000000; } _t1491 = _t1449+_t1478; _t1492 = _t1450+_t1479; _t1493 = _t1451+_t1480; _t1494 = _t1452+_t1481; _t1495 = _t1452+_t1482; _t1496 = _t1491 * _t1448; _t1497 = _t1492 * _t1448; _t1498 = _t1493 * _t1448; _t1429 = _t1496; _t1430 = _t1497; _t1431 = _t1498; _t1432 = _t1448; _t1433 = _t1494; _t1434 = _t1495; } else if (vertParams[166] == 2.000000) { _t1499 = _t840 * _t746 + _t841 * _t747 + _t842 * _t748; _t1500 = _t1423 * _t746 + _t1421 * _t747 + _t1419 * _t748; _t1501 = _t1499 * _t1500; if (_t1499 > 0.000000) { _t1502 = vertParams[173]; } else { _t1502 = vertParams[174]; } if (_t1500 > 0.000000) { _t1504 = vertParams[173]; } else { _t1504 = vertParams[174]; } if (_t1501 > 0.000000) { _t1510 = _t840+_t1423; _t1511 = _t841+_t1421; _t1512 = _t842+_t1419; _t1513 = sqrt(_t1510*_t1510+_t1511*_t1511+_t1512*_t1512); _t1514 = (float)1.0 / (_t1513); _t1515 = _t1510 * _t1514; _t1516 = _t1511 * _t1514; _t1517 = _t1512 * _t1514; _t1506 = _t1515; _t1507 = _t1516; _t1508 = _t1517; } else { _t1518 = _t1423 * _t1502; _t1519 = _t840+_t1518; _t1520 = _t1421 * _t1502; _t1521 = _t841+_t1520; _t1522 = _t1419 * _t1502; _t1523 = _t842+_t1522; _t1524 = sqrt(_t1519*_t1519+_t1521*_t1521+_t1523*_t1523); _t1525 = (float)1.0 / (_t1524); _t1526 = _t1519 * _t1525; _t1527 = _t1521 * _t1525; _t1528 = _t1523 * _t1525; _t1506 = _t1526; _t1507 = _t1527; _t1508 = _t1528; } _t1529 = _t1506 * _t746 + _t1507 * _t747 + _t1508 * _t748; if (_t1529 < 0.000000) { _t1534 = -_t1506; _t1535 = -_t1507; _t1536 = -_t1508; _t1530 = _t1534; _t1531 = _t1535; _t1532 = _t1536; } else { _t1530 = _t1506; _t1531 = _t1507; _t1532 = _t1508; } _t1537 = _t840 * _t1530 + _t841 * _t1531 + _t842 * _t1532; _t1538 = _t1423 * _t1530 + _t1421 * _t1531 + _t1419 * _t1532; if (_t748 < -0.999999) { _t1539 = 0.000000; _t1540 = -1.000000; _t1541 = 0.000000; _t1542 = -1.000000; _t1543 = 0.000000; _t1544 = 0.000000; } else { _t1546 = 1.000000+_t748; _t1547 = (float)1.0 / (_t1546); _t1548 = -_t746; _t1549 = _t1548 * _t747; _t1550 = _t1549 * _t1547; _t1551 = -_t746; _t1552 = _t746 * _t746; _t1553 = _t1552 * _t1547; _t1554 = 1.000000-_t1553; _t1555 = -_t747; _t1556 = _t747 * _t747; _t1557 = _t1556 * _t1547; _t1558 = 1.000000-_t1557; _t1539 = _t1554; _t1540 = _t1550; _t1541 = _t1551; _t1542 = _t1550; _t1543 = _t1558; _t1544 = _t1555; } _t1559 = _t746 * _t1530 + _t747 * _t1531 + _t748 * _t1532; _t1560 = _t1542 * _t1530 + _t1543 * _t1531 + _t1544 * _t1532; _t1561 = _t1539 * _t1530 + _t1540 * _t1531 + _t1541 * _t1532; _t1562 = _t1559 * _t1559; _t1563 = vertParams[175] * vertParams[175]; _t1564 = _t1560 * _t1560; _t1565 = _t1564 / _t1563; _t1566 = vertParams[175] * vertParams[175]; _t1567 = _t1561 * _t1561; _t1568 = _t1567 / _t1566; _t1569 = _t1568+_t1565; _t1570 = _t1569 / _t1562; _t1571 = _t1562 * _t1562; _t1572 = 3.141593 * vertParams[175]; _t1573 = _t1572 * vertParams[175]; _t1574 = _t1573 * _t1571; _t1575 = -_t1570; _t1576 = exp(_t1575); _t1577 = _t1576 / _t1574; if (_t1537 > 0.000000) { _t1578 = vertParams[174]; } else { _t1578 = vertParams[173]; } _t1580 = _t1578 * _t1578; _t1581 = _t1537 * _t1537; _t1582 = 1.000000-_t1581; _t1583 = _t1582 * _t1580; _t1584 = 1.000000-_t1583; if (_t1584 <= 0.000000) { _t1585 = 1.000000; } else { if (_t1537 >= 0.000000) { _t1587 = _t1537; } else { _t1589 = -_t1537; _t1587 = _t1589; } _t1590 = sqrt(_t1584); _t1591 = vertParams[173] * _t1590; _t1592 = vertParams[173] * _t1587; _t1593 = _t1587+_t1591; _t1594 = _t1587-_t1591; _t1595 = _t1594 / _t1593; _t1596 = _t1592+_t1590; _t1597 = _t1592-_t1590; _t1598 = _t1597 / _t1596; _t1599 = _t1598 * _t1598; _t1600 = _t1595 * _t1595; _t1601 = _t1600+_t1599; _t1602 = 0.500000 * _t1601; _t1585 = _t1602; } if (_t1499 >= 0.000000) { _t1603 = _t1499; } else { _t1605 = -_t1499; _t1603 = _t1605; } if (_t1500 >= 0.000000) { _t1606 = _t1500; } else { _t1608 = -_t1500; _t1606 = _t1608; } _t1609 = _t1606 * _t1606; _t1610 = 1.000001-_t1609; if (_t1610 >= 0.000000) { _t1611 = _t1610; } else { _t1613 = -_t1610; _t1611 = _t1613; } _t1614 = sqrt(_t1611); _t1615 = _t1614 / _t1606; if (_t1615 <= 0.000000) { _t1616 = 1.000000; } else { _t1618 = vertParams[175] * _t1615; _t1619 = (float)1.0 / (_t1618); if (_t1619 >= 1.600000) { _t1620 = 1.000000; } else { _t1622 = _t1619 * _t1619; _t1623 = 2.577000 * _t1622; _t1624 = 2.276000 * _t1619; _t1625 = 1.000000+_t1624; _t1626 = _t1625+_t1623; _t1627 = 2.181000 * _t1622; _t1628 = 3.535000 * _t1619; _t1629 = _t1628+_t1627; _t1630 = _t1629 / _t1626; _t1620 = _t1630; } _t1616 = _t1620; } _t1631 = _t1603 * _t1603; _t1632 = 1.000001-_t1631; if (_t1632 >= 0.000000) { _t1633 = _t1632; } else { _t1635 = -_t1632; _t1633 = _t1635; } _t1636 = sqrt(_t1633); _t1637 = _t1636 / _t1603; if (_t1637 <= 0.000000) { _t1638 = 1.000000; } else { _t1640 = vertParams[175] * _t1637; _t1641 = (float)1.0 / (_t1640); if (_t1641 >= 1.600000) { _t1642 = 1.000000; } else { _t1644 = _t1641 * _t1641; _t1645 = 2.577000 * _t1644; _t1646 = 2.276000 * _t1641; _t1647 = 1.000000+_t1646; _t1648 = _t1647+_t1645; _t1649 = 2.181000 * _t1644; _t1650 = 3.535000 * _t1641; _t1651 = _t1650+_t1649; _t1652 = _t1651 / _t1648; _t1642 = _t1652; } _t1638 = _t1642; } _t1653 = _t1638 * _t1616; _t1654 = sqrt(_t1603); _t1655 = 0.200000 * _t1654; _t1656 = 1.200000-_t1655; _t1657 = vertParams[175] * _t1656; _t1658 = _t1559 * _t1559; _t1659 = _t1657 * _t1657; _t1660 = _t1560 * _t1560; _t1661 = _t1660 / _t1659; _t1662 = _t1657 * _t1657; _t1663 = _t1561 * _t1561; _t1664 = _t1663 / _t1662; _t1665 = _t1664+_t1661; _t1666 = _t1665 / _t1658; _t1667 = _t1658 * _t1658; _t1668 = 3.141593 * _t1657; _t1669 = _t1668 * _t1657; _t1670 = _t1669 * _t1667; _t1671 = -_t1666; _t1672 = exp(_t1671); _t1673 = _t1672 / _t1670; _t1674 = _t1559 * _t1673; _t1675 = sqrt(_t1606); _t1676 = 0.200000 * _t1675; _t1677 = 1.200000-_t1676; _t1678 = vertParams[175] * _t1677; _t1679 = _t1559 * _t1559; _t1680 = _t1678 * _t1678; _t1681 = _t1560 * _t1560; _t1682 = _t1681 / _t1680; _t1683 = _t1678 * _t1678; _t1684 = _t1561 * _t1561; _t1685 = _t1684 / _t1683; _t1686 = _t1685+_t1682; _t1687 = _t1686 / _t1679; _t1688 = _t1679 * _t1679; _t1689 = 3.141593 * _t1678; _t1690 = _t1689 * _t1678; _t1691 = _t1690 * _t1688; _t1692 = -_t1687; _t1693 = exp(_t1692); _t1694 = _t1693 / _t1691; _t1695 = _t1559 * _t1694; if (_t1501 > 0.000000) { _t1701 = 4.000000 * _t1499; _t1702 = _t1585 * _t1577; _t1703 = _t1702 * _t1653; _t1704 = _t1703 / _t1701; if (_t1704 >= 0.000000) { _t1705 = _t1704; } else { _t1707 = -_t1704; _t1705 = _t1707; } _t1708 = vertParams[167] * _t1705; _t1709 = vertParams[168] * _t1705; _t1710 = vertParams[169] * _t1705; _t1711 = 4.000000 * _t1538; _t1712 = _t1674 * _t1585; _t1713 = _t1712 / _t1711; if (_t1713 >= 0.000000) { _t1714 = _t1713; } else { _t1716 = -_t1713; _t1714 = _t1716; } _t1717 = 4.000000 * _t1537; _t1718 = _t1695 * _t1585; _t1719 = _t1718 / _t1717; if (_t1719 >= 0.000000) { _t1720 = _t1719; } else { _t1722 = -_t1719; _t1720 = _t1722; } _t1696 = _t1708; _t1697 = _t1709; _t1698 = _t1710; _t1699 = _t1714; _t1700 = _t1720; } else { _t1723 = _t1502 * _t1538; _t1724 = _t1537+_t1723; _t1725 = _t1504 * _t1537; _t1726 = _t1538+_t1725; _t1727 = (float)1.0 / (_t1502); _t1728 = _t1727 * _t1727; _t1729 = _t1724 * _t1724; _t1730 = _t1499 * _t1729; _t1731 = _t1502 * _t1502; _t1732 = 1.000000-_t1585; _t1733 = _t1732 * _t1577; _t1734 = _t1733 * _t1653; _t1735 = _t1734 * _t1731; _t1736 = _t1735 * _t1537; _t1737 = _t1736 * _t1538; _t1738 = _t1728 * _t1737; _t1739 = _t1738 / _t1730; if (_t1739 >= 0.000000) { _t1740 = _t1739; } else { _t1742 = -_t1739; _t1740 = _t1742; } _t1743 = vertParams[170] * _t1740; _t1744 = vertParams[171] * _t1740; _t1745 = vertParams[172] * _t1740; _t1746 = _t1724 * _t1724; _t1747 = _t1502 * _t1502; _t1748 = _t1747 * _t1538; _t1749 = 1.000000-_t1585; _t1750 = _t1674 * _t1749; _t1751 = _t1750 * _t1748; _t1752 = _t1751 / _t1746; if (_t1752 >= 0.000000) { _t1753 = _t1752; } else { _t1755 = -_t1752; _t1753 = _t1755; } _t1756 = _t1726 * _t1726; _t1757 = _t1504 * _t1504; _t1758 = _t1757 * _t1537; _t1759 = 1.000000-_t1585; _t1760 = _t1695 * _t1759; _t1761 = _t1760 * _t1758; _t1762 = _t1761 / _t1756; if (_t1762 >= 0.000000) { _t1763 = _t1762; } else { _t1765 = -_t1762; _t1763 = _t1765; } _t1696 = _t1743; _t1697 = _t1744; _t1698 = _t1745; _t1699 = _t1753; _t1700 = _t1763; } _t1429 = _t1696; _t1430 = _t1697; _t1431 = _t1698; _t1432 = _t1500; _t1433 = _t1699; _t1434 = _t1700; } else if (vertParams[166] == 0.000000) { _t1766 = _t746 * _t840 + _t747 * _t841 + _t748 * _t842; if (_t1766 > 0.000000) { _t1767 = _t746; _t1768 = _t747; _t1769 = _t748; _t1770 = _t1766; } else { _t1772 = -_t746; _t1773 = -_t747; _t1774 = -_t748; _t1775 = -_t1766; _t1767 = _t1772; _t1768 = _t1773; _t1769 = _t1774; _t1770 = _t1775; } _t1776 = _t1767 * _t1423 + _t1768 * _t1421 + _t1769 * _t1419; _t1777 = _t1776 * 0.318310; _t1778 = _t1770 * 0.318310; _t1779 = _t1777 * vertParams[167]; _t1780 = _t1777 * vertParams[168]; _t1781 = _t1777 * vertParams[169]; _t1429 = _t1779; _t1430 = _t1780; _t1431 = _t1781; _t1432 = _t1776; _t1433 = _t1777; _t1434 = _t1778; } else { _t1429 = 0.000000; _t1430 = 0.000000; _t1431 = 0.000000; _t1432 = 0.000000; _t1433 = 0.000000; _t1434 = 0.000000; } _t860 = _t1423; _t861 = _t1421; _t862 = _t1419; _t863 = _t1429; _t864 = _t1430; _t865 = _t1431; _t866 = _t1432; _t867 = _t1433; _t868 = _t1434; _t869 = _t1428; } _t1782 = _t863 * _t869; _t1783 = _t864 * _t869; _t1784 = _t865 * _t869; _t1785 = _t868 * _t868; _t1786 = _t866 / _t867; _t1787 = _t1786 * _t1786; _t1788 = _t1787 * _t859; _t1789 = (float)1.0 / (_t867); _t1790 = _t1789 * _t1789; _t1791 = _t1782 * vertParams[176]; _t1792 = _t1783 * vertParams[176]; _t1793 = _t1784 * vertParams[176]; if (vertParams[177] == 0.000000) { _t1806 = vertParams[183] * vertParams[185]; _t1807 = vertParams[182] * vertParams[186]; _t1808 = _t1807-_t1806; _t1809 = vertParams[182] * vertParams[187]; _t1810 = vertParams[184] * vertParams[185]; _t1811 = _t1810-_t1809; _t1812 = vertParams[184] * vertParams[186]; _t1813 = vertParams[183] * vertParams[187]; _t1814 = _t1813-_t1812; _t1815 = sqrt(_t1814*_t1814+_t1811*_t1811+_t1808*_t1808); _t1816 = (float)1.0 / (_t1815); _t1817 = _t1814 * _t1816; _t1818 = _t1811 * _t1816; _t1819 = _t1808 * _t1816; _t1820 = _t861 * vertParams[185]; _t1821 = _t860 * vertParams[186]; _t1822 = _t1821-_t1820; _t1823 = _t860 * vertParams[187]; _t1824 = _t862 * vertParams[185]; _t1825 = _t1824-_t1823; _t1826 = _t862 * vertParams[186]; _t1827 = _t861 * vertParams[187]; _t1828 = _t1827-_t1826; _t1829 = _t1828 * vertParams[182] + _t1825 * vertParams[183] + _t1822 * vertParams[184]; _t1830 = (float)1.0 / (_t1829); _t1831 = _t740-vertParams[179]; _t1832 = _t741-vertParams[180]; _t1833 = _t742-vertParams[181]; _t1834 = _t1831 * _t1828 + _t1832 * _t1825 + _t1833 * _t1822; _t1835 = _t1834 * _t1830; _t1836 = _t1832 * vertParams[182]; _t1837 = _t1831 * vertParams[183]; _t1838 = _t1837-_t1836; _t1839 = _t1831 * vertParams[184]; _t1840 = _t1833 * vertParams[182]; _t1841 = _t1840-_t1839; _t1842 = _t1833 * vertParams[183]; _t1843 = _t1832 * vertParams[184]; _t1844 = _t1843-_t1842; _t1845 = _t860 * _t1844 + _t861 * _t1841 + _t862 * _t1838; _t1846 = _t1845 * _t1830; _t1847 = vertParams[185] * _t1844 + vertParams[186] * _t1841 + vertParams[187] * _t1838; _t1848 = _t1847 * _t1830; _t1849 = 1.000000-_t1835; _t1850 = _t1849-_t1846; _t1851 = _t1848 * _t860; _t1852 = _t740+_t1851; _t1853 = _t1848 * _t861; _t1854 = _t741+_t1853; _t1855 = _t1848 * _t862; _t1856 = _t742+_t1855; _t1857 = _t1846 * vertParams[194]; _t1858 = _t1835 * vertParams[191]; _t1859 = _t1850 * vertParams[188]; _t1860 = _t1859+_t1858; _t1861 = _t1860+_t1857; _t1862 = _t1846 * vertParams[195]; _t1863 = _t1835 * vertParams[192]; _t1864 = _t1850 * vertParams[189]; _t1865 = _t1864+_t1863; _t1866 = _t1865+_t1862; _t1867 = _t1846 * vertParams[196]; _t1868 = _t1835 * vertParams[193]; _t1869 = _t1850 * vertParams[190]; _t1870 = _t1869+_t1868; _t1871 = _t1870+_t1867; _t1872 = sqrt(_t1861*_t1861+_t1866*_t1866+_t1871*_t1871); _t1873 = (float)1.0 / (_t1872); _t1874 = _t1861 * _t1873; _t1875 = _t1866 * _t1873; _t1876 = _t1871 * _t1873; if (vertParams[215] == 0.000000) { _t1877 = _t1835; _t1878 = _t1846; } else { _t1880 = _t1846 * vertParams[220]; _t1881 = _t1835 * vertParams[218]; _t1882 = 1.000000-_t1835; _t1883 = _t1882-_t1846; _t1884 = _t1883 * vertParams[216]; _t1885 = _t1884+_t1881; _t1886 = _t1885+_t1880; _t1887 = _t1846 * vertParams[221]; _t1888 = _t1835 * vertParams[219]; _t1889 = 1.000000-_t1835; _t1890 = _t1889-_t1846; _t1891 = _t1890 * vertParams[217]; _t1892 = _t1891+_t1888; _t1893 = _t1892+_t1887; _t1877 = _t1886; _t1878 = _t1893; } _t1794 = _t1852; _t1795 = _t1854; _t1796 = _t1856; _t1797 = _t1817; _t1798 = _t1818; _t1799 = _t1819; _t1800 = _t1874; _t1801 = _t1875; _t1802 = _t1876; _t1803 = _t1877; _t1804 = _t1878; } else { _t1794 = 0.000000; _t1795 = 0.000000; _t1796 = 0.000000; _t1797 = 0.000000; _t1798 = 0.000000; _t1799 = 0.000000; _t1800 = 0.000000; _t1801 = 0.000000; _t1802 = 0.000000; _t1803 = 0.000000; _t1804 = 0.000000; } _t1894 = -_t860; _t1895 = -_t861; _t1896 = -_t862; _t1897 = _t742-_t1796; _t1898 = _t1897 * _t1897; _t1899 = _t741-_t1795; _t1900 = _t1899 * _t1899; _t1901 = _t740-_t1794; _t1902 = _t1901 * _t1901; _t1903 = _t1902+_t1900; _t1904 = _t1903+_t1898; _t1905 = _t1904 * _t1904; _t1906 = _t1790 * _t1905; _t1907 = _t860 * _t1800 + _t861 * _t1801 + _t862 * _t1802; if (_t1907 >= 0.000000) { _t1908 = _t1907; } else { _t1910 = -_t1907; _t1908 = _t1910; } _t1911 = _t1908 * _t1908; _t1912 = (float)1.0 / (_t1911); _t1913 = _t1906 * _t1912; _t1914 = _t1788 * _t1912; if (vertParams[224] == 0.000000) { if (vertParams[225] == 1.000000) { _t1938 = _t1800 * _t1894 + _t1801 * _t1895 + _t1802 * _t1896; if (_t1938 > 0.000000) { _t1939 = _t1800; _t1940 = _t1801; _t1941 = _t1802; _t1942 = _t1938; } else { _t1944 = -_t1800; _t1945 = -_t1801; _t1946 = -_t1802; _t1947 = -_t1938; _t1939 = _t1944; _t1940 = _t1945; _t1941 = _t1946; _t1942 = _t1947; } _t1948 = _t1894 * _t1939 + _t1895 * _t1940 + _t1896 * _t1941; _t1949 = 2.000000 * _t1948; _t1950 = _t1949 * _t1939; _t1951 = _t1950-_t1894; _t1952 = _t1949 * _t1940; _t1953 = _t1952-_t1895; _t1954 = _t1949 * _t1941; _t1955 = _t1954-_t1896; if (vertParams[223] > vertParams[233]) { _t1961 = 6.283185 * primary[9]; _t1962 = 1.000000-primary[10]; if (_t1962 >= 0.000001) { _t1963 = _t1962; } else { _t1963 = 0.000001; } _t1965 = sqrt(_t1963); if (primary[10] >= 0.000001) { _t1966 = primary[10]; } else { _t1966 = 0.000001; } _t1968 = sqrt(_t1966); _t1969 = sin(_t1961); _t1970 = _t1969 * _t1965; _t1971 = cos(_t1961); _t1972 = _t1971 * _t1965; if (_t1941 < -0.999999) { _t1973 = 0.000000; _t1974 = -1.000000; _t1975 = 0.000000; _t1976 = -1.000000; _t1977 = 0.000000; _t1978 = 0.000000; } else { _t1980 = 1.000000+_t1941; _t1981 = (float)1.0 / (_t1980); _t1982 = -_t1939; _t1983 = _t1982 * _t1940; _t1984 = _t1983 * _t1981; _t1985 = -_t1939; _t1986 = _t1939 * _t1939; _t1987 = _t1986 * _t1981; _t1988 = 1.000000-_t1987; _t1989 = -_t1940; _t1990 = _t1940 * _t1940; _t1991 = _t1990 * _t1981; _t1992 = 1.000000-_t1991; _t1973 = _t1988; _t1974 = _t1984; _t1975 = _t1985; _t1976 = _t1984; _t1977 = _t1992; _t1978 = _t1989; } _t1993 = _t1968 * _t1939; _t1994 = _t1970 * _t1976; _t1995 = _t1972 * _t1973; _t1996 = _t1995+_t1994; _t1997 = _t1996+_t1993; _t1998 = _t1968 * _t1940; _t1999 = _t1970 * _t1977; _t2000 = _t1972 * _t1974; _t2001 = _t2000+_t1999; _t2002 = _t2001+_t1998; _t2003 = _t1968 * _t1941; _t2004 = _t1970 * _t1978; _t2005 = _t1972 * _t1975; _t2006 = _t2005+_t2004; _t2007 = _t2006+_t2003; _t2008 = 1.000000-vertParams[233]; _t1956 = _t1997; _t1957 = _t2002; _t1958 = _t2007; _t1959 = _t2008; } else { _t2009 = vertParams[232]+1.000000; _t2010 = (float)1.0 / (_t2009); _t2011 = pow(primary[10],_t2010); _t2012 = _t2011 * _t2011; _t2013 = 1.000000-_t2012; if (_t2013 >= 0.000001) { _t2014 = _t2013; } else { _t2014 = 0.000001; } _t2016 = sqrt(_t2014); _t2017 = 6.283185 * primary[9]; _t2018 = sin(_t2017); _t2019 = _t2016 * _t2018; _t2020 = cos(_t2017); _t2021 = _t2016 * _t2020; if (_t1955 < -0.999999) { _t2022 = 0.000000; _t2023 = -1.000000; _t2024 = 0.000000; _t2025 = -1.000000; _t2026 = 0.000000; _t2027 = 0.000000; } else { _t2029 = 1.000000+_t1955; _t2030 = (float)1.0 / (_t2029); _t2031 = -_t1951; _t2032 = _t2031 * _t1953; _t2033 = _t2032 * _t2030; _t2034 = -_t1951; _t2035 = _t1951 * _t1951; _t2036 = _t2035 * _t2030; _t2037 = 1.000000-_t2036; _t2038 = -_t1953; _t2039 = _t1953 * _t1953; _t2040 = _t2039 * _t2030; _t2041 = 1.000000-_t2040; _t2022 = _t2037; _t2023 = _t2033; _t2024 = _t2034; _t2025 = _t2033; _t2026 = _t2041; _t2027 = _t2038; } _t2042 = _t2011 * _t1951; _t2043 = _t2019 * _t2025; _t2044 = _t2021 * _t2022; _t2045 = _t2044+_t2043; _t2046 = _t2045+_t2042; _t2047 = _t2011 * _t1953; _t2048 = _t2019 * _t2026; _t2049 = _t2021 * _t2023; _t2050 = _t2049+_t2048; _t2051 = _t2050+_t2047; _t2052 = _t2011 * _t1955; _t2053 = _t2019 * _t2027; _t2054 = _t2021 * _t2024; _t2055 = _t2054+_t2053; _t2056 = _t2055+_t2052; _t1956 = _t2046; _t1957 = _t2051; _t1958 = _t2056; _t1959 = vertParams[233]; } _t2057 = _t1939 * _t1956 + _t1940 * _t1957 + _t1941 * _t1958; if (vertParams[233] > 0.000000) { _t2063 = _t1951 * _t1956 + _t1953 * _t1957 + _t1955 * _t1958; _t2064 = pow(_t2063,vertParams[232]); _t2065 = _t2064 * 0.159155; if (_t2065 > 0.000000) { _t2071 = vertParams[232]+1.000000; _t2072 = vertParams[232]+2.000000; _t2073 = _t2072 * _t2065; _t2074 = vertParams[229] * _t2073; _t2075 = vertParams[230] * _t2073; _t2076 = vertParams[231] * _t2073; _t2077 = vertParams[233] * _t2071; _t2078 = _t2077 * _t2065; _t2066 = _t2074; _t2067 = _t2075; _t2068 = _t2076; _t2069 = _t2078; } else { _t2066 = 0.000000; _t2067 = 0.000000; _t2068 = 0.000000; _t2069 = 0.000000; } _t2058 = _t2066; _t2059 = _t2067; _t2060 = _t2068; _t2061 = _t2069; } else { _t2058 = 0.000000; _t2059 = 0.000000; _t2060 = 0.000000; _t2061 = 0.000000; } if (vertParams[233] < 1.000000) { _t2085 = vertParams[226] * 0.318310; _t2086 = vertParams[227] * 0.318310; _t2087 = vertParams[228] * 0.318310; _t2088 = 1.000000-vertParams[233]; _t2089 = _t2088 * 0.318310; _t2090 = _t2089 * _t2057; _t2091 = _t2089 * _t1942; _t2079 = _t2085; _t2080 = _t2086; _t2081 = _t2087; _t2082 = _t2090; _t2083 = _t2091; } else { _t2079 = 0.000000; _t2080 = 0.000000; _t2081 = 0.000000; _t2082 = 0.000000; _t2083 = 0.000000; } _t2092 = _t2058+_t2079; _t2093 = _t2059+_t2080; _t2094 = _t2060+_t2081; _t2095 = _t2061+_t2082; _t2096 = _t2061+_t2083; _t2097 = _t2092 * _t2057; _t2098 = _t2093 * _t2057; _t2099 = _t2094 * _t2057; _t2100 = (float)1.0 / (_t2095); _t2101 = _t2097 * _t2100; _t2102 = _t2098 * _t2100; _t2103 = _t2099 * _t2100; _t1926 = _t1956; _t1927 = _t1957; _t1928 = _t1958; _t1929 = _t2101; _t1930 = _t2102; _t1931 = _t2103; _t1932 = _t2057; _t1933 = _t2095; _t1934 = _t2096; } else if (vertParams[225] == 2.000000) { _t2104 = _t1894 * _t1800 + _t1895 * _t1801 + _t1896 * _t1802; if (_t2104 >= 0.000000) { _t2105 = _t2104; } else { _t2107 = -_t2104; _t2105 = _t2107; } _t2108 = sqrt(_t2105); _t2109 = 0.200000 * _t2108; _t2110 = 1.200000-_t2109; _t2111 = vertParams[234] * _t2110; _t2112 = 6.283185 * primary[10]; _t2113 = sin(_t2112); _t2114 = cos(_t2112); _t2115 = _t2111 * _t2111; _t2116 = 1.000000-primary[9]; if (_t2116 >= 0.000001) { _t2117 = _t2116; } else { _t2117 = 0.000001; } _t2119 = log(_t2117); _t2120 = -_t2119; _t2121 = _t2115 * _t2120; _t2122 = 1.000000+_t2121; _t2123 = sqrt(_t2122); _t2124 = (float)1.0 / (_t2123); _t2125 = _t2124 * _t2124; _t2126 = 3.141593 * _t2115; _t2127 = _t2126 * _t2124; _t2128 = _t2127 * _t2125; _t2129 = 1.000000-primary[9]; _t2130 = _t2129 / _t2128; _t2131 = 1.000000-_t2125; if (_t2131 >= 0.000001) { _t2132 = _t2131; } else { _t2132 = 0.000001; } _t2134 = sqrt(_t2132); _t2135 = _t2134 * _t2113; _t2136 = _t2134 * _t2114; if (_t1802 < -0.999999) { _t2137 = 0.000000; _t2138 = -1.000000; _t2139 = 0.000000; _t2140 = -1.000000; _t2141 = 0.000000; _t2142 = 0.000000; } else { _t2144 = 1.000000+_t1802; _t2145 = (float)1.0 / (_t2144); _t2146 = -_t1800; _t2147 = _t2146 * _t1801; _t2148 = _t2147 * _t2145; _t2149 = -_t1800; _t2150 = _t1800 * _t1800; _t2151 = _t2150 * _t2145; _t2152 = 1.000000-_t2151; _t2153 = -_t1801; _t2154 = _t1801 * _t1801; _t2155 = _t2154 * _t2145; _t2156 = 1.000000-_t2155; _t2137 = _t2152; _t2138 = _t2148; _t2139 = _t2149; _t2140 = _t2148; _t2141 = _t2156; _t2142 = _t2153; } _t2157 = _t2124 * _t1800; _t2158 = _t2135 * _t2140; _t2159 = _t2136 * _t2137; _t2160 = _t2159+_t2158; _t2161 = _t2160+_t2157; _t2162 = _t2124 * _t1801; _t2163 = _t2135 * _t2141; _t2164 = _t2136 * _t2138; _t2165 = _t2164+_t2163; _t2166 = _t2165+_t2162; _t2167 = _t2124 * _t1802; _t2168 = _t2135 * _t2142; _t2169 = _t2136 * _t2139; _t2170 = _t2169+_t2168; _t2171 = _t2170+_t2167; _t2172 = _t1894 * _t2161 + _t1895 * _t2166 + _t1896 * _t2171; if (_t2172 > 0.000000) { _t2173 = vertParams[233]; } else { _t2173 = vertParams[232]; } _t2175 = _t2173 * _t2173; _t2176 = _t2172 * _t2172; _t2177 = 1.000000-_t2176; _t2178 = _t2177 * _t2175; _t2179 = 1.000000-_t2178; if (_t2179 <= 0.000000) { _t2180 = 0.000000; _t2181 = 1.000000; } else { if (_t2172 >= 0.000000) { _t2183 = _t2172; } else { _t2185 = -_t2172; _t2183 = _t2185; } _t2186 = sqrt(_t2179); _t2187 = vertParams[232] * _t2186; _t2188 = vertParams[232] * _t2183; _t2189 = _t2183+_t2187; _t2190 = _t2183-_t2187; _t2191 = _t2190 / _t2189; _t2192 = _t2188+_t2186; _t2193 = _t2188-_t2186; _t2194 = _t2193 / _t2192; _t2195 = -_t2186; if (_t2172 > 0.000000) { _t2196 = _t2195; } else { _t2196 = _t2186; } _t2198 = _t2194 * _t2194; _t2199 = _t2191 * _t2191; _t2200 = _t2199+_t2198; _t2201 = 0.500000 * _t2200; _t2180 = _t2196; _t2181 = _t2201; } if (vertParams[223] <= _t2181) { _t2212 = _t1894 * _t2161 + _t1895 * _t2166 + _t1896 * _t2171; _t2213 = 2.000000 * _t2212; _t2214 = _t2213 * _t2161; _t2215 = _t2214-_t1894; _t2216 = _t2213 * _t2166; _t2217 = _t2216-_t1895; _t2218 = _t2213 * _t2171; _t2219 = _t2218-_t1896; _t2220 = _t2215 * _t2161 + _t2217 * _t2166 + _t2219 * _t2171; _t2221 = 4.000000 * _t2220; _t2222 = _t2130 * _t2181; _t2223 = _t2222 / _t2221; if (_t2223 >= 0.000000) { _t2224 = _t2223; } else { _t2226 = -_t2223; _t2224 = _t2226; } _t2227 = 4.000000 * _t2172; _t2228 = (float)1.0 / (_t2227); _t2229 = _t2215 * _t1800 + _t2217 * _t1801 + _t2219 * _t1802; if (_t2229 >= 0.000000) { _t2230 = _t2229; } else { _t2232 = -_t2229; _t2230 = _t2232; } _t2233 = sqrt(_t2230); _t2234 = 0.200000 * _t2233; _t2235 = 1.200000-_t2234; _t2236 = vertParams[234] * _t2235; _t2237 = _t2124 * _t2124; _t2238 = _t2236 * _t2236; _t2239 = _t2135 * _t2135; _t2240 = _t2239 / _t2238; _t2241 = _t2236 * _t2236; _t2242 = _t2136 * _t2136; _t2243 = _t2242 / _t2241; _t2244 = _t2243+_t2240; _t2245 = _t2244 / _t2237; _t2246 = _t2237 * _t2237; _t2247 = 3.141593 * _t2236; _t2248 = _t2247 * _t2236; _t2249 = _t2248 * _t2246; _t2250 = -_t2245; _t2251 = exp(_t2250); _t2252 = _t2251 / _t2249; _t2253 = _t2181 * _t2252; _t2254 = _t2253 * _t2124; _t2255 = _t2254 * _t2228; if (_t2255 >= 0.000000) { _t2256 = _t2255; } else { _t2258 = -_t2255; _t2256 = _t2258; } _t2202 = _t2215; _t2203 = _t2217; _t2204 = _t2219; _t2205 = vertParams[226]; _t2206 = vertParams[227]; _t2207 = vertParams[228]; _t2208 = _t2229; _t2209 = _t2224; _t2210 = _t2256; } else { if (_t2180 < 0.000000) { _t2259 = vertParams[233]; } else { _t2259 = vertParams[232]; } _t2261 = _t1894 * _t2161 + _t1895 * _t2166 + _t1896 * _t2171; _t2262 = _t2261 * _t2259; _t2263 = _t2262+_t2180; _t2264 = _t1894 * _t2259; _t2265 = _t2161 * _t2263; _t2266 = _t2265-_t2264; _t2267 = _t1895 * _t2259; _t2268 = _t2166 * _t2263; _t2269 = _t2268-_t2267; _t2270 = _t1896 * _t2259; _t2271 = _t2171 * _t2263; _t2272 = _t2271-_t2270; if (_t2104 > 0.000000) { _t2273 = vertParams[232]; } else { _t2273 = vertParams[233]; } _t2275 = (float)1.0 / (_t2273); _t2276 = _t2275 * _t2275; _t2277 = vertParams[229] * _t2276; _t2278 = vertParams[230] * _t2276; _t2279 = vertParams[231] * _t2276; _t2280 = _t2266 * _t2161 + _t2269 * _t2166 + _t2272 * _t2171; _t2281 = _t2273 * _t2280; _t2282 = _t2172+_t2281; _t2283 = _t2282 * _t2282; _t2284 = _t2273 * _t2273; _t2285 = _t2284 * _t2280; _t2286 = _t2285 / _t2283; if (_t2286 >= 0.000000) { _t2287 = _t2286; } else { _t2289 = -_t2286; _t2287 = _t2289; } _t2290 = 1.000000-_t2181; _t2291 = _t2130 * _t2290; _t2292 = _t2291 * _t2287; if (_t2292 >= 0.000000) { _t2293 = _t2292; } else { _t2295 = -_t2292; _t2293 = _t2295; } _t2296 = _t2266 * _t1800 + _t2269 * _t1801 + _t2272 * _t1802; if (_t2296 > 0.000000) { _t2297 = vertParams[232]; } else { _t2297 = vertParams[233]; } _t2299 = _t2297 * _t2172; _t2300 = _t2280+_t2299; _t2301 = _t2300 * _t2300; _t2302 = _t2297 * _t2297; _t2303 = _t2302 * _t2172; _t2304 = _t2303 / _t2301; if (_t2296 >= 0.000000) { _t2305 = _t2296; } else { _t2307 = -_t2296; _t2305 = _t2307; } _t2308 = sqrt(_t2305); _t2309 = 0.200000 * _t2308; _t2310 = 1.200000-_t2309; _t2311 = vertParams[234] * _t2310; _t2312 = _t2124 * _t2124; _t2313 = _t2311 * _t2311; _t2314 = _t2135 * _t2135; _t2315 = _t2314 / _t2313; _t2316 = _t2311 * _t2311; _t2317 = _t2136 * _t2136; _t2318 = _t2317 / _t2316; _t2319 = _t2318+_t2315; _t2320 = _t2319 / _t2312; _t2321 = _t2312 * _t2312; _t2322 = 3.141593 * _t2311; _t2323 = _t2322 * _t2311; _t2324 = _t2323 * _t2321; _t2325 = -_t2320; _t2326 = exp(_t2325); _t2327 = _t2326 / _t2324; _t2328 = 1.000000-_t2181; _t2329 = _t2328 * _t2327; _t2330 = _t2329 * _t2124; _t2331 = _t2330 * _t2304; if (_t2331 >= 0.000000) { _t2332 = _t2331; } else { _t2334 = -_t2331; _t2332 = _t2334; } _t2202 = _t2266; _t2203 = _t2269; _t2204 = _t2272; _t2205 = _t2277; _t2206 = _t2278; _t2207 = _t2279; _t2208 = _t2296; _t2209 = _t2293; _t2210 = _t2332; } if (_t2104 >= 0.000000) { _t2335 = _t2104; } else { _t2337 = -_t2104; _t2335 = _t2337; } if (_t2208 >= 0.000000) { _t2338 = _t2208; } else { _t2340 = -_t2208; _t2338 = _t2340; } _t2341 = _t2124 * _t2124; _t2342 = vertParams[234] * vertParams[234]; _t2343 = _t2135 * _t2135; _t2344 = _t2343 / _t2342; _t2345 = vertParams[234] * vertParams[234]; _t2346 = _t2136 * _t2136; _t2347 = _t2346 / _t2345; _t2348 = _t2347+_t2344; _t2349 = _t2348 / _t2341; _t2350 = _t2341 * _t2341; _t2351 = 3.141593 * vertParams[234]; _t2352 = _t2351 * vertParams[234]; _t2353 = _t2352 * _t2350; _t2354 = -_t2349; _t2355 = exp(_t2354); _t2356 = _t2355 / _t2353; _t2357 = _t2338 * _t2338; _t2358 = 1.000001-_t2357; if (_t2358 >= 0.000000) { _t2359 = _t2358; } else { _t2361 = -_t2358; _t2359 = _t2361; } _t2362 = sqrt(_t2359); _t2363 = _t2362 / _t2338; if (_t2363 <= 0.000000) { _t2364 = 1.000000; } else { _t2366 = vertParams[234] * _t2363; _t2367 = (float)1.0 / (_t2366); if (_t2367 >= 1.600000) { _t2368 = 1.000000; } else { _t2370 = _t2367 * _t2367; _t2371 = 2.577000 * _t2370; _t2372 = 2.276000 * _t2367; _t2373 = 1.000000+_t2372; _t2374 = _t2373+_t2371; _t2375 = 2.181000 * _t2370; _t2376 = 3.535000 * _t2367; _t2377 = _t2376+_t2375; _t2378 = _t2377 / _t2374; _t2368 = _t2378; } _t2364 = _t2368; } _t2379 = _t2335 * _t2335; _t2380 = 1.000001-_t2379; if (_t2380 >= 0.000000) { _t2381 = _t2380; } else { _t2383 = -_t2380; _t2381 = _t2383; } _t2384 = sqrt(_t2381); _t2385 = _t2384 / _t2335; if (_t2385 <= 0.000000) { _t2386 = 1.000000; } else { _t2388 = vertParams[234] * _t2385; _t2389 = (float)1.0 / (_t2388); if (_t2389 >= 1.600000) { _t2390 = 1.000000; } else { _t2392 = _t2389 * _t2389; _t2393 = 2.577000 * _t2392; _t2394 = 2.276000 * _t2389; _t2395 = 1.000000+_t2394; _t2396 = _t2395+_t2393; _t2397 = 2.181000 * _t2392; _t2398 = 3.535000 * _t2389; _t2399 = _t2398+_t2397; _t2400 = _t2399 / _t2396; _t2390 = _t2400; } _t2386 = _t2390; } _t2401 = _t2386 * _t2364; _t2402 = _t2356 * _t2401; _t2403 = _t2402 * _t2172; _t2404 = _t2130 * _t2335; _t2405 = _t2403 / _t2404; if (_t2405 >= 0.000000) { _t2406 = _t2405; } else { _t2408 = -_t2405; _t2406 = _t2408; } _t2409 = _t2205 * _t2406; _t2410 = _t2206 * _t2406; _t2411 = _t2207 * _t2406; _t1926 = _t2202; _t1927 = _t2203; _t1928 = _t2204; _t1929 = _t2409; _t1930 = _t2410; _t1931 = _t2411; _t1932 = _t2208; _t1933 = _t2209; _t1934 = _t2210; } else if (vertParams[225] == 0.000000) { _t2412 = _t1894 * _t1800 + _t1895 * _t1801 + _t1896 * _t1802; if (_t2412 > 0.000000) { _t2413 = _t1800; _t2414 = _t1801; _t2415 = _t1802; _t2416 = _t2412; } else { _t2418 = -_t1800; _t2419 = -_t1801; _t2420 = -_t1802; _t2421 = -_t2412; _t2413 = _t2418; _t2414 = _t2419; _t2415 = _t2420; _t2416 = _t2421; } if (_t2415 < -0.999999) { _t2422 = 0.000000; _t2423 = -1.000000; _t2424 = 0.000000; _t2425 = -1.000000; _t2426 = 0.000000; _t2427 = 0.000000; } else { _t2429 = 1.000000+_t2415; _t2430 = (float)1.0 / (_t2429); _t2431 = -_t2413; _t2432 = _t2431 * _t2414; _t2433 = _t2432 * _t2430; _t2434 = -_t2413; _t2435 = _t2413 * _t2413; _t2436 = _t2435 * _t2430; _t2437 = 1.000000-_t2436; _t2438 = -_t2414; _t2439 = _t2414 * _t2414; _t2440 = _t2439 * _t2430; _t2441 = 1.000000-_t2440; _t2422 = _t2437; _t2423 = _t2433; _t2424 = _t2434; _t2425 = _t2433; _t2426 = _t2441; _t2427 = _t2438; } _t2442 = 6.283185 * primary[9]; _t2443 = 1.000000-primary[10]; if (_t2443 >= 0.000001) { _t2444 = _t2443; } else { _t2444 = 0.000001; } _t2446 = sqrt(_t2444); if (primary[10] >= 0.000001) { _t2447 = primary[10]; } else { _t2447 = 0.000001; } _t2449 = sqrt(_t2447); _t2450 = sin(_t2442); _t2451 = _t2450 * _t2446; _t2452 = cos(_t2442); _t2453 = _t2452 * _t2446; _t2454 = _t2449 * _t2413; _t2455 = _t2451 * _t2425; _t2456 = _t2453 * _t2422; _t2457 = _t2456+_t2455; _t2458 = _t2457+_t2454; _t2459 = _t2449 * _t2414; _t2460 = _t2451 * _t2426; _t2461 = _t2453 * _t2423; _t2462 = _t2461+_t2460; _t2463 = _t2462+_t2459; _t2464 = _t2449 * _t2415; _t2465 = _t2451 * _t2427; _t2466 = _t2453 * _t2424; _t2467 = _t2466+_t2465; _t2468 = _t2467+_t2464; _t2469 = _t2449 * 0.318310; _t2470 = _t2416 * 0.318310; _t1926 = _t2458; _t1927 = _t2463; _t1928 = _t2468; _t1929 = vertParams[226]; _t1930 = vertParams[227]; _t1931 = vertParams[228]; _t1932 = _t2449; _t1933 = _t2469; _t1934 = _t2470; } else { _t1926 = 0.000000; _t1927 = 0.000000; _t1928 = 0.000000; _t1929 = 0.000000; _t1930 = 0.000000; _t1931 = 0.000000; _t1932 = 0.000000; _t1933 = 0.000000; _t1934 = 0.000000; } _t1915 = _t1926; _t1916 = _t1927; _t1917 = _t1928; _t1918 = _t1929; _t1919 = _t1930; _t1920 = _t1931; _t1921 = _t1932; _t1922 = _t1933; _t1923 = _t1934; _t1924 = 1.000000; } else { _t2471 = 6.283185 * primary[9]; _t2472 = 3.141593 * primary[10]; _t2473 = sin(_t2472); _t2474 = cos(_t2472); _t2475 = sin(_t2471); _t2476 = _t2473 * _t2475; _t2477 = cos(_t2471); _t2478 = _t2473 * _t2477; if (_t2473 >= 0.000000) { _t2479 = _t2473; } else { _t2481 = -_t2473; _t2479 = _t2481; } _t2482 = _t2479 * 6.283185; _t2483 = _t2482 * 3.141593; if (vertParams[225] == 1.000000) { _t2493 = _t1800 * _t1894 + _t1801 * _t1895 + _t1802 * _t1896; if (_t2493 > 0.000000) { _t2494 = _t1800; _t2495 = _t1801; _t2496 = _t1802; _t2497 = _t2493; } else { _t2499 = -_t1800; _t2500 = -_t1801; _t2501 = -_t1802; _t2502 = -_t2493; _t2494 = _t2499; _t2495 = _t2500; _t2496 = _t2501; _t2497 = _t2502; } _t2503 = _t2494 * _t2478 + _t2495 * _t2476 + _t2496 * _t2474; if (vertParams[233] > 0.000000) { _t2509 = _t1894 * _t2494 + _t1895 * _t2495 + _t1896 * _t2496; _t2510 = 2.000000 * _t2509; _t2511 = _t2510 * _t2494; _t2512 = _t2511-_t1894; _t2513 = _t2510 * _t2495; _t2514 = _t2513-_t1895; _t2515 = _t2510 * _t2496; _t2516 = _t2515-_t1896; _t2517 = _t2512 * _t2478 + _t2514 * _t2476 + _t2516 * _t2474; _t2518 = pow(_t2517,vertParams[232]); _t2519 = _t2518 * 0.159155; if (_t2519 > 0.000000) { _t2525 = vertParams[232]+1.000000; _t2526 = vertParams[232]+2.000000; _t2527 = _t2526 * _t2519; _t2528 = vertParams[229] * _t2527; _t2529 = vertParams[230] * _t2527; _t2530 = vertParams[231] * _t2527; _t2531 = vertParams[233] * _t2525; _t2532 = _t2531 * _t2519; _t2520 = _t2528; _t2521 = _t2529; _t2522 = _t2530; _t2523 = _t2532; } else { _t2520 = 0.000000; _t2521 = 0.000000; _t2522 = 0.000000; _t2523 = 0.000000; } _t2504 = _t2520; _t2505 = _t2521; _t2506 = _t2522; _t2507 = _t2523; } else { _t2504 = 0.000000; _t2505 = 0.000000; _t2506 = 0.000000; _t2507 = 0.000000; } if (vertParams[233] < 1.000000) { _t2539 = vertParams[226] * 0.318310; _t2540 = vertParams[227] * 0.318310; _t2541 = vertParams[228] * 0.318310; _t2542 = 1.000000-vertParams[233]; _t2543 = _t2542 * 0.318310; _t2544 = _t2543 * _t2503; _t2545 = _t2543 * _t2497; _t2533 = _t2539; _t2534 = _t2540; _t2535 = _t2541; _t2536 = _t2544; _t2537 = _t2545; } else { _t2533 = 0.000000; _t2534 = 0.000000; _t2535 = 0.000000; _t2536 = 0.000000; _t2537 = 0.000000; } _t2546 = _t2504+_t2533; _t2547 = _t2505+_t2534; _t2548 = _t2506+_t2535; _t2549 = _t2507+_t2536; _t2550 = _t2507+_t2537; _t2551 = _t2546 * _t2503; _t2552 = _t2547 * _t2503; _t2553 = _t2548 * _t2503; _t2484 = _t2551; _t2485 = _t2552; _t2486 = _t2553; _t2487 = _t2503; _t2488 = _t2549; _t2489 = _t2550; } else if (vertParams[225] == 2.000000) { _t2554 = _t1894 * _t1800 + _t1895 * _t1801 + _t1896 * _t1802; _t2555 = _t2478 * _t1800 + _t2476 * _t1801 + _t2474 * _t1802; _t2556 = _t2554 * _t2555; if (_t2554 > 0.000000) { _t2557 = vertParams[232]; } else { _t2557 = vertParams[233]; } if (_t2555 > 0.000000) { _t2559 = vertParams[232]; } else { _t2559 = vertParams[233]; } if (_t2556 > 0.000000) { _t2565 = _t1894+_t2478; _t2566 = _t1895+_t2476; _t2567 = _t1896+_t2474; _t2568 = sqrt(_t2565*_t2565+_t2566*_t2566+_t2567*_t2567); _t2569 = (float)1.0 / (_t2568); _t2570 = _t2565 * _t2569; _t2571 = _t2566 * _t2569; _t2572 = _t2567 * _t2569; _t2561 = _t2570; _t2562 = _t2571; _t2563 = _t2572; } else { _t2573 = _t2478 * _t2557; _t2574 = _t1894+_t2573; _t2575 = _t2476 * _t2557; _t2576 = _t1895+_t2575; _t2577 = _t2474 * _t2557; _t2578 = _t1896+_t2577; _t2579 = sqrt(_t2574*_t2574+_t2576*_t2576+_t2578*_t2578); _t2580 = (float)1.0 / (_t2579); _t2581 = _t2574 * _t2580; _t2582 = _t2576 * _t2580; _t2583 = _t2578 * _t2580; _t2561 = _t2581; _t2562 = _t2582; _t2563 = _t2583; } _t2584 = _t2561 * _t1800 + _t2562 * _t1801 + _t2563 * _t1802; if (_t2584 < 0.000000) { _t2589 = -_t2561; _t2590 = -_t2562; _t2591 = -_t2563; _t2585 = _t2589; _t2586 = _t2590; _t2587 = _t2591; } else { _t2585 = _t2561; _t2586 = _t2562; _t2587 = _t2563; } _t2592 = _t1894 * _t2585 + _t1895 * _t2586 + _t1896 * _t2587; _t2593 = _t2478 * _t2585 + _t2476 * _t2586 + _t2474 * _t2587; if (_t1802 < -0.999999) { _t2594 = 0.000000; _t2595 = -1.000000; _t2596 = 0.000000; _t2597 = -1.000000; _t2598 = 0.000000; _t2599 = 0.000000; } else { _t2601 = 1.000000+_t1802; _t2602 = (float)1.0 / (_t2601); _t2603 = -_t1800; _t2604 = _t2603 * _t1801; _t2605 = _t2604 * _t2602; _t2606 = -_t1800; _t2607 = _t1800 * _t1800; _t2608 = _t2607 * _t2602; _t2609 = 1.000000-_t2608; _t2610 = -_t1801; _t2611 = _t1801 * _t1801; _t2612 = _t2611 * _t2602; _t2613 = 1.000000-_t2612; _t2594 = _t2609; _t2595 = _t2605; _t2596 = _t2606; _t2597 = _t2605; _t2598 = _t2613; _t2599 = _t2610; } _t2614 = _t1800 * _t2585 + _t1801 * _t2586 + _t1802 * _t2587; _t2615 = _t2597 * _t2585 + _t2598 * _t2586 + _t2599 * _t2587; _t2616 = _t2594 * _t2585 + _t2595 * _t2586 + _t2596 * _t2587; _t2617 = _t2614 * _t2614; _t2618 = vertParams[234] * vertParams[234]; _t2619 = _t2615 * _t2615; _t2620 = _t2619 / _t2618; _t2621 = vertParams[234] * vertParams[234]; _t2622 = _t2616 * _t2616; _t2623 = _t2622 / _t2621; _t2624 = _t2623+_t2620; _t2625 = _t2624 / _t2617; _t2626 = _t2617 * _t2617; _t2627 = 3.141593 * vertParams[234]; _t2628 = _t2627 * vertParams[234]; _t2629 = _t2628 * _t2626; _t2630 = -_t2625; _t2631 = exp(_t2630); _t2632 = _t2631 / _t2629; if (_t2592 > 0.000000) { _t2633 = vertParams[233]; } else { _t2633 = vertParams[232]; } _t2635 = _t2633 * _t2633; _t2636 = _t2592 * _t2592; _t2637 = 1.000000-_t2636; _t2638 = _t2637 * _t2635; _t2639 = 1.000000-_t2638; if (_t2639 <= 0.000000) { _t2640 = 1.000000; } else { if (_t2592 >= 0.000000) { _t2642 = _t2592; } else { _t2644 = -_t2592; _t2642 = _t2644; } _t2645 = sqrt(_t2639); _t2646 = vertParams[232] * _t2645; _t2647 = vertParams[232] * _t2642; _t2648 = _t2642+_t2646; _t2649 = _t2642-_t2646; _t2650 = _t2649 / _t2648; _t2651 = _t2647+_t2645; _t2652 = _t2647-_t2645; _t2653 = _t2652 / _t2651; _t2654 = _t2653 * _t2653; _t2655 = _t2650 * _t2650; _t2656 = _t2655+_t2654; _t2657 = 0.500000 * _t2656; _t2640 = _t2657; } if (_t2554 >= 0.000000) { _t2658 = _t2554; } else { _t2660 = -_t2554; _t2658 = _t2660; } if (_t2555 >= 0.000000) { _t2661 = _t2555; } else { _t2663 = -_t2555; _t2661 = _t2663; } _t2664 = _t2661 * _t2661; _t2665 = 1.000001-_t2664; if (_t2665 >= 0.000000) { _t2666 = _t2665; } else { _t2668 = -_t2665; _t2666 = _t2668; } _t2669 = sqrt(_t2666); _t2670 = _t2669 / _t2661; if (_t2670 <= 0.000000) { _t2671 = 1.000000; } else { _t2673 = vertParams[234] * _t2670; _t2674 = (float)1.0 / (_t2673); if (_t2674 >= 1.600000) { _t2675 = 1.000000; } else { _t2677 = _t2674 * _t2674; _t2678 = 2.577000 * _t2677; _t2679 = 2.276000 * _t2674; _t2680 = 1.000000+_t2679; _t2681 = _t2680+_t2678; _t2682 = 2.181000 * _t2677; _t2683 = 3.535000 * _t2674; _t2684 = _t2683+_t2682; _t2685 = _t2684 / _t2681; _t2675 = _t2685; } _t2671 = _t2675; } _t2686 = _t2658 * _t2658; _t2687 = 1.000001-_t2686; if (_t2687 >= 0.000000) { _t2688 = _t2687; } else { _t2690 = -_t2687; _t2688 = _t2690; } _t2691 = sqrt(_t2688); _t2692 = _t2691 / _t2658; if (_t2692 <= 0.000000) { _t2693 = 1.000000; } else { _t2695 = vertParams[234] * _t2692; _t2696 = (float)1.0 / (_t2695); if (_t2696 >= 1.600000) { _t2697 = 1.000000; } else { _t2699 = _t2696 * _t2696; _t2700 = 2.577000 * _t2699; _t2701 = 2.276000 * _t2696; _t2702 = 1.000000+_t2701; _t2703 = _t2702+_t2700; _t2704 = 2.181000 * _t2699; _t2705 = 3.535000 * _t2696; _t2706 = _t2705+_t2704; _t2707 = _t2706 / _t2703; _t2697 = _t2707; } _t2693 = _t2697; } _t2708 = _t2693 * _t2671; _t2709 = sqrt(_t2658); _t2710 = 0.200000 * _t2709; _t2711 = 1.200000-_t2710; _t2712 = vertParams[234] * _t2711; _t2713 = _t2614 * _t2614; _t2714 = _t2712 * _t2712; _t2715 = _t2615 * _t2615; _t2716 = _t2715 / _t2714; _t2717 = _t2712 * _t2712; _t2718 = _t2616 * _t2616; _t2719 = _t2718 / _t2717; _t2720 = _t2719+_t2716; _t2721 = _t2720 / _t2713; _t2722 = _t2713 * _t2713; _t2723 = 3.141593 * _t2712; _t2724 = _t2723 * _t2712; _t2725 = _t2724 * _t2722; _t2726 = -_t2721; _t2727 = exp(_t2726); _t2728 = _t2727 / _t2725; _t2729 = _t2614 * _t2728; _t2730 = sqrt(_t2661); _t2731 = 0.200000 * _t2730; _t2732 = 1.200000-_t2731; _t2733 = vertParams[234] * _t2732; _t2734 = _t2614 * _t2614; _t2735 = _t2733 * _t2733; _t2736 = _t2615 * _t2615; _t2737 = _t2736 / _t2735; _t2738 = _t2733 * _t2733; _t2739 = _t2616 * _t2616; _t2740 = _t2739 / _t2738; _t2741 = _t2740+_t2737; _t2742 = _t2741 / _t2734; _t2743 = _t2734 * _t2734; _t2744 = 3.141593 * _t2733; _t2745 = _t2744 * _t2733; _t2746 = _t2745 * _t2743; _t2747 = -_t2742; _t2748 = exp(_t2747); _t2749 = _t2748 / _t2746; _t2750 = _t2614 * _t2749; if (_t2556 > 0.000000) { _t2756 = 4.000000 * _t2554; _t2757 = _t2640 * _t2632; _t2758 = _t2757 * _t2708; _t2759 = _t2758 / _t2756; if (_t2759 >= 0.000000) { _t2760 = _t2759; } else { _t2762 = -_t2759; _t2760 = _t2762; } _t2763 = vertParams[226] * _t2760; _t2764 = vertParams[227] * _t2760; _t2765 = vertParams[228] * _t2760; _t2766 = 4.000000 * _t2593; _t2767 = _t2729 * _t2640; _t2768 = _t2767 / _t2766; if (_t2768 >= 0.000000) { _t2769 = _t2768; } else { _t2771 = -_t2768; _t2769 = _t2771; } _t2772 = 4.000000 * _t2592; _t2773 = _t2750 * _t2640; _t2774 = _t2773 / _t2772; if (_t2774 >= 0.000000) { _t2775 = _t2774; } else { _t2777 = -_t2774; _t2775 = _t2777; } _t2751 = _t2763; _t2752 = _t2764; _t2753 = _t2765; _t2754 = _t2769; _t2755 = _t2775; } else { _t2778 = _t2557 * _t2593; _t2779 = _t2592+_t2778; _t2780 = _t2559 * _t2592; _t2781 = _t2593+_t2780; _t2782 = (float)1.0 / (_t2557); _t2783 = _t2782 * _t2782; _t2784 = _t2779 * _t2779; _t2785 = _t2554 * _t2784; _t2786 = _t2557 * _t2557; _t2787 = 1.000000-_t2640; _t2788 = _t2787 * _t2632; _t2789 = _t2788 * _t2708; _t2790 = _t2789 * _t2786; _t2791 = _t2790 * _t2592; _t2792 = _t2791 * _t2593; _t2793 = _t2783 * _t2792; _t2794 = _t2793 / _t2785; if (_t2794 >= 0.000000) { _t2795 = _t2794; } else { _t2797 = -_t2794; _t2795 = _t2797; } _t2798 = vertParams[229] * _t2795; _t2799 = vertParams[230] * _t2795; _t2800 = vertParams[231] * _t2795; _t2801 = _t2779 * _t2779; _t2802 = _t2557 * _t2557; _t2803 = _t2802 * _t2593; _t2804 = 1.000000-_t2640; _t2805 = _t2729 * _t2804; _t2806 = _t2805 * _t2803; _t2807 = _t2806 / _t2801; if (_t2807 >= 0.000000) { _t2808 = _t2807; } else { _t2810 = -_t2807; _t2808 = _t2810; } _t2811 = _t2781 * _t2781; _t2812 = _t2559 * _t2559; _t2813 = _t2812 * _t2592; _t2814 = 1.000000-_t2640; _t2815 = _t2750 * _t2814; _t2816 = _t2815 * _t2813; _t2817 = _t2816 / _t2811; if (_t2817 >= 0.000000) { _t2818 = _t2817; } else { _t2820 = -_t2817; _t2818 = _t2820; } _t2751 = _t2798; _t2752 = _t2799; _t2753 = _t2800; _t2754 = _t2808; _t2755 = _t2818; } _t2484 = _t2751; _t2485 = _t2752; _t2486 = _t2753; _t2487 = _t2555; _t2488 = _t2754; _t2489 = _t2755; } else if (vertParams[225] == 0.000000) { _t2821 = _t1800 * _t1894 + _t1801 * _t1895 + _t1802 * _t1896; if (_t2821 > 0.000000) { _t2822 = _t1800; _t2823 = _t1801; _t2824 = _t1802; _t2825 = _t2821; } else { _t2827 = -_t1800; _t2828 = -_t1801; _t2829 = -_t1802; _t2830 = -_t2821; _t2822 = _t2827; _t2823 = _t2828; _t2824 = _t2829; _t2825 = _t2830; } _t2831 = _t2822 * _t2478 + _t2823 * _t2476 + _t2824 * _t2474; _t2832 = _t2831 * 0.318310; _t2833 = _t2825 * 0.318310; _t2834 = _t2832 * vertParams[226]; _t2835 = _t2832 * vertParams[227]; _t2836 = _t2832 * vertParams[228]; _t2484 = _t2834; _t2485 = _t2835; _t2486 = _t2836; _t2487 = _t2831; _t2488 = _t2832; _t2489 = _t2833; } else { _t2484 = 0.000000; _t2485 = 0.000000; _t2486 = 0.000000; _t2487 = 0.000000; _t2488 = 0.000000; _t2489 = 0.000000; } _t1915 = _t2478; _t1916 = _t2476; _t1917 = _t2474; _t1918 = _t2484; _t1919 = _t2485; _t1920 = _t2486; _t1921 = _t2487; _t1922 = _t2488; _t1923 = _t2489; _t1924 = _t2483; } if (vertParams[225] == 1.000000) { _t2846 = _t1800 * _t1915 + _t1801 * _t1916 + _t1802 * _t1917; if (_t2846 > 0.000000) { _t2847 = _t1800; _t2848 = _t1801; _t2849 = _t1802; _t2850 = _t2846; } else { _t2852 = -_t1800; _t2853 = -_t1801; _t2854 = -_t1802; _t2855 = -_t2846; _t2847 = _t2852; _t2848 = _t2853; _t2849 = _t2854; _t2850 = _t2855; } _t2856 = _t2847 * _t1894 + _t2848 * _t1895 + _t2849 * _t1896; if (vertParams[233] > 0.000000) { _t2862 = _t1915 * _t2847 + _t1916 * _t2848 + _t1917 * _t2849; _t2863 = 2.000000 * _t2862; _t2864 = _t2863 * _t2847; _t2865 = _t2864-_t1915; _t2866 = _t2863 * _t2848; _t2867 = _t2866-_t1916; _t2868 = _t2863 * _t2849; _t2869 = _t2868-_t1917; _t2870 = _t2865 * _t1894 + _t2867 * _t1895 + _t2869 * _t1896; _t2871 = pow(_t2870,vertParams[232]); _t2872 = _t2871 * 0.159155; if (_t2872 > 0.000000) { _t2878 = vertParams[232]+1.000000; _t2879 = vertParams[232]+2.000000; _t2880 = _t2879 * _t2872; _t2881 = vertParams[229] * _t2880; _t2882 = vertParams[230] * _t2880; _t2883 = vertParams[231] * _t2880; _t2884 = vertParams[233] * _t2878; _t2885 = _t2884 * _t2872; _t2873 = _t2881; _t2874 = _t2882; _t2875 = _t2883; _t2876 = _t2885; } else { _t2873 = 0.000000; _t2874 = 0.000000; _t2875 = 0.000000; _t2876 = 0.000000; } _t2857 = _t2873; _t2858 = _t2874; _t2859 = _t2875; _t2860 = _t2876; } else { _t2857 = 0.000000; _t2858 = 0.000000; _t2859 = 0.000000; _t2860 = 0.000000; } if (vertParams[233] < 1.000000) { _t2892 = vertParams[226] * 0.318310; _t2893 = vertParams[227] * 0.318310; _t2894 = vertParams[228] * 0.318310; _t2895 = 1.000000-vertParams[233]; _t2896 = _t2895 * 0.318310; _t2897 = _t2896 * _t2856; _t2898 = _t2896 * _t2850; _t2886 = _t2892; _t2887 = _t2893; _t2888 = _t2894; _t2889 = _t2897; _t2890 = _t2898; } else { _t2886 = 0.000000; _t2887 = 0.000000; _t2888 = 0.000000; _t2889 = 0.000000; _t2890 = 0.000000; } _t2899 = _t2857+_t2886; _t2900 = _t2858+_t2887; _t2901 = _t2859+_t2888; _t2902 = _t2860+_t2889; _t2903 = _t2860+_t2890; _t2904 = _t2899 * _t2856; _t2905 = _t2900 * _t2856; _t2906 = _t2901 * _t2856; _t2837 = _t2904; _t2838 = _t2905; _t2839 = _t2906; _t2840 = _t2856; _t2841 = _t2902; _t2842 = _t2903; } else if (vertParams[225] == 2.000000) { _t2907 = _t1915 * _t1800 + _t1916 * _t1801 + _t1917 * _t1802; _t2908 = _t1894 * _t1800 + _t1895 * _t1801 + _t1896 * _t1802; _t2909 = _t2907 * _t2908; if (_t2907 > 0.000000) { _t2910 = vertParams[232]; } else { _t2910 = vertParams[233]; } if (_t2908 > 0.000000) { _t2912 = vertParams[232]; } else { _t2912 = vertParams[233]; } if (_t2909 > 0.000000) { _t2918 = _t1915+_t1894; _t2919 = _t1916+_t1895; _t2920 = _t1917+_t1896; _t2921 = sqrt(_t2918*_t2918+_t2919*_t2919+_t2920*_t2920); _t2922 = (float)1.0 / (_t2921); _t2923 = _t2918 * _t2922; _t2924 = _t2919 * _t2922; _t2925 = _t2920 * _t2922; _t2914 = _t2923; _t2915 = _t2924; _t2916 = _t2925; } else { _t2926 = _t1894 * _t2910; _t2927 = _t1915+_t2926; _t2928 = _t1895 * _t2910; _t2929 = _t1916+_t2928; _t2930 = _t1896 * _t2910; _t2931 = _t1917+_t2930; _t2932 = sqrt(_t2927*_t2927+_t2929*_t2929+_t2931*_t2931); _t2933 = (float)1.0 / (_t2932); _t2934 = _t2927 * _t2933; _t2935 = _t2929 * _t2933; _t2936 = _t2931 * _t2933; _t2914 = _t2934; _t2915 = _t2935; _t2916 = _t2936; } _t2937 = _t2914 * _t1800 + _t2915 * _t1801 + _t2916 * _t1802; if (_t2937 < 0.000000) { _t2942 = -_t2914; _t2943 = -_t2915; _t2944 = -_t2916; _t2938 = _t2942; _t2939 = _t2943; _t2940 = _t2944; } else { _t2938 = _t2914; _t2939 = _t2915; _t2940 = _t2916; } _t2945 = _t1915 * _t2938 + _t1916 * _t2939 + _t1917 * _t2940; _t2946 = _t1894 * _t2938 + _t1895 * _t2939 + _t1896 * _t2940; if (_t1802 < -0.999999) { _t2947 = 0.000000; _t2948 = -1.000000; _t2949 = 0.000000; _t2950 = -1.000000; _t2951 = 0.000000; _t2952 = 0.000000; } else { _t2954 = 1.000000+_t1802; _t2955 = (float)1.0 / (_t2954); _t2956 = -_t1800; _t2957 = _t2956 * _t1801; _t2958 = _t2957 * _t2955; _t2959 = -_t1800; _t2960 = _t1800 * _t1800; _t2961 = _t2960 * _t2955; _t2962 = 1.000000-_t2961; _t2963 = -_t1801; _t2964 = _t1801 * _t1801; _t2965 = _t2964 * _t2955; _t2966 = 1.000000-_t2965; _t2947 = _t2962; _t2948 = _t2958; _t2949 = _t2959; _t2950 = _t2958; _t2951 = _t2966; _t2952 = _t2963; } _t2967 = _t1800 * _t2938 + _t1801 * _t2939 + _t1802 * _t2940; _t2968 = _t2950 * _t2938 + _t2951 * _t2939 + _t2952 * _t2940; _t2969 = _t2947 * _t2938 + _t2948 * _t2939 + _t2949 * _t2940; _t2970 = _t2967 * _t2967; _t2971 = vertParams[234] * vertParams[234]; _t2972 = _t2968 * _t2968; _t2973 = _t2972 / _t2971; _t2974 = vertParams[234] * vertParams[234]; _t2975 = _t2969 * _t2969; _t2976 = _t2975 / _t2974; _t2977 = _t2976+_t2973; _t2978 = _t2977 / _t2970; _t2979 = _t2970 * _t2970; _t2980 = 3.141593 * vertParams[234]; _t2981 = _t2980 * vertParams[234]; _t2982 = _t2981 * _t2979; _t2983 = -_t2978; _t2984 = exp(_t2983); _t2985 = _t2984 / _t2982; if (_t2945 > 0.000000) { _t2986 = vertParams[233]; } else { _t2986 = vertParams[232]; } _t2988 = _t2986 * _t2986; _t2989 = _t2945 * _t2945; _t2990 = 1.000000-_t2989; _t2991 = _t2990 * _t2988; _t2992 = 1.000000-_t2991; if (_t2992 <= 0.000000) { _t2993 = 1.000000; } else { if (_t2945 >= 0.000000) { _t2995 = _t2945; } else { _t2997 = -_t2945; _t2995 = _t2997; } _t2998 = sqrt(_t2992); _t2999 = vertParams[232] * _t2998; _t3000 = vertParams[232] * _t2995; _t3001 = _t2995+_t2999; _t3002 = _t2995-_t2999; _t3003 = _t3002 / _t3001; _t3004 = _t3000+_t2998; _t3005 = _t3000-_t2998; _t3006 = _t3005 / _t3004; _t3007 = _t3006 * _t3006; _t3008 = _t3003 * _t3003; _t3009 = _t3008+_t3007; _t3010 = 0.500000 * _t3009; _t2993 = _t3010; } if (_t2907 >= 0.000000) { _t3011 = _t2907; } else { _t3013 = -_t2907; _t3011 = _t3013; } if (_t2908 >= 0.000000) { _t3014 = _t2908; } else { _t3016 = -_t2908; _t3014 = _t3016; } _t3017 = _t3014 * _t3014; _t3018 = 1.000001-_t3017; if (_t3018 >= 0.000000) { _t3019 = _t3018; } else { _t3021 = -_t3018; _t3019 = _t3021; } _t3022 = sqrt(_t3019); _t3023 = _t3022 / _t3014; if (_t3023 <= 0.000000) { _t3024 = 1.000000; } else { _t3026 = vertParams[234] * _t3023; _t3027 = (float)1.0 / (_t3026); if (_t3027 >= 1.600000) { _t3028 = 1.000000; } else { _t3030 = _t3027 * _t3027; _t3031 = 2.577000 * _t3030; _t3032 = 2.276000 * _t3027; _t3033 = 1.000000+_t3032; _t3034 = _t3033+_t3031; _t3035 = 2.181000 * _t3030; _t3036 = 3.535000 * _t3027; _t3037 = _t3036+_t3035; _t3038 = _t3037 / _t3034; _t3028 = _t3038; } _t3024 = _t3028; } _t3039 = _t3011 * _t3011; _t3040 = 1.000001-_t3039; if (_t3040 >= 0.000000) { _t3041 = _t3040; } else { _t3043 = -_t3040; _t3041 = _t3043; } _t3044 = sqrt(_t3041); _t3045 = _t3044 / _t3011; if (_t3045 <= 0.000000) { _t3046 = 1.000000; } else { _t3048 = vertParams[234] * _t3045; _t3049 = (float)1.0 / (_t3048); if (_t3049 >= 1.600000) { _t3050 = 1.000000; } else { _t3052 = _t3049 * _t3049; _t3053 = 2.577000 * _t3052; _t3054 = 2.276000 * _t3049; _t3055 = 1.000000+_t3054; _t3056 = _t3055+_t3053; _t3057 = 2.181000 * _t3052; _t3058 = 3.535000 * _t3049; _t3059 = _t3058+_t3057; _t3060 = _t3059 / _t3056; _t3050 = _t3060; } _t3046 = _t3050; } _t3061 = _t3046 * _t3024; _t3062 = sqrt(_t3011); _t3063 = 0.200000 * _t3062; _t3064 = 1.200000-_t3063; _t3065 = vertParams[234] * _t3064; _t3066 = _t2967 * _t2967; _t3067 = _t3065 * _t3065; _t3068 = _t2968 * _t2968; _t3069 = _t3068 / _t3067; _t3070 = _t3065 * _t3065; _t3071 = _t2969 * _t2969; _t3072 = _t3071 / _t3070; _t3073 = _t3072+_t3069; _t3074 = _t3073 / _t3066; _t3075 = _t3066 * _t3066; _t3076 = 3.141593 * _t3065; _t3077 = _t3076 * _t3065; _t3078 = _t3077 * _t3075; _t3079 = -_t3074; _t3080 = exp(_t3079); _t3081 = _t3080 / _t3078; _t3082 = _t2967 * _t3081; _t3083 = sqrt(_t3014); _t3084 = 0.200000 * _t3083; _t3085 = 1.200000-_t3084; _t3086 = vertParams[234] * _t3085; _t3087 = _t2967 * _t2967; _t3088 = _t3086 * _t3086; _t3089 = _t2968 * _t2968; _t3090 = _t3089 / _t3088; _t3091 = _t3086 * _t3086; _t3092 = _t2969 * _t2969; _t3093 = _t3092 / _t3091; _t3094 = _t3093+_t3090; _t3095 = _t3094 / _t3087; _t3096 = _t3087 * _t3087; _t3097 = 3.141593 * _t3086; _t3098 = _t3097 * _t3086; _t3099 = _t3098 * _t3096; _t3100 = -_t3095; _t3101 = exp(_t3100); _t3102 = _t3101 / _t3099; _t3103 = _t2967 * _t3102; if (_t2909 > 0.000000) { _t3109 = 4.000000 * _t2907; _t3110 = _t2993 * _t2985; _t3111 = _t3110 * _t3061; _t3112 = _t3111 / _t3109; if (_t3112 >= 0.000000) { _t3113 = _t3112; } else { _t3115 = -_t3112; _t3113 = _t3115; } _t3116 = vertParams[226] * _t3113; _t3117 = vertParams[227] * _t3113; _t3118 = vertParams[228] * _t3113; _t3119 = 4.000000 * _t2946; _t3120 = _t3082 * _t2993; _t3121 = _t3120 / _t3119; if (_t3121 >= 0.000000) { _t3122 = _t3121; } else { _t3124 = -_t3121; _t3122 = _t3124; } _t3125 = 4.000000 * _t2945; _t3126 = _t3103 * _t2993; _t3127 = _t3126 / _t3125; if (_t3127 >= 0.000000) { _t3128 = _t3127; } else { _t3130 = -_t3127; _t3128 = _t3130; } _t3104 = _t3116; _t3105 = _t3117; _t3106 = _t3118; _t3107 = _t3122; _t3108 = _t3128; } else { _t3131 = _t2910 * _t2946; _t3132 = _t2945+_t3131; _t3133 = _t2912 * _t2945; _t3134 = _t2946+_t3133; _t3135 = _t3132 * _t3132; _t3136 = _t2907 * _t3135; _t3137 = _t2910 * _t2910; _t3138 = 1.000000-_t2993; _t3139 = _t3138 * _t2985; _t3140 = _t3139 * _t3061; _t3141 = _t3140 * _t3137; _t3142 = _t3141 * _t2945; _t3143 = _t3142 * _t2946; _t3144 = _t3143 / _t3136; if (_t3144 >= 0.000000) { _t3145 = _t3144; } else { _t3147 = -_t3144; _t3145 = _t3147; } _t3148 = vertParams[229] * _t3145; _t3149 = vertParams[230] * _t3145; _t3150 = vertParams[231] * _t3145; _t3151 = _t3132 * _t3132; _t3152 = _t2910 * _t2910; _t3153 = _t3152 * _t2946; _t3154 = 1.000000-_t2993; _t3155 = _t3082 * _t3154; _t3156 = _t3155 * _t3153; _t3157 = _t3156 / _t3151; if (_t3157 >= 0.000000) { _t3158 = _t3157; } else { _t3160 = -_t3157; _t3158 = _t3160; } _t3161 = _t3134 * _t3134; _t3162 = _t2912 * _t2912; _t3163 = _t3162 * _t2945; _t3164 = 1.000000-_t2993; _t3165 = _t3103 * _t3164; _t3166 = _t3165 * _t3163; _t3167 = _t3166 / _t3161; if (_t3167 >= 0.000000) { _t3168 = _t3167; } else { _t3170 = -_t3167; _t3168 = _t3170; } _t3104 = _t3148; _t3105 = _t3149; _t3106 = _t3150; _t3107 = _t3158; _t3108 = _t3168; } _t2837 = _t3104; _t2838 = _t3105; _t2839 = _t3106; _t2840 = _t2908; _t2841 = _t3107; _t2842 = _t3108; } else if (vertParams[225] == 0.000000) { _t3171 = _t1800 * _t1915 + _t1801 * _t1916 + _t1802 * _t1917; if (_t3171 > 0.000000) { _t3172 = _t1800; _t3173 = _t1801; _t3174 = _t1802; _t3175 = _t3171; } else { _t3177 = -_t1800; _t3178 = -_t1801; _t3179 = -_t1802; _t3180 = -_t3171; _t3172 = _t3177; _t3173 = _t3178; _t3174 = _t3179; _t3175 = _t3180; } _t3181 = _t3172 * _t1894 + _t3173 * _t1895 + _t3174 * _t1896; _t3182 = _t3181 * 0.318310; _t3183 = _t3175 * 0.318310; _t3184 = _t3182 * vertParams[226]; _t3185 = _t3182 * vertParams[227]; _t3186 = _t3182 * vertParams[228]; _t2837 = _t3184; _t2838 = _t3185; _t2839 = _t3186; _t2840 = _t3181; _t2841 = _t3182; _t2842 = _t3183; } else { _t2837 = 0.000000; _t2838 = 0.000000; _t2839 = 0.000000; _t2840 = 0.000000; _t2841 = 0.000000; _t2842 = 0.000000; } _t3187 = _t1800 * _t1915 + _t1801 * _t1916 + _t1802 * _t1917; _t3188 = _t1800 * _t1894 + _t1801 * _t1895 + _t1802 * _t1896; _t3189 = _t1797 * _t1915 + _t1798 * _t1916 + _t1799 * _t1917; _t3190 = _t1797 * _t1894 + _t1798 * _t1895 + _t1799 * _t1896; _t3191 = _t3189 * _t3188; _t3192 = _t3190 * _t3187; _t3193 = _t3192 / _t3191; if (_t3193 >= 0.000000) { _t3194 = _t3193; } else { _t3196 = -_t3193; _t3194 = _t3196; } _t3197 = _t2837 * _t3194; _t3198 = _t2838 * _t3194; _t3199 = _t2839 * _t3194; _t3200 = _t1918 * _t1924; _t3201 = _t1919 * _t1924; _t3202 = _t1920 * _t1924; _t3203 = _t1923 * _t1923; _t3204 = _t1914 * _t3203; _t3205 = _t3204+_t1913; _t3206 = _t1921 / _t1922; _t3207 = _t3206 * _t3206; _t3208 = _t3207 * _t3205; _t3209 = (float)1.0 / (_t1922); _t3210 = _t3209 * _t3209; _t3211 = _t1791 * _t3200; _t3212 = _t1792 * _t3201; _t3213 = _t1793 * _t3202; _t3214 = _t3211 * vertParams[235]; _t3215 = _t3212 * vertParams[235]; _t3216 = _t3213 * vertParams[235]; if (vertParams[236] == 0.000000) { _t3229 = vertParams[242] * vertParams[244]; _t3230 = vertParams[241] * vertParams[245]; _t3231 = _t3230-_t3229; _t3232 = vertParams[241] * vertParams[246]; _t3233 = vertParams[243] * vertParams[244]; _t3234 = _t3233-_t3232; _t3235 = vertParams[243] * vertParams[245]; _t3236 = vertParams[242] * vertParams[246]; _t3237 = _t3236-_t3235; _t3238 = sqrt(_t3237*_t3237+_t3234*_t3234+_t3231*_t3231); _t3239 = (float)1.0 / (_t3238); _t3240 = _t3237 * _t3239; _t3241 = _t3234 * _t3239; _t3242 = _t3231 * _t3239; _t3243 = _t1916 * vertParams[244]; _t3244 = _t1915 * vertParams[245]; _t3245 = _t3244-_t3243; _t3246 = _t1915 * vertParams[246]; _t3247 = _t1917 * vertParams[244]; _t3248 = _t3247-_t3246; _t3249 = _t1917 * vertParams[245]; _t3250 = _t1916 * vertParams[246]; _t3251 = _t3250-_t3249; _t3252 = _t3251 * vertParams[241] + _t3248 * vertParams[242] + _t3245 * vertParams[243]; _t3253 = (float)1.0 / (_t3252); _t3254 = _t1794-vertParams[238]; _t3255 = _t1795-vertParams[239]; _t3256 = _t1796-vertParams[240]; _t3257 = _t3254 * _t3251 + _t3255 * _t3248 + _t3256 * _t3245; _t3258 = _t3257 * _t3253; _t3259 = _t3255 * vertParams[241]; _t3260 = _t3254 * vertParams[242]; _t3261 = _t3260-_t3259; _t3262 = _t3254 * vertParams[243]; _t3263 = _t3256 * vertParams[241]; _t3264 = _t3263-_t3262; _t3265 = _t3256 * vertParams[242]; _t3266 = _t3255 * vertParams[243]; _t3267 = _t3266-_t3265; _t3268 = _t1915 * _t3267 + _t1916 * _t3264 + _t1917 * _t3261; _t3269 = _t3268 * _t3253; _t3270 = vertParams[244] * _t3267 + vertParams[245] * _t3264 + vertParams[246] * _t3261; _t3271 = _t3270 * _t3253; _t3272 = 1.000000-_t3258; _t3273 = _t3272-_t3269; _t3274 = _t3271 * _t1915; _t3275 = _t1794+_t3274; _t3276 = _t3271 * _t1916; _t3277 = _t1795+_t3276; _t3278 = _t3271 * _t1917; _t3279 = _t1796+_t3278; _t3280 = _t3269 * vertParams[253]; _t3281 = _t3258 * vertParams[250]; _t3282 = _t3273 * vertParams[247]; _t3283 = _t3282+_t3281; _t3284 = _t3283+_t3280; _t3285 = _t3269 * vertParams[254]; _t3286 = _t3258 * vertParams[251]; _t3287 = _t3273 * vertParams[248]; _t3288 = _t3287+_t3286; _t3289 = _t3288+_t3285; _t3290 = _t3269 * vertParams[255]; _t3291 = _t3258 * vertParams[252]; _t3292 = _t3273 * vertParams[249]; _t3293 = _t3292+_t3291; _t3294 = _t3293+_t3290; _t3295 = sqrt(_t3284*_t3284+_t3289*_t3289+_t3294*_t3294); _t3296 = (float)1.0 / (_t3295); _t3297 = _t3284 * _t3296; _t3298 = _t3289 * _t3296; _t3299 = _t3294 * _t3296; if (vertParams[274] == 0.000000) { _t3300 = _t3258; _t3301 = _t3269; } else { _t3303 = _t3269 * vertParams[279]; _t3304 = _t3258 * vertParams[277]; _t3305 = 1.000000-_t3258; _t3306 = _t3305-_t3269; _t3307 = _t3306 * vertParams[275]; _t3308 = _t3307+_t3304; _t3309 = _t3308+_t3303; _t3310 = _t3269 * vertParams[280]; _t3311 = _t3258 * vertParams[278]; _t3312 = 1.000000-_t3258; _t3313 = _t3312-_t3269; _t3314 = _t3313 * vertParams[276]; _t3315 = _t3314+_t3311; _t3316 = _t3315+_t3310; _t3300 = _t3309; _t3301 = _t3316; } _t3217 = _t3275; _t3218 = _t3277; _t3219 = _t3279; _t3220 = _t3240; _t3221 = _t3241; _t3222 = _t3242; _t3223 = _t3297; _t3224 = _t3298; _t3225 = _t3299; _t3226 = _t3300; _t3227 = _t3301; } else { _t3217 = 0.000000; _t3218 = 0.000000; _t3219 = 0.000000; _t3220 = 0.000000; _t3221 = 0.000000; _t3222 = 0.000000; _t3223 = 0.000000; _t3224 = 0.000000; _t3225 = 0.000000; _t3226 = 0.000000; _t3227 = 0.000000; } _t3317 = -_t1915; _t3318 = -_t1916; _t3319 = -_t1917; _t3320 = _t1796-_t3219; _t3321 = _t3320 * _t3320; _t3322 = _t1795-_t3218; _t3323 = _t3322 * _t3322; _t3324 = _t1794-_t3217; _t3325 = _t3324 * _t3324; _t3326 = _t3325+_t3323; _t3327 = _t3326+_t3321; _t3328 = _t3327 * _t3327; _t3329 = _t3210 * _t3328; _t3330 = _t1915 * _t3223 + _t1916 * _t3224 + _t1917 * _t3225; if (_t3330 >= 0.000000) { _t3331 = _t3330; } else { _t3333 = -_t3330; _t3331 = _t3333; } _t3334 = _t3331 * _t3331; _t3335 = (float)1.0 / (_t3334); _t3336 = _t3329 * _t3335; _t3337 = _t3208 * _t3335; if (vertParams[283] == 0.000000) { if (vertParams[284] == 1.000000) { _t3361 = _t3223 * _t3317 + _t3224 * _t3318 + _t3225 * _t3319; if (_t3361 > 0.000000) { _t3362 = _t3223; _t3363 = _t3224; _t3364 = _t3225; _t3365 = _t3361; } else { _t3367 = -_t3223; _t3368 = -_t3224; _t3369 = -_t3225; _t3370 = -_t3361; _t3362 = _t3367; _t3363 = _t3368; _t3364 = _t3369; _t3365 = _t3370; } _t3371 = _t3317 * _t3362 + _t3318 * _t3363 + _t3319 * _t3364; _t3372 = 2.000000 * _t3371; _t3373 = _t3372 * _t3362; _t3374 = _t3373-_t3317; _t3375 = _t3372 * _t3363; _t3376 = _t3375-_t3318; _t3377 = _t3372 * _t3364; _t3378 = _t3377-_t3319; if (vertParams[282] > vertParams[292]) { _t3384 = 6.283185 * primary[11]; _t3385 = 1.000000-primary[12]; if (_t3385 >= 0.000001) { _t3386 = _t3385; } else { _t3386 = 0.000001; } _t3388 = sqrt(_t3386); if (primary[12] >= 0.000001) { _t3389 = primary[12]; } else { _t3389 = 0.000001; } _t3391 = sqrt(_t3389); _t3392 = sin(_t3384); _t3393 = _t3392 * _t3388; _t3394 = cos(_t3384); _t3395 = _t3394 * _t3388; if (_t3364 < -0.999999) { _t3396 = 0.000000; _t3397 = -1.000000; _t3398 = 0.000000; _t3399 = -1.000000; _t3400 = 0.000000; _t3401 = 0.000000; } else { _t3403 = 1.000000+_t3364; _t3404 = (float)1.0 / (_t3403); _t3405 = -_t3362; _t3406 = _t3405 * _t3363; _t3407 = _t3406 * _t3404; _t3408 = -_t3362; _t3409 = _t3362 * _t3362; _t3410 = _t3409 * _t3404; _t3411 = 1.000000-_t3410; _t3412 = -_t3363; _t3413 = _t3363 * _t3363; _t3414 = _t3413 * _t3404; _t3415 = 1.000000-_t3414; _t3396 = _t3411; _t3397 = _t3407; _t3398 = _t3408; _t3399 = _t3407; _t3400 = _t3415; _t3401 = _t3412; } _t3416 = _t3391 * _t3362; _t3417 = _t3393 * _t3399; _t3418 = _t3395 * _t3396; _t3419 = _t3418+_t3417; _t3420 = _t3419+_t3416; _t3421 = _t3391 * _t3363; _t3422 = _t3393 * _t3400; _t3423 = _t3395 * _t3397; _t3424 = _t3423+_t3422; _t3425 = _t3424+_t3421; _t3426 = _t3391 * _t3364; _t3427 = _t3393 * _t3401; _t3428 = _t3395 * _t3398; _t3429 = _t3428+_t3427; _t3430 = _t3429+_t3426; _t3431 = 1.000000-vertParams[292]; _t3379 = _t3420; _t3380 = _t3425; _t3381 = _t3430; _t3382 = _t3431; } else { _t3432 = vertParams[291]+1.000000; _t3433 = (float)1.0 / (_t3432); _t3434 = pow(primary[12],_t3433); _t3435 = _t3434 * _t3434; _t3436 = 1.000000-_t3435; if (_t3436 >= 0.000001) { _t3437 = _t3436; } else { _t3437 = 0.000001; } _t3439 = sqrt(_t3437); _t3440 = 6.283185 * primary[11]; _t3441 = sin(_t3440); _t3442 = _t3439 * _t3441; _t3443 = cos(_t3440); _t3444 = _t3439 * _t3443; if (_t3378 < -0.999999) { _t3445 = 0.000000; _t3446 = -1.000000; _t3447 = 0.000000; _t3448 = -1.000000; _t3449 = 0.000000; _t3450 = 0.000000; } else { _t3452 = 1.000000+_t3378; _t3453 = (float)1.0 / (_t3452); _t3454 = -_t3374; _t3455 = _t3454 * _t3376; _t3456 = _t3455 * _t3453; _t3457 = -_t3374; _t3458 = _t3374 * _t3374; _t3459 = _t3458 * _t3453; _t3460 = 1.000000-_t3459; _t3461 = -_t3376; _t3462 = _t3376 * _t3376; _t3463 = _t3462 * _t3453; _t3464 = 1.000000-_t3463; _t3445 = _t3460; _t3446 = _t3456; _t3447 = _t3457; _t3448 = _t3456; _t3449 = _t3464; _t3450 = _t3461; } _t3465 = _t3434 * _t3374; _t3466 = _t3442 * _t3448; _t3467 = _t3444 * _t3445; _t3468 = _t3467+_t3466; _t3469 = _t3468+_t3465; _t3470 = _t3434 * _t3376; _t3471 = _t3442 * _t3449; _t3472 = _t3444 * _t3446; _t3473 = _t3472+_t3471; _t3474 = _t3473+_t3470; _t3475 = _t3434 * _t3378; _t3476 = _t3442 * _t3450; _t3477 = _t3444 * _t3447; _t3478 = _t3477+_t3476; _t3479 = _t3478+_t3475; _t3379 = _t3469; _t3380 = _t3474; _t3381 = _t3479; _t3382 = vertParams[292]; } _t3480 = _t3362 * _t3379 + _t3363 * _t3380 + _t3364 * _t3381; if (vertParams[292] > 0.000000) { _t3486 = _t3374 * _t3379 + _t3376 * _t3380 + _t3378 * _t3381; _t3487 = pow(_t3486,vertParams[291]); _t3488 = _t3487 * 0.159155; if (_t3488 > 0.000000) { _t3494 = vertParams[291]+1.000000; _t3495 = vertParams[291]+2.000000; _t3496 = _t3495 * _t3488; _t3497 = vertParams[288] * _t3496; _t3498 = vertParams[289] * _t3496; _t3499 = vertParams[290] * _t3496; _t3500 = vertParams[292] * _t3494; _t3501 = _t3500 * _t3488; _t3489 = _t3497; _t3490 = _t3498; _t3491 = _t3499; _t3492 = _t3501; } else { _t3489 = 0.000000; _t3490 = 0.000000; _t3491 = 0.000000; _t3492 = 0.000000; } _t3481 = _t3489; _t3482 = _t3490; _t3483 = _t3491; _t3484 = _t3492; } else { _t3481 = 0.000000; _t3482 = 0.000000; _t3483 = 0.000000; _t3484 = 0.000000; } if (vertParams[292] < 1.000000) { _t3508 = vertParams[285] * 0.318310; _t3509 = vertParams[286] * 0.318310; _t3510 = vertParams[287] * 0.318310; _t3511 = 1.000000-vertParams[292]; _t3512 = _t3511 * 0.318310; _t3513 = _t3512 * _t3480; _t3514 = _t3512 * _t3365; _t3502 = _t3508; _t3503 = _t3509; _t3504 = _t3510; _t3505 = _t3513; _t3506 = _t3514; } else { _t3502 = 0.000000; _t3503 = 0.000000; _t3504 = 0.000000; _t3505 = 0.000000; _t3506 = 0.000000; } _t3515 = _t3481+_t3502; _t3516 = _t3482+_t3503; _t3517 = _t3483+_t3504; _t3518 = _t3484+_t3505; _t3519 = _t3484+_t3506; _t3520 = _t3515 * _t3480; _t3521 = _t3516 * _t3480; _t3522 = _t3517 * _t3480; _t3523 = (float)1.0 / (_t3518); _t3524 = _t3520 * _t3523; _t3525 = _t3521 * _t3523; _t3526 = _t3522 * _t3523; _t3349 = _t3379; _t3350 = _t3380; _t3351 = _t3381; _t3352 = _t3524; _t3353 = _t3525; _t3354 = _t3526; _t3355 = _t3480; _t3356 = _t3518; _t3357 = _t3519; } else if (vertParams[284] == 2.000000) { _t3527 = _t3317 * _t3223 + _t3318 * _t3224 + _t3319 * _t3225; if (_t3527 >= 0.000000) { _t3528 = _t3527; } else { _t3530 = -_t3527; _t3528 = _t3530; } _t3531 = sqrt(_t3528); _t3532 = 0.200000 * _t3531; _t3533 = 1.200000-_t3532; _t3534 = vertParams[293] * _t3533; _t3535 = 6.283185 * primary[12]; _t3536 = sin(_t3535); _t3537 = cos(_t3535); _t3538 = _t3534 * _t3534; _t3539 = 1.000000-primary[11]; if (_t3539 >= 0.000001) { _t3540 = _t3539; } else { _t3540 = 0.000001; } _t3542 = log(_t3540); _t3543 = -_t3542; _t3544 = _t3538 * _t3543; _t3545 = 1.000000+_t3544; _t3546 = sqrt(_t3545); _t3547 = (float)1.0 / (_t3546); _t3548 = _t3547 * _t3547; _t3549 = 3.141593 * _t3538; _t3550 = _t3549 * _t3547; _t3551 = _t3550 * _t3548; _t3552 = 1.000000-primary[11]; _t3553 = _t3552 / _t3551; _t3554 = 1.000000-_t3548; if (_t3554 >= 0.000001) { _t3555 = _t3554; } else { _t3555 = 0.000001; } _t3557 = sqrt(_t3555); _t3558 = _t3557 * _t3536; _t3559 = _t3557 * _t3537; if (_t3225 < -0.999999) { _t3560 = 0.000000; _t3561 = -1.000000; _t3562 = 0.000000; _t3563 = -1.000000; _t3564 = 0.000000; _t3565 = 0.000000; } else { _t3567 = 1.000000+_t3225; _t3568 = (float)1.0 / (_t3567); _t3569 = -_t3223; _t3570 = _t3569 * _t3224; _t3571 = _t3570 * _t3568; _t3572 = -_t3223; _t3573 = _t3223 * _t3223; _t3574 = _t3573 * _t3568; _t3575 = 1.000000-_t3574; _t3576 = -_t3224; _t3577 = _t3224 * _t3224; _t3578 = _t3577 * _t3568; _t3579 = 1.000000-_t3578; _t3560 = _t3575; _t3561 = _t3571; _t3562 = _t3572; _t3563 = _t3571; _t3564 = _t3579; _t3565 = _t3576; } _t3580 = _t3547 * _t3223; _t3581 = _t3558 * _t3563; _t3582 = _t3559 * _t3560; _t3583 = _t3582+_t3581; _t3584 = _t3583+_t3580; _t3585 = _t3547 * _t3224; _t3586 = _t3558 * _t3564; _t3587 = _t3559 * _t3561; _t3588 = _t3587+_t3586; _t3589 = _t3588+_t3585; _t3590 = _t3547 * _t3225; _t3591 = _t3558 * _t3565; _t3592 = _t3559 * _t3562; _t3593 = _t3592+_t3591; _t3594 = _t3593+_t3590; _t3595 = _t3317 * _t3584 + _t3318 * _t3589 + _t3319 * _t3594; if (_t3595 > 0.000000) { _t3596 = vertParams[292]; } else { _t3596 = vertParams[291]; } _t3598 = _t3596 * _t3596; _t3599 = _t3595 * _t3595; _t3600 = 1.000000-_t3599; _t3601 = _t3600 * _t3598; _t3602 = 1.000000-_t3601; if (_t3602 <= 0.000000) { _t3603 = 0.000000; _t3604 = 1.000000; } else { if (_t3595 >= 0.000000) { _t3606 = _t3595; } else { _t3608 = -_t3595; _t3606 = _t3608; } _t3609 = sqrt(_t3602); _t3610 = vertParams[291] * _t3609; _t3611 = vertParams[291] * _t3606; _t3612 = _t3606+_t3610; _t3613 = _t3606-_t3610; _t3614 = _t3613 / _t3612; _t3615 = _t3611+_t3609; _t3616 = _t3611-_t3609; _t3617 = _t3616 / _t3615; _t3618 = -_t3609; if (_t3595 > 0.000000) { _t3619 = _t3618; } else { _t3619 = _t3609; } _t3621 = _t3617 * _t3617; _t3622 = _t3614 * _t3614; _t3623 = _t3622+_t3621; _t3624 = 0.500000 * _t3623; _t3603 = _t3619; _t3604 = _t3624; } if (vertParams[282] <= _t3604) { _t3635 = _t3317 * _t3584 + _t3318 * _t3589 + _t3319 * _t3594; _t3636 = 2.000000 * _t3635; _t3637 = _t3636 * _t3584; _t3638 = _t3637-_t3317; _t3639 = _t3636 * _t3589; _t3640 = _t3639-_t3318; _t3641 = _t3636 * _t3594; _t3642 = _t3641-_t3319; _t3643 = _t3638 * _t3584 + _t3640 * _t3589 + _t3642 * _t3594; _t3644 = 4.000000 * _t3643; _t3645 = _t3553 * _t3604; _t3646 = _t3645 / _t3644; if (_t3646 >= 0.000000) { _t3647 = _t3646; } else { _t3649 = -_t3646; _t3647 = _t3649; } _t3650 = 4.000000 * _t3595; _t3651 = (float)1.0 / (_t3650); _t3652 = _t3638 * _t3223 + _t3640 * _t3224 + _t3642 * _t3225; if (_t3652 >= 0.000000) { _t3653 = _t3652; } else { _t3655 = -_t3652; _t3653 = _t3655; } _t3656 = sqrt(_t3653); _t3657 = 0.200000 * _t3656; _t3658 = 1.200000-_t3657; _t3659 = vertParams[293] * _t3658; _t3660 = _t3547 * _t3547; _t3661 = _t3659 * _t3659; _t3662 = _t3558 * _t3558; _t3663 = _t3662 / _t3661; _t3664 = _t3659 * _t3659; _t3665 = _t3559 * _t3559; _t3666 = _t3665 / _t3664; _t3667 = _t3666+_t3663; _t3668 = _t3667 / _t3660; _t3669 = _t3660 * _t3660; _t3670 = 3.141593 * _t3659; _t3671 = _t3670 * _t3659; _t3672 = _t3671 * _t3669; _t3673 = -_t3668; _t3674 = exp(_t3673); _t3675 = _t3674 / _t3672; _t3676 = _t3604 * _t3675; _t3677 = _t3676 * _t3547; _t3678 = _t3677 * _t3651; if (_t3678 >= 0.000000) { _t3679 = _t3678; } else { _t3681 = -_t3678; _t3679 = _t3681; } _t3625 = _t3638; _t3626 = _t3640; _t3627 = _t3642; _t3628 = vertParams[285]; _t3629 = vertParams[286]; _t3630 = vertParams[287]; _t3631 = _t3652; _t3632 = _t3647; _t3633 = _t3679; } else { if (_t3603 < 0.000000) { _t3682 = vertParams[292]; } else { _t3682 = vertParams[291]; } _t3684 = _t3317 * _t3584 + _t3318 * _t3589 + _t3319 * _t3594; _t3685 = _t3684 * _t3682; _t3686 = _t3685+_t3603; _t3687 = _t3317 * _t3682; _t3688 = _t3584 * _t3686; _t3689 = _t3688-_t3687; _t3690 = _t3318 * _t3682; _t3691 = _t3589 * _t3686; _t3692 = _t3691-_t3690; _t3693 = _t3319 * _t3682; _t3694 = _t3594 * _t3686; _t3695 = _t3694-_t3693; if (_t3527 > 0.000000) { _t3696 = vertParams[291]; } else { _t3696 = vertParams[292]; } _t3698 = (float)1.0 / (_t3696); _t3699 = _t3698 * _t3698; _t3700 = vertParams[288] * _t3699; _t3701 = vertParams[289] * _t3699; _t3702 = vertParams[290] * _t3699; _t3703 = _t3689 * _t3584 + _t3692 * _t3589 + _t3695 * _t3594; _t3704 = _t3696 * _t3703; _t3705 = _t3595+_t3704; _t3706 = _t3705 * _t3705; _t3707 = _t3696 * _t3696; _t3708 = _t3707 * _t3703; _t3709 = _t3708 / _t3706; if (_t3709 >= 0.000000) { _t3710 = _t3709; } else { _t3712 = -_t3709; _t3710 = _t3712; } _t3713 = 1.000000-_t3604; _t3714 = _t3553 * _t3713; _t3715 = _t3714 * _t3710; if (_t3715 >= 0.000000) { _t3716 = _t3715; } else { _t3718 = -_t3715; _t3716 = _t3718; } _t3719 = _t3689 * _t3223 + _t3692 * _t3224 + _t3695 * _t3225; if (_t3719 > 0.000000) { _t3720 = vertParams[291]; } else { _t3720 = vertParams[292]; } _t3722 = _t3720 * _t3595; _t3723 = _t3703+_t3722; _t3724 = _t3723 * _t3723; _t3725 = _t3720 * _t3720; _t3726 = _t3725 * _t3595; _t3727 = _t3726 / _t3724; if (_t3719 >= 0.000000) { _t3728 = _t3719; } else { _t3730 = -_t3719; _t3728 = _t3730; } _t3731 = sqrt(_t3728); _t3732 = 0.200000 * _t3731; _t3733 = 1.200000-_t3732; _t3734 = vertParams[293] * _t3733; _t3735 = _t3547 * _t3547; _t3736 = _t3734 * _t3734; _t3737 = _t3558 * _t3558; _t3738 = _t3737 / _t3736; _t3739 = _t3734 * _t3734; _t3740 = _t3559 * _t3559; _t3741 = _t3740 / _t3739; _t3742 = _t3741+_t3738; _t3743 = _t3742 / _t3735; _t3744 = _t3735 * _t3735; _t3745 = 3.141593 * _t3734; _t3746 = _t3745 * _t3734; _t3747 = _t3746 * _t3744; _t3748 = -_t3743; _t3749 = exp(_t3748); _t3750 = _t3749 / _t3747; _t3751 = 1.000000-_t3604; _t3752 = _t3751 * _t3750; _t3753 = _t3752 * _t3547; _t3754 = _t3753 * _t3727; if (_t3754 >= 0.000000) { _t3755 = _t3754; } else { _t3757 = -_t3754; _t3755 = _t3757; } _t3625 = _t3689; _t3626 = _t3692; _t3627 = _t3695; _t3628 = _t3700; _t3629 = _t3701; _t3630 = _t3702; _t3631 = _t3719; _t3632 = _t3716; _t3633 = _t3755; } if (_t3527 >= 0.000000) { _t3758 = _t3527; } else { _t3760 = -_t3527; _t3758 = _t3760; } if (_t3631 >= 0.000000) { _t3761 = _t3631; } else { _t3763 = -_t3631; _t3761 = _t3763; } _t3764 = _t3547 * _t3547; _t3765 = vertParams[293] * vertParams[293]; _t3766 = _t3558 * _t3558; _t3767 = _t3766 / _t3765; _t3768 = vertParams[293] * vertParams[293]; _t3769 = _t3559 * _t3559; _t3770 = _t3769 / _t3768; _t3771 = _t3770+_t3767; _t3772 = _t3771 / _t3764; _t3773 = _t3764 * _t3764; _t3774 = 3.141593 * vertParams[293]; _t3775 = _t3774 * vertParams[293]; _t3776 = _t3775 * _t3773; _t3777 = -_t3772; _t3778 = exp(_t3777); _t3779 = _t3778 / _t3776; _t3780 = _t3761 * _t3761; _t3781 = 1.000001-_t3780; if (_t3781 >= 0.000000) { _t3782 = _t3781; } else { _t3784 = -_t3781; _t3782 = _t3784; } _t3785 = sqrt(_t3782); _t3786 = _t3785 / _t3761; if (_t3786 <= 0.000000) { _t3787 = 1.000000; } else { _t3789 = vertParams[293] * _t3786; _t3790 = (float)1.0 / (_t3789); if (_t3790 >= 1.600000) { _t3791 = 1.000000; } else { _t3793 = _t3790 * _t3790; _t3794 = 2.577000 * _t3793; _t3795 = 2.276000 * _t3790; _t3796 = 1.000000+_t3795; _t3797 = _t3796+_t3794; _t3798 = 2.181000 * _t3793; _t3799 = 3.535000 * _t3790; _t3800 = _t3799+_t3798; _t3801 = _t3800 / _t3797; _t3791 = _t3801; } _t3787 = _t3791; } _t3802 = _t3758 * _t3758; _t3803 = 1.000001-_t3802; if (_t3803 >= 0.000000) { _t3804 = _t3803; } else { _t3806 = -_t3803; _t3804 = _t3806; } _t3807 = sqrt(_t3804); _t3808 = _t3807 / _t3758; if (_t3808 <= 0.000000) { _t3809 = 1.000000; } else { _t3811 = vertParams[293] * _t3808; _t3812 = (float)1.0 / (_t3811); if (_t3812 >= 1.600000) { _t3813 = 1.000000; } else { _t3815 = _t3812 * _t3812; _t3816 = 2.577000 * _t3815; _t3817 = 2.276000 * _t3812; _t3818 = 1.000000+_t3817; _t3819 = _t3818+_t3816; _t3820 = 2.181000 * _t3815; _t3821 = 3.535000 * _t3812; _t3822 = _t3821+_t3820; _t3823 = _t3822 / _t3819; _t3813 = _t3823; } _t3809 = _t3813; } _t3824 = _t3809 * _t3787; _t3825 = _t3779 * _t3824; _t3826 = _t3825 * _t3595; _t3827 = _t3553 * _t3758; _t3828 = _t3826 / _t3827; if (_t3828 >= 0.000000) { _t3829 = _t3828; } else { _t3831 = -_t3828; _t3829 = _t3831; } _t3832 = _t3628 * _t3829; _t3833 = _t3629 * _t3829; _t3834 = _t3630 * _t3829; _t3349 = _t3625; _t3350 = _t3626; _t3351 = _t3627; _t3352 = _t3832; _t3353 = _t3833; _t3354 = _t3834; _t3355 = _t3631; _t3356 = _t3632; _t3357 = _t3633; } else if (vertParams[284] == 0.000000) { _t3835 = _t3317 * _t3223 + _t3318 * _t3224 + _t3319 * _t3225; if (_t3835 > 0.000000) { _t3836 = _t3223; _t3837 = _t3224; _t3838 = _t3225; _t3839 = _t3835; } else { _t3841 = -_t3223; _t3842 = -_t3224; _t3843 = -_t3225; _t3844 = -_t3835; _t3836 = _t3841; _t3837 = _t3842; _t3838 = _t3843; _t3839 = _t3844; } if (_t3838 < -0.999999) { _t3845 = 0.000000; _t3846 = -1.000000; _t3847 = 0.000000; _t3848 = -1.000000; _t3849 = 0.000000; _t3850 = 0.000000; } else { _t3852 = 1.000000+_t3838; _t3853 = (float)1.0 / (_t3852); _t3854 = -_t3836; _t3855 = _t3854 * _t3837; _t3856 = _t3855 * _t3853; _t3857 = -_t3836; _t3858 = _t3836 * _t3836; _t3859 = _t3858 * _t3853; _t3860 = 1.000000-_t3859; _t3861 = -_t3837; _t3862 = _t3837 * _t3837; _t3863 = _t3862 * _t3853; _t3864 = 1.000000-_t3863; _t3845 = _t3860; _t3846 = _t3856; _t3847 = _t3857; _t3848 = _t3856; _t3849 = _t3864; _t3850 = _t3861; } _t3865 = 6.283185 * primary[11]; _t3866 = 1.000000-primary[12]; if (_t3866 >= 0.000001) { _t3867 = _t3866; } else { _t3867 = 0.000001; } _t3869 = sqrt(_t3867); if (primary[12] >= 0.000001) { _t3870 = primary[12]; } else { _t3870 = 0.000001; } _t3872 = sqrt(_t3870); _t3873 = sin(_t3865); _t3874 = _t3873 * _t3869; _t3875 = cos(_t3865); _t3876 = _t3875 * _t3869; _t3877 = _t3872 * _t3836; _t3878 = _t3874 * _t3848; _t3879 = _t3876 * _t3845; _t3880 = _t3879+_t3878; _t3881 = _t3880+_t3877; _t3882 = _t3872 * _t3837; _t3883 = _t3874 * _t3849; _t3884 = _t3876 * _t3846; _t3885 = _t3884+_t3883; _t3886 = _t3885+_t3882; _t3887 = _t3872 * _t3838; _t3888 = _t3874 * _t3850; _t3889 = _t3876 * _t3847; _t3890 = _t3889+_t3888; _t3891 = _t3890+_t3887; _t3892 = _t3872 * 0.318310; _t3893 = _t3839 * 0.318310; _t3349 = _t3881; _t3350 = _t3886; _t3351 = _t3891; _t3352 = vertParams[285]; _t3353 = vertParams[286]; _t3354 = vertParams[287]; _t3355 = _t3872; _t3356 = _t3892; _t3357 = _t3893; } else { _t3349 = 0.000000; _t3350 = 0.000000; _t3351 = 0.000000; _t3352 = 0.000000; _t3353 = 0.000000; _t3354 = 0.000000; _t3355 = 0.000000; _t3356 = 0.000000; _t3357 = 0.000000; } _t3338 = _t3349; _t3339 = _t3350; _t3340 = _t3351; _t3341 = _t3352; _t3342 = _t3353; _t3343 = _t3354; _t3344 = _t3355; _t3345 = _t3356; _t3346 = _t3357; _t3347 = 1.000000; } else { _t3894 = 6.283185 * primary[11]; _t3895 = 3.141593 * primary[12]; _t3896 = sin(_t3895); _t3897 = cos(_t3895); _t3898 = sin(_t3894); _t3899 = _t3896 * _t3898; _t3900 = cos(_t3894); _t3901 = _t3896 * _t3900; if (_t3896 >= 0.000000) { _t3902 = _t3896; } else { _t3904 = -_t3896; _t3902 = _t3904; } _t3905 = _t3902 * 6.283185; _t3906 = _t3905 * 3.141593; if (vertParams[284] == 1.000000) { _t3916 = _t3223 * _t3317 + _t3224 * _t3318 + _t3225 * _t3319; if (_t3916 > 0.000000) { _t3917 = _t3223; _t3918 = _t3224; _t3919 = _t3225; _t3920 = _t3916; } else { _t3922 = -_t3223; _t3923 = -_t3224; _t3924 = -_t3225; _t3925 = -_t3916; _t3917 = _t3922; _t3918 = _t3923; _t3919 = _t3924; _t3920 = _t3925; } _t3926 = _t3917 * _t3901 + _t3918 * _t3899 + _t3919 * _t3897; if (vertParams[292] > 0.000000) { _t3932 = _t3317 * _t3917 + _t3318 * _t3918 + _t3319 * _t3919; _t3933 = 2.000000 * _t3932; _t3934 = _t3933 * _t3917; _t3935 = _t3934-_t3317; _t3936 = _t3933 * _t3918; _t3937 = _t3936-_t3318; _t3938 = _t3933 * _t3919; _t3939 = _t3938-_t3319; _t3940 = _t3935 * _t3901 + _t3937 * _t3899 + _t3939 * _t3897; _t3941 = pow(_t3940,vertParams[291]); _t3942 = _t3941 * 0.159155; if (_t3942 > 0.000000) { _t3948 = vertParams[291]+1.000000; _t3949 = vertParams[291]+2.000000; _t3950 = _t3949 * _t3942; _t3951 = vertParams[288] * _t3950; _t3952 = vertParams[289] * _t3950; _t3953 = vertParams[290] * _t3950; _t3954 = vertParams[292] * _t3948; _t3955 = _t3954 * _t3942; _t3943 = _t3951; _t3944 = _t3952; _t3945 = _t3953; _t3946 = _t3955; } else { _t3943 = 0.000000; _t3944 = 0.000000; _t3945 = 0.000000; _t3946 = 0.000000; } _t3927 = _t3943; _t3928 = _t3944; _t3929 = _t3945; _t3930 = _t3946; } else { _t3927 = 0.000000; _t3928 = 0.000000; _t3929 = 0.000000; _t3930 = 0.000000; } if (vertParams[292] < 1.000000) { _t3962 = vertParams[285] * 0.318310; _t3963 = vertParams[286] * 0.318310; _t3964 = vertParams[287] * 0.318310; _t3965 = 1.000000-vertParams[292]; _t3966 = _t3965 * 0.318310; _t3967 = _t3966 * _t3926; _t3968 = _t3966 * _t3920; _t3956 = _t3962; _t3957 = _t3963; _t3958 = _t3964; _t3959 = _t3967; _t3960 = _t3968; } else { _t3956 = 0.000000; _t3957 = 0.000000; _t3958 = 0.000000; _t3959 = 0.000000; _t3960 = 0.000000; } _t3969 = _t3927+_t3956; _t3970 = _t3928+_t3957; _t3971 = _t3929+_t3958; _t3972 = _t3930+_t3959; _t3973 = _t3930+_t3960; _t3974 = _t3969 * _t3926; _t3975 = _t3970 * _t3926; _t3976 = _t3971 * _t3926; _t3907 = _t3974; _t3908 = _t3975; _t3909 = _t3976; _t3910 = _t3926; _t3911 = _t3972; _t3912 = _t3973; } else if (vertParams[284] == 2.000000) { _t3977 = _t3317 * _t3223 + _t3318 * _t3224 + _t3319 * _t3225; _t3978 = _t3901 * _t3223 + _t3899 * _t3224 + _t3897 * _t3225; _t3979 = _t3977 * _t3978; if (_t3977 > 0.000000) { _t3980 = vertParams[291]; } else { _t3980 = vertParams[292]; } if (_t3978 > 0.000000) { _t3982 = vertParams[291]; } else { _t3982 = vertParams[292]; } if (_t3979 > 0.000000) { _t3988 = _t3317+_t3901; _t3989 = _t3318+_t3899; _t3990 = _t3319+_t3897; _t3991 = sqrt(_t3988*_t3988+_t3989*_t3989+_t3990*_t3990); _t3992 = (float)1.0 / (_t3991); _t3993 = _t3988 * _t3992; _t3994 = _t3989 * _t3992; _t3995 = _t3990 * _t3992; _t3984 = _t3993; _t3985 = _t3994; _t3986 = _t3995; } else { _t3996 = _t3901 * _t3980; _t3997 = _t3317+_t3996; _t3998 = _t3899 * _t3980; _t3999 = _t3318+_t3998; _t4000 = _t3897 * _t3980; _t4001 = _t3319+_t4000; _t4002 = sqrt(_t3997*_t3997+_t3999*_t3999+_t4001*_t4001); _t4003 = (float)1.0 / (_t4002); _t4004 = _t3997 * _t4003; _t4005 = _t3999 * _t4003; _t4006 = _t4001 * _t4003; _t3984 = _t4004; _t3985 = _t4005; _t3986 = _t4006; } _t4007 = _t3984 * _t3223 + _t3985 * _t3224 + _t3986 * _t3225; if (_t4007 < 0.000000) { _t4012 = -_t3984; _t4013 = -_t3985; _t4014 = -_t3986; _t4008 = _t4012; _t4009 = _t4013; _t4010 = _t4014; } else { _t4008 = _t3984; _t4009 = _t3985; _t4010 = _t3986; } _t4015 = _t3317 * _t4008 + _t3318 * _t4009 + _t3319 * _t4010; _t4016 = _t3901 * _t4008 + _t3899 * _t4009 + _t3897 * _t4010; if (_t3225 < -0.999999) { _t4017 = 0.000000; _t4018 = -1.000000; _t4019 = 0.000000; _t4020 = -1.000000; _t4021 = 0.000000; _t4022 = 0.000000; } else { _t4024 = 1.000000+_t3225; _t4025 = (float)1.0 / (_t4024); _t4026 = -_t3223; _t4027 = _t4026 * _t3224; _t4028 = _t4027 * _t4025; _t4029 = -_t3223; _t4030 = _t3223 * _t3223; _t4031 = _t4030 * _t4025; _t4032 = 1.000000-_t4031; _t4033 = -_t3224; _t4034 = _t3224 * _t3224; _t4035 = _t4034 * _t4025; _t4036 = 1.000000-_t4035; _t4017 = _t4032; _t4018 = _t4028; _t4019 = _t4029; _t4020 = _t4028; _t4021 = _t4036; _t4022 = _t4033; } _t4037 = _t3223 * _t4008 + _t3224 * _t4009 + _t3225 * _t4010; _t4038 = _t4020 * _t4008 + _t4021 * _t4009 + _t4022 * _t4010; _t4039 = _t4017 * _t4008 + _t4018 * _t4009 + _t4019 * _t4010; _t4040 = _t4037 * _t4037; _t4041 = vertParams[293] * vertParams[293]; _t4042 = _t4038 * _t4038; _t4043 = _t4042 / _t4041; _t4044 = vertParams[293] * vertParams[293]; _t4045 = _t4039 * _t4039; _t4046 = _t4045 / _t4044; _t4047 = _t4046+_t4043; _t4048 = _t4047 / _t4040; _t4049 = _t4040 * _t4040; _t4050 = 3.141593 * vertParams[293]; _t4051 = _t4050 * vertParams[293]; _t4052 = _t4051 * _t4049; _t4053 = -_t4048; _t4054 = exp(_t4053); _t4055 = _t4054 / _t4052; if (_t4015 > 0.000000) { _t4056 = vertParams[292]; } else { _t4056 = vertParams[291]; } _t4058 = _t4056 * _t4056; _t4059 = _t4015 * _t4015; _t4060 = 1.000000-_t4059; _t4061 = _t4060 * _t4058; _t4062 = 1.000000-_t4061; if (_t4062 <= 0.000000) { _t4063 = 1.000000; } else { if (_t4015 >= 0.000000) { _t4065 = _t4015; } else { _t4067 = -_t4015; _t4065 = _t4067; } _t4068 = sqrt(_t4062); _t4069 = vertParams[291] * _t4068; _t4070 = vertParams[291] * _t4065; _t4071 = _t4065+_t4069; _t4072 = _t4065-_t4069; _t4073 = _t4072 / _t4071; _t4074 = _t4070+_t4068; _t4075 = _t4070-_t4068; _t4076 = _t4075 / _t4074; _t4077 = _t4076 * _t4076; _t4078 = _t4073 * _t4073; _t4079 = _t4078+_t4077; _t4080 = 0.500000 * _t4079; _t4063 = _t4080; } if (_t3977 >= 0.000000) { _t4081 = _t3977; } else { _t4083 = -_t3977; _t4081 = _t4083; } if (_t3978 >= 0.000000) { _t4084 = _t3978; } else { _t4086 = -_t3978; _t4084 = _t4086; } _t4087 = _t4084 * _t4084; _t4088 = 1.000001-_t4087; if (_t4088 >= 0.000000) { _t4089 = _t4088; } else { _t4091 = -_t4088; _t4089 = _t4091; } _t4092 = sqrt(_t4089); _t4093 = _t4092 / _t4084; if (_t4093 <= 0.000000) { _t4094 = 1.000000; } else { _t4096 = vertParams[293] * _t4093; _t4097 = (float)1.0 / (_t4096); if (_t4097 >= 1.600000) { _t4098 = 1.000000; } else { _t4100 = _t4097 * _t4097; _t4101 = 2.577000 * _t4100; _t4102 = 2.276000 * _t4097; _t4103 = 1.000000+_t4102; _t4104 = _t4103+_t4101; _t4105 = 2.181000 * _t4100; _t4106 = 3.535000 * _t4097; _t4107 = _t4106+_t4105; _t4108 = _t4107 / _t4104; _t4098 = _t4108; } _t4094 = _t4098; } _t4109 = _t4081 * _t4081; _t4110 = 1.000001-_t4109; if (_t4110 >= 0.000000) { _t4111 = _t4110; } else { _t4113 = -_t4110; _t4111 = _t4113; } _t4114 = sqrt(_t4111); _t4115 = _t4114 / _t4081; if (_t4115 <= 0.000000) { _t4116 = 1.000000; } else { _t4118 = vertParams[293] * _t4115; _t4119 = (float)1.0 / (_t4118); if (_t4119 >= 1.600000) { _t4120 = 1.000000; } else { _t4122 = _t4119 * _t4119; _t4123 = 2.577000 * _t4122; _t4124 = 2.276000 * _t4119; _t4125 = 1.000000+_t4124; _t4126 = _t4125+_t4123; _t4127 = 2.181000 * _t4122; _t4128 = 3.535000 * _t4119; _t4129 = _t4128+_t4127; _t4130 = _t4129 / _t4126; _t4120 = _t4130; } _t4116 = _t4120; } _t4131 = _t4116 * _t4094; _t4132 = sqrt(_t4081); _t4133 = 0.200000 * _t4132; _t4134 = 1.200000-_t4133; _t4135 = vertParams[293] * _t4134; _t4136 = _t4037 * _t4037; _t4137 = _t4135 * _t4135; _t4138 = _t4038 * _t4038; _t4139 = _t4138 / _t4137; _t4140 = _t4135 * _t4135; _t4141 = _t4039 * _t4039; _t4142 = _t4141 / _t4140; _t4143 = _t4142+_t4139; _t4144 = _t4143 / _t4136; _t4145 = _t4136 * _t4136; _t4146 = 3.141593 * _t4135; _t4147 = _t4146 * _t4135; _t4148 = _t4147 * _t4145; _t4149 = -_t4144; _t4150 = exp(_t4149); _t4151 = _t4150 / _t4148; _t4152 = _t4037 * _t4151; _t4153 = sqrt(_t4084); _t4154 = 0.200000 * _t4153; _t4155 = 1.200000-_t4154; _t4156 = vertParams[293] * _t4155; _t4157 = _t4037 * _t4037; _t4158 = _t4156 * _t4156; _t4159 = _t4038 * _t4038; _t4160 = _t4159 / _t4158; _t4161 = _t4156 * _t4156; _t4162 = _t4039 * _t4039; _t4163 = _t4162 / _t4161; _t4164 = _t4163+_t4160; _t4165 = _t4164 / _t4157; _t4166 = _t4157 * _t4157; _t4167 = 3.141593 * _t4156; _t4168 = _t4167 * _t4156; _t4169 = _t4168 * _t4166; _t4170 = -_t4165; _t4171 = exp(_t4170); _t4172 = _t4171 / _t4169; _t4173 = _t4037 * _t4172; if (_t3979 > 0.000000) { _t4179 = 4.000000 * _t3977; _t4180 = _t4063 * _t4055; _t4181 = _t4180 * _t4131; _t4182 = _t4181 / _t4179; if (_t4182 >= 0.000000) { _t4183 = _t4182; } else { _t4185 = -_t4182; _t4183 = _t4185; } _t4186 = vertParams[285] * _t4183; _t4187 = vertParams[286] * _t4183; _t4188 = vertParams[287] * _t4183; _t4189 = 4.000000 * _t4016; _t4190 = _t4152 * _t4063; _t4191 = _t4190 / _t4189; if (_t4191 >= 0.000000) { _t4192 = _t4191; } else { _t4194 = -_t4191; _t4192 = _t4194; } _t4195 = 4.000000 * _t4015; _t4196 = _t4173 * _t4063; _t4197 = _t4196 / _t4195; if (_t4197 >= 0.000000) { _t4198 = _t4197; } else { _t4200 = -_t4197; _t4198 = _t4200; } _t4174 = _t4186; _t4175 = _t4187; _t4176 = _t4188; _t4177 = _t4192; _t4178 = _t4198; } else { _t4201 = _t3980 * _t4016; _t4202 = _t4015+_t4201; _t4203 = _t3982 * _t4015; _t4204 = _t4016+_t4203; _t4205 = (float)1.0 / (_t3980); _t4206 = _t4205 * _t4205; _t4207 = _t4202 * _t4202; _t4208 = _t3977 * _t4207; _t4209 = _t3980 * _t3980; _t4210 = 1.000000-_t4063; _t4211 = _t4210 * _t4055; _t4212 = _t4211 * _t4131; _t4213 = _t4212 * _t4209; _t4214 = _t4213 * _t4015; _t4215 = _t4214 * _t4016; _t4216 = _t4206 * _t4215; _t4217 = _t4216 / _t4208; if (_t4217 >= 0.000000) { _t4218 = _t4217; } else { _t4220 = -_t4217; _t4218 = _t4220; } _t4221 = vertParams[288] * _t4218; _t4222 = vertParams[289] * _t4218; _t4223 = vertParams[290] * _t4218; _t4224 = _t4202 * _t4202; _t4225 = _t3980 * _t3980; _t4226 = _t4225 * _t4016; _t4227 = 1.000000-_t4063; _t4228 = _t4152 * _t4227; _t4229 = _t4228 * _t4226; _t4230 = _t4229 / _t4224; if (_t4230 >= 0.000000) { _t4231 = _t4230; } else { _t4233 = -_t4230; _t4231 = _t4233; } _t4234 = _t4204 * _t4204; _t4235 = _t3982 * _t3982; _t4236 = _t4235 * _t4015; _t4237 = 1.000000-_t4063; _t4238 = _t4173 * _t4237; _t4239 = _t4238 * _t4236; _t4240 = _t4239 / _t4234; if (_t4240 >= 0.000000) { _t4241 = _t4240; } else { _t4243 = -_t4240; _t4241 = _t4243; } _t4174 = _t4221; _t4175 = _t4222; _t4176 = _t4223; _t4177 = _t4231; _t4178 = _t4241; } _t3907 = _t4174; _t3908 = _t4175; _t3909 = _t4176; _t3910 = _t3978; _t3911 = _t4177; _t3912 = _t4178; } else if (vertParams[284] == 0.000000) { _t4244 = _t3223 * _t3317 + _t3224 * _t3318 + _t3225 * _t3319; if (_t4244 > 0.000000) { _t4245 = _t3223; _t4246 = _t3224; _t4247 = _t3225; _t4248 = _t4244; } else { _t4250 = -_t3223; _t4251 = -_t3224; _t4252 = -_t3225; _t4253 = -_t4244; _t4245 = _t4250; _t4246 = _t4251; _t4247 = _t4252; _t4248 = _t4253; } _t4254 = _t4245 * _t3901 + _t4246 * _t3899 + _t4247 * _t3897; _t4255 = _t4254 * 0.318310; _t4256 = _t4248 * 0.318310; _t4257 = _t4255 * vertParams[285]; _t4258 = _t4255 * vertParams[286]; _t4259 = _t4255 * vertParams[287]; _t3907 = _t4257; _t3908 = _t4258; _t3909 = _t4259; _t3910 = _t4254; _t3911 = _t4255; _t3912 = _t4256; } else { _t3907 = 0.000000; _t3908 = 0.000000; _t3909 = 0.000000; _t3910 = 0.000000; _t3911 = 0.000000; _t3912 = 0.000000; } _t3338 = _t3901; _t3339 = _t3899; _t3340 = _t3897; _t3341 = _t3907; _t3342 = _t3908; _t3343 = _t3909; _t3344 = _t3910; _t3345 = _t3911; _t3346 = _t3912; _t3347 = _t3906; } _t4260 = _t3341 * _t3347; _t4261 = _t3342 * _t3347; _t4262 = _t3343 * _t3347; _t4263 = _t3346 * _t3346; _t4264 = _t3337 * _t4263; _t4265 = _t4264+_t3336; _t4266 = _t3344 / _t3345; _t4267 = _t4266 * _t4266; _t4268 = _t4267 * _t4265; _t4269 = (float)1.0 / (_t3345); _t4270 = _t4269 * _t4269; _t4271 = _t3214 * _t4260; _t4272 = _t3215 * _t4261; _t4273 = _t3216 * _t4262; _t4274 = _t4271 * vertParams[294]; _t4275 = _t4272 * vertParams[294]; _t4276 = _t4273 * vertParams[294]; if (vertParams[295] == 0.000000) { _t4289 = vertParams[301] * vertParams[303]; _t4290 = vertParams[300] * vertParams[304]; _t4291 = _t4290-_t4289; _t4292 = vertParams[300] * vertParams[305]; _t4293 = vertParams[302] * vertParams[303]; _t4294 = _t4293-_t4292; _t4295 = vertParams[302] * vertParams[304]; _t4296 = vertParams[301] * vertParams[305]; _t4297 = _t4296-_t4295; _t4298 = sqrt(_t4297*_t4297+_t4294*_t4294+_t4291*_t4291); _t4299 = (float)1.0 / (_t4298); _t4300 = _t4297 * _t4299; _t4301 = _t4294 * _t4299; _t4302 = _t4291 * _t4299; _t4303 = _t3339 * vertParams[303]; _t4304 = _t3338 * vertParams[304]; _t4305 = _t4304-_t4303; _t4306 = _t3338 * vertParams[305]; _t4307 = _t3340 * vertParams[303]; _t4308 = _t4307-_t4306; _t4309 = _t3340 * vertParams[304]; _t4310 = _t3339 * vertParams[305]; _t4311 = _t4310-_t4309; _t4312 = _t4311 * vertParams[300] + _t4308 * vertParams[301] + _t4305 * vertParams[302]; _t4313 = (float)1.0 / (_t4312); _t4314 = _t3217-vertParams[297]; _t4315 = _t3218-vertParams[298]; _t4316 = _t3219-vertParams[299]; _t4317 = _t4314 * _t4311 + _t4315 * _t4308 + _t4316 * _t4305; _t4318 = _t4317 * _t4313; _t4319 = _t4315 * vertParams[300]; _t4320 = _t4314 * vertParams[301]; _t4321 = _t4320-_t4319; _t4322 = _t4314 * vertParams[302]; _t4323 = _t4316 * vertParams[300]; _t4324 = _t4323-_t4322; _t4325 = _t4316 * vertParams[301]; _t4326 = _t4315 * vertParams[302]; _t4327 = _t4326-_t4325; _t4328 = _t3338 * _t4327 + _t3339 * _t4324 + _t3340 * _t4321; _t4329 = _t4328 * _t4313; _t4330 = vertParams[303] * _t4327 + vertParams[304] * _t4324 + vertParams[305] * _t4321; _t4331 = _t4330 * _t4313; _t4332 = 1.000000-_t4318; _t4333 = _t4332-_t4329; _t4334 = _t4331 * _t3338; _t4335 = _t3217+_t4334; _t4336 = _t4331 * _t3339; _t4337 = _t3218+_t4336; _t4338 = _t4331 * _t3340; _t4339 = _t3219+_t4338; _t4340 = _t4329 * vertParams[312]; _t4341 = _t4318 * vertParams[309]; _t4342 = _t4333 * vertParams[306]; _t4343 = _t4342+_t4341; _t4344 = _t4343+_t4340; _t4345 = _t4329 * vertParams[313]; _t4346 = _t4318 * vertParams[310]; _t4347 = _t4333 * vertParams[307]; _t4348 = _t4347+_t4346; _t4349 = _t4348+_t4345; _t4350 = _t4329 * vertParams[314]; _t4351 = _t4318 * vertParams[311]; _t4352 = _t4333 * vertParams[308]; _t4353 = _t4352+_t4351; _t4354 = _t4353+_t4350; _t4355 = sqrt(_t4344*_t4344+_t4349*_t4349+_t4354*_t4354); _t4356 = (float)1.0 / (_t4355); _t4357 = _t4344 * _t4356; _t4358 = _t4349 * _t4356; _t4359 = _t4354 * _t4356; if (vertParams[333] == 0.000000) { _t4360 = _t4318; _t4361 = _t4329; } else { _t4363 = _t4329 * vertParams[338]; _t4364 = _t4318 * vertParams[336]; _t4365 = 1.000000-_t4318; _t4366 = _t4365-_t4329; _t4367 = _t4366 * vertParams[334]; _t4368 = _t4367+_t4364; _t4369 = _t4368+_t4363; _t4370 = _t4329 * vertParams[339]; _t4371 = _t4318 * vertParams[337]; _t4372 = 1.000000-_t4318; _t4373 = _t4372-_t4329; _t4374 = _t4373 * vertParams[335]; _t4375 = _t4374+_t4371; _t4376 = _t4375+_t4370; _t4360 = _t4369; _t4361 = _t4376; } _t4277 = _t4335; _t4278 = _t4337; _t4279 = _t4339; _t4280 = _t4300; _t4281 = _t4301; _t4282 = _t4302; _t4283 = _t4357; _t4284 = _t4358; _t4285 = _t4359; _t4286 = _t4360; _t4287 = _t4361; } else { _t4277 = 0.000000; _t4278 = 0.000000; _t4279 = 0.000000; _t4280 = 0.000000; _t4281 = 0.000000; _t4282 = 0.000000; _t4283 = 0.000000; _t4284 = 0.000000; _t4285 = 0.000000; _t4286 = 0.000000; _t4287 = 0.000000; } _t4377 = -_t3338; _t4378 = -_t3339; _t4379 = -_t3340; _t4380 = _t3219-_t4279; _t4381 = _t4380 * _t4380; _t4382 = _t3218-_t4278; _t4383 = _t4382 * _t4382; _t4384 = _t3217-_t4277; _t4385 = _t4384 * _t4384; _t4386 = _t4385+_t4383; _t4387 = _t4386+_t4381; _t4388 = _t4387 * _t4387; _t4389 = _t4270 * _t4388; _t4390 = _t3338 * _t4283 + _t3339 * _t4284 + _t3340 * _t4285; if (_t4390 >= 0.000000) { _t4391 = _t4390; } else { _t4393 = -_t4390; _t4391 = _t4393; } _t4394 = _t4391 * _t4391; _t4395 = (float)1.0 / (_t4394); _t4396 = _t4389 * _t4395; _t4397 = _t4268 * _t4395; if (vertParams[342] == 0.000000) { if (vertParams[343] == 1.000000) { _t4421 = _t4283 * _t4377 + _t4284 * _t4378 + _t4285 * _t4379; if (_t4421 > 0.000000) { _t4422 = _t4283; _t4423 = _t4284; _t4424 = _t4285; _t4425 = _t4421; } else { _t4427 = -_t4283; _t4428 = -_t4284; _t4429 = -_t4285; _t4430 = -_t4421; _t4422 = _t4427; _t4423 = _t4428; _t4424 = _t4429; _t4425 = _t4430; } _t4431 = _t4377 * _t4422 + _t4378 * _t4423 + _t4379 * _t4424; _t4432 = 2.000000 * _t4431; _t4433 = _t4432 * _t4422; _t4434 = _t4433-_t4377; _t4435 = _t4432 * _t4423; _t4436 = _t4435-_t4378; _t4437 = _t4432 * _t4424; _t4438 = _t4437-_t4379; if (vertParams[341] > vertParams[351]) { _t4444 = 6.283185 * primary[13]; _t4445 = 1.000000-primary[14]; if (_t4445 >= 0.000001) { _t4446 = _t4445; } else { _t4446 = 0.000001; } _t4448 = sqrt(_t4446); if (primary[14] >= 0.000001) { _t4449 = primary[14]; } else { _t4449 = 0.000001; } _t4451 = sqrt(_t4449); _t4452 = sin(_t4444); _t4453 = _t4452 * _t4448; _t4454 = cos(_t4444); _t4455 = _t4454 * _t4448; if (_t4424 < -0.999999) { _t4456 = 0.000000; _t4457 = -1.000000; _t4458 = 0.000000; _t4459 = -1.000000; _t4460 = 0.000000; _t4461 = 0.000000; } else { _t4463 = 1.000000+_t4424; _t4464 = (float)1.0 / (_t4463); _t4465 = -_t4422; _t4466 = _t4465 * _t4423; _t4467 = _t4466 * _t4464; _t4468 = -_t4422; _t4469 = _t4422 * _t4422; _t4470 = _t4469 * _t4464; _t4471 = 1.000000-_t4470; _t4472 = -_t4423; _t4473 = _t4423 * _t4423; _t4474 = _t4473 * _t4464; _t4475 = 1.000000-_t4474; _t4456 = _t4471; _t4457 = _t4467; _t4458 = _t4468; _t4459 = _t4467; _t4460 = _t4475; _t4461 = _t4472; } _t4476 = _t4451 * _t4422; _t4477 = _t4453 * _t4459; _t4478 = _t4455 * _t4456; _t4479 = _t4478+_t4477; _t4480 = _t4479+_t4476; _t4481 = _t4451 * _t4423; _t4482 = _t4453 * _t4460; _t4483 = _t4455 * _t4457; _t4484 = _t4483+_t4482; _t4485 = _t4484+_t4481; _t4486 = _t4451 * _t4424; _t4487 = _t4453 * _t4461; _t4488 = _t4455 * _t4458; _t4489 = _t4488+_t4487; _t4490 = _t4489+_t4486; _t4491 = 1.000000-vertParams[351]; _t4439 = _t4480; _t4440 = _t4485; _t4441 = _t4490; _t4442 = _t4491; } else { _t4492 = vertParams[350]+1.000000; _t4493 = (float)1.0 / (_t4492); _t4494 = pow(primary[14],_t4493); _t4495 = _t4494 * _t4494; _t4496 = 1.000000-_t4495; if (_t4496 >= 0.000001) { _t4497 = _t4496; } else { _t4497 = 0.000001; } _t4499 = sqrt(_t4497); _t4500 = 6.283185 * primary[13]; _t4501 = sin(_t4500); _t4502 = _t4499 * _t4501; _t4503 = cos(_t4500); _t4504 = _t4499 * _t4503; if (_t4438 < -0.999999) { _t4505 = 0.000000; _t4506 = -1.000000; _t4507 = 0.000000; _t4508 = -1.000000; _t4509 = 0.000000; _t4510 = 0.000000; } else { _t4512 = 1.000000+_t4438; _t4513 = (float)1.0 / (_t4512); _t4514 = -_t4434; _t4515 = _t4514 * _t4436; _t4516 = _t4515 * _t4513; _t4517 = -_t4434; _t4518 = _t4434 * _t4434; _t4519 = _t4518 * _t4513; _t4520 = 1.000000-_t4519; _t4521 = -_t4436; _t4522 = _t4436 * _t4436; _t4523 = _t4522 * _t4513; _t4524 = 1.000000-_t4523; _t4505 = _t4520; _t4506 = _t4516; _t4507 = _t4517; _t4508 = _t4516; _t4509 = _t4524; _t4510 = _t4521; } _t4525 = _t4494 * _t4434; _t4526 = _t4502 * _t4508; _t4527 = _t4504 * _t4505; _t4528 = _t4527+_t4526; _t4529 = _t4528+_t4525; _t4530 = _t4494 * _t4436; _t4531 = _t4502 * _t4509; _t4532 = _t4504 * _t4506; _t4533 = _t4532+_t4531; _t4534 = _t4533+_t4530; _t4535 = _t4494 * _t4438; _t4536 = _t4502 * _t4510; _t4537 = _t4504 * _t4507; _t4538 = _t4537+_t4536; _t4539 = _t4538+_t4535; _t4439 = _t4529; _t4440 = _t4534; _t4441 = _t4539; _t4442 = vertParams[351]; } _t4540 = _t4422 * _t4439 + _t4423 * _t4440 + _t4424 * _t4441; if (vertParams[351] > 0.000000) { _t4546 = _t4434 * _t4439 + _t4436 * _t4440 + _t4438 * _t4441; _t4547 = pow(_t4546,vertParams[350]); _t4548 = _t4547 * 0.159155; if (_t4548 > 0.000000) { _t4554 = vertParams[350]+1.000000; _t4555 = vertParams[350]+2.000000; _t4556 = _t4555 * _t4548; _t4557 = vertParams[347] * _t4556; _t4558 = vertParams[348] * _t4556; _t4559 = vertParams[349] * _t4556; _t4560 = vertParams[351] * _t4554; _t4561 = _t4560 * _t4548; _t4549 = _t4557; _t4550 = _t4558; _t4551 = _t4559; _t4552 = _t4561; } else { _t4549 = 0.000000; _t4550 = 0.000000; _t4551 = 0.000000; _t4552 = 0.000000; } _t4541 = _t4549; _t4542 = _t4550; _t4543 = _t4551; _t4544 = _t4552; } else { _t4541 = 0.000000; _t4542 = 0.000000; _t4543 = 0.000000; _t4544 = 0.000000; } if (vertParams[351] < 1.000000) { _t4568 = vertParams[344] * 0.318310; _t4569 = vertParams[345] * 0.318310; _t4570 = vertParams[346] * 0.318310; _t4571 = 1.000000-vertParams[351]; _t4572 = _t4571 * 0.318310; _t4573 = _t4572 * _t4540; _t4574 = _t4572 * _t4425; _t4562 = _t4568; _t4563 = _t4569; _t4564 = _t4570; _t4565 = _t4573; _t4566 = _t4574; } else { _t4562 = 0.000000; _t4563 = 0.000000; _t4564 = 0.000000; _t4565 = 0.000000; _t4566 = 0.000000; } _t4575 = _t4541+_t4562; _t4576 = _t4542+_t4563; _t4577 = _t4543+_t4564; _t4578 = _t4544+_t4565; _t4579 = _t4544+_t4566; _t4580 = _t4575 * _t4540; _t4581 = _t4576 * _t4540; _t4582 = _t4577 * _t4540; _t4583 = (float)1.0 / (_t4578); _t4584 = _t4580 * _t4583; _t4585 = _t4581 * _t4583; _t4586 = _t4582 * _t4583; _t4409 = _t4439; _t4410 = _t4440; _t4411 = _t4441; _t4412 = _t4584; _t4413 = _t4585; _t4414 = _t4586; _t4415 = _t4540; _t4416 = _t4578; _t4417 = _t4579; } else if (vertParams[343] == 2.000000) { _t4587 = _t4377 * _t4283 + _t4378 * _t4284 + _t4379 * _t4285; if (_t4587 >= 0.000000) { _t4588 = _t4587; } else { _t4590 = -_t4587; _t4588 = _t4590; } _t4591 = sqrt(_t4588); _t4592 = 0.200000 * _t4591; _t4593 = 1.200000-_t4592; _t4594 = vertParams[352] * _t4593; _t4595 = 6.283185 * primary[14]; _t4596 = sin(_t4595); _t4597 = cos(_t4595); _t4598 = _t4594 * _t4594; _t4599 = 1.000000-primary[13]; if (_t4599 >= 0.000001) { _t4600 = _t4599; } else { _t4600 = 0.000001; } _t4602 = log(_t4600); _t4603 = -_t4602; _t4604 = _t4598 * _t4603; _t4605 = 1.000000+_t4604; _t4606 = sqrt(_t4605); _t4607 = (float)1.0 / (_t4606); _t4608 = _t4607 * _t4607; _t4609 = 3.141593 * _t4598; _t4610 = _t4609 * _t4607; _t4611 = _t4610 * _t4608; _t4612 = 1.000000-primary[13]; _t4613 = _t4612 / _t4611; _t4614 = 1.000000-_t4608; if (_t4614 >= 0.000001) { _t4615 = _t4614; } else { _t4615 = 0.000001; } _t4617 = sqrt(_t4615); _t4618 = _t4617 * _t4596; _t4619 = _t4617 * _t4597; if (_t4285 < -0.999999) { _t4620 = 0.000000; _t4621 = -1.000000; _t4622 = 0.000000; _t4623 = -1.000000; _t4624 = 0.000000; _t4625 = 0.000000; } else { _t4627 = 1.000000+_t4285; _t4628 = (float)1.0 / (_t4627); _t4629 = -_t4283; _t4630 = _t4629 * _t4284; _t4631 = _t4630 * _t4628; _t4632 = -_t4283; _t4633 = _t4283 * _t4283; _t4634 = _t4633 * _t4628; _t4635 = 1.000000-_t4634; _t4636 = -_t4284; _t4637 = _t4284 * _t4284; _t4638 = _t4637 * _t4628; _t4639 = 1.000000-_t4638; _t4620 = _t4635; _t4621 = _t4631; _t4622 = _t4632; _t4623 = _t4631; _t4624 = _t4639; _t4625 = _t4636; } _t4640 = _t4607 * _t4283; _t4641 = _t4618 * _t4623; _t4642 = _t4619 * _t4620; _t4643 = _t4642+_t4641; _t4644 = _t4643+_t4640; _t4645 = _t4607 * _t4284; _t4646 = _t4618 * _t4624; _t4647 = _t4619 * _t4621; _t4648 = _t4647+_t4646; _t4649 = _t4648+_t4645; _t4650 = _t4607 * _t4285; _t4651 = _t4618 * _t4625; _t4652 = _t4619 * _t4622; _t4653 = _t4652+_t4651; _t4654 = _t4653+_t4650; _t4655 = _t4377 * _t4644 + _t4378 * _t4649 + _t4379 * _t4654; if (_t4655 > 0.000000) { _t4656 = vertParams[351]; } else { _t4656 = vertParams[350]; } _t4658 = _t4656 * _t4656; _t4659 = _t4655 * _t4655; _t4660 = 1.000000-_t4659; _t4661 = _t4660 * _t4658; _t4662 = 1.000000-_t4661; if (_t4662 <= 0.000000) { _t4663 = 0.000000; _t4664 = 1.000000; } else { if (_t4655 >= 0.000000) { _t4666 = _t4655; } else { _t4668 = -_t4655; _t4666 = _t4668; } _t4669 = sqrt(_t4662); _t4670 = vertParams[350] * _t4669; _t4671 = vertParams[350] * _t4666; _t4672 = _t4666+_t4670; _t4673 = _t4666-_t4670; _t4674 = _t4673 / _t4672; _t4675 = _t4671+_t4669; _t4676 = _t4671-_t4669; _t4677 = _t4676 / _t4675; _t4678 = -_t4669; if (_t4655 > 0.000000) { _t4679 = _t4678; } else { _t4679 = _t4669; } _t4681 = _t4677 * _t4677; _t4682 = _t4674 * _t4674; _t4683 = _t4682+_t4681; _t4684 = 0.500000 * _t4683; _t4663 = _t4679; _t4664 = _t4684; } if (vertParams[341] <= _t4664) { _t4695 = _t4377 * _t4644 + _t4378 * _t4649 + _t4379 * _t4654; _t4696 = 2.000000 * _t4695; _t4697 = _t4696 * _t4644; _t4698 = _t4697-_t4377; _t4699 = _t4696 * _t4649; _t4700 = _t4699-_t4378; _t4701 = _t4696 * _t4654; _t4702 = _t4701-_t4379; _t4703 = _t4698 * _t4644 + _t4700 * _t4649 + _t4702 * _t4654; _t4704 = 4.000000 * _t4703; _t4705 = _t4613 * _t4664; _t4706 = _t4705 / _t4704; if (_t4706 >= 0.000000) { _t4707 = _t4706; } else { _t4709 = -_t4706; _t4707 = _t4709; } _t4710 = 4.000000 * _t4655; _t4711 = (float)1.0 / (_t4710); _t4712 = _t4698 * _t4283 + _t4700 * _t4284 + _t4702 * _t4285; if (_t4712 >= 0.000000) { _t4713 = _t4712; } else { _t4715 = -_t4712; _t4713 = _t4715; } _t4716 = sqrt(_t4713); _t4717 = 0.200000 * _t4716; _t4718 = 1.200000-_t4717; _t4719 = vertParams[352] * _t4718; _t4720 = _t4607 * _t4607; _t4721 = _t4719 * _t4719; _t4722 = _t4618 * _t4618; _t4723 = _t4722 / _t4721; _t4724 = _t4719 * _t4719; _t4725 = _t4619 * _t4619; _t4726 = _t4725 / _t4724; _t4727 = _t4726+_t4723; _t4728 = _t4727 / _t4720; _t4729 = _t4720 * _t4720; _t4730 = 3.141593 * _t4719; _t4731 = _t4730 * _t4719; _t4732 = _t4731 * _t4729; _t4733 = -_t4728; _t4734 = exp(_t4733); _t4735 = _t4734 / _t4732; _t4736 = _t4664 * _t4735; _t4737 = _t4736 * _t4607; _t4738 = _t4737 * _t4711; if (_t4738 >= 0.000000) { _t4739 = _t4738; } else { _t4741 = -_t4738; _t4739 = _t4741; } _t4685 = _t4698; _t4686 = _t4700; _t4687 = _t4702; _t4688 = vertParams[344]; _t4689 = vertParams[345]; _t4690 = vertParams[346]; _t4691 = _t4712; _t4692 = _t4707; _t4693 = _t4739; } else { if (_t4663 < 0.000000) { _t4742 = vertParams[351]; } else { _t4742 = vertParams[350]; } _t4744 = _t4377 * _t4644 + _t4378 * _t4649 + _t4379 * _t4654; _t4745 = _t4744 * _t4742; _t4746 = _t4745+_t4663; _t4747 = _t4377 * _t4742; _t4748 = _t4644 * _t4746; _t4749 = _t4748-_t4747; _t4750 = _t4378 * _t4742; _t4751 = _t4649 * _t4746; _t4752 = _t4751-_t4750; _t4753 = _t4379 * _t4742; _t4754 = _t4654 * _t4746; _t4755 = _t4754-_t4753; if (_t4587 > 0.000000) { _t4756 = vertParams[350]; } else { _t4756 = vertParams[351]; } _t4758 = (float)1.0 / (_t4756); _t4759 = _t4758 * _t4758; _t4760 = vertParams[347] * _t4759; _t4761 = vertParams[348] * _t4759; _t4762 = vertParams[349] * _t4759; _t4763 = _t4749 * _t4644 + _t4752 * _t4649 + _t4755 * _t4654; _t4764 = _t4756 * _t4763; _t4765 = _t4655+_t4764; _t4766 = _t4765 * _t4765; _t4767 = _t4756 * _t4756; _t4768 = _t4767 * _t4763; _t4769 = _t4768 / _t4766; if (_t4769 >= 0.000000) { _t4770 = _t4769; } else { _t4772 = -_t4769; _t4770 = _t4772; } _t4773 = 1.000000-_t4664; _t4774 = _t4613 * _t4773; _t4775 = _t4774 * _t4770; if (_t4775 >= 0.000000) { _t4776 = _t4775; } else { _t4778 = -_t4775; _t4776 = _t4778; } _t4779 = _t4749 * _t4283 + _t4752 * _t4284 + _t4755 * _t4285; if (_t4779 > 0.000000) { _t4780 = vertParams[350]; } else { _t4780 = vertParams[351]; } _t4782 = _t4780 * _t4655; _t4783 = _t4763+_t4782; _t4784 = _t4783 * _t4783; _t4785 = _t4780 * _t4780; _t4786 = _t4785 * _t4655; _t4787 = _t4786 / _t4784; if (_t4779 >= 0.000000) { _t4788 = _t4779; } else { _t4790 = -_t4779; _t4788 = _t4790; } _t4791 = sqrt(_t4788); _t4792 = 0.200000 * _t4791; _t4793 = 1.200000-_t4792; _t4794 = vertParams[352] * _t4793; _t4795 = _t4607 * _t4607; _t4796 = _t4794 * _t4794; _t4797 = _t4618 * _t4618; _t4798 = _t4797 / _t4796; _t4799 = _t4794 * _t4794; _t4800 = _t4619 * _t4619; _t4801 = _t4800 / _t4799; _t4802 = _t4801+_t4798; _t4803 = _t4802 / _t4795; _t4804 = _t4795 * _t4795; _t4805 = 3.141593 * _t4794; _t4806 = _t4805 * _t4794; _t4807 = _t4806 * _t4804; _t4808 = -_t4803; _t4809 = exp(_t4808); _t4810 = _t4809 / _t4807; _t4811 = 1.000000-_t4664; _t4812 = _t4811 * _t4810; _t4813 = _t4812 * _t4607; _t4814 = _t4813 * _t4787; if (_t4814 >= 0.000000) { _t4815 = _t4814; } else { _t4817 = -_t4814; _t4815 = _t4817; } _t4685 = _t4749; _t4686 = _t4752; _t4687 = _t4755; _t4688 = _t4760; _t4689 = _t4761; _t4690 = _t4762; _t4691 = _t4779; _t4692 = _t4776; _t4693 = _t4815; } if (_t4587 >= 0.000000) { _t4818 = _t4587; } else { _t4820 = -_t4587; _t4818 = _t4820; } if (_t4691 >= 0.000000) { _t4821 = _t4691; } else { _t4823 = -_t4691; _t4821 = _t4823; } _t4824 = _t4607 * _t4607; _t4825 = vertParams[352] * vertParams[352]; _t4826 = _t4618 * _t4618; _t4827 = _t4826 / _t4825; _t4828 = vertParams[352] * vertParams[352]; _t4829 = _t4619 * _t4619; _t4830 = _t4829 / _t4828; _t4831 = _t4830+_t4827; _t4832 = _t4831 / _t4824; _t4833 = _t4824 * _t4824; _t4834 = 3.141593 * vertParams[352]; _t4835 = _t4834 * vertParams[352]; _t4836 = _t4835 * _t4833; _t4837 = -_t4832; _t4838 = exp(_t4837); _t4839 = _t4838 / _t4836; _t4840 = _t4821 * _t4821; _t4841 = 1.000001-_t4840; if (_t4841 >= 0.000000) { _t4842 = _t4841; } else { _t4844 = -_t4841; _t4842 = _t4844; } _t4845 = sqrt(_t4842); _t4846 = _t4845 / _t4821; if (_t4846 <= 0.000000) { _t4847 = 1.000000; } else { _t4849 = vertParams[352] * _t4846; _t4850 = (float)1.0 / (_t4849); if (_t4850 >= 1.600000) { _t4851 = 1.000000; } else { _t4853 = _t4850 * _t4850; _t4854 = 2.577000 * _t4853; _t4855 = 2.276000 * _t4850; _t4856 = 1.000000+_t4855; _t4857 = _t4856+_t4854; _t4858 = 2.181000 * _t4853; _t4859 = 3.535000 * _t4850; _t4860 = _t4859+_t4858; _t4861 = _t4860 / _t4857; _t4851 = _t4861; } _t4847 = _t4851; } _t4862 = _t4818 * _t4818; _t4863 = 1.000001-_t4862; if (_t4863 >= 0.000000) { _t4864 = _t4863; } else { _t4866 = -_t4863; _t4864 = _t4866; } _t4867 = sqrt(_t4864); _t4868 = _t4867 / _t4818; if (_t4868 <= 0.000000) { _t4869 = 1.000000; } else { _t4871 = vertParams[352] * _t4868; _t4872 = (float)1.0 / (_t4871); if (_t4872 >= 1.600000) { _t4873 = 1.000000; } else { _t4875 = _t4872 * _t4872; _t4876 = 2.577000 * _t4875; _t4877 = 2.276000 * _t4872; _t4878 = 1.000000+_t4877; _t4879 = _t4878+_t4876; _t4880 = 2.181000 * _t4875; _t4881 = 3.535000 * _t4872; _t4882 = _t4881+_t4880; _t4883 = _t4882 / _t4879; _t4873 = _t4883; } _t4869 = _t4873; } _t4884 = _t4869 * _t4847; _t4885 = _t4839 * _t4884; _t4886 = _t4885 * _t4655; _t4887 = _t4613 * _t4818; _t4888 = _t4886 / _t4887; if (_t4888 >= 0.000000) { _t4889 = _t4888; } else { _t4891 = -_t4888; _t4889 = _t4891; } _t4892 = _t4688 * _t4889; _t4893 = _t4689 * _t4889; _t4894 = _t4690 * _t4889; _t4409 = _t4685; _t4410 = _t4686; _t4411 = _t4687; _t4412 = _t4892; _t4413 = _t4893; _t4414 = _t4894; _t4415 = _t4691; _t4416 = _t4692; _t4417 = _t4693; } else if (vertParams[343] == 0.000000) { _t4895 = _t4377 * _t4283 + _t4378 * _t4284 + _t4379 * _t4285; if (_t4895 > 0.000000) { _t4896 = _t4283; _t4897 = _t4284; _t4898 = _t4285; _t4899 = _t4895; } else { _t4901 = -_t4283; _t4902 = -_t4284; _t4903 = -_t4285; _t4904 = -_t4895; _t4896 = _t4901; _t4897 = _t4902; _t4898 = _t4903; _t4899 = _t4904; } if (_t4898 < -0.999999) { _t4905 = 0.000000; _t4906 = -1.000000; _t4907 = 0.000000; _t4908 = -1.000000; _t4909 = 0.000000; _t4910 = 0.000000; } else { _t4912 = 1.000000+_t4898; _t4913 = (float)1.0 / (_t4912); _t4914 = -_t4896; _t4915 = _t4914 * _t4897; _t4916 = _t4915 * _t4913; _t4917 = -_t4896; _t4918 = _t4896 * _t4896; _t4919 = _t4918 * _t4913; _t4920 = 1.000000-_t4919; _t4921 = -_t4897; _t4922 = _t4897 * _t4897; _t4923 = _t4922 * _t4913; _t4924 = 1.000000-_t4923; _t4905 = _t4920; _t4906 = _t4916; _t4907 = _t4917; _t4908 = _t4916; _t4909 = _t4924; _t4910 = _t4921; } _t4925 = 6.283185 * primary[13]; _t4926 = 1.000000-primary[14]; if (_t4926 >= 0.000001) { _t4927 = _t4926; } else { _t4927 = 0.000001; } _t4929 = sqrt(_t4927); if (primary[14] >= 0.000001) { _t4930 = primary[14]; } else { _t4930 = 0.000001; } _t4932 = sqrt(_t4930); _t4933 = sin(_t4925); _t4934 = _t4933 * _t4929; _t4935 = cos(_t4925); _t4936 = _t4935 * _t4929; _t4937 = _t4932 * _t4896; _t4938 = _t4934 * _t4908; _t4939 = _t4936 * _t4905; _t4940 = _t4939+_t4938; _t4941 = _t4940+_t4937; _t4942 = _t4932 * _t4897; _t4943 = _t4934 * _t4909; _t4944 = _t4936 * _t4906; _t4945 = _t4944+_t4943; _t4946 = _t4945+_t4942; _t4947 = _t4932 * _t4898; _t4948 = _t4934 * _t4910; _t4949 = _t4936 * _t4907; _t4950 = _t4949+_t4948; _t4951 = _t4950+_t4947; _t4952 = _t4932 * 0.318310; _t4953 = _t4899 * 0.318310; _t4409 = _t4941; _t4410 = _t4946; _t4411 = _t4951; _t4412 = vertParams[344]; _t4413 = vertParams[345]; _t4414 = vertParams[346]; _t4415 = _t4932; _t4416 = _t4952; _t4417 = _t4953; } else { _t4409 = 0.000000; _t4410 = 0.000000; _t4411 = 0.000000; _t4412 = 0.000000; _t4413 = 0.000000; _t4414 = 0.000000; _t4415 = 0.000000; _t4416 = 0.000000; _t4417 = 0.000000; } _t4398 = _t4409; _t4399 = _t4410; _t4400 = _t4411; _t4401 = _t4412; _t4402 = _t4413; _t4403 = _t4414; _t4404 = _t4415; _t4405 = _t4416; _t4406 = _t4417; _t4407 = 1.000000; } else { _t4954 = 6.283185 * primary[13]; _t4955 = 3.141593 * primary[14]; _t4956 = sin(_t4955); _t4957 = cos(_t4955); _t4958 = sin(_t4954); _t4959 = _t4956 * _t4958; _t4960 = cos(_t4954); _t4961 = _t4956 * _t4960; if (_t4956 >= 0.000000) { _t4962 = _t4956; } else { _t4964 = -_t4956; _t4962 = _t4964; } _t4965 = _t4962 * 6.283185; _t4966 = _t4965 * 3.141593; if (vertParams[343] == 1.000000) { _t4976 = _t4283 * _t4377 + _t4284 * _t4378 + _t4285 * _t4379; if (_t4976 > 0.000000) { _t4977 = _t4283; _t4978 = _t4284; _t4979 = _t4285; _t4980 = _t4976; } else { _t4982 = -_t4283; _t4983 = -_t4284; _t4984 = -_t4285; _t4985 = -_t4976; _t4977 = _t4982; _t4978 = _t4983; _t4979 = _t4984; _t4980 = _t4985; } _t4986 = _t4977 * _t4961 + _t4978 * _t4959 + _t4979 * _t4957; if (vertParams[351] > 0.000000) { _t4992 = _t4377 * _t4977 + _t4378 * _t4978 + _t4379 * _t4979; _t4993 = 2.000000 * _t4992; _t4994 = _t4993 * _t4977; _t4995 = _t4994-_t4377; _t4996 = _t4993 * _t4978; _t4997 = _t4996-_t4378; _t4998 = _t4993 * _t4979; _t4999 = _t4998-_t4379; _t5000 = _t4995 * _t4961 + _t4997 * _t4959 + _t4999 * _t4957; _t5001 = pow(_t5000,vertParams[350]); _t5002 = _t5001 * 0.159155; if (_t5002 > 0.000000) { _t5008 = vertParams[350]+1.000000; _t5009 = vertParams[350]+2.000000; _t5010 = _t5009 * _t5002; _t5011 = vertParams[347] * _t5010; _t5012 = vertParams[348] * _t5010; _t5013 = vertParams[349] * _t5010; _t5014 = vertParams[351] * _t5008; _t5015 = _t5014 * _t5002; _t5003 = _t5011; _t5004 = _t5012; _t5005 = _t5013; _t5006 = _t5015; } else { _t5003 = 0.000000; _t5004 = 0.000000; _t5005 = 0.000000; _t5006 = 0.000000; } _t4987 = _t5003; _t4988 = _t5004; _t4989 = _t5005; _t4990 = _t5006; } else { _t4987 = 0.000000; _t4988 = 0.000000; _t4989 = 0.000000; _t4990 = 0.000000; } if (vertParams[351] < 1.000000) { _t5022 = vertParams[344] * 0.318310; _t5023 = vertParams[345] * 0.318310; _t5024 = vertParams[346] * 0.318310; _t5025 = 1.000000-vertParams[351]; _t5026 = _t5025 * 0.318310; _t5027 = _t5026 * _t4986; _t5028 = _t5026 * _t4980; _t5016 = _t5022; _t5017 = _t5023; _t5018 = _t5024; _t5019 = _t5027; _t5020 = _t5028; } else { _t5016 = 0.000000; _t5017 = 0.000000; _t5018 = 0.000000; _t5019 = 0.000000; _t5020 = 0.000000; } _t5029 = _t4987+_t5016; _t5030 = _t4988+_t5017; _t5031 = _t4989+_t5018; _t5032 = _t4990+_t5019; _t5033 = _t4990+_t5020; _t5034 = _t5029 * _t4986; _t5035 = _t5030 * _t4986; _t5036 = _t5031 * _t4986; _t4967 = _t5034; _t4968 = _t5035; _t4969 = _t5036; _t4970 = _t4986; _t4971 = _t5032; _t4972 = _t5033; } else if (vertParams[343] == 2.000000) { _t5037 = _t4377 * _t4283 + _t4378 * _t4284 + _t4379 * _t4285; _t5038 = _t4961 * _t4283 + _t4959 * _t4284 + _t4957 * _t4285; _t5039 = _t5037 * _t5038; if (_t5037 > 0.000000) { _t5040 = vertParams[350]; } else { _t5040 = vertParams[351]; } if (_t5038 > 0.000000) { _t5042 = vertParams[350]; } else { _t5042 = vertParams[351]; } if (_t5039 > 0.000000) { _t5048 = _t4377+_t4961; _t5049 = _t4378+_t4959; _t5050 = _t4379+_t4957; _t5051 = sqrt(_t5048*_t5048+_t5049*_t5049+_t5050*_t5050); _t5052 = (float)1.0 / (_t5051); _t5053 = _t5048 * _t5052; _t5054 = _t5049 * _t5052; _t5055 = _t5050 * _t5052; _t5044 = _t5053; _t5045 = _t5054; _t5046 = _t5055; } else { _t5056 = _t4961 * _t5040; _t5057 = _t4377+_t5056; _t5058 = _t4959 * _t5040; _t5059 = _t4378+_t5058; _t5060 = _t4957 * _t5040; _t5061 = _t4379+_t5060; _t5062 = sqrt(_t5057*_t5057+_t5059*_t5059+_t5061*_t5061); _t5063 = (float)1.0 / (_t5062); _t5064 = _t5057 * _t5063; _t5065 = _t5059 * _t5063; _t5066 = _t5061 * _t5063; _t5044 = _t5064; _t5045 = _t5065; _t5046 = _t5066; } _t5067 = _t5044 * _t4283 + _t5045 * _t4284 + _t5046 * _t4285; if (_t5067 < 0.000000) { _t5072 = -_t5044; _t5073 = -_t5045; _t5074 = -_t5046; _t5068 = _t5072; _t5069 = _t5073; _t5070 = _t5074; } else { _t5068 = _t5044; _t5069 = _t5045; _t5070 = _t5046; } _t5075 = _t4377 * _t5068 + _t4378 * _t5069 + _t4379 * _t5070; _t5076 = _t4961 * _t5068 + _t4959 * _t5069 + _t4957 * _t5070; if (_t4285 < -0.999999) { _t5077 = 0.000000; _t5078 = -1.000000; _t5079 = 0.000000; _t5080 = -1.000000; _t5081 = 0.000000; _t5082 = 0.000000; } else { _t5084 = 1.000000+_t4285; _t5085 = (float)1.0 / (_t5084); _t5086 = -_t4283; _t5087 = _t5086 * _t4284; _t5088 = _t5087 * _t5085; _t5089 = -_t4283; _t5090 = _t4283 * _t4283; _t5091 = _t5090 * _t5085; _t5092 = 1.000000-_t5091; _t5093 = -_t4284; _t5094 = _t4284 * _t4284; _t5095 = _t5094 * _t5085; _t5096 = 1.000000-_t5095; _t5077 = _t5092; _t5078 = _t5088; _t5079 = _t5089; _t5080 = _t5088; _t5081 = _t5096; _t5082 = _t5093; } _t5097 = _t4283 * _t5068 + _t4284 * _t5069 + _t4285 * _t5070; _t5098 = _t5080 * _t5068 + _t5081 * _t5069 + _t5082 * _t5070; _t5099 = _t5077 * _t5068 + _t5078 * _t5069 + _t5079 * _t5070; _t5100 = _t5097 * _t5097; _t5101 = vertParams[352] * vertParams[352]; _t5102 = _t5098 * _t5098; _t5103 = _t5102 / _t5101; _t5104 = vertParams[352] * vertParams[352]; _t5105 = _t5099 * _t5099; _t5106 = _t5105 / _t5104; _t5107 = _t5106+_t5103; _t5108 = _t5107 / _t5100; _t5109 = _t5100 * _t5100; _t5110 = 3.141593 * vertParams[352]; _t5111 = _t5110 * vertParams[352]; _t5112 = _t5111 * _t5109; _t5113 = -_t5108; _t5114 = exp(_t5113); _t5115 = _t5114 / _t5112; if (_t5075 > 0.000000) { _t5116 = vertParams[351]; } else { _t5116 = vertParams[350]; } _t5118 = _t5116 * _t5116; _t5119 = _t5075 * _t5075; _t5120 = 1.000000-_t5119; _t5121 = _t5120 * _t5118; _t5122 = 1.000000-_t5121; if (_t5122 <= 0.000000) { _t5123 = 1.000000; } else { if (_t5075 >= 0.000000) { _t5125 = _t5075; } else { _t5127 = -_t5075; _t5125 = _t5127; } _t5128 = sqrt(_t5122); _t5129 = vertParams[350] * _t5128; _t5130 = vertParams[350] * _t5125; _t5131 = _t5125+_t5129; _t5132 = _t5125-_t5129; _t5133 = _t5132 / _t5131; _t5134 = _t5130+_t5128; _t5135 = _t5130-_t5128; _t5136 = _t5135 / _t5134; _t5137 = _t5136 * _t5136; _t5138 = _t5133 * _t5133; _t5139 = _t5138+_t5137; _t5140 = 0.500000 * _t5139; _t5123 = _t5140; } if (_t5037 >= 0.000000) { _t5141 = _t5037; } else { _t5143 = -_t5037; _t5141 = _t5143; } if (_t5038 >= 0.000000) { _t5144 = _t5038; } else { _t5146 = -_t5038; _t5144 = _t5146; } _t5147 = _t5144 * _t5144; _t5148 = 1.000001-_t5147; if (_t5148 >= 0.000000) { _t5149 = _t5148; } else { _t5151 = -_t5148; _t5149 = _t5151; } _t5152 = sqrt(_t5149); _t5153 = _t5152 / _t5144; if (_t5153 <= 0.000000) { _t5154 = 1.000000; } else { _t5156 = vertParams[352] * _t5153; _t5157 = (float)1.0 / (_t5156); if (_t5157 >= 1.600000) { _t5158 = 1.000000; } else { _t5160 = _t5157 * _t5157; _t5161 = 2.577000 * _t5160; _t5162 = 2.276000 * _t5157; _t5163 = 1.000000+_t5162; _t5164 = _t5163+_t5161; _t5165 = 2.181000 * _t5160; _t5166 = 3.535000 * _t5157; _t5167 = _t5166+_t5165; _t5168 = _t5167 / _t5164; _t5158 = _t5168; } _t5154 = _t5158; } _t5169 = _t5141 * _t5141; _t5170 = 1.000001-_t5169; if (_t5170 >= 0.000000) { _t5171 = _t5170; } else { _t5173 = -_t5170; _t5171 = _t5173; } _t5174 = sqrt(_t5171); _t5175 = _t5174 / _t5141; if (_t5175 <= 0.000000) { _t5176 = 1.000000; } else { _t5178 = vertParams[352] * _t5175; _t5179 = (float)1.0 / (_t5178); if (_t5179 >= 1.600000) { _t5180 = 1.000000; } else { _t5182 = _t5179 * _t5179; _t5183 = 2.577000 * _t5182; _t5184 = 2.276000 * _t5179; _t5185 = 1.000000+_t5184; _t5186 = _t5185+_t5183; _t5187 = 2.181000 * _t5182; _t5188 = 3.535000 * _t5179; _t5189 = _t5188+_t5187; _t5190 = _t5189 / _t5186; _t5180 = _t5190; } _t5176 = _t5180; } _t5191 = _t5176 * _t5154; _t5192 = sqrt(_t5141); _t5193 = 0.200000 * _t5192; _t5194 = 1.200000-_t5193; _t5195 = vertParams[352] * _t5194; _t5196 = _t5097 * _t5097; _t5197 = _t5195 * _t5195; _t5198 = _t5098 * _t5098; _t5199 = _t5198 / _t5197; _t5200 = _t5195 * _t5195; _t5201 = _t5099 * _t5099; _t5202 = _t5201 / _t5200; _t5203 = _t5202+_t5199; _t5204 = _t5203 / _t5196; _t5205 = _t5196 * _t5196; _t5206 = 3.141593 * _t5195; _t5207 = _t5206 * _t5195; _t5208 = _t5207 * _t5205; _t5209 = -_t5204; _t5210 = exp(_t5209); _t5211 = _t5210 / _t5208; _t5212 = _t5097 * _t5211; _t5213 = sqrt(_t5144); _t5214 = 0.200000 * _t5213; _t5215 = 1.200000-_t5214; _t5216 = vertParams[352] * _t5215; _t5217 = _t5097 * _t5097; _t5218 = _t5216 * _t5216; _t5219 = _t5098 * _t5098; _t5220 = _t5219 / _t5218; _t5221 = _t5216 * _t5216; _t5222 = _t5099 * _t5099; _t5223 = _t5222 / _t5221; _t5224 = _t5223+_t5220; _t5225 = _t5224 / _t5217; _t5226 = _t5217 * _t5217; _t5227 = 3.141593 * _t5216; _t5228 = _t5227 * _t5216; _t5229 = _t5228 * _t5226; _t5230 = -_t5225; _t5231 = exp(_t5230); _t5232 = _t5231 / _t5229; _t5233 = _t5097 * _t5232; if (_t5039 > 0.000000) { _t5239 = 4.000000 * _t5037; _t5240 = _t5123 * _t5115; _t5241 = _t5240 * _t5191; _t5242 = _t5241 / _t5239; if (_t5242 >= 0.000000) { _t5243 = _t5242; } else { _t5245 = -_t5242; _t5243 = _t5245; } _t5246 = vertParams[344] * _t5243; _t5247 = vertParams[345] * _t5243; _t5248 = vertParams[346] * _t5243; _t5249 = 4.000000 * _t5076; _t5250 = _t5212 * _t5123; _t5251 = _t5250 / _t5249; if (_t5251 >= 0.000000) { _t5252 = _t5251; } else { _t5254 = -_t5251; _t5252 = _t5254; } _t5255 = 4.000000 * _t5075; _t5256 = _t5233 * _t5123; _t5257 = _t5256 / _t5255; if (_t5257 >= 0.000000) { _t5258 = _t5257; } else { _t5260 = -_t5257; _t5258 = _t5260; } _t5234 = _t5246; _t5235 = _t5247; _t5236 = _t5248; _t5237 = _t5252; _t5238 = _t5258; } else { _t5261 = _t5040 * _t5076; _t5262 = _t5075+_t5261; _t5263 = _t5042 * _t5075; _t5264 = _t5076+_t5263; _t5265 = (float)1.0 / (_t5040); _t5266 = _t5265 * _t5265; _t5267 = _t5262 * _t5262; _t5268 = _t5037 * _t5267; _t5269 = _t5040 * _t5040; _t5270 = 1.000000-_t5123; _t5271 = _t5270 * _t5115; _t5272 = _t5271 * _t5191; _t5273 = _t5272 * _t5269; _t5274 = _t5273 * _t5075; _t5275 = _t5274 * _t5076; _t5276 = _t5266 * _t5275; _t5277 = _t5276 / _t5268; if (_t5277 >= 0.000000) { _t5278 = _t5277; } else { _t5280 = -_t5277; _t5278 = _t5280; } _t5281 = vertParams[347] * _t5278; _t5282 = vertParams[348] * _t5278; _t5283 = vertParams[349] * _t5278; _t5284 = _t5262 * _t5262; _t5285 = _t5040 * _t5040; _t5286 = _t5285 * _t5076; _t5287 = 1.000000-_t5123; _t5288 = _t5212 * _t5287; _t5289 = _t5288 * _t5286; _t5290 = _t5289 / _t5284; if (_t5290 >= 0.000000) { _t5291 = _t5290; } else { _t5293 = -_t5290; _t5291 = _t5293; } _t5294 = _t5264 * _t5264; _t5295 = _t5042 * _t5042; _t5296 = _t5295 * _t5075; _t5297 = 1.000000-_t5123; _t5298 = _t5233 * _t5297; _t5299 = _t5298 * _t5296; _t5300 = _t5299 / _t5294; if (_t5300 >= 0.000000) { _t5301 = _t5300; } else { _t5303 = -_t5300; _t5301 = _t5303; } _t5234 = _t5281; _t5235 = _t5282; _t5236 = _t5283; _t5237 = _t5291; _t5238 = _t5301; } _t4967 = _t5234; _t4968 = _t5235; _t4969 = _t5236; _t4970 = _t5038; _t4971 = _t5237; _t4972 = _t5238; } else if (vertParams[343] == 0.000000) { _t5304 = _t4283 * _t4377 + _t4284 * _t4378 + _t4285 * _t4379; if (_t5304 > 0.000000) { _t5305 = _t4283; _t5306 = _t4284; _t5307 = _t4285; _t5308 = _t5304; } else { _t5310 = -_t4283; _t5311 = -_t4284; _t5312 = -_t4285; _t5313 = -_t5304; _t5305 = _t5310; _t5306 = _t5311; _t5307 = _t5312; _t5308 = _t5313; } _t5314 = _t5305 * _t4961 + _t5306 * _t4959 + _t5307 * _t4957; _t5315 = _t5314 * 0.318310; _t5316 = _t5308 * 0.318310; _t5317 = _t5315 * vertParams[344]; _t5318 = _t5315 * vertParams[345]; _t5319 = _t5315 * vertParams[346]; _t4967 = _t5317; _t4968 = _t5318; _t4969 = _t5319; _t4970 = _t5314; _t4971 = _t5315; _t4972 = _t5316; } else { _t4967 = 0.000000; _t4968 = 0.000000; _t4969 = 0.000000; _t4970 = 0.000000; _t4971 = 0.000000; _t4972 = 0.000000; } _t4398 = _t4961; _t4399 = _t4959; _t4400 = _t4957; _t4401 = _t4967; _t4402 = _t4968; _t4403 = _t4969; _t4404 = _t4970; _t4405 = _t4971; _t4406 = _t4972; _t4407 = _t4966; } _t5320 = _t4401 * _t4407; _t5321 = _t4402 * _t4407; _t5322 = _t4403 * _t4407; _t5323 = _t4406 * _t4406; _t5324 = _t4397 * _t5323; _t5325 = _t5324+_t4396; _t5326 = _t4404 / _t4405; _t5327 = _t5326 * _t5326; _t5328 = _t5327 * _t5325; _t5329 = (float)1.0 / (_t4405); _t5330 = _t5329 * _t5329; _t5331 = _t4274 * _t5320; _t5332 = _t4275 * _t5321; _t5333 = _t4276 * _t5322; _t5334 = _t5331 * vertParams[353]; _t5335 = _t5332 * vertParams[353]; _t5336 = _t5333 * vertParams[353]; if (vertParams[354] == 0.000000) { _t5349 = vertParams[360] * vertParams[362]; _t5350 = vertParams[359] * vertParams[363]; _t5351 = _t5350-_t5349; _t5352 = vertParams[359] * vertParams[364]; _t5353 = vertParams[361] * vertParams[362]; _t5354 = _t5353-_t5352; _t5355 = vertParams[361] * vertParams[363]; _t5356 = vertParams[360] * vertParams[364]; _t5357 = _t5356-_t5355; _t5358 = sqrt(_t5357*_t5357+_t5354*_t5354+_t5351*_t5351); _t5359 = (float)1.0 / (_t5358); _t5360 = _t5357 * _t5359; _t5361 = _t5354 * _t5359; _t5362 = _t5351 * _t5359; _t5363 = _t4399 * vertParams[362]; _t5364 = _t4398 * vertParams[363]; _t5365 = _t5364-_t5363; _t5366 = _t4398 * vertParams[364]; _t5367 = _t4400 * vertParams[362]; _t5368 = _t5367-_t5366; _t5369 = _t4400 * vertParams[363]; _t5370 = _t4399 * vertParams[364]; _t5371 = _t5370-_t5369; _t5372 = _t5371 * vertParams[359] + _t5368 * vertParams[360] + _t5365 * vertParams[361]; _t5373 = (float)1.0 / (_t5372); _t5374 = _t4277-vertParams[356]; _t5375 = _t4278-vertParams[357]; _t5376 = _t4279-vertParams[358]; _t5377 = _t5374 * _t5371 + _t5375 * _t5368 + _t5376 * _t5365; _t5378 = _t5377 * _t5373; _t5379 = _t5375 * vertParams[359]; _t5380 = _t5374 * vertParams[360]; _t5381 = _t5380-_t5379; _t5382 = _t5374 * vertParams[361]; _t5383 = _t5376 * vertParams[359]; _t5384 = _t5383-_t5382; _t5385 = _t5376 * vertParams[360]; _t5386 = _t5375 * vertParams[361]; _t5387 = _t5386-_t5385; _t5388 = _t4398 * _t5387 + _t4399 * _t5384 + _t4400 * _t5381; _t5389 = _t5388 * _t5373; _t5390 = vertParams[362] * _t5387 + vertParams[363] * _t5384 + vertParams[364] * _t5381; _t5391 = _t5390 * _t5373; _t5392 = 1.000000-_t5378; _t5393 = _t5392-_t5389; _t5394 = _t5391 * _t4398; _t5395 = _t4277+_t5394; _t5396 = _t5391 * _t4399; _t5397 = _t4278+_t5396; _t5398 = _t5391 * _t4400; _t5399 = _t4279+_t5398; _t5400 = _t5389 * vertParams[371]; _t5401 = _t5378 * vertParams[368]; _t5402 = _t5393 * vertParams[365]; _t5403 = _t5402+_t5401; _t5404 = _t5403+_t5400; _t5405 = _t5389 * vertParams[372]; _t5406 = _t5378 * vertParams[369]; _t5407 = _t5393 * vertParams[366]; _t5408 = _t5407+_t5406; _t5409 = _t5408+_t5405; _t5410 = _t5389 * vertParams[373]; _t5411 = _t5378 * vertParams[370]; _t5412 = _t5393 * vertParams[367]; _t5413 = _t5412+_t5411; _t5414 = _t5413+_t5410; _t5415 = sqrt(_t5404*_t5404+_t5409*_t5409+_t5414*_t5414); _t5416 = (float)1.0 / (_t5415); _t5417 = _t5404 * _t5416; _t5418 = _t5409 * _t5416; _t5419 = _t5414 * _t5416; if (vertParams[392] == 0.000000) { _t5420 = _t5378; _t5421 = _t5389; } else { _t5423 = _t5389 * vertParams[397]; _t5424 = _t5378 * vertParams[395]; _t5425 = 1.000000-_t5378; _t5426 = _t5425-_t5389; _t5427 = _t5426 * vertParams[393]; _t5428 = _t5427+_t5424; _t5429 = _t5428+_t5423; _t5430 = _t5389 * vertParams[398]; _t5431 = _t5378 * vertParams[396]; _t5432 = 1.000000-_t5378; _t5433 = _t5432-_t5389; _t5434 = _t5433 * vertParams[394]; _t5435 = _t5434+_t5431; _t5436 = _t5435+_t5430; _t5420 = _t5429; _t5421 = _t5436; } _t5337 = _t5395; _t5338 = _t5397; _t5339 = _t5399; _t5340 = _t5360; _t5341 = _t5361; _t5342 = _t5362; _t5343 = _t5417; _t5344 = _t5418; _t5345 = _t5419; _t5346 = _t5420; _t5347 = _t5421; } else { _t5337 = 0.000000; _t5338 = 0.000000; _t5339 = 0.000000; _t5340 = 0.000000; _t5341 = 0.000000; _t5342 = 0.000000; _t5343 = 0.000000; _t5344 = 0.000000; _t5345 = 0.000000; _t5346 = 0.000000; _t5347 = 0.000000; } _t5437 = -_t4398; _t5438 = -_t4399; _t5439 = -_t4400; _t5440 = _t4279-_t5339; _t5441 = _t5440 * _t5440; _t5442 = _t4278-_t5338; _t5443 = _t5442 * _t5442; _t5444 = _t4277-_t5337; _t5445 = _t5444 * _t5444; _t5446 = _t5445+_t5443; _t5447 = _t5446+_t5441; _t5448 = _t5447 * _t5447; _t5449 = _t5330 * _t5448; _t5450 = _t4398 * _t5343 + _t4399 * _t5344 + _t4400 * _t5345; if (_t5450 >= 0.000000) { _t5451 = _t5450; } else { _t5453 = -_t5450; _t5451 = _t5453; } _t5454 = _t5451 * _t5451; _t5455 = (float)1.0 / (_t5454); _t5456 = _t5449 * _t5455; _t5457 = _t5328 * _t5455; if (vertParams[401] == 0.000000) { if (vertParams[402] == 1.000000) { _t5481 = _t5343 * _t5437 + _t5344 * _t5438 + _t5345 * _t5439; if (_t5481 > 0.000000) { _t5482 = _t5343; _t5483 = _t5344; _t5484 = _t5345; _t5485 = _t5481; } else { _t5487 = -_t5343; _t5488 = -_t5344; _t5489 = -_t5345; _t5490 = -_t5481; _t5482 = _t5487; _t5483 = _t5488; _t5484 = _t5489; _t5485 = _t5490; } _t5491 = _t5437 * _t5482 + _t5438 * _t5483 + _t5439 * _t5484; _t5492 = 2.000000 * _t5491; _t5493 = _t5492 * _t5482; _t5494 = _t5493-_t5437; _t5495 = _t5492 * _t5483; _t5496 = _t5495-_t5438; _t5497 = _t5492 * _t5484; _t5498 = _t5497-_t5439; if (vertParams[400] > vertParams[410]) { _t5504 = 6.283185 * primary[15]; _t5505 = 1.000000-primary[16]; if (_t5505 >= 0.000001) { _t5506 = _t5505; } else { _t5506 = 0.000001; } _t5508 = sqrt(_t5506); if (primary[16] >= 0.000001) { _t5509 = primary[16]; } else { _t5509 = 0.000001; } _t5511 = sqrt(_t5509); _t5512 = sin(_t5504); _t5513 = _t5512 * _t5508; _t5514 = cos(_t5504); _t5515 = _t5514 * _t5508; if (_t5484 < -0.999999) { _t5516 = 0.000000; _t5517 = -1.000000; _t5518 = 0.000000; _t5519 = -1.000000; _t5520 = 0.000000; _t5521 = 0.000000; } else { _t5523 = 1.000000+_t5484; _t5524 = (float)1.0 / (_t5523); _t5525 = -_t5482; _t5526 = _t5525 * _t5483; _t5527 = _t5526 * _t5524; _t5528 = -_t5482; _t5529 = _t5482 * _t5482; _t5530 = _t5529 * _t5524; _t5531 = 1.000000-_t5530; _t5532 = -_t5483; _t5533 = _t5483 * _t5483; _t5534 = _t5533 * _t5524; _t5535 = 1.000000-_t5534; _t5516 = _t5531; _t5517 = _t5527; _t5518 = _t5528; _t5519 = _t5527; _t5520 = _t5535; _t5521 = _t5532; } _t5536 = _t5511 * _t5482; _t5537 = _t5513 * _t5519; _t5538 = _t5515 * _t5516; _t5539 = _t5538+_t5537; _t5540 = _t5539+_t5536; _t5541 = _t5511 * _t5483; _t5542 = _t5513 * _t5520; _t5543 = _t5515 * _t5517; _t5544 = _t5543+_t5542; _t5545 = _t5544+_t5541; _t5546 = _t5511 * _t5484; _t5547 = _t5513 * _t5521; _t5548 = _t5515 * _t5518; _t5549 = _t5548+_t5547; _t5550 = _t5549+_t5546; _t5551 = 1.000000-vertParams[410]; _t5499 = _t5540; _t5500 = _t5545; _t5501 = _t5550; _t5502 = _t5551; } else { _t5552 = vertParams[409]+1.000000; _t5553 = (float)1.0 / (_t5552); _t5554 = pow(primary[16],_t5553); _t5555 = _t5554 * _t5554; _t5556 = 1.000000-_t5555; if (_t5556 >= 0.000001) { _t5557 = _t5556; } else { _t5557 = 0.000001; } _t5559 = sqrt(_t5557); _t5560 = 6.283185 * primary[15]; _t5561 = sin(_t5560); _t5562 = _t5559 * _t5561; _t5563 = cos(_t5560); _t5564 = _t5559 * _t5563; if (_t5498 < -0.999999) { _t5565 = 0.000000; _t5566 = -1.000000; _t5567 = 0.000000; _t5568 = -1.000000; _t5569 = 0.000000; _t5570 = 0.000000; } else { _t5572 = 1.000000+_t5498; _t5573 = (float)1.0 / (_t5572); _t5574 = -_t5494; _t5575 = _t5574 * _t5496; _t5576 = _t5575 * _t5573; _t5577 = -_t5494; _t5578 = _t5494 * _t5494; _t5579 = _t5578 * _t5573; _t5580 = 1.000000-_t5579; _t5581 = -_t5496; _t5582 = _t5496 * _t5496; _t5583 = _t5582 * _t5573; _t5584 = 1.000000-_t5583; _t5565 = _t5580; _t5566 = _t5576; _t5567 = _t5577; _t5568 = _t5576; _t5569 = _t5584; _t5570 = _t5581; } _t5585 = _t5554 * _t5494; _t5586 = _t5562 * _t5568; _t5587 = _t5564 * _t5565; _t5588 = _t5587+_t5586; _t5589 = _t5588+_t5585; _t5590 = _t5554 * _t5496; _t5591 = _t5562 * _t5569; _t5592 = _t5564 * _t5566; _t5593 = _t5592+_t5591; _t5594 = _t5593+_t5590; _t5595 = _t5554 * _t5498; _t5596 = _t5562 * _t5570; _t5597 = _t5564 * _t5567; _t5598 = _t5597+_t5596; _t5599 = _t5598+_t5595; _t5499 = _t5589; _t5500 = _t5594; _t5501 = _t5599; _t5502 = vertParams[410]; } _t5600 = _t5482 * _t5499 + _t5483 * _t5500 + _t5484 * _t5501; if (vertParams[410] > 0.000000) { _t5606 = _t5494 * _t5499 + _t5496 * _t5500 + _t5498 * _t5501; _t5607 = pow(_t5606,vertParams[409]); _t5608 = _t5607 * 0.159155; if (_t5608 > 0.000000) { _t5614 = vertParams[409]+1.000000; _t5615 = vertParams[409]+2.000000; _t5616 = _t5615 * _t5608; _t5617 = vertParams[406] * _t5616; _t5618 = vertParams[407] * _t5616; _t5619 = vertParams[408] * _t5616; _t5620 = vertParams[410] * _t5614; _t5621 = _t5620 * _t5608; _t5609 = _t5617; _t5610 = _t5618; _t5611 = _t5619; _t5612 = _t5621; } else { _t5609 = 0.000000; _t5610 = 0.000000; _t5611 = 0.000000; _t5612 = 0.000000; } _t5601 = _t5609; _t5602 = _t5610; _t5603 = _t5611; _t5604 = _t5612; } else { _t5601 = 0.000000; _t5602 = 0.000000; _t5603 = 0.000000; _t5604 = 0.000000; } if (vertParams[410] < 1.000000) { _t5628 = vertParams[403] * 0.318310; _t5629 = vertParams[404] * 0.318310; _t5630 = vertParams[405] * 0.318310; _t5631 = 1.000000-vertParams[410]; _t5632 = _t5631 * 0.318310; _t5633 = _t5632 * _t5600; _t5634 = _t5632 * _t5485; _t5622 = _t5628; _t5623 = _t5629; _t5624 = _t5630; _t5625 = _t5633; _t5626 = _t5634; } else { _t5622 = 0.000000; _t5623 = 0.000000; _t5624 = 0.000000; _t5625 = 0.000000; _t5626 = 0.000000; } _t5635 = _t5601+_t5622; _t5636 = _t5602+_t5623; _t5637 = _t5603+_t5624; _t5638 = _t5604+_t5625; _t5639 = _t5604+_t5626; _t5640 = _t5635 * _t5600; _t5641 = _t5636 * _t5600; _t5642 = _t5637 * _t5600; _t5643 = (float)1.0 / (_t5638); _t5644 = _t5640 * _t5643; _t5645 = _t5641 * _t5643; _t5646 = _t5642 * _t5643; _t5469 = _t5499; _t5470 = _t5500; _t5471 = _t5501; _t5472 = _t5644; _t5473 = _t5645; _t5474 = _t5646; _t5475 = _t5600; _t5476 = _t5638; _t5477 = _t5639; } else if (vertParams[402] == 2.000000) { _t5647 = _t5437 * _t5343 + _t5438 * _t5344 + _t5439 * _t5345; if (_t5647 >= 0.000000) { _t5648 = _t5647; } else { _t5650 = -_t5647; _t5648 = _t5650; } _t5651 = sqrt(_t5648); _t5652 = 0.200000 * _t5651; _t5653 = 1.200000-_t5652; _t5654 = vertParams[411] * _t5653; _t5655 = 6.283185 * primary[16]; _t5656 = sin(_t5655); _t5657 = cos(_t5655); _t5658 = _t5654 * _t5654; _t5659 = 1.000000-primary[15]; if (_t5659 >= 0.000001) { _t5660 = _t5659; } else { _t5660 = 0.000001; } _t5662 = log(_t5660); _t5663 = -_t5662; _t5664 = _t5658 * _t5663; _t5665 = 1.000000+_t5664; _t5666 = sqrt(_t5665); _t5667 = (float)1.0 / (_t5666); _t5668 = _t5667 * _t5667; _t5669 = 3.141593 * _t5658; _t5670 = _t5669 * _t5667; _t5671 = _t5670 * _t5668; _t5672 = 1.000000-primary[15]; _t5673 = _t5672 / _t5671; _t5674 = 1.000000-_t5668; if (_t5674 >= 0.000001) { _t5675 = _t5674; } else { _t5675 = 0.000001; } _t5677 = sqrt(_t5675); _t5678 = _t5677 * _t5656; _t5679 = _t5677 * _t5657; if (_t5345 < -0.999999) { _t5680 = 0.000000; _t5681 = -1.000000; _t5682 = 0.000000; _t5683 = -1.000000; _t5684 = 0.000000; _t5685 = 0.000000; } else { _t5687 = 1.000000+_t5345; _t5688 = (float)1.0 / (_t5687); _t5689 = -_t5343; _t5690 = _t5689 * _t5344; _t5691 = _t5690 * _t5688; _t5692 = -_t5343; _t5693 = _t5343 * _t5343; _t5694 = _t5693 * _t5688; _t5695 = 1.000000-_t5694; _t5696 = -_t5344; _t5697 = _t5344 * _t5344; _t5698 = _t5697 * _t5688; _t5699 = 1.000000-_t5698; _t5680 = _t5695; _t5681 = _t5691; _t5682 = _t5692; _t5683 = _t5691; _t5684 = _t5699; _t5685 = _t5696; } _t5700 = _t5667 * _t5343; _t5701 = _t5678 * _t5683; _t5702 = _t5679 * _t5680; _t5703 = _t5702+_t5701; _t5704 = _t5703+_t5700; _t5705 = _t5667 * _t5344; _t5706 = _t5678 * _t5684; _t5707 = _t5679 * _t5681; _t5708 = _t5707+_t5706; _t5709 = _t5708+_t5705; _t5710 = _t5667 * _t5345; _t5711 = _t5678 * _t5685; _t5712 = _t5679 * _t5682; _t5713 = _t5712+_t5711; _t5714 = _t5713+_t5710; _t5715 = _t5437 * _t5704 + _t5438 * _t5709 + _t5439 * _t5714; if (_t5715 > 0.000000) { _t5716 = vertParams[410]; } else { _t5716 = vertParams[409]; } _t5718 = _t5716 * _t5716; _t5719 = _t5715 * _t5715; _t5720 = 1.000000-_t5719; _t5721 = _t5720 * _t5718; _t5722 = 1.000000-_t5721; if (_t5722 <= 0.000000) { _t5723 = 0.000000; _t5724 = 1.000000; } else { if (_t5715 >= 0.000000) { _t5726 = _t5715; } else { _t5728 = -_t5715; _t5726 = _t5728; } _t5729 = sqrt(_t5722); _t5730 = vertParams[409] * _t5729; _t5731 = vertParams[409] * _t5726; _t5732 = _t5726+_t5730; _t5733 = _t5726-_t5730; _t5734 = _t5733 / _t5732; _t5735 = _t5731+_t5729; _t5736 = _t5731-_t5729; _t5737 = _t5736 / _t5735; _t5738 = -_t5729; if (_t5715 > 0.000000) { _t5739 = _t5738; } else { _t5739 = _t5729; } _t5741 = _t5737 * _t5737; _t5742 = _t5734 * _t5734; _t5743 = _t5742+_t5741; _t5744 = 0.500000 * _t5743; _t5723 = _t5739; _t5724 = _t5744; } if (vertParams[400] <= _t5724) { _t5755 = _t5437 * _t5704 + _t5438 * _t5709 + _t5439 * _t5714; _t5756 = 2.000000 * _t5755; _t5757 = _t5756 * _t5704; _t5758 = _t5757-_t5437; _t5759 = _t5756 * _t5709; _t5760 = _t5759-_t5438; _t5761 = _t5756 * _t5714; _t5762 = _t5761-_t5439; _t5763 = _t5758 * _t5704 + _t5760 * _t5709 + _t5762 * _t5714; _t5764 = 4.000000 * _t5763; _t5765 = _t5673 * _t5724; _t5766 = _t5765 / _t5764; if (_t5766 >= 0.000000) { _t5767 = _t5766; } else { _t5769 = -_t5766; _t5767 = _t5769; } _t5770 = 4.000000 * _t5715; _t5771 = (float)1.0 / (_t5770); _t5772 = _t5758 * _t5343 + _t5760 * _t5344 + _t5762 * _t5345; if (_t5772 >= 0.000000) { _t5773 = _t5772; } else { _t5775 = -_t5772; _t5773 = _t5775; } _t5776 = sqrt(_t5773); _t5777 = 0.200000 * _t5776; _t5778 = 1.200000-_t5777; _t5779 = vertParams[411] * _t5778; _t5780 = _t5667 * _t5667; _t5781 = _t5779 * _t5779; _t5782 = _t5678 * _t5678; _t5783 = _t5782 / _t5781; _t5784 = _t5779 * _t5779; _t5785 = _t5679 * _t5679; _t5786 = _t5785 / _t5784; _t5787 = _t5786+_t5783; _t5788 = _t5787 / _t5780; _t5789 = _t5780 * _t5780; _t5790 = 3.141593 * _t5779; _t5791 = _t5790 * _t5779; _t5792 = _t5791 * _t5789; _t5793 = -_t5788; _t5794 = exp(_t5793); _t5795 = _t5794 / _t5792; _t5796 = _t5724 * _t5795; _t5797 = _t5796 * _t5667; _t5798 = _t5797 * _t5771; if (_t5798 >= 0.000000) { _t5799 = _t5798; } else { _t5801 = -_t5798; _t5799 = _t5801; } _t5745 = _t5758; _t5746 = _t5760; _t5747 = _t5762; _t5748 = vertParams[403]; _t5749 = vertParams[404]; _t5750 = vertParams[405]; _t5751 = _t5772; _t5752 = _t5767; _t5753 = _t5799; } else { if (_t5723 < 0.000000) { _t5802 = vertParams[410]; } else { _t5802 = vertParams[409]; } _t5804 = _t5437 * _t5704 + _t5438 * _t5709 + _t5439 * _t5714; _t5805 = _t5804 * _t5802; _t5806 = _t5805+_t5723; _t5807 = _t5437 * _t5802; _t5808 = _t5704 * _t5806; _t5809 = _t5808-_t5807; _t5810 = _t5438 * _t5802; _t5811 = _t5709 * _t5806; _t5812 = _t5811-_t5810; _t5813 = _t5439 * _t5802; _t5814 = _t5714 * _t5806; _t5815 = _t5814-_t5813; if (_t5647 > 0.000000) { _t5816 = vertParams[409]; } else { _t5816 = vertParams[410]; } _t5818 = (float)1.0 / (_t5816); _t5819 = _t5818 * _t5818; _t5820 = vertParams[406] * _t5819; _t5821 = vertParams[407] * _t5819; _t5822 = vertParams[408] * _t5819; _t5823 = _t5809 * _t5704 + _t5812 * _t5709 + _t5815 * _t5714; _t5824 = _t5816 * _t5823; _t5825 = _t5715+_t5824; _t5826 = _t5825 * _t5825; _t5827 = _t5816 * _t5816; _t5828 = _t5827 * _t5823; _t5829 = _t5828 / _t5826; if (_t5829 >= 0.000000) { _t5830 = _t5829; } else { _t5832 = -_t5829; _t5830 = _t5832; } _t5833 = 1.000000-_t5724; _t5834 = _t5673 * _t5833; _t5835 = _t5834 * _t5830; if (_t5835 >= 0.000000) { _t5836 = _t5835; } else { _t5838 = -_t5835; _t5836 = _t5838; } _t5839 = _t5809 * _t5343 + _t5812 * _t5344 + _t5815 * _t5345; if (_t5839 > 0.000000) { _t5840 = vertParams[409]; } else { _t5840 = vertParams[410]; } _t5842 = _t5840 * _t5715; _t5843 = _t5823+_t5842; _t5844 = _t5843 * _t5843; _t5845 = _t5840 * _t5840; _t5846 = _t5845 * _t5715; _t5847 = _t5846 / _t5844; if (_t5839 >= 0.000000) { _t5848 = _t5839; } else { _t5850 = -_t5839; _t5848 = _t5850; } _t5851 = sqrt(_t5848); _t5852 = 0.200000 * _t5851; _t5853 = 1.200000-_t5852; _t5854 = vertParams[411] * _t5853; _t5855 = _t5667 * _t5667; _t5856 = _t5854 * _t5854; _t5857 = _t5678 * _t5678; _t5858 = _t5857 / _t5856; _t5859 = _t5854 * _t5854; _t5860 = _t5679 * _t5679; _t5861 = _t5860 / _t5859; _t5862 = _t5861+_t5858; _t5863 = _t5862 / _t5855; _t5864 = _t5855 * _t5855; _t5865 = 3.141593 * _t5854; _t5866 = _t5865 * _t5854; _t5867 = _t5866 * _t5864; _t5868 = -_t5863; _t5869 = exp(_t5868); _t5870 = _t5869 / _t5867; _t5871 = 1.000000-_t5724; _t5872 = _t5871 * _t5870; _t5873 = _t5872 * _t5667; _t5874 = _t5873 * _t5847; if (_t5874 >= 0.000000) { _t5875 = _t5874; } else { _t5877 = -_t5874; _t5875 = _t5877; } _t5745 = _t5809; _t5746 = _t5812; _t5747 = _t5815; _t5748 = _t5820; _t5749 = _t5821; _t5750 = _t5822; _t5751 = _t5839; _t5752 = _t5836; _t5753 = _t5875; } if (_t5647 >= 0.000000) { _t5878 = _t5647; } else { _t5880 = -_t5647; _t5878 = _t5880; } if (_t5751 >= 0.000000) { _t5881 = _t5751; } else { _t5883 = -_t5751; _t5881 = _t5883; } _t5884 = _t5667 * _t5667; _t5885 = vertParams[411] * vertParams[411]; _t5886 = _t5678 * _t5678; _t5887 = _t5886 / _t5885; _t5888 = vertParams[411] * vertParams[411]; _t5889 = _t5679 * _t5679; _t5890 = _t5889 / _t5888; _t5891 = _t5890+_t5887; _t5892 = _t5891 / _t5884; _t5893 = _t5884 * _t5884; _t5894 = 3.141593 * vertParams[411]; _t5895 = _t5894 * vertParams[411]; _t5896 = _t5895 * _t5893; _t5897 = -_t5892; _t5898 = exp(_t5897); _t5899 = _t5898 / _t5896; _t5900 = _t5881 * _t5881; _t5901 = 1.000001-_t5900; if (_t5901 >= 0.000000) { _t5902 = _t5901; } else { _t5904 = -_t5901; _t5902 = _t5904; } _t5905 = sqrt(_t5902); _t5906 = _t5905 / _t5881; if (_t5906 <= 0.000000) { _t5907 = 1.000000; } else { _t5909 = vertParams[411] * _t5906; _t5910 = (float)1.0 / (_t5909); if (_t5910 >= 1.600000) { _t5911 = 1.000000; } else { _t5913 = _t5910 * _t5910; _t5914 = 2.577000 * _t5913; _t5915 = 2.276000 * _t5910; _t5916 = 1.000000+_t5915; _t5917 = _t5916+_t5914; _t5918 = 2.181000 * _t5913; _t5919 = 3.535000 * _t5910; _t5920 = _t5919+_t5918; _t5921 = _t5920 / _t5917; _t5911 = _t5921; } _t5907 = _t5911; } _t5922 = _t5878 * _t5878; _t5923 = 1.000001-_t5922; if (_t5923 >= 0.000000) { _t5924 = _t5923; } else { _t5926 = -_t5923; _t5924 = _t5926; } _t5927 = sqrt(_t5924); _t5928 = _t5927 / _t5878; if (_t5928 <= 0.000000) { _t5929 = 1.000000; } else { _t5931 = vertParams[411] * _t5928; _t5932 = (float)1.0 / (_t5931); if (_t5932 >= 1.600000) { _t5933 = 1.000000; } else { _t5935 = _t5932 * _t5932; _t5936 = 2.577000 * _t5935; _t5937 = 2.276000 * _t5932; _t5938 = 1.000000+_t5937; _t5939 = _t5938+_t5936; _t5940 = 2.181000 * _t5935; _t5941 = 3.535000 * _t5932; _t5942 = _t5941+_t5940; _t5943 = _t5942 / _t5939; _t5933 = _t5943; } _t5929 = _t5933; } _t5944 = _t5929 * _t5907; _t5945 = _t5899 * _t5944; _t5946 = _t5945 * _t5715; _t5947 = _t5673 * _t5878; _t5948 = _t5946 / _t5947; if (_t5948 >= 0.000000) { _t5949 = _t5948; } else { _t5951 = -_t5948; _t5949 = _t5951; } _t5952 = _t5748 * _t5949; _t5953 = _t5749 * _t5949; _t5954 = _t5750 * _t5949; _t5469 = _t5745; _t5470 = _t5746; _t5471 = _t5747; _t5472 = _t5952; _t5473 = _t5953; _t5474 = _t5954; _t5475 = _t5751; _t5476 = _t5752; _t5477 = _t5753; } else if (vertParams[402] == 0.000000) { _t5955 = _t5437 * _t5343 + _t5438 * _t5344 + _t5439 * _t5345; if (_t5955 > 0.000000) { _t5956 = _t5343; _t5957 = _t5344; _t5958 = _t5345; _t5959 = _t5955; } else { _t5961 = -_t5343; _t5962 = -_t5344; _t5963 = -_t5345; _t5964 = -_t5955; _t5956 = _t5961; _t5957 = _t5962; _t5958 = _t5963; _t5959 = _t5964; } if (_t5958 < -0.999999) { _t5965 = 0.000000; _t5966 = -1.000000; _t5967 = 0.000000; _t5968 = -1.000000; _t5969 = 0.000000; _t5970 = 0.000000; } else { _t5972 = 1.000000+_t5958; _t5973 = (float)1.0 / (_t5972); _t5974 = -_t5956; _t5975 = _t5974 * _t5957; _t5976 = _t5975 * _t5973; _t5977 = -_t5956; _t5978 = _t5956 * _t5956; _t5979 = _t5978 * _t5973; _t5980 = 1.000000-_t5979; _t5981 = -_t5957; _t5982 = _t5957 * _t5957; _t5983 = _t5982 * _t5973; _t5984 = 1.000000-_t5983; _t5965 = _t5980; _t5966 = _t5976; _t5967 = _t5977; _t5968 = _t5976; _t5969 = _t5984; _t5970 = _t5981; } _t5985 = 6.283185 * primary[15]; _t5986 = 1.000000-primary[16]; if (_t5986 >= 0.000001) { _t5987 = _t5986; } else { _t5987 = 0.000001; } _t5989 = sqrt(_t5987); if (primary[16] >= 0.000001) { _t5990 = primary[16]; } else { _t5990 = 0.000001; } _t5992 = sqrt(_t5990); _t5993 = sin(_t5985); _t5994 = _t5993 * _t5989; _t5995 = cos(_t5985); _t5996 = _t5995 * _t5989; _t5997 = _t5992 * _t5956; _t5998 = _t5994 * _t5968; _t5999 = _t5996 * _t5965; _t6000 = _t5999+_t5998; _t6001 = _t6000+_t5997; _t6002 = _t5992 * _t5957; _t6003 = _t5994 * _t5969; _t6004 = _t5996 * _t5966; _t6005 = _t6004+_t6003; _t6006 = _t6005+_t6002; _t6007 = _t5992 * _t5958; _t6008 = _t5994 * _t5970; _t6009 = _t5996 * _t5967; _t6010 = _t6009+_t6008; _t6011 = _t6010+_t6007; _t6012 = _t5992 * 0.318310; _t6013 = _t5959 * 0.318310; _t5469 = _t6001; _t5470 = _t6006; _t5471 = _t6011; _t5472 = vertParams[403]; _t5473 = vertParams[404]; _t5474 = vertParams[405]; _t5475 = _t5992; _t5476 = _t6012; _t5477 = _t6013; } else { _t5469 = 0.000000; _t5470 = 0.000000; _t5471 = 0.000000; _t5472 = 0.000000; _t5473 = 0.000000; _t5474 = 0.000000; _t5475 = 0.000000; _t5476 = 0.000000; _t5477 = 0.000000; } _t5458 = _t5469; _t5459 = _t5470; _t5460 = _t5471; _t5461 = _t5472; _t5462 = _t5473; _t5463 = _t5474; _t5464 = _t5475; _t5465 = _t5476; _t5466 = _t5477; _t5467 = 1.000000; } else { _t6014 = 6.283185 * primary[15]; _t6015 = 3.141593 * primary[16]; _t6016 = sin(_t6015); _t6017 = cos(_t6015); _t6018 = sin(_t6014); _t6019 = _t6016 * _t6018; _t6020 = cos(_t6014); _t6021 = _t6016 * _t6020; if (_t6016 >= 0.000000) { _t6022 = _t6016; } else { _t6024 = -_t6016; _t6022 = _t6024; } _t6025 = _t6022 * 6.283185; _t6026 = _t6025 * 3.141593; if (vertParams[402] == 1.000000) { _t6036 = _t5343 * _t5437 + _t5344 * _t5438 + _t5345 * _t5439; if (_t6036 > 0.000000) { _t6037 = _t5343; _t6038 = _t5344; _t6039 = _t5345; _t6040 = _t6036; } else { _t6042 = -_t5343; _t6043 = -_t5344; _t6044 = -_t5345; _t6045 = -_t6036; _t6037 = _t6042; _t6038 = _t6043; _t6039 = _t6044; _t6040 = _t6045; } _t6046 = _t6037 * _t6021 + _t6038 * _t6019 + _t6039 * _t6017; if (vertParams[410] > 0.000000) { _t6052 = _t5437 * _t6037 + _t5438 * _t6038 + _t5439 * _t6039; _t6053 = 2.000000 * _t6052; _t6054 = _t6053 * _t6037; _t6055 = _t6054-_t5437; _t6056 = _t6053 * _t6038; _t6057 = _t6056-_t5438; _t6058 = _t6053 * _t6039; _t6059 = _t6058-_t5439; _t6060 = _t6055 * _t6021 + _t6057 * _t6019 + _t6059 * _t6017; _t6061 = pow(_t6060,vertParams[409]); _t6062 = _t6061 * 0.159155; if (_t6062 > 0.000000) { _t6068 = vertParams[409]+1.000000; _t6069 = vertParams[409]+2.000000; _t6070 = _t6069 * _t6062; _t6071 = vertParams[406] * _t6070; _t6072 = vertParams[407] * _t6070; _t6073 = vertParams[408] * _t6070; _t6074 = vertParams[410] * _t6068; _t6075 = _t6074 * _t6062; _t6063 = _t6071; _t6064 = _t6072; _t6065 = _t6073; _t6066 = _t6075; } else { _t6063 = 0.000000; _t6064 = 0.000000; _t6065 = 0.000000; _t6066 = 0.000000; } _t6047 = _t6063; _t6048 = _t6064; _t6049 = _t6065; _t6050 = _t6066; } else { _t6047 = 0.000000; _t6048 = 0.000000; _t6049 = 0.000000; _t6050 = 0.000000; } if (vertParams[410] < 1.000000) { _t6082 = vertParams[403] * 0.318310; _t6083 = vertParams[404] * 0.318310; _t6084 = vertParams[405] * 0.318310; _t6085 = 1.000000-vertParams[410]; _t6086 = _t6085 * 0.318310; _t6087 = _t6086 * _t6046; _t6088 = _t6086 * _t6040; _t6076 = _t6082; _t6077 = _t6083; _t6078 = _t6084; _t6079 = _t6087; _t6080 = _t6088; } else { _t6076 = 0.000000; _t6077 = 0.000000; _t6078 = 0.000000; _t6079 = 0.000000; _t6080 = 0.000000; } _t6089 = _t6047+_t6076; _t6090 = _t6048+_t6077; _t6091 = _t6049+_t6078; _t6092 = _t6050+_t6079; _t6093 = _t6050+_t6080; _t6094 = _t6089 * _t6046; _t6095 = _t6090 * _t6046; _t6096 = _t6091 * _t6046; _t6027 = _t6094; _t6028 = _t6095; _t6029 = _t6096; _t6030 = _t6046; _t6031 = _t6092; _t6032 = _t6093; } else if (vertParams[402] == 2.000000) { _t6097 = _t5437 * _t5343 + _t5438 * _t5344 + _t5439 * _t5345; _t6098 = _t6021 * _t5343 + _t6019 * _t5344 + _t6017 * _t5345; _t6099 = _t6097 * _t6098; if (_t6097 > 0.000000) { _t6100 = vertParams[409]; } else { _t6100 = vertParams[410]; } if (_t6098 > 0.000000) { _t6102 = vertParams[409]; } else { _t6102 = vertParams[410]; } if (_t6099 > 0.000000) { _t6108 = _t5437+_t6021; _t6109 = _t5438+_t6019; _t6110 = _t5439+_t6017; _t6111 = sqrt(_t6108*_t6108+_t6109*_t6109+_t6110*_t6110); _t6112 = (float)1.0 / (_t6111); _t6113 = _t6108 * _t6112; _t6114 = _t6109 * _t6112; _t6115 = _t6110 * _t6112; _t6104 = _t6113; _t6105 = _t6114; _t6106 = _t6115; } else { _t6116 = _t6021 * _t6100; _t6117 = _t5437+_t6116; _t6118 = _t6019 * _t6100; _t6119 = _t5438+_t6118; _t6120 = _t6017 * _t6100; _t6121 = _t5439+_t6120; _t6122 = sqrt(_t6117*_t6117+_t6119*_t6119+_t6121*_t6121); _t6123 = (float)1.0 / (_t6122); _t6124 = _t6117 * _t6123; _t6125 = _t6119 * _t6123; _t6126 = _t6121 * _t6123; _t6104 = _t6124; _t6105 = _t6125; _t6106 = _t6126; } _t6127 = _t6104 * _t5343 + _t6105 * _t5344 + _t6106 * _t5345; if (_t6127 < 0.000000) { _t6132 = -_t6104; _t6133 = -_t6105; _t6134 = -_t6106; _t6128 = _t6132; _t6129 = _t6133; _t6130 = _t6134; } else { _t6128 = _t6104; _t6129 = _t6105; _t6130 = _t6106; } _t6135 = _t5437 * _t6128 + _t5438 * _t6129 + _t5439 * _t6130; _t6136 = _t6021 * _t6128 + _t6019 * _t6129 + _t6017 * _t6130; if (_t5345 < -0.999999) { _t6137 = 0.000000; _t6138 = -1.000000; _t6139 = 0.000000; _t6140 = -1.000000; _t6141 = 0.000000; _t6142 = 0.000000; } else { _t6144 = 1.000000+_t5345; _t6145 = (float)1.0 / (_t6144); _t6146 = -_t5343; _t6147 = _t6146 * _t5344; _t6148 = _t6147 * _t6145; _t6149 = -_t5343; _t6150 = _t5343 * _t5343; _t6151 = _t6150 * _t6145; _t6152 = 1.000000-_t6151; _t6153 = -_t5344; _t6154 = _t5344 * _t5344; _t6155 = _t6154 * _t6145; _t6156 = 1.000000-_t6155; _t6137 = _t6152; _t6138 = _t6148; _t6139 = _t6149; _t6140 = _t6148; _t6141 = _t6156; _t6142 = _t6153; } _t6157 = _t5343 * _t6128 + _t5344 * _t6129 + _t5345 * _t6130; _t6158 = _t6140 * _t6128 + _t6141 * _t6129 + _t6142 * _t6130; _t6159 = _t6137 * _t6128 + _t6138 * _t6129 + _t6139 * _t6130; _t6160 = _t6157 * _t6157; _t6161 = vertParams[411] * vertParams[411]; _t6162 = _t6158 * _t6158; _t6163 = _t6162 / _t6161; _t6164 = vertParams[411] * vertParams[411]; _t6165 = _t6159 * _t6159; _t6166 = _t6165 / _t6164; _t6167 = _t6166+_t6163; _t6168 = _t6167 / _t6160; _t6169 = _t6160 * _t6160; _t6170 = 3.141593 * vertParams[411]; _t6171 = _t6170 * vertParams[411]; _t6172 = _t6171 * _t6169; _t6173 = -_t6168; _t6174 = exp(_t6173); _t6175 = _t6174 / _t6172; if (_t6135 > 0.000000) { _t6176 = vertParams[410]; } else { _t6176 = vertParams[409]; } _t6178 = _t6176 * _t6176; _t6179 = _t6135 * _t6135; _t6180 = 1.000000-_t6179; _t6181 = _t6180 * _t6178; _t6182 = 1.000000-_t6181; if (_t6182 <= 0.000000) { _t6183 = 1.000000; } else { if (_t6135 >= 0.000000) { _t6185 = _t6135; } else { _t6187 = -_t6135; _t6185 = _t6187; } _t6188 = sqrt(_t6182); _t6189 = vertParams[409] * _t6188; _t6190 = vertParams[409] * _t6185; _t6191 = _t6185+_t6189; _t6192 = _t6185-_t6189; _t6193 = _t6192 / _t6191; _t6194 = _t6190+_t6188; _t6195 = _t6190-_t6188; _t6196 = _t6195 / _t6194; _t6197 = _t6196 * _t6196; _t6198 = _t6193 * _t6193; _t6199 = _t6198+_t6197; _t6200 = 0.500000 * _t6199; _t6183 = _t6200; } if (_t6097 >= 0.000000) { _t6201 = _t6097; } else { _t6203 = -_t6097; _t6201 = _t6203; } if (_t6098 >= 0.000000) { _t6204 = _t6098; } else { _t6206 = -_t6098; _t6204 = _t6206; } _t6207 = _t6204 * _t6204; _t6208 = 1.000001-_t6207; if (_t6208 >= 0.000000) { _t6209 = _t6208; } else { _t6211 = -_t6208; _t6209 = _t6211; } _t6212 = sqrt(_t6209); _t6213 = _t6212 / _t6204; if (_t6213 <= 0.000000) { _t6214 = 1.000000; } else { _t6216 = vertParams[411] * _t6213; _t6217 = (float)1.0 / (_t6216); if (_t6217 >= 1.600000) { _t6218 = 1.000000; } else { _t6220 = _t6217 * _t6217; _t6221 = 2.577000 * _t6220; _t6222 = 2.276000 * _t6217; _t6223 = 1.000000+_t6222; _t6224 = _t6223+_t6221; _t6225 = 2.181000 * _t6220; _t6226 = 3.535000 * _t6217; _t6227 = _t6226+_t6225; _t6228 = _t6227 / _t6224; _t6218 = _t6228; } _t6214 = _t6218; } _t6229 = _t6201 * _t6201; _t6230 = 1.000001-_t6229; if (_t6230 >= 0.000000) { _t6231 = _t6230; } else { _t6233 = -_t6230; _t6231 = _t6233; } _t6234 = sqrt(_t6231); _t6235 = _t6234 / _t6201; if (_t6235 <= 0.000000) { _t6236 = 1.000000; } else { _t6238 = vertParams[411] * _t6235; _t6239 = (float)1.0 / (_t6238); if (_t6239 >= 1.600000) { _t6240 = 1.000000; } else { _t6242 = _t6239 * _t6239; _t6243 = 2.577000 * _t6242; _t6244 = 2.276000 * _t6239; _t6245 = 1.000000+_t6244; _t6246 = _t6245+_t6243; _t6247 = 2.181000 * _t6242; _t6248 = 3.535000 * _t6239; _t6249 = _t6248+_t6247; _t6250 = _t6249 / _t6246; _t6240 = _t6250; } _t6236 = _t6240; } _t6251 = _t6236 * _t6214; _t6252 = sqrt(_t6201); _t6253 = 0.200000 * _t6252; _t6254 = 1.200000-_t6253; _t6255 = vertParams[411] * _t6254; _t6256 = _t6157 * _t6157; _t6257 = _t6255 * _t6255; _t6258 = _t6158 * _t6158; _t6259 = _t6258 / _t6257; _t6260 = _t6255 * _t6255; _t6261 = _t6159 * _t6159; _t6262 = _t6261 / _t6260; _t6263 = _t6262+_t6259; _t6264 = _t6263 / _t6256; _t6265 = _t6256 * _t6256; _t6266 = 3.141593 * _t6255; _t6267 = _t6266 * _t6255; _t6268 = _t6267 * _t6265; _t6269 = -_t6264; _t6270 = exp(_t6269); _t6271 = _t6270 / _t6268; _t6272 = _t6157 * _t6271; _t6273 = sqrt(_t6204); _t6274 = 0.200000 * _t6273; _t6275 = 1.200000-_t6274; _t6276 = vertParams[411] * _t6275; _t6277 = _t6157 * _t6157; _t6278 = _t6276 * _t6276; _t6279 = _t6158 * _t6158; _t6280 = _t6279 / _t6278; _t6281 = _t6276 * _t6276; _t6282 = _t6159 * _t6159; _t6283 = _t6282 / _t6281; _t6284 = _t6283+_t6280; _t6285 = _t6284 / _t6277; _t6286 = _t6277 * _t6277; _t6287 = 3.141593 * _t6276; _t6288 = _t6287 * _t6276; _t6289 = _t6288 * _t6286; _t6290 = -_t6285; _t6291 = exp(_t6290); _t6292 = _t6291 / _t6289; _t6293 = _t6157 * _t6292; if (_t6099 > 0.000000) { _t6299 = 4.000000 * _t6097; _t6300 = _t6183 * _t6175; _t6301 = _t6300 * _t6251; _t6302 = _t6301 / _t6299; if (_t6302 >= 0.000000) { _t6303 = _t6302; } else { _t6305 = -_t6302; _t6303 = _t6305; } _t6306 = vertParams[403] * _t6303; _t6307 = vertParams[404] * _t6303; _t6308 = vertParams[405] * _t6303; _t6309 = 4.000000 * _t6136; _t6310 = _t6272 * _t6183; _t6311 = _t6310 / _t6309; if (_t6311 >= 0.000000) { _t6312 = _t6311; } else { _t6314 = -_t6311; _t6312 = _t6314; } _t6315 = 4.000000 * _t6135; _t6316 = _t6293 * _t6183; _t6317 = _t6316 / _t6315; if (_t6317 >= 0.000000) { _t6318 = _t6317; } else { _t6320 = -_t6317; _t6318 = _t6320; } _t6294 = _t6306; _t6295 = _t6307; _t6296 = _t6308; _t6297 = _t6312; _t6298 = _t6318; } else { _t6321 = _t6100 * _t6136; _t6322 = _t6135+_t6321; _t6323 = _t6102 * _t6135; _t6324 = _t6136+_t6323; _t6325 = (float)1.0 / (_t6100); _t6326 = _t6325 * _t6325; _t6327 = _t6322 * _t6322; _t6328 = _t6097 * _t6327; _t6329 = _t6100 * _t6100; _t6330 = 1.000000-_t6183; _t6331 = _t6330 * _t6175; _t6332 = _t6331 * _t6251; _t6333 = _t6332 * _t6329; _t6334 = _t6333 * _t6135; _t6335 = _t6334 * _t6136; _t6336 = _t6326 * _t6335; _t6337 = _t6336 / _t6328; if (_t6337 >= 0.000000) { _t6338 = _t6337; } else { _t6340 = -_t6337; _t6338 = _t6340; } _t6341 = vertParams[406] * _t6338; _t6342 = vertParams[407] * _t6338; _t6343 = vertParams[408] * _t6338; _t6344 = _t6322 * _t6322; _t6345 = _t6100 * _t6100; _t6346 = _t6345 * _t6136; _t6347 = 1.000000-_t6183; _t6348 = _t6272 * _t6347; _t6349 = _t6348 * _t6346; _t6350 = _t6349 / _t6344; if (_t6350 >= 0.000000) { _t6351 = _t6350; } else { _t6353 = -_t6350; _t6351 = _t6353; } _t6354 = _t6324 * _t6324; _t6355 = _t6102 * _t6102; _t6356 = _t6355 * _t6135; _t6357 = 1.000000-_t6183; _t6358 = _t6293 * _t6357; _t6359 = _t6358 * _t6356; _t6360 = _t6359 / _t6354; if (_t6360 >= 0.000000) { _t6361 = _t6360; } else { _t6363 = -_t6360; _t6361 = _t6363; } _t6294 = _t6341; _t6295 = _t6342; _t6296 = _t6343; _t6297 = _t6351; _t6298 = _t6361; } _t6027 = _t6294; _t6028 = _t6295; _t6029 = _t6296; _t6030 = _t6098; _t6031 = _t6297; _t6032 = _t6298; } else if (vertParams[402] == 0.000000) { _t6364 = _t5343 * _t5437 + _t5344 * _t5438 + _t5345 * _t5439; if (_t6364 > 0.000000) { _t6365 = _t5343; _t6366 = _t5344; _t6367 = _t5345; _t6368 = _t6364; } else { _t6370 = -_t5343; _t6371 = -_t5344; _t6372 = -_t5345; _t6373 = -_t6364; _t6365 = _t6370; _t6366 = _t6371; _t6367 = _t6372; _t6368 = _t6373; } _t6374 = _t6365 * _t6021 + _t6366 * _t6019 + _t6367 * _t6017; _t6375 = _t6374 * 0.318310; _t6376 = _t6368 * 0.318310; _t6377 = _t6375 * vertParams[403]; _t6378 = _t6375 * vertParams[404]; _t6379 = _t6375 * vertParams[405]; _t6027 = _t6377; _t6028 = _t6378; _t6029 = _t6379; _t6030 = _t6374; _t6031 = _t6375; _t6032 = _t6376; } else { _t6027 = 0.000000; _t6028 = 0.000000; _t6029 = 0.000000; _t6030 = 0.000000; _t6031 = 0.000000; _t6032 = 0.000000; } _t5458 = _t6021; _t5459 = _t6019; _t5460 = _t6017; _t5461 = _t6027; _t5462 = _t6028; _t5463 = _t6029; _t5464 = _t6030; _t5465 = _t6031; _t5466 = _t6032; _t5467 = _t6026; } _t6380 = _t5461 * _t5467; _t6381 = _t5462 * _t5467; _t6382 = _t5463 * _t5467; _t6383 = _t5466 * _t5466; _t6384 = _t5457 * _t6383; _t6385 = _t6384+_t5456; _t6386 = _t5464 / _t5465; _t6387 = _t6386 * _t6386; _t6388 = _t6387 * _t6385; _t6389 = (float)1.0 / (_t5465); _t6390 = _t6389 * _t6389; _t6391 = _t5334 * _t6380; _t6392 = _t5335 * _t6381; _t6393 = _t5336 * _t6382; _t6394 = _t6391 * vertParams[412]; _t6395 = _t6392 * vertParams[412]; _t6396 = _t6393 * vertParams[412]; if (vertParams[413] == 0.000000) { _t6409 = vertParams[419] * vertParams[421]; _t6410 = vertParams[418] * vertParams[422]; _t6411 = _t6410-_t6409; _t6412 = vertParams[418] * vertParams[423]; _t6413 = vertParams[420] * vertParams[421]; _t6414 = _t6413-_t6412; _t6415 = vertParams[420] * vertParams[422]; _t6416 = vertParams[419] * vertParams[423]; _t6417 = _t6416-_t6415; _t6418 = sqrt(_t6417*_t6417+_t6414*_t6414+_t6411*_t6411); _t6419 = (float)1.0 / (_t6418); _t6420 = _t6417 * _t6419; _t6421 = _t6414 * _t6419; _t6422 = _t6411 * _t6419; _t6423 = _t5459 * vertParams[421]; _t6424 = _t5458 * vertParams[422]; _t6425 = _t6424-_t6423; _t6426 = _t5458 * vertParams[423]; _t6427 = _t5460 * vertParams[421]; _t6428 = _t6427-_t6426; _t6429 = _t5460 * vertParams[422]; _t6430 = _t5459 * vertParams[423]; _t6431 = _t6430-_t6429; _t6432 = _t6431 * vertParams[418] + _t6428 * vertParams[419] + _t6425 * vertParams[420]; _t6433 = (float)1.0 / (_t6432); _t6434 = _t5337-vertParams[415]; _t6435 = _t5338-vertParams[416]; _t6436 = _t5339-vertParams[417]; _t6437 = _t6434 * _t6431 + _t6435 * _t6428 + _t6436 * _t6425; _t6438 = _t6437 * _t6433; _t6439 = _t6435 * vertParams[418]; _t6440 = _t6434 * vertParams[419]; _t6441 = _t6440-_t6439; _t6442 = _t6434 * vertParams[420]; _t6443 = _t6436 * vertParams[418]; _t6444 = _t6443-_t6442; _t6445 = _t6436 * vertParams[419]; _t6446 = _t6435 * vertParams[420]; _t6447 = _t6446-_t6445; _t6448 = _t5458 * _t6447 + _t5459 * _t6444 + _t5460 * _t6441; _t6449 = _t6448 * _t6433; _t6450 = vertParams[421] * _t6447 + vertParams[422] * _t6444 + vertParams[423] * _t6441; _t6451 = _t6450 * _t6433; _t6452 = 1.000000-_t6438; _t6453 = _t6452-_t6449; _t6454 = _t6451 * _t5458; _t6455 = _t5337+_t6454; _t6456 = _t6451 * _t5459; _t6457 = _t5338+_t6456; _t6458 = _t6451 * _t5460; _t6459 = _t5339+_t6458; _t6460 = _t6449 * vertParams[430]; _t6461 = _t6438 * vertParams[427]; _t6462 = _t6453 * vertParams[424]; _t6463 = _t6462+_t6461; _t6464 = _t6463+_t6460; _t6465 = _t6449 * vertParams[431]; _t6466 = _t6438 * vertParams[428]; _t6467 = _t6453 * vertParams[425]; _t6468 = _t6467+_t6466; _t6469 = _t6468+_t6465; _t6470 = _t6449 * vertParams[432]; _t6471 = _t6438 * vertParams[429]; _t6472 = _t6453 * vertParams[426]; _t6473 = _t6472+_t6471; _t6474 = _t6473+_t6470; _t6475 = sqrt(_t6464*_t6464+_t6469*_t6469+_t6474*_t6474); _t6476 = (float)1.0 / (_t6475); _t6477 = _t6464 * _t6476; _t6478 = _t6469 * _t6476; _t6479 = _t6474 * _t6476; if (vertParams[451] == 0.000000) { _t6480 = _t6438; _t6481 = _t6449; } else { _t6483 = _t6449 * vertParams[456]; _t6484 = _t6438 * vertParams[454]; _t6485 = 1.000000-_t6438; _t6486 = _t6485-_t6449; _t6487 = _t6486 * vertParams[452]; _t6488 = _t6487+_t6484; _t6489 = _t6488+_t6483; _t6490 = _t6449 * vertParams[457]; _t6491 = _t6438 * vertParams[455]; _t6492 = 1.000000-_t6438; _t6493 = _t6492-_t6449; _t6494 = _t6493 * vertParams[453]; _t6495 = _t6494+_t6491; _t6496 = _t6495+_t6490; _t6480 = _t6489; _t6481 = _t6496; } _t6397 = _t6455; _t6398 = _t6457; _t6399 = _t6459; _t6400 = _t6420; _t6401 = _t6421; _t6402 = _t6422; _t6403 = _t6477; _t6404 = _t6478; _t6405 = _t6479; _t6406 = _t6480; _t6407 = _t6481; } else { _t6397 = 0.000000; _t6398 = 0.000000; _t6399 = 0.000000; _t6400 = 0.000000; _t6401 = 0.000000; _t6402 = 0.000000; _t6403 = 0.000000; _t6404 = 0.000000; _t6405 = 0.000000; _t6406 = 0.000000; _t6407 = 0.000000; } _t6497 = -_t5458; _t6498 = -_t5459; _t6499 = -_t5460; _t6500 = _t5339-_t6399; _t6501 = _t6500 * _t6500; _t6502 = _t5338-_t6398; _t6503 = _t6502 * _t6502; _t6504 = _t5337-_t6397; _t6505 = _t6504 * _t6504; _t6506 = _t6505+_t6503; _t6507 = _t6506+_t6501; _t6508 = _t6507 * _t6507; _t6509 = _t6390 * _t6508; _t6510 = _t5458 * _t6403 + _t5459 * _t6404 + _t5460 * _t6405; if (_t6510 >= 0.000000) { _t6511 = _t6510; } else { _t6513 = -_t6510; _t6511 = _t6513; } _t6514 = _t6511 * _t6511; _t6515 = (float)1.0 / (_t6514); _t6516 = _t6509 * _t6515; _t6517 = _t6388 * _t6515; _t6518 = _t471-_t6397; _t6519 = _t472-_t6398; _t6520 = _t473-_t6399; _t6521 = _t6520 * _t6520; _t6522 = _t6519 * _t6519; _t6523 = _t6518 * _t6518; _t6524 = _t6523+_t6522; _t6525 = _t6524+_t6521; _t6526 = sqrt(_t6525); _t6527 = (float)1.0 / (_t6526); _t6528 = _t6518 * _t6527; _t6529 = _t6519 * _t6527; _t6530 = _t6520 * _t6527; if (vertParams[459] == 1.000000) { _t6540 = _t6403 * _t6497 + _t6404 * _t6498 + _t6405 * _t6499; if (_t6540 > 0.000000) { _t6541 = _t6403; _t6542 = _t6404; _t6543 = _t6405; _t6544 = _t6540; } else { _t6546 = -_t6403; _t6547 = -_t6404; _t6548 = -_t6405; _t6549 = -_t6540; _t6541 = _t6546; _t6542 = _t6547; _t6543 = _t6548; _t6544 = _t6549; } _t6550 = _t6541 * _t6528 + _t6542 * _t6529 + _t6543 * _t6530; if (vertParams[467] > 0.000000) { _t6556 = _t6497 * _t6541 + _t6498 * _t6542 + _t6499 * _t6543; _t6557 = 2.000000 * _t6556; _t6558 = _t6557 * _t6541; _t6559 = _t6558-_t6497; _t6560 = _t6557 * _t6542; _t6561 = _t6560-_t6498; _t6562 = _t6557 * _t6543; _t6563 = _t6562-_t6499; _t6564 = _t6559 * _t6528 + _t6561 * _t6529 + _t6563 * _t6530; _t6565 = pow(_t6564,vertParams[466]); _t6566 = _t6565 * 0.159155; if (_t6566 > 0.000000) { _t6572 = vertParams[466]+1.000000; _t6573 = vertParams[466]+2.000000; _t6574 = _t6573 * _t6566; _t6575 = vertParams[463] * _t6574; _t6576 = vertParams[464] * _t6574; _t6577 = vertParams[465] * _t6574; _t6578 = vertParams[467] * _t6572; _t6579 = _t6578 * _t6566; _t6567 = _t6575; _t6568 = _t6576; _t6569 = _t6577; _t6570 = _t6579; } else { _t6567 = 0.000000; _t6568 = 0.000000; _t6569 = 0.000000; _t6570 = 0.000000; } _t6551 = _t6567; _t6552 = _t6568; _t6553 = _t6569; _t6554 = _t6570; } else { _t6551 = 0.000000; _t6552 = 0.000000; _t6553 = 0.000000; _t6554 = 0.000000; } if (vertParams[467] < 1.000000) { _t6586 = vertParams[460] * 0.318310; _t6587 = vertParams[461] * 0.318310; _t6588 = vertParams[462] * 0.318310; _t6589 = 1.000000-vertParams[467]; _t6590 = _t6589 * 0.318310; _t6591 = _t6590 * _t6550; _t6592 = _t6590 * _t6544; _t6580 = _t6586; _t6581 = _t6587; _t6582 = _t6588; _t6583 = _t6591; _t6584 = _t6592; } else { _t6580 = 0.000000; _t6581 = 0.000000; _t6582 = 0.000000; _t6583 = 0.000000; _t6584 = 0.000000; } _t6593 = _t6551+_t6580; _t6594 = _t6552+_t6581; _t6595 = _t6553+_t6582; _t6596 = _t6554+_t6583; _t6597 = _t6554+_t6584; _t6598 = _t6593 * _t6550; _t6599 = _t6594 * _t6550; _t6600 = _t6595 * _t6550; _t6531 = _t6598; _t6532 = _t6599; _t6533 = _t6600; _t6534 = _t6550; _t6535 = _t6596; _t6536 = _t6597; } else if (vertParams[459] == 2.000000) { _t6601 = _t6497 * _t6403 + _t6498 * _t6404 + _t6499 * _t6405; _t6602 = _t6528 * _t6403 + _t6529 * _t6404 + _t6530 * _t6405; _t6603 = _t6601 * _t6602; if (_t6601 > 0.000000) { _t6604 = vertParams[466]; } else { _t6604 = vertParams[467]; } if (_t6602 > 0.000000) { _t6606 = vertParams[466]; } else { _t6606 = vertParams[467]; } if (_t6603 > 0.000000) { _t6612 = _t6497+_t6528; _t6613 = _t6498+_t6529; _t6614 = _t6499+_t6530; _t6615 = sqrt(_t6612*_t6612+_t6613*_t6613+_t6614*_t6614); _t6616 = (float)1.0 / (_t6615); _t6617 = _t6612 * _t6616; _t6618 = _t6613 * _t6616; _t6619 = _t6614 * _t6616; _t6608 = _t6617; _t6609 = _t6618; _t6610 = _t6619; } else { _t6620 = _t6528 * _t6604; _t6621 = _t6497+_t6620; _t6622 = _t6529 * _t6604; _t6623 = _t6498+_t6622; _t6624 = _t6530 * _t6604; _t6625 = _t6499+_t6624; _t6626 = sqrt(_t6621*_t6621+_t6623*_t6623+_t6625*_t6625); _t6627 = (float)1.0 / (_t6626); _t6628 = _t6621 * _t6627; _t6629 = _t6623 * _t6627; _t6630 = _t6625 * _t6627; _t6608 = _t6628; _t6609 = _t6629; _t6610 = _t6630; } _t6631 = _t6608 * _t6403 + _t6609 * _t6404 + _t6610 * _t6405; if (_t6631 < 0.000000) { _t6636 = -_t6608; _t6637 = -_t6609; _t6638 = -_t6610; _t6632 = _t6636; _t6633 = _t6637; _t6634 = _t6638; } else { _t6632 = _t6608; _t6633 = _t6609; _t6634 = _t6610; } _t6639 = _t6497 * _t6632 + _t6498 * _t6633 + _t6499 * _t6634; _t6640 = _t6528 * _t6632 + _t6529 * _t6633 + _t6530 * _t6634; if (_t6405 < -0.999999) { _t6641 = 0.000000; _t6642 = -1.000000; _t6643 = 0.000000; _t6644 = -1.000000; _t6645 = 0.000000; _t6646 = 0.000000; } else { _t6648 = 1.000000+_t6405; _t6649 = (float)1.0 / (_t6648); _t6650 = -_t6403; _t6651 = _t6650 * _t6404; _t6652 = _t6651 * _t6649; _t6653 = -_t6403; _t6654 = _t6403 * _t6403; _t6655 = _t6654 * _t6649; _t6656 = 1.000000-_t6655; _t6657 = -_t6404; _t6658 = _t6404 * _t6404; _t6659 = _t6658 * _t6649; _t6660 = 1.000000-_t6659; _t6641 = _t6656; _t6642 = _t6652; _t6643 = _t6653; _t6644 = _t6652; _t6645 = _t6660; _t6646 = _t6657; } _t6661 = _t6403 * _t6632 + _t6404 * _t6633 + _t6405 * _t6634; _t6662 = _t6644 * _t6632 + _t6645 * _t6633 + _t6646 * _t6634; _t6663 = _t6641 * _t6632 + _t6642 * _t6633 + _t6643 * _t6634; _t6664 = _t6661 * _t6661; _t6665 = vertParams[468] * vertParams[468]; _t6666 = _t6662 * _t6662; _t6667 = _t6666 / _t6665; _t6668 = vertParams[468] * vertParams[468]; _t6669 = _t6663 * _t6663; _t6670 = _t6669 / _t6668; _t6671 = _t6670+_t6667; _t6672 = _t6671 / _t6664; _t6673 = _t6664 * _t6664; _t6674 = 3.141593 * vertParams[468]; _t6675 = _t6674 * vertParams[468]; _t6676 = _t6675 * _t6673; _t6677 = -_t6672; _t6678 = exp(_t6677); _t6679 = _t6678 / _t6676; if (_t6639 > 0.000000) { _t6680 = vertParams[467]; } else { _t6680 = vertParams[466]; } _t6682 = _t6680 * _t6680; _t6683 = _t6639 * _t6639; _t6684 = 1.000000-_t6683; _t6685 = _t6684 * _t6682; _t6686 = 1.000000-_t6685; if (_t6686 <= 0.000000) { _t6687 = 1.000000; } else { if (_t6639 >= 0.000000) { _t6689 = _t6639; } else { _t6691 = -_t6639; _t6689 = _t6691; } _t6692 = sqrt(_t6686); _t6693 = vertParams[466] * _t6692; _t6694 = vertParams[466] * _t6689; _t6695 = _t6689+_t6693; _t6696 = _t6689-_t6693; _t6697 = _t6696 / _t6695; _t6698 = _t6694+_t6692; _t6699 = _t6694-_t6692; _t6700 = _t6699 / _t6698; _t6701 = _t6700 * _t6700; _t6702 = _t6697 * _t6697; _t6703 = _t6702+_t6701; _t6704 = 0.500000 * _t6703; _t6687 = _t6704; } if (_t6601 >= 0.000000) { _t6705 = _t6601; } else { _t6707 = -_t6601; _t6705 = _t6707; } if (_t6602 >= 0.000000) { _t6708 = _t6602; } else { _t6710 = -_t6602; _t6708 = _t6710; } _t6711 = _t6708 * _t6708; _t6712 = 1.000001-_t6711; if (_t6712 >= 0.000000) { _t6713 = _t6712; } else { _t6715 = -_t6712; _t6713 = _t6715; } _t6716 = sqrt(_t6713); _t6717 = _t6716 / _t6708; if (_t6717 <= 0.000000) { _t6718 = 1.000000; } else { _t6720 = vertParams[468] * _t6717; _t6721 = (float)1.0 / (_t6720); if (_t6721 >= 1.600000) { _t6722 = 1.000000; } else { _t6724 = _t6721 * _t6721; _t6725 = 2.577000 * _t6724; _t6726 = 2.276000 * _t6721; _t6727 = 1.000000+_t6726; _t6728 = _t6727+_t6725; _t6729 = 2.181000 * _t6724; _t6730 = 3.535000 * _t6721; _t6731 = _t6730+_t6729; _t6732 = _t6731 / _t6728; _t6722 = _t6732; } _t6718 = _t6722; } _t6733 = _t6705 * _t6705; _t6734 = 1.000001-_t6733; if (_t6734 >= 0.000000) { _t6735 = _t6734; } else { _t6737 = -_t6734; _t6735 = _t6737; } _t6738 = sqrt(_t6735); _t6739 = _t6738 / _t6705; if (_t6739 <= 0.000000) { _t6740 = 1.000000; } else { _t6742 = vertParams[468] * _t6739; _t6743 = (float)1.0 / (_t6742); if (_t6743 >= 1.600000) { _t6744 = 1.000000; } else { _t6746 = _t6743 * _t6743; _t6747 = 2.577000 * _t6746; _t6748 = 2.276000 * _t6743; _t6749 = 1.000000+_t6748; _t6750 = _t6749+_t6747; _t6751 = 2.181000 * _t6746; _t6752 = 3.535000 * _t6743; _t6753 = _t6752+_t6751; _t6754 = _t6753 / _t6750; _t6744 = _t6754; } _t6740 = _t6744; } _t6755 = _t6740 * _t6718; _t6756 = sqrt(_t6705); _t6757 = 0.200000 * _t6756; _t6758 = 1.200000-_t6757; _t6759 = vertParams[468] * _t6758; _t6760 = _t6661 * _t6661; _t6761 = _t6759 * _t6759; _t6762 = _t6662 * _t6662; _t6763 = _t6762 / _t6761; _t6764 = _t6759 * _t6759; _t6765 = _t6663 * _t6663; _t6766 = _t6765 / _t6764; _t6767 = _t6766+_t6763; _t6768 = _t6767 / _t6760; _t6769 = _t6760 * _t6760; _t6770 = 3.141593 * _t6759; _t6771 = _t6770 * _t6759; _t6772 = _t6771 * _t6769; _t6773 = -_t6768; _t6774 = exp(_t6773); _t6775 = _t6774 / _t6772; _t6776 = _t6661 * _t6775; _t6777 = sqrt(_t6708); _t6778 = 0.200000 * _t6777; _t6779 = 1.200000-_t6778; _t6780 = vertParams[468] * _t6779; _t6781 = _t6661 * _t6661; _t6782 = _t6780 * _t6780; _t6783 = _t6662 * _t6662; _t6784 = _t6783 / _t6782; _t6785 = _t6780 * _t6780; _t6786 = _t6663 * _t6663; _t6787 = _t6786 / _t6785; _t6788 = _t6787+_t6784; _t6789 = _t6788 / _t6781; _t6790 = _t6781 * _t6781; _t6791 = 3.141593 * _t6780; _t6792 = _t6791 * _t6780; _t6793 = _t6792 * _t6790; _t6794 = -_t6789; _t6795 = exp(_t6794); _t6796 = _t6795 / _t6793; _t6797 = _t6661 * _t6796; if (_t6603 > 0.000000) { _t6803 = 4.000000 * _t6601; _t6804 = _t6687 * _t6679; _t6805 = _t6804 * _t6755; _t6806 = _t6805 / _t6803; if (_t6806 >= 0.000000) { _t6807 = _t6806; } else { _t6809 = -_t6806; _t6807 = _t6809; } _t6810 = vertParams[460] * _t6807; _t6811 = vertParams[461] * _t6807; _t6812 = vertParams[462] * _t6807; _t6813 = 4.000000 * _t6640; _t6814 = _t6776 * _t6687; _t6815 = _t6814 / _t6813; if (_t6815 >= 0.000000) { _t6816 = _t6815; } else { _t6818 = -_t6815; _t6816 = _t6818; } _t6819 = 4.000000 * _t6639; _t6820 = _t6797 * _t6687; _t6821 = _t6820 / _t6819; if (_t6821 >= 0.000000) { _t6822 = _t6821; } else { _t6824 = -_t6821; _t6822 = _t6824; } _t6798 = _t6810; _t6799 = _t6811; _t6800 = _t6812; _t6801 = _t6816; _t6802 = _t6822; } else { _t6825 = _t6604 * _t6640; _t6826 = _t6639+_t6825; _t6827 = _t6606 * _t6639; _t6828 = _t6640+_t6827; _t6829 = (float)1.0 / (_t6604); _t6830 = _t6829 * _t6829; _t6831 = _t6826 * _t6826; _t6832 = _t6601 * _t6831; _t6833 = _t6604 * _t6604; _t6834 = 1.000000-_t6687; _t6835 = _t6834 * _t6679; _t6836 = _t6835 * _t6755; _t6837 = _t6836 * _t6833; _t6838 = _t6837 * _t6639; _t6839 = _t6838 * _t6640; _t6840 = _t6830 * _t6839; _t6841 = _t6840 / _t6832; if (_t6841 >= 0.000000) { _t6842 = _t6841; } else { _t6844 = -_t6841; _t6842 = _t6844; } _t6845 = vertParams[463] * _t6842; _t6846 = vertParams[464] * _t6842; _t6847 = vertParams[465] * _t6842; _t6848 = _t6826 * _t6826; _t6849 = _t6604 * _t6604; _t6850 = _t6849 * _t6640; _t6851 = 1.000000-_t6687; _t6852 = _t6776 * _t6851; _t6853 = _t6852 * _t6850; _t6854 = _t6853 / _t6848; if (_t6854 >= 0.000000) { _t6855 = _t6854; } else { _t6857 = -_t6854; _t6855 = _t6857; } _t6858 = _t6828 * _t6828; _t6859 = _t6606 * _t6606; _t6860 = _t6859 * _t6639; _t6861 = 1.000000-_t6687; _t6862 = _t6797 * _t6861; _t6863 = _t6862 * _t6860; _t6864 = _t6863 / _t6858; if (_t6864 >= 0.000000) { _t6865 = _t6864; } else { _t6867 = -_t6864; _t6865 = _t6867; } _t6798 = _t6845; _t6799 = _t6846; _t6800 = _t6847; _t6801 = _t6855; _t6802 = _t6865; } _t6531 = _t6798; _t6532 = _t6799; _t6533 = _t6800; _t6534 = _t6602; _t6535 = _t6801; _t6536 = _t6802; } else if (vertParams[459] == 0.000000) { _t6868 = _t6403 * _t6497 + _t6404 * _t6498 + _t6405 * _t6499; if (_t6868 > 0.000000) { _t6869 = _t6403; _t6870 = _t6404; _t6871 = _t6405; _t6872 = _t6868; } else { _t6874 = -_t6403; _t6875 = -_t6404; _t6876 = -_t6405; _t6877 = -_t6868; _t6869 = _t6874; _t6870 = _t6875; _t6871 = _t6876; _t6872 = _t6877; } _t6878 = _t6869 * _t6528 + _t6870 * _t6529 + _t6871 * _t6530; _t6879 = _t6878 * 0.318310; _t6880 = _t6872 * 0.318310; _t6881 = _t6879 * vertParams[460]; _t6882 = _t6879 * vertParams[461]; _t6883 = _t6879 * vertParams[462]; _t6531 = _t6881; _t6532 = _t6882; _t6533 = _t6883; _t6534 = _t6878; _t6535 = _t6879; _t6536 = _t6880; } else { _t6531 = 0.000000; _t6532 = 0.000000; _t6533 = 0.000000; _t6534 = 0.000000; _t6535 = 0.000000; _t6536 = 0.000000; } _t6884 = -_t6528; _t6885 = -_t6529; _t6886 = -_t6530; if (vertParams[108] == 1.000000) { _t6896 = _t477 * _t571 + _t478 * _t572 + _t479 * _t573; if (_t6896 > 0.000000) { _t6897 = _t477; _t6898 = _t478; _t6899 = _t479; _t6900 = _t6896; } else { _t6902 = -_t477; _t6903 = -_t478; _t6904 = -_t479; _t6905 = -_t6896; _t6897 = _t6902; _t6898 = _t6903; _t6899 = _t6904; _t6900 = _t6905; } _t6906 = _t6897 * _t6884 + _t6898 * _t6885 + _t6899 * _t6886; if (vertParams[116] > 0.000000) { _t6912 = _t571 * _t6897 + _t572 * _t6898 + _t573 * _t6899; _t6913 = 2.000000 * _t6912; _t6914 = _t6913 * _t6897; _t6915 = _t6914-_t571; _t6916 = _t6913 * _t6898; _t6917 = _t6916-_t572; _t6918 = _t6913 * _t6899; _t6919 = _t6918-_t573; _t6920 = _t6915 * _t6884 + _t6917 * _t6885 + _t6919 * _t6886; _t6921 = pow(_t6920,vertParams[115]); _t6922 = _t6921 * 0.159155; if (_t6922 > 0.000000) { _t6928 = vertParams[115]+1.000000; _t6929 = vertParams[115]+2.000000; _t6930 = _t6929 * _t6922; _t6931 = vertParams[112] * _t6930; _t6932 = vertParams[113] * _t6930; _t6933 = vertParams[114] * _t6930; _t6934 = vertParams[116] * _t6928; _t6935 = _t6934 * _t6922; _t6923 = _t6931; _t6924 = _t6932; _t6925 = _t6933; _t6926 = _t6935; } else { _t6923 = 0.000000; _t6924 = 0.000000; _t6925 = 0.000000; _t6926 = 0.000000; } _t6907 = _t6923; _t6908 = _t6924; _t6909 = _t6925; _t6910 = _t6926; } else { _t6907 = 0.000000; _t6908 = 0.000000; _t6909 = 0.000000; _t6910 = 0.000000; } if (vertParams[116] < 1.000000) { _t6942 = vertParams[109] * 0.318310; _t6943 = vertParams[110] * 0.318310; _t6944 = vertParams[111] * 0.318310; _t6945 = 1.000000-vertParams[116]; _t6946 = _t6945 * 0.318310; _t6947 = _t6946 * _t6906; _t6948 = _t6946 * _t6900; _t6936 = _t6942; _t6937 = _t6943; _t6938 = _t6944; _t6939 = _t6947; _t6940 = _t6948; } else { _t6936 = 0.000000; _t6937 = 0.000000; _t6938 = 0.000000; _t6939 = 0.000000; _t6940 = 0.000000; } _t6949 = _t6907+_t6936; _t6950 = _t6908+_t6937; _t6951 = _t6909+_t6938; _t6952 = _t6910+_t6939; _t6953 = _t6910+_t6940; _t6954 = _t6949 * _t6906; _t6955 = _t6950 * _t6906; _t6956 = _t6951 * _t6906; _t6887 = _t6954; _t6888 = _t6955; _t6889 = _t6956; _t6890 = _t6906; _t6891 = _t6952; _t6892 = _t6953; } else if (vertParams[108] == 2.000000) { _t6957 = _t571 * _t477 + _t572 * _t478 + _t573 * _t479; _t6958 = _t6884 * _t477 + _t6885 * _t478 + _t6886 * _t479; _t6959 = _t6957 * _t6958; if (_t6957 > 0.000000) { _t6960 = vertParams[115]; } else { _t6960 = vertParams[116]; } if (_t6958 > 0.000000) { _t6962 = vertParams[115]; } else { _t6962 = vertParams[116]; } if (_t6959 > 0.000000) { _t6968 = _t571+_t6884; _t6969 = _t572+_t6885; _t6970 = _t573+_t6886; _t6971 = sqrt(_t6968*_t6968+_t6969*_t6969+_t6970*_t6970); _t6972 = (float)1.0 / (_t6971); _t6973 = _t6968 * _t6972; _t6974 = _t6969 * _t6972; _t6975 = _t6970 * _t6972; _t6964 = _t6973; _t6965 = _t6974; _t6966 = _t6975; } else { _t6976 = _t6884 * _t6960; _t6977 = _t571+_t6976; _t6978 = _t6885 * _t6960; _t6979 = _t572+_t6978; _t6980 = _t6886 * _t6960; _t6981 = _t573+_t6980; _t6982 = sqrt(_t6977*_t6977+_t6979*_t6979+_t6981*_t6981); _t6983 = (float)1.0 / (_t6982); _t6984 = _t6977 * _t6983; _t6985 = _t6979 * _t6983; _t6986 = _t6981 * _t6983; _t6964 = _t6984; _t6965 = _t6985; _t6966 = _t6986; } _t6987 = _t6964 * _t477 + _t6965 * _t478 + _t6966 * _t479; if (_t6987 < 0.000000) { _t6992 = -_t6964; _t6993 = -_t6965; _t6994 = -_t6966; _t6988 = _t6992; _t6989 = _t6993; _t6990 = _t6994; } else { _t6988 = _t6964; _t6989 = _t6965; _t6990 = _t6966; } _t6995 = _t571 * _t6988 + _t572 * _t6989 + _t573 * _t6990; _t6996 = _t6884 * _t6988 + _t6885 * _t6989 + _t6886 * _t6990; if (_t479 < -0.999999) { _t6997 = 0.000000; _t6998 = -1.000000; _t6999 = 0.000000; _t7000 = -1.000000; _t7001 = 0.000000; _t7002 = 0.000000; } else { _t7004 = 1.000000+_t479; _t7005 = (float)1.0 / (_t7004); _t7006 = -_t477; _t7007 = _t7006 * _t478; _t7008 = _t7007 * _t7005; _t7009 = -_t477; _t7010 = _t477 * _t477; _t7011 = _t7010 * _t7005; _t7012 = 1.000000-_t7011; _t7013 = -_t478; _t7014 = _t478 * _t478; _t7015 = _t7014 * _t7005; _t7016 = 1.000000-_t7015; _t6997 = _t7012; _t6998 = _t7008; _t6999 = _t7009; _t7000 = _t7008; _t7001 = _t7016; _t7002 = _t7013; } _t7017 = _t477 * _t6988 + _t478 * _t6989 + _t479 * _t6990; _t7018 = _t7000 * _t6988 + _t7001 * _t6989 + _t7002 * _t6990; _t7019 = _t6997 * _t6988 + _t6998 * _t6989 + _t6999 * _t6990; _t7020 = _t7017 * _t7017; _t7021 = vertParams[117] * vertParams[117]; _t7022 = _t7018 * _t7018; _t7023 = _t7022 / _t7021; _t7024 = vertParams[117] * vertParams[117]; _t7025 = _t7019 * _t7019; _t7026 = _t7025 / _t7024; _t7027 = _t7026+_t7023; _t7028 = _t7027 / _t7020; _t7029 = _t7020 * _t7020; _t7030 = 3.141593 * vertParams[117]; _t7031 = _t7030 * vertParams[117]; _t7032 = _t7031 * _t7029; _t7033 = -_t7028; _t7034 = exp(_t7033); _t7035 = _t7034 / _t7032; if (_t6995 > 0.000000) { _t7036 = vertParams[116]; } else { _t7036 = vertParams[115]; } _t7038 = _t7036 * _t7036; _t7039 = _t6995 * _t6995; _t7040 = 1.000000-_t7039; _t7041 = _t7040 * _t7038; _t7042 = 1.000000-_t7041; if (_t7042 <= 0.000000) { _t7043 = 1.000000; } else { if (_t6995 >= 0.000000) { _t7045 = _t6995; } else { _t7047 = -_t6995; _t7045 = _t7047; } _t7048 = sqrt(_t7042); _t7049 = vertParams[115] * _t7048; _t7050 = vertParams[115] * _t7045; _t7051 = _t7045+_t7049; _t7052 = _t7045-_t7049; _t7053 = _t7052 / _t7051; _t7054 = _t7050+_t7048; _t7055 = _t7050-_t7048; _t7056 = _t7055 / _t7054; _t7057 = _t7056 * _t7056; _t7058 = _t7053 * _t7053; _t7059 = _t7058+_t7057; _t7060 = 0.500000 * _t7059; _t7043 = _t7060; } if (_t6957 >= 0.000000) { _t7061 = _t6957; } else { _t7063 = -_t6957; _t7061 = _t7063; } if (_t6958 >= 0.000000) { _t7064 = _t6958; } else { _t7066 = -_t6958; _t7064 = _t7066; } _t7067 = _t7064 * _t7064; _t7068 = 1.000001-_t7067; if (_t7068 >= 0.000000) { _t7069 = _t7068; } else { _t7071 = -_t7068; _t7069 = _t7071; } _t7072 = sqrt(_t7069); _t7073 = _t7072 / _t7064; if (_t7073 <= 0.000000) { _t7074 = 1.000000; } else { _t7076 = vertParams[117] * _t7073; _t7077 = (float)1.0 / (_t7076); if (_t7077 >= 1.600000) { _t7078 = 1.000000; } else { _t7080 = _t7077 * _t7077; _t7081 = 2.577000 * _t7080; _t7082 = 2.276000 * _t7077; _t7083 = 1.000000+_t7082; _t7084 = _t7083+_t7081; _t7085 = 2.181000 * _t7080; _t7086 = 3.535000 * _t7077; _t7087 = _t7086+_t7085; _t7088 = _t7087 / _t7084; _t7078 = _t7088; } _t7074 = _t7078; } _t7089 = _t7061 * _t7061; _t7090 = 1.000001-_t7089; if (_t7090 >= 0.000000) { _t7091 = _t7090; } else { _t7093 = -_t7090; _t7091 = _t7093; } _t7094 = sqrt(_t7091); _t7095 = _t7094 / _t7061; if (_t7095 <= 0.000000) { _t7096 = 1.000000; } else { _t7098 = vertParams[117] * _t7095; _t7099 = (float)1.0 / (_t7098); if (_t7099 >= 1.600000) { _t7100 = 1.000000; } else { _t7102 = _t7099 * _t7099; _t7103 = 2.577000 * _t7102; _t7104 = 2.276000 * _t7099; _t7105 = 1.000000+_t7104; _t7106 = _t7105+_t7103; _t7107 = 2.181000 * _t7102; _t7108 = 3.535000 * _t7099; _t7109 = _t7108+_t7107; _t7110 = _t7109 / _t7106; _t7100 = _t7110; } _t7096 = _t7100; } _t7111 = _t7096 * _t7074; _t7112 = sqrt(_t7061); _t7113 = 0.200000 * _t7112; _t7114 = 1.200000-_t7113; _t7115 = vertParams[117] * _t7114; _t7116 = _t7017 * _t7017; _t7117 = _t7115 * _t7115; _t7118 = _t7018 * _t7018; _t7119 = _t7118 / _t7117; _t7120 = _t7115 * _t7115; _t7121 = _t7019 * _t7019; _t7122 = _t7121 / _t7120; _t7123 = _t7122+_t7119; _t7124 = _t7123 / _t7116; _t7125 = _t7116 * _t7116; _t7126 = 3.141593 * _t7115; _t7127 = _t7126 * _t7115; _t7128 = _t7127 * _t7125; _t7129 = -_t7124; _t7130 = exp(_t7129); _t7131 = _t7130 / _t7128; _t7132 = _t7017 * _t7131; _t7133 = sqrt(_t7064); _t7134 = 0.200000 * _t7133; _t7135 = 1.200000-_t7134; _t7136 = vertParams[117] * _t7135; _t7137 = _t7017 * _t7017; _t7138 = _t7136 * _t7136; _t7139 = _t7018 * _t7018; _t7140 = _t7139 / _t7138; _t7141 = _t7136 * _t7136; _t7142 = _t7019 * _t7019; _t7143 = _t7142 / _t7141; _t7144 = _t7143+_t7140; _t7145 = _t7144 / _t7137; _t7146 = _t7137 * _t7137; _t7147 = 3.141593 * _t7136; _t7148 = _t7147 * _t7136; _t7149 = _t7148 * _t7146; _t7150 = -_t7145; _t7151 = exp(_t7150); _t7152 = _t7151 / _t7149; _t7153 = _t7017 * _t7152; if (_t6959 > 0.000000) { _t7159 = 4.000000 * _t6957; _t7160 = _t7043 * _t7035; _t7161 = _t7160 * _t7111; _t7162 = _t7161 / _t7159; if (_t7162 >= 0.000000) { _t7163 = _t7162; } else { _t7165 = -_t7162; _t7163 = _t7165; } _t7166 = vertParams[109] * _t7163; _t7167 = vertParams[110] * _t7163; _t7168 = vertParams[111] * _t7163; _t7169 = 4.000000 * _t6996; _t7170 = _t7132 * _t7043; _t7171 = _t7170 / _t7169; if (_t7171 >= 0.000000) { _t7172 = _t7171; } else { _t7174 = -_t7171; _t7172 = _t7174; } _t7175 = 4.000000 * _t6995; _t7176 = _t7153 * _t7043; _t7177 = _t7176 / _t7175; if (_t7177 >= 0.000000) { _t7178 = _t7177; } else { _t7180 = -_t7177; _t7178 = _t7180; } _t7154 = _t7166; _t7155 = _t7167; _t7156 = _t7168; _t7157 = _t7172; _t7158 = _t7178; } else { _t7181 = _t6960 * _t6996; _t7182 = _t6995+_t7181; _t7183 = _t6962 * _t6995; _t7184 = _t6996+_t7183; _t7185 = _t7182 * _t7182; _t7186 = _t6957 * _t7185; _t7187 = _t6960 * _t6960; _t7188 = 1.000000-_t7043; _t7189 = _t7188 * _t7035; _t7190 = _t7189 * _t7111; _t7191 = _t7190 * _t7187; _t7192 = _t7191 * _t6995; _t7193 = _t7192 * _t6996; _t7194 = _t7193 / _t7186; if (_t7194 >= 0.000000) { _t7195 = _t7194; } else { _t7197 = -_t7194; _t7195 = _t7197; } _t7198 = vertParams[112] * _t7195; _t7199 = vertParams[113] * _t7195; _t7200 = vertParams[114] * _t7195; _t7201 = _t7182 * _t7182; _t7202 = _t6960 * _t6960; _t7203 = _t7202 * _t6996; _t7204 = 1.000000-_t7043; _t7205 = _t7132 * _t7204; _t7206 = _t7205 * _t7203; _t7207 = _t7206 / _t7201; if (_t7207 >= 0.000000) { _t7208 = _t7207; } else { _t7210 = -_t7207; _t7208 = _t7210; } _t7211 = _t7184 * _t7184; _t7212 = _t6962 * _t6962; _t7213 = _t7212 * _t6995; _t7214 = 1.000000-_t7043; _t7215 = _t7153 * _t7214; _t7216 = _t7215 * _t7213; _t7217 = _t7216 / _t7211; if (_t7217 >= 0.000000) { _t7218 = _t7217; } else { _t7220 = -_t7217; _t7218 = _t7220; } _t7154 = _t7198; _t7155 = _t7199; _t7156 = _t7200; _t7157 = _t7208; _t7158 = _t7218; } _t6887 = _t7154; _t6888 = _t7155; _t6889 = _t7156; _t6890 = _t6958; _t6891 = _t7157; _t6892 = _t7158; } else if (vertParams[108] == 0.000000) { _t7221 = _t477 * _t571 + _t478 * _t572 + _t479 * _t573; if (_t7221 > 0.000000) { _t7222 = _t477; _t7223 = _t478; _t7224 = _t479; _t7225 = _t7221; } else { _t7227 = -_t477; _t7228 = -_t478; _t7229 = -_t479; _t7230 = -_t7221; _t7222 = _t7227; _t7223 = _t7228; _t7224 = _t7229; _t7225 = _t7230; } _t7231 = _t7222 * _t6884 + _t7223 * _t6885 + _t7224 * _t6886; _t7232 = _t7231 * 0.318310; _t7233 = _t7225 * 0.318310; _t7234 = _t7232 * vertParams[109]; _t7235 = _t7232 * vertParams[110]; _t7236 = _t7232 * vertParams[111]; _t6887 = _t7234; _t6888 = _t7235; _t6889 = _t7236; _t6890 = _t7231; _t6891 = _t7232; _t6892 = _t7233; } else { _t6887 = 0.000000; _t6888 = 0.000000; _t6889 = 0.000000; _t6890 = 0.000000; _t6891 = 0.000000; _t6892 = 0.000000; } _t7237 = -_t6528; _t7238 = -_t6529; _t7239 = -_t6530; _t7240 = _t477 * _t571 + _t478 * _t572 + _t479 * _t573; _t7241 = _t477 * _t7237 + _t478 * _t7238 + _t479 * _t7239; _t7242 = _t474 * _t571 + _t475 * _t572 + _t476 * _t573; _t7243 = _t474 * _t7237 + _t475 * _t7238 + _t476 * _t7239; _t7244 = _t7242 * _t7241; _t7245 = _t7243 * _t7240; _t7246 = _t7245 / _t7244; if (_t7246 >= 0.000000) { _t7247 = _t7246; } else { _t7249 = -_t7246; _t7247 = _t7249; } _t7250 = _t6887 * _t7247; _t7251 = _t6888 * _t7247; _t7252 = _t6889 * _t7247; _t7253 = (float)1.0 / (_t6525); _t7254 = _t6535 * _t6890; _t7255 = _t7254 * _t7253; _t7256 = _t6891 * _t6534; _t7257 = _t7256 * _t7253; _t7258 = _t6892 * _t6892; _t7259 = _t593 * _t7258; _t7260 = _t592+_t7259; _t7261 = _t7255 * _t7255; _t7262 = _t7261 * _t7260; _t7263 = _t6536 * _t6536; _t7264 = _t6517 * _t7263; _t7265 = _t6516+_t7264; _t7266 = _t7257 * _t7257; _t7267 = _t7266 * _t7265; _t7268 = _t7262+1.000000; _t7269 = _t7268+_t7267; _t7270 = (float)1.0 / (_t7269); _t7271 = _t462 * _t6394; _t7272 = _t463 * _t6395; _t7273 = _t464 * _t6396; _t7274 = _t7271 * _t6531; _t7275 = _t7272 * _t6532; _t7276 = _t7273 * _t6533; _t7277 = _t7253 * _t7270; _t7278 = _t7274 * _t7250; _t7279 = _t7278 * _t7277; _t7280 = _t7275 * _t7251; _t7281 = _t7280 * _t7277; _t7282 = _t7276 * _t7252; _t7283 = _t7282 * _t7277; _t7284 = _t7283 * 0.072169; _t7285 = _t7281 * 0.715160; _t7286 = _t7279 * 0.212671; _t7287 = _t7286+_t7285; _t7288 = _t7287+_t7284; _t7289 = log(_t7288); logLumValue[0] = _t7289; }
the_stack_data/129709.c
#include <stdio.h> short a = 5; short *b = &a; int main() { printf("%d\n", *b); *b; return 0; }
the_stack_data/143018.c
/* A Bison parser, made by GNU Bison 1.875b. */ /* Skeleton parser for Yacc-like parsing with Bison, Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 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, 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, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. */ /* Written by Richard Stallman by simplifying the original so called ``semantic'' parser. */ /* All symbols defined below should begin with yy or YY, to avoid infringing on user name space. This should be done even for local variables, as they might otherwise be expanded by user macros. There are some unavoidable exceptions within include files to define necessary library symbols; they are noted "INFRINGES ON USER NAME SPACE" below. */ /* Identify Bison output. */ #define YYBISON 1 /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" /* Pure parsers. */ #define YYPURE 0 /* Using locations. */ #define YYLSP_NEEDED 0 /* Tokens. */ #ifndef YYTOKENTYPE # define YYTOKENTYPE /* Put the tokens into the symbol table, so that GDB and other debuggers know about them. */ enum yytokentype { T_PLAYLIST = 258, T_TRACK = 259, T_STRING = 260 }; #endif #define T_PLAYLIST 258 #define T_TRACK 259 #define T_STRING 260 /* Copy the first part of user declarations. */ #line 1 "playlist.y" #include <stdio.h> /* Enabling traces. */ #ifndef YYDEBUG # define YYDEBUG 0 #endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE # undef YYERROR_VERBOSE # define YYERROR_VERBOSE 1 #else # define YYERROR_VERBOSE 0 #endif #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) typedef int YYSTYPE; # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1 # define YYSTYPE_IS_TRIVIAL 1 #endif /* Copy the second part of user declarations. */ /* Line 214 of yacc.c. */ #line 101 "y.tab.c" #if ! defined (yyoverflow) || YYERROR_VERBOSE /* The parser invokes alloca or malloc; define the necessary symbols. */ # if YYSTACK_USE_ALLOCA # define YYSTACK_ALLOC alloca # else # ifndef YYSTACK_USE_ALLOCA # if defined (alloca) || defined (_ALLOCA_H) # define YYSTACK_ALLOC alloca # else # ifdef __GNUC__ # define YYSTACK_ALLOC __builtin_alloca # endif # endif # endif # endif # ifdef YYSTACK_ALLOC /* Pacify GCC's `empty if-body' warning. */ # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) # else # if defined (__STDC__) || defined (__cplusplus) # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif # define YYSTACK_ALLOC malloc # define YYSTACK_FREE free # endif #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ #if (! defined (yyoverflow) \ && (! defined (__cplusplus) \ || (YYSTYPE_IS_TRIVIAL))) /* A type that is properly aligned for any stack member. */ union yyalloc { short yyss; YYSTYPE yyvs; }; /* The size of the maximum gap between one aligned stack and the next. */ # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do not overlap. */ # ifndef YYCOPY # if 1 < __GNUC__ # define YYCOPY(To, From, Count) \ __builtin_memcpy (To, From, (Count) * sizeof (*(From))) # else # define YYCOPY(To, From, Count) \ do \ { \ register YYSIZE_T yyi; \ for (yyi = 0; yyi < (Count); yyi++) \ (To)[yyi] = (From)[yyi]; \ } \ while (0) # endif # endif /* Relocate STACK from its old location to the new one. The local variables YYSIZE and YYSTACKSIZE give the old and new number of elements in the stack, and YYPTR gives the new location of the stack. Advance YYPTR to a properly aligned location for the next stack. */ # define YYSTACK_RELOCATE(Stack) \ do \ { \ YYSIZE_T yynewbytes; \ YYCOPY (&yyptr->Stack, Stack, yysize); \ Stack = &yyptr->Stack; \ yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ yyptr += yynewbytes / sizeof (*yyptr); \ } \ while (0) #endif #if defined (__STDC__) || defined (__cplusplus) typedef signed char yysigned_char; #else typedef short yysigned_char; #endif /* YYFINAL -- State number of the termination state. */ #define YYFINAL 4 /* YYLAST -- Last index in YYTABLE. */ #define YYLAST 6 /* YYNTOKENS -- Number of terminals. */ #define YYNTOKENS 8 /* YYNNTS -- Number of nonterminals. */ #define YYNNTS 4 /* YYNRULES -- Number of rules. */ #define YYNRULES 6 /* YYNRULES -- Number of states. */ #define YYNSTATES 11 /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ #define YYUNDEFTOK 2 #define YYMAXUTOK 260 #define YYTRANSLATE(YYX) \ ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ static const unsigned char yytranslate[] = { 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 2, 7, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, 5 }; #if YYDEBUG /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in YYRHS. */ static const unsigned char yyprhs[] = { 0, 0, 3, 4, 10, 11, 14 }; /* YYRHS -- A `-1'-separated list of the rules' RHS. */ static const yysigned_char yyrhs[] = { 9, 0, -1, -1, 3, 5, 6, 10, 7, -1, -1, 10, 11, -1, 4, 5, -1 }; /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ static const unsigned char yyrline[] = { 0, 9, 9, 10, 13, 14, 17 }; #endif #if YYDEBUG || YYERROR_VERBOSE /* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = { "$end", "error", "$undefined", "T_PLAYLIST", "T_TRACK", "T_STRING", "'{'", "'}'", "$accept", "play_list", "track_list", "track", 0 }; #endif # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ static const unsigned short yytoknum[] = { 0, 256, 257, 258, 259, 260, 123, 125 }; # endif /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ static const unsigned char yyr1[] = { 0, 8, 9, 9, 10, 10, 11 }; /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ static const unsigned char yyr2[] = { 0, 2, 0, 5, 0, 2, 2 }; /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state STATE-NUM when YYTABLE doesn't specify something else to do. Zero means the default is an error. */ static const unsigned char yydefact[] = { 2, 0, 0, 0, 1, 4, 0, 0, 3, 5, 6 }; /* YYDEFGOTO[NTERM-NUM]. */ static const yysigned_char yydefgoto[] = { -1, 2, 6, 9 }; /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing STATE-NUM. */ #define YYPACT_NINF -5 static const yysigned_char yypact[] = { -2, -3, 4, -1, -5, -5, -4, 1, -5, -5, -5 }; /* YYPGOTO[NTERM-NUM]. */ static const yysigned_char yypgoto[] = { -5, -5, -5, -5 }; /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If positive, shift that token. If negative, reduce the rule which number is the opposite. If zero, do what YYDEFACT says. If YYTABLE_NINF, syntax error. */ #define YYTABLE_NINF -1 static const unsigned char yytable[] = { 7, 1, 3, 8, 4, 5, 10 }; static const unsigned char yycheck[] = { 4, 3, 5, 7, 0, 6, 5 }; /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing symbol of state STATE-NUM. */ static const unsigned char yystos[] = { 0, 3, 9, 5, 0, 6, 10, 4, 7, 11, 5 }; #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) # define YYSIZE_T __SIZE_TYPE__ #endif #if ! defined (YYSIZE_T) && defined (size_t) # define YYSIZE_T size_t #endif #if ! defined (YYSIZE_T) # if defined (__STDC__) || defined (__cplusplus) # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ # define YYSIZE_T size_t # endif #endif #if ! defined (YYSIZE_T) # define YYSIZE_T unsigned int #endif #define yyerrok (yyerrstatus = 0) #define yyclearin (yychar = YYEMPTY) #define YYEMPTY (-2) #define YYEOF 0 #define YYACCEPT goto yyacceptlab #define YYABORT goto yyabortlab #define YYERROR goto yyerrlab1 /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. Once GCC version 2 has supplanted version 1, this can go. */ #define YYFAIL goto yyerrlab #define YYRECOVERING() (!!yyerrstatus) #define YYBACKUP(Token, Value) \ do \ if (yychar == YYEMPTY && yylen == 1) \ { \ yychar = (Token); \ yylval = (Value); \ yytoken = YYTRANSLATE (yychar); \ YYPOPSTACK; \ goto yybackup; \ } \ else \ { \ yyerror ("syntax error: cannot back up");\ YYERROR; \ } \ while (0) #define YYTERROR 1 #define YYERRCODE 256 /* YYLLOC_DEFAULT -- Compute the default location (before the actions are run). */ #ifndef YYLLOC_DEFAULT # define YYLLOC_DEFAULT(Current, Rhs, N) \ Current.first_line = Rhs[1].first_line; \ Current.first_column = Rhs[1].first_column; \ Current.last_line = Rhs[N].last_line; \ Current.last_column = Rhs[N].last_column; #endif /* YYLEX -- calling `yylex' with the right arguments. */ #ifdef YYLEX_PARAM # define YYLEX yylex (YYLEX_PARAM) #else # define YYLEX yylex () #endif /* Enable debugging if requested. */ #if YYDEBUG # ifndef YYFPRINTF # include <stdio.h> /* INFRINGES ON USER NAME SPACE */ # define YYFPRINTF fprintf # endif # define YYDPRINTF(Args) \ do { \ if (yydebug) \ YYFPRINTF Args; \ } while (0) # define YYDSYMPRINT(Args) \ do { \ if (yydebug) \ yysymprint Args; \ } while (0) # define YYDSYMPRINTF(Title, Token, Value, Location) \ do { \ if (yydebug) \ { \ YYFPRINTF (stderr, "%s ", Title); \ yysymprint (stderr, \ Token, Value); \ YYFPRINTF (stderr, "\n"); \ } \ } while (0) /*------------------------------------------------------------------. | yy_stack_print -- Print the state stack from its BOTTOM up to its | | TOP (cinluded). | `------------------------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_stack_print (short *bottom, short *top) #else static void yy_stack_print (bottom, top) short *bottom; short *top; #endif { YYFPRINTF (stderr, "Stack now"); for (/* Nothing. */; bottom <= top; ++bottom) YYFPRINTF (stderr, " %d", *bottom); YYFPRINTF (stderr, "\n"); } # define YY_STACK_PRINT(Bottom, Top) \ do { \ if (yydebug) \ yy_stack_print ((Bottom), (Top)); \ } while (0) /*------------------------------------------------. | Report that the YYRULE is going to be reduced. | `------------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yy_reduce_print (int yyrule) #else static void yy_reduce_print (yyrule) int yyrule; #endif { int yyi; unsigned int yylno = yyrline[yyrule]; YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", yyrule - 1, yylno); /* Print the symbols being reduced, and their result. */ for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); } # define YY_REDUCE_PRINT(Rule) \ do { \ if (yydebug) \ yy_reduce_print (Rule); \ } while (0) /* Nonzero means print parse trace. It is left uninitialized so that multiple parsers can coexist. */ int yydebug; #else /* !YYDEBUG */ # define YYDPRINTF(Args) # define YYDSYMPRINT(Args) # define YYDSYMPRINTF(Title, Token, Value, Location) # define YY_STACK_PRINT(Bottom, Top) # define YY_REDUCE_PRINT(Rule) #endif /* !YYDEBUG */ /* YYINITDEPTH -- initial size of the parser's stacks. */ #ifndef YYINITDEPTH # define YYINITDEPTH 200 #endif /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only if the built-in stack extension method is used). Do not make this value too large; the results are undefined if SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) evaluated with infinite-precision integer arithmetic. */ #if YYMAXDEPTH == 0 # undef YYMAXDEPTH #endif #ifndef YYMAXDEPTH # define YYMAXDEPTH 10000 #endif #if YYERROR_VERBOSE # ifndef yystrlen # if defined (__GLIBC__) && defined (_STRING_H) # define yystrlen strlen # else /* Return the length of YYSTR. */ static YYSIZE_T # if defined (__STDC__) || defined (__cplusplus) yystrlen (const char *yystr) # else yystrlen (yystr) const char *yystr; # endif { register const char *yys = yystr; while (*yys++ != '\0') continue; return yys - yystr - 1; } # endif # endif # ifndef yystpcpy # if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE) # define yystpcpy stpcpy # else /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in YYDEST. */ static char * # if defined (__STDC__) || defined (__cplusplus) yystpcpy (char *yydest, const char *yysrc) # else yystpcpy (yydest, yysrc) char *yydest; const char *yysrc; # endif { register char *yyd = yydest; register const char *yys = yysrc; while ((*yyd++ = *yys++) != '\0') continue; return yyd - 1; } # endif # endif #endif /* !YYERROR_VERBOSE */ #if YYDEBUG /*--------------------------------. | Print this symbol on YYOUTPUT. | `--------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep) #else static void yysymprint (yyoutput, yytype, yyvaluep) FILE *yyoutput; int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; if (yytype < YYNTOKENS) { YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); # ifdef YYPRINT YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); # endif } else YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); switch (yytype) { default: break; } YYFPRINTF (yyoutput, ")"); } #endif /* ! YYDEBUG */ /*-----------------------------------------------. | Release the memory associated to this symbol. | `-----------------------------------------------*/ #if defined (__STDC__) || defined (__cplusplus) static void yydestruct (int yytype, YYSTYPE *yyvaluep) #else static void yydestruct (yytype, yyvaluep) int yytype; YYSTYPE *yyvaluep; #endif { /* Pacify ``unused variable'' warnings. */ (void) yyvaluep; switch (yytype) { default: break; } } /* Prevent warnings from -Wmissing-prototypes. */ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM); # else int yyparse (); # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void); #else int yyparse (); #endif #endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; /* Number of syntax errors so far. */ int yynerrs; /*----------. | yyparse. | `----------*/ #ifdef YYPARSE_PARAM # if defined (__STDC__) || defined (__cplusplus) int yyparse (void *YYPARSE_PARAM) # else int yyparse (YYPARSE_PARAM) void *YYPARSE_PARAM; # endif #else /* ! YYPARSE_PARAM */ #if defined (__STDC__) || defined (__cplusplus) int yyparse (void) #else int yyparse () #endif #endif { register int yystate; register int yyn; int yyresult; /* Number of tokens to shift before error messages enabled. */ int yyerrstatus; /* Lookahead token as an internal (translated) token number. */ int yytoken = 0; /* Three stacks and their tools: `yyss': related to states, `yyvs': related to semantic values, `yyls': related to locations. Refer to the stacks thru separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ short yyssa[YYINITDEPTH]; short *yyss = yyssa; register short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; YYSTYPE *yyvs = yyvsa; register YYSTYPE *yyvsp; #define YYPOPSTACK (yyvsp--, yyssp--) YYSIZE_T yystacksize = YYINITDEPTH; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; /* When reducing, the number of symbols on the RHS of the reduced rule. */ int yylen; YYDPRINTF ((stderr, "Starting parse\n")); yystate = 0; yyerrstatus = 0; yynerrs = 0; yychar = YYEMPTY; /* Cause a token to be read. */ /* Initialize stack pointers. Waste one element of value and location stack so that they stay on the same level as the state stack. The wasted elements are never initialized. */ yyssp = yyss; yyvsp = yyvs; goto yysetstate; /*------------------------------------------------------------. | yynewstate -- Push a new state, which is found in yystate. | `------------------------------------------------------------*/ yynewstate: /* In all cases, when you get here, the value and location stacks have just been pushed. so pushing a state here evens the stacks. */ yyssp++; yysetstate: *yyssp = yystate; if (yyss + yystacksize - 1 <= yyssp) { /* Get the current used size of the three stacks, in elements. */ YYSIZE_T yysize = yyssp - yyss + 1; #ifdef yyoverflow { /* Give user a chance to reallocate the stack. Use copies of these so that the &'s don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; short *yyss1 = yyss; /* Each stack pointer address is followed by the size of the data in use in that stack, in bytes. This used to be a conditional around just the two extra args, but that might be undefined if yyoverflow is a macro. */ yyoverflow ("parser stack overflow", &yyss1, yysize * sizeof (*yyssp), &yyvs1, yysize * sizeof (*yyvsp), &yystacksize); yyss = yyss1; yyvs = yyvs1; } #else /* no yyoverflow */ # ifndef YYSTACK_RELOCATE goto yyoverflowlab; # else /* Extend the stack our own way. */ if (YYMAXDEPTH <= yystacksize) goto yyoverflowlab; yystacksize *= 2; if (YYMAXDEPTH < yystacksize) yystacksize = YYMAXDEPTH; { short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) goto yyoverflowlab; YYSTACK_RELOCATE (yyss); YYSTACK_RELOCATE (yyvs); # undef YYSTACK_RELOCATE if (yyss1 != yyssa) YYSTACK_FREE (yyss1); } # endif #endif /* no yyoverflow */ yyssp = yyss + yysize - 1; yyvsp = yyvs + yysize - 1; YYDPRINTF ((stderr, "Stack size increased to %lu\n", (unsigned long int) yystacksize)); if (yyss + yystacksize - 1 <= yyssp) YYABORT; } YYDPRINTF ((stderr, "Entering state %d\n", yystate)); goto yybackup; /*-----------. | yybackup. | `-----------*/ yybackup: /* Do appropriate processing given the current state. */ /* Read a lookahead token if we need one and don't already have one. */ /* yyresume: */ /* First try to decide what to do without reference to lookahead token. */ yyn = yypact[yystate]; if (yyn == YYPACT_NINF) goto yydefault; /* Not known => get a lookahead token if don't already have one. */ /* YYCHAR is either YYEMPTY or YYEOF or a valid lookahead symbol. */ if (yychar == YYEMPTY) { YYDPRINTF ((stderr, "Reading a token: ")); yychar = YYLEX; } if (yychar <= YYEOF) { yychar = yytoken = YYEOF; YYDPRINTF ((stderr, "Now at end of input.\n")); } else { yytoken = YYTRANSLATE (yychar); YYDSYMPRINTF ("Next token is", yytoken, &yylval, &yylloc); } /* If the proper action on seeing token YYTOKEN is to reduce or to detect an error, take that action. */ yyn += yytoken; if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken) goto yydefault; yyn = yytable[yyn]; if (yyn <= 0) { if (yyn == 0 || yyn == YYTABLE_NINF) goto yyerrlab; yyn = -yyn; goto yyreduce; } if (yyn == YYFINAL) YYACCEPT; /* Shift the lookahead token. */ YYDPRINTF ((stderr, "Shifting token %s, ", yytname[yytoken])); /* Discard the token being shifted unless it is eof. */ if (yychar != YYEOF) yychar = YYEMPTY; *++yyvsp = yylval; /* Count tokens shifted since error; after three, turn off error status. */ if (yyerrstatus) yyerrstatus--; yystate = yyn; goto yynewstate; /*-----------------------------------------------------------. | yydefault -- do the default action for the current state. | `-----------------------------------------------------------*/ yydefault: yyn = yydefact[yystate]; if (yyn == 0) goto yyerrlab; goto yyreduce; /*-----------------------------. | yyreduce -- Do a reduction. | `-----------------------------*/ yyreduce: /* yyn is the number of a rule to reduce with. */ yylen = yyr2[yyn]; /* If YYLEN is nonzero, implement the default value of the action: `$$ = $1'. Otherwise, the following line sets YYVAL to garbage. This behavior is undocumented and Bison users should not rely upon it. Assigning to YYVAL unconditionally makes the parser a bit smaller, and it avoids a GCC warning that YYVAL may be used uninitialized. */ yyval = yyvsp[1-yylen]; YY_REDUCE_PRINT (yyn); switch (yyn) { } /* Line 999 of yacc.c. */ #line 967 "y.tab.c" yyvsp -= yylen; yyssp -= yylen; YY_STACK_PRINT (yyss, yyssp); *++yyvsp = yyval; /* Now `shift' the result of the reduction. Determine what state that goes to, based on the state we popped back to and the rule number reduced by. */ yyn = yyr1[yyn]; yystate = yypgoto[yyn - YYNTOKENS] + *yyssp; if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp) yystate = yytable[yystate]; else yystate = yydefgoto[yyn - YYNTOKENS]; goto yynewstate; /*------------------------------------. | yyerrlab -- here on detecting error | `------------------------------------*/ yyerrlab: /* If not already recovering from an error, report this error. */ if (!yyerrstatus) { ++yynerrs; #if YYERROR_VERBOSE yyn = yypact[yystate]; if (YYPACT_NINF < yyn && yyn < YYLAST) { YYSIZE_T yysize = 0; int yytype = YYTRANSLATE (yychar); const char* yyprefix; char *yymsg; int yyx; /* Start YYX at -YYN if negative to avoid negative indexes in YYCHECK. */ int yyxbegin = yyn < 0 ? -yyn : 0; /* Stay within bounds of both yycheck and yytname. */ int yychecklim = YYLAST - yyn; int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; int yycount = 0; yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); yycount += 1; if (yycount == 5) { yysize = 0; break; } } yysize += (sizeof ("syntax error, unexpected ") + yystrlen (yytname[yytype])); yymsg = (char *) YYSTACK_ALLOC (yysize); if (yymsg != 0) { char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); yyp = yystpcpy (yyp, yytname[yytype]); if (yycount < 5) { yyprefix = ", expecting "; for (yyx = yyxbegin; yyx < yyxend; ++yyx) if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) { yyp = yystpcpy (yyp, yyprefix); yyp = yystpcpy (yyp, yytname[yyx]); yyprefix = " or "; } } yyerror (yymsg); YYSTACK_FREE (yymsg); } else yyerror ("syntax error; also virtual memory exhausted"); } else #endif /* YYERROR_VERBOSE */ yyerror ("syntax error"); } if (yyerrstatus == 3) { /* If just tried and failed to reuse lookahead token after an error, discard it. */ /* Return failure if at end of input. */ if (yychar == YYEOF) { /* Pop the error token. */ YYPOPSTACK; /* Pop the rest of the stack. */ while (yyss < yyssp) { YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[*yyssp], yyvsp); YYPOPSTACK; } YYABORT; } YYDSYMPRINTF ("Error: discarding", yytoken, &yylval, &yylloc); yydestruct (yytoken, &yylval); yychar = YYEMPTY; } /* Else will try to reuse lookahead token after shifting the error token. */ goto yyerrlab1; /*----------------------------------------------------. | yyerrlab1 -- error raised explicitly by an action. | `----------------------------------------------------*/ yyerrlab1: yyerrstatus = 3; /* Each real token shifted decrements this. */ for (;;) { yyn = yypact[yystate]; if (yyn != YYPACT_NINF) { yyn += YYTERROR; if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) { yyn = yytable[yyn]; if (0 < yyn) break; } } /* Pop the current state because it cannot handle the error token. */ if (yyssp == yyss) YYABORT; YYDSYMPRINTF ("Error: popping", yystos[*yyssp], yyvsp, yylsp); yydestruct (yystos[yystate], yyvsp); yyvsp--; yystate = *--yyssp; YY_STACK_PRINT (yyss, yyssp); } if (yyn == YYFINAL) YYACCEPT; YYDPRINTF ((stderr, "Shifting error token, ")); *++yyvsp = yylval; yystate = yyn; goto yynewstate; /*-------------------------------------. | yyacceptlab -- YYACCEPT comes here. | `-------------------------------------*/ yyacceptlab: yyresult = 0; goto yyreturn; /*-----------------------------------. | yyabortlab -- YYABORT comes here. | `-----------------------------------*/ yyabortlab: yyresult = 1; goto yyreturn; #ifndef yyoverflow /*----------------------------------------------. | yyoverflowlab -- parser overflow comes here. | `----------------------------------------------*/ yyoverflowlab: yyerror ("parser stack overflow"); yyresult = 2; /* Fall through. */ #endif yyreturn: #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); #endif return yyresult; } #line 19 "playlist.y"
the_stack_data/104829128.c
// // ucs2keysym.c // RemotePad Server // // Derived from a code keysym2ucs.c of xterm. // Modified by iKawamoto Yosihisa! on 09/03/04. // Copyright 2009 tenjin.org. All rights reserved. // /* $XTermId: keysym2ucs.c,v 1.15 2007/06/13 00:16:56 tom Exp $ * This module converts keysym values into the corresponding ISO 10646 * (UCS, Unicode) values. * * The array keysymtab[] contains pairs of X11 keysym values for graphical * characters and the corresponding Unicode value. The function * keysym2ucs() maps a keysym onto a Unicode value using a binary search, * therefore keysymtab[] must remain SORTED by keysym value. * * The keysym -> UTF-8 conversion will hopefully one day be provided * by Xlib via XmbLookupString() and should ideally not have to be * done in X applications. But we are not there yet. * * We allow to represent any UCS character in the range U-00000000 to * U-00FFFFFF by a keysym value in the range 0x01000000 to 0x01ffffff. * This admittedly does not cover the entire 31-bit space of UCS, but * it does cover all of the characters up to U-10FFFF, which can be * represented by UTF-16, and more, and it is very unlikely that higher * UCS codes will ever be assigned by ISO. So to get Unicode character * U+ABCD you can directly use keysym 0x0100abcd. * * NOTE: The comments in the table below contain the actual character * encoded in UTF-8, so for viewing and editing best use an editor in * UTF-8 mode. * * Author: Markus G. Kuhn <[email protected]>, University of Cambridge, April 2001 * * Special thanks to Richard Verhoeven <[email protected]> for preparing * an initial draft of the mapping table. * * This software is in the public domain. Share and enjoy! * * AUTOMATICALLY GENERATED FILE, DO NOT EDIT !!! (unicode/convmap.pl) */ #include <X11/X.h> static struct codepair { unsigned short keysym; unsigned short ucs; } keysymtab[] = { { 0xff08, 0x0008 }, /* BackSpace */ { 0xff0d, 0x000a }, /* Linefeed */ { 0x0abd, 0x002e }, /* decimalpoint . FULL STOP */ { 0x0ba3, 0x003c }, /* leftcaret < LESS-THAN SIGN */ { 0x0ba6, 0x003e }, /* rightcaret > GREATER-THAN SIGN */ { 0x0bc6, 0x005f }, /* underbar _ LOW LINE */ { 0x0bc0, 0x00af }, /* overbar ¯ MACRON */ { 0x03c0, 0x0100 }, /* Amacron Ā LATIN CAPITAL LETTER A WITH MACRON */ { 0x03e0, 0x0101 }, /* amacron ā LATIN SMALL LETTER A WITH MACRON */ { 0x01c3, 0x0102 }, /* Abreve Ă LATIN CAPITAL LETTER A WITH BREVE */ { 0x01e3, 0x0103 }, /* abreve ă LATIN SMALL LETTER A WITH BREVE */ { 0x01a1, 0x0104 }, /* Aogonek Ą LATIN CAPITAL LETTER A WITH OGONEK */ { 0x01b1, 0x0105 }, /* aogonek ą LATIN SMALL LETTER A WITH OGONEK */ { 0x01c6, 0x0106 }, /* Cacute Ć LATIN CAPITAL LETTER C WITH ACUTE */ { 0x01e6, 0x0107 }, /* cacute ć LATIN SMALL LETTER C WITH ACUTE */ { 0x02c6, 0x0108 }, /* Ccircumflex Ĉ LATIN CAPITAL LETTER C WITH CIRCUMFLEX */ { 0x02e6, 0x0109 }, /* ccircumflex ĉ LATIN SMALL LETTER C WITH CIRCUMFLEX */ { 0x02c5, 0x010a }, /* Cabovedot Ċ LATIN CAPITAL LETTER C WITH DOT ABOVE */ { 0x02e5, 0x010b }, /* cabovedot ċ LATIN SMALL LETTER C WITH DOT ABOVE */ { 0x01c8, 0x010c }, /* Ccaron Č LATIN CAPITAL LETTER C WITH CARON */ { 0x01e8, 0x010d }, /* ccaron č LATIN SMALL LETTER C WITH CARON */ { 0x01cf, 0x010e }, /* Dcaron Ď LATIN CAPITAL LETTER D WITH CARON */ { 0x01ef, 0x010f }, /* dcaron ď LATIN SMALL LETTER D WITH CARON */ { 0x01d0, 0x0110 }, /* Dstroke Đ LATIN CAPITAL LETTER D WITH STROKE */ { 0x01f0, 0x0111 }, /* dstroke đ LATIN SMALL LETTER D WITH STROKE */ { 0x03aa, 0x0112 }, /* Emacron Ē LATIN CAPITAL LETTER E WITH MACRON */ { 0x03ba, 0x0113 }, /* emacron ē LATIN SMALL LETTER E WITH MACRON */ { 0x03cc, 0x0116 }, /* Eabovedot Ė LATIN CAPITAL LETTER E WITH DOT ABOVE */ { 0x03ec, 0x0117 }, /* eabovedot ė LATIN SMALL LETTER E WITH DOT ABOVE */ { 0x01ca, 0x0118 }, /* Eogonek Ę LATIN CAPITAL LETTER E WITH OGONEK */ { 0x01ea, 0x0119 }, /* eogonek ę LATIN SMALL LETTER E WITH OGONEK */ { 0x01cc, 0x011a }, /* Ecaron Ě LATIN CAPITAL LETTER E WITH CARON */ { 0x01ec, 0x011b }, /* ecaron ě LATIN SMALL LETTER E WITH CARON */ { 0x02d8, 0x011c }, /* Gcircumflex Ĝ LATIN CAPITAL LETTER G WITH CIRCUMFLEX */ { 0x02f8, 0x011d }, /* gcircumflex ĝ LATIN SMALL LETTER G WITH CIRCUMFLEX */ { 0x02ab, 0x011e }, /* Gbreve Ğ LATIN CAPITAL LETTER G WITH BREVE */ { 0x02bb, 0x011f }, /* gbreve ğ LATIN SMALL LETTER G WITH BREVE */ { 0x02d5, 0x0120 }, /* Gabovedot Ġ LATIN CAPITAL LETTER G WITH DOT ABOVE */ { 0x02f5, 0x0121 }, /* gabovedot ġ LATIN SMALL LETTER G WITH DOT ABOVE */ { 0x03ab, 0x0122 }, /* Gcedilla Ģ LATIN CAPITAL LETTER G WITH CEDILLA */ { 0x03bb, 0x0123 }, /* gcedilla ģ LATIN SMALL LETTER G WITH CEDILLA */ { 0x02a6, 0x0124 }, /* Hcircumflex Ĥ LATIN CAPITAL LETTER H WITH CIRCUMFLEX */ { 0x02b6, 0x0125 }, /* hcircumflex ĥ LATIN SMALL LETTER H WITH CIRCUMFLEX */ { 0x02a1, 0x0126 }, /* Hstroke Ħ LATIN CAPITAL LETTER H WITH STROKE */ { 0x02b1, 0x0127 }, /* hstroke ħ LATIN SMALL LETTER H WITH STROKE */ { 0x03a5, 0x0128 }, /* Itilde Ĩ LATIN CAPITAL LETTER I WITH TILDE */ { 0x03b5, 0x0129 }, /* itilde ĩ LATIN SMALL LETTER I WITH TILDE */ { 0x03cf, 0x012a }, /* Imacron Ī LATIN CAPITAL LETTER I WITH MACRON */ { 0x03ef, 0x012b }, /* imacron ī LATIN SMALL LETTER I WITH MACRON */ { 0x03c7, 0x012e }, /* Iogonek Į LATIN CAPITAL LETTER I WITH OGONEK */ { 0x03e7, 0x012f }, /* iogonek į LATIN SMALL LETTER I WITH OGONEK */ { 0x02a9, 0x0130 }, /* Iabovedot İ LATIN CAPITAL LETTER I WITH DOT ABOVE */ { 0x02b9, 0x0131 }, /* idotless ı LATIN SMALL LETTER DOTLESS I */ { 0x02ac, 0x0134 }, /* Jcircumflex Ĵ LATIN CAPITAL LETTER J WITH CIRCUMFLEX */ { 0x02bc, 0x0135 }, /* jcircumflex ĵ LATIN SMALL LETTER J WITH CIRCUMFLEX */ { 0x03d3, 0x0136 }, /* Kcedilla Ķ LATIN CAPITAL LETTER K WITH CEDILLA */ { 0x03f3, 0x0137 }, /* kcedilla ķ LATIN SMALL LETTER K WITH CEDILLA */ { 0x03a2, 0x0138 }, /* kra ĸ LATIN SMALL LETTER KRA */ { 0x01c5, 0x0139 }, /* Lacute Ĺ LATIN CAPITAL LETTER L WITH ACUTE */ { 0x01e5, 0x013a }, /* lacute ĺ LATIN SMALL LETTER L WITH ACUTE */ { 0x03a6, 0x013b }, /* Lcedilla Ļ LATIN CAPITAL LETTER L WITH CEDILLA */ { 0x03b6, 0x013c }, /* lcedilla ļ LATIN SMALL LETTER L WITH CEDILLA */ { 0x01a5, 0x013d }, /* Lcaron Ľ LATIN CAPITAL LETTER L WITH CARON */ { 0x01b5, 0x013e }, /* lcaron ľ LATIN SMALL LETTER L WITH CARON */ { 0x01a3, 0x0141 }, /* Lstroke Ł LATIN CAPITAL LETTER L WITH STROKE */ { 0x01b3, 0x0142 }, /* lstroke ł LATIN SMALL LETTER L WITH STROKE */ { 0x01d1, 0x0143 }, /* Nacute Ń LATIN CAPITAL LETTER N WITH ACUTE */ { 0x01f1, 0x0144 }, /* nacute ń LATIN SMALL LETTER N WITH ACUTE */ { 0x03d1, 0x0145 }, /* Ncedilla Ņ LATIN CAPITAL LETTER N WITH CEDILLA */ { 0x03f1, 0x0146 }, /* ncedilla ņ LATIN SMALL LETTER N WITH CEDILLA */ { 0x01d2, 0x0147 }, /* Ncaron Ň LATIN CAPITAL LETTER N WITH CARON */ { 0x01f2, 0x0148 }, /* ncaron ň LATIN SMALL LETTER N WITH CARON */ { 0x03bd, 0x014a }, /* ENG Ŋ LATIN CAPITAL LETTER ENG */ { 0x03bf, 0x014b }, /* eng ŋ LATIN SMALL LETTER ENG */ { 0x03d2, 0x014c }, /* Omacron Ō LATIN CAPITAL LETTER O WITH MACRON */ { 0x03f2, 0x014d }, /* omacron ō LATIN SMALL LETTER O WITH MACRON */ { 0x01d5, 0x0150 }, /* Odoubleacute Ő LATIN CAPITAL LETTER O WITH DOUBLE ACUTE */ { 0x01f5, 0x0151 }, /* odoubleacute ő LATIN SMALL LETTER O WITH DOUBLE ACUTE */ { 0x13bc, 0x0152 }, /* OE Œ LATIN CAPITAL LIGATURE OE */ { 0x13bd, 0x0153 }, /* oe œ LATIN SMALL LIGATURE OE */ { 0x01c0, 0x0154 }, /* Racute Ŕ LATIN CAPITAL LETTER R WITH ACUTE */ { 0x01e0, 0x0155 }, /* racute ŕ LATIN SMALL LETTER R WITH ACUTE */ { 0x03a3, 0x0156 }, /* Rcedilla Ŗ LATIN CAPITAL LETTER R WITH CEDILLA */ { 0x03b3, 0x0157 }, /* rcedilla ŗ LATIN SMALL LETTER R WITH CEDILLA */ { 0x01d8, 0x0158 }, /* Rcaron Ř LATIN CAPITAL LETTER R WITH CARON */ { 0x01f8, 0x0159 }, /* rcaron ř LATIN SMALL LETTER R WITH CARON */ { 0x01a6, 0x015a }, /* Sacute Ś LATIN CAPITAL LETTER S WITH ACUTE */ { 0x01b6, 0x015b }, /* sacute ś LATIN SMALL LETTER S WITH ACUTE */ { 0x02de, 0x015c }, /* Scircumflex Ŝ LATIN CAPITAL LETTER S WITH CIRCUMFLEX */ { 0x02fe, 0x015d }, /* scircumflex ŝ LATIN SMALL LETTER S WITH CIRCUMFLEX */ { 0x01aa, 0x015e }, /* Scedilla Ş LATIN CAPITAL LETTER S WITH CEDILLA */ { 0x01ba, 0x015f }, /* scedilla ş LATIN SMALL LETTER S WITH CEDILLA */ { 0x01a9, 0x0160 }, /* Scaron Š LATIN CAPITAL LETTER S WITH CARON */ { 0x01b9, 0x0161 }, /* scaron š LATIN SMALL LETTER S WITH CARON */ { 0x01de, 0x0162 }, /* Tcedilla Ţ LATIN CAPITAL LETTER T WITH CEDILLA */ { 0x01fe, 0x0163 }, /* tcedilla ţ LATIN SMALL LETTER T WITH CEDILLA */ { 0x01ab, 0x0164 }, /* Tcaron Ť LATIN CAPITAL LETTER T WITH CARON */ { 0x01bb, 0x0165 }, /* tcaron ť LATIN SMALL LETTER T WITH CARON */ { 0x03ac, 0x0166 }, /* Tslash Ŧ LATIN CAPITAL LETTER T WITH STROKE */ { 0x03bc, 0x0167 }, /* tslash ŧ LATIN SMALL LETTER T WITH STROKE */ { 0x03dd, 0x0168 }, /* Utilde Ũ LATIN CAPITAL LETTER U WITH TILDE */ { 0x03fd, 0x0169 }, /* utilde ũ LATIN SMALL LETTER U WITH TILDE */ { 0x03de, 0x016a }, /* Umacron Ū LATIN CAPITAL LETTER U WITH MACRON */ { 0x03fe, 0x016b }, /* umacron ū LATIN SMALL LETTER U WITH MACRON */ { 0x02dd, 0x016c }, /* Ubreve Ŭ LATIN CAPITAL LETTER U WITH BREVE */ { 0x02fd, 0x016d }, /* ubreve ŭ LATIN SMALL LETTER U WITH BREVE */ { 0x01d9, 0x016e }, /* Uring Ů LATIN CAPITAL LETTER U WITH RING ABOVE */ { 0x01f9, 0x016f }, /* uring ů LATIN SMALL LETTER U WITH RING ABOVE */ { 0x01db, 0x0170 }, /* Udoubleacute Ű LATIN CAPITAL LETTER U WITH DOUBLE ACUTE */ { 0x01fb, 0x0171 }, /* udoubleacute ű LATIN SMALL LETTER U WITH DOUBLE ACUTE */ { 0x03d9, 0x0172 }, /* Uogonek Ų LATIN CAPITAL LETTER U WITH OGONEK */ { 0x03f9, 0x0173 }, /* uogonek ų LATIN SMALL LETTER U WITH OGONEK */ { 0x13be, 0x0178 }, /* Ydiaeresis Ÿ LATIN CAPITAL LETTER Y WITH DIAERESIS */ { 0x01ac, 0x0179 }, /* Zacute Ź LATIN CAPITAL LETTER Z WITH ACUTE */ { 0x01bc, 0x017a }, /* zacute ź LATIN SMALL LETTER Z WITH ACUTE */ { 0x01af, 0x017b }, /* Zabovedot Ż LATIN CAPITAL LETTER Z WITH DOT ABOVE */ { 0x01bf, 0x017c }, /* zabovedot ż LATIN SMALL LETTER Z WITH DOT ABOVE */ { 0x01ae, 0x017d }, /* Zcaron Ž LATIN CAPITAL LETTER Z WITH CARON */ { 0x01be, 0x017e }, /* zcaron ž LATIN SMALL LETTER Z WITH CARON */ { 0x08f6, 0x0192 }, /* function ƒ LATIN SMALL LETTER F WITH HOOK */ { 0x01b7, 0x02c7 }, /* caron ˇ CARON */ { 0x01a2, 0x02d8 }, /* breve ˘ BREVE */ { 0x01ff, 0x02d9 }, /* abovedot ˙ DOT ABOVE */ { 0x01b2, 0x02db }, /* ogonek ˛ OGONEK */ { 0x01bd, 0x02dd }, /* doubleacute ˝ DOUBLE ACUTE ACCENT */ { 0x07ae, 0x0385 }, /* Greek_accentdieresis ΅ GREEK DIALYTIKA TONOS */ { 0x07a1, 0x0386 }, /* Greek_ALPHAaccent Ά GREEK CAPITAL LETTER ALPHA WITH TONOS */ { 0x07a2, 0x0388 }, /* Greek_EPSILONaccent Έ GREEK CAPITAL LETTER EPSILON WITH TONOS */ { 0x07a3, 0x0389 }, /* Greek_ETAaccent Ή GREEK CAPITAL LETTER ETA WITH TONOS */ { 0x07a4, 0x038a }, /* Greek_IOTAaccent Ί GREEK CAPITAL LETTER IOTA WITH TONOS */ { 0x07a7, 0x038c }, /* Greek_OMICRONaccent Ό GREEK CAPITAL LETTER OMICRON WITH TONOS */ { 0x07a8, 0x038e }, /* Greek_UPSILONaccent Ύ GREEK CAPITAL LETTER UPSILON WITH TONOS */ { 0x07ab, 0x038f }, /* Greek_OMEGAaccent Ώ GREEK CAPITAL LETTER OMEGA WITH TONOS */ { 0x07b6, 0x0390 }, /* Greek_iotaaccentdieresis ΐ GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS */ { 0x07c1, 0x0391 }, /* Greek_ALPHA Α GREEK CAPITAL LETTER ALPHA */ { 0x07c2, 0x0392 }, /* Greek_BETA Β GREEK CAPITAL LETTER BETA */ { 0x07c3, 0x0393 }, /* Greek_GAMMA Γ GREEK CAPITAL LETTER GAMMA */ { 0x07c4, 0x0394 }, /* Greek_DELTA Δ GREEK CAPITAL LETTER DELTA */ { 0x07c5, 0x0395 }, /* Greek_EPSILON Ε GREEK CAPITAL LETTER EPSILON */ { 0x07c6, 0x0396 }, /* Greek_ZETA Ζ GREEK CAPITAL LETTER ZETA */ { 0x07c7, 0x0397 }, /* Greek_ETA Η GREEK CAPITAL LETTER ETA */ { 0x07c8, 0x0398 }, /* Greek_THETA Θ GREEK CAPITAL LETTER THETA */ { 0x07c9, 0x0399 }, /* Greek_IOTA Ι GREEK CAPITAL LETTER IOTA */ { 0x07ca, 0x039a }, /* Greek_KAPPA Κ GREEK CAPITAL LETTER KAPPA */ { 0x07cb, 0x039b }, /* Greek_LAMBDA Λ GREEK CAPITAL LETTER LAMDA */ { 0x07cc, 0x039c }, /* Greek_MU Μ GREEK CAPITAL LETTER MU */ { 0x07cd, 0x039d }, /* Greek_NU Ν GREEK CAPITAL LETTER NU */ { 0x07ce, 0x039e }, /* Greek_XI Ξ GREEK CAPITAL LETTER XI */ { 0x07cf, 0x039f }, /* Greek_OMICRON Ο GREEK CAPITAL LETTER OMICRON */ { 0x07d0, 0x03a0 }, /* Greek_PI Π GREEK CAPITAL LETTER PI */ { 0x07d1, 0x03a1 }, /* Greek_RHO Ρ GREEK CAPITAL LETTER RHO */ { 0x07d2, 0x03a3 }, /* Greek_SIGMA Σ GREEK CAPITAL LETTER SIGMA */ { 0x07d4, 0x03a4 }, /* Greek_TAU Τ GREEK CAPITAL LETTER TAU */ { 0x07d5, 0x03a5 }, /* Greek_UPSILON Υ GREEK CAPITAL LETTER UPSILON */ { 0x07d6, 0x03a6 }, /* Greek_PHI Φ GREEK CAPITAL LETTER PHI */ { 0x07d7, 0x03a7 }, /* Greek_CHI Χ GREEK CAPITAL LETTER CHI */ { 0x07d8, 0x03a8 }, /* Greek_PSI Ψ GREEK CAPITAL LETTER PSI */ { 0x07d9, 0x03a9 }, /* Greek_OMEGA Ω GREEK CAPITAL LETTER OMEGA */ { 0x07a5, 0x03aa }, /* Greek_IOTAdiaeresis Ϊ GREEK CAPITAL LETTER IOTA WITH DIALYTIKA */ { 0x07a9, 0x03ab }, /* Greek_UPSILONdieresis Ϋ GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA */ { 0x07b1, 0x03ac }, /* Greek_alphaaccent ά GREEK SMALL LETTER ALPHA WITH TONOS */ { 0x07b2, 0x03ad }, /* Greek_epsilonaccent έ GREEK SMALL LETTER EPSILON WITH TONOS */ { 0x07b3, 0x03ae }, /* Greek_etaaccent ή GREEK SMALL LETTER ETA WITH TONOS */ { 0x07b4, 0x03af }, /* Greek_iotaaccent ί GREEK SMALL LETTER IOTA WITH TONOS */ { 0x07ba, 0x03b0 }, /* Greek_upsilonaccentdieresis ΰ GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS */ { 0x07e1, 0x03b1 }, /* Greek_alpha α GREEK SMALL LETTER ALPHA */ { 0x07e2, 0x03b2 }, /* Greek_beta β GREEK SMALL LETTER BETA */ { 0x07e3, 0x03b3 }, /* Greek_gamma γ GREEK SMALL LETTER GAMMA */ { 0x07e4, 0x03b4 }, /* Greek_delta δ GREEK SMALL LETTER DELTA */ { 0x07e5, 0x03b5 }, /* Greek_epsilon ε GREEK SMALL LETTER EPSILON */ { 0x07e6, 0x03b6 }, /* Greek_zeta ζ GREEK SMALL LETTER ZETA */ { 0x07e7, 0x03b7 }, /* Greek_eta η GREEK SMALL LETTER ETA */ { 0x07e8, 0x03b8 }, /* Greek_theta θ GREEK SMALL LETTER THETA */ { 0x07e9, 0x03b9 }, /* Greek_iota ι GREEK SMALL LETTER IOTA */ { 0x07ea, 0x03ba }, /* Greek_kappa κ GREEK SMALL LETTER KAPPA */ { 0x07eb, 0x03bb }, /* Greek_lambda λ GREEK SMALL LETTER LAMDA */ { 0x07ec, 0x03bc }, /* Greek_mu μ GREEK SMALL LETTER MU */ { 0x07ed, 0x03bd }, /* Greek_nu ν GREEK SMALL LETTER NU */ { 0x07ee, 0x03be }, /* Greek_xi ξ GREEK SMALL LETTER XI */ { 0x07ef, 0x03bf }, /* Greek_omicron ο GREEK SMALL LETTER OMICRON */ { 0x07f0, 0x03c0 }, /* Greek_pi π GREEK SMALL LETTER PI */ { 0x07f1, 0x03c1 }, /* Greek_rho ρ GREEK SMALL LETTER RHO */ { 0x07f3, 0x03c2 }, /* Greek_finalsmallsigma ς GREEK SMALL LETTER FINAL SIGMA */ { 0x07f2, 0x03c3 }, /* Greek_sigma σ GREEK SMALL LETTER SIGMA */ { 0x07f4, 0x03c4 }, /* Greek_tau τ GREEK SMALL LETTER TAU */ { 0x07f5, 0x03c5 }, /* Greek_upsilon υ GREEK SMALL LETTER UPSILON */ { 0x07f6, 0x03c6 }, /* Greek_phi φ GREEK SMALL LETTER PHI */ { 0x07f7, 0x03c7 }, /* Greek_chi χ GREEK SMALL LETTER CHI */ { 0x07f8, 0x03c8 }, /* Greek_psi ψ GREEK SMALL LETTER PSI */ { 0x07f9, 0x03c9 }, /* Greek_omega ω GREEK SMALL LETTER OMEGA */ { 0x07b5, 0x03ca }, /* Greek_iotadieresis ϊ GREEK SMALL LETTER IOTA WITH DIALYTIKA */ { 0x07b9, 0x03cb }, /* Greek_upsilondieresis ϋ GREEK SMALL LETTER UPSILON WITH DIALYTIKA */ { 0x07b7, 0x03cc }, /* Greek_omicronaccent ό GREEK SMALL LETTER OMICRON WITH TONOS */ { 0x07b8, 0x03cd }, /* Greek_upsilonaccent ύ GREEK SMALL LETTER UPSILON WITH TONOS */ { 0x07bb, 0x03ce }, /* Greek_omegaaccent ώ GREEK SMALL LETTER OMEGA WITH TONOS */ { 0x06b3, 0x0401 }, /* Cyrillic_IO Ё CYRILLIC CAPITAL LETTER IO */ { 0x06b1, 0x0402 }, /* Serbian_DJE Ђ CYRILLIC CAPITAL LETTER DJE */ { 0x06b2, 0x0403 }, /* Macedonia_GJE Ѓ CYRILLIC CAPITAL LETTER GJE */ { 0x06b4, 0x0404 }, /* Ukrainian_IE Є CYRILLIC CAPITAL LETTER UKRAINIAN IE */ { 0x06b5, 0x0405 }, /* Macedonia_DSE Ѕ CYRILLIC CAPITAL LETTER DZE */ { 0x06b6, 0x0406 }, /* Ukrainian_I І CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I */ { 0x06b7, 0x0407 }, /* Ukrainian_YI Ї CYRILLIC CAPITAL LETTER YI */ { 0x06b8, 0x0408 }, /* Cyrillic_JE Ј CYRILLIC CAPITAL LETTER JE */ { 0x06b9, 0x0409 }, /* Cyrillic_LJE Љ CYRILLIC CAPITAL LETTER LJE */ { 0x06ba, 0x040a }, /* Cyrillic_NJE Њ CYRILLIC CAPITAL LETTER NJE */ { 0x06bb, 0x040b }, /* Serbian_TSHE Ћ CYRILLIC CAPITAL LETTER TSHE */ { 0x06bc, 0x040c }, /* Macedonia_KJE Ќ CYRILLIC CAPITAL LETTER KJE */ { 0x06be, 0x040e }, /* Byelorussian_SHORTU Ў CYRILLIC CAPITAL LETTER SHORT U */ { 0x06bf, 0x040f }, /* Cyrillic_DZHE Џ CYRILLIC CAPITAL LETTER DZHE */ { 0x06e1, 0x0410 }, /* Cyrillic_A А CYRILLIC CAPITAL LETTER A */ { 0x06e2, 0x0411 }, /* Cyrillic_BE Б CYRILLIC CAPITAL LETTER BE */ { 0x06f7, 0x0412 }, /* Cyrillic_VE В CYRILLIC CAPITAL LETTER VE */ { 0x06e7, 0x0413 }, /* Cyrillic_GHE Г CYRILLIC CAPITAL LETTER GHE */ { 0x06e4, 0x0414 }, /* Cyrillic_DE Д CYRILLIC CAPITAL LETTER DE */ { 0x06e5, 0x0415 }, /* Cyrillic_IE Е CYRILLIC CAPITAL LETTER IE */ { 0x06f6, 0x0416 }, /* Cyrillic_ZHE Ж CYRILLIC CAPITAL LETTER ZHE */ { 0x06fa, 0x0417 }, /* Cyrillic_ZE З CYRILLIC CAPITAL LETTER ZE */ { 0x06e9, 0x0418 }, /* Cyrillic_I И CYRILLIC CAPITAL LETTER I */ { 0x06ea, 0x0419 }, /* Cyrillic_SHORTI Й CYRILLIC CAPITAL LETTER SHORT I */ { 0x06eb, 0x041a }, /* Cyrillic_KA К CYRILLIC CAPITAL LETTER KA */ { 0x06ec, 0x041b }, /* Cyrillic_EL Л CYRILLIC CAPITAL LETTER EL */ { 0x06ed, 0x041c }, /* Cyrillic_EM М CYRILLIC CAPITAL LETTER EM */ { 0x06ee, 0x041d }, /* Cyrillic_EN Н CYRILLIC CAPITAL LETTER EN */ { 0x06ef, 0x041e }, /* Cyrillic_O О CYRILLIC CAPITAL LETTER O */ { 0x06f0, 0x041f }, /* Cyrillic_PE П CYRILLIC CAPITAL LETTER PE */ { 0x06f2, 0x0420 }, /* Cyrillic_ER Р CYRILLIC CAPITAL LETTER ER */ { 0x06f3, 0x0421 }, /* Cyrillic_ES С CYRILLIC CAPITAL LETTER ES */ { 0x06f4, 0x0422 }, /* Cyrillic_TE Т CYRILLIC CAPITAL LETTER TE */ { 0x06f5, 0x0423 }, /* Cyrillic_U У CYRILLIC CAPITAL LETTER U */ { 0x06e6, 0x0424 }, /* Cyrillic_EF Ф CYRILLIC CAPITAL LETTER EF */ { 0x06e8, 0x0425 }, /* Cyrillic_HA Х CYRILLIC CAPITAL LETTER HA */ { 0x06e3, 0x0426 }, /* Cyrillic_TSE Ц CYRILLIC CAPITAL LETTER TSE */ { 0x06fe, 0x0427 }, /* Cyrillic_CHE Ч CYRILLIC CAPITAL LETTER CHE */ { 0x06fb, 0x0428 }, /* Cyrillic_SHA Ш CYRILLIC CAPITAL LETTER SHA */ { 0x06fd, 0x0429 }, /* Cyrillic_SHCHA Щ CYRILLIC CAPITAL LETTER SHCHA */ { 0x06ff, 0x042a }, /* Cyrillic_HARDSIGN Ъ CYRILLIC CAPITAL LETTER HARD SIGN */ { 0x06f9, 0x042b }, /* Cyrillic_YERU Ы CYRILLIC CAPITAL LETTER YERU */ { 0x06f8, 0x042c }, /* Cyrillic_SOFTSIGN Ь CYRILLIC CAPITAL LETTER SOFT SIGN */ { 0x06fc, 0x042d }, /* Cyrillic_E Э CYRILLIC CAPITAL LETTER E */ { 0x06e0, 0x042e }, /* Cyrillic_YU Ю CYRILLIC CAPITAL LETTER YU */ { 0x06f1, 0x042f }, /* Cyrillic_YA Я CYRILLIC CAPITAL LETTER YA */ { 0x06c1, 0x0430 }, /* Cyrillic_a а CYRILLIC SMALL LETTER A */ { 0x06c2, 0x0431 }, /* Cyrillic_be б CYRILLIC SMALL LETTER BE */ { 0x06d7, 0x0432 }, /* Cyrillic_ve в CYRILLIC SMALL LETTER VE */ { 0x06c7, 0x0433 }, /* Cyrillic_ghe г CYRILLIC SMALL LETTER GHE */ { 0x06c4, 0x0434 }, /* Cyrillic_de д CYRILLIC SMALL LETTER DE */ { 0x06c5, 0x0435 }, /* Cyrillic_ie е CYRILLIC SMALL LETTER IE */ { 0x06d6, 0x0436 }, /* Cyrillic_zhe ж CYRILLIC SMALL LETTER ZHE */ { 0x06da, 0x0437 }, /* Cyrillic_ze з CYRILLIC SMALL LETTER ZE */ { 0x06c9, 0x0438 }, /* Cyrillic_i и CYRILLIC SMALL LETTER I */ { 0x06ca, 0x0439 }, /* Cyrillic_shorti й CYRILLIC SMALL LETTER SHORT I */ { 0x06cb, 0x043a }, /* Cyrillic_ka к CYRILLIC SMALL LETTER KA */ { 0x06cc, 0x043b }, /* Cyrillic_el л CYRILLIC SMALL LETTER EL */ { 0x06cd, 0x043c }, /* Cyrillic_em м CYRILLIC SMALL LETTER EM */ { 0x06ce, 0x043d }, /* Cyrillic_en н CYRILLIC SMALL LETTER EN */ { 0x06cf, 0x043e }, /* Cyrillic_o о CYRILLIC SMALL LETTER O */ { 0x06d0, 0x043f }, /* Cyrillic_pe п CYRILLIC SMALL LETTER PE */ { 0x06d2, 0x0440 }, /* Cyrillic_er р CYRILLIC SMALL LETTER ER */ { 0x06d3, 0x0441 }, /* Cyrillic_es с CYRILLIC SMALL LETTER ES */ { 0x06d4, 0x0442 }, /* Cyrillic_te т CYRILLIC SMALL LETTER TE */ { 0x06d5, 0x0443 }, /* Cyrillic_u у CYRILLIC SMALL LETTER U */ { 0x06c6, 0x0444 }, /* Cyrillic_ef ф CYRILLIC SMALL LETTER EF */ { 0x06c8, 0x0445 }, /* Cyrillic_ha х CYRILLIC SMALL LETTER HA */ { 0x06c3, 0x0446 }, /* Cyrillic_tse ц CYRILLIC SMALL LETTER TSE */ { 0x06de, 0x0447 }, /* Cyrillic_che ч CYRILLIC SMALL LETTER CHE */ { 0x06db, 0x0448 }, /* Cyrillic_sha ш CYRILLIC SMALL LETTER SHA */ { 0x06dd, 0x0449 }, /* Cyrillic_shcha щ CYRILLIC SMALL LETTER SHCHA */ { 0x06df, 0x044a }, /* Cyrillic_hardsign ъ CYRILLIC SMALL LETTER HARD SIGN */ { 0x06d9, 0x044b }, /* Cyrillic_yeru ы CYRILLIC SMALL LETTER YERU */ { 0x06d8, 0x044c }, /* Cyrillic_softsign ь CYRILLIC SMALL LETTER SOFT SIGN */ { 0x06dc, 0x044d }, /* Cyrillic_e э CYRILLIC SMALL LETTER E */ { 0x06c0, 0x044e }, /* Cyrillic_yu ю CYRILLIC SMALL LETTER YU */ { 0x06d1, 0x044f }, /* Cyrillic_ya я CYRILLIC SMALL LETTER YA */ { 0x06a3, 0x0451 }, /* Cyrillic_io ё CYRILLIC SMALL LETTER IO */ { 0x06a1, 0x0452 }, /* Serbian_dje ђ CYRILLIC SMALL LETTER DJE */ { 0x06a2, 0x0453 }, /* Macedonia_gje ѓ CYRILLIC SMALL LETTER GJE */ { 0x06a4, 0x0454 }, /* Ukrainian_ie є CYRILLIC SMALL LETTER UKRAINIAN IE */ { 0x06a5, 0x0455 }, /* Macedonia_dse ѕ CYRILLIC SMALL LETTER DZE */ { 0x06a6, 0x0456 }, /* Ukrainian_i і CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I */ { 0x06a7, 0x0457 }, /* Ukrainian_yi ї CYRILLIC SMALL LETTER YI */ { 0x06a8, 0x0458 }, /* Cyrillic_je ј CYRILLIC SMALL LETTER JE */ { 0x06a9, 0x0459 }, /* Cyrillic_lje љ CYRILLIC SMALL LETTER LJE */ { 0x06aa, 0x045a }, /* Cyrillic_nje њ CYRILLIC SMALL LETTER NJE */ { 0x06ab, 0x045b }, /* Serbian_tshe ћ CYRILLIC SMALL LETTER TSHE */ { 0x06ac, 0x045c }, /* Macedonia_kje ќ CYRILLIC SMALL LETTER KJE */ { 0x06ae, 0x045e }, /* Byelorussian_shortu ў CYRILLIC SMALL LETTER SHORT U */ { 0x06af, 0x045f }, /* Cyrillic_dzhe џ CYRILLIC SMALL LETTER DZHE */ { 0x06bd, 0x0490 }, /* Ukrainian_GHE_WITH_UPTURN Ґ CYRILLIC CAPITAL LETTER GHE WITH UPTURN */ { 0x06ad, 0x0491 }, /* Ukrainian_ghe_with_upturn ґ CYRILLIC SMALL LETTER GHE WITH UPTURN */ { 0x0ce0, 0x05d0 }, /* hebrew_aleph א HEBREW LETTER ALEF */ { 0x0ce1, 0x05d1 }, /* hebrew_bet ב HEBREW LETTER BET */ { 0x0ce2, 0x05d2 }, /* hebrew_gimel ג HEBREW LETTER GIMEL */ { 0x0ce3, 0x05d3 }, /* hebrew_dalet ד HEBREW LETTER DALET */ { 0x0ce4, 0x05d4 }, /* hebrew_he ה HEBREW LETTER HE */ { 0x0ce5, 0x05d5 }, /* hebrew_waw ו HEBREW LETTER VAV */ { 0x0ce6, 0x05d6 }, /* hebrew_zain ז HEBREW LETTER ZAYIN */ { 0x0ce7, 0x05d7 }, /* hebrew_chet ח HEBREW LETTER HET */ { 0x0ce8, 0x05d8 }, /* hebrew_tet ט HEBREW LETTER TET */ { 0x0ce9, 0x05d9 }, /* hebrew_yod י HEBREW LETTER YOD */ { 0x0cea, 0x05da }, /* hebrew_finalkaph ך HEBREW LETTER FINAL KAF */ { 0x0ceb, 0x05db }, /* hebrew_kaph כ HEBREW LETTER KAF */ { 0x0cec, 0x05dc }, /* hebrew_lamed ל HEBREW LETTER LAMED */ { 0x0ced, 0x05dd }, /* hebrew_finalmem ם HEBREW LETTER FINAL MEM */ { 0x0cee, 0x05de }, /* hebrew_mem מ HEBREW LETTER MEM */ { 0x0cef, 0x05df }, /* hebrew_finalnun ן HEBREW LETTER FINAL NUN */ { 0x0cf0, 0x05e0 }, /* hebrew_nun נ HEBREW LETTER NUN */ { 0x0cf1, 0x05e1 }, /* hebrew_samech ס HEBREW LETTER SAMEKH */ { 0x0cf2, 0x05e2 }, /* hebrew_ayin ע HEBREW LETTER AYIN */ { 0x0cf3, 0x05e3 }, /* hebrew_finalpe ף HEBREW LETTER FINAL PE */ { 0x0cf4, 0x05e4 }, /* hebrew_pe פ HEBREW LETTER PE */ { 0x0cf5, 0x05e5 }, /* hebrew_finalzade ץ HEBREW LETTER FINAL TSADI */ { 0x0cf6, 0x05e6 }, /* hebrew_zade צ HEBREW LETTER TSADI */ { 0x0cf7, 0x05e7 }, /* hebrew_qoph ק HEBREW LETTER QOF */ { 0x0cf8, 0x05e8 }, /* hebrew_resh ר HEBREW LETTER RESH */ { 0x0cf9, 0x05e9 }, /* hebrew_shin ש HEBREW LETTER SHIN */ { 0x0cfa, 0x05ea }, /* hebrew_taw ת HEBREW LETTER TAV */ { 0x05ac, 0x060c }, /* Arabic_comma ، ARABIC COMMA */ { 0x05bb, 0x061b }, /* Arabic_semicolon ؛ ARABIC SEMICOLON */ { 0x05bf, 0x061f }, /* Arabic_question_mark ؟ ARABIC QUESTION MARK */ { 0x05c1, 0x0621 }, /* Arabic_hamza ء ARABIC LETTER HAMZA */ { 0x05c2, 0x0622 }, /* Arabic_maddaonalef آ ARABIC LETTER ALEF WITH MADDA ABOVE */ { 0x05c3, 0x0623 }, /* Arabic_hamzaonalef أ ARABIC LETTER ALEF WITH HAMZA ABOVE */ { 0x05c4, 0x0624 }, /* Arabic_hamzaonwaw ؤ ARABIC LETTER WAW WITH HAMZA ABOVE */ { 0x05c5, 0x0625 }, /* Arabic_hamzaunderalef إ ARABIC LETTER ALEF WITH HAMZA BELOW */ { 0x05c6, 0x0626 }, /* Arabic_hamzaonyeh ئ ARABIC LETTER YEH WITH HAMZA ABOVE */ { 0x05c7, 0x0627 }, /* Arabic_alef ا ARABIC LETTER ALEF */ { 0x05c8, 0x0628 }, /* Arabic_beh ب ARABIC LETTER BEH */ { 0x05c9, 0x0629 }, /* Arabic_tehmarbuta ة ARABIC LETTER TEH MARBUTA */ { 0x05ca, 0x062a }, /* Arabic_teh ت ARABIC LETTER TEH */ { 0x05cb, 0x062b }, /* Arabic_theh ث ARABIC LETTER THEH */ { 0x05cc, 0x062c }, /* Arabic_jeem ج ARABIC LETTER JEEM */ { 0x05cd, 0x062d }, /* Arabic_hah ح ARABIC LETTER HAH */ { 0x05ce, 0x062e }, /* Arabic_khah خ ARABIC LETTER KHAH */ { 0x05cf, 0x062f }, /* Arabic_dal د ARABIC LETTER DAL */ { 0x05d0, 0x0630 }, /* Arabic_thal ذ ARABIC LETTER THAL */ { 0x05d1, 0x0631 }, /* Arabic_ra ر ARABIC LETTER REH */ { 0x05d2, 0x0632 }, /* Arabic_zain ز ARABIC LETTER ZAIN */ { 0x05d3, 0x0633 }, /* Arabic_seen س ARABIC LETTER SEEN */ { 0x05d4, 0x0634 }, /* Arabic_sheen ش ARABIC LETTER SHEEN */ { 0x05d5, 0x0635 }, /* Arabic_sad ص ARABIC LETTER SAD */ { 0x05d6, 0x0636 }, /* Arabic_dad ض ARABIC LETTER DAD */ { 0x05d7, 0x0637 }, /* Arabic_tah ط ARABIC LETTER TAH */ { 0x05d8, 0x0638 }, /* Arabic_zah ظ ARABIC LETTER ZAH */ { 0x05d9, 0x0639 }, /* Arabic_ain ع ARABIC LETTER AIN */ { 0x05da, 0x063a }, /* Arabic_ghain غ ARABIC LETTER GHAIN */ { 0x05e0, 0x0640 }, /* Arabic_tatweel ـ ARABIC TATWEEL */ { 0x05e1, 0x0641 }, /* Arabic_feh ف ARABIC LETTER FEH */ { 0x05e2, 0x0642 }, /* Arabic_qaf ق ARABIC LETTER QAF */ { 0x05e3, 0x0643 }, /* Arabic_kaf ك ARABIC LETTER KAF */ { 0x05e4, 0x0644 }, /* Arabic_lam ل ARABIC LETTER LAM */ { 0x05e5, 0x0645 }, /* Arabic_meem م ARABIC LETTER MEEM */ { 0x05e6, 0x0646 }, /* Arabic_noon ن ARABIC LETTER NOON */ { 0x05e7, 0x0647 }, /* Arabic_ha ه ARABIC LETTER HEH */ { 0x05e8, 0x0648 }, /* Arabic_waw و ARABIC LETTER WAW */ { 0x05e9, 0x0649 }, /* Arabic_alefmaksura ى ARABIC LETTER ALEF MAKSURA */ { 0x05ea, 0x064a }, /* Arabic_yeh ي ARABIC LETTER YEH */ { 0x05eb, 0x064b }, /* Arabic_fathatan ً ARABIC FATHATAN */ { 0x05ec, 0x064c }, /* Arabic_dammatan ٌ ARABIC DAMMATAN */ { 0x05ed, 0x064d }, /* Arabic_kasratan ٍ ARABIC KASRATAN */ { 0x05ee, 0x064e }, /* Arabic_fatha َ ARABIC FATHA */ { 0x05ef, 0x064f }, /* Arabic_damma ُ ARABIC DAMMA */ { 0x05f0, 0x0650 }, /* Arabic_kasra ِ ARABIC KASRA */ { 0x05f1, 0x0651 }, /* Arabic_shadda ّ ARABIC SHADDA */ { 0x05f2, 0x0652 }, /* Arabic_sukun ْ ARABIC SUKUN */ { 0x0da1, 0x0e01 }, /* Thai_kokai ก THAI CHARACTER KO KAI */ { 0x0da2, 0x0e02 }, /* Thai_khokhai ข THAI CHARACTER KHO KHAI */ { 0x0da3, 0x0e03 }, /* Thai_khokhuat ฃ THAI CHARACTER KHO KHUAT */ { 0x0da4, 0x0e04 }, /* Thai_khokhwai ค THAI CHARACTER KHO KHWAI */ { 0x0da5, 0x0e05 }, /* Thai_khokhon ฅ THAI CHARACTER KHO KHON */ { 0x0da6, 0x0e06 }, /* Thai_khorakhang ฆ THAI CHARACTER KHO RAKHANG */ { 0x0da7, 0x0e07 }, /* Thai_ngongu ง THAI CHARACTER NGO NGU */ { 0x0da8, 0x0e08 }, /* Thai_chochan จ THAI CHARACTER CHO CHAN */ { 0x0da9, 0x0e09 }, /* Thai_choching ฉ THAI CHARACTER CHO CHING */ { 0x0daa, 0x0e0a }, /* Thai_chochang ช THAI CHARACTER CHO CHANG */ { 0x0dab, 0x0e0b }, /* Thai_soso ซ THAI CHARACTER SO SO */ { 0x0dac, 0x0e0c }, /* Thai_chochoe ฌ THAI CHARACTER CHO CHOE */ { 0x0dad, 0x0e0d }, /* Thai_yoying ญ THAI CHARACTER YO YING */ { 0x0dae, 0x0e0e }, /* Thai_dochada ฎ THAI CHARACTER DO CHADA */ { 0x0daf, 0x0e0f }, /* Thai_topatak ฏ THAI CHARACTER TO PATAK */ { 0x0db0, 0x0e10 }, /* Thai_thothan ฐ THAI CHARACTER THO THAN */ { 0x0db1, 0x0e11 }, /* Thai_thonangmontho ฑ THAI CHARACTER THO NANGMONTHO */ { 0x0db2, 0x0e12 }, /* Thai_thophuthao ฒ THAI CHARACTER THO PHUTHAO */ { 0x0db3, 0x0e13 }, /* Thai_nonen ณ THAI CHARACTER NO NEN */ { 0x0db4, 0x0e14 }, /* Thai_dodek ด THAI CHARACTER DO DEK */ { 0x0db5, 0x0e15 }, /* Thai_totao ต THAI CHARACTER TO TAO */ { 0x0db6, 0x0e16 }, /* Thai_thothung ถ THAI CHARACTER THO THUNG */ { 0x0db7, 0x0e17 }, /* Thai_thothahan ท THAI CHARACTER THO THAHAN */ { 0x0db8, 0x0e18 }, /* Thai_thothong ธ THAI CHARACTER THO THONG */ { 0x0db9, 0x0e19 }, /* Thai_nonu น THAI CHARACTER NO NU */ { 0x0dba, 0x0e1a }, /* Thai_bobaimai บ THAI CHARACTER BO BAIMAI */ { 0x0dbb, 0x0e1b }, /* Thai_popla ป THAI CHARACTER PO PLA */ { 0x0dbc, 0x0e1c }, /* Thai_phophung ผ THAI CHARACTER PHO PHUNG */ { 0x0dbd, 0x0e1d }, /* Thai_fofa ฝ THAI CHARACTER FO FA */ { 0x0dbe, 0x0e1e }, /* Thai_phophan พ THAI CHARACTER PHO PHAN */ { 0x0dbf, 0x0e1f }, /* Thai_fofan ฟ THAI CHARACTER FO FAN */ { 0x0dc0, 0x0e20 }, /* Thai_phosamphao ภ THAI CHARACTER PHO SAMPHAO */ { 0x0dc1, 0x0e21 }, /* Thai_moma ม THAI CHARACTER MO MA */ { 0x0dc2, 0x0e22 }, /* Thai_yoyak ย THAI CHARACTER YO YAK */ { 0x0dc3, 0x0e23 }, /* Thai_rorua ร THAI CHARACTER RO RUA */ { 0x0dc4, 0x0e24 }, /* Thai_ru ฤ THAI CHARACTER RU */ { 0x0dc5, 0x0e25 }, /* Thai_loling ล THAI CHARACTER LO LING */ { 0x0dc6, 0x0e26 }, /* Thai_lu ฦ THAI CHARACTER LU */ { 0x0dc7, 0x0e27 }, /* Thai_wowaen ว THAI CHARACTER WO WAEN */ { 0x0dc8, 0x0e28 }, /* Thai_sosala ศ THAI CHARACTER SO SALA */ { 0x0dc9, 0x0e29 }, /* Thai_sorusi ษ THAI CHARACTER SO RUSI */ { 0x0dca, 0x0e2a }, /* Thai_sosua ส THAI CHARACTER SO SUA */ { 0x0dcb, 0x0e2b }, /* Thai_hohip ห THAI CHARACTER HO HIP */ { 0x0dcc, 0x0e2c }, /* Thai_lochula ฬ THAI CHARACTER LO CHULA */ { 0x0dcd, 0x0e2d }, /* Thai_oang อ THAI CHARACTER O ANG */ { 0x0dce, 0x0e2e }, /* Thai_honokhuk ฮ THAI CHARACTER HO NOKHUK */ { 0x0dcf, 0x0e2f }, /* Thai_paiyannoi ฯ THAI CHARACTER PAIYANNOI */ { 0x0dd0, 0x0e30 }, /* Thai_saraa ะ THAI CHARACTER SARA A */ { 0x0dd1, 0x0e31 }, /* Thai_maihanakat ั THAI CHARACTER MAI HAN-AKAT */ { 0x0dd2, 0x0e32 }, /* Thai_saraaa า THAI CHARACTER SARA AA */ { 0x0dd3, 0x0e33 }, /* Thai_saraam ำ THAI CHARACTER SARA AM */ { 0x0dd4, 0x0e34 }, /* Thai_sarai ิ THAI CHARACTER SARA I */ { 0x0dd5, 0x0e35 }, /* Thai_saraii ี THAI CHARACTER SARA II */ { 0x0dd6, 0x0e36 }, /* Thai_saraue ึ THAI CHARACTER SARA UE */ { 0x0dd7, 0x0e37 }, /* Thai_sarauee ื THAI CHARACTER SARA UEE */ { 0x0dd8, 0x0e38 }, /* Thai_sarau ุ THAI CHARACTER SARA U */ { 0x0dd9, 0x0e39 }, /* Thai_sarauu ู THAI CHARACTER SARA UU */ { 0x0dda, 0x0e3a }, /* Thai_phinthu ฺ THAI CHARACTER PHINTHU */ { 0x0dde, 0x0e3e }, /* Thai_maihanakat_maitho ฾ ??? */ { 0x0ddf, 0x0e3f }, /* Thai_baht ฿ THAI CURRENCY SYMBOL BAHT */ { 0x0de0, 0x0e40 }, /* Thai_sarae เ THAI CHARACTER SARA E */ { 0x0de1, 0x0e41 }, /* Thai_saraae แ THAI CHARACTER SARA AE */ { 0x0de2, 0x0e42 }, /* Thai_sarao โ THAI CHARACTER SARA O */ { 0x0de3, 0x0e43 }, /* Thai_saraaimaimuan ใ THAI CHARACTER SARA AI MAIMUAN */ { 0x0de4, 0x0e44 }, /* Thai_saraaimaimalai ไ THAI CHARACTER SARA AI MAIMALAI */ { 0x0de5, 0x0e45 }, /* Thai_lakkhangyao ๅ THAI CHARACTER LAKKHANGYAO */ { 0x0de6, 0x0e46 }, /* Thai_maiyamok ๆ THAI CHARACTER MAIYAMOK */ { 0x0de7, 0x0e47 }, /* Thai_maitaikhu ็ THAI CHARACTER MAITAIKHU */ { 0x0de8, 0x0e48 }, /* Thai_maiek ่ THAI CHARACTER MAI EK */ { 0x0de9, 0x0e49 }, /* Thai_maitho ้ THAI CHARACTER MAI THO */ { 0x0dea, 0x0e4a }, /* Thai_maitri ๊ THAI CHARACTER MAI TRI */ { 0x0deb, 0x0e4b }, /* Thai_maichattawa ๋ THAI CHARACTER MAI CHATTAWA */ { 0x0dec, 0x0e4c }, /* Thai_thanthakhat ์ THAI CHARACTER THANTHAKHAT */ { 0x0ded, 0x0e4d }, /* Thai_nikhahit ํ THAI CHARACTER NIKHAHIT */ { 0x0df0, 0x0e50 }, /* Thai_leksun ๐ THAI DIGIT ZERO */ { 0x0df1, 0x0e51 }, /* Thai_leknung ๑ THAI DIGIT ONE */ { 0x0df2, 0x0e52 }, /* Thai_leksong ๒ THAI DIGIT TWO */ { 0x0df3, 0x0e53 }, /* Thai_leksam ๓ THAI DIGIT THREE */ { 0x0df4, 0x0e54 }, /* Thai_leksi ๔ THAI DIGIT FOUR */ { 0x0df5, 0x0e55 }, /* Thai_lekha ๕ THAI DIGIT FIVE */ { 0x0df6, 0x0e56 }, /* Thai_lekhok ๖ THAI DIGIT SIX */ { 0x0df7, 0x0e57 }, /* Thai_lekchet ๗ THAI DIGIT SEVEN */ { 0x0df8, 0x0e58 }, /* Thai_lekpaet ๘ THAI DIGIT EIGHT */ { 0x0df9, 0x0e59 }, /* Thai_lekkao ๙ THAI DIGIT NINE */ { 0x0ed4, 0x11a8 }, /* Hangul_J_Kiyeog ᆨ HANGUL JONGSEONG KIYEOK */ { 0x0ed5, 0x11a9 }, /* Hangul_J_SsangKiyeog ᆩ HANGUL JONGSEONG SSANGKIYEOK */ { 0x0ed6, 0x11aa }, /* Hangul_J_KiyeogSios ᆪ HANGUL JONGSEONG KIYEOK-SIOS */ { 0x0ed7, 0x11ab }, /* Hangul_J_Nieun ᆫ HANGUL JONGSEONG NIEUN */ { 0x0ed8, 0x11ac }, /* Hangul_J_NieunJieuj ᆬ HANGUL JONGSEONG NIEUN-CIEUC */ { 0x0ed9, 0x11ad }, /* Hangul_J_NieunHieuh ᆭ HANGUL JONGSEONG NIEUN-HIEUH */ { 0x0eda, 0x11ae }, /* Hangul_J_Dikeud ᆮ HANGUL JONGSEONG TIKEUT */ { 0x0edb, 0x11af }, /* Hangul_J_Rieul ᆯ HANGUL JONGSEONG RIEUL */ { 0x0edc, 0x11b0 }, /* Hangul_J_RieulKiyeog ᆰ HANGUL JONGSEONG RIEUL-KIYEOK */ { 0x0edd, 0x11b1 }, /* Hangul_J_RieulMieum ᆱ HANGUL JONGSEONG RIEUL-MIEUM */ { 0x0ede, 0x11b2 }, /* Hangul_J_RieulPieub ᆲ HANGUL JONGSEONG RIEUL-PIEUP */ { 0x0edf, 0x11b3 }, /* Hangul_J_RieulSios ᆳ HANGUL JONGSEONG RIEUL-SIOS */ { 0x0ee0, 0x11b4 }, /* Hangul_J_RieulTieut ᆴ HANGUL JONGSEONG RIEUL-THIEUTH */ { 0x0ee1, 0x11b5 }, /* Hangul_J_RieulPhieuf ᆵ HANGUL JONGSEONG RIEUL-PHIEUPH */ { 0x0ee2, 0x11b6 }, /* Hangul_J_RieulHieuh ᆶ HANGUL JONGSEONG RIEUL-HIEUH */ { 0x0ee3, 0x11b7 }, /* Hangul_J_Mieum ᆷ HANGUL JONGSEONG MIEUM */ { 0x0ee4, 0x11b8 }, /* Hangul_J_Pieub ᆸ HANGUL JONGSEONG PIEUP */ { 0x0ee5, 0x11b9 }, /* Hangul_J_PieubSios ᆹ HANGUL JONGSEONG PIEUP-SIOS */ { 0x0ee6, 0x11ba }, /* Hangul_J_Sios ᆺ HANGUL JONGSEONG SIOS */ { 0x0ee7, 0x11bb }, /* Hangul_J_SsangSios ᆻ HANGUL JONGSEONG SSANGSIOS */ { 0x0ee8, 0x11bc }, /* Hangul_J_Ieung ᆼ HANGUL JONGSEONG IEUNG */ { 0x0ee9, 0x11bd }, /* Hangul_J_Jieuj ᆽ HANGUL JONGSEONG CIEUC */ { 0x0eea, 0x11be }, /* Hangul_J_Cieuc ᆾ HANGUL JONGSEONG CHIEUCH */ { 0x0eeb, 0x11bf }, /* Hangul_J_Khieuq ᆿ HANGUL JONGSEONG KHIEUKH */ { 0x0eec, 0x11c0 }, /* Hangul_J_Tieut ᇀ HANGUL JONGSEONG THIEUTH */ { 0x0eed, 0x11c1 }, /* Hangul_J_Phieuf ᇁ HANGUL JONGSEONG PHIEUPH */ { 0x0eee, 0x11c2 }, /* Hangul_J_Hieuh ᇂ HANGUL JONGSEONG HIEUH */ { 0x0ef8, 0x11eb }, /* Hangul_J_PanSios ᇫ HANGUL JONGSEONG PANSIOS */ { 0x0ef9, 0x11f0 }, /* Hangul_J_KkogjiDalrinIeung ᇰ HANGUL JONGSEONG YESIEUNG */ { 0x0efa, 0x11f9 }, /* Hangul_J_YeorinHieuh ᇹ HANGUL JONGSEONG YEORINHIEUH */ { 0x0aa2, 0x2002 }, /* enspace   EN SPACE */ { 0x0aa1, 0x2003 }, /* emspace   EM SPACE */ { 0x0aa3, 0x2004 }, /* em3space   THREE-PER-EM SPACE */ { 0x0aa4, 0x2005 }, /* em4space   FOUR-PER-EM SPACE */ { 0x0aa5, 0x2007 }, /* digitspace   FIGURE SPACE */ { 0x0aa6, 0x2008 }, /* punctspace   PUNCTUATION SPACE */ { 0x0aa7, 0x2009 }, /* thinspace   THIN SPACE */ { 0x0aa8, 0x200a }, /* hairspace   HAIR SPACE */ { 0x0abb, 0x2012 }, /* figdash ‒ FIGURE DASH */ { 0x0aaa, 0x2013 }, /* endash – EN DASH */ { 0x0aa9, 0x2014 }, /* emdash — EM DASH */ { 0x07af, 0x2015 }, /* Greek_horizbar ― HORIZONTAL BAR */ { 0x0cdf, 0x2017 }, /* hebrew_doublelowline ‗ DOUBLE LOW LINE */ { 0x0ad0, 0x2018 }, /* leftsinglequotemark ‘ LEFT SINGLE QUOTATION MARK */ { 0x0ad1, 0x2019 }, /* rightsinglequotemark ’ RIGHT SINGLE QUOTATION MARK */ { 0x0afd, 0x201a }, /* singlelowquotemark ‚ SINGLE LOW-9 QUOTATION MARK */ { 0x0ad2, 0x201c }, /* leftdoublequotemark “ LEFT DOUBLE QUOTATION MARK */ { 0x0ad3, 0x201d }, /* rightdoublequotemark ” RIGHT DOUBLE QUOTATION MARK */ { 0x0afe, 0x201e }, /* doublelowquotemark „ DOUBLE LOW-9 QUOTATION MARK */ { 0x0af1, 0x2020 }, /* dagger † DAGGER */ { 0x0af2, 0x2021 }, /* doubledagger ‡ DOUBLE DAGGER */ { 0x0ae6, 0x2022 }, /* enfilledcircbullet • BULLET */ { 0x0aaf, 0x2025 }, /* doubbaselinedot ‥ TWO DOT LEADER */ { 0x0aae, 0x2026 }, /* ellipsis … HORIZONTAL ELLIPSIS */ { 0x0ad6, 0x2032 }, /* minutes ′ PRIME */ { 0x0ad7, 0x2033 }, /* seconds ″ DOUBLE PRIME */ { 0x0afc, 0x2038 }, /* caret ‸ CARET */ { 0x047e, 0x203e }, /* overline ‾ OVERLINE */ { 0x20a0, 0x20a0 }, /* EcuSign ₠ EURO-CURRENCY SIGN */ { 0x20a1, 0x20a1 }, /* ColonSign ₡ COLON SIGN */ { 0x20a2, 0x20a2 }, /* CruzeiroSign ₢ CRUZEIRO SIGN */ { 0x20a3, 0x20a3 }, /* FFrancSign ₣ FRENCH FRANC SIGN */ { 0x20a4, 0x20a4 }, /* LiraSign ₤ LIRA SIGN */ { 0x20a5, 0x20a5 }, /* MillSign ₥ MILL SIGN */ { 0x20a6, 0x20a6 }, /* NairaSign ₦ NAIRA SIGN */ { 0x20a7, 0x20a7 }, /* PesetaSign ₧ PESETA SIGN */ { 0x20a8, 0x20a8 }, /* RupeeSign ₨ RUPEE SIGN */ // { 0x0eff, 0x20a9 }, /* Korean_Won ₩ WON SIGN */ { 0x20a9, 0x20a9 }, /* WonSign ₩ WON SIGN */ { 0x20aa, 0x20aa }, /* NewSheqelSign ₪ NEW SHEQEL SIGN */ { 0x20ab, 0x20ab }, /* DongSign ₫ DONG SIGN */ // { 0x13a4, 0x20ac }, /* Euro € EURO SIGN */ { 0x20ac, 0x20ac }, /* EuroSign € EURO SIGN */ { 0x0ab8, 0x2105 }, /* careof ℅ CARE OF */ { 0x06b0, 0x2116 }, /* numerosign № NUMERO SIGN */ { 0x0afb, 0x2117 }, /* phonographcopyright ℗ SOUND RECORDING COPYRIGHT */ { 0x0ad4, 0x211e }, /* prescription ℞ PRESCRIPTION TAKE */ { 0x0ac9, 0x2122 }, /* trademark ™ TRADE MARK SIGN */ { 0x0ab0, 0x2153 }, /* onethird ⅓ VULGAR FRACTION ONE THIRD */ { 0x0ab1, 0x2154 }, /* twothirds ⅔ VULGAR FRACTION TWO THIRDS */ { 0x0ab2, 0x2155 }, /* onefifth ⅕ VULGAR FRACTION ONE FIFTH */ { 0x0ab3, 0x2156 }, /* twofifths ⅖ VULGAR FRACTION TWO FIFTHS */ { 0x0ab4, 0x2157 }, /* threefifths ⅗ VULGAR FRACTION THREE FIFTHS */ { 0x0ab5, 0x2158 }, /* fourfifths ⅘ VULGAR FRACTION FOUR FIFTHS */ { 0x0ab6, 0x2159 }, /* onesixth ⅙ VULGAR FRACTION ONE SIXTH */ { 0x0ab7, 0x215a }, /* fivesixths ⅚ VULGAR FRACTION FIVE SIXTHS */ { 0x0ac3, 0x215b }, /* oneeighth ⅛ VULGAR FRACTION ONE EIGHTH */ { 0x0ac4, 0x215c }, /* threeeighths ⅜ VULGAR FRACTION THREE EIGHTHS */ { 0x0ac5, 0x215d }, /* fiveeighths ⅝ VULGAR FRACTION FIVE EIGHTHS */ { 0x0ac6, 0x215e }, /* seveneighths ⅞ VULGAR FRACTION SEVEN EIGHTHS */ { 0x08fb, 0x2190 }, /* leftarrow ← LEFTWARDS ARROW */ { 0x08fc, 0x2191 }, /* uparrow ↑ UPWARDS ARROW */ { 0x08fd, 0x2192 }, /* rightarrow → RIGHTWARDS ARROW */ { 0x08fe, 0x2193 }, /* downarrow ↓ DOWNWARDS ARROW */ { 0x08ce, 0x21d2 }, /* implies ⇒ RIGHTWARDS DOUBLE ARROW */ { 0x08cd, 0x21d4 }, /* ifonlyif ⇔ LEFT RIGHT DOUBLE ARROW */ { 0x08ef, 0x2202 }, /* partialderivative ∂ PARTIAL DIFFERENTIAL */ { 0x08c5, 0x2207 }, /* nabla ∇ NABLA */ { 0x0bca, 0x2218 }, /* jot ∘ RING OPERATOR */ { 0x08d6, 0x221a }, /* radical √ SQUARE ROOT */ { 0x08c1, 0x221d }, /* variation ∝ PROPORTIONAL TO */ { 0x08c2, 0x221e }, /* infinity ∞ INFINITY */ { 0x08de, 0x2227 }, /* logicaland ∧ LOGICAL AND */ // { 0x0ba9, 0x2227 }, /* upcaret ∧ LOGICAL AND */ { 0x08df, 0x2228 }, /* logicalor ∨ LOGICAL OR */ // { 0x0ba8, 0x2228 }, /* downcaret ∨ LOGICAL OR */ { 0x08dc, 0x2229 }, /* intersection ∩ INTERSECTION */ // { 0x0bc3, 0x2229 }, /* upshoe ∩ INTERSECTION */ { 0x08dd, 0x222a }, /* union ∪ UNION */ // { 0x0bd6, 0x222a }, /* downshoe ∪ UNION */ { 0x08bf, 0x222b }, /* integral ∫ INTEGRAL */ { 0x08c0, 0x2234 }, /* therefore ∴ THEREFORE */ { 0x08c8, 0x223c }, /* approximate ∼ TILDE OPERATOR */ { 0x08c9, 0x2243 }, /* similarequal ≃ ASYMPTOTICALLY EQUAL TO */ { 0x08bd, 0x2260 }, /* notequal ≠ NOT EQUAL TO */ { 0x08cf, 0x2261 }, /* identical ≡ IDENTICAL TO */ { 0x08bc, 0x2264 }, /* lessthanequal ≤ LESS-THAN OR EQUAL TO */ { 0x08be, 0x2265 }, /* greaterthanequal ≥ GREATER-THAN OR EQUAL TO */ { 0x08da, 0x2282 }, /* includedin ⊂ SUBSET OF */ // { 0x0bda, 0x2282 }, /* leftshoe ⊂ SUBSET OF */ { 0x08db, 0x2283 }, /* includes ⊃ SUPERSET OF */ // { 0x0bd8, 0x2283 }, /* rightshoe ⊃ SUPERSET OF */ { 0x0bdc, 0x22a2 }, /* lefttack ⊢ RIGHT TACK */ { 0x0bfc, 0x22a3 }, /* righttack ⊣ LEFT TACK */ { 0x0bce, 0x22a4 }, /* uptack ⊤ DOWN TACK */ { 0x0bc2, 0x22a5 }, /* downtack ⊥ UP TACK */ { 0x0bd3, 0x2308 }, /* upstile ⌈ LEFT CEILING */ { 0x0bc4, 0x230a }, /* downstile ⌊ LEFT FLOOR */ { 0x0afa, 0x2315 }, /* telephonerecorder ⌕ TELEPHONE RECORDER */ { 0x08a4, 0x2320 }, /* topintegral ⌠ TOP HALF INTEGRAL */ { 0x08a5, 0x2321 }, /* botintegral ⌡ BOTTOM HALF INTEGRAL */ { 0x0abc, 0x2329 }, /* leftanglebracket 〈 LEFT-POINTING ANGLE BRACKET */ { 0x0abe, 0x232a }, /* rightanglebracket 〉 RIGHT-POINTING ANGLE BRACKET */ { 0x0bcc, 0x2395 }, /* quad ⎕ APL FUNCTIONAL SYMBOL QUAD */ { 0x08ab, 0x239b }, /* topleftparens ⎛ LEFT PARENTHESIS UPPER HOOK */ { 0x08ac, 0x239d }, /* botleftparens ⎝ LEFT PARENTHESIS LOWER HOOK */ { 0x08ad, 0x239e }, /* toprightparens ⎞ RIGHT PARENTHESIS UPPER HOOK */ { 0x08ae, 0x23a0 }, /* botrightparens ⎠ RIGHT PARENTHESIS LOWER HOOK */ { 0x08a7, 0x23a1 }, /* topleftsqbracket ⎡ LEFT SQUARE BRACKET UPPER CORNER */ { 0x08a8, 0x23a3 }, /* botleftsqbracket ⎣ LEFT SQUARE BRACKET LOWER CORNER */ { 0x08a9, 0x23a4 }, /* toprightsqbracket ⎤ RIGHT SQUARE BRACKET UPPER CORNER */ { 0x08aa, 0x23a6 }, /* botrightsqbracket ⎦ RIGHT SQUARE BRACKET LOWER CORNER */ { 0x08af, 0x23a8 }, /* leftmiddlecurlybrace ⎨ LEFT CURLY BRACKET MIDDLE PIECE */ { 0x08b0, 0x23ac }, /* rightmiddlecurlybrace ⎬ RIGHT CURLY BRACKET MIDDLE PIECE */ { 0x08a1, 0x23b7 }, /* leftradical ⎷ RADICAL SYMBOL BOTTOM */ { 0x09ef, 0x23ba }, /* horizlinescan1 ⎺ HORIZONTAL SCAN LINE-1 */ { 0x09f0, 0x23bb }, /* horizlinescan3 ⎻ HORIZONTAL SCAN LINE-3 */ { 0x09f2, 0x23bc }, /* horizlinescan7 ⎼ HORIZONTAL SCAN LINE-7 */ { 0x09f3, 0x23bd }, /* horizlinescan9 ⎽ HORIZONTAL SCAN LINE-9 */ { 0x09e2, 0x2409 }, /* ht ␉ SYMBOL FOR HORIZONTAL TABULATION */ { 0x09e5, 0x240a }, /* lf ␊ SYMBOL FOR LINE FEED */ { 0x09e9, 0x240b }, /* vt ␋ SYMBOL FOR VERTICAL TABULATION */ { 0x09e3, 0x240c }, /* ff ␌ SYMBOL FOR FORM FEED */ { 0x09e4, 0x240d }, /* cr ␍ SYMBOL FOR CARRIAGE RETURN */ { 0x09df, 0x2422 }, /* blank ␢ BLANK SYMBOL */ { 0x0aac, 0x2423 }, /* signifblank ␣ OPEN BOX */ { 0x09e8, 0x2424 }, /* nl ␤ SYMBOL FOR NEWLINE */ { 0x08a3, 0x2500 }, /* horizconnector ─ BOX DRAWINGS LIGHT HORIZONTAL */ // { 0x09f1, 0x2500 }, /* horizlinescan5 ─ BOX DRAWINGS LIGHT HORIZONTAL */ { 0x08a6, 0x2502 }, /* vertconnector │ BOX DRAWINGS LIGHT VERTICAL */ // { 0x09f8, 0x2502 }, /* vertbar │ BOX DRAWINGS LIGHT VERTICAL */ { 0x08a2, 0x250c }, /* topleftradical ┌ BOX DRAWINGS LIGHT DOWN AND RIGHT */ // { 0x09ec, 0x250c }, /* upleftcorner ┌ BOX DRAWINGS LIGHT DOWN AND RIGHT */ { 0x09eb, 0x2510 }, /* uprightcorner ┐ BOX DRAWINGS LIGHT DOWN AND LEFT */ { 0x09ed, 0x2514 }, /* lowleftcorner └ BOX DRAWINGS LIGHT UP AND RIGHT */ { 0x09ea, 0x2518 }, /* lowrightcorner ┘ BOX DRAWINGS LIGHT UP AND LEFT */ { 0x09f4, 0x251c }, /* leftt ├ BOX DRAWINGS LIGHT VERTICAL AND RIGHT */ { 0x09f5, 0x2524 }, /* rightt ┤ BOX DRAWINGS LIGHT VERTICAL AND LEFT */ { 0x09f7, 0x252c }, /* topt ┬ BOX DRAWINGS LIGHT DOWN AND HORIZONTAL */ { 0x09f6, 0x2534 }, /* bott ┴ BOX DRAWINGS LIGHT UP AND HORIZONTAL */ { 0x09ee, 0x253c }, /* crossinglines ┼ BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL */ { 0x09e1, 0x2592 }, /* checkerboard ▒ MEDIUM SHADE */ { 0x0ae7, 0x25aa }, /* enfilledsqbullet ▪ BLACK SMALL SQUARE */ { 0x0ae1, 0x25ab }, /* enopensquarebullet ▫ WHITE SMALL SQUARE */ { 0x0adb, 0x25ac }, /* filledrectbullet ▬ BLACK RECTANGLE */ { 0x0ae2, 0x25ad }, /* openrectbullet ▭ WHITE RECTANGLE */ { 0x0adf, 0x25ae }, /* emfilledrect ▮ BLACK VERTICAL RECTANGLE */ { 0x0acf, 0x25af }, /* emopenrectangle ▯ WHITE VERTICAL RECTANGLE */ { 0x0ae8, 0x25b2 }, /* filledtribulletup ▲ BLACK UP-POINTING TRIANGLE */ { 0x0ae3, 0x25b3 }, /* opentribulletup △ WHITE UP-POINTING TRIANGLE */ { 0x0add, 0x25b6 }, /* filledrighttribullet ▶ BLACK RIGHT-POINTING TRIANGLE */ { 0x0acd, 0x25b7 }, /* rightopentriangle ▷ WHITE RIGHT-POINTING TRIANGLE */ { 0x0ae9, 0x25bc }, /* filledtribulletdown ▼ BLACK DOWN-POINTING TRIANGLE */ { 0x0ae4, 0x25bd }, /* opentribulletdown ▽ WHITE DOWN-POINTING TRIANGLE */ { 0x0adc, 0x25c0 }, /* filledlefttribullet ◀ BLACK LEFT-POINTING TRIANGLE */ { 0x0acc, 0x25c1 }, /* leftopentriangle ◁ WHITE LEFT-POINTING TRIANGLE */ { 0x09e0, 0x25c6 }, /* soliddiamond ◆ BLACK DIAMOND */ { 0x0ace, 0x25cb }, /* emopencircle ○ WHITE CIRCLE */ // { 0x0bcf, 0x25cb }, /* circle ○ WHITE CIRCLE */ { 0x0ade, 0x25cf }, /* emfilledcircle ● BLACK CIRCLE */ { 0x0ae0, 0x25e6 }, /* enopencircbullet ◦ WHITE BULLET */ { 0x0ae5, 0x2606 }, /* openstar ☆ WHITE STAR */ { 0x0af9, 0x260e }, /* telephone ☎ BLACK TELEPHONE */ { 0x0aca, 0x2613 }, /* signaturemark ☓ SALTIRE */ { 0x0aea, 0x261c }, /* leftpointer ☜ WHITE LEFT POINTING INDEX */ { 0x0aeb, 0x261e }, /* rightpointer ☞ WHITE RIGHT POINTING INDEX */ { 0x0af8, 0x2640 }, /* femalesymbol ♀ FEMALE SIGN */ { 0x0af7, 0x2642 }, /* malesymbol ♂ MALE SIGN */ { 0x0aec, 0x2663 }, /* club ♣ BLACK CLUB SUIT */ { 0x0aee, 0x2665 }, /* heart ♥ BLACK HEART SUIT */ { 0x0aed, 0x2666 }, /* diamond ♦ BLACK DIAMOND SUIT */ { 0x0af6, 0x266d }, /* musicalflat ♭ MUSIC FLAT SIGN */ { 0x0af5, 0x266f }, /* musicalsharp ♯ MUSIC SHARP SIGN */ { 0x0af3, 0x2713 }, /* checkmark ✓ CHECK MARK */ { 0x0af4, 0x2717 }, /* ballotcross ✗ BALLOT X */ { 0x0ad9, 0x271d }, /* latincross ✝ LATIN CROSS */ { 0x0af0, 0x2720 }, /* maltesecross ✠ MALTESE CROSS */ { 0x04a4, 0x3001 }, /* kana_comma 、 IDEOGRAPHIC COMMA */ { 0x04a1, 0x3002 }, /* kana_fullstop 。 IDEOGRAPHIC FULL STOP */ { 0x04a2, 0x300c }, /* kana_openingbracket 「 LEFT CORNER BRACKET */ { 0x04a3, 0x300d }, /* kana_closingbracket 」 RIGHT CORNER BRACKET */ { 0x04de, 0x309b }, /* voicedsound ゛ KATAKANA-HIRAGANA VOICED SOUND MARK */ { 0x04df, 0x309c }, /* semivoicedsound ゜ KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK */ { 0x04a7, 0x30a1 }, /* kana_a ァ KATAKANA LETTER SMALL A */ { 0x04b1, 0x30a2 }, /* kana_A ア KATAKANA LETTER A */ { 0x04a8, 0x30a3 }, /* kana_i ィ KATAKANA LETTER SMALL I */ { 0x04b2, 0x30a4 }, /* kana_I イ KATAKANA LETTER I */ { 0x04a9, 0x30a5 }, /* kana_u ゥ KATAKANA LETTER SMALL U */ { 0x04b3, 0x30a6 }, /* kana_U ウ KATAKANA LETTER U */ { 0x04aa, 0x30a7 }, /* kana_e ェ KATAKANA LETTER SMALL E */ { 0x04b4, 0x30a8 }, /* kana_E エ KATAKANA LETTER E */ { 0x04ab, 0x30a9 }, /* kana_o ォ KATAKANA LETTER SMALL O */ { 0x04b5, 0x30aa }, /* kana_O オ KATAKANA LETTER O */ { 0x04b6, 0x30ab }, /* kana_KA カ KATAKANA LETTER KA */ { 0x04b7, 0x30ad }, /* kana_KI キ KATAKANA LETTER KI */ { 0x04b8, 0x30af }, /* kana_KU ク KATAKANA LETTER KU */ { 0x04b9, 0x30b1 }, /* kana_KE ケ KATAKANA LETTER KE */ { 0x04ba, 0x30b3 }, /* kana_KO コ KATAKANA LETTER KO */ { 0x04bb, 0x30b5 }, /* kana_SA サ KATAKANA LETTER SA */ { 0x04bc, 0x30b7 }, /* kana_SHI シ KATAKANA LETTER SI */ { 0x04bd, 0x30b9 }, /* kana_SU ス KATAKANA LETTER SU */ { 0x04be, 0x30bb }, /* kana_SE セ KATAKANA LETTER SE */ { 0x04bf, 0x30bd }, /* kana_SO ソ KATAKANA LETTER SO */ { 0x04c0, 0x30bf }, /* kana_TA タ KATAKANA LETTER TA */ { 0x04c1, 0x30c1 }, /* kana_CHI チ KATAKANA LETTER TI */ { 0x04af, 0x30c3 }, /* kana_tsu ッ KATAKANA LETTER SMALL TU */ { 0x04c2, 0x30c4 }, /* kana_TSU ツ KATAKANA LETTER TU */ { 0x04c3, 0x30c6 }, /* kana_TE テ KATAKANA LETTER TE */ { 0x04c4, 0x30c8 }, /* kana_TO ト KATAKANA LETTER TO */ { 0x04c5, 0x30ca }, /* kana_NA ナ KATAKANA LETTER NA */ { 0x04c6, 0x30cb }, /* kana_NI ニ KATAKANA LETTER NI */ { 0x04c7, 0x30cc }, /* kana_NU ヌ KATAKANA LETTER NU */ { 0x04c8, 0x30cd }, /* kana_NE ネ KATAKANA LETTER NE */ { 0x04c9, 0x30ce }, /* kana_NO ノ KATAKANA LETTER NO */ { 0x04ca, 0x30cf }, /* kana_HA ハ KATAKANA LETTER HA */ { 0x04cb, 0x30d2 }, /* kana_HI ヒ KATAKANA LETTER HI */ { 0x04cc, 0x30d5 }, /* kana_FU フ KATAKANA LETTER HU */ { 0x04cd, 0x30d8 }, /* kana_HE ヘ KATAKANA LETTER HE */ { 0x04ce, 0x30db }, /* kana_HO ホ KATAKANA LETTER HO */ { 0x04cf, 0x30de }, /* kana_MA マ KATAKANA LETTER MA */ { 0x04d0, 0x30df }, /* kana_MI ミ KATAKANA LETTER MI */ { 0x04d1, 0x30e0 }, /* kana_MU ム KATAKANA LETTER MU */ { 0x04d2, 0x30e1 }, /* kana_ME メ KATAKANA LETTER ME */ { 0x04d3, 0x30e2 }, /* kana_MO モ KATAKANA LETTER MO */ { 0x04ac, 0x30e3 }, /* kana_ya ャ KATAKANA LETTER SMALL YA */ { 0x04d4, 0x30e4 }, /* kana_YA ヤ KATAKANA LETTER YA */ { 0x04ad, 0x30e5 }, /* kana_yu ュ KATAKANA LETTER SMALL YU */ { 0x04d5, 0x30e6 }, /* kana_YU ユ KATAKANA LETTER YU */ { 0x04ae, 0x30e7 }, /* kana_yo ョ KATAKANA LETTER SMALL YO */ { 0x04d6, 0x30e8 }, /* kana_YO ヨ KATAKANA LETTER YO */ { 0x04d7, 0x30e9 }, /* kana_RA ラ KATAKANA LETTER RA */ { 0x04d8, 0x30ea }, /* kana_RI リ KATAKANA LETTER RI */ { 0x04d9, 0x30eb }, /* kana_RU ル KATAKANA LETTER RU */ { 0x04da, 0x30ec }, /* kana_RE レ KATAKANA LETTER RE */ { 0x04db, 0x30ed }, /* kana_RO ロ KATAKANA LETTER RO */ { 0x04dc, 0x30ef }, /* kana_WA ワ KATAKANA LETTER WA */ { 0x04a6, 0x30f2 }, /* kana_WO ヲ KATAKANA LETTER WO */ { 0x04dd, 0x30f3 }, /* kana_N ン KATAKANA LETTER N */ { 0x04a5, 0x30fb }, /* kana_conjunctive ・ KATAKANA MIDDLE DOT */ { 0x04b0, 0x30fc }, /* prolongedsound ー KATAKANA-HIRAGANA PROLONGED SOUND MARK */ { 0x0ea1, 0x3131 }, /* Hangul_Kiyeog ㄱ HANGUL LETTER KIYEOK */ { 0x0ea2, 0x3132 }, /* Hangul_SsangKiyeog ㄲ HANGUL LETTER SSANGKIYEOK */ { 0x0ea3, 0x3133 }, /* Hangul_KiyeogSios ㄳ HANGUL LETTER KIYEOK-SIOS */ { 0x0ea4, 0x3134 }, /* Hangul_Nieun ㄴ HANGUL LETTER NIEUN */ { 0x0ea5, 0x3135 }, /* Hangul_NieunJieuj ㄵ HANGUL LETTER NIEUN-CIEUC */ { 0x0ea6, 0x3136 }, /* Hangul_NieunHieuh ㄶ HANGUL LETTER NIEUN-HIEUH */ { 0x0ea7, 0x3137 }, /* Hangul_Dikeud ㄷ HANGUL LETTER TIKEUT */ { 0x0ea8, 0x3138 }, /* Hangul_SsangDikeud ㄸ HANGUL LETTER SSANGTIKEUT */ { 0x0ea9, 0x3139 }, /* Hangul_Rieul ㄹ HANGUL LETTER RIEUL */ { 0x0eaa, 0x313a }, /* Hangul_RieulKiyeog ㄺ HANGUL LETTER RIEUL-KIYEOK */ { 0x0eab, 0x313b }, /* Hangul_RieulMieum ㄻ HANGUL LETTER RIEUL-MIEUM */ { 0x0eac, 0x313c }, /* Hangul_RieulPieub ㄼ HANGUL LETTER RIEUL-PIEUP */ { 0x0ead, 0x313d }, /* Hangul_RieulSios ㄽ HANGUL LETTER RIEUL-SIOS */ { 0x0eae, 0x313e }, /* Hangul_RieulTieut ㄾ HANGUL LETTER RIEUL-THIEUTH */ { 0x0eaf, 0x313f }, /* Hangul_RieulPhieuf ㄿ HANGUL LETTER RIEUL-PHIEUPH */ { 0x0eb0, 0x3140 }, /* Hangul_RieulHieuh ㅀ HANGUL LETTER RIEUL-HIEUH */ { 0x0eb1, 0x3141 }, /* Hangul_Mieum ㅁ HANGUL LETTER MIEUM */ { 0x0eb2, 0x3142 }, /* Hangul_Pieub ㅂ HANGUL LETTER PIEUP */ { 0x0eb3, 0x3143 }, /* Hangul_SsangPieub ㅃ HANGUL LETTER SSANGPIEUP */ { 0x0eb4, 0x3144 }, /* Hangul_PieubSios ㅄ HANGUL LETTER PIEUP-SIOS */ { 0x0eb5, 0x3145 }, /* Hangul_Sios ㅅ HANGUL LETTER SIOS */ { 0x0eb6, 0x3146 }, /* Hangul_SsangSios ㅆ HANGUL LETTER SSANGSIOS */ { 0x0eb7, 0x3147 }, /* Hangul_Ieung ㅇ HANGUL LETTER IEUNG */ { 0x0eb8, 0x3148 }, /* Hangul_Jieuj ㅈ HANGUL LETTER CIEUC */ { 0x0eb9, 0x3149 }, /* Hangul_SsangJieuj ㅉ HANGUL LETTER SSANGCIEUC */ { 0x0eba, 0x314a }, /* Hangul_Cieuc ㅊ HANGUL LETTER CHIEUCH */ { 0x0ebb, 0x314b }, /* Hangul_Khieuq ㅋ HANGUL LETTER KHIEUKH */ { 0x0ebc, 0x314c }, /* Hangul_Tieut ㅌ HANGUL LETTER THIEUTH */ { 0x0ebd, 0x314d }, /* Hangul_Phieuf ㅍ HANGUL LETTER PHIEUPH */ { 0x0ebe, 0x314e }, /* Hangul_Hieuh ㅎ HANGUL LETTER HIEUH */ { 0x0ebf, 0x314f }, /* Hangul_A ㅏ HANGUL LETTER A */ { 0x0ec0, 0x3150 }, /* Hangul_AE ㅐ HANGUL LETTER AE */ { 0x0ec1, 0x3151 }, /* Hangul_YA ㅑ HANGUL LETTER YA */ { 0x0ec2, 0x3152 }, /* Hangul_YAE ㅒ HANGUL LETTER YAE */ { 0x0ec3, 0x3153 }, /* Hangul_EO ㅓ HANGUL LETTER EO */ { 0x0ec4, 0x3154 }, /* Hangul_E ㅔ HANGUL LETTER E */ { 0x0ec5, 0x3155 }, /* Hangul_YEO ㅕ HANGUL LETTER YEO */ { 0x0ec6, 0x3156 }, /* Hangul_YE ㅖ HANGUL LETTER YE */ { 0x0ec7, 0x3157 }, /* Hangul_O ㅗ HANGUL LETTER O */ { 0x0ec8, 0x3158 }, /* Hangul_WA ㅘ HANGUL LETTER WA */ { 0x0ec9, 0x3159 }, /* Hangul_WAE ㅙ HANGUL LETTER WAE */ { 0x0eca, 0x315a }, /* Hangul_OE ㅚ HANGUL LETTER OE */ { 0x0ecb, 0x315b }, /* Hangul_YO ㅛ HANGUL LETTER YO */ { 0x0ecc, 0x315c }, /* Hangul_U ㅜ HANGUL LETTER U */ { 0x0ecd, 0x315d }, /* Hangul_WEO ㅝ HANGUL LETTER WEO */ { 0x0ece, 0x315e }, /* Hangul_WE ㅞ HANGUL LETTER WE */ { 0x0ecf, 0x315f }, /* Hangul_WI ㅟ HANGUL LETTER WI */ { 0x0ed0, 0x3160 }, /* Hangul_YU ㅠ HANGUL LETTER YU */ { 0x0ed1, 0x3161 }, /* Hangul_EU ㅡ HANGUL LETTER EU */ { 0x0ed2, 0x3162 }, /* Hangul_YI ㅢ HANGUL LETTER YI */ { 0x0ed3, 0x3163 }, /* Hangul_I ㅣ HANGUL LETTER I */ { 0x0eef, 0x316d }, /* Hangul_RieulYeorinHieuh ㅭ HANGUL LETTER RIEUL-YEORINHIEUH */ { 0x0ef0, 0x3171 }, /* Hangul_SunkyeongeumMieum ㅱ HANGUL LETTER KAPYEOUNMIEUM */ { 0x0ef1, 0x3178 }, /* Hangul_SunkyeongeumPieub ㅸ HANGUL LETTER KAPYEOUNPIEUP */ { 0x0ef2, 0x317f }, /* Hangul_PanSios ㅿ HANGUL LETTER PANSIOS */ { 0x0ef3, 0x3181 }, /* Hangul_KkogjiDalrinIeung ㆁ HANGUL LETTER YESIEUNG */ { 0x0ef4, 0x3184 }, /* Hangul_SunkyeongeumPhieuf ㆄ HANGUL LETTER KAPYEOUNPHIEUPH */ { 0x0ef5, 0x3186 }, /* Hangul_YeorinHieuh ㆆ HANGUL LETTER YEORINHIEUH */ { 0x0ef6, 0x318d }, /* Hangul_AraeA ㆍ HANGUL LETTER ARAEA */ { 0x0ef7, 0x318e }, /* Hangul_AraeAE ㆎ HANGUL LETTER ARAEAE */ /* 0x08b1 topleftsummation ? ??? */ /* 0x08b2 botleftsummation ? ??? */ /* 0x08b3 topvertsummationconnector ? ??? */ /* 0x08b4 botvertsummationconnector ? ??? */ /* 0x08b5 toprightsummation ? ??? */ /* 0x08b6 botrightsummation ? ??? */ /* 0x08b7 rightmiddlesummation ? ??? */ /* 0x0abf marker ? ??? */ /* 0x0acb trademarkincircle ? ??? */ /* 0x0ada hexagram ? ??? */ /* 0x0aff cursor ? ??? */ }; KeySym ucs2keysym(long ucs) { int min = 0; int max = sizeof(keysymtab) / sizeof(struct codepair) - 1; int mid; /* first check for Latin-1 characters (1:1 mapping) */ if ((ucs >= 0x0020 && ucs <= 0x007e) || (ucs >= 0x00a0 && ucs <= 0x00ff)) return ucs; /* binary search in table */ while (max >= min) { mid = (min + max) / 2; if (keysymtab[mid].ucs < ucs) min = mid + 1; else if (keysymtab[mid].ucs > ucs) max = mid - 1; else { /* found it */ return keysymtab[mid].keysym; } } /* no matching Unicode value found */ return ucs | 0x01000000; }
the_stack_data/142390.c
#include <stdio.h> int main(void) { int t,i,A,B; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%d %d",&A, &B); if(A>B) { printf(">\n"); } else if(A<B) { printf("<\n"); } else if(A==B) { printf("=\n"); } } }
the_stack_data/15762143.c
#include<stdio.h> #include<stdlib.h> #include<time.h> int print(long long a[],long long n) { long long i; for(i=0;i<n;i++) { printf("%lld\n",a[i]); }printf("\n"); } int insertion(long long a[],long long n) { long long i,j,temp; for(i=1;i<n;i++) { temp=a[i]; j=i-1; while(a[j]>temp && j>=0) { a[j+1]=a[j]; j--; } a[j+1]=temp; } } int main() { long long *a,n,i,start,end; scanf("%lld",&n); a=(long long int *)malloc(n*sizeof(long long int)); srand((unsigned)time(NULL)); for(i=0;i<n;i++) { a[i]=rand(); } start=clock(); insertion(a,n); end=clock(); printf("Time taken= %lld\n", end-start); }
the_stack_data/198581824.c
#include <stdio.h> struct ListNode { int val; struct ListNode *next; }; struct ListNode* deleteDuplicates(struct ListNode* head) { if (head == NULL) { return head; } struct ListNode *current = head; while (current->next != NULL) { struct ListNode *next = current->next; if (next->val == current->val) { current->next = next->next; } else { current = current->next; } } return head; } int main(int argc, char *argv[]) { return 0; }
the_stack_data/22011561.c
// // Created by bytedance on 2020/11/11. // // 编写一个程序,删除每个输入行末尾的空格及制表符,并删除完全是空格的行。 #include <stdio.h> #define MAXLINE 1000 int getLine(char line[], int lim); // 删除末尾是空格的行 int removeSpace(char line[]); int main() { char line[MAXLINE]; while(getLine(line, MAXLINE) > 0) { if (removeSpace(line) > 0) { printf("%s", line); } } } int getLine(char s[], int lim) { int c, i; for (i = 0; i < lim - 1 && (c = getchar()) != EOF && c != '\n'; ++i) { s[i] = c; } if (c == '\n') { s[i] = c; ++i; } s[i] = '\0'; return i; } int removeSpace(char line[]) { int i; i = 0; while (line[i] != '\n') ++i; while (i > 0 && (line[i] == '\t' || line[i] == ' ')) { --i; } if (i > 0) { ++i; line[i] = '\n'; ++i; line[i] = '\0'; } return i; }
the_stack_data/1122285.c
#include <stdio.h> #include <stdlib.h> // Structure for heap implementation. typedef struct { int capacity; int size; int* elements; int(*compare)(int, int); } Heap; // Return min value. int min(int a, int b) { return a > b ? b : a; } // Return max value. int max(int a, int b) { return a > b ? a : b; } // Swap two integer. void swap(int* a, int* b) { int tmp = *a; *a = *b; *b = tmp; } // Generate heap with given capacity and comparing method. Heap make_heap(int capacity, int(*compare)(int, int)) { Heap heap; heap.capacity = capacity; heap.size = 0; heap.elements = malloc(sizeof(int) * capacity); heap.compare = compare; return heap; } // Get top of heap. // Exception: // segmentation fault: if heap capacity is smaller than 2. // invalid value: if heap size is smaller than 1. int top(Heap* heap) { return heap->elements[1]; } // Free heap structure. void delete_heap(Heap* heap) { free(heap->elements); } // Extend heap capacity with double of exist capacity. void extend_heap(Heap* heap) { // calculate new capacity int new_capacity = heap->capacity * 2; int* new_elements = malloc(sizeof(int) * new_capacity); // copy array int i; for (i = 1; i <= heap->size; ++i) { new_elements[i] = heap->elements[i]; } // free previous vector free(heap->elements); // assign new vector heap->capacity = new_capacity; heap->elements = new_elements; } // Propagate forward (root -> leaf) elements in given index. void propagate(Heap* heap, int idx) { int child, size = heap->size; int* vec = heap->elements; int(*cmp)(int, int) = heap->compare; // until node doesn't have leaf for (; idx * 2 <= size; idx = child) { child = idx * 2; // if node have right child then get higher one if (child + 1 <= size && vec[child + 1] == cmp(vec[child + 1], vec[child])) { child += 1; } // propagate if (vec[child] == cmp(vec[idx], vec[child])) { swap(&vec[child], &vec[idx]); } else { break; } } } // Propagate backward (leaf -> root) elements in given index. void back_propagate(Heap* heap, int idx) { int* vec = heap->elements; int(*cmp)(int, int) = heap->compare; // until node is root for(; idx > 1 && vec[idx] == cmp(vec[idx], vec[idx / 2]); idx /= 2) { // propagate swap(&vec[idx], &vec[idx / 2]); } } // Push element to heap. void push(Heap* heap, int elem) { // if size overflow the capacity if (heap->capacity == 1 + heap->size) { // extend capacity extend_heap(heap); } // add element to back heap->elements[++heap->size] = elem; // back propagate back_propagate(heap, heap->size); } // Pop top element from heap void pop(Heap* heap) { // if heap is empty if (heap->size == 0) { return; } // copy last element to top heap->elements[1] = heap->elements[heap->size--]; // propagate propagate(heap, 1); } // find element from heap int find_elem(Heap* heap, int elem, int index) { // if index overflow the size if (index > heap->size) { return -1; } // if element is in current index if (heap->elements[index] == elem) { return index; } // if priority of current node is lower than given element if (elem == heap->compare(elem, heap->elements[index])) { return -1; } // find elements from child nodes int res = find_elem(heap, elem, index * 2); if (res != -1) { return res; } else { return find_elem(heap, elem, index * 2 + 1); } } // Build heap with given sequence Heap heapify(int* list, int n, int(*compare)(int, int)) { int i; Heap heap = make_heap(n + 1, compare); heap.size = n; for (i = 0; i < n; ++i) { heap.elements[i + 1] = list[i]; } for (i = n / 2; i > 0; --i) { propagate(&heap, i); } return heap; } // Heap sort void heap_sort(int* list, int n, int(*compare)(int, int)) { int i; Heap heap = heapify(list, n, compare); for (i = 0; i < n; ++i) { list[i] = top(&heap); pop(&heap); } delete_heap(&heap); } // Read number and insert it to heap. void insert(Heap* heap, FILE* input, FILE* output) { int num; fscanf(input, "%d", &num); // if given element is already existing in heap. if (find_elem(heap, num, 1) != -1) { fprintf(output, "%d is already in heap.\n", num); } else { push(heap, num); fprintf(output, "insert %d\n", num); } } // Delete top element. void delete(Heap* heap, FILE* output) { // if heap is empty if (heap->size < 1) { fprintf(output, "heap is empty.\n"); } else { int num = top(heap); pop(heap); fprintf(output, "delete %d\n", num); } } // Read number and find it from heap. void find(Heap* heap, FILE* input, FILE* output) { int num; fscanf(input, "%d", &num); if (find_elem(heap, num, 1) == -1) { fprintf(output, "%d is not in the heap.\n", num); } else { fprintf(output, "%d is in the heap.\n", num); } } // Print heap in index-order. void print(Heap* heap, FILE* output) { int i; for (i = 1; i <= heap->size; ++i) { fprintf(output, "%d ", heap->elements[i]); } fprintf(output, "\n"); } int main() { // open file IO FILE* input = fopen("input.txt", "r"); FILE* output = fopen("output.txt", "w"); // input capacity of heap. int capacity; fscanf(input, "%d", &capacity); // generate heap. char option; Heap heap = make_heap(capacity, max); // input option. while (fscanf(input, "%c", &option) == 1) { switch (option) { case 'i': insert(&heap, input, output); break; case 'd': delete(&heap, output); break; case 'f': find(&heap, input, output); break; case 'p': print(&heap, output); break; default: break; } } // free memory delete_heap(&heap); fclose(input); fclose(output); }
the_stack_data/200143849.c
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #define swap(a, b) { \ a ^= b; b ^= a; a ^= b; \ } #define TEST(arr, n, func, args...) { \ int *num = (int *)malloc(sizeof(int) * n); \ memcpy(num, arr, sizeof(int) * n); \ output(num, n); \ printf("%s = ", #func); \ func(args); \ output(num, n); \ free(num); \ } void insert_sort(int *num, int n) { for (int i = 1; i < n; i++) { for (int j = i; j > 0 && num[j] < num[j - 1]; --j) { swap(num[j], num[j - 1]); } } return ; } void bubble_sort(int *num, int n) { int times = 1; for (int i = 1; i < n && times; i++) { times = 0; for (int j = 0; j < n - i; j++) { if (num[j] <= num[j + 1]) continue; swap(num[j], num[j + 1]); times++; } } return ; } void merge_sort(int *num, int l, int r) { if (r - l <= 1) { if (r - l == 1 && num[l] > num[r]) { swap(num[l], num[r]); } return ; } int mid = (l + r) >> 1; merge_sort(num, l, mid); merge_sort(num, mid + 1, r); int *temp = (int *)malloc(sizeof(int) * (r - l + 1)); int p1 = l, p2 = mid + 1, k = 0; while (p1 <= mid || p2 <= r) { if (p2 > r || (p1 <= mid && num[p1] <= num[p2])) { temp[k++] = num[p1++]; } else { temp[k++] = num[p2++]; } } memcpy(num + l, temp, sizeof(int) * (r - l + 1)); free(temp); return ; } void randint(int *num, int n) { while (n--) num[n] = rand() % 100; return ; } void output(int *num, int n) { printf("["); for (int i = 0; i < n; i++) { printf(" %d", num[i]); } printf("]\n"); return ; } int main() { srand(time(0)); #define MAX_OP 20 int arr[MAX_OP]; randint(arr, MAX_OP); TEST(arr, MAX_OP, insert_sort, num, MAX_OP); TEST(arr, MAX_OP, bubble_sort, num, MAX_OP); TEST(arr, MAX_OP, merge_sort, num, 0, MAX_OP - 1); return 0; }
the_stack_data/176705313.c
#include <stdio.h> int main(void) { /* a = 5, 0000 0101, b = 9, 0000 1001 */ unsigned char a = 5, b = 9; /* The result is 0000 0001 */ printf("a & b = %d\n", a & b); /* The result is 0000 1101 */ printf("a | b = %d\n", a | b); /* The result is 0000 1100 */ printf("a ^ b = %d\n", a ^ b); /* The result is 1111 1010 */ printf("~a = %d\n", a = ~a); /* The result is 0001 0010 */ printf("b << 1 = %d\n", b << 1); /* The result is 0000 0100 */ printf("b >> 1 = %d\n", b >> 1); return 0; }
the_stack_data/969525.c
char *hwdynamic1(void) { return "hwdynamic1() of dynamic shared library libhwdynamic is called\n"; }
the_stack_data/70450254.c
#include <stdio.h> extern int nd_int(void); static int x; // DEAD INITIALIZATION static int y; // DEAD INITIALIZATION int init() { y = 1; // LIVE STORE if (nd_int()) { x = 2; // DEAD STORE } else { x = 5; } return y; } int main(int argc, char* argv[]) { if (argc < 2) { return 1; } y = 3; // DEAD STORE int r = init(); x = 4; // LIVE STORE if (y != 1) { printf("1. You should not see this message\n"); } if (x != 4) { printf("2. You should not see this message\n"); } if (y == 1) { printf("3. You should see this message\n"); } return 0; }
the_stack_data/29825329.c
#include <stdio.h> int main(int argc, char *argv[]) { int dummy = 0; int old_val = 0; int i = 0; int arr[5] = {1, 2, 3, 4, 5}; printf("%ld, %ld\n", &old_val - &i, &i - arr); for (i = 0; i <= 5; i++) { old_val = arr[i]; arr[i] = 0; printf("arr[%d]: %d -> %d\n", i, old_val, arr[i]); } return 0; }
the_stack_data/57950753.c
/*** * This code is a part of EvoApproxLib library (ehw.fit.vutbr.cz/approxlib) distributed under The MIT License. * When used, please cite the following article(s): V. Mrazek, R. Hrbacek, Z. Vasicek and L. Sekanina, "EvoApprox8b: Library of approximate adders and multipliers for circuit design and benchmarking of approximation methods". Design, Automation & Test in Europe Conference & Exhibition (DATE), 2017, Lausanne, 2017, pp. 258-261. doi: 10.23919/DATE.2017.7926993 * This file contains a circuit from evoapprox8b dataset. Note that a new version of library was already published. ***/ #include <stdint.h> #include <stdlib.h> /// Approximate function mul8_075 /// Library = EvoApprox8b /// Circuit = mul8_075 /// Area (180) = 4180 /// Delay (180) = 2.170 /// Power (180) = 1535.40 /// Area (45) = 304 /// Delay (45) = 0.830 /// Power (45) = 130.90 /// Nodes = 79 /// HD = 376002 /// MAE = 624.46875 /// MSE = 679898.57422 /// MRE = 10.00 % /// WCE = 2911 /// WCRE = 700 % /// EP = 99.0 % uint16_t mul8_075(uint8_t a, uint8_t b) { uint16_t c = 0; uint8_t n0 = (a >> 0) & 0x1; uint8_t n2 = (a >> 1) & 0x1; uint8_t n4 = (a >> 2) & 0x1; uint8_t n6 = (a >> 3) & 0x1; uint8_t n8 = (a >> 4) & 0x1; uint8_t n10 = (a >> 5) & 0x1; uint8_t n12 = (a >> 6) & 0x1; uint8_t n14 = (a >> 7) & 0x1; uint8_t n18 = (b >> 1) & 0x1; uint8_t n20 = (b >> 2) & 0x1; uint8_t n22 = (b >> 3) & 0x1; uint8_t n24 = (b >> 4) & 0x1; uint8_t n26 = (b >> 5) & 0x1; uint8_t n28 = (b >> 6) & 0x1; uint8_t n30 = (b >> 7) & 0x1; uint8_t n41; uint8_t n43; uint8_t n49; uint8_t n71; uint8_t n82; uint8_t n83; uint8_t n87; uint8_t n89; uint8_t n91; uint8_t n157; uint8_t n190; uint8_t n372; uint8_t n386; uint8_t n420; uint8_t n460; uint8_t n476; uint8_t n485; uint8_t n491; uint8_t n506; uint8_t n564; uint8_t n580; uint8_t n594; uint8_t n608; uint8_t n683; uint8_t n699; uint8_t n712; uint8_t n728; uint8_t n760; uint8_t n761; uint8_t n786; uint8_t n802; uint8_t n816; uint8_t n817; uint8_t n832; uint8_t n846; uint8_t n847; uint8_t n890; uint8_t n906; uint8_t n920; uint8_t n921; uint8_t n934; uint8_t n950; uint8_t n964; uint8_t n1034; uint8_t n1107; uint8_t n1173; uint8_t n1186; uint8_t n1187; uint8_t n1202; uint8_t n1203; uint8_t n1216; uint8_t n1232; uint8_t n1246; uint8_t n1335; uint8_t n1350; uint8_t n1351; uint8_t n1408; uint8_t n1424; uint8_t n1425; uint8_t n1438; uint8_t n1439; uint8_t n1454; uint8_t n1455; uint8_t n1468; uint8_t n1482; uint8_t n1542; uint8_t n1543; uint8_t n1586; uint8_t n1587; uint8_t n1602; uint8_t n1603; uint8_t n1616; uint8_t n1632; uint8_t n1646; uint8_t n1660; uint8_t n1720; uint8_t n1750; uint8_t n1764; uint8_t n1765; uint8_t n1780; uint8_t n1781; uint8_t n1794; uint8_t n1795; uint8_t n1808; uint8_t n1809; uint8_t n1824; uint8_t n1838; uint8_t n1869; uint8_t n1882; uint8_t n1898; uint8_t n1912; uint8_t n1928; uint8_t n1942; uint8_t n1943; uint8_t n1956; uint8_t n1957; uint8_t n1972; uint8_t n1973; uint8_t n1986; uint8_t n1987; uint8_t n2016; n41 = ~(n12 ^ n12); n43 = ~n41; n49 = ~(n18 & n12); n71 = n14 | n8; n82 = ~(n6 | n4 | n71); n83 = ~(n6 | n4 | n71); n87 = n26 | n24; n89 = ~(n2 & n28 & n83); n91 = ~(n87 | n28 | n22); n157 = ~((n89 & n82) | n91); n190 = ~n43; n372 = n14 & n20; n386 = n6 & n4; n420 = n26 & n386; n460 = n10 & n22; n476 = n12 & n22; n485 = ~n49; n491 = n14 & n22; n506 = n0 & n20; n564 = n8 & n24; n580 = n10 & n24; n594 = n12 & n24; n608 = n14 & n24; n683 = n8 & n26; n699 = n10 & n26; n712 = n12 & n26; n728 = n14 & n26; n760 = ~n41; n761 = ~n41; n786 = n6 & n28; n802 = n8 & n28; n816 = n10 & n28; n817 = n10 & n28; n832 = n12 & n28; n846 = n14 & n28; n847 = n14 & n28; n890 = n4 & n30; n906 = n6 & n30; n920 = n8 & n30; n921 = n8 & n30; n934 = n10 & n30; n950 = n12 & n30; n964 = n14 & n30; n1034 = ~(n761 ^ n920); n1107 = n491; n1173 = n460 | n564; n1186 = n476 ^ n580; n1187 = n476 & n580; n1202 = (n1107 ^ n594) ^ n699; n1203 = (n1107 & n594) | (n594 & n699) | (n1107 & n699); n1216 = n608 & n712; n1232 = n608 ^ n712; n1246 = n921 & n1034; n1335 = (n817 & n760) | (n760 & n43) | (n817 & n43); n1350 = (n372 ^ n420) ^ n1186; n1351 = (n372 & n420) | (n420 & n1186) | (n372 & n1186); n1408 = n1173 | n786; n1424 = (n1187 ^ n802) ^ n906; n1425 = (n1187 & n802) | (n802 & n906) | (n1187 & n906); n1438 = (n1203 ^ n816) ^ n920; n1439 = (n1203 & n816) | (n816 & n920) | (n1203 & n920); n1454 = (n1216 ^ n832) ^ n934; n1455 = (n1216 & n832) | (n832 & n934) | (n1216 & n934); n1468 = n846 & n950; n1482 = n847 ^ n950; n1542 = n157; n1543 = n157; n1586 = (n1350 ^ n1335) ^ n1408; n1587 = (n1350 & n1335) | (n1335 & n1408) | (n1350 & n1408); n1602 = (n1202 ^ n1216) ^ n1424; n1603 = (n1202 & n1216) | (n1216 & n1424) | (n1202 & n1424); n1616 = n1232 & n1438; n1632 = n1232 | n1438; n1646 = n728 & n1454; n1660 = n728 ^ n1454; n1720 = n1425 ^ n1543; n1750 = n1586 | n890; n1764 = (n1602 ^ n1587) ^ n1351; n1765 = (n1602 & n1587) | (n1587 & n1351) | (n1602 & n1351); n1780 = (n1632 ^ n1603) ^ n1425; n1781 = (n1632 & n1603) | (n1603 & n1425) | (n1632 & n1425); n1794 = (n1660 ^ n1616) ^ n1439; n1795 = (n1660 & n1616) | (n1616 & n1439) | (n1660 & n1439); n1808 = (n1482 ^ n1646) ^ n1455; n1809 = (n1482 & n1646) | (n1646 & n1455) | (n1482 & n1455); n1824 = n41 & n1468; n1838 = n964 ^ n1468; n1869 = n761; n1882 = n1720; n1898 = n485 | n890; n1912 = (n683 & n190) | (~n683 & n1750); n1928 = n1764; n1942 = n1780 ^ n1765; n1943 = n1780 & n1765; n1956 = (n1794 ^ n1781) ^ n1943; n1957 = (n1794 & n1781) | (n1781 & n1943) | (n1794 & n1943); n1972 = (n1808 ^ n1795) ^ n1957; n1973 = (n1808 & n1795) | (n1795 & n1957) | (n1808 & n1957); n1986 = (n1838 ^ n1809) ^ n1973; n1987 = (n1838 & n1809) | (n1809 & n1973) | (n1838 & n1973); n2016 = n1824 | n1987; c |= (n761 & 0x1) << 0; c |= (n1542 & 0x1) << 1; c |= (n1246 & 0x1) << 2; c |= (n1216 & 0x1) << 3; c |= (n1869 & 0x1) << 4; c |= (n506 & 0x1) << 5; c |= (n1543 & 0x1) << 6; c |= (n1882 & 0x1) << 7; c |= (n1898 & 0x1) << 8; c |= (n1912 & 0x1) << 9; c |= (n1928 & 0x1) << 10; c |= (n1942 & 0x1) << 11; c |= (n1956 & 0x1) << 12; c |= (n1972 & 0x1) << 13; c |= (n1986 & 0x1) << 14; c |= (n2016 & 0x1) << 15; return c; }
the_stack_data/847216.c
#include <stdio.h> #include <stdlib.h> union number{ int value; char table[4]; }; int main() { int input; char temp; union number data; while(scanf("%d", &input) != EOF){ printf("%d converts to ", input); data.value = input; temp = data.table[0]; data.table[0] = data.table[3]; data.table[3] = temp; temp = data.table[1]; data.table[1] = data.table[2]; data.table[2] = temp; printf("%d\n", data.value); } return 0; }
the_stack_data/34513942.c
/* Definicao de constante e seu uso em um comando 'caso' com impressao Helena Caseli 2010 */ #include <stdio.h> #include <stdlib.h> #define teste 8 int main() { switch (teste) { case 0: case 1: case 2: case 3: case 4: case 5: case 6: case 7: printf("ERRO"); break; case 8: printf("OK"); break; default: printf("ERRO"); } return 0; }
the_stack_data/926821.c
#include <stdio.h> #include <stdlib.h> #include <stdint.h> const int BLOCK_SIZE = 512; typedef uint8_t BYTE; int main(int argc, char *argv[]) { // Ask user for arg if (argc != 2) { printf("Usage: ./recover IMAGE\n"); return 1; } // Open file FILE *file = fopen(argv[1], "r"); if (file == NULL) { printf("Could not open file.\n"); return 2; } // Create buffer BYTE buffer[BLOCK_SIZE]; // Count images found; int img_count = 0; char filename[8]; FILE *new_file = NULL; // Loop through each block while (fread(buffer, 1, BLOCK_SIZE, file) == BLOCK_SIZE) { if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] & 0xf0) == 0xe0) { if (img_count != 0) { fclose(new_file); } sprintf(filename, "%03i.jpg", img_count); // Write new jpg file new_file = fopen(filename, "w"); // Open the new created file img_count++; } // Write new image if (img_count != 0) { fwrite(buffer, BLOCK_SIZE, 1, new_file); } } // Close files fclose(file); fclose(new_file); }
the_stack_data/89200834.c
/* { dg-options "-fno-tree-forwprop" } */ int zy, h4; void r8 (long int mu, int *jr, int *fi, short int dv) { do { int tx; tx = !!h4 ? (zy / h4) : 1; mu = tx; *jr = (((unsigned char) mu > (254 >> dv)) ? 0 : (unsigned char) tx) + *fi; } while (*jr == 0); r8 (mu, jr, fi, 1); }
the_stack_data/153142.c
// © Guillaume COQUARD, April 2018 #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <time.h> // CONSTANTS NEEDED #define TAILLE_MIN 10 #define SIZE_BUF 64 // FUNCTIONS NEEDED // - Occurences counter int count_occ(int *tab, int el, int a, int b); // - Tab Printer void print_tab(int *tab, int s); int main(int argc, char **argv) { int s,n,x,el,f_0[2],f_1[2]; pid_t pid_0 = 0, pid_1 = 0; char buf_0[SIZE_BUF],buf_1[SIZE_BUF]; // Use of pipes to communicate with 2 childs pipe(f_0); pipe(f_1); printf("Enter a tab size : \n"); scanf("%d", &s); printf("Enter a minimum : \n"); scanf("%d", &n); printf("Enter a maximum : \n"); scanf("%d", &x); printf("Tab filled with values in %d...%d interval.\n", (n<x?n:x),(n<x?x:n)); printf("Enter an element to find : \n"); scanf("%d", &el); while (el < n || el > x) { printf("This value is not allowed : %d \nPlease enter an other value : \n", el); scanf("%d", &el); } int tab[s]; srand(time(NULL)); for (int i = 0; i < s; i++) { tab[i] = rand()%(n<x?x:n)+(n<x?n:x); } print_tab(tab,s); if (s >= TAILLE_MIN) { if (getpid() == getpgid(getpid())) { pid_0 = fork(); } if (getpid() == getpgid(getpid())) { pid_1 = fork(); } if (pid_0 == 0) { char *occ_0 = malloc(SIZE_BUF+1); close(f_0[0]); snprintf(occ_0,SIZE_BUF,"%d",count_occ(tab,el,0,(s%2==0?s/2:s/2+1))); write(f_0[1],occ_0,SIZE_BUF+1); exit(EXIT_SUCCESS); } else if (pid_1 == 0) { char *occ_1 = malloc(SIZE_BUF+1); close(f_1[0]); snprintf(occ_1,SIZE_BUF,"%d",count_occ(tab,el,(s%2==0?s/2:s/2+1),s)); write(f_1[1],occ_1,SIZE_BUF+1); exit(EXIT_SUCCESS); } if (getpid() == getpgid(getpid())) { close(f_0[1]); close(f_1[1]); read(f_0[0],buf_0,SIZE_BUF); read(f_1[0],buf_1,SIZE_BUF); printf("Occurences of %d : %d + %d = %d\n",el,atoi(buf_0),atoi(buf_1),atoi(buf_0)+atoi(buf_1)); } } else { printf("Occurences of %d\n", count_occ(tab,el,0,s)); } return (0); } int count_occ(int *tab, int el, int a, int b) { int occ = 0; for (int i = 0; i < (b>a?b-a:a-b); i++) { if (tab[a+i]==el) { occ++; printf("Occ : %d : index %d\n", el, i+a); } } return occ; } void print_tab(int *tab, int s) { for (int i = 0; i < s; i++) { printf("%d", tab[i]); if (i < s-1) { printf(","); } } printf("\n"); }
the_stack_data/193892177.c
/* $OpenBSD: uthread_file.c,v 1.17 2009/11/09 00:18:27 kurt Exp $ */ /* * Copyright (c) 1995 John Birrell <[email protected]>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by John Birrell. * 4. Neither the name of the author nor the names of any co-contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL 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 AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * $FreeBSD: uthread_file.c,v 1.9 1999/08/28 00:03:32 peter Exp $ * * POSIX stdio FILE locking functions. These assume that the locking * is only required at FILE structure level, not at file descriptor * level too. * */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/queue.h> #ifdef _THREAD_SAFE #include <pthread.h> #include "pthread_private.h" /* * The FILE lock structure. The FILE *fp is locked if the owner is * not NULL. If not locked, the file lock structure can be * reassigned to a different file by setting fp. */ struct file_lock { LIST_ENTRY(file_lock) entry; /* Entry if file list. */ V_TAILQ_HEAD(lock_head, pthread) l_head; /* Head of queue for threads */ /* waiting on this lock. */ FILE *fp; /* The target file. */ pthread_t owner; /* Thread that owns lock. */ int count; /* Lock count for owner. */ }; /* * The number of file lock lists into which the file pointer is * hashed. Ideally, the FILE structure size would have been increased, * but this causes incompatibility, so separate data structures are * required. */ #define NUM_HEADS 128 /* * This macro casts a file pointer to a long integer and right * shifts this by the number of bytes in a pointer. The shifted * value is then remaindered using the maximum number of hash * entries to produce and index into the array of static lock * structures. If there is a collision, a linear search of the * dynamic list of locks linked to each static lock is perfomed. */ #define file_idx(_p) ((int)((((uintptr_t) _p) >> sizeof(void *)) % NUM_HEADS)) /* * Global array of file locks. The first lock for each hash bucket is * allocated statically in the hope that there won't be too many * collisions that require a malloc and an element added to the list. */ struct static_file_lock { LIST_HEAD(file_list_head, file_lock) head; struct file_lock fl; } flh[NUM_HEADS]; /* Set to non-zero when initialisation is complete: */ static int init_done = 0; /* Lock for accesses to the hash table: */ static spinlock_t hash_lock = _SPINLOCK_INITIALIZER; /* * Find a lock structure for a FILE, return NULL if the file is * not locked: */ static struct file_lock * find_lock(int idx, FILE *fp) { struct file_lock *p; /* Check if the file is locked using the static structure: */ if (flh[idx].fl.fp == fp && flh[idx].fl.owner != NULL) /* Return a pointer to the static lock: */ p = &flh[idx].fl; else { /* Point to the first dynamic lock: */ p = LIST_FIRST(&flh[idx].head); /* * Loop through the dynamic locks looking for the * target file: */ while (p != NULL && (p->fp != fp || p->owner == NULL)) /* Not this file, try the next: */ p = LIST_NEXT(p, entry); } return(p); } /* * Lock a file, assuming that there is no lock structure currently * assigned to it. */ static struct file_lock * do_lock(int idx, FILE *fp) { struct file_lock *p; /* Check if the static structure is not being used: */ if (flh[idx].fl.owner == NULL) { /* Return a pointer to the static lock: */ p = &flh[idx].fl; } else { /* Point to the first dynamic lock: */ p = LIST_FIRST(&flh[idx].head); /* * Loop through the dynamic locks looking for a * lock structure that is not being used: */ while (p != NULL && p->owner != NULL) /* This one is used, try the next: */ p = LIST_NEXT(p, entry); } /* * If an existing lock structure has not been found, * allocate memory for a new one: */ if (p == NULL && (p = (struct file_lock *) malloc(sizeof(struct file_lock))) != NULL) { /* Add the new element to the list: */ LIST_INSERT_HEAD(&flh[idx].head, p, entry); } /* Check if there is a lock structure to acquire: */ if (p != NULL) { /* Acquire the lock for the running thread: */ p->fp = fp; p->owner = _thread_run; p->count = 1; TAILQ_INIT(&p->l_head); } return(p); } void flockfile(FILE * fp) { int idx = file_idx(fp); struct file_lock *p; /* Lock the hash table: */ _SPINLOCK(&hash_lock); /* Check if the static array has not been initialised: */ if (!init_done) { /* Initialise the global array: */ memset(flh,0,sizeof(flh)); /* Flag the initialisation as complete: */ init_done = 1; } /* Get a pointer to any existing lock for the file: */ if ((p = find_lock(idx, fp)) == NULL) { /* * The file is not locked, so this thread can * grab the lock: */ p = do_lock(idx, fp); /* Unlock the hash table: */ _SPINUNLOCK(&hash_lock); /* * The file is already locked, so check if the * running thread is the owner: */ } else if (p->owner == _thread_run) { /* * The running thread is already the * owner, so increment the count of * the number of times it has locked * the file: */ p->count++; /* Unlock the hash table: */ _SPINUNLOCK(&hash_lock); } else { /* * The file is locked for another thread. * Append this thread to the queue of * threads waiting on the lock. */ TAILQ_INSERT_TAIL(&p->l_head,_thread_run,qe); /* Unlock the hash table: */ _SPINUNLOCK(&hash_lock); /* Wait on the FILE lock: */ _thread_kern_sched_state(PS_FILE_WAIT, "", 0); } } int ftrylockfile(FILE * fp) { int ret = -1; int idx = file_idx(fp); struct file_lock *p; /* Lock the hash table: */ _SPINLOCK(&hash_lock); /* Get a pointer to any existing lock for the file: */ if ((p = find_lock(idx, fp)) == NULL) { /* * The file is not locked, so this thread can * grab the lock: */ p = do_lock(idx, fp); /* * The file is already locked, so check if the * running thread is the owner: */ } else if (p->owner == _thread_run) { /* * The running thread is already the * owner, so increment the count of * the number of times it has locked * the file: */ p->count++; } else { /* * The file is locked for another thread, * so this try fails. */ p = NULL; } /* Check if the lock was obtained: */ if (p != NULL) /* Return success: */ ret = 0; /* Unlock the hash table: */ _SPINUNLOCK(&hash_lock); return (ret); } void funlockfile(FILE * fp) { int idx = file_idx(fp); struct file_lock *p; /* * Defer signals to protect the scheduling queues from * access by the signal handler: */ _thread_kern_sig_defer(); /* Lock the hash table: */ _SPINLOCK(&hash_lock); /* * Get a pointer to the lock for the file and check that * the running thread is the one with the lock: */ if ((p = find_lock(idx, fp)) != NULL && p->owner == _thread_run) { /* * Check if this thread has locked the FILE * more than once: */ if (p->count > 1) /* * Decrement the count of the number of * times the running thread has locked this * file: */ p->count--; else { /* * The running thread will release the * lock now: */ p->count = 0; /* Get the new owner of the lock: */ if ((p->owner = TAILQ_FIRST(&p->l_head)) != NULL) { /* Pop the thread off the queue: */ TAILQ_REMOVE(&p->l_head,p->owner,qe); /* * This is the first lock for the new * owner: */ p->count = 1; /* Allow the new owner to run: */ PTHREAD_NEW_STATE(p->owner,PS_RUNNING); } } } /* Unlock the hash table: */ _SPINUNLOCK(&hash_lock); /* * Undefer and handle pending signals, yielding if * necessary: */ _thread_kern_sig_undefer(); } #endif
the_stack_data/54825223.c
// // main.c // mulle-msg-send // // Created by Nat! on 15/11/14. // Copyright (c) 2014 Mulle kybernetiK. All rights reserved. // #include <stdio.h> struct _foo { int a, b; }; void print_foo( struct _foo *_par) { printf( "%d%d\n", _par->a, _par->b); } struct _baz { struct _foo x; int a, b; }; struct _foobar { struct _foo x; int a, b; }; void print_foobar( struct _foobar *_par) { print_foo( &_par->x); printf( "%d%d\n", _par->a, _par->b); } int main( int argc, char *argv[]) { struct _foo tmp; print_foo( (void *) &(struct { int a; int b; }){ .a = 18, .b = 48 }); tmp.a = 6; tmp.b = 66; print_foobar( (void *) &(struct { struct _foo a; int b; int c; }){ .a = tmp, .b = 18, .c = 48 }); return( 0); }