file
stringlengths 18
26
| data
stringlengths 3
1.04M
|
---|---|
the_stack_data/193894406.c | char interface[20] = "";
char protocol[4] = "";
int periodicity = -1;
int packet_size = -1;
|
the_stack_data/64400.c | void swap(char ***a, char ***b) {
char **a1, **b1;
char *c;
a1 = *a;
b1 = *b;
c = *a1;
*a1 = *b1;
*b1 = c;
}
int main (){
char b[20];
char a[20];
char * p1, *p2, *t1, *t2;
char ** pa, ** pb;
p1 = a;
p2 = b;
pa = & p1;
pb = & p2;
swap (&pa, &pb);
t1 = *pa;
*t1 = 1;
t2= *pb;
*t2 = 0;
}
|
the_stack_data/70449669.c |
#include<stdio.h>
int main()
{
float x1,x2,y1,y2,m,c;
printf("enter the value of x1 and y1 \n");
scanf("%f %f",&x1,&y1);
printf("enter the value of x2 and y2 \n");
scanf("%f %f",&x2,&y2);
if(x1==x2&&y1==y2)
{
printf("they are same points infinite number of lines are possible\n");
}
else if(x1==x2||y1==y2)
{
if(x1==x2)
printf("the equation of line is x= %f",x1);
else
printf("the equation of line is y= %f",y1);
}
else
{
m= (y2-y1)/(x2-x1);
c=y2-(m*x2);
printf("the equation of line is y=%fx+%f \n",m,c);
}
return 0;
}
|
the_stack_data/43346.c | // RUN: %clang_analyze_cc1 -analyzer-checker=unix.Malloc %s
// Do not crash due to division by zero
int f(unsigned int a) {
if (a <= 0) return 1 / a;
return a;
}
|
the_stack_data/48575920.c | #include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
uint8_t x8[64];
uint16_t x12[64];
uint16_t x16[32];
uint32_t x32[16];
uint64_t x64[8];
#define min(a,b) ((a) < (b) ? (a) : (b))
#define printb(n) do { \
int i, skip; \
for (skip = 1, i = 0; i < sizeof(x ## n) / sizeof(x ## n[0]); i++) { \
if (x ## n[i] == 0 && skip) { continue; } \
if (!skip) printf(" "); \
skip = 0; \
printf("%c%c%c%c %c%c%c%c", \
((x ## n[i] & 0x80) == 0x80 ? '1' : '0'), \
((x ## n[i] & 0x40) == 0x40 ? '1' : '0'), \
((x ## n[i] & 0x20) == 0x20 ? '1' : '0'), \
((x ## n[i] & 0x10) == 0x10 ? '1' : '0'), \
\
((x ## n[i] & 0x08) == 0x08 ? '1' : '0'), \
((x ## n[i] & 0x04) == 0x04 ? '1' : '0'), \
((x ## n[i] & 0x02) == 0x02 ? '1' : '0'), \
((x ## n[i] & 0x01) == 0x01 ? '1' : '0')); \
} \
} while (0)
#define printx(n,f) do { \
int i, skip; \
for (skip = 1, i = 0; i < sizeof(x ## n) / sizeof(x ## n[0]); i++) { \
if (x ## n[i] == 0 && skip) { continue; } \
if (!skip) printf(" "); \
skip = 0; printf(f, x ## n[i]); \
} \
} while (0)
#define printc(n) do { \
int i, skip; \
for (skip = 1, i = 0; i < sizeof(x ## n) / sizeof(x ## n[0]); i++) { \
if (x ## n[i] == 0 && skip) { continue; } \
if (!skip) printf(" "); \
skip = 0; \
switch (x ## n[i]) { \
case '<': printf("< "); break; \
case '>': printf("> "); break; \
case '&': printf("& "); break; \
default: printf("%c", isprint(x ## n[i]) ? x ## n[i] : '.'); \
} \
} \
} while (0)
const char * ASCII[] = {
"NUL", "SOH", "STX", "ETX", "EOT", "ENQ", "ACK", "BEL",
"BS", "HT", "LF", "VT", "FF", "CR", "SO", "SI",
"DLE", "DC1", "DC2", "DC3", "DC4", "NAK", "SYN", "ETB",
"CAN", "EM", "SUB", "ESC", "FS", "GS", "RS", "US",
"SP",
0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, "DEL",
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
};
#define printa(n) do { \
int i, a, skip; \
for (skip = 1, i = 0; i < sizeof(x ## n) / sizeof(x ## n[0]); i++) { \
a = x ## n[i] & 0xff; \
if (x ## n[i] == 0 && skip) { continue; } \
if (!skip) printf(" "); \
skip = 0; \
switch (x ## n[i]) { \
case '<': printf("< "); break; \
case '>': printf("> "); break; \
case '&': printf("& "); break; \
default: printf("%s", ASCII[a] ? ASCII[a] : "."); \
} \
} \
} while (0)
int main(int argc, char **argv)
{
int skip, i, j;
int is_str, has_ws, b8, b10, b16;
long long n;
printf("<items>\n");
is_str = has_ws = b8 = b10 = b16 = 0;
if (argv[1][0] == '0') {
b8 = 1;
}
for (i = 0; i < strlen(argv[1]); i++) {
if (argv[1][i] >= '0' && argv[1][i] <= '7') {
continue;
}
if (argv[1][i] >= '8' && argv[1][i] <= '9') {
b10 = 1;
continue;
}
if ((argv[1][i] >= 'a' && argv[1][i] <= 'f') || argv[1][i] == 'x') {
b16 = 1;
continue;
}
if (isspace(argv[1][i])) {
has_ws = 1;
continue;
}
is_str = 1;
}
if (has_ws && !is_str) {
char *arg, *end;
i = 0;
arg = argv[1];
while (*arg && i < 64) {
errno = 0;
n = strtoll(arg, &end, 16);
if (errno != 0) {
goto efail;
}
if (n > 0xff || n < 0) {
goto nfail;
}
x8[i++] = n;
arg = end;
while (isspace(*arg)) {
arg++;
}
}
i--;
for (j = 63; i >= 0; i--, j--) {
x8[j] = x8[i];
}
for (j--; j >= 0; j--) {
x8[j] = 0;
}
} else if (is_str) {
int offset = 64 - (min(64, strlen(argv[1]) + 1) & ~0x1);
for (i = 0; i < offset; i++) {
x8[i + offset] = argv[1][i];
if (argv[1][i] == '\0') {
break;
}
}
} else {
int base = 10;
if (b8 && !b10 && !b16) {
base = 8;
} else if (b16) {
base = 16;
}
errno = 0;
n = strtoll(argv[1], NULL, base);
if (errno != 0) {
goto efail;
}
if (n < 0) {
goto nfail;
}
for (i = 63; i >= 0 && n > 0; i--) {
x8[i] = n & 0xff;
n = n >> 8;
// printf("%d %x\n", i, x8[i]);
}
}
for (i = 0; i < 63; ) {
x16[i/2] = x8[i] << 8 | x8[i+1];
i += 2;
}
for (i = 0; i < 63; ) {
x32[i/4] = x8[i] << 24 | x8[i|1] << 16 | x8[i|2] << 8 | x8[i|3];
i += 4;
}
for (i = 0; i < 63; ) {
x64[i/8] = ((uint64_t)x8[i]) << 56 | ((uint64_t)x8[i|1]) << 48 | ((uint64_t)x8[i|2]) << 40 | ((uint64_t)x8[i|3]) << 32 | ((uint64_t)x8[i|4]) << 24 | ((uint64_t)x8[i|5]) << 16 | ((uint64_t)x8[i|6]) << 8 | ((uint64_t)x8[i|7]);
i += 8;
}
skip = 4; /* right skip */
for (i = 63, j = 63; i >= 1 && j >= 0; ){
switch (skip) {
case 4: /* 0000 1111 1111 1111 */
x12[j] = x8[i--];
x12[j] |= (x8[i] & 0x0f) << 8;
j--;
skip = 8;
break;
case 8: /* 1111 1111 1111 xxxx */
x12[j] = (x8[i--] & 0xf0) >> 4;
x12[j] |= x8[i--] << 4;
j--;
skip = 4;
break;
}
}
// printf("%llx\n", x64[0]);
// printf("%llx\n", x64[1]);
// printf("%llx\n", x64[2]);
// printf("%llx\n", x64[3]);
// printf("%llx\n", x64[4]);
// printf("%llx\n", x64[5]);
// printf("%llx\n", x64[6]);
// printf("%llx\n", x64[7]);
#define ATTRS " valid=\"yes\" auto=\"\""
printf("<item uuid=\"hex\"" ATTRS "><arg>");
printx(8, "%02x");
printf("</arg><title>");
printx(8, "%02x");
printf("</title><subtitle>hex</subtitle></item>\n");
printf("<item uuid=\"oct\"" ATTRS "><arg>");
printx(12, "%04o");
printf("</arg><title>");
printx(12, "%04o");
printf("</title><subtitle>octal</subtitle></item>\n");
printf("<item uuid=\"ascii\"" ATTRS "><arg>");
printc(8);
printf("</arg><title>");
printc(8);
printf("</title><subtitle>ascii</subtitle></item>\n");
printf("<item uuid=\"named-ascii\"" ATTRS "><arg>");
printa(8);
printf("</arg><title>");
printa(8);
printf("</title><subtitle>ascii (named)</subtitle></item>\n");
printf("<item uuid=\"dec8\"" ATTRS "><arg>");
printx(8, "%d");
printf("</arg><title>");
printx(8, "%d");
printf("</title><subtitle>decimal 8</subtitle></item>\n");
printf("<item uuid=\"dec16\"" ATTRS "><arg>");
printx(16, "%d");
printf("</arg><title>");
printx(16, "%d");
printf("</title><subtitle>decimal 16</subtitle></item>\n");
printf("<item uuid=\"dec32\"" ATTRS "><arg>");
printx(32, "%u");
printf("</arg><title>");
printx(32, "%u");
printf("</title><subtitle>decimal 32</subtitle></item>\n");
printf("<item uuid=\"dec64\"" ATTRS "><arg>");
printx(64, "%llu");
printf("</arg><title>");
printx(64, "%llu");
printf("</title><subtitle>decimal 64</subtitle></item>\n");
printf("<item uuid=\"bin\"" ATTRS "><arg>");
printb(8);
printf("</arg><title>");
printb(8);
printf("</title><subtitle>binary</subtitle></item>\n");
printf("</items>\n");
return 0;
efail:
printf("<item uuid=\"errno\"><title>oops... %s</title><subtitle>that's an error code %d</subtitle></item>\n",
strerror(errno), errno);
printf("</items>\n");
return 1;
nfail:
printf("<item uuid=\"errno\"><title>oops... %s is an odd looking numeric</title></item>\n", argv[1]);
printf("</items>\n");
return 2;
}
|
the_stack_data/84146.c | #include <stdio.h>
int main()
{
long ge, shi, qian, wan, num;
printf("Enter a digit with 5 numbers: ");
scanf("%ld", &num);
ge = num % 10;
shi = num /10 % 10;
qian = num / 1000 % 10;
wan = num / 10000 % 10;
if (shi == qian && ge == wan)
printf("This is the number of palidrome. \n");
else
printf("This isn't the number of palidrome. \n");
return 0;
} |
the_stack_data/405026.c | #include <assert.h>
#include <stdint.h>
void f00 (unsigned int g) {
uint64_t k = ((uint64_t)~g);
uint64_t l = (0xFF00000000ull & k);
assert(l == 0);
}
int main()
{
f00(0);
}
|
the_stack_data/971290.c | #include<stdio.h>
#include<malloc.h>
struct Node
{
int data;
struct Node *left,*right;
};
void printGivenLevel(struct Node* root, int level);
int height (struct Node * node);
struct Node * newNode(int data);
void printLevelOrder(struct Node * root)
{
int h = height(root);
int i;
for(i = 1; i<= h ; i++)
{
printGivenLevel(root,i);
}
}
void printGivenLevel(struct Node * root,int level)
{
if(root == NULL)
{
return;
}
if(level == 1)
{
printf("%d",root->data);
}
else if(level > 1)
{
printGivenLevel(root->left , level -1);
printGivenLevel(root->right , level -1);
}
}
int height(struct Node * node)
{
if(node == NULL)
{
return 0;
}
else
{
int lheight = height(node->left);
int rheight = height(node->right);
if(lheight > rheight)
{
return lheight+1;
}
else
{
return rheight+1;
}
}
}
struct Node* newNode(int data)
{
struct Node* node = (struct Node*)
malloc(sizeof(struct Node));
node->data = data;
node->left = NULL;
node->right = NULL;
return(node);
}
int main()
{
struct Node *root = newNode(1);
root->left = newNode(2);
root->right = newNode(3);
root->left->left = newNode(4);
root->left->right = newNode(5);
printf("Level Order traversal of binary tree is \n");
printLevelOrder(root);
return 0;
}
|
the_stack_data/65788.c | /*
wget https://raw.githubusercontent.com/tansoft/aws-poc/main/graviton-cpu-test/minirun.c
gcc -lpthread minirun.c -O0 -o minirun
for i in {1..40}; do ./minirun $i; done
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
#include <sys/time.h>
void set_use_cpu(int start) {
cpu_set_t cpuset;
pthread_t tid = pthread_self();
CPU_ZERO(&cpuset);
CPU_SET(start, &cpuset);
if (pthread_setaffinity_np(tid, sizeof(cpu_set_t), &cpuset) != 0) {
printf("set addinity error\n");
exit(1);
}
}
void *_test(void *arg) {
double a=0;
set_use_cpu(0);
for(int i=0;i<10000000;i++) {
a+=1;
}
return NULL;
}
int main(int argc, char *argv[]) {
pthread_t tid[100];
struct timeval start, end;
int i, usec;
int test_thread = atoi(argv[1]);
for(i=0;i<test_thread;i++){
pthread_create(&tid[i], NULL, _test, NULL);
}
set_use_cpu(1);
gettimeofday(&start, NULL);
for(i=0;i<test_thread;i++) {
pthread_join(tid[i], NULL);
}
gettimeofday(&end, NULL);
usec = (1000000*(end.tv_sec-start.tv_sec)+ end.tv_usec-start.tv_usec);
printf("%d,%d\n", test_thread, usec);
}
|
the_stack_data/117327392.c | /*
SDL_mixer: An audio mixer library based on the SDL library
Copyright (C) 1997-2017 Sam Lantinga <[email protected]>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source distribution.
This is the source needed to decode an MP3 into a waveform.
*/
/* $Id$ */
#if defined(MP3_MUSIC) || defined(MP3_MAD_MUSIC)
#include "SDL_mixer.h"
#include "load_mp3.h"
#if defined(MP3_MUSIC)
#include "dynamic_mp3.h"
#elif defined(MP3_MAD_MUSIC)
#include "music_mad.h"
#endif
SDL_AudioSpec *Mix_LoadMP3_RW(SDL_RWops *src, int freesrc, SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len)
{
/* note: spec is initialized to mixer spec */
#if defined(MP3_MUSIC)
SMPEG* mp3;
SMPEG_Info info;
#elif defined(MP3_MAD_MUSIC)
mad_data *mp3_mad;
#endif
long samplesize;
int read_len;
const Uint32 chunk_len = 4096;
int err = 0;
if ((!src) || (!spec) || (!audio_buf) || (!audio_len))
{
return NULL;
}
if (!err)
{
*audio_len = 0;
*audio_buf = (Uint8*) SDL_malloc(chunk_len);
err = (*audio_buf == NULL);
}
if (!err)
{
err = ((Mix_Init(MIX_INIT_MP3) & MIX_INIT_MP3) == 0);
}
if (!err)
{
#if defined(MP3_MUSIC)
mp3 = smpeg.SMPEG_new_rwops(src, &info, freesrc, 0);
err = (mp3 == NULL);
#elif defined(MP3_MAD_MUSIC)
mp3_mad = mad_openFileRW(src, spec, freesrc);
err = (mp3_mad == NULL);
#endif
}
#if defined(MP3_MUSIC)
if (!err)
{
err = !info.has_audio;
}
#endif
if (!err)
{
#if defined(MP3_MUSIC)
smpeg.SMPEG_actualSpec(mp3, spec);
smpeg.SMPEG_enableaudio(mp3, 1);
smpeg.SMPEG_enablevideo(mp3, 0);
smpeg.SMPEG_play(mp3);
/* read once for audio length */
while ((read_len = smpeg.SMPEG_playAudio(mp3, *audio_buf, chunk_len)) > 0)
{
*audio_len += read_len;
}
smpeg.SMPEG_stop(mp3);
#elif defined(MP3_MAD_MUSIC)
mad_start(mp3_mad);
/* read once for audio length */
while ((read_len = mad_getSamples(mp3_mad, *audio_buf, chunk_len)) > 0)
{
*audio_len += read_len;
}
mad_stop(mp3_mad);
#endif
err = (read_len < 0);
}
if (!err)
{
/* reallocate, if needed */
if ((*audio_len > 0) && (*audio_len != chunk_len))
{
*audio_buf = (Uint8*) SDL_realloc(*audio_buf, *audio_len);
err = (*audio_buf == NULL);
}
}
if (!err)
{
/* read again for audio buffer, if needed */
if (*audio_len > chunk_len)
{
#if defined(MP3_MUSIC)
smpeg.SMPEG_rewind(mp3);
smpeg.SMPEG_play(mp3);
err = (*audio_len != smpeg.SMPEG_playAudio(mp3, *audio_buf, *audio_len));
smpeg.SMPEG_stop(mp3);
#elif defined(MP3_MAD_MUSIC)
mad_seek(mp3_mad, 0);
mad_start(mp3_mad);
err = (*audio_len != mad_getSamples(mp3_mad, *audio_buf, *audio_len));
mad_stop(mp3_mad);
#endif
}
}
if (!err)
{
/* Don't return a buffer that isn't a multiple of samplesize */
samplesize = ((spec->format & 0xFF)/8)*spec->channels;
*audio_len &= ~(samplesize-1);
}
#if defined(MP3_MUSIC)
if (mp3)
{
smpeg.SMPEG_delete(mp3); mp3 = NULL;
/* Deleting the MP3 closed the source if desired */
freesrc = SDL_FALSE;
}
#elif defined(MP3_MAD_MUSIC)
if (mp3_mad)
{
mad_closeFile(mp3_mad); mp3_mad = NULL;
/* Deleting the MP3 closed the source if desired */
freesrc = SDL_FALSE;
}
#endif
if (freesrc)
{
SDL_RWclose(src); src = NULL;
}
/* handle error */
if (err)
{
if (*audio_buf != NULL)
{
SDL_free(*audio_buf); *audio_buf = NULL;
}
*audio_len = 0;
spec = NULL;
}
return spec;
}
#endif
|
the_stack_data/203758.c | #include<stdio.h>
#define tamanho 6
void main(){
int vetor[tamanho], aux;
for(int i =0; i<tamanho; i++){
printf("Informe a posicao %d: ", i+1);
scanf("%d",&vetor[i]);
}
for(int i=0;i<tamanho/2; i++){
aux = vetor[i];
vetor[i] = vetor[(tamanho-1)-i];
vetor[(tamanho-1)-i] = aux;
}
for(int i =0; i<tamanho; i++){
printf("%d ", vetor[i]);
}
printf("\n");
}
|
the_stack_data/726510.c |
#include <ctype.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
int main(int argc, char **argv)
{
int i;
int j;
int ret;
if (argc == 3)
{
i = atoi(argv[1]);
j = -9;
while (j < 255)
{
ret = isspace(j);
if (j % 10 == 0)
printf("%d ", ret);
else
printf("%d", ret);
j++;
}
}
return (0);
}
|
the_stack_data/168893853.c | /**
* (C) Copyright 2014- ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergovernmental organisation
* nor does it submit to any jurisdiction.
*/
/* Address difference in bytes */
void
addrdiff_(const char *p1, const char *p2, int *diff)
{
*diff = (p2 - p1);
}
/* loc()-function */
unsigned long long int
loc_addr_(const char *p)
{
return (unsigned long long int)(p - (const char *)0);
}
|
the_stack_data/107528.c | #include <stdio.h>
int opt1 = 0;
int opt2 = 0;
int main()
{
printf("bienvenid a platzi store :\n");
printf("opcion 0 para platzi bebidas \n");
printf("opcion 1 para platzi comidas \n");
printf("opcion 2 para platzi postres \n");
switch (opt1 ){
case 0:
printf("usted eligio la opcion 0, vera nuestro menu de bebidas elija una:\n");
printf("opcion 0 para platzi cola cero \n");
printf("opcion 1 para platzi cola normal \n");
printf("opcion 2 para platzi pina colada \n");
switch (opt2)
{
case 0:
printf("usted eligio una platzi cola cero, mmm rico");
break;
default:
break;
}
break;
case 1:
/* Dispersar, correr a los intrusos */
break;
case 2:
/* Dispersar, correr a los intrusos */
break;
default:
break;
}
return 0;
}
|
the_stack_data/95449266.c | #if defined(__powerpc__) || defined(PPC) || defined(_POWER) || defined(_IBMR2) || defined(__ppc__)
/*
* Some of this code is
* Copyright 2008 Cadence Design Systems, Inc.
*
* Licensed under the Apache License, Version 2.0 (the ''License''); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Some of this code is
// Created by John M McIntosh on 12/2/08.
Copyright (c) 2008 Corporate Smalltalk Consulting Ltd. All rights reserved.
MIT License
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.
*/
/*
* ppc32abicc.c
*
* Support for Call-outs and Call-backs from the Plugin.
*
*/
# include <sys/mman.h> /* for mprotect */
# if OBJC_DEBUG /* define this to get debug info for struct objc_class et al */
# include <objc/objc.h>
# include <objc/objc-class.h>
struct objc_class *baz;
void setbaz(void *p) { baz = p; }
void *getbaz() { return baz; }
# endif
# include <sys/mman.h> /* for mprotect */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "sqMemoryAccess.h"
#include "sqVirtualMachine.h"
#include "ia32abi.h"
#include <setjmp.h>
#if !defined(min)
# define min(a,b) ((a) < (b) ? (a) : (b))
#endif
#if !defined(noteEnterCallback)
# define noteEnterCallback() 0
#endif
#if !defined(noteExitCallback)
# define noteExitCallback() 0
#endif
#if !defined(EnsureHaveVMThreadID)
# define EnsureHaveVMThreadID() 0
#endif
#if !defined(CheckInVMThread)
# define CheckInVMThread() 1
#endif
#ifdef SQUEAK_BUILTIN_PLUGIN
extern
#endif
struct VirtualMachine* interpreterProxy;
#ifdef _MSC_VER
# define alloca _alloca
#endif
#if __GNUC__
//# define setsp(sp) asm volatile ("movl %0,%%esp" : : "memory"(sp))
//# define getsp(sp) asm volatile ("movl %%esp,%0" : "=r"(sp) : )
#endif
# define STACK_ALIGN_BYTES 16
#if !defined(setsp)
# define setsp(ignored) asm volatile ("stwu r1,12(r1)\n")
#endif
#define moduloPOT(m,v) ((v)+(m)-1 & ~((m)-1))
#define alignModuloPOT(m,v) ((void *)moduloPOT(m,(unsigned long)(v)))
#define objIsAlien(anOop) (interpreterProxy->includesBehaviorThatOf(interpreterProxy->fetchClassOf(anOop), interpreterProxy->classAlien()))
#define objIsUnsafeAlien(anOop) (interpreterProxy->includesBehaviorThatOf(interpreterProxy->fetchClassOf(anOop), interpreterProxy->classUnsafeAlien()))
#define sizeField(alien) (*(long *)pointerForOop((sqInt)(alien) + BaseHeaderSize))
#define dataPtr(alien) pointerForOop((sqInt)(alien) + BaseHeaderSize + BytesPerOop)
#if 0 /* obsolete after adding pointer Aliens with size field == 0 */
# define isIndirectOrPointer(alien) (sizeField(alien) <= 0)
# define startOfData(alien) (isIndirectOrPointer(alien) \
? *(void **)dataPtr(alien) \
: (void *)dataPtr(alien))
#endif
#define isIndirect(alien) (sizeField(alien) < 0)
#define startOfParameterData(alien) (isIndirect(alien) \
? *(void **)dataPtr(alien) \
: (void *)dataPtr(alien))
#define isIndirectSize(size) ((size) < 0)
#define startOfDataWithSize(alien,size) (isIndirectSize(size) \
? *(void **)dataPtr(alien) \
: (void *)dataPtr(alien))
#define isSmallInt(oop) ((oop)&1)
#define intVal(oop) (((long)(oop))>>1)
extern long ffiCallAddressOf(void*);
volatile long ffiStackIndex;
volatile long *ffiStackLocation;
volatile double *FPRegsLocation;
long *GPRegsLocation;
long gpRegCount = 0;
long fpRegCount = 0;
volatile long long longReturnValue;
volatile char *longReturnValueLocation = (char*) &longReturnValue;
volatile double floatReturnValue;
volatile double *floatReturnValueLocation = &floatReturnValue;
int figureOutFloatSize(int typeSignatureArray,int index) {
int floatSize,objectSize;
char *floatSizePointer;
sqInt oops = interpreterProxy->stackValue(typeSignatureArray);
objectSize = interpreterProxy->stSizeOf(oops);
if (index >= objectSize)
return sizeof(double);
floatSizePointer = interpreterProxy->firstIndexableField(oops);
floatSize = floatSizePointer[index];
return floatSize;
}
/*
* Call a foreign function that answers an integral result in %eax (and
* possibly %edx) according to IA32-ish ABI rules.
*/
sqInt
callIA32IntegralReturn(SIGNATURE) {
long long (*f)(), r;
#include "dabusinessppc.h"
#include "dabusinessppcPostLogicInteger.h"
}
/*
* Call a foreign function that answers a single-precision floating-point
* result in %f0 according to IA32-ish ABI rules.
*/
sqInt
callIA32FloatReturn(SIGNATURE) { float (*f)(), r;
#include "dabusinessppc.h"
#include "dabusinessppcPostLogicFloat.h"
}
/*
* Call a foreign function that answers a double-precision floating-point
* result in %f0 according to IA32-ish ABI rules.
*/
sqInt
callIA32DoubleReturn(SIGNATURE) { double (*f)(), r;
#include "dabusinessppc.h"
#include "dabusinessppcPostLogicDouble.h"
}
/*
* Entry-point for call-back thunks. Args are thunk address and stack pointer,
* where the stack pointer is pointing one word below the return address of the
* thunk's callee, 4 bytes below the thunk's first argument. The stack is:
* callback
* arguments
* retpc (thunk) <--\
* address of retpc-/ <--\
* address of address of ret pc-/
* thunkp
* esp->retpc (thunkEntry)
*
* Pushing the stack pointer twice is done to keep the stack alignment to 16
* bytes, a requirement on Mac OS X, and harmless elsewhere.
*
* This function's roles are to use setjmp/longjmp to save the call point
* and return to it, and to return any of the various values from the callback.
*
* Looking forward to support for x86-64, which typically has 6 register
* arguments, the function would take 8 arguments, the 6 register args as
* longs, followed by the thunkp and stackp passed on the stack. The register
* args would get copied into a struct on the stack. A pointer to the struct
* is then passed as the 3rd argument of sendInvokeCallbackStackRegistersJmpbuf
*/
long
thunkEntry(void *thunkp, long *stackp)
{
jmp_buf trampoline;
volatile CallBackReturnSpec *rs;
if (sizeof(int) != sizeof(rs)) {
perror("setjmp cannot return a pointer; reimplement!\n");
exit(1);
}
if (!CheckInVMThread()) {
printf("NOT IN VM THREAD!\n");
perror("Not in VM thread!\n");
exit(666);
}
noteEnterCallback();
if (!(rs = (void *)setjmp(trampoline))) {
interpreterProxy->
sendInvokeCallbackStackRegistersJmpbuf( (sqInt)thunkp,
(sqInt)(stackp + 2),
0,
(sqInt)&trampoline);
perror("Warning; callback failed to invoke\n");
return 0;
}
noteExitCallback();
switch (rs->type) {
case retint32: return rs->rvs.valint32;
case retint64: {
long vhigh = rs->rvs.valint64.high;
#if _MSC_VER
_asm mov edx, dword ptr vhigh;
#elif __GNUC__
#warning ASSEMBLER
//asm("mov %0,%%edx" : : "m"(vhigh));
#else
# error need to load edx with rs->rvs.valint64.high on this compiler
#endif
return rs->rvs.valint64.low;
}
case retdouble: {
double valflt64 = rs->rvs.valflt64;
#if _MSC_VER
_asm fld qword ptr valflt64;
#elif __GNUC__
#warning ASSEMBLER
// asm("fldl %0" : : "m"(valflt64));
#else
# error need to load %f0 with rs->rvs.valflt64 on this compiler
#endif
return 0;
}
case retstruct: memcpy( (void *)(stackp[1]),
rs->rvs.valstruct.addr,
rs->rvs.valstruct.size);
return stackp[1];
}
perror("Warning; invalid callback return type\n");
return 0;
}
/*
* Thunk allocation support. Since thunks must be exectuable and some OSs
* may not provide default execute permission on memory returned by malloc
* we must provide memory that is guaranteed to be executable. The abstraction
* is to answer an Alien that references an executable piece of memory that
* is some (possiby unitary) multiple of the pagesize.
*
* We assume the Smalltalk image code will manage subdividing the executable
* page amongst thunks so there is no need to free these pages, sicne the image
* will recycle parts of the page for reclaimed thunks.
*/
#if defined(_MSC_VER) || defined(__MINGW32__)
static unsigned long pagesize = 0;
#endif
void *
allocateExecutablePage(long *size)
{
void *mem;
#if defined(_MSC_VER) || defined(__MINGW32__)
if (!pagesize) {
SYSTEM_INFO sysinf;
GetSystemInfo(&sysinf);
pagesize = sysinf.dwPageSize;
}
/* N.B. VirtualAlloc MEM_COMMIT initializes the memory returned to zero. */
mem = VirtualAlloc( 0,
pagesize,
MEM_COMMIT | MEM_TOP_DOWN,
PAGE_EXECUTE_READWRITE);
if (mem)
*size = pagesize;
#else
long pagesize = getpagesize();
if (!(mem = valloc(pagesize)))
return 0;
memset(mem, 0, pagesize);
if (mprotect(mem, pagesize, PROT_READ | PROT_WRITE | PROT_EXEC) < 0) {
free(mem);
return 0;
}
*size = pagesize;
#endif
return mem;
}
#endif
|
the_stack_data/66953.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdint.h>
#include <stdbool.h>
#include <ctype.h>
typedef unsigned char ubyte;
// TODO: Add CLI arg
int verbosity = 0;
#define DEBUG(v, ...) \
if (verbosity >= (v)) { \
fprintf(stderr, __VA_ARGS__); \
}
static ubyte byte_mask[] = {
0b00000000,
0b00000001,
0b00000011,
0b00000111,
0b00001111,
0b00011111,
0b00111111,
0b01111111,
0b11111111
};
// Structure of a cell
struct cell;
typedef struct cell {
ubyte* value;
struct cell* prev;
struct cell* next;
} cell;
// Number of bits and ceil(number of bytes) of a cell value
int n_bits = 0;
int n_bytes = 0;
// Current cell and index
int cellidx = 0;
cell* cur;
// Program, position within it, and size
char* prog;
int pos = 0;
long progsize = 0;
// List of executed (face,value) instruction pairs.
// And instruction pointer (ip) pointing to the current instruction index
ubyte ins[30000];
int inssize = 0;
int ip = 0;
// Output buffer and size
ubyte outbuf = 0;
int outbuf_bits = 0;
// Input buffer and size
ubyte inbuf = 0;
int inbuf_bits = 0;
// Reading direction and stack, used for loops
int dir = 1; // 1=forward, -1=backward
int stack = 0; // nesting level
void error(char* str) {
fprintf(
stderr,
"Error: %s\n"
"\tat dice(%d, %d)\n"
"\tcell %d (%d)\n"
"\tip %d\n",
str,
ins[ip], ins[ip+1],
cellidx, cur->value[0],
ip);
exit(1);
}
cell* makecell(cell* prev, cell* next) {
cell* n = malloc(sizeof(cell));
n->value = malloc(n_bytes);
memset(n->value, 0, n_bytes);
n->prev = prev;
n->next = next;
return n;
}
void nextcell() {
cell* n = cur->next;
if (n == NULL) {
n = makecell(cur, NULL);
cur->next = n;
}
cellidx++;
cur = n;
}
void prevcell() {
cell* n = cur->prev;
if (n == NULL) {
n = makecell(NULL, cur);
cur->prev = n;
}
cellidx--;
cur = n;
}
void addval(int n) {
//fprintf(stderr, "Add(%d): %d\n", n, cur->value[0]);
int carry = n;
for (int i = 0; i < n_bytes; i++) {
carry += cur->value[i];
cur->value[i] = (ubyte) carry;
carry >>= 8;
}
DEBUG(1, "Add %d to c%d => %d\n", n, cellidx, cur->value[0])
// TODO: Maybe wrap around to higher values go back to zero
if (carry != 0) {
error("Value byte over/underflow at cell");
}
int lastbits = n_bits % 8;
//fprintf(stderr, "Lastbits: %d\n", lastbits);
if (lastbits != 0 && (cur->value[n_bytes-1] >> lastbits) > 0) {
error("value bit overflow at cell");
}
}
void subval(int n) {
// Adapted from
// https://stackoverflow.com/questions/61488609/substract-an-char-array-minus-int-in-c
// Can we avoid borrowing and do a local subtract?
if (n <= cur->value[0]) {
cur->value[0] -= n;
DEBUG(1, "Sub %d from c%d => %d\n", n, cellidx, cur->value[0])
return;
}
// Try borrowing from subsequent bytes
for (int i = 1; i < n_bytes; i--){
// Can we borrow?
if (cur->value[i] == 0){
continue;
}
// Borrow
cur->value[i]--;
for (int j = i - 1; j > 0; j--){
cur->value[j] = 255;
}
int newval = ((int)(cur->value[0]) + 255 - n);
cur->value[0] = (ubyte) newval;
return;
}
error("Value byte underflow at cell");
}
void outval() {
// Number of bits we _want_ to output
int b = n_bits + outbuf_bits;
int i = 0;
while (b > 0) {
ubyte d = cur->value[i];
if ((outbuf_bits + b) < 8) {
// Not enough bits (left) to output
// Shift bits into outbuf
// Also handles b=0
outbuf <<= b;
outbuf |= d & byte_mask[b];
outbuf_bits += b;
return;
}
// We have enough bits to output,
int new_bits = 8 - outbuf_bits;
char out = 0;
out |= outbuf_bits << new_bits;
out |= d & byte_mask[new_bits];
putchar(out);
b -= 8;
// Update the buffer
int unused_bits = 8 - new_bits; // # of bits of this byte that's unused
int unused_mask = byte_mask[unused_bits] << new_bits;
outbuf = (d & unused_mask) >> new_bits; // Store the bits shifted all the way right
outbuf_bits = unused_bits;
i += 1; // Next byte
}
}
void inval() {
// Clear the current value
memset(cur->value, 0, n_bytes);
// Number of bytes we need to input
int bytes_in = ((n_bits - inbuf_bits - 1) / 8) + 1;
char in[bytes_in];
for (int i = 0; i < bytes_in; i++) {
in[i] = getchar();
}
int b_left = n_bits;
int i = 0;
while (b_left > 0) {
ubyte d = in[i];
int new_bits = 8 - inbuf_bits;
ubyte in = 0;
in |= (inbuf << new_bits);
in |= (d & byte_mask[new_bits]);
cur->value[i] = in;
// Shift the other part of d into the buffer
int unused_bits = 8 - new_bits;
int unused_mask = byte_mask[unused_bits] << new_bits;
inbuf = (d & unused_mask) >> new_bits;
inbuf_bits = unused_bits;
b_left -= 8;
i += 1;
}
}
void dice(int sides, int value) {
DEBUG(2, "ip %d dir %d: Dice %d=%d\n", ip, dir, sides, value)
switch (sides) {
case 4:
if (stack > 0) return;
if (value == 1) {
prevcell();
prevcell();
} else if (value == 2) {
prevcell();
} else if (value == 3) {
nextcell();
} else if (value == 4) {
nextcell();
nextcell();
} else {
error("Out of range d4");
}
break;
case 12:
if (stack > 0) return;
if (value >= 1 && value <= 6) {
subval(7 - value);
} else if (value >= 7 && value <= 12) {
addval(value - 6);
} else {
error("Out of range d12");
}
break;
case 6:
if (stack > 0) return;
if (value != 6) {
error("Cannot have d6 with a value except 6");
}
outval();
break;
case 8:
if (stack > 0) return;
if (value != 8) {
error("Cannot have d8 with a value except 8");
}
inval();
break;
case 10:
if (value != 10) {
error("Cannot have d10 with a value except 10");
}
// Termination condition
if (stack == 1 && dir == -1) {
// We're seeking back from a ']', so reset
dir = 1;
stack = 0;
return;
} else if (stack > 0) {
stack += dir; // Already in a loop, but seeking
return;
}
// Start a '[' loop
for (int i = 0; i < n_bytes; i++) {
if (cur->value[i] != 0) {
return; // not zero, do nothing
}
}
// Seek to the matching ']'
dir = 1;
stack = 1;
break;
case 100:
if (value != 100) {
error("Cannot have d100 with a value except 100");
}
// Termination instruction
if (stack == 1 && dir == 1) {
// We're seeking forward from a matching '[', reset
dir = 1;
stack = 0;
return;
} else if (stack > 0) {
stack -= dir; // Already in a loop, but seeking
return;
}
// stack==0, backward seeking
for (int i = 0; i < n_bytes; i++) {
if (cur->value[i] == 0) {
continue;
}
// Non-zero, seek back
dir = -1;
stack = 1;
}
// Zero, do nothing
break;
case 20:
if (ip != 0) {
error("d20 used as non-start instruction");
}
n_bits = 1 << (value-1);
n_bytes = ((n_bits - 1) / 8) + 1;
DEBUG(1, "Cell bits: %d, bytes: %d\n", n_bits, n_bytes)
// Make the first cell
cur = makecell(NULL, NULL);
break;
default:
error("Unknown number of sides");
}
}
void readfile(char* file) {
FILE* fp = fopen(file, "rb");
if (!fp) {
perror(file);
exit(1);
}
// Find program length
fseek(fp, 0L, SEEK_END);
progsize = ftell(fp);
rewind(fp);
prog = malloc(progsize+1);
if (!prog) {
fclose(fp);
fputs("prog alloc fail\n", stderr);
exit(1);
}
if (1 != fread(prog, progsize, 1, fp)) {
fclose(fp);
free(prog);
fprintf(stderr, "prog read fail: %ld\n", progsize);
exit(1);
}
fclose(fp);
}
int matchint(char* prog, int p, int* val) {
if (!isdigit(prog[p])) {
return -1;
}
// See if there's:
// * no second digit (d6)
// * a second digit (d20)
// * a third digit (d100)
int v;
int len = 0;
if (!isdigit(prog[p+1])) {
v = (prog[p] - '0');
len = 1;
} else if (isdigit(prog[p+1]) && !isdigit(prog[p+2])) {
v = (prog[p] - '0') * 10;
v += (prog[p+1] - '0');
len = 2;
} else if (isdigit(prog[p+1]) && isdigit(prog[p+2])) {
v = (prog[p] - '0') * 100;
v += (prog[p+1] - '0') * 10;
v += (prog[p+2] - '0');
len = 3;
}
*val = v;
return len;
}
void parseprog() {
pos = -1;
while (pos < progsize) {
pos++; // next char
if (progsize - pos < 3) continue;
// match dX
if (prog[pos] != 'd') continue;
pos++;
int sides = 0;
int skip = matchint(prog, pos, &sides);
if (skip < 1) { continue; }
pos += skip;
// match '=X'
int value = sides;
if (prog[pos] == '=' && (progsize - pos) >= 3) {
pos++;
skip = matchint(prog, pos, &value);
if (value < 0) { // Handle d5=Bla
value = sides;
} else {
pos += skip;
}
}
// Push to executions
if (inssize == 0 && sides != 20) { // Initial d20
DEBUG(2, "Insert initial die (%d): d%d=%d\n", inssize, sides, value)
ins[inssize++] = 20;
ins[inssize++] = 4; // 2^(4-3) = 8 bit cells
}
DEBUG(2, "Die (%d): d%d=%d\n", inssize, sides, value)
ins[inssize++] = sides;
ins[inssize++] = value;
}
}
bool next_instr() {
ip += (dir * 2);
if (ip >= inssize) {
if (stack > 0) {
error("Unmatched d10");
}
return false; // Program finished
}
if (ip < 0) {
error("Unmatched d100");
}
dice(ins[ip], ins[ip+1]);
return true;
}
int main(int argc, char* argv[]) {
if (argc < 2) {
fprintf(stderr, "Usage: %s <file>\n", argv[0]);
exit(1);
}
// Read
readfile(argv[1]);
// Parse
parseprog();
free(prog);
// Execute
dir = 1;
ip = -2;
while (next_instr()) ;
//printf("\n");
//fprintf(stderr, "Done!\n");
// TODO: flush buffer?
exit(0);
}
|
the_stack_data/25138745.c | #include <stdio.h>
/*3) Crie o programa media que calcula a media dos valores entrados
C:\>media 5 6 4 6 8
Media=5,8*/
int main(int argc, char * argv[]) {
int i, soma = 0;
float media;
for(i = 1; i < argc; i++){
soma += atoi(argv[i]);
}
media = soma/(argc-1);
printf("Media = %.1f\n", media);
return 0;
}
|
the_stack_data/173578184.c | #include <stdio.h>
#define SIZE 4
int main(void) {
short dates[SIZE];
short *pti;
short index;
double bills[SIZE];
double *ptf;
pti = dates;
ptf = bills;
printf("%23s %15s\n", "short", "double");
for (index = 0; index < SIZE; index++) {
printf("pointers + %d: %10p %10p\n", index, pti + index, ptf + index);
}
return 0;
} |
the_stack_data/145454343.c | // File: 5.9.c
// Author: iBug
#include <stdio.h>
int main(){
int n, s, i;
for (n = 1; n < 1000; n ++){
s = 0;
for (i = 1; i < n; i ++){
if (n % i == 0){
s += i;
}
}
if (s == n){
printf("%d\tits factors are 1", n);
for (i = 2; i < n; i ++){
if (n % i == 0){
printf(", %d", i);
}
}
printf("\n");
}
}
return 0;
}
|
the_stack_data/82951329.c | int main() {
return 1 > 0;
} |
the_stack_data/954885.c | #include <stdio.h>
#define NONBLANK 'a'
int main()
{
int c, lastc;
lastc = NONBLANK;
while ((c = getchar()) != EOF) {
if (c != ' ' || lastc != ' ')
putchar(c);
lastc = c;
}
}
|
the_stack_data/29457.c | #include <stdio.h>
#ifdef DEBUG
void out(unsigned int a){
int i=32;
while(--i) printf("%d",(a>>i)&0x00000001);
printf("%d\n",a&0x00000001);
}
#endif
int main(void){
unsigned int n,k,m;
while(scanf("%u%u%u",&n,&k,&m)==3 && !(n==0 && m==0 && k==0)){
unsigned int que=0x7fffffff,A=1,B=n;
while(que>>(31-n)){
#ifdef DEBUG
out(que);
#endif
unsigned int cnt=0;
while('v'){
if(que>>(31-A) & 0x00000001)
if(++cnt == k)
break;
++A;
if(A>n) A=1;
}
cnt=0;
while('v'){
if(que>>(31-B) & 0x00000001)
if(++cnt == m)
break;
--B;
if(B==0) B=n;
}
que &= ~(0x00000001 <<(31-A));
que &= ~(0x00000001 <<(31-B));
if(A!=B) printf("%3d",A);
printf("%3d,",B);
}
putchar('\n');
}
return 0;
}
|
the_stack_data/140764491.c | asm (
".section .text /*[SLICE_EXTRA] comes with 00000000*/\n"
".globl _section1 /*[SLICE_EXTRA] comes with 00000000*/\n"
"_section1: /*[SLICE_EXTRA] comes with 00000000*/\n"
"mov ecx, 291 /*[SLICE_EXTRA] comes with b7e8c19a*/\n"
"mov edx, 77 /*[SLICE] #00000000 [SLICE_INFO] comes with b7e8c19a*/\n"
"mov dx, ecx /*[SLICE] #00000000 [SLICE_INFO] comes with b7e8c19a*/\n"
"mov edi, edx /*[SLICE] #00000000 [SLICE_INFO] comes with b7e8c19a*/\n"
); |
the_stack_data/159516638.c | //*****************************************************************************
//
// startup_ccs.c - Startup code for use with TI's Code Composer Studio.
//
// Copyright (c) 2008-2013 Texas Instruments Incorporated. All rights reserved.
// Software License Agreement
//
// Texas Instruments (TI) is supplying this software for use solely and
// exclusively on TI's microcontroller products. The software is owned by
// TI and/or its suppliers, and is protected under applicable copyright
// laws. You may not combine this software with "viral" open-source
// software in order to form a larger program.
//
// THIS SOFTWARE IS PROVIDED "AS IS" AND WITH ALL FAULTS.
// NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT
// NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. TI SHALL NOT, UNDER ANY
// CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
// DAMAGES, FOR ANY REASON WHATSOEVER.
//
// This is part of revision 10636 of the RDK-IDM-L35 Firmware Package.
//
//*****************************************************************************
//*****************************************************************************
//
// Forward declaration of the default fault handlers.
//
//*****************************************************************************
void ResetISR(void);
static void NmiSR(void);
static void FaultISR(void);
static void IntDefaultHandler(void);
//*****************************************************************************
//
// External declaration for the reset handler that is to be called when the
// processor is started
//
//*****************************************************************************
extern void _c_int00(void);
//*****************************************************************************
//
// Linker variable that marks the top of the stack.
//
//*****************************************************************************
extern unsigned long __STACK_TOP;
//*****************************************************************************
//
// External declarations for the interrupt handlers used by the application.
//
//*****************************************************************************
extern void TouchScreenIntHandler(void);
extern void SysTickIntHandler(void);
extern void SoundIntHandler(void);
extern void UARTStdioIntHandler(void);
//*****************************************************************************
//
// The vector table. Note that the proper constructs must be placed on this to
// ensure that it ends up at physical address 0x0000.0000 or at the start of
// the program if located at a start address other than 0.
//
//*****************************************************************************
#pragma DATA_SECTION(g_pfnVectors, ".intvecs")
void (* const g_pfnVectors[])(void) =
{
(void (*)(void))((unsigned long)&__STACK_TOP),
// The initial stack pointer
ResetISR, // The reset handler
NmiSR, // The NMI handler
FaultISR, // The hard fault handler
IntDefaultHandler, // The MPU fault handler
IntDefaultHandler, // The bus fault handler
IntDefaultHandler, // The usage fault handler
0, // Reserved
0, // Reserved
0, // Reserved
0, // Reserved
IntDefaultHandler, // SVCall handler
IntDefaultHandler, // Debug monitor handler
0, // Reserved
IntDefaultHandler, // The PendSV handler
SysTickIntHandler, // The SysTick handler
IntDefaultHandler, // GPIO Port A
IntDefaultHandler, // GPIO Port B
IntDefaultHandler, // GPIO Port C
IntDefaultHandler, // GPIO Port D
IntDefaultHandler, // GPIO Port E
UARTStdioIntHandler, // UART0 Rx and Tx
IntDefaultHandler, // UART1 Rx and Tx
IntDefaultHandler, // SSI0 Rx and Tx
IntDefaultHandler, // I2C0 Master and Slave
IntDefaultHandler, // PWM Fault
IntDefaultHandler, // PWM Generator 0
IntDefaultHandler, // PWM Generator 1
IntDefaultHandler, // PWM Generator 2
IntDefaultHandler, // Quadrature Encoder 0
IntDefaultHandler, // ADC Sequence 0
IntDefaultHandler, // ADC Sequence 1
IntDefaultHandler, // ADC Sequence 2
TouchScreenIntHandler, // ADC Sequence 3
IntDefaultHandler, // Watchdog timer
IntDefaultHandler, // Timer 0 subtimer A
IntDefaultHandler, // Timer 0 subtimer B
IntDefaultHandler, // Timer 1 subtimer A
IntDefaultHandler, // Timer 1 subtimer B
IntDefaultHandler, // Timer 2 subtimer A
SoundIntHandler, // Timer 2 subtimer B
IntDefaultHandler, // Analog Comparator 0
IntDefaultHandler, // Analog Comparator 1
IntDefaultHandler, // Analog Comparator 2
IntDefaultHandler, // System Control (PLL, OSC, BO)
IntDefaultHandler, // FLASH Control
IntDefaultHandler, // GPIO Port F
IntDefaultHandler, // GPIO Port G
IntDefaultHandler, // GPIO Port H
IntDefaultHandler, // UART2 Rx and Tx
IntDefaultHandler, // SSI1 Rx and Tx
IntDefaultHandler, // Timer 3 subtimer A
IntDefaultHandler, // Timer 3 subtimer B
IntDefaultHandler, // I2C1 Master and Slave
IntDefaultHandler, // Quadrature Encoder 1
IntDefaultHandler, // CAN0
IntDefaultHandler, // CAN1
IntDefaultHandler, // CAN2
IntDefaultHandler, // Ethernet
IntDefaultHandler // Hibernate
};
//*****************************************************************************
//
// This is the code that gets called when the processor first starts execution
// following a reset event. Only the absolutely necessary set is performed,
// after which the application supplied entry() routine is called. Any fancy
// actions (such as making decisions based on the reset cause register, and
// resetting the bits in that register) are left solely in the hands of the
// application.
//
//*****************************************************************************
void
ResetISR(void)
{
//
// Jump to the CCS C initialization routine.
//
__asm(" .global _c_int00\n"
" b.w _c_int00");
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives a NMI. This
// simply enters an infinite loop, preserving the system state for examination
// by a debugger.
//
//*****************************************************************************
static void
NmiSR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives a fault
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//
//*****************************************************************************
static void
FaultISR(void)
{
//
// Enter an infinite loop.
//
while(1)
{
}
}
//*****************************************************************************
//
// This is the code that gets called when the processor receives an unexpected
// interrupt. This simply enters an infinite loop, preserving the system state
// for examination by a debugger.
//
//*****************************************************************************
static void
IntDefaultHandler(void)
{
//
// Go into an infinite loop.
//
while(1)
{
}
}
|
the_stack_data/37693.c | #include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef enum{
TK_RESERVED,
TK_NUM,
TK_EOF,
} TokenKind;
typedef struct Token Token;
struct Token{
TokenKind kind;
Token *next;
int val;
char *str;
};
char *user_input;
Token *token;
void error(char *fmt, ...){
va_list ap;
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
exit(1);
}
void error_at(char *loc, char *fmt, ...){
va_list ap;
va_start(ap, fmt);
int pos = loc - user_input;
fprintf(stderr,"%s\n", user_input);
fprintf(stderr,"%*s", pos, "");
fprintf(stderr,"^ ");
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
exit(1);
}
bool consume(char op){
if(token->kind != TK_RESERVED || token->str[0] != op) return false;
token = token->next;
return true;
}
void expect(char op){
if(token->kind != TK_RESERVED || token->str[0] != op) error_at(token->str, "expected '%c'", op);
token = token->next;
}
int expect_number(){
if(token->kind != TK_NUM) error_at(token->str, "expected a number");
int val = token->val;
token = token->next;
return val;
}
bool at_eof(){
return token->kind == TK_EOF;
}
Token *new_token(TokenKind kind, Token *cur, char *str){
Token *tok = calloc(1, sizeof(Token));
tok->kind = kind;
tok->str = str;
cur->next = tok;
return tok;
}
Token *tokenize(){
char *p = user_input;
Token head;
head.next = NULL;
Token *cur = &head;
while(*p){
if(isspace(*p)){
p++;
continue;
}
if(strchr("+-*/()", *p)){
cur = new_token(TK_RESERVED, cur, p++);
continue;
}
if(isdigit(*p)){
cur = new_token(TK_NUM, cur, p);
cur->val = strtol(p, &p, 10);
continue;
}
error_at(p, "invalid token");
}
new_token(TK_EOF, cur, p);
return head.next;
}
typedef enum{
ND_ADD,
ND_SUB,
ND_MUL,
ND_DIV,
ND_NUM,
}NodeKind;
typedef struct Node Node;
struct Node{
NodeKind kind;
Node *lhs;
Node *rhs;
int val;
};
Node *new_node(NodeKind kind){
Node *node = calloc(1, sizeof(Node));
node->kind = kind;
return node;
}
Node *new_binary(NodeKind kind, Node *lhs, Node *rhs){
Node *node = new_node(kind);
node->lhs = lhs;
node->rhs = rhs;
return node;
}
Node *new_num(int val){
Node *node = new_node(ND_NUM);
node->val = val;
return node;
}
Node *expr();
Node *mul();
Node *unary();
Node *primary();
Node *expr(){
Node *node = mul();
for(;;){
if(consume('+')) node = new_binary(ND_ADD, node, mul());
else if(consume('-')) node = new_binary(ND_SUB, node, mul());
else return node;
}
}
Node *mul(){
Node *node = unary();
for(;;){
if(consume('*')) node = new_binary(ND_MUL, node, unary());
else if(consume('/')) node = new_binary(ND_DIV, node, unary());
else return node;
}
}
Node *unary(){
if(consume('+')) return unary();
if(consume('-')) return new_binary(ND_SUB, new_num(0), unary());
return primary();
}
Node *primary(){
if(consume('(')){
Node *node = expr();
expect(')');
return node;
}
return new_num(expect_number());
}
FILE *fp;
void gen(Node *node){
if(node->kind == ND_NUM){
fprintf(fp, " push %d\n", node->val);
return;
}
gen(node->lhs);
gen(node->rhs);
fprintf(fp, " pop rdi\n");
fprintf(fp, " pop rax\n");
switch(node->kind){
case ND_ADD:
fprintf(fp, " add rax, rdi\n");
break;
case ND_SUB:
fprintf(fp, " sub rax, rdi\n");
break;
case ND_MUL:
fprintf(fp, " imul rax, rdi\n");
break;
case ND_DIV:
fprintf(fp, "cqo\n");
fprintf(fp, " idiv rdi\n");
break;
}
fprintf(fp, " push rax\n");
}
int main(int argc, char **argv){
if(argc != 3) error("%s: invalid number of arguments", argv[0]);
user_input = argv[1];
token = tokenize();
Node *node = expr();
fp = fopen(argv[2],"w");
fprintf(fp, ".intel_syntax noprefix\n");
fprintf(fp, ".global main\n");
fprintf(fp, "main:\n");
gen(node);
fprintf(fp, " pop rax\n");
fprintf(fp, " ret\n");
fclose(fp);
return 0;
}
|
the_stack_data/118464.c | /*Exercise 2 - Selection
Write a program to calculate the amount to be paid for a rented vehicle.
• Input the distance the van has travelled
• The first 30 km is at a rate of 50/= per km.
• The remaining distance is calculated at the rate of 40/= per km.
e.g.
Distance -> 20
Amount = 20 x 50 = 1000
Distance -> 50
Amount = 30 x 50 + (50-30) x 40 = 2300*/
#include <stdio.h>
int main() {
double m=50.00,n=40.00,amount=0,distance=0;//declaring variables
printf("Enter Distance(km) : ");//Input distance
scanf("%lf",&distance);//Read distance
if(distance<=0){//Check distance smaller than and equal to 0
printf("\nEnter Valid Number");//Display massege
return -1;
}
else if(distance<=30){//Check Distance smaller than and equal to 30km
amount=distance*m;//Callcule Amount
printf("Net Amount is : Rs %.2f",amount);//Display amount
}
else{//Check distance greater than 30km
amount=(30.00*m)+(distance-30)*n;//Calculate Amount
printf("Net Amount is : Rs %.2f",amount);//Display Amount
}
return 0;
}
|
the_stack_data/140765719.c | int entry () {
int i = 0;
int j = 10;
while (j>0) {
i++;
if (i%2 == 0) {
j-=i;
} else {
j--;
}
}
return j;
}
|
the_stack_data/97013656.c | /**
* Exercise 1-14
*
* Write a program to print a histogram of the frequencies of different characters in its input.
*/
#include <stdio.h>
#define NUM_CHARS 256
int main(void) {
int c, i, j;
int chars[NUM_CHARS];
for (i = 0; i < NUM_CHARS; i++) {
chars[i] = 0;
}
while ((c = getchar()) != EOF) {
chars[c]++;
}
for (i = 0; i < NUM_CHARS; i++) {
if (chars[i] == 0) {
continue;
}
putchar(i);
for (j = 0; j < chars[i]; j++) {
putchar('*');
}
putchar('\n');
}
return 0;
} |
the_stack_data/11075019.c | //
// Created by zhangrongxiang on 2018/1/31 16:02
// File using_mutexes
//
#include <pthread.h>
#include <stdio.h>
#include <malloc.h>
/*
The following structure contains the necessary information
to allow the function "dotprod" to access its input data and
place its output into the structure.
*/
typedef struct {
double *a;
double *b;
double sum;
int veclen;
} DOTDATA;
/* Define globally accessible variables and a mutex */
#define NUMTHRDS 4
#define VECLEN 100
DOTDATA dotstr;
pthread_t callThd[NUMTHRDS];
pthread_mutex_t mutexsum;
/*
The function dotprod is activated when the thread is created.
All input to this routine is obtained from a structure
of type DOTDATA and all output from this function is written into
this structure. The benefit of this approach is apparent for the
multi-threaded program: when a thread is created we pass a single
argument to the activated function - typically this argument
is a thread number. All the other information required by the
function is accessed from the globally accessible structure.
*/
void *dotprod(void *arg) {
/* Define and use local variables for convenience */
int i, start, end, offset, len;
double mysum, *x, *y;
offset = (int) arg;
len = dotstr.veclen;
start = offset * len;
end = start + len;
x = dotstr.a;
y = dotstr.b;
/*
Perform the dot product and assign result
to the appropriate variable in the structure.
*/
mysum = 0;
for (i = start; i < end; i++) {
mysum += (x[i] * y[i]);
}
/*
Lock a mutex prior to updating the value in the shared
structure, and unlock it upon updating.
*/
pthread_mutex_lock(&mutexsum);
dotstr.sum += mysum;
printf("dotstr.sum %lf\n",dotstr.sum);
pthread_mutex_unlock(&mutexsum);
pthread_exit((void *) 0);
}
/*
The main program creates threads which do all the work and then
print out result upon completion. Before creating the threads,
the input data is created. Since all threads update a shared structure,
we need a mutex for mutual exclusion. The main thread needs to wait for
all threads to complete, it waits for each one of the threads. We specify
a thread attribute value that allow the main thread to join with the
threads it creates. Note also that we free up handles when they are
no longer needed.
*/
int main(int argc, char *argv[]) {
int i;
double *a, *b;
void *status;
pthread_attr_t attr;
/* Assign storage and initialize values */
a = (double *) malloc(NUMTHRDS * VECLEN * sizeof(double));
b = (double *) malloc(NUMTHRDS * VECLEN * sizeof(double));
for (i = 0; i < VECLEN * NUMTHRDS; i++) {
a[i] = 1.0;
b[i] = a[i];
}
dotstr.veclen = VECLEN;
dotstr.a = a;
dotstr.b = b;
dotstr.sum = 0;
pthread_mutex_init(&mutexsum, NULL);
/* Create threads to perform the dotproduct */
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE);
for (i = 0; i < NUMTHRDS; i++) {
/*
Each thread works on a different set of data.
The offset is specified by 'i'. The size of
the data for each thread is indicated by VECLEN.
*/
pthread_create(&callThd[i], &attr, dotprod, (void *) i);
}
pthread_attr_destroy(&attr);
/* Wait on the other threads */
for (i = 0; i < NUMTHRDS; i++) {
pthread_join(callThd[i], &status);
}
/* After joining, print out the results and cleanup */
printf("Sum = %f \n", dotstr.sum);
free(a);
free(b);
pthread_mutex_destroy(&mutexsum);
pthread_exit(NULL);
} |
the_stack_data/104828695.c | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
/*
gcc -c -Wall -O2 -ansi -pedantic -fPIC polyregression.c; gcc -o polyregression.so -shared polyregression.o
wrapper for poly regression
converted from original python call
polynomial.polyfit(x2[ind]-globvar.wcen, y2[ind]/fmod[ind], deg-1, w=fmod[ind]/yerr2[ind], full=True)
*/
int cholsol(double *A, double *b, int n) {
/* solves Ax = b with cholesky decomposition
x is returned in b and L in A = LL^T
returns 1 if Matrix is not positive definite
*/
int i, j, k;
double sum;
/* double A[] = {25, 15, -5, 15 , 18 , 0, -5 , 0 , 11};
double b[]={25, 15 , -5};
double A[] = {4, 2, 14, 2 , 17 , -5, 14 , -5 , 83};
double b[]={14, -101 , 155};
n=3;*/
/* Find the Cholesky factorization of A* A = R* R */
for (i=0; i<n; ++i) {
for (j=0; j<i; ++j) {
sum = A[i+n*j];
for (k=0; k<j; ++k) sum -= A[i+n*k]*A[j+n*k];
A[i+n*j] = sum/A[j+n*j];
}
sum = A[i+n*i];
for (k=0; k<i; ++k) sum -= A[i+n*k]*A[i+n*k];
if (sum >= 0.0) A[i+n*i] = sqrt(sum);
else return 1;
/* printf("%f %f %f\n",A[i],A[i+1*n],A[i+2*n]); */
}
/* for (i=1; i<n; ++i) A[0:i-1,i] = 0.
if not keyword_set(b) then return, 1
*/
/* Solve the lower-triangular system R* y = A* b */
b[0] = b[0]/A[0]; /* forward substitution */
/* printf("y%f\n", b[0]); */
for (i=1; i<n; ++i) {
sum = 0.;
for (k=0; k<i; ++k) sum += A[i+n*k]*b[k]; /* b[i] = (b[i]-A[i,0:i-1]#b[0:i-1])/A[i,i] */
b[i] = (b[i]-sum)/A[i+n*i];
/* printf("y%f\n", b[i]);*/
}
/* Solve the upper-triangular system Rx = y for x.*/
b[n-1] = b[n-1]/A[n-1+n*(n-1)] ; /* backward substitution */
/* printf("e%f\n", b[n-1]); */
for (i=n-2; i>=0; --i) {
sum = 0.;
for (k=i+1; k<n; ++k) sum += A[n*i+k]*b[k]; /* A[i,i+1:n-1]#b[i+1:n-1] */
b[i] = (b[i]-sum)/A[n*i+i];
/*printf("e %f\n", b[i]); */
}
return 0;
}
/* double chisq(double *wave, double *flux, double *ferr, double *fmod, _Bool *ind, int n, double wcen, int deg, double *p) {*/
double chisq(double *wave, double *flux, double *ferr, double *fmod, double ind, int n, double wcen, int deg, double *p) {
double xi, yi, wi, res, poly, sum=0.0; /* solve A*p = b */
int i, k;
for (i=0; i<n; ++i) {
/* if (ind[i]) {*/
if (fmod[i]>ind) {
xi = wave[i] - wcen;
yi = flux[i] / fmod[i];
wi = fmod[i] / ferr[i];
poly = p[deg-1];
for (k=deg-2; k>=0; --k) poly = p[k] + xi*poly ;
res = wi * (yi-poly);
sum += res * res;
}
}
/*printf("%f\n",sum);*/
return sum;
}
/* void polyfit(double *wave, double *flux, double *ferr, double *fmod, _Bool *ind, int n, double wcen, int deg, double *p, double *lhs, double *covar, double chisq) {*/
double polyfit(double *wave, double *flux, double *ferr, double *fmod, double ind, int n, double wcen, int deg, double *p, double *lhs, double *covar) {
int i,k;
/* fit polynomial: flux = fmod * poly(wave)
minimize: total( ((flux - fmod*poly)/ferr )^2 )
reformulate: total( ((flux/fmod - poly)*fmod/ferr )^2 )
total( w*(y - x))^2 )
*/
double xi, yi, wi, *b=p , *A=covar, mom; /* solve A*p = b */
for (k=0; k<2*deg-1; ++k) A[k] = 0.;
for (k=0; k<deg; ++k) b[k] = 0.;
for (i=0; i<n; ++i) { /* create design matrix */
/* if (ind[i]) { */
if (fmod[i]>ind) {
xi = wave[i]-wcen;
yi = flux[i]/fmod[i];
wi = fmod[i]/ferr[i]; /* squared errors */
wi *= wi;
mom = wi * yi; /* fill up RHS */
b[0] += mom;
for (k=1; k<deg; ++k) b[k] += (mom *= xi); /* wi*yi*xi^k */
mom = wi;
A[0] += mom;
for (k=1; k<2*deg-1; ++k) A[k] += (mom *= xi); /* higher matrix momments wi*xi^k */
/* printf("%f %f %d\n",b[0],flux[i],i); */
}
}
for (k=0; k<deg; ++k)
for (i=0; i<deg; ++i) lhs[k+deg*i] = A[k+i];
i = cholsol(lhs, b, deg);
if (i) return -1.0; /* */
return chisq(wave, flux, ferr, fmod, ind, n, wcen, deg, p);
}
void interpol1D(double *xn, double *yn, double *x, double *y, int nn, int n) {
/* xn and x must be sorted */
double slope; /*, *y=malloc(n * sizeof(double)); */
int i, k=0;
for (i=0; i<n; ++i) {
if (x[i]<=xn[0])
y[i] = yn[0]; /* no extrapolation */
else if (x[i]>=xn[nn-1])
y[i] = yn[nn-1];
else {
while (k<nn-1 && xn[k+1]<x[i]) ++k;
/* 4. Calculate the slope of regions that each x_new value falls in. */
slope = (yn[k+1]-yn[k]) / (xn[k+1]-xn[k]);
/* 5. Calculate the actual value for each entry in x_new. */
y[i] = slope*(x[i]-xn[k]) + yn[k];
/*printf("%d %f %f %f %f %f\n",i,x[i], y[i],xn[k],yn[k],yn[k+1]);*/
}
}
}
/* http://rosettacode.org/wiki/Cholesky_decomposition#C */
|
the_stack_data/179829417.c | /**
* Copyright (c) 2015 Jacob Martin
*
* CipherSaber-2 file encryption/decryption, designed to be ran from the
* command line with a key, source file path, and destination file path.
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define ROUNDS 20
// See function implementations for clarifying comments.
int checkCommand(int argc, char ** argv);
void initState(unsigned char * state, unsigned char * key, int keyLength);
void cipher(unsigned char * state, unsigned char * data, int length);
void decrypt(unsigned char * state, char * key,
char * srcPath, char * destPath);
void encrypt(unsigned char * state, char * key,
char * srcPath, char * destPath);
unsigned char * fileToBytes(char * path, int * stringLength);
int stringToFile(char * string, char * path);
int bytesToFile(unsigned char * bytes, int length, char * path);
int main(int argc, char ** argv)
{
if ( ! checkCommand(argc, argv)) {
printf("Usage:\n");
printf(" cs2 encrypt <key> <source path> <dest path>\n");
printf(" cs2 decrypt <key> <source path> <dest path>\n");
return 0;
}
unsigned char * state;
char * key;
state = malloc(256);
key = malloc(256);
// Grab the key from the argument.
strcpy(key, argv[2]);
if (strcmp(argv[1], "decrypt") == 0) {
decrypt(state, key, argv[3], argv[4]);
}
else {
encrypt(state, key, argv[3], argv[4]);
}
free(state);
free(key);
return 0;
}
/**
* Check the formatting of the command call.
*/
int checkCommand(int argc, char ** argv)
{
if (argc != 5) {
return 0;
}
if (strcmp(argv[1], "encrypt") != 0 &&
strcmp(argv[1], "decrypt") != 0) {
return 0;
}
if (strlen(argv[2]) > 246) {
printf("That key is too long.\n");
return 0;
}
return 1;
}
/**
* Initialize the state array.
*/
void initState(unsigned char * state, unsigned char * key, int keyLength)
{
unsigned char c;
int i, j, n;
for (i = 0; i < 256; ++i) {
state[i] = i;
}
j = 0;
for (n = 0; n < ROUNDS; ++n) {
for (i = 0; i < 256; ++i) {
j += state[i] + key[i % keyLength];
j %= 256;
// Swap the ith and jth elements.
c = state[i];
state[i] = state[j];
state[j] = c;
}
}
}
/**
* Cipher some data.
*/
void cipher(unsigned char * state, unsigned char * data, int length)
{
int i, j, k, n;
unsigned char c;
i = j = 0;
for (n = 0; n < length; ++n) {
i = (i + 1) % 256;
j = (j + state[i]) % 256;
// Swap the ith and jth elements.
c = state[i];
state[i] = state[j];
state[j] = c;
k = (state[i] + state[j]) % 256;
data[n] ^= state[k];
}
}
/**
* Decrypt a file.
*/
void decrypt(unsigned char * state, char * key,
char * srcPath, char * destPath)
{
unsigned char * bytes;
int keyLength;
int dataLength;
bytes = fileToBytes(srcPath, &dataLength);
if ( ! bytes) return;
keyLength = strlen(key);
// Append the IV from the file to the key.
memcpy(key + keyLength, bytes, 10);
initState(state, (unsigned char *) key, keyLength + 10);
cipher(state, bytes + 10, dataLength - 10);
// Write the decrypted string to the destination file.
stringToFile((char *) bytes + 10, destPath);
free(bytes);
}
/**
* Encrypt a file.
*/
void encrypt(unsigned char * state, char * key,
char * srcPath, char * destPath)
{
unsigned char * bytes;
unsigned char * bytesPrepended;
unsigned char random[10];
int keyLength;
int dataLength;
FILE * randomFile;
bytes = fileToBytes(srcPath, &dataLength);
if ( ! bytes) return;
keyLength = strlen(key);
randomFile = fopen("/dev/urandom", "r");
if ( ! randomFile) {
printf("Could not access /dev/urandom.\n");
return;
}
fread(&random, 1, 10, randomFile);
fclose(randomFile);
// Append the IV from random to the key.
memcpy(key + keyLength, random, 10);
initState(state, (unsigned char *) key, keyLength + 10);
cipher(state, bytes, dataLength);
// Prepend random to the encrypted bytes.
bytesPrepended = malloc(dataLength + 10);
memcpy(bytesPrepended, random, 10);
memcpy(bytesPrepended + 10, bytes, dataLength);
// Write the prepended, encrypted bytes to the destination file.
bytesToFile(bytesPrepended, dataLength + 10, destPath);
free(bytes);
free(bytesPrepended);
}
/**
* Read the contents of a file into a cstring.
*/
unsigned char * fileToBytes(char * path, int * stringLength)
{
FILE * file;
unsigned char * data;
file = fopen(path, "r");
if ( ! file) {
printf("Could not open file: %s\n", path);
return 0;
}
fseek(file, 0L, SEEK_END);
*stringLength = ftell(file);
rewind(file);
data = malloc(*stringLength + 1);
if ( ! data) {
printf("Could not allocate enough memory.\n");
return 0;
}
// Null terminate the string.
data[*stringLength] = 0;
fread(data, *stringLength, 1, file);
fclose(file);
return data;
}
/**
* Write the contents of a cstring to a file.
*/
int stringToFile(char * string, char * path)
{
FILE * file;
file = fopen(path, "w");
if ( ! file) {
printf("Could not create/open file: %s\n", path);
return 0;
}
fputs(string, file);
fclose(file);
return 1;
}
/**
* Write the provided bytes to a file.
*/
int bytesToFile(unsigned char * bytes, int length, char * path)
{
FILE * file;
file = fopen(path, "wb");
if ( ! file) {
printf("Could not create/open file: %s\n", path);
return 0;
}
fwrite(bytes, 1, length, file);
fclose(file);
return 1;
}
|
the_stack_data/15762576.c | void test()
//@ requires true;
//@ ensures true;
{
//@ assert 5 / 3 == 1;
//@ assert 5 % 3 == 2;
//@ assert 5 / -3 == -1;
//@ assert 5 % -3 == 2;
//@ assert -5 / 3 == -1;
//@ assert -5 % 3 == -2;
//@ assert -5 / -3 == 1;
//@ assert -5 % -3 == -2;
//@ div_rem(-5, -3);
//@ assert false; //~ should_fail
}
|
the_stack_data/225143093.c | /* environment_variables.c
*/
void get_environment_variables(char *DATA_DIR,char *TEMP_DIR,char *CODE_DIR);
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void get_environment_variables(char *DATA_DIR,char *TEMP_DIR,char *CODE_DIR)
{
sprintf(DATA_DIR,"/data/kreiman");
sprintf(TEMP_DIR,"/data/kreiman/temp");
sprintf(CODE_DIR,"/cbcl/cbcl01/kreiman/life");
}
/* void get_environment_variables(char *DATA_DIR,char *TEMP_DIR,char *CODE_DIR)
{
char envname[200];
sprintf(envname,"DATADIR");
DATA_DIR=getenv(envname);
printf("DATA_DIR=%s\n",DATA_DIR);
sprintf(envname,"CODEDIR");
CODE_DIR=getenv(envname);
sprintf(envname,"TEMPDIR");
TEMP_DIR=getenv(envname);
}
*/
|
the_stack_data/504289.c | #include <string.h>
char *strtok_r(char *restrict s, const char *restrict sep, char **restrict p)
{
if (!s && !(s = *p)) return NULL;
s += strspn(s, sep);
if (!*s) return *p = 0;
*p = s + strcspn(s, sep);
if (**p) *(*p)++ = 0;
else *p = 0;
return s;
}
|
the_stack_data/37637887.c | /**
* ppjC je programski jezik podskup jezika C definiran u dokumentu
* https://github.com/fer-ppj/ppj-labosi/raw/master/upute/ppj-labos-upute.pdf
*
* ova skripta poziva ppjC kompajler (za sada samo analizator) pritiskom
* na tipku [Ctrl+S], [Shift+Enter] ili [Alt+3] i prikazuje rezultat analize.
*
* ne garantiram tocnost leksera, sintaksnog niti semantickog analizatora koji
* se ovdje pokrece.
*
* URL skripte prati verzije izvornog programa, tako da je moguca razmjena
* izvornih programa u timu putem URL-ova.
*/
int bar(int x);
int foo(int a, int b) {
if (a > 0) {
return a + bar(b);
} else {
return 0;
}
}
int bar(int a) {
return foo(a, a-1);
} |
the_stack_data/11074391.c | /**
* CVE-2014-4014 Linux Kernel Local Privilege Escalation PoC
*
* Vitaly Nikolenko
* http://hashcrack.org
*
* Usage: ./poc [file_path]
*
* where file_path is the file on which you want to set the sgid bit
*/
#define _GNU_SOURCE
#include <sys/wait.h>
#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <limits.h>
#include <string.h>
#include <assert.h>
#define STACK_SIZE (1024 * 1024)
static char child_stack[STACK_SIZE];
struct args {
int pipe_fd[2];
char *file_path;
};
static int child(void *arg) {
struct args *f_args = (struct args *)arg;
char c;
// close stdout
close(f_args->pipe_fd[1]);
assert(read(f_args->pipe_fd[0], &c, 1) == 0);
// set the setgid bit
chmod(f_args->file_path, S_ISGID|S_IRUSR|S_IWUSR|S_IRGRP|S_IXGRP|S_IXUSR);
return 0;
}
int main(int argc, char *argv[]) {
int fd;
pid_t pid;
char mapping[1024];
char map_file[PATH_MAX];
struct args f_args;
assert(argc == 2);
f_args.file_path = argv[1];
// create a pipe for synching the child and parent
assert(pipe(f_args.pipe_fd) != -1);
pid = clone(child, child_stack + STACK_SIZE, CLONE_NEWUSER | SIGCHLD, &f_args);
assert(pid != -1);
// get the current uid outside the namespace
snprintf(mapping, 1024, "0 %d 1\n", getuid());
// update uid and gid maps in the child
snprintf(map_file, PATH_MAX, "/proc/%ld/uid_map", (long) pid);
fd = open(map_file, O_RDWR); assert(fd != -1);
assert(write(fd, mapping, strlen(mapping)) == strlen(mapping));
close(f_args.pipe_fd[1]);
assert (waitpid(pid, NULL, 0) != -1);
}
|
the_stack_data/22856.c | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -ast-dump=json -ast-dump-filter Test %s | FileCheck %s
int TestLocation;
struct TestIndent {
int x;
};
struct TestChildren {
int x;
struct y {
int z;
};
};
void testLabelDecl() {
__label__ TestLabelDecl;
TestLabelDecl: goto TestLabelDecl;
}
typedef int TestTypedefDecl;
enum TestEnumDecl {
testEnumDecl
};
struct TestEnumDeclAnon {
enum {
testEnumDeclAnon
} e;
};
enum TestEnumDeclForward;
struct TestRecordDecl {
int i;
};
struct TestRecordDeclEmpty {
};
struct TestRecordDeclAnon1 {
struct {
} testRecordDeclAnon1;
};
struct TestRecordDeclAnon2 {
struct {
};
};
struct TestRecordDeclForward;
enum testEnumConstantDecl {
TestEnumConstantDecl,
TestEnumConstantDeclInit = 1
};
struct TestIndirectFieldDecl {
struct {
int Field;
};
};
// FIXME: It would be nice to dump the enum and its enumerators.
int TestFunctionDecl(int x, enum { e } y) {
return x;
}
// FIXME: It would be nice to dump 'Enum' and 'e'.
int TestFunctionDecl2(enum Enum { e } x) { return x; }
int TestFunctionDeclProto(int x);
void TestFunctionDeclNoProto();
extern int TestFunctionDeclSC();
inline int TestFunctionDeclInline();
struct testFieldDecl {
int TestFieldDecl;
int TestFieldDeclWidth : 1;
};
int TestVarDecl;
extern int TestVarDeclSC;
__thread int TestVarDeclThread;
int TestVarDeclInit = 0;
void testParmVarDecl(int TestParmVarDecl);
// CHECK: "kind": "VarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 3
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 3
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 3
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestLocation",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 5
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 5
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 7
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestIndent",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 6
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 6
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 6
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 9
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 9
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 14
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestChildren",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 10
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 10
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 10
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 11
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 11
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 13
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "parentDeclContext": "0x{{.*}}",
// CHECK-NEXT: "name": "y",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 12
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 12
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 12
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "z",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "LabelDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 13,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 17
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 17
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 13,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 17
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isUsed": true,
// CHECK-NEXT: "name": "TestLabelDecl"
// CHECK-NEXT: }
// CHECK: "kind": "TypedefDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 13,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 21
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 21
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 13,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 21
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestTypedefDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "BuiltinType",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "EnumDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 6,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 23
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 23
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 25
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestEnumDecl",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "EnumConstantDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 24
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 24
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 24
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "testEnumDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 27
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 27
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 31
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestEnumDeclAnon",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "EnumDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 28
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 28
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 30
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "EnumConstantDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 29
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 29
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 29
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "testEnumDeclAnon",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 30
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 28
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 30
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "e",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum TestEnumDeclAnon::(anonymous at {{.*}}:28:3)",
// CHECK-NEXT: "qualType": "enum (anonymous enum at {{.*}}:28:3)"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "EnumDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 6,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 33
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 33
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 6,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 33
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestEnumDeclForward"
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 35
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 35
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 37
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestRecordDecl",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 36
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 36
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 36
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "i",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 39
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 39
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 40
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestRecordDeclEmpty",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 42
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 42
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 45
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestRecordDeclAnon1",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 43
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 43
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 44
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 44
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 43
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 44
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "testRecordDeclAnon1",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "struct TestRecordDeclAnon1::(anonymous at {{.*}}:43:3)",
// CHECK-NEXT: "qualType": "struct (anonymous struct at {{.*}}:43:3)"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 47
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 47
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 50
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestRecordDeclAnon2",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 48
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 48
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 49
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 48
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 48
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 48
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isImplicit": true,
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "struct TestRecordDeclAnon2::(anonymous at {{.*}}:48:3)"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 52
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 52
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 52
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestRecordDeclForward",
// CHECK-NEXT: "tagUsed": "struct"
// CHECK-NEXT: }
// CHECK: "kind": "EnumConstantDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 55
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 55
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 55
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestEnumConstantDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK: "kind": "EnumConstantDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestEnumConstantDeclInit",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ConstantExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "IntegerLiteral",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 56
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "value": "1"
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 8,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 59
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 59
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 63
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestIndirectFieldDecl",
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "RecordDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 60
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 60
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 62
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "tagUsed": "struct",
// CHECK-NEXT: "completeDefinition": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "Field",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 60
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 60
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 60
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isImplicit": true,
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "struct TestIndirectFieldDecl::(anonymous at {{.*}}:60:3)"
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "IndirectFieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 9,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 61
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isImplicit": true,
// CHECK-NEXT: "name": "Field"
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 68
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int (int, enum (anonymous enum at {{.*}}:66:29))"
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 26,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 22,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 26,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isUsed": true,
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 40,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 29,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 40,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "y",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum (anonymous at {{.*}}:66:29)",
// CHECK-NEXT: "qualType": "enum (anonymous enum at {{.*}}:66:29)"
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "CompoundStmt",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 43,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 66
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 68
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ReturnStmt",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ImplicitCastExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "castKind": "LValueToRValue",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "DeclRefExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 10,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 67
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "lvalue",
// CHECK-NEXT: "referencedDecl": {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 54,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDecl2",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int (enum Enum)"
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 39,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 23,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 39,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "isUsed": true,
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum Enum",
// CHECK-NEXT: "qualType": "enum Enum"
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "CompoundStmt",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 42,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 54,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ReturnStmt",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 44,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ImplicitCastExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "castKind": "IntegralCast",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ImplicitCastExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum Enum",
// CHECK-NEXT: "qualType": "enum Enum"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "castKind": "LValueToRValue",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "DeclRefExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 51,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 71
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum Enum",
// CHECK-NEXT: "qualType": "enum Enum"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "lvalue",
// CHECK-NEXT: "referencedDecl": {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "desugaredQualType": "enum Enum",
// CHECK-NEXT: "qualType": "enum Enum"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 32,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDeclProto",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int (int)"
// CHECK-NEXT: },
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ParmVarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 31,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 27,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 31,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 72
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "x",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 6,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 73
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 73
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 30,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 73
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDeclNoProto",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "void ()"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 12,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 74
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 74
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 31,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 74
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDeclSC",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int ()"
// CHECK-NEXT: },
// CHECK-NEXT: "storageClass": "extern"
// CHECK-NEXT: }
// CHECK: "kind": "FunctionDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 12,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 75
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 75
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 35,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 75
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFunctionDeclInline",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int ()"
// CHECK-NEXT: },
// CHECK-NEXT: "inline": true
// CHECK-NEXT: }
// CHECK: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 78
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 78
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 78
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFieldDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK: "kind": "FieldDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 7,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 3,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 28,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestFieldDeclWidth",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "isBitfield": true,
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "ConstantExpr",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 28,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 28,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "IntegerLiteral",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 28,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 28,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 79
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "value": "1"
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "VarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 82
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 82
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 82
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestVarDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
// CHECK: "kind": "VarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 12,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 83
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 83
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 12,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 83
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestVarDeclSC",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "storageClass": "extern"
// CHECK-NEXT: }
// CHECK: "kind": "VarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 14,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 84
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 84
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 14,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 84
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestVarDeclThread",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "tls": "static"
// CHECK-NEXT: }
// CHECK: "kind": "VarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 5,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 85
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 1,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 85
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 23,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 85
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestVarDeclInit",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "init": "c",
// CHECK-NEXT: "inner": [
// CHECK-NEXT: {
// CHECK-NEXT: "id": "0x{{.*}}",
// CHECK-NEXT: "kind": "IntegerLiteral",
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 23,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 85
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 23,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 85
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: },
// CHECK-NEXT: "valueCategory": "rvalue",
// CHECK-NEXT: "value": "0"
// CHECK-NEXT: }
// CHECK-NEXT: ]
// CHECK-NEXT: }
// CHECK: "kind": "ParmVarDecl",
// CHECK-NEXT: "loc": {
// CHECK-NEXT: "col": 26,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 87
// CHECK-NEXT: },
// CHECK-NEXT: "range": {
// CHECK-NEXT: "begin": {
// CHECK-NEXT: "col": 22,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 87
// CHECK-NEXT: },
// CHECK-NEXT: "end": {
// CHECK-NEXT: "col": 26,
// CHECK-NEXT: "file": "{{.*}}",
// CHECK-NEXT: "line": 87
// CHECK-NEXT: }
// CHECK-NEXT: },
// CHECK-NEXT: "name": "TestParmVarDecl",
// CHECK-NEXT: "type": {
// CHECK-NEXT: "qualType": "int"
// CHECK-NEXT: }
// CHECK-NEXT: }
|
the_stack_data/1035401.c | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <sys/time.h>
#include <omp.h>
int collapse_cluster(FILE *input_fptr, FILE *output_fptr, int rank, int subcircuit_idx, int num_instance, int cluster_circ_size, int **correspondece_map, int num_effective_qubits, int num_collapsed);
float* measure_instance(int subcircuit_circ_size, char** meas, float *unmeasured_prob, int **correspondece_map, int num_effective);
void measure(char *eval_folder, int subcircuit_idx, int num_eval_files, int *eval_files, int rank);
int** effective_full_state_correspondence(int cluster_circ_size, char **meas);
int* decToBinary(int num, int num_digits);
int binaryToDec(int *bin_num, int num_digits);
void print_int_arr(int *arr, int num_elements);
void print_float_arr(float *arr, int num_elements);
int search_element(int *arr, int arr_size, int element);
int combine_effective_O_state(int *bin_effective_state, int num_effective_qubits, int *bin_O_state, int num_O_qubits, int *O_qubit_positions);
float print_log(double log_time, double elapsed_time, int num_finished_jobs, int num_total_jobs, double log_frequency, int rank,int subcircuit_idx);
double get_sec();
int main(int argc, char** argv) {
int rank = atoi(argv[1]);
char *eval_folder = argv[2];
int full_circ_size = atoi(argv[3]);
int subcircuit_idx = atoi(argv[4]);
int num_eval_files = atoi(argv[5]);
int *eval_files = calloc(num_eval_files,sizeof(int));
int i;
for (i=0; i<num_eval_files; i++) {
eval_files[i] = atoi(argv[6+i]);
}
measure(eval_folder,subcircuit_idx,num_eval_files,eval_files,rank);
free(eval_files);
// printf("%s subcircuit %d (%d instances) measure rank %d DONE\n",eval_folder,subcircuit_idx,num_eval_files,rank);
return 0;
}
void measure(char *eval_folder, int subcircuit_idx, int num_eval_files, int *eval_files, int rank) {
char *eval_file = malloc(256*sizeof(char));
sprintf(eval_file, "%s/raw_%d_%d.txt", eval_folder, subcircuit_idx, eval_files[0]);
FILE* eval_fptr = fopen(eval_file, "r");
int subcircuit_circ_size, num_effective;
fscanf(eval_fptr, "d=%d effective=%d\n", &subcircuit_circ_size,&num_effective);
char *init[subcircuit_circ_size], *meas[subcircuit_circ_size];
int qubit_ctr;
for (qubit_ctr=0;qubit_ctr<subcircuit_circ_size;qubit_ctr++) {
init[qubit_ctr] = malloc(16*sizeof(char));
fscanf(eval_fptr, "%s ", init[qubit_ctr]);
}
for (qubit_ctr=0;qubit_ctr<subcircuit_circ_size;qubit_ctr++) {
meas[qubit_ctr] = malloc(16*sizeof(char));
fscanf(eval_fptr, "%s ", meas[qubit_ctr]);
}
free(eval_file);
fclose(eval_fptr);
int **correspondece_map = effective_full_state_correspondence(subcircuit_circ_size, meas);
int eval_file_ctr;
double total_measure_time = 0;
double log_time = 0;
for (eval_file_ctr=0;eval_file_ctr<num_eval_files;eval_file_ctr++) {
double measure_begin = get_sec();
char *eval_file = malloc(256*sizeof(char));
sprintf(eval_file, "%s/raw_%d_%d.txt", eval_folder, subcircuit_idx, eval_files[eval_file_ctr]);
// printf("Measuring %s\n",eval_file);
FILE* eval_fptr = fopen(eval_file, "r");
char line[256];
int subcircuit_circ_size, num_effective;
fscanf(eval_fptr, "d=%d effective=%d\n", &subcircuit_circ_size,&num_effective);
char *init[subcircuit_circ_size], *meas[subcircuit_circ_size];
int qubit_ctr;
for (qubit_ctr=0;qubit_ctr<subcircuit_circ_size;qubit_ctr++) {
init[qubit_ctr] = malloc(16*sizeof(char));
fscanf(eval_fptr, "%s ", init[qubit_ctr]);
// printf("%s ",init[qubit_ctr]);
}
for (qubit_ctr=0;qubit_ctr<subcircuit_circ_size;qubit_ctr++) {
meas[qubit_ctr] = malloc(16*sizeof(char));
fscanf(eval_fptr, "%s ", meas[qubit_ctr]);
// printf("%s ",meas[qubit_ctr]);
}
long long int state_ctr;
long long int unmeasured_len = (long long int) pow(2,subcircuit_circ_size);
float *unmeasured_prob = malloc(unmeasured_len*sizeof(float));
for (state_ctr=0;state_ctr<unmeasured_len;state_ctr++){
fscanf(eval_fptr, "%f ", &unmeasured_prob[state_ctr]);
}
// printf("\n");
float* measured_prob = measure_instance(subcircuit_circ_size,meas,unmeasured_prob,correspondece_map,num_effective);
remove(eval_file);
free(eval_file);
fclose(eval_fptr);
long long int num_effective_states = (long long int) pow(2,num_effective);
char *meas_file = malloc(256*sizeof(char));
sprintf(meas_file, "%s/measured_%d_%d.txt", eval_folder, subcircuit_idx, eval_files[eval_file_ctr]);
FILE *meas_fptr = fopen(meas_file, "w");
// fprintf(meas_fptr,"effective=%d\n",num_effective);
for (state_ctr=0;state_ctr<num_effective_states;state_ctr++) {
fprintf(meas_fptr,"%e ",measured_prob[state_ctr]);
}
free(meas_file);
fclose(meas_fptr);
log_time += get_sec() - measure_begin;
total_measure_time += get_sec() - measure_begin;
// NOTE: log_frequency is hard coded here
log_time = print_log(log_time,total_measure_time,eval_file_ctr+1,num_eval_files,300,rank,subcircuit_idx);
}
char *summary_file = malloc(256*sizeof(char));
sprintf(summary_file, "%s/rank_%d_summary.txt", eval_folder, rank);
FILE *summary_fptr = fopen(summary_file, "w");
fprintf(summary_fptr,"Total measure time = %e\n",total_measure_time);
fprintf(summary_fptr,"measure DONE\n");
free(summary_file);
fclose(summary_fptr);
return;
}
float* measure_instance(int subcircuit_circ_size, char** meas, float *unmeasured_prob, int **correspondece_map, int num_effective) {
int num_O_qubits = subcircuit_circ_size - num_effective;
// printf("\n");
if (num_effective==subcircuit_circ_size) {
return unmeasured_prob;
}
else{
long long int measured_len = (long long int) pow(2,num_effective);
float *measured_prob = calloc(measured_len,sizeof(float));
long long int measured_state_ctr;
//#pragma omp parallel for
for (measured_state_ctr=0;measured_state_ctr<measured_len;measured_state_ctr++) {
// printf("Effective_state : %d\n",effective_state_ctr);
int O_state_ctr;
int num_O_states = (int) pow(2,num_O_qubits);
for (O_state_ctr=0;O_state_ctr<num_O_states;O_state_ctr++){
int full_state = correspondece_map[measured_state_ctr][O_state_ctr];
int *bin_full_state = decToBinary(full_state, subcircuit_circ_size); // Decompose the function to in-place
int sigma = 1;
int qubit_ctr;
for (qubit_ctr=0;qubit_ctr<subcircuit_circ_size;qubit_ctr++) {
if (bin_full_state[qubit_ctr]==1 && strcmp(meas[subcircuit_circ_size-1-qubit_ctr],"I")!=0 && strcmp(meas[subcircuit_circ_size-1-qubit_ctr],"comp")!=0) {
sigma *= -1;
}
}
// print_int_arr(bin_full_state, subcircuit_circ_size);
// printf("(%d) ",full_state);
measured_prob[measured_state_ctr] += sigma*unmeasured_prob[full_state];
// printf("corresponding full_state : %d, sigma = %d, val = %.5e, measured_prob = %.5e\n",full_state, sigma, sigma*unmeasured_prob[full_state],measured_prob[measured_state_ctr]);
}
if (measured_prob[measured_state_ctr]>10) {
printf("Something Wrong\n");
exit(0);
}
// printf("\n");
}
return measured_prob;
}
}
int** effective_full_state_correspondence(int cluster_circ_size, char **meas) {
int num_effective_qubits = 0;
int num_O_qubits = 0;
int qubit_ctr;
int O_qubit_positions[cluster_circ_size];
for (qubit_ctr=0;qubit_ctr<cluster_circ_size;qubit_ctr++) {
if (strcmp(meas[qubit_ctr],"comp")==0) {
num_effective_qubits++;
}
else {
O_qubit_positions[num_O_qubits] = qubit_ctr;
num_O_qubits++;
}
}
int num_O_states = (int) pow(2,num_O_qubits);
int num_effective_states = (int) pow(2,num_effective_qubits);
int effective_state;
int **correspondece_map = (int **)malloc(sizeof(int *)*num_effective_states);
for (effective_state=0;effective_state<num_effective_states;effective_state++) {
int *bin_effective_state = decToBinary(effective_state, num_effective_qubits);
// printf("Effective state = %d\n",effective_state);
int O_state;
correspondece_map[effective_state]=(int *)malloc(sizeof(int)*num_O_states);
for (O_state=0;O_state<num_O_states;O_state++) {
int *bin_O_state = decToBinary(O_state, num_O_qubits);
int full_state = combine_effective_O_state(bin_effective_state, num_effective_qubits, bin_O_state, num_O_qubits, O_qubit_positions);
// printf("%d ",full_state);
correspondece_map[effective_state][O_state] = full_state;
}
// printf("\n");
}
return correspondece_map;
}
int* decToBinary(int num, int num_digits) {
int *bin = malloc(num_digits*sizeof(int));
int i;
for (i = num_digits - 1; i >= 0; i--) {
int k = num >> i;
if (k & 1) {
bin[num_digits - 1 - i] = 1;
}
else {
bin[num_digits - 1 - i] = 0;
}
}
return bin;
}
int binaryToDec(int *bin_num, int num_digits) {
int i;
int dec = 0;
for (i=0;i<num_digits;i++) {
if (bin_num[i]==1) {
// printf("Add %d\n",1<<(num_digits-1-i));
dec += 1<<(num_digits-1-i);
}
}
return dec;
}
void print_int_arr(int *arr, int num_elements) {
int ctr;
if (num_elements<=10) {
for (ctr=0;ctr<num_elements;ctr++) {
printf("%d ",arr[ctr]);
}
}
else {
for (ctr=0;ctr<5;ctr++) {
printf("%d ",arr[ctr]);
}
printf(" ... ");
for (ctr=num_elements-5;ctr<num_elements;ctr++) {
printf("%d ",arr[ctr]);
}
}
printf(" = %d elements\n",num_elements);
}
void print_float_arr(float *arr, int num_elements) {
int ctr;
if (num_elements<=10) {
for (ctr=0;ctr<num_elements;ctr++) {
printf("%e ",arr[ctr]);
}
}
else {
for (ctr=0;ctr<5;ctr++) {
printf("%e ",arr[ctr]);
}
printf(" ... ");
for (ctr=num_elements-5;ctr<num_elements;ctr++) {
printf("%e ",arr[ctr]);
}
}
printf(" = %d elements\n",num_elements);
}
int search_element(int *arr, int arr_size, int element) {
int i;
for(i=0;i<arr_size;i++) {
if (arr[i]==element) {
return i;
}
}
return -1;
}
int combine_effective_O_state(int *bin_effective_state, int num_effective_qubits, int *bin_O_state, int num_O_qubits, int *O_qubit_positions) {
// printf("effective_state : ");
// print_int_arr(bin_effective_state,num_effective_qubits);
// printf(", inserting O_state ");
// print_int_arr(bin_O_state,num_O_qubits);
// printf(" at O positions ");
// print_int_arr(O_qubit_positions,num_O_qubits);
// printf("\n");
int bin_full_state[num_effective_qubits+num_O_qubits];
int full_state_ctr;
int effective_state_ctr = 0;
int O_state_ctr = 0;
for (full_state_ctr=0;full_state_ctr<num_effective_qubits+num_O_qubits;full_state_ctr++) {
int O_qubit_position = search_element(O_qubit_positions, num_O_qubits, full_state_ctr);
if (O_qubit_position==-1) {
bin_full_state[num_effective_qubits+num_O_qubits-1-full_state_ctr] = bin_effective_state[num_effective_qubits - 1 - effective_state_ctr];
effective_state_ctr++;
}
else {
bin_full_state[num_effective_qubits+num_O_qubits-1-full_state_ctr] = bin_O_state[O_qubit_position];
}
}
int full_state = binaryToDec(bin_full_state,num_effective_qubits+num_O_qubits);
// printf("Full state:");
// print_int_arr(bin_full_state,num_effective_qubits+num_O_qubits);
// printf(" --> %d\n",full_state);
return full_state;
}
float print_log(double log_time, double elapsed_time, int num_finished_jobs, int num_total_jobs, double log_frequency, int rank,int subcircuit_idx) {
if (log_time>log_frequency) {
double eta = elapsed_time/num_finished_jobs*num_total_jobs - elapsed_time;
printf("Meas_rank %d measured subcircuit %d %d/%d, elapsed = %e, ETA = %e\n",rank,subcircuit_idx,num_finished_jobs,num_total_jobs,elapsed_time,eta);
return 0;
}
else {
return log_time;
}
}
double get_sec() {
struct timeval time;
gettimeofday(&time, NULL);
return (time.tv_sec + 1e-6 * time.tv_usec);
}
|
the_stack_data/113865.c | #include<stdio.h>
int main(){
int i,j,k;
for(i=1;i<=39;i++) printf("-");
printf("\n");
for(k=1;k<=5;k++){
printf("|");
for(j=2;j<=38;j++){
printf(" ");
}
printf("|\n");
}
//printf("\n");
for(i=1;i<39;i++) printf("-");
printf("-\n");
//gets(a);
return 0;
}
|
the_stack_data/55358.c | #include <stdlib.h>
#include <time.h>
#include <stdio.h>
/**
* main - Determines either greater than 5, is less than 6, or is 0
*
* Return: Always 0 (Success)
*/
int main(void)
{
int n, l;
srand(time(0));
n = rand() - RAND_MAX / 2;
l = n % 10;
if (l > 5)
{
printf("Last digit of %d is %d and is greater than 5\n", n, l);
}
else if (l == 0)
{
printf("Last digit of %d is %d and is 0\n", n, l);
}
else
{
printf("Last digit of %d is %d and is less than 6 and not 0\n", n, l);
}
return (0);
}
|
the_stack_data/1065849.c | #include <stdint.h>
#include <stdlib.h>
int count(const uint8_t *Data, size_t Size ) {
int cnt = 0;
if (Size)
while (Data[cnt] >= '0' && Data[cnt] <= '9') ++cnt;
return cnt;
}
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
count(Data, Size);
return 0;
}
|
the_stack_data/176705726.c | #include <stdio.h>
int main()
{
double pi = 0;
for (long int i = 0; i < 1e6; i++) pi += (double)2 / ((4 * i + 1) * (4 * i + 3));
printf("%lf\n", 4 * pi);
return 0; // if possible
} |
the_stack_data/218892582.c | /*
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Chris Torek.
*
* 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.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)ldiv.c 8.1 (Berkeley) 6/4/93
* $FreeBSD: src/lib/libc/stdlib/ldiv.c,v 1.3 2007/01/09 00:28:10 imp Exp $
* $DragonFly: src/lib/libc/stdlib/ldiv.c,v 1.4 2005/11/23 08:55:59 swildner Exp $
*/
#include <stdlib.h> /* ldiv_t */
ldiv_t
ldiv(long num, long denom)
{
ldiv_t r;
/* see div.c for comments */
r.quot = num / denom;
r.rem = num % denom;
if (num >= 0 && r.rem < 0) {
r.quot++;
r.rem -= denom;
}
return (r);
}
|
the_stack_data/73796.c | /*
** EPITECH PROJECT, 2017
** libmy.a
** File description:
** Capitalize the string
*/
static void uppercase_if_letter(char *str, int pos);
static void lowercase_if_letter(char *str, int pos);
static int is_letter_or_digit(char *str, int pos);
char *my_strcapitalize(char *str)
{
for (int i = 0; str[i] != '\0'; i++) {
if (is_letter_or_digit(str, i - 1))
lowercase_if_letter(str, i);
else
uppercase_if_letter(str, i);
}
return (str);
}
int is_letter_or_digit(char *str, int pos)
{
if (pos == -1)
return (0);
if ((str[pos] >= '0' && str[pos] <= '9') \
|| (str[pos] >= 'A' && str[pos] <= 'Z') \
|| (str[pos] >= 'a' && str[pos] <= 'z'))
return (1);
return (0);
}
void lowercase_if_letter(char *str, int pos)
{
if (str[pos] >= 'A' && str[pos] <= 'Z')
str[pos] += 32;
}
void uppercase_if_letter(char *str, int pos)
{
if (str[pos] >= 'a' && str[pos] <= 'z')
str[pos] -= 32;
}
|
the_stack_data/12637468.c | #include <pthread.h>
#include <assert.h>
int g;
void *t_fun(void *arg) {
return NULL;
}
void main() {
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
g = 1;
assert(g); // TODO (Mine's analysis would succeed, our mine-W doesn't)
}
|
the_stack_data/92158.c | /*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : [email protected]
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include<stdio.h>
int main()
{
char s[20];
gets(s);
int c=0;
int i=0;
while(s[i]!='\0')
{
if(s[i]=='7' || s[i]=='4')
{
c++;
}
i++;
}
if(c==7 || c==4 || c==44 || c==47|| c==74 || c==77 || c==444 || c==447 || c==474 || c==477 || c==744 || c==747 || c==774|| c==777)
{
printf("YES\n");
}
else{ printf("NO\n");}
return 0;
}
|
the_stack_data/18888944.c | // cc -std=c99 -D_BSD_SOURCE -Os closure-demo.c -lm
#if (!defined(__unix__) && !defined(__APPLE__)) || !defined(__x86_64__)
# error Requires x86_64 and System V ABI
#endif
/* Closure functions. */
#include <string.h>
#include <unistd.h>
#include <sys/mman.h>
static void
closure_set_data(void *closure, void *data)
{
void **p = closure;
p[-2] = data;
}
static void
closure_set_function(void *closure, void *f)
{
void **p = closure;
p[-1] = f;
}
static unsigned char thunk[6][13] = {
{
0x48, 0x8b, 0x3d, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
}, {
0x48, 0x8b, 0x35, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
}, {
0x48, 0x8b, 0x15, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
}, {
0x48, 0x8b, 0x0d, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
}, {
0x4C, 0x8b, 0x05, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
}, {
0x4C, 0x8b, 0x0d, 0xe9, 0xff, 0xff, 0xff,
0xff, 0x25, 0xeb, 0xff, 0xff, 0xff
},
};
static void *
closure_create(void *f, int nargs, void *userdata)
{
long page_size = sysconf(_SC_PAGESIZE);
int prot = PROT_READ | PROT_WRITE;
int flags = MAP_ANONYMOUS | MAP_PRIVATE;
char *p = mmap(0, page_size * 2, prot, flags, -1, 0);
if (p == MAP_FAILED)
return 0;
void *closure = p + page_size;
memcpy(closure, thunk[nargs - 1], sizeof(thunk[0]));
mprotect(closure, page_size, PROT_READ | PROT_EXEC);
closure_set_function(closure, f);
closure_set_data(closure, userdata);
return closure;
}
static void
closure_destroy(void *closure)
{
long page_size = sysconf(_SC_PAGESIZE);
munmap((char *)closure - page_size, page_size * 2);
}
/* Coordinates */
#include <math.h>
struct coord {
float x;
float y;
};
static inline float
distance(const struct coord *a, const struct coord *b)
{
float dx = a->x - b->x;
float dy = a->y - b->y;
return sqrtf(dx * dx + dy * dy);
}
int
coord_cmp_r(const void *a, const void *b, void *target)
{
float dist_a = distance(a, target);
float dist_b = distance(b, target);
if (dist_a < dist_b)
return -1;
else if (dist_a > dist_b)
return 1;
else
return 0;
}
/* Demo */
#include <stdio.h>
#include <stdlib.h>
#define N 64
int
main(void)
{
/* Create random coordinates. */
size_t ncoords = N;
struct coord coords[N];
struct coord target = {
1000.0f * rand() / (float)RAND_MAX,
1000.0f * rand() / (float)RAND_MAX
};
for (int i = 0; i < N; i++) {
coords[i].x = 1000.0f * rand() / (float)RAND_MAX;
coords[i].y = 1000.0f * rand() / (float)RAND_MAX;
}
/* Sort using a closure. */
int (*closure)(const void *, const void *);
closure = closure_create(coord_cmp_r, 3, &target);
qsort(coords, ncoords, sizeof(coords[0]), closure);
closure_destroy(closure);
/* Print results. */
printf("target =% 7.5g,% 7.5g\n", target.x, target.y);
for (int i = 0; i < N; i++)
printf("% 7.5g,% 7.5g -> %.9g\n",
coords[i].x, coords[i].y,
distance(coords + i, &target));
}
|
the_stack_data/150144163.c | /* */
#include <stdio.h>
#include <inttypes.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <sys/poll.h>
#include <sys/resource.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <sys/un.h>
#include <sys/xattr.h>
#include <alloca.h>
#include <arpa/inet.h>
#include <arpa/tftp.h>
#include <assert.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <ifaddrs.h>
#include <libgen.h>
#include <locale.h>
#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <poll.h>
#include <pwd.h>
int main(void)
{
return 0;
}
|
the_stack_data/212644164.c |
#include <stdio.h>
int main()
{
printf("Hello world!\n");
return 0;
}
|
the_stack_data/1149229.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
static inline int max(int a, int b)
{
return a > b ? a : b;
}
static int maxProfit(int k, int* prices, int pricesSize)
{
if (pricesSize == 0) {
return 0;
}
int i, j;
if (k > pricesSize / 2) {
/* We can make transactions as many as we can */
int total = 0;
for (i = 1; i < pricesSize; i++) {
if (prices[i] > prices[i - 1]) {
total += prices[i] - prices[i - 1];
}
}
return total;
} else {
#if 1
/* DP solution - O(kn) complexity
* dp[i, j] = max (dp[i, j-1], // same times transactions, but one days before.
* dp[i-1, t] + prices[j] - prices[t+1]) // for all of (0 <= t < j )
* // this means find max profit from previous any of days
*/
int **dp = malloc((k + 1) * sizeof(int *));
for (i = 0; i <= k; i++) {
dp[i] = malloc((pricesSize + 1) * sizeof(int));
memset(dp[i], 0, (pricesSize + 1) * sizeof(int));
}
for (i = 1; i <= k; i++) {
//printf("i:%d\n", i);
//printf("\tprev_profit = %d - %d\n", dp[i - 1][0], prices[0]);
int prev_profit = dp[i - 1][0] - prices[0];
for (j = 1; j <= pricesSize; j++) {
//printf("\tj:%d\n", j);
dp[i][j] = max(dp[i][j - 1], prev_profit + prices[j - 1]); /* prices[j - 1] means sell on Day j for dp[i][j] */
//printf("\tdp[%d][%d] = max(%d, %d + %d)\n", i, j, dp[i][j - 1], prev_profit, prices[j - 1]);
if (j < pricesSize) {
//printf("\tprev_profit = max(%d, %d - %d)\n", prev_profit, dp[i - 1][j], prices[j]);
prev_profit = max(prev_profit, dp[i - 1][j] - prices[j]);
}
}
}
#if 0
printf(" ");
for (i = 0; i < pricesSize; i++) {
printf("%d ", prices[i]);
}
printf("\n");
for (i = 0; i <= k; i++) {
for (j = 0; j <= pricesSize; j++) {
printf("%d ", dp[i][j]);
}
printf("\n");
}
#endif
return dp[k][pricesSize];
#else
/* local[i][j] j transactions at most and the last max profix until Day i */
int *local = malloc((k + 1) * sizeof(int));
/* global[i][j] j transactions at most until Day i */
int *global = malloc((k + 1) * sizeof(int));
memset(local, 0, (k + 1) * sizeof(int));
memset(global, 0, (k + 1) * sizeof(int));
for (i = 0; i < pricesSize - 1; i++) {
int diff = prices[i + 1] - prices[i];
for (j = k; j >= 1; j--) {
int tmp1 = global[j - 1] + (diff > 0 ? diff : 0);
int tmp2 = local[j] + diff;
local[j] = tmp1 > tmp2 ? tmp1 : tmp2;
global[j] = global[j] > local[j] ? global[j] : local[j];
}
}
return global[k];
#endif
}
}
int main(int argc, char **argv)
{
if (argc < 2) {
fprintf(stderr, "Usage: ./test k n1 n2...\n");
exit(-1);
}
int i, count = argc - 2;
int *nums = malloc(count * sizeof(int));
for (i = 0; i < count; i++) {
nums[i] = atoi(argv[i + 2]);
}
printf("%d\n", maxProfit(atoi(argv[1]), nums, count));
return 0;
}
|
the_stack_data/103265552.c | /*
FizzBuzz using recursion in C. Takes 'n' input as command line parameter while running.
Author: @evamy
*/
#include<stdio.h>
#include<stdlib.h>
void fizzbuzz(int current, int n) {
if (current%3 == 0 && current%5 == 0) {
printf("FizzBuzz\n");
} else if (current%3 == 0) {
printf("Fizz\n");
} else if (current%5 == 0) {
printf("Buzz\n");
} else {
printf("%d\n", current);
}
if (current < n) {
return fizzbuzz(current+1, n);
}
}
int main(int argc, char *argv[]) {
if( argc > 2 ) {
printf("Too many arguments supplied.\n");
return -1;
} else if (argc == 0) {
printf("An argument expected.\n");
return -1;
}
fizzbuzz(1, atoi(argv[1]));
return 0;
}
|
the_stack_data/111536.c | /* 10001st prime
* Problem 7
* By listing the first six prime numbers: 2, 3, 5, 7, 11, and 13, we can
* see that the 6th prime is 13. What is the 10 001st prime number? */
#include <stdio.h>
#include <math.h>
int isPrime007(int n) {
int i = 0;
if (n < 4) {
return 1;
}
if (! (n % 2)) {
return 0;
}
for (i = 3; i <= pow(n, 0.5); i+=2) {
if (! (n % i)) {
return 0;
}
}
return 1;
}
int problem007() {
int i = 0;
int count = 0;
while (count <= 10001) {
i++;
if (isPrime007(i)) {
count++;
}
}
printf("%d\n", i);
return 0;
}
|
the_stack_data/136270.c | #include <stdio.h>
#include <assert.h>
#include <stdlib.h> //required for afloat to work
#include <time.h>
int mainQ(int n, int m){
assert (0 <= n);
assert (0 <= m);
int i = 0;
int j = 0;
int k = 0;
int t = 0;
while(i++ < n){
//note remove if(nondet)
t++;
if (i % 2){//odd
while(j++ < m){t++;}
}
else{
while(k++ < m){t++;}
}
}
//%%%traces: int n, int m, int i, int t
//dig2: i - n - 1 == 0, -m - t <= 0, 2*m*n - n*t == 0, 2*m*t - (t*t) == 0, -i <= -1
//NOTE: *** these equalities don't seem to capture the correct bound n+2m ? ***
//Timos: This is because we haven't added a t++ for the outer loop. I suspect once we do that we will get what we want.
return 0;
}
int main(int argc, char **argv){
srand(time(NULL));
mainQ(atoi(argv[1]), atoi(argv[2]));
return 0;
}
|
the_stack_data/19087.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <pthread.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#define PORT_ADDR 25000
#define CLIENT_IP_ADDR "192.168.10.3"
#define MAX_BUF 256
enum {
CONNECT_STATE_NONE,
CONNECT_STATE_CONNECTED,
};
pid_t pid;
int g_count;
int sfd;
int connect_state;
char rxbuf[MAX_BUF];
char txbuf[MAX_BUF];
void *network_thread(void *arg)
{
int ret;
int len;
struct sockaddr_in addr_server;
struct sockaddr_in addr_client;
int client_len;
char buf[MAX_BUF];
printf("[%d] thread started with arg \"%s\"\n", pid, (char *)arg);
ret = pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
if(ret != 0) {
printf("[%d] error: %s\n", pid, strerror(errno));
exit(EXIT_FAILURE);
}
sfd = socket(AF_INET, SOCK_DGRAM, 0);
if(sfd == -1) {
printf("[%d] error: %s\n", pid, strerror(errno));
exit(EXIT_FAILURE);
}
memset(&addr_server, 0, sizeof(addr_server));
addr_server.sin_family = AF_INET;
addr_server.sin_addr.s_addr = htonl(INADDR_ANY);
addr_server.sin_port = htons(PORT_ADDR);
ret = bind(sfd, (struct sockaddr *)&addr_server, sizeof(addr_server));
if(ret == -1) {
printf("[%d] error: %s\n", pid, strerror(errno));
exit(EXIT_FAILURE);
}
connect_state = CONNECT_STATE_CONNECTED;
for(;;) {
client_len = sizeof(struct sockaddr);
len = recvfrom(sfd, (void *)buf, MAX_BUF, 0, (struct sockaddr *)&addr_client, &client_len);
if(len > 0) {
buf[len] = 0;
printf("\n");
printf("[%d] Received: %s", pid, buf);
printf("[%d] Input message(Q for quit): ", pid);
fflush(stdout);
}
}
pthread_exit("Goodbye Thread");
}
int main(int argc, char **argv)
{
pthread_t thread_id;
void *thread_ret;
int ret;
struct sockaddr_in addr_client;
char buf[MAX_BUF];
printf("[%d] running %s\n", pid = getpid(), argv[0]);
printf("[%d] creating thread\n", pid);
ret = pthread_create(&thread_id, NULL, network_thread, "Network Thread");
if(ret != 0) {
printf("[%d] error: %d (%d)\n", pid, ret, __LINE__);
return EXIT_FAILURE;
}
memset(&addr_client, 0, sizeof(addr_client));
addr_client.sin_family = AF_INET;
addr_client.sin_addr.s_addr = inet_addr(CLIENT_IP_ADDR);
addr_client.sin_port = htons(PORT_ADDR);
for(;;) {
if(connect_state != CONNECT_STATE_CONNECTED) continue;
printf("[%d] Input message(Q for quit): ", pid);
fflush(stdout);
if(fgets(buf, MAX_BUF, stdin)) {
fflush(stdin);
if(!strcmp(buf, "q\n") || !strcmp(buf, "Q\n")) {
break;
}
sendto(sfd, (void *)buf, strlen(buf), 0, (struct sockaddr *)&addr_client, sizeof(addr_client));
}
}
ret = pthread_cancel(thread_id);
if(ret != 0) {
printf("[%d] error: %d (%d)\n", pid, ret, __LINE__);
return EXIT_FAILURE;
}
printf("[%d] waiting to join with a terminated thread\n", pid);
ret = pthread_join(thread_id, &thread_ret);
if(ret != 0) {
printf("[%d] error: %d (%d)\n", pid, ret, __LINE__);
return EXIT_FAILURE;
}
if(!thread_ret) {
printf("[%d] thread returned \"%s\"\n", pid, (char *)thread_ret);
}
close(sfd);
printf("[%d] terminted\n", pid);
return EXIT_SUCCESS;
}
|
the_stack_data/14200461.c | #include <stdio.h>
#include <stdlib.h>
typedef struct
{
int CurrentFloor;
int input;
} myStruct;
void GetOut(int _f);
int main()
{
// allocates the struct to the heap
myStruct * p_ptr = (myStruct *)malloc(sizeof(myStruct));
myStruct f = { .CurrentFloor = 1, .input = 0 };
int input = 0;
int i = 1;
while (i == 1)
{
printf("You are currently on floor '%d'. Where would you like to go?\n1. up\n2. down\n3. Leave Elevator\n", f.CurrentFloor);
scanf_s("%d", &f.input);
if (f.input == 1 && f.CurrentFloor < 5)
{
f.CurrentFloor++;
}
else if (f.input == 2 && f.CurrentFloor > 1)
{
f.CurrentFloor--;
}
else if (f.input == 3)
{
GetOut(f.CurrentFloor);
i = 0;
}
else
{
printf("The elevator cannot go this way.\n");
}
}
// frees the struct from the heap
free(p_ptr);
system("PAUSE");
return 0;
}
void GetOut(int _f)
{
printf("Welcome to floor %d\n", _f);
} |
the_stack_data/98575782.c | #include <stdint.h>
char toupper(char c) {
return ((uint8_t)((uint8_t)c - 'a') < ('z' - 'a' + 1)) ? c - 32u : c;
}
|
the_stack_data/20449837.c |
typedef int __ABC;
#define ABC __ABC
ABC x;
|
the_stack_data/93888809.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <libgen.h>
char *
masq_find_exec(char *path, const char *exec, const char *exclude)
{
if (path == NULL)
return NULL;
path = strdup(path);
if (path == NULL)
return NULL;
char *state;
char *dir = strtok_r(path, ":", &state);
for (; dir; dir = strtok_r(NULL, ":", &state)) {
char *exec_path = malloc(strlen(dir) + 1 + strlen(exec) + 1);
if (exec_path == NULL) {
free(path);
return NULL;
}
sprintf(exec_path, "%s/%s", dir, exec);
struct stat stl, stf;
if (access(exec_path, X_OK) == 0 &&
lstat(exec_path, &stl) == 0 &&
stat(exec_path, &stf) == 0 &&
S_ISREG(stf.st_mode))
{
if (S_ISLNK(stl.st_mode)) {
char *real_exec_path = realpath(exec_path, NULL);
if (real_exec_path) {
char *target = basename(real_exec_path);
if (strcmp(target, exclude) == 0) {
free(exec_path);
free(real_exec_path);
continue;
}
free(real_exec_path);
}
}
free(path);
return exec_path;
}
free(exec_path);
}
free(path);
return NULL;
}
|
the_stack_data/7950270.c |
/* NAME
* rdtttab -- Read travel-time tables
* FILE
* rdtttab.c
* SYNOPSIS
* Read travel-time and amplitude tables for individual phase-types
* DESCRIPTION
* Function. Establish file structures and read travel-time and
* amplitude tables applicable for the given input phase-types.
* Read travel-time tables from files into memory. The filenames to
* be read have the form root.phase_type_ptr[k], where root is the
* non-blank part of froot, and where phase_type_ptr[k] is a wave
* identifier for k = 1, nwav; e.g., 'Pg', 'Pn', 'Sn', 'Lg'. The
* data read is put into the appropriate arrays as indicated by the
* filename suffix.
* Example: If froot = 'tab' and phase_type_ptr = 'Pg', 'Lg', then this
* routine reads files 'tab.Pg' and 'tab.Lg'.
* ---- Indexing ----
* i = 1, ntbd[k]; j = 1, ntbz[k]; k = 1, nwav;
* ---- On entry ----
* froot: Root name of file to be read
* nwav: Number of wave types to be used
* maxtbd: Maximum number of distance samples in tables
* maxtbz: Maximum number of depth samples in tables
* phase_type_ptr[k]: Character identifier of k'th wave
* ---- On return ----
* ntbd[k]: Number of distance samples in tables
* ntbz[k]: Number of depth samples in tables
* tbd[i][k]: Angular distance of the [i][j]'th sample (deg)
* tbz[j][k]: Depth of the [i][j]'th sample (km)
* tbtt[i][j][k]: Travel-time of the [i][j][k]'th sample (sec, sec/deg)
* DIAGNOSTICS
* Will specify when any (or all) input files cannot be opened.
* NOTE
* If file, filnam will not open, then arrays, ntbd[][] and ntbz[][]
* are returned as zero.
* AUTHOR
* Walter Nagy, January 1991
*/
#include <stdio.h>
#include <string.h>
#ifdef SCCSID
static char SccsId[] = "@(#)rdtttab.c 44.1 9/20/91";
#endif
/* Error report */
#define READ_E1(a) { fprintf (stderr, "\nERROR reading %s in File: %s\n", \
(a), filnam); \
}
void rdtttab(char *froot, /* Size [ca. 1024] */
char **phase_type_ptr, /* Size [nwav][8] */
int nwav, /* Array lengths */
int maxtbd, /* Array lengths */
int maxtbz, /* Array lengths */
int *ntbd, /* Array lengths */
int *ntbz, /* Array lengths */
float *tbd, /* Size [nwav][maxtbd] */
float *tbz, /* Size [nwav][maxtbz] */
float *tbtt, /* Size [nwav][maxtbz][maxtbd] */
int *ierr,
int verbose) /* Error flag */
{
int i, j, k, /* Loop counters */
err, /* Local error flag */
ntbzx, /* Number of depth samples to read */
ntbdx; /* Number of distance samples to read */
int cnt, num_files; /* File counters */
float tempval, /* Temporary read before assign */
*temp_tbz,
*temp_tbd,
*temp_tt,
*tflt;
char filnam[1024], /* ["root" + "." + "postname" + NULL] */
**s2ptr; /* Temporary array pointer */
char readtemp[128];
FILE *opf;
/* Initialize */
temp_tbz = (float *)tbz;
temp_tbd = (float *)tbd;
temp_tt = (float *)tbtt;
cnt = 0; num_files = 0; /* Counters */
/* Read the files */
for ( err = 0, s2ptr = phase_type_ptr, k = 0; k < nwav && !err; ++k, ++s2ptr ) {
strcpy(filnam, froot);
strcat(filnam, ".");
strcat(filnam, *s2ptr);
/** HACK to avoid problems with filesystems not able to handle upper/lower case filenames
** e.g. Microsofts NTFS or HFS+ on Mac's
*/
if ( strcmp(*s2ptr, "pP") == 0 )
strcat(filnam, "_");
// Initialize grid with -1
tflt = temp_tt;
for ( i = 0; i < maxtbz; ++i )
for ( j = 0; j < maxtbd; ++j, ++tflt )
*tflt = -1.0f;
/* Open files */
if ( (opf = fopen(filnam, "r")) == NULL ) {
if ( verbose )
fprintf (stderr, "\nFile %s will not open!\n", filnam);
ntbd[k] = 0; ntbz[k] = 0;
temp_tbz += maxtbz;
temp_tbd += maxtbd;
temp_tt += maxtbd * maxtbz;
continue;
}
++cnt; /* Successful open counter */
/* Begin reading info -- Start with depth sampling */
if ( fscanf(opf, "%*[^\n]\n%d%*[^\n]", &ntbzx) != 1 ) {
READ_E1("number of depth samples");
err = 2;
}
if ( !err && (ntbz[k]=ntbzx) > maxtbz ) {
fprintf(stderr, "%s %s, %d used, %d skipped\n",
"\nToo many depth samples in file",
filnam, maxtbz, ntbzx-maxtbz);
ntbz[k] = maxtbz;
}
for ( tflt = temp_tbz, i = 0; i < ntbzx && !err; ++i ) {
if ( fscanf(opf, "%f", &tempval) != 1 ) {
READ_E1("depth sample value");
err = 2;
}
/* Skip, if necessary */
if ( i < ntbz[k] )
*tflt++ = tempval;
}
temp_tbz += maxtbz;
/* Read distance sampling */
if ( fscanf (opf, "%d%*[^\n]", &ntbdx) != 1 ) {
READ_E1("number of distance samples");
err = 2;
}
if ( !err && (ntbd[k]=ntbdx) > maxtbd ) {
fprintf (stderr, "%s %s, %d used, %d skipped\n",
"\nToo many distance samples in file",
filnam, maxtbd, ntbdx-maxtbd);
ntbd[k] = maxtbd;
}
for ( tflt = temp_tbd, i = 0; i < ntbdx && !err; ++i ) {
if ( fscanf (opf, "%f", &tempval) != 1 ) {
READ_E1("distance sample value");
err = 2;
}
/* Skip, if necessary */
if ( i < ntbd[k] )
*tflt++ = tempval;
}
temp_tbd += maxtbd;
/* Read travel-time tables */
for ( j = 0 ; j < ntbzx && !err; j++ ) {
/* skip the comment line */
while ( getc(opf) != '#' );
while ( getc(opf) != '\n' );
for ( tflt = temp_tt, i = 0; i < ntbdx && !err; ++i ) {
if ( fgets(readtemp, 127, opf) == NULL ) {
READ_E1("travel-time value text");
err = 2;
}
if ( sscanf(readtemp, "%f", &tempval) != 1 ) {
READ_E1("travel-time value");
err = 2;
}
/* Skip, if necessary */
if ( j < ntbd[k] )
*tflt++ = tempval;
}
temp_tt += maxtbd;
}
if ( j < maxtbz )
temp_tt += (maxtbz - j) * maxtbd;
++num_files;
fclose(opf);
}
if ( num_files == 0 && cnt == 0 ) { /* Error: No tables found */
fprintf (stderr, "\nrdtttab: No tables can be read\n");
err = 1;
}
*ierr = err;
}
|
the_stack_data/151705542.c | int main()
{
int n = 0;
while(n<=100)
{
printf("%d\n", n++);
}
return 0;
}
|
the_stack_data/234518363.c | #include <stdio.h>
#include <stdlib.h>
char **get_nbwords(char *str, char divide)
{
int words;
int n;
char **array;
words = 0;
n = 0;
while (str[n])
{
if (str[n] != divide && str[n] != '\t' && (str[n + 1] == divide
|| str[n + 1] == 0
|| str[n + 1] == '\t'))
words = words + 1;
n = n + 1;
}
if ((array = malloc(sizeof(char *) * (words + 1))) == NULL)
return (NULL);
return (array);
}
char *get_words(char *str, int n, int size, char divide)
{
int a;
char *arr;
a = 0;
if ((arr = malloc(sizeof(char) * (size + 1))) == NULL)
return (NULL);
if (size == 0)
{
arr = NULL;
return (arr);
}
n = n - size;
while (str[n] != divide && str[n] != '\t' && str[n] != 0)
{
arr[a] = str[n];
a = a + 1;
n = n + 1;
}
arr[a] = 0;
return (arr);
}
char *get_last(char *str, int n, int size)
{
char *arr;
int i;
i = 0;
if ((arr = malloc(sizeof(char) * size + 1)) == NULL)
return (NULL);
if (size == 0)
{
arr = NULL;
return (arr);
}
n = n - size;
while (str[n])
{
arr[i] = str[n];
n = n + 1;
i = i + 1;
}
arr[i] = 0;
return (arr);
}
char **get_array(char **array, char divide, char *str)
{
int n;
int size;
int i;
n = 0;
size = 1;
i = 0;
while (str[n])
{
if ((str[n] == divide || str[n] == '\t') && str[n - 1] != divide
&& str[n - 1] != '\t')
{
array[i] = get_words(str, n, size, divide);
if (array[i][0] != 0)
i++;
size = 0;
}
if (str[n] != 0)
n = n + 1;
if (str[n] != divide && str[n] != '\t' && str[n] != 0)
size = size + 1;
}
array[i] = get_last(str, n, size);
(array[i] != NULL) ? (array[i + 1] = NULL) : (0);
return (array);
}
// Function which take an array of char (str) and a char delimiter (divide) in parameter.
// It split the array of char (str) everytime that a char delimiter (divide) is found in the char array (str).
// Every splitted array of char is stored into an array of char* (array), which is returned.
char **str_to_word_tab(char *str, char divide)
{
char **array;
if (str == NULL)
return (NULL);
array = get_nbwords(str, divide);
array = get_array(array, divide, str);
return (array);
}
|
the_stack_data/20505.c | #include <stdio.h>
#include <string.h>
#include <math.h>
int main(void)
{
}
|
the_stack_data/125139755.c | /* ヘッダファイルのインクルード */
#include <stdio.h> /* 標準入出力 */
#include <string.h> /* 文字列処理 */
#include <unistd.h> /* UNIX標準 */
#include <sys/types.h> /* 派生型 */
#include <sys/stat.h> /* ファイル状態 */
#include <sys/fcntl.h> /* ファイル制御 */
/* main関数の定義 */
int main(void){
/* 変数の宣言・初期化. */
int fd[2]; /* int型ファイルディスクリプタ配列fd.(要素数2) */
char buf[256]; /* 入力バッファ. */
char *msg = "I am mkfifo2!"; /* 出力メッセージ"I am mkfifo2!". */
/* 6秒待つ. */
sleep(6); /* sleepで6秒待つ. */
/* 読み込み用パイプを開く. */
if ((fd[0] = open("TEST1", O_RDONLY)) == -1){ /* -1なら失敗. */
/* エラー出力. */
printf("open error!\n"); /* "open error!"と出力. */
return -1; /* -1を返して終了. */
}
/* TEST1から読み込んでbufに格納. */
memset(buf, 0, sizeof(buf)); /* bufを0で埋める. */
read(fd[0], buf, sizeof(buf)); /* readでbufにfd[0]から読み込む. */
printf("mkfifo2 fd[0]: %s\n", buf); /* 読み込んだbufを出力. */
/* 閉じる. */
close(fd[0]); /* fd[0]を閉じる. */
/* 3秒待つ. */
sleep(3); /* sleepで3秒待つ. */
/* 書き込み用パイプを開く. */
printf("mkfifo2 fd[1]: %s\n", msg); /* 書き込むmsgを出力. */
if ((fd[1] = open("TEST2", O_WRONLY)) == -1){ /* -1なら失敗. */
/* エラー出力. */
printf("open error!\n"); /* "open error!"と出力. */
close(fd[0]); /* fd[0]を閉じる. */
return -2; /* -2を返して終了. */
}
/* TEST2にmsgを書き込む. */
write(fd[1], msg, strlen(msg)); /* writeでmsgをfd[1]に書き込む. */
/* 閉じる. */
close(fd[1]); /* fd[1]を閉じる. */
/* プログラムの終了 */
return 0;
}
|
the_stack_data/669933.c | #include <stdio.h>
int main() {
printf("hello world\n");
return 0;
} |
the_stack_data/145452207.c | /*
* Copyright (c) 2002-2007 Niels Provos <[email protected]>
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 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 "event2/event-config.h"
#ifdef _WIN32
#include <winsock2.h>
#else
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#ifdef EVENT__HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef EVENT__HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <event.h>
#include <evutil.h>
#ifdef EVENT____func__
#define __func__ EVENT____func__
#endif
int test_okay = 1;
int called = 0;
struct timeval timeout = {60, 0};
static void
read_cb(evutil_socket_t fd, short event, void *arg)
{
char buf[256];
int len;
if (EV_TIMEOUT & event) {
printf("%s: Timeout!\n", __func__);
exit(1);
}
len = recv(fd, buf, sizeof(buf), 0);
printf("%s: read %d%s\n", __func__,
len, len ? "" : " - means EOF");
if (len) {
if (!called)
event_add(arg, &timeout);
} else if (called == 1)
test_okay = 0;
called++;
}
#ifndef SHUT_WR
#define SHUT_WR 1
#endif
int
main(int argc, char **argv)
{
struct event ev;
const char *test = "test string";
evutil_socket_t pair[2];
#ifdef _WIN32
WORD wVersionRequested;
WSADATA wsaData;
wVersionRequested = MAKEWORD(2, 2);
(void) WSAStartup(wVersionRequested, &wsaData);
#endif
if (evutil_socketpair(AF_UNIX, SOCK_STREAM, 0, pair) == -1)
return (1);
if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
return (1);
shutdown(pair[0], SHUT_WR);
/* Initalize the event library */
event_init();
/* Initalize one event */
event_set(&ev, pair[1], EV_READ | EV_TIMEOUT, read_cb, &ev);
event_add(&ev, &timeout);
event_dispatch();
return (test_okay);
}
|
the_stack_data/815738.c | /*
* MIT Hackmem Count
*
* MIT Hackmem Count is funky. Consider a 3 bit number as being 4a+2b+c.
* If we shift it right 1 bit, we have 2a+b. Subtracting this from the
* original gives 2a+b+c. If we right-shift the original 3-bit number
* by two bits, we get a, and so with another subtraction we have a+b+c,
* which is the number of bits in the original number.
*
* How is this insight employed? The first assignment statement in the
* routine computes tmp. Consider the octal representation of tmp. Each
* digit in the octal representation is simply the number of 1's in the
* corresponding three bit positions in n. The last return statement
* sums these octal digits to produce the final answer.
*
* The key idea is to add adjacent pairs of octal digits together and
* then compute the remainder modulus 63. This is accomplished by right-
* shifting tmp by three bits, adding it to tmp itself and ANDing with
* a suitable mask. This yields a number in which groups of six adjacent
* bits (starting from the LSB) contain the number of 1's among those
* six positions in n. This number modulo 63 yields the final answer.
* For 64-bit numbers, we would have to add triples of octal digits and
* use modulus 1023.
*
* This is HACKMEM 169, as used in X11 sources. Source: MIT AI Lab memo,
* late 1970's.
*/
int
bitcount32(unsigned long n)
{
/* works for 32-bit numbers only */
/* fix last line for 64-bit numbers */
register unsigned int tmp;
tmp = n - ((n >> 1) & 033333333333)
- ((n >> 2) & 011111111111);
return ((tmp + (tmp >> 3)) & 030707070707) % 63;
}
/*
* Remove right most bit: n & (n-1)
*
* Isolate the bottom most bit: n & -n
*
* Quick test for power of two number:
*
* ((x & -x) == x)
*
* returns true if x is a power of 2 (or equal to 0)
*/ |
the_stack_data/234517375.c | /* { dg-do compile } */
/* { dg-skip-if "" { ! *-linux-* } { "*" } { "" } } */
/* { dg-options "-O2 -fpic -mxtls" } */
/* { dg-final { scan-assembler "foo@TLSLDM\\(\%a5\\)" } } */
/* { dg-final { scan-assembler "bsr.l __tls_get_addr@PLTPC" } } */
/* { dg-final { scan-assembler "#foo@TLSLDO,\%\[ad\]\[0-7\]" } } */
static int __thread foo;
int *
bar (void)
{
return &foo;
}
|
the_stack_data/73576182.c | // PARAM: --set ana.activated[0][+] "'region'"
#include<pthread.h>
#include<stdlib.h>
#include<stdio.h>
struct s {
int datum;
struct s *next;
} *A, *B;
void init (struct s *p, int x) {
p -> datum = x;
p -> next = NULL;
}
pthread_mutex_t A_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B_mutex = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A_mutex);
A->next->datum++; // NORACE
pthread_mutex_unlock(&A_mutex);
pthread_mutex_lock(&B_mutex);
B->next->datum++; // NORACE
pthread_mutex_unlock(&B_mutex);
return NULL;
}
int main () {
pthread_t t1;
struct s *p = malloc(sizeof(struct s));
init(p,9);
A = malloc(sizeof(struct s));
init(A,3);
A->next = p;
B = malloc(sizeof(struct s));
init(B,5);
p = malloc(sizeof(struct s));
init(p,9);
B->next = p;
pthread_create(&t1, NULL, t_fun, NULL);
pthread_mutex_lock(&A_mutex);
p = A->next;
printf("%d\n", p->datum); // NORACE
pthread_mutex_unlock(&A_mutex);
pthread_mutex_lock(&B_mutex);
p = B->next;
printf("%d\n", p->datum); // NORACE
pthread_mutex_unlock(&B_mutex);
return 0;
}
|
the_stack_data/148579475.c | #include <stdio.h>
#include <stdlib.h>
//Declare
struct List {
int data;
struct List *next;
};
int listLength(struct List *head) {
struct List *current = head;
int count = 0;
while(current != NULL) {
count ++;
current = current->next;
}
return count;
}
void insertLinkedList (struct List **head, int data, int position) {
int k = 1;
struct List *p, *q, *newNode;
newNode = (struct List*)malloc(sizeof(struct List));
newNode -> data = data;
p=*head;
if(position ==1) {
newNode->next = p;
*head = newNode;
}
else {
while((p != NULL) && (k<position)) {
k++;
q = p;
p = p-> next;
}
q -> next = newNode;
newNode -> next = p;
}
}
void deleteLinkedList (struct List **head, int position) {
int k = 1;
struct List *p, *q, *newNode;
if(*head = NULL) {
printf("List empty\n");
return;
}
if(position == 1) {
*head = (*head) -> next;
free(p);
return;
}
else {
while((p != NULL) && (k < position)) {
k++;
q = p;
p = p-> next;
}
if(p == NULL)
printf("Position does not exist");
else {
q->next = p->next;
free(p);
}
}
}
void display(struct List **head) {
printf("\nContents of the linked list are: \n");
struct List *p;
p=*head;
if(*head = NULL) {
printf("List empty\n");
return;
}
while(p != NULL) {
printf("%d\n", p->data);
p = p->next;
}
}
int main() {
struct List* head = NULL;
insertLinkedList(&head, 4, 1);
insertLinkedList(&head, 6, 1);
display(&head);
deleteLinkedList(&head, 1);
display(&head);
return 0;
} |
the_stack_data/92324348.c | /* Autogenerated: 'src/ExtractionOCaml/bedrock2_word_by_word_montgomery' --lang bedrock2 --static --no-wide-int --widen-carry --widen-bytes --split-multiret --no-select p384 32 '2^384 - 2^128 - 2^96 + 2^32 - 1' mul square add sub opp from_montgomery to_montgomery nonzero selectznz to_bytes from_bytes one msat divstep divstep_precomp */
/* curve description: p384 */
/* machine_wordsize = 32 (from "32") */
/* requested operations: mul, square, add, sub, opp, from_montgomery, to_montgomery, nonzero, selectznz, to_bytes, from_bytes, one, msat, divstep, divstep_precomp */
/* m = 0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff (from "2^384 - 2^128 - 2^96 + 2^32 - 1") */
/* */
/* NOTE: In addition to the bounds specified above each function, all */
/* functions synthesized for this Montgomery arithmetic require the */
/* input to be strictly less than the prime modulus (m), and also */
/* require the input to be in the unique saturated representation. */
/* All functions also ensure that these two properties are true of */
/* return values. */
/* */
/* Computed values: */
/* eval z = z[0] + (z[1] << 32) + (z[2] << 64) + (z[3] << 96) + (z[4] << 128) + (z[5] << 160) + (z[6] << 192) + (z[7] << 224) + (z[8] << 256) + (z[9] << 0x120) + (z[10] << 0x140) + (z[11] << 0x160) */
/* bytes_eval z = z[0] + (z[1] << 8) + (z[2] << 16) + (z[3] << 24) + (z[4] << 32) + (z[5] << 40) + (z[6] << 48) + (z[7] << 56) + (z[8] << 64) + (z[9] << 72) + (z[10] << 80) + (z[11] << 88) + (z[12] << 96) + (z[13] << 104) + (z[14] << 112) + (z[15] << 120) + (z[16] << 128) + (z[17] << 136) + (z[18] << 144) + (z[19] << 152) + (z[20] << 160) + (z[21] << 168) + (z[22] << 176) + (z[23] << 184) + (z[24] << 192) + (z[25] << 200) + (z[26] << 208) + (z[27] << 216) + (z[28] << 224) + (z[29] << 232) + (z[30] << 240) + (z[31] << 248) + (z[32] << 256) + (z[33] << 0x108) + (z[34] << 0x110) + (z[35] << 0x118) + (z[36] << 0x120) + (z[37] << 0x128) + (z[38] << 0x130) + (z[39] << 0x138) + (z[40] << 0x140) + (z[41] << 0x148) + (z[42] << 0x150) + (z[43] << 0x158) + (z[44] << 0x160) + (z[45] << 0x168) + (z[46] << 0x170) + (z[47] << 0x178) */
/* twos_complement_eval z = let x1 := z[0] + (z[1] << 32) + (z[2] << 64) + (z[3] << 96) + (z[4] << 128) + (z[5] << 160) + (z[6] << 192) + (z[7] << 224) + (z[8] << 256) + (z[9] << 0x120) + (z[10] << 0x140) + (z[11] << 0x160) in */
/* if x1 & (2^384-1) < 2^383 then x1 & (2^384-1) else (x1 & (2^384-1)) - 2^384 */
#include <stdint.h>
#include <memory.h>
// LITTLE-ENDIAN memory access is REQUIRED
// the following two functions are required to work around -fstrict-aliasing
static inline uintptr_t _br2_load(uintptr_t a, size_t sz) {
uintptr_t r = 0;
memcpy(&r, (void*)a, sz);
return r;
}
static inline void _br2_store(uintptr_t a, uintptr_t v, size_t sz) {
memcpy((void*)a, &v, sz);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_mul(uintptr_t out0, uintptr_t in0, uintptr_t in1) {
uintptr_t x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x0, x35, x56, x59, x61, x57, x62, x54, x63, x65, x66, x55, x67, x52, x68, x70, x71, x53, x72, x50, x73, x75, x76, x51, x77, x48, x78, x80, x81, x49, x82, x46, x83, x85, x86, x47, x87, x44, x88, x90, x91, x45, x92, x42, x93, x95, x96, x43, x97, x40, x98, x100, x101, x41, x102, x38, x103, x105, x106, x39, x107, x36, x108, x110, x111, x37, x127, x130, x134, x128, x135, x125, x136, x138, x139, x126, x140, x123, x141, x143, x144, x124, x145, x121, x146, x148, x149, x122, x150, x119, x151, x153, x154, x120, x155, x117, x156, x158, x159, x118, x160, x115, x161, x163, x164, x116, x165, x113, x166, x168, x169, x114, x131, x171, x58, x172, x60, x173, x132, x174, x176, x177, x64, x179, x69, x180, x129, x181, x183, x184, x74, x185, x133, x186, x188, x189, x79, x190, x137, x191, x193, x194, x84, x195, x142, x196, x198, x199, x89, x200, x147, x201, x203, x204, x94, x205, x152, x206, x208, x209, x99, x210, x157, x211, x213, x214, x104, x215, x162, x216, x218, x219, x109, x220, x167, x221, x223, x224, x112, x225, x170, x226, x228, x24, x250, x253, x255, x251, x256, x248, x257, x259, x260, x249, x261, x246, x262, x264, x265, x247, x266, x244, x267, x269, x270, x245, x271, x242, x272, x274, x275, x243, x276, x240, x277, x279, x280, x241, x281, x238, x282, x284, x285, x239, x286, x236, x287, x289, x290, x237, x291, x234, x292, x294, x295, x235, x296, x232, x297, x299, x300, x233, x301, x230, x302, x304, x305, x231, x252, x175, x308, x178, x309, x254, x310, x312, x313, x182, x314, x258, x315, x317, x318, x187, x319, x263, x320, x322, x323, x192, x324, x268, x325, x327, x328, x197, x329, x273, x330, x332, x333, x202, x334, x278, x335, x337, x338, x207, x339, x283, x340, x342, x343, x212, x344, x288, x345, x347, x348, x217, x349, x293, x350, x352, x353, x222, x354, x298, x355, x357, x358, x227, x359, x303, x360, x362, x363, x229, x364, x306, x365, x367, x383, x386, x390, x384, x391, x381, x392, x394, x395, x382, x396, x379, x397, x399, x400, x380, x401, x377, x402, x404, x405, x378, x406, x375, x407, x409, x410, x376, x411, x373, x412, x414, x415, x374, x416, x371, x417, x419, x420, x372, x421, x369, x422, x424, x425, x370, x387, x427, x307, x428, x311, x429, x388, x430, x432, x433, x316, x435, x321, x436, x385, x437, x439, x440, x326, x441, x389, x442, x444, x445, x331, x446, x393, x447, x449, x450, x336, x451, x398, x452, x454, x455, x341, x456, x403, x457, x459, x460, x346, x461, x408, x462, x464, x465, x351, x466, x413, x467, x469, x470, x356, x471, x418, x472, x474, x475, x361, x476, x423, x477, x479, x480, x366, x481, x426, x482, x484, x485, x368, x25, x507, x510, x512, x508, x513, x505, x514, x516, x517, x506, x518, x503, x519, x521, x522, x504, x523, x501, x524, x526, x527, x502, x528, x499, x529, x531, x532, x500, x533, x497, x534, x536, x537, x498, x538, x495, x539, x541, x542, x496, x543, x493, x544, x546, x547, x494, x548, x491, x549, x551, x552, x492, x553, x489, x554, x556, x557, x490, x558, x487, x559, x561, x562, x488, x509, x431, x565, x434, x566, x511, x567, x569, x570, x438, x571, x515, x572, x574, x575, x443, x576, x520, x577, x579, x580, x448, x581, x525, x582, x584, x585, x453, x586, x530, x587, x589, x590, x458, x591, x535, x592, x594, x595, x463, x596, x540, x597, x599, x600, x468, x601, x545, x602, x604, x605, x473, x606, x550, x607, x609, x610, x478, x611, x555, x612, x614, x615, x483, x616, x560, x617, x619, x620, x486, x621, x563, x622, x624, x640, x643, x647, x641, x648, x638, x649, x651, x652, x639, x653, x636, x654, x656, x657, x637, x658, x634, x659, x661, x662, x635, x663, x632, x664, x666, x667, x633, x668, x630, x669, x671, x672, x631, x673, x628, x674, x676, x677, x629, x678, x626, x679, x681, x682, x627, x644, x684, x564, x685, x568, x686, x645, x687, x689, x690, x573, x692, x578, x693, x642, x694, x696, x697, x583, x698, x646, x699, x701, x702, x588, x703, x650, x704, x706, x707, x593, x708, x655, x709, x711, x712, x598, x713, x660, x714, x716, x717, x603, x718, x665, x719, x721, x722, x608, x723, x670, x724, x726, x727, x613, x728, x675, x729, x731, x732, x618, x733, x680, x734, x736, x737, x623, x738, x683, x739, x741, x742, x625, x26, x764, x767, x769, x765, x770, x762, x771, x773, x774, x763, x775, x760, x776, x778, x779, x761, x780, x758, x781, x783, x784, x759, x785, x756, x786, x788, x789, x757, x790, x754, x791, x793, x794, x755, x795, x752, x796, x798, x799, x753, x800, x750, x801, x803, x804, x751, x805, x748, x806, x808, x809, x749, x810, x746, x811, x813, x814, x747, x815, x744, x816, x818, x819, x745, x766, x688, x822, x691, x823, x768, x824, x826, x827, x695, x828, x772, x829, x831, x832, x700, x833, x777, x834, x836, x837, x705, x838, x782, x839, x841, x842, x710, x843, x787, x844, x846, x847, x715, x848, x792, x849, x851, x852, x720, x853, x797, x854, x856, x857, x725, x858, x802, x859, x861, x862, x730, x863, x807, x864, x866, x867, x735, x868, x812, x869, x871, x872, x740, x873, x817, x874, x876, x877, x743, x878, x820, x879, x881, x897, x900, x904, x898, x905, x895, x906, x908, x909, x896, x910, x893, x911, x913, x914, x894, x915, x891, x916, x918, x919, x892, x920, x889, x921, x923, x924, x890, x925, x887, x926, x928, x929, x888, x930, x885, x931, x933, x934, x886, x935, x883, x936, x938, x939, x884, x901, x941, x821, x942, x825, x943, x902, x944, x946, x947, x830, x949, x835, x950, x899, x951, x953, x954, x840, x955, x903, x956, x958, x959, x845, x960, x907, x961, x963, x964, x850, x965, x912, x966, x968, x969, x855, x970, x917, x971, x973, x974, x860, x975, x922, x976, x978, x979, x865, x980, x927, x981, x983, x984, x870, x985, x932, x986, x988, x989, x875, x990, x937, x991, x993, x994, x880, x995, x940, x996, x998, x999, x882, x27, x1021, x1024, x1026, x1022, x1027, x1019, x1028, x1030, x1031, x1020, x1032, x1017, x1033, x1035, x1036, x1018, x1037, x1015, x1038, x1040, x1041, x1016, x1042, x1013, x1043, x1045, x1046, x1014, x1047, x1011, x1048, x1050, x1051, x1012, x1052, x1009, x1053, x1055, x1056, x1010, x1057, x1007, x1058, x1060, x1061, x1008, x1062, x1005, x1063, x1065, x1066, x1006, x1067, x1003, x1068, x1070, x1071, x1004, x1072, x1001, x1073, x1075, x1076, x1002, x1023, x945, x1079, x948, x1080, x1025, x1081, x1083, x1084, x952, x1085, x1029, x1086, x1088, x1089, x957, x1090, x1034, x1091, x1093, x1094, x962, x1095, x1039, x1096, x1098, x1099, x967, x1100, x1044, x1101, x1103, x1104, x972, x1105, x1049, x1106, x1108, x1109, x977, x1110, x1054, x1111, x1113, x1114, x982, x1115, x1059, x1116, x1118, x1119, x987, x1120, x1064, x1121, x1123, x1124, x992, x1125, x1069, x1126, x1128, x1129, x997, x1130, x1074, x1131, x1133, x1134, x1000, x1135, x1077, x1136, x1138, x1154, x1157, x1161, x1155, x1162, x1152, x1163, x1165, x1166, x1153, x1167, x1150, x1168, x1170, x1171, x1151, x1172, x1148, x1173, x1175, x1176, x1149, x1177, x1146, x1178, x1180, x1181, x1147, x1182, x1144, x1183, x1185, x1186, x1145, x1187, x1142, x1188, x1190, x1191, x1143, x1192, x1140, x1193, x1195, x1196, x1141, x1158, x1198, x1078, x1199, x1082, x1200, x1159, x1201, x1203, x1204, x1087, x1206, x1092, x1207, x1156, x1208, x1210, x1211, x1097, x1212, x1160, x1213, x1215, x1216, x1102, x1217, x1164, x1218, x1220, x1221, x1107, x1222, x1169, x1223, x1225, x1226, x1112, x1227, x1174, x1228, x1230, x1231, x1117, x1232, x1179, x1233, x1235, x1236, x1122, x1237, x1184, x1238, x1240, x1241, x1127, x1242, x1189, x1243, x1245, x1246, x1132, x1247, x1194, x1248, x1250, x1251, x1137, x1252, x1197, x1253, x1255, x1256, x1139, x28, x1278, x1281, x1283, x1279, x1284, x1276, x1285, x1287, x1288, x1277, x1289, x1274, x1290, x1292, x1293, x1275, x1294, x1272, x1295, x1297, x1298, x1273, x1299, x1270, x1300, x1302, x1303, x1271, x1304, x1268, x1305, x1307, x1308, x1269, x1309, x1266, x1310, x1312, x1313, x1267, x1314, x1264, x1315, x1317, x1318, x1265, x1319, x1262, x1320, x1322, x1323, x1263, x1324, x1260, x1325, x1327, x1328, x1261, x1329, x1258, x1330, x1332, x1333, x1259, x1280, x1202, x1336, x1205, x1337, x1282, x1338, x1340, x1341, x1209, x1342, x1286, x1343, x1345, x1346, x1214, x1347, x1291, x1348, x1350, x1351, x1219, x1352, x1296, x1353, x1355, x1356, x1224, x1357, x1301, x1358, x1360, x1361, x1229, x1362, x1306, x1363, x1365, x1366, x1234, x1367, x1311, x1368, x1370, x1371, x1239, x1372, x1316, x1373, x1375, x1376, x1244, x1377, x1321, x1378, x1380, x1381, x1249, x1382, x1326, x1383, x1385, x1386, x1254, x1387, x1331, x1388, x1390, x1391, x1257, x1392, x1334, x1393, x1395, x1411, x1414, x1418, x1412, x1419, x1409, x1420, x1422, x1423, x1410, x1424, x1407, x1425, x1427, x1428, x1408, x1429, x1405, x1430, x1432, x1433, x1406, x1434, x1403, x1435, x1437, x1438, x1404, x1439, x1401, x1440, x1442, x1443, x1402, x1444, x1399, x1445, x1447, x1448, x1400, x1449, x1397, x1450, x1452, x1453, x1398, x1415, x1455, x1335, x1456, x1339, x1457, x1416, x1458, x1460, x1461, x1344, x1463, x1349, x1464, x1413, x1465, x1467, x1468, x1354, x1469, x1417, x1470, x1472, x1473, x1359, x1474, x1421, x1475, x1477, x1478, x1364, x1479, x1426, x1480, x1482, x1483, x1369, x1484, x1431, x1485, x1487, x1488, x1374, x1489, x1436, x1490, x1492, x1493, x1379, x1494, x1441, x1495, x1497, x1498, x1384, x1499, x1446, x1500, x1502, x1503, x1389, x1504, x1451, x1505, x1507, x1508, x1394, x1509, x1454, x1510, x1512, x1513, x1396, x29, x1535, x1538, x1540, x1536, x1541, x1533, x1542, x1544, x1545, x1534, x1546, x1531, x1547, x1549, x1550, x1532, x1551, x1529, x1552, x1554, x1555, x1530, x1556, x1527, x1557, x1559, x1560, x1528, x1561, x1525, x1562, x1564, x1565, x1526, x1566, x1523, x1567, x1569, x1570, x1524, x1571, x1521, x1572, x1574, x1575, x1522, x1576, x1519, x1577, x1579, x1580, x1520, x1581, x1517, x1582, x1584, x1585, x1518, x1586, x1515, x1587, x1589, x1590, x1516, x1537, x1459, x1593, x1462, x1594, x1539, x1595, x1597, x1598, x1466, x1599, x1543, x1600, x1602, x1603, x1471, x1604, x1548, x1605, x1607, x1608, x1476, x1609, x1553, x1610, x1612, x1613, x1481, x1614, x1558, x1615, x1617, x1618, x1486, x1619, x1563, x1620, x1622, x1623, x1491, x1624, x1568, x1625, x1627, x1628, x1496, x1629, x1573, x1630, x1632, x1633, x1501, x1634, x1578, x1635, x1637, x1638, x1506, x1639, x1583, x1640, x1642, x1643, x1511, x1644, x1588, x1645, x1647, x1648, x1514, x1649, x1591, x1650, x1652, x1668, x1671, x1675, x1669, x1676, x1666, x1677, x1679, x1680, x1667, x1681, x1664, x1682, x1684, x1685, x1665, x1686, x1662, x1687, x1689, x1690, x1663, x1691, x1660, x1692, x1694, x1695, x1661, x1696, x1658, x1697, x1699, x1700, x1659, x1701, x1656, x1702, x1704, x1705, x1657, x1706, x1654, x1707, x1709, x1710, x1655, x1672, x1712, x1592, x1713, x1596, x1714, x1673, x1715, x1717, x1718, x1601, x1720, x1606, x1721, x1670, x1722, x1724, x1725, x1611, x1726, x1674, x1727, x1729, x1730, x1616, x1731, x1678, x1732, x1734, x1735, x1621, x1736, x1683, x1737, x1739, x1740, x1626, x1741, x1688, x1742, x1744, x1745, x1631, x1746, x1693, x1747, x1749, x1750, x1636, x1751, x1698, x1752, x1754, x1755, x1641, x1756, x1703, x1757, x1759, x1760, x1646, x1761, x1708, x1762, x1764, x1765, x1651, x1766, x1711, x1767, x1769, x1770, x1653, x30, x1792, x1795, x1797, x1793, x1798, x1790, x1799, x1801, x1802, x1791, x1803, x1788, x1804, x1806, x1807, x1789, x1808, x1786, x1809, x1811, x1812, x1787, x1813, x1784, x1814, x1816, x1817, x1785, x1818, x1782, x1819, x1821, x1822, x1783, x1823, x1780, x1824, x1826, x1827, x1781, x1828, x1778, x1829, x1831, x1832, x1779, x1833, x1776, x1834, x1836, x1837, x1777, x1838, x1774, x1839, x1841, x1842, x1775, x1843, x1772, x1844, x1846, x1847, x1773, x1794, x1716, x1850, x1719, x1851, x1796, x1852, x1854, x1855, x1723, x1856, x1800, x1857, x1859, x1860, x1728, x1861, x1805, x1862, x1864, x1865, x1733, x1866, x1810, x1867, x1869, x1870, x1738, x1871, x1815, x1872, x1874, x1875, x1743, x1876, x1820, x1877, x1879, x1880, x1748, x1881, x1825, x1882, x1884, x1885, x1753, x1886, x1830, x1887, x1889, x1890, x1758, x1891, x1835, x1892, x1894, x1895, x1763, x1896, x1840, x1897, x1899, x1900, x1768, x1901, x1845, x1902, x1904, x1905, x1771, x1906, x1848, x1907, x1909, x1925, x1928, x1932, x1926, x1933, x1923, x1934, x1936, x1937, x1924, x1938, x1921, x1939, x1941, x1942, x1922, x1943, x1919, x1944, x1946, x1947, x1920, x1948, x1917, x1949, x1951, x1952, x1918, x1953, x1915, x1954, x1956, x1957, x1916, x1958, x1913, x1959, x1961, x1962, x1914, x1963, x1911, x1964, x1966, x1967, x1912, x1929, x1969, x1849, x1970, x1853, x1971, x1930, x1972, x1974, x1975, x1858, x1977, x1863, x1978, x1927, x1979, x1981, x1982, x1868, x1983, x1931, x1984, x1986, x1987, x1873, x1988, x1935, x1989, x1991, x1992, x1878, x1993, x1940, x1994, x1996, x1997, x1883, x1998, x1945, x1999, x2001, x2002, x1888, x2003, x1950, x2004, x2006, x2007, x1893, x2008, x1955, x2009, x2011, x2012, x1898, x2013, x1960, x2014, x2016, x2017, x1903, x2018, x1965, x2019, x2021, x2022, x1908, x2023, x1968, x2024, x2026, x2027, x1910, x31, x2049, x2052, x2054, x2050, x2055, x2047, x2056, x2058, x2059, x2048, x2060, x2045, x2061, x2063, x2064, x2046, x2065, x2043, x2066, x2068, x2069, x2044, x2070, x2041, x2071, x2073, x2074, x2042, x2075, x2039, x2076, x2078, x2079, x2040, x2080, x2037, x2081, x2083, x2084, x2038, x2085, x2035, x2086, x2088, x2089, x2036, x2090, x2033, x2091, x2093, x2094, x2034, x2095, x2031, x2096, x2098, x2099, x2032, x2100, x2029, x2101, x2103, x2104, x2030, x2051, x1973, x2107, x1976, x2108, x2053, x2109, x2111, x2112, x1980, x2113, x2057, x2114, x2116, x2117, x1985, x2118, x2062, x2119, x2121, x2122, x1990, x2123, x2067, x2124, x2126, x2127, x1995, x2128, x2072, x2129, x2131, x2132, x2000, x2133, x2077, x2134, x2136, x2137, x2005, x2138, x2082, x2139, x2141, x2142, x2010, x2143, x2087, x2144, x2146, x2147, x2015, x2148, x2092, x2149, x2151, x2152, x2020, x2153, x2097, x2154, x2156, x2157, x2025, x2158, x2102, x2159, x2161, x2162, x2028, x2163, x2105, x2164, x2166, x2182, x2185, x2189, x2183, x2190, x2180, x2191, x2193, x2194, x2181, x2195, x2178, x2196, x2198, x2199, x2179, x2200, x2176, x2201, x2203, x2204, x2177, x2205, x2174, x2206, x2208, x2209, x2175, x2210, x2172, x2211, x2213, x2214, x2173, x2215, x2170, x2216, x2218, x2219, x2171, x2220, x2168, x2221, x2223, x2224, x2169, x2186, x2226, x2106, x2227, x2110, x2228, x2187, x2229, x2231, x2232, x2115, x2234, x2120, x2235, x2184, x2236, x2238, x2239, x2125, x2240, x2188, x2241, x2243, x2244, x2130, x2245, x2192, x2246, x2248, x2249, x2135, x2250, x2197, x2251, x2253, x2254, x2140, x2255, x2202, x2256, x2258, x2259, x2145, x2260, x2207, x2261, x2263, x2264, x2150, x2265, x2212, x2266, x2268, x2269, x2155, x2270, x2217, x2271, x2273, x2274, x2160, x2275, x2222, x2276, x2278, x2279, x2165, x2280, x2225, x2281, x2283, x2284, x2167, x32, x2306, x2309, x2311, x2307, x2312, x2304, x2313, x2315, x2316, x2305, x2317, x2302, x2318, x2320, x2321, x2303, x2322, x2300, x2323, x2325, x2326, x2301, x2327, x2298, x2328, x2330, x2331, x2299, x2332, x2296, x2333, x2335, x2336, x2297, x2337, x2294, x2338, x2340, x2341, x2295, x2342, x2292, x2343, x2345, x2346, x2293, x2347, x2290, x2348, x2350, x2351, x2291, x2352, x2288, x2353, x2355, x2356, x2289, x2357, x2286, x2358, x2360, x2361, x2287, x2308, x2230, x2364, x2233, x2365, x2310, x2366, x2368, x2369, x2237, x2370, x2314, x2371, x2373, x2374, x2242, x2375, x2319, x2376, x2378, x2379, x2247, x2380, x2324, x2381, x2383, x2384, x2252, x2385, x2329, x2386, x2388, x2389, x2257, x2390, x2334, x2391, x2393, x2394, x2262, x2395, x2339, x2396, x2398, x2399, x2267, x2400, x2344, x2401, x2403, x2404, x2272, x2405, x2349, x2406, x2408, x2409, x2277, x2410, x2354, x2411, x2413, x2414, x2282, x2415, x2359, x2416, x2418, x2419, x2285, x2420, x2362, x2421, x2423, x2439, x2442, x2446, x2440, x2447, x2437, x2448, x2450, x2451, x2438, x2452, x2435, x2453, x2455, x2456, x2436, x2457, x2433, x2458, x2460, x2461, x2434, x2462, x2431, x2463, x2465, x2466, x2432, x2467, x2429, x2468, x2470, x2471, x2430, x2472, x2427, x2473, x2475, x2476, x2428, x2477, x2425, x2478, x2480, x2481, x2426, x2443, x2483, x2363, x2484, x2367, x2485, x2444, x2486, x2488, x2489, x2372, x2491, x2377, x2492, x2441, x2493, x2495, x2496, x2382, x2497, x2445, x2498, x2500, x2501, x2387, x2502, x2449, x2503, x2505, x2506, x2392, x2507, x2454, x2508, x2510, x2511, x2397, x2512, x2459, x2513, x2515, x2516, x2402, x2517, x2464, x2518, x2520, x2521, x2407, x2522, x2469, x2523, x2525, x2526, x2412, x2527, x2474, x2528, x2530, x2531, x2417, x2532, x2479, x2533, x2535, x2536, x2422, x2537, x2482, x2538, x2540, x2541, x2424, x33, x2563, x2566, x2568, x2564, x2569, x2561, x2570, x2572, x2573, x2562, x2574, x2559, x2575, x2577, x2578, x2560, x2579, x2557, x2580, x2582, x2583, x2558, x2584, x2555, x2585, x2587, x2588, x2556, x2589, x2553, x2590, x2592, x2593, x2554, x2594, x2551, x2595, x2597, x2598, x2552, x2599, x2549, x2600, x2602, x2603, x2550, x2604, x2547, x2605, x2607, x2608, x2548, x2609, x2545, x2610, x2612, x2613, x2546, x2614, x2543, x2615, x2617, x2618, x2544, x2565, x2487, x2621, x2490, x2622, x2567, x2623, x2625, x2626, x2494, x2627, x2571, x2628, x2630, x2631, x2499, x2632, x2576, x2633, x2635, x2636, x2504, x2637, x2581, x2638, x2640, x2641, x2509, x2642, x2586, x2643, x2645, x2646, x2514, x2647, x2591, x2648, x2650, x2651, x2519, x2652, x2596, x2653, x2655, x2656, x2524, x2657, x2601, x2658, x2660, x2661, x2529, x2662, x2606, x2663, x2665, x2666, x2534, x2667, x2611, x2668, x2670, x2671, x2539, x2672, x2616, x2673, x2675, x2676, x2542, x2677, x2619, x2678, x2680, x2696, x2699, x2703, x2697, x2704, x2694, x2705, x2707, x2708, x2695, x2709, x2692, x2710, x2712, x2713, x2693, x2714, x2690, x2715, x2717, x2718, x2691, x2719, x2688, x2720, x2722, x2723, x2689, x2724, x2686, x2725, x2727, x2728, x2687, x2729, x2684, x2730, x2732, x2733, x2685, x2734, x2682, x2735, x2737, x2738, x2683, x2700, x2740, x2620, x2741, x2624, x2742, x2701, x2743, x2745, x2746, x2629, x2748, x2634, x2749, x2698, x2750, x2752, x2753, x2639, x2754, x2702, x2755, x2757, x2758, x2644, x2759, x2706, x2760, x2762, x2763, x2649, x2764, x2711, x2765, x2767, x2768, x2654, x2769, x2716, x2770, x2772, x2773, x2659, x2774, x2721, x2775, x2777, x2778, x2664, x2779, x2726, x2780, x2782, x2783, x2669, x2784, x2731, x2785, x2787, x2788, x2674, x2789, x2736, x2790, x2792, x2793, x2679, x2794, x2739, x2795, x2797, x2798, x2681, x23, x22, x21, x20, x19, x18, x17, x16, x15, x14, x13, x34, x12, x2820, x2823, x2825, x2821, x2826, x2818, x2827, x2829, x2830, x2819, x2831, x2816, x2832, x2834, x2835, x2817, x2836, x2814, x2837, x2839, x2840, x2815, x2841, x2812, x2842, x2844, x2845, x2813, x2846, x2810, x2847, x2849, x2850, x2811, x2851, x2808, x2852, x2854, x2855, x2809, x2856, x2806, x2857, x2859, x2860, x2807, x2861, x2804, x2862, x2864, x2865, x2805, x2866, x2802, x2867, x2869, x2870, x2803, x2871, x2800, x2872, x2874, x2875, x2801, x2822, x2744, x2878, x2747, x2879, x2824, x2880, x2882, x2883, x2751, x2884, x2828, x2885, x2887, x2888, x2756, x2889, x2833, x2890, x2892, x2893, x2761, x2894, x2838, x2895, x2897, x2898, x2766, x2899, x2843, x2900, x2902, x2903, x2771, x2904, x2848, x2905, x2907, x2908, x2776, x2909, x2853, x2910, x2912, x2913, x2781, x2914, x2858, x2915, x2917, x2918, x2786, x2919, x2863, x2920, x2922, x2923, x2791, x2924, x2868, x2925, x2927, x2928, x2796, x2929, x2873, x2930, x2932, x2933, x2799, x2934, x2876, x2935, x2937, x2953, x2956, x2960, x2954, x2961, x2951, x2962, x2964, x2965, x2952, x2966, x2949, x2967, x2969, x2970, x2950, x2971, x2947, x2972, x2974, x2975, x2948, x2976, x2945, x2977, x2979, x2980, x2946, x2981, x2943, x2982, x2984, x2985, x2944, x2986, x2941, x2987, x2989, x2990, x2942, x2991, x2939, x2992, x2994, x2995, x2940, x2957, x2997, x2877, x2998, x2881, x2999, x2958, x3000, x3002, x3003, x2886, x3005, x2891, x3006, x2955, x3007, x3009, x3010, x2896, x3011, x2959, x3012, x3014, x3015, x2901, x3016, x2963, x3017, x3019, x3020, x2906, x3021, x2968, x3022, x3024, x3025, x2911, x3026, x2973, x3027, x3029, x3030, x2916, x3031, x2978, x3032, x3034, x3035, x2921, x3036, x2983, x3037, x3039, x3040, x2926, x3041, x2988, x3042, x3044, x3045, x2931, x3046, x2993, x3047, x3049, x3050, x2936, x3051, x2996, x3052, x3054, x3055, x2938, x3058, x3060, x3062, x3063, x3064, x3066, x3067, x3068, x3069, x3071, x3072, x3073, x3074, x3076, x3077, x3078, x3079, x3081, x3082, x3083, x3084, x3086, x3087, x3088, x3089, x3091, x3092, x3093, x3094, x3096, x3097, x3098, x3099, x3101, x3102, x3103, x3104, x3106, x3107, x3056, x3108, x3001, x3110, x3057, x3111, x3004, x3113, x3059, x3114, x3008, x3116, x3061, x3117, x3013, x3119, x3065, x3120, x3018, x3122, x3070, x3123, x3023, x3125, x3075, x3126, x3028, x3128, x3080, x3129, x3033, x3131, x3085, x3132, x3038, x3134, x3090, x3135, x3043, x3137, x3095, x3138, x3048, x3140, x3100, x3141, x3109, x3053, x3143, x3105, x3144, x3112, x3115, x3118, x3121, x3124, x3127, x3130, x3133, x3136, x3139, x3142, x3145, x3146, x3147, x3148, x3149, x3150, x3151, x3152, x3153, x3154, x3155, x3156, x3157;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
x12 = _br2_load((in1)+((uintptr_t)0ULL), sizeof(uintptr_t));
x13 = _br2_load((in1)+((uintptr_t)4ULL), sizeof(uintptr_t));
x14 = _br2_load((in1)+((uintptr_t)8ULL), sizeof(uintptr_t));
x15 = _br2_load((in1)+((uintptr_t)12ULL), sizeof(uintptr_t));
x16 = _br2_load((in1)+((uintptr_t)16ULL), sizeof(uintptr_t));
x17 = _br2_load((in1)+((uintptr_t)20ULL), sizeof(uintptr_t));
x18 = _br2_load((in1)+((uintptr_t)24ULL), sizeof(uintptr_t));
x19 = _br2_load((in1)+((uintptr_t)28ULL), sizeof(uintptr_t));
x20 = _br2_load((in1)+((uintptr_t)32ULL), sizeof(uintptr_t));
x21 = _br2_load((in1)+((uintptr_t)36ULL), sizeof(uintptr_t));
x22 = _br2_load((in1)+((uintptr_t)40ULL), sizeof(uintptr_t));
x23 = _br2_load((in1)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x24 = x1;
x25 = x2;
x26 = x3;
x27 = x4;
x28 = x5;
x29 = x6;
x30 = x7;
x31 = x8;
x32 = x9;
x33 = x10;
x34 = x11;
x35 = x0;
x36 = (x35)*(x23);
x37 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x23))>>32 : ((__uint128_t)(x35)*(x23))>>64;
x38 = (x35)*(x22);
x39 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x22))>>32 : ((__uint128_t)(x35)*(x22))>>64;
x40 = (x35)*(x21);
x41 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x21))>>32 : ((__uint128_t)(x35)*(x21))>>64;
x42 = (x35)*(x20);
x43 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x20))>>32 : ((__uint128_t)(x35)*(x20))>>64;
x44 = (x35)*(x19);
x45 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x19))>>32 : ((__uint128_t)(x35)*(x19))>>64;
x46 = (x35)*(x18);
x47 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x18))>>32 : ((__uint128_t)(x35)*(x18))>>64;
x48 = (x35)*(x17);
x49 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x17))>>32 : ((__uint128_t)(x35)*(x17))>>64;
x50 = (x35)*(x16);
x51 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x16))>>32 : ((__uint128_t)(x35)*(x16))>>64;
x52 = (x35)*(x15);
x53 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x15))>>32 : ((__uint128_t)(x35)*(x15))>>64;
x54 = (x35)*(x14);
x55 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x14))>>32 : ((__uint128_t)(x35)*(x14))>>64;
x56 = (x35)*(x13);
x57 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x13))>>32 : ((__uint128_t)(x35)*(x13))>>64;
x58 = (x35)*(x12);
x59 = sizeof(intptr_t) == 4 ? ((uint64_t)(x35)*(x12))>>32 : ((__uint128_t)(x35)*(x12))>>64;
x60 = (x59)+(x56);
x61 = (x60)<(x59);
x62 = (x61)+(x57);
x63 = (x62)<(x57);
x64 = (x62)+(x54);
x65 = (x64)<(x54);
x66 = (x63)+(x65);
x67 = (x66)+(x55);
x68 = (x67)<(x55);
x69 = (x67)+(x52);
x70 = (x69)<(x52);
x71 = (x68)+(x70);
x72 = (x71)+(x53);
x73 = (x72)<(x53);
x74 = (x72)+(x50);
x75 = (x74)<(x50);
x76 = (x73)+(x75);
x77 = (x76)+(x51);
x78 = (x77)<(x51);
x79 = (x77)+(x48);
x80 = (x79)<(x48);
x81 = (x78)+(x80);
x82 = (x81)+(x49);
x83 = (x82)<(x49);
x84 = (x82)+(x46);
x85 = (x84)<(x46);
x86 = (x83)+(x85);
x87 = (x86)+(x47);
x88 = (x87)<(x47);
x89 = (x87)+(x44);
x90 = (x89)<(x44);
x91 = (x88)+(x90);
x92 = (x91)+(x45);
x93 = (x92)<(x45);
x94 = (x92)+(x42);
x95 = (x94)<(x42);
x96 = (x93)+(x95);
x97 = (x96)+(x43);
x98 = (x97)<(x43);
x99 = (x97)+(x40);
x100 = (x99)<(x40);
x101 = (x98)+(x100);
x102 = (x101)+(x41);
x103 = (x102)<(x41);
x104 = (x102)+(x38);
x105 = (x104)<(x38);
x106 = (x103)+(x105);
x107 = (x106)+(x39);
x108 = (x107)<(x39);
x109 = (x107)+(x36);
x110 = (x109)<(x36);
x111 = (x108)+(x110);
x112 = (x111)+(x37);
x113 = (x58)*((uintptr_t)4294967295ULL);
x114 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x115 = (x58)*((uintptr_t)4294967295ULL);
x116 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x117 = (x58)*((uintptr_t)4294967295ULL);
x118 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x119 = (x58)*((uintptr_t)4294967295ULL);
x120 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x121 = (x58)*((uintptr_t)4294967295ULL);
x122 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x123 = (x58)*((uintptr_t)4294967295ULL);
x124 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x125 = (x58)*((uintptr_t)4294967295ULL);
x126 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x127 = (x58)*((uintptr_t)4294967294ULL);
x128 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967294ULL))>>64;
x129 = (x58)*((uintptr_t)4294967295ULL);
x130 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x131 = (x58)*((uintptr_t)4294967295ULL);
x132 = sizeof(intptr_t) == 4 ? ((uint64_t)(x58)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x58)*((uintptr_t)4294967295ULL))>>64;
x133 = (x130)+(x127);
x134 = (x133)<(x130);
x135 = (x134)+(x128);
x136 = (x135)<(x128);
x137 = (x135)+(x125);
x138 = (x137)<(x125);
x139 = (x136)+(x138);
x140 = (x139)+(x126);
x141 = (x140)<(x126);
x142 = (x140)+(x123);
x143 = (x142)<(x123);
x144 = (x141)+(x143);
x145 = (x144)+(x124);
x146 = (x145)<(x124);
x147 = (x145)+(x121);
x148 = (x147)<(x121);
x149 = (x146)+(x148);
x150 = (x149)+(x122);
x151 = (x150)<(x122);
x152 = (x150)+(x119);
x153 = (x152)<(x119);
x154 = (x151)+(x153);
x155 = (x154)+(x120);
x156 = (x155)<(x120);
x157 = (x155)+(x117);
x158 = (x157)<(x117);
x159 = (x156)+(x158);
x160 = (x159)+(x118);
x161 = (x160)<(x118);
x162 = (x160)+(x115);
x163 = (x162)<(x115);
x164 = (x161)+(x163);
x165 = (x164)+(x116);
x166 = (x165)<(x116);
x167 = (x165)+(x113);
x168 = (x167)<(x113);
x169 = (x166)+(x168);
x170 = (x169)+(x114);
x171 = (x58)+(x131);
x172 = (x171)<(x58);
x173 = (x172)+(x60);
x174 = (x173)<(x60);
x175 = (x173)+(x132);
x176 = (x175)<(x132);
x177 = (x174)+(x176);
x178 = (x177)+(x64);
x179 = (x178)<(x64);
x180 = (x179)+(x69);
x181 = (x180)<(x69);
x182 = (x180)+(x129);
x183 = (x182)<(x129);
x184 = (x181)+(x183);
x185 = (x184)+(x74);
x186 = (x185)<(x74);
x187 = (x185)+(x133);
x188 = (x187)<(x133);
x189 = (x186)+(x188);
x190 = (x189)+(x79);
x191 = (x190)<(x79);
x192 = (x190)+(x137);
x193 = (x192)<(x137);
x194 = (x191)+(x193);
x195 = (x194)+(x84);
x196 = (x195)<(x84);
x197 = (x195)+(x142);
x198 = (x197)<(x142);
x199 = (x196)+(x198);
x200 = (x199)+(x89);
x201 = (x200)<(x89);
x202 = (x200)+(x147);
x203 = (x202)<(x147);
x204 = (x201)+(x203);
x205 = (x204)+(x94);
x206 = (x205)<(x94);
x207 = (x205)+(x152);
x208 = (x207)<(x152);
x209 = (x206)+(x208);
x210 = (x209)+(x99);
x211 = (x210)<(x99);
x212 = (x210)+(x157);
x213 = (x212)<(x157);
x214 = (x211)+(x213);
x215 = (x214)+(x104);
x216 = (x215)<(x104);
x217 = (x215)+(x162);
x218 = (x217)<(x162);
x219 = (x216)+(x218);
x220 = (x219)+(x109);
x221 = (x220)<(x109);
x222 = (x220)+(x167);
x223 = (x222)<(x167);
x224 = (x221)+(x223);
x225 = (x224)+(x112);
x226 = (x225)<(x112);
x227 = (x225)+(x170);
x228 = (x227)<(x170);
x229 = (x226)+(x228);
x230 = (x24)*(x23);
x231 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x23))>>32 : ((__uint128_t)(x24)*(x23))>>64;
x232 = (x24)*(x22);
x233 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x22))>>32 : ((__uint128_t)(x24)*(x22))>>64;
x234 = (x24)*(x21);
x235 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x21))>>32 : ((__uint128_t)(x24)*(x21))>>64;
x236 = (x24)*(x20);
x237 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x20))>>32 : ((__uint128_t)(x24)*(x20))>>64;
x238 = (x24)*(x19);
x239 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x19))>>32 : ((__uint128_t)(x24)*(x19))>>64;
x240 = (x24)*(x18);
x241 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x18))>>32 : ((__uint128_t)(x24)*(x18))>>64;
x242 = (x24)*(x17);
x243 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x17))>>32 : ((__uint128_t)(x24)*(x17))>>64;
x244 = (x24)*(x16);
x245 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x16))>>32 : ((__uint128_t)(x24)*(x16))>>64;
x246 = (x24)*(x15);
x247 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x15))>>32 : ((__uint128_t)(x24)*(x15))>>64;
x248 = (x24)*(x14);
x249 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x14))>>32 : ((__uint128_t)(x24)*(x14))>>64;
x250 = (x24)*(x13);
x251 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x13))>>32 : ((__uint128_t)(x24)*(x13))>>64;
x252 = (x24)*(x12);
x253 = sizeof(intptr_t) == 4 ? ((uint64_t)(x24)*(x12))>>32 : ((__uint128_t)(x24)*(x12))>>64;
x254 = (x253)+(x250);
x255 = (x254)<(x253);
x256 = (x255)+(x251);
x257 = (x256)<(x251);
x258 = (x256)+(x248);
x259 = (x258)<(x248);
x260 = (x257)+(x259);
x261 = (x260)+(x249);
x262 = (x261)<(x249);
x263 = (x261)+(x246);
x264 = (x263)<(x246);
x265 = (x262)+(x264);
x266 = (x265)+(x247);
x267 = (x266)<(x247);
x268 = (x266)+(x244);
x269 = (x268)<(x244);
x270 = (x267)+(x269);
x271 = (x270)+(x245);
x272 = (x271)<(x245);
x273 = (x271)+(x242);
x274 = (x273)<(x242);
x275 = (x272)+(x274);
x276 = (x275)+(x243);
x277 = (x276)<(x243);
x278 = (x276)+(x240);
x279 = (x278)<(x240);
x280 = (x277)+(x279);
x281 = (x280)+(x241);
x282 = (x281)<(x241);
x283 = (x281)+(x238);
x284 = (x283)<(x238);
x285 = (x282)+(x284);
x286 = (x285)+(x239);
x287 = (x286)<(x239);
x288 = (x286)+(x236);
x289 = (x288)<(x236);
x290 = (x287)+(x289);
x291 = (x290)+(x237);
x292 = (x291)<(x237);
x293 = (x291)+(x234);
x294 = (x293)<(x234);
x295 = (x292)+(x294);
x296 = (x295)+(x235);
x297 = (x296)<(x235);
x298 = (x296)+(x232);
x299 = (x298)<(x232);
x300 = (x297)+(x299);
x301 = (x300)+(x233);
x302 = (x301)<(x233);
x303 = (x301)+(x230);
x304 = (x303)<(x230);
x305 = (x302)+(x304);
x306 = (x305)+(x231);
x307 = (x175)+(x252);
x308 = (x307)<(x175);
x309 = (x308)+(x178);
x310 = (x309)<(x178);
x311 = (x309)+(x254);
x312 = (x311)<(x254);
x313 = (x310)+(x312);
x314 = (x313)+(x182);
x315 = (x314)<(x182);
x316 = (x314)+(x258);
x317 = (x316)<(x258);
x318 = (x315)+(x317);
x319 = (x318)+(x187);
x320 = (x319)<(x187);
x321 = (x319)+(x263);
x322 = (x321)<(x263);
x323 = (x320)+(x322);
x324 = (x323)+(x192);
x325 = (x324)<(x192);
x326 = (x324)+(x268);
x327 = (x326)<(x268);
x328 = (x325)+(x327);
x329 = (x328)+(x197);
x330 = (x329)<(x197);
x331 = (x329)+(x273);
x332 = (x331)<(x273);
x333 = (x330)+(x332);
x334 = (x333)+(x202);
x335 = (x334)<(x202);
x336 = (x334)+(x278);
x337 = (x336)<(x278);
x338 = (x335)+(x337);
x339 = (x338)+(x207);
x340 = (x339)<(x207);
x341 = (x339)+(x283);
x342 = (x341)<(x283);
x343 = (x340)+(x342);
x344 = (x343)+(x212);
x345 = (x344)<(x212);
x346 = (x344)+(x288);
x347 = (x346)<(x288);
x348 = (x345)+(x347);
x349 = (x348)+(x217);
x350 = (x349)<(x217);
x351 = (x349)+(x293);
x352 = (x351)<(x293);
x353 = (x350)+(x352);
x354 = (x353)+(x222);
x355 = (x354)<(x222);
x356 = (x354)+(x298);
x357 = (x356)<(x298);
x358 = (x355)+(x357);
x359 = (x358)+(x227);
x360 = (x359)<(x227);
x361 = (x359)+(x303);
x362 = (x361)<(x303);
x363 = (x360)+(x362);
x364 = (x363)+(x229);
x365 = (x364)<(x229);
x366 = (x364)+(x306);
x367 = (x366)<(x306);
x368 = (x365)+(x367);
x369 = (x307)*((uintptr_t)4294967295ULL);
x370 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x371 = (x307)*((uintptr_t)4294967295ULL);
x372 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x373 = (x307)*((uintptr_t)4294967295ULL);
x374 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x375 = (x307)*((uintptr_t)4294967295ULL);
x376 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x377 = (x307)*((uintptr_t)4294967295ULL);
x378 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x379 = (x307)*((uintptr_t)4294967295ULL);
x380 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x381 = (x307)*((uintptr_t)4294967295ULL);
x382 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x383 = (x307)*((uintptr_t)4294967294ULL);
x384 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967294ULL))>>64;
x385 = (x307)*((uintptr_t)4294967295ULL);
x386 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x387 = (x307)*((uintptr_t)4294967295ULL);
x388 = sizeof(intptr_t) == 4 ? ((uint64_t)(x307)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x307)*((uintptr_t)4294967295ULL))>>64;
x389 = (x386)+(x383);
x390 = (x389)<(x386);
x391 = (x390)+(x384);
x392 = (x391)<(x384);
x393 = (x391)+(x381);
x394 = (x393)<(x381);
x395 = (x392)+(x394);
x396 = (x395)+(x382);
x397 = (x396)<(x382);
x398 = (x396)+(x379);
x399 = (x398)<(x379);
x400 = (x397)+(x399);
x401 = (x400)+(x380);
x402 = (x401)<(x380);
x403 = (x401)+(x377);
x404 = (x403)<(x377);
x405 = (x402)+(x404);
x406 = (x405)+(x378);
x407 = (x406)<(x378);
x408 = (x406)+(x375);
x409 = (x408)<(x375);
x410 = (x407)+(x409);
x411 = (x410)+(x376);
x412 = (x411)<(x376);
x413 = (x411)+(x373);
x414 = (x413)<(x373);
x415 = (x412)+(x414);
x416 = (x415)+(x374);
x417 = (x416)<(x374);
x418 = (x416)+(x371);
x419 = (x418)<(x371);
x420 = (x417)+(x419);
x421 = (x420)+(x372);
x422 = (x421)<(x372);
x423 = (x421)+(x369);
x424 = (x423)<(x369);
x425 = (x422)+(x424);
x426 = (x425)+(x370);
x427 = (x307)+(x387);
x428 = (x427)<(x307);
x429 = (x428)+(x311);
x430 = (x429)<(x311);
x431 = (x429)+(x388);
x432 = (x431)<(x388);
x433 = (x430)+(x432);
x434 = (x433)+(x316);
x435 = (x434)<(x316);
x436 = (x435)+(x321);
x437 = (x436)<(x321);
x438 = (x436)+(x385);
x439 = (x438)<(x385);
x440 = (x437)+(x439);
x441 = (x440)+(x326);
x442 = (x441)<(x326);
x443 = (x441)+(x389);
x444 = (x443)<(x389);
x445 = (x442)+(x444);
x446 = (x445)+(x331);
x447 = (x446)<(x331);
x448 = (x446)+(x393);
x449 = (x448)<(x393);
x450 = (x447)+(x449);
x451 = (x450)+(x336);
x452 = (x451)<(x336);
x453 = (x451)+(x398);
x454 = (x453)<(x398);
x455 = (x452)+(x454);
x456 = (x455)+(x341);
x457 = (x456)<(x341);
x458 = (x456)+(x403);
x459 = (x458)<(x403);
x460 = (x457)+(x459);
x461 = (x460)+(x346);
x462 = (x461)<(x346);
x463 = (x461)+(x408);
x464 = (x463)<(x408);
x465 = (x462)+(x464);
x466 = (x465)+(x351);
x467 = (x466)<(x351);
x468 = (x466)+(x413);
x469 = (x468)<(x413);
x470 = (x467)+(x469);
x471 = (x470)+(x356);
x472 = (x471)<(x356);
x473 = (x471)+(x418);
x474 = (x473)<(x418);
x475 = (x472)+(x474);
x476 = (x475)+(x361);
x477 = (x476)<(x361);
x478 = (x476)+(x423);
x479 = (x478)<(x423);
x480 = (x477)+(x479);
x481 = (x480)+(x366);
x482 = (x481)<(x366);
x483 = (x481)+(x426);
x484 = (x483)<(x426);
x485 = (x482)+(x484);
x486 = (x485)+(x368);
x487 = (x25)*(x23);
x488 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x23))>>32 : ((__uint128_t)(x25)*(x23))>>64;
x489 = (x25)*(x22);
x490 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x22))>>32 : ((__uint128_t)(x25)*(x22))>>64;
x491 = (x25)*(x21);
x492 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x21))>>32 : ((__uint128_t)(x25)*(x21))>>64;
x493 = (x25)*(x20);
x494 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x20))>>32 : ((__uint128_t)(x25)*(x20))>>64;
x495 = (x25)*(x19);
x496 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x19))>>32 : ((__uint128_t)(x25)*(x19))>>64;
x497 = (x25)*(x18);
x498 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x18))>>32 : ((__uint128_t)(x25)*(x18))>>64;
x499 = (x25)*(x17);
x500 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x17))>>32 : ((__uint128_t)(x25)*(x17))>>64;
x501 = (x25)*(x16);
x502 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x16))>>32 : ((__uint128_t)(x25)*(x16))>>64;
x503 = (x25)*(x15);
x504 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x15))>>32 : ((__uint128_t)(x25)*(x15))>>64;
x505 = (x25)*(x14);
x506 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x14))>>32 : ((__uint128_t)(x25)*(x14))>>64;
x507 = (x25)*(x13);
x508 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x13))>>32 : ((__uint128_t)(x25)*(x13))>>64;
x509 = (x25)*(x12);
x510 = sizeof(intptr_t) == 4 ? ((uint64_t)(x25)*(x12))>>32 : ((__uint128_t)(x25)*(x12))>>64;
x511 = (x510)+(x507);
x512 = (x511)<(x510);
x513 = (x512)+(x508);
x514 = (x513)<(x508);
x515 = (x513)+(x505);
x516 = (x515)<(x505);
x517 = (x514)+(x516);
x518 = (x517)+(x506);
x519 = (x518)<(x506);
x520 = (x518)+(x503);
x521 = (x520)<(x503);
x522 = (x519)+(x521);
x523 = (x522)+(x504);
x524 = (x523)<(x504);
x525 = (x523)+(x501);
x526 = (x525)<(x501);
x527 = (x524)+(x526);
x528 = (x527)+(x502);
x529 = (x528)<(x502);
x530 = (x528)+(x499);
x531 = (x530)<(x499);
x532 = (x529)+(x531);
x533 = (x532)+(x500);
x534 = (x533)<(x500);
x535 = (x533)+(x497);
x536 = (x535)<(x497);
x537 = (x534)+(x536);
x538 = (x537)+(x498);
x539 = (x538)<(x498);
x540 = (x538)+(x495);
x541 = (x540)<(x495);
x542 = (x539)+(x541);
x543 = (x542)+(x496);
x544 = (x543)<(x496);
x545 = (x543)+(x493);
x546 = (x545)<(x493);
x547 = (x544)+(x546);
x548 = (x547)+(x494);
x549 = (x548)<(x494);
x550 = (x548)+(x491);
x551 = (x550)<(x491);
x552 = (x549)+(x551);
x553 = (x552)+(x492);
x554 = (x553)<(x492);
x555 = (x553)+(x489);
x556 = (x555)<(x489);
x557 = (x554)+(x556);
x558 = (x557)+(x490);
x559 = (x558)<(x490);
x560 = (x558)+(x487);
x561 = (x560)<(x487);
x562 = (x559)+(x561);
x563 = (x562)+(x488);
x564 = (x431)+(x509);
x565 = (x564)<(x431);
x566 = (x565)+(x434);
x567 = (x566)<(x434);
x568 = (x566)+(x511);
x569 = (x568)<(x511);
x570 = (x567)+(x569);
x571 = (x570)+(x438);
x572 = (x571)<(x438);
x573 = (x571)+(x515);
x574 = (x573)<(x515);
x575 = (x572)+(x574);
x576 = (x575)+(x443);
x577 = (x576)<(x443);
x578 = (x576)+(x520);
x579 = (x578)<(x520);
x580 = (x577)+(x579);
x581 = (x580)+(x448);
x582 = (x581)<(x448);
x583 = (x581)+(x525);
x584 = (x583)<(x525);
x585 = (x582)+(x584);
x586 = (x585)+(x453);
x587 = (x586)<(x453);
x588 = (x586)+(x530);
x589 = (x588)<(x530);
x590 = (x587)+(x589);
x591 = (x590)+(x458);
x592 = (x591)<(x458);
x593 = (x591)+(x535);
x594 = (x593)<(x535);
x595 = (x592)+(x594);
x596 = (x595)+(x463);
x597 = (x596)<(x463);
x598 = (x596)+(x540);
x599 = (x598)<(x540);
x600 = (x597)+(x599);
x601 = (x600)+(x468);
x602 = (x601)<(x468);
x603 = (x601)+(x545);
x604 = (x603)<(x545);
x605 = (x602)+(x604);
x606 = (x605)+(x473);
x607 = (x606)<(x473);
x608 = (x606)+(x550);
x609 = (x608)<(x550);
x610 = (x607)+(x609);
x611 = (x610)+(x478);
x612 = (x611)<(x478);
x613 = (x611)+(x555);
x614 = (x613)<(x555);
x615 = (x612)+(x614);
x616 = (x615)+(x483);
x617 = (x616)<(x483);
x618 = (x616)+(x560);
x619 = (x618)<(x560);
x620 = (x617)+(x619);
x621 = (x620)+(x486);
x622 = (x621)<(x486);
x623 = (x621)+(x563);
x624 = (x623)<(x563);
x625 = (x622)+(x624);
x626 = (x564)*((uintptr_t)4294967295ULL);
x627 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x628 = (x564)*((uintptr_t)4294967295ULL);
x629 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x630 = (x564)*((uintptr_t)4294967295ULL);
x631 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x632 = (x564)*((uintptr_t)4294967295ULL);
x633 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x634 = (x564)*((uintptr_t)4294967295ULL);
x635 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x636 = (x564)*((uintptr_t)4294967295ULL);
x637 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x638 = (x564)*((uintptr_t)4294967295ULL);
x639 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x640 = (x564)*((uintptr_t)4294967294ULL);
x641 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967294ULL))>>64;
x642 = (x564)*((uintptr_t)4294967295ULL);
x643 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x644 = (x564)*((uintptr_t)4294967295ULL);
x645 = sizeof(intptr_t) == 4 ? ((uint64_t)(x564)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x564)*((uintptr_t)4294967295ULL))>>64;
x646 = (x643)+(x640);
x647 = (x646)<(x643);
x648 = (x647)+(x641);
x649 = (x648)<(x641);
x650 = (x648)+(x638);
x651 = (x650)<(x638);
x652 = (x649)+(x651);
x653 = (x652)+(x639);
x654 = (x653)<(x639);
x655 = (x653)+(x636);
x656 = (x655)<(x636);
x657 = (x654)+(x656);
x658 = (x657)+(x637);
x659 = (x658)<(x637);
x660 = (x658)+(x634);
x661 = (x660)<(x634);
x662 = (x659)+(x661);
x663 = (x662)+(x635);
x664 = (x663)<(x635);
x665 = (x663)+(x632);
x666 = (x665)<(x632);
x667 = (x664)+(x666);
x668 = (x667)+(x633);
x669 = (x668)<(x633);
x670 = (x668)+(x630);
x671 = (x670)<(x630);
x672 = (x669)+(x671);
x673 = (x672)+(x631);
x674 = (x673)<(x631);
x675 = (x673)+(x628);
x676 = (x675)<(x628);
x677 = (x674)+(x676);
x678 = (x677)+(x629);
x679 = (x678)<(x629);
x680 = (x678)+(x626);
x681 = (x680)<(x626);
x682 = (x679)+(x681);
x683 = (x682)+(x627);
x684 = (x564)+(x644);
x685 = (x684)<(x564);
x686 = (x685)+(x568);
x687 = (x686)<(x568);
x688 = (x686)+(x645);
x689 = (x688)<(x645);
x690 = (x687)+(x689);
x691 = (x690)+(x573);
x692 = (x691)<(x573);
x693 = (x692)+(x578);
x694 = (x693)<(x578);
x695 = (x693)+(x642);
x696 = (x695)<(x642);
x697 = (x694)+(x696);
x698 = (x697)+(x583);
x699 = (x698)<(x583);
x700 = (x698)+(x646);
x701 = (x700)<(x646);
x702 = (x699)+(x701);
x703 = (x702)+(x588);
x704 = (x703)<(x588);
x705 = (x703)+(x650);
x706 = (x705)<(x650);
x707 = (x704)+(x706);
x708 = (x707)+(x593);
x709 = (x708)<(x593);
x710 = (x708)+(x655);
x711 = (x710)<(x655);
x712 = (x709)+(x711);
x713 = (x712)+(x598);
x714 = (x713)<(x598);
x715 = (x713)+(x660);
x716 = (x715)<(x660);
x717 = (x714)+(x716);
x718 = (x717)+(x603);
x719 = (x718)<(x603);
x720 = (x718)+(x665);
x721 = (x720)<(x665);
x722 = (x719)+(x721);
x723 = (x722)+(x608);
x724 = (x723)<(x608);
x725 = (x723)+(x670);
x726 = (x725)<(x670);
x727 = (x724)+(x726);
x728 = (x727)+(x613);
x729 = (x728)<(x613);
x730 = (x728)+(x675);
x731 = (x730)<(x675);
x732 = (x729)+(x731);
x733 = (x732)+(x618);
x734 = (x733)<(x618);
x735 = (x733)+(x680);
x736 = (x735)<(x680);
x737 = (x734)+(x736);
x738 = (x737)+(x623);
x739 = (x738)<(x623);
x740 = (x738)+(x683);
x741 = (x740)<(x683);
x742 = (x739)+(x741);
x743 = (x742)+(x625);
x744 = (x26)*(x23);
x745 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x23))>>32 : ((__uint128_t)(x26)*(x23))>>64;
x746 = (x26)*(x22);
x747 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x22))>>32 : ((__uint128_t)(x26)*(x22))>>64;
x748 = (x26)*(x21);
x749 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x21))>>32 : ((__uint128_t)(x26)*(x21))>>64;
x750 = (x26)*(x20);
x751 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x20))>>32 : ((__uint128_t)(x26)*(x20))>>64;
x752 = (x26)*(x19);
x753 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x19))>>32 : ((__uint128_t)(x26)*(x19))>>64;
x754 = (x26)*(x18);
x755 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x18))>>32 : ((__uint128_t)(x26)*(x18))>>64;
x756 = (x26)*(x17);
x757 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x17))>>32 : ((__uint128_t)(x26)*(x17))>>64;
x758 = (x26)*(x16);
x759 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x16))>>32 : ((__uint128_t)(x26)*(x16))>>64;
x760 = (x26)*(x15);
x761 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x15))>>32 : ((__uint128_t)(x26)*(x15))>>64;
x762 = (x26)*(x14);
x763 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x14))>>32 : ((__uint128_t)(x26)*(x14))>>64;
x764 = (x26)*(x13);
x765 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x13))>>32 : ((__uint128_t)(x26)*(x13))>>64;
x766 = (x26)*(x12);
x767 = sizeof(intptr_t) == 4 ? ((uint64_t)(x26)*(x12))>>32 : ((__uint128_t)(x26)*(x12))>>64;
x768 = (x767)+(x764);
x769 = (x768)<(x767);
x770 = (x769)+(x765);
x771 = (x770)<(x765);
x772 = (x770)+(x762);
x773 = (x772)<(x762);
x774 = (x771)+(x773);
x775 = (x774)+(x763);
x776 = (x775)<(x763);
x777 = (x775)+(x760);
x778 = (x777)<(x760);
x779 = (x776)+(x778);
x780 = (x779)+(x761);
x781 = (x780)<(x761);
x782 = (x780)+(x758);
x783 = (x782)<(x758);
x784 = (x781)+(x783);
x785 = (x784)+(x759);
x786 = (x785)<(x759);
x787 = (x785)+(x756);
x788 = (x787)<(x756);
x789 = (x786)+(x788);
x790 = (x789)+(x757);
x791 = (x790)<(x757);
x792 = (x790)+(x754);
x793 = (x792)<(x754);
x794 = (x791)+(x793);
x795 = (x794)+(x755);
x796 = (x795)<(x755);
x797 = (x795)+(x752);
x798 = (x797)<(x752);
x799 = (x796)+(x798);
x800 = (x799)+(x753);
x801 = (x800)<(x753);
x802 = (x800)+(x750);
x803 = (x802)<(x750);
x804 = (x801)+(x803);
x805 = (x804)+(x751);
x806 = (x805)<(x751);
x807 = (x805)+(x748);
x808 = (x807)<(x748);
x809 = (x806)+(x808);
x810 = (x809)+(x749);
x811 = (x810)<(x749);
x812 = (x810)+(x746);
x813 = (x812)<(x746);
x814 = (x811)+(x813);
x815 = (x814)+(x747);
x816 = (x815)<(x747);
x817 = (x815)+(x744);
x818 = (x817)<(x744);
x819 = (x816)+(x818);
x820 = (x819)+(x745);
x821 = (x688)+(x766);
x822 = (x821)<(x688);
x823 = (x822)+(x691);
x824 = (x823)<(x691);
x825 = (x823)+(x768);
x826 = (x825)<(x768);
x827 = (x824)+(x826);
x828 = (x827)+(x695);
x829 = (x828)<(x695);
x830 = (x828)+(x772);
x831 = (x830)<(x772);
x832 = (x829)+(x831);
x833 = (x832)+(x700);
x834 = (x833)<(x700);
x835 = (x833)+(x777);
x836 = (x835)<(x777);
x837 = (x834)+(x836);
x838 = (x837)+(x705);
x839 = (x838)<(x705);
x840 = (x838)+(x782);
x841 = (x840)<(x782);
x842 = (x839)+(x841);
x843 = (x842)+(x710);
x844 = (x843)<(x710);
x845 = (x843)+(x787);
x846 = (x845)<(x787);
x847 = (x844)+(x846);
x848 = (x847)+(x715);
x849 = (x848)<(x715);
x850 = (x848)+(x792);
x851 = (x850)<(x792);
x852 = (x849)+(x851);
x853 = (x852)+(x720);
x854 = (x853)<(x720);
x855 = (x853)+(x797);
x856 = (x855)<(x797);
x857 = (x854)+(x856);
x858 = (x857)+(x725);
x859 = (x858)<(x725);
x860 = (x858)+(x802);
x861 = (x860)<(x802);
x862 = (x859)+(x861);
x863 = (x862)+(x730);
x864 = (x863)<(x730);
x865 = (x863)+(x807);
x866 = (x865)<(x807);
x867 = (x864)+(x866);
x868 = (x867)+(x735);
x869 = (x868)<(x735);
x870 = (x868)+(x812);
x871 = (x870)<(x812);
x872 = (x869)+(x871);
x873 = (x872)+(x740);
x874 = (x873)<(x740);
x875 = (x873)+(x817);
x876 = (x875)<(x817);
x877 = (x874)+(x876);
x878 = (x877)+(x743);
x879 = (x878)<(x743);
x880 = (x878)+(x820);
x881 = (x880)<(x820);
x882 = (x879)+(x881);
x883 = (x821)*((uintptr_t)4294967295ULL);
x884 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x885 = (x821)*((uintptr_t)4294967295ULL);
x886 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x887 = (x821)*((uintptr_t)4294967295ULL);
x888 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x889 = (x821)*((uintptr_t)4294967295ULL);
x890 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x891 = (x821)*((uintptr_t)4294967295ULL);
x892 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x893 = (x821)*((uintptr_t)4294967295ULL);
x894 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x895 = (x821)*((uintptr_t)4294967295ULL);
x896 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x897 = (x821)*((uintptr_t)4294967294ULL);
x898 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967294ULL))>>64;
x899 = (x821)*((uintptr_t)4294967295ULL);
x900 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x901 = (x821)*((uintptr_t)4294967295ULL);
x902 = sizeof(intptr_t) == 4 ? ((uint64_t)(x821)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x821)*((uintptr_t)4294967295ULL))>>64;
x903 = (x900)+(x897);
x904 = (x903)<(x900);
x905 = (x904)+(x898);
x906 = (x905)<(x898);
x907 = (x905)+(x895);
x908 = (x907)<(x895);
x909 = (x906)+(x908);
x910 = (x909)+(x896);
x911 = (x910)<(x896);
x912 = (x910)+(x893);
x913 = (x912)<(x893);
x914 = (x911)+(x913);
x915 = (x914)+(x894);
x916 = (x915)<(x894);
x917 = (x915)+(x891);
x918 = (x917)<(x891);
x919 = (x916)+(x918);
x920 = (x919)+(x892);
x921 = (x920)<(x892);
x922 = (x920)+(x889);
x923 = (x922)<(x889);
x924 = (x921)+(x923);
x925 = (x924)+(x890);
x926 = (x925)<(x890);
x927 = (x925)+(x887);
x928 = (x927)<(x887);
x929 = (x926)+(x928);
x930 = (x929)+(x888);
x931 = (x930)<(x888);
x932 = (x930)+(x885);
x933 = (x932)<(x885);
x934 = (x931)+(x933);
x935 = (x934)+(x886);
x936 = (x935)<(x886);
x937 = (x935)+(x883);
x938 = (x937)<(x883);
x939 = (x936)+(x938);
x940 = (x939)+(x884);
x941 = (x821)+(x901);
x942 = (x941)<(x821);
x943 = (x942)+(x825);
x944 = (x943)<(x825);
x945 = (x943)+(x902);
x946 = (x945)<(x902);
x947 = (x944)+(x946);
x948 = (x947)+(x830);
x949 = (x948)<(x830);
x950 = (x949)+(x835);
x951 = (x950)<(x835);
x952 = (x950)+(x899);
x953 = (x952)<(x899);
x954 = (x951)+(x953);
x955 = (x954)+(x840);
x956 = (x955)<(x840);
x957 = (x955)+(x903);
x958 = (x957)<(x903);
x959 = (x956)+(x958);
x960 = (x959)+(x845);
x961 = (x960)<(x845);
x962 = (x960)+(x907);
x963 = (x962)<(x907);
x964 = (x961)+(x963);
x965 = (x964)+(x850);
x966 = (x965)<(x850);
x967 = (x965)+(x912);
x968 = (x967)<(x912);
x969 = (x966)+(x968);
x970 = (x969)+(x855);
x971 = (x970)<(x855);
x972 = (x970)+(x917);
x973 = (x972)<(x917);
x974 = (x971)+(x973);
x975 = (x974)+(x860);
x976 = (x975)<(x860);
x977 = (x975)+(x922);
x978 = (x977)<(x922);
x979 = (x976)+(x978);
x980 = (x979)+(x865);
x981 = (x980)<(x865);
x982 = (x980)+(x927);
x983 = (x982)<(x927);
x984 = (x981)+(x983);
x985 = (x984)+(x870);
x986 = (x985)<(x870);
x987 = (x985)+(x932);
x988 = (x987)<(x932);
x989 = (x986)+(x988);
x990 = (x989)+(x875);
x991 = (x990)<(x875);
x992 = (x990)+(x937);
x993 = (x992)<(x937);
x994 = (x991)+(x993);
x995 = (x994)+(x880);
x996 = (x995)<(x880);
x997 = (x995)+(x940);
x998 = (x997)<(x940);
x999 = (x996)+(x998);
x1000 = (x999)+(x882);
x1001 = (x27)*(x23);
x1002 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x23))>>32 : ((__uint128_t)(x27)*(x23))>>64;
x1003 = (x27)*(x22);
x1004 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x22))>>32 : ((__uint128_t)(x27)*(x22))>>64;
x1005 = (x27)*(x21);
x1006 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x21))>>32 : ((__uint128_t)(x27)*(x21))>>64;
x1007 = (x27)*(x20);
x1008 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x20))>>32 : ((__uint128_t)(x27)*(x20))>>64;
x1009 = (x27)*(x19);
x1010 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x19))>>32 : ((__uint128_t)(x27)*(x19))>>64;
x1011 = (x27)*(x18);
x1012 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x18))>>32 : ((__uint128_t)(x27)*(x18))>>64;
x1013 = (x27)*(x17);
x1014 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x17))>>32 : ((__uint128_t)(x27)*(x17))>>64;
x1015 = (x27)*(x16);
x1016 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x16))>>32 : ((__uint128_t)(x27)*(x16))>>64;
x1017 = (x27)*(x15);
x1018 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x15))>>32 : ((__uint128_t)(x27)*(x15))>>64;
x1019 = (x27)*(x14);
x1020 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x14))>>32 : ((__uint128_t)(x27)*(x14))>>64;
x1021 = (x27)*(x13);
x1022 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x13))>>32 : ((__uint128_t)(x27)*(x13))>>64;
x1023 = (x27)*(x12);
x1024 = sizeof(intptr_t) == 4 ? ((uint64_t)(x27)*(x12))>>32 : ((__uint128_t)(x27)*(x12))>>64;
x1025 = (x1024)+(x1021);
x1026 = (x1025)<(x1024);
x1027 = (x1026)+(x1022);
x1028 = (x1027)<(x1022);
x1029 = (x1027)+(x1019);
x1030 = (x1029)<(x1019);
x1031 = (x1028)+(x1030);
x1032 = (x1031)+(x1020);
x1033 = (x1032)<(x1020);
x1034 = (x1032)+(x1017);
x1035 = (x1034)<(x1017);
x1036 = (x1033)+(x1035);
x1037 = (x1036)+(x1018);
x1038 = (x1037)<(x1018);
x1039 = (x1037)+(x1015);
x1040 = (x1039)<(x1015);
x1041 = (x1038)+(x1040);
x1042 = (x1041)+(x1016);
x1043 = (x1042)<(x1016);
x1044 = (x1042)+(x1013);
x1045 = (x1044)<(x1013);
x1046 = (x1043)+(x1045);
x1047 = (x1046)+(x1014);
x1048 = (x1047)<(x1014);
x1049 = (x1047)+(x1011);
x1050 = (x1049)<(x1011);
x1051 = (x1048)+(x1050);
x1052 = (x1051)+(x1012);
x1053 = (x1052)<(x1012);
x1054 = (x1052)+(x1009);
x1055 = (x1054)<(x1009);
x1056 = (x1053)+(x1055);
x1057 = (x1056)+(x1010);
x1058 = (x1057)<(x1010);
x1059 = (x1057)+(x1007);
x1060 = (x1059)<(x1007);
x1061 = (x1058)+(x1060);
x1062 = (x1061)+(x1008);
x1063 = (x1062)<(x1008);
x1064 = (x1062)+(x1005);
x1065 = (x1064)<(x1005);
x1066 = (x1063)+(x1065);
x1067 = (x1066)+(x1006);
x1068 = (x1067)<(x1006);
x1069 = (x1067)+(x1003);
x1070 = (x1069)<(x1003);
x1071 = (x1068)+(x1070);
x1072 = (x1071)+(x1004);
x1073 = (x1072)<(x1004);
x1074 = (x1072)+(x1001);
x1075 = (x1074)<(x1001);
x1076 = (x1073)+(x1075);
x1077 = (x1076)+(x1002);
x1078 = (x945)+(x1023);
x1079 = (x1078)<(x945);
x1080 = (x1079)+(x948);
x1081 = (x1080)<(x948);
x1082 = (x1080)+(x1025);
x1083 = (x1082)<(x1025);
x1084 = (x1081)+(x1083);
x1085 = (x1084)+(x952);
x1086 = (x1085)<(x952);
x1087 = (x1085)+(x1029);
x1088 = (x1087)<(x1029);
x1089 = (x1086)+(x1088);
x1090 = (x1089)+(x957);
x1091 = (x1090)<(x957);
x1092 = (x1090)+(x1034);
x1093 = (x1092)<(x1034);
x1094 = (x1091)+(x1093);
x1095 = (x1094)+(x962);
x1096 = (x1095)<(x962);
x1097 = (x1095)+(x1039);
x1098 = (x1097)<(x1039);
x1099 = (x1096)+(x1098);
x1100 = (x1099)+(x967);
x1101 = (x1100)<(x967);
x1102 = (x1100)+(x1044);
x1103 = (x1102)<(x1044);
x1104 = (x1101)+(x1103);
x1105 = (x1104)+(x972);
x1106 = (x1105)<(x972);
x1107 = (x1105)+(x1049);
x1108 = (x1107)<(x1049);
x1109 = (x1106)+(x1108);
x1110 = (x1109)+(x977);
x1111 = (x1110)<(x977);
x1112 = (x1110)+(x1054);
x1113 = (x1112)<(x1054);
x1114 = (x1111)+(x1113);
x1115 = (x1114)+(x982);
x1116 = (x1115)<(x982);
x1117 = (x1115)+(x1059);
x1118 = (x1117)<(x1059);
x1119 = (x1116)+(x1118);
x1120 = (x1119)+(x987);
x1121 = (x1120)<(x987);
x1122 = (x1120)+(x1064);
x1123 = (x1122)<(x1064);
x1124 = (x1121)+(x1123);
x1125 = (x1124)+(x992);
x1126 = (x1125)<(x992);
x1127 = (x1125)+(x1069);
x1128 = (x1127)<(x1069);
x1129 = (x1126)+(x1128);
x1130 = (x1129)+(x997);
x1131 = (x1130)<(x997);
x1132 = (x1130)+(x1074);
x1133 = (x1132)<(x1074);
x1134 = (x1131)+(x1133);
x1135 = (x1134)+(x1000);
x1136 = (x1135)<(x1000);
x1137 = (x1135)+(x1077);
x1138 = (x1137)<(x1077);
x1139 = (x1136)+(x1138);
x1140 = (x1078)*((uintptr_t)4294967295ULL);
x1141 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1142 = (x1078)*((uintptr_t)4294967295ULL);
x1143 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1144 = (x1078)*((uintptr_t)4294967295ULL);
x1145 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1146 = (x1078)*((uintptr_t)4294967295ULL);
x1147 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1148 = (x1078)*((uintptr_t)4294967295ULL);
x1149 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1150 = (x1078)*((uintptr_t)4294967295ULL);
x1151 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1152 = (x1078)*((uintptr_t)4294967295ULL);
x1153 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1154 = (x1078)*((uintptr_t)4294967294ULL);
x1155 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967294ULL))>>64;
x1156 = (x1078)*((uintptr_t)4294967295ULL);
x1157 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1158 = (x1078)*((uintptr_t)4294967295ULL);
x1159 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1078)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1078)*((uintptr_t)4294967295ULL))>>64;
x1160 = (x1157)+(x1154);
x1161 = (x1160)<(x1157);
x1162 = (x1161)+(x1155);
x1163 = (x1162)<(x1155);
x1164 = (x1162)+(x1152);
x1165 = (x1164)<(x1152);
x1166 = (x1163)+(x1165);
x1167 = (x1166)+(x1153);
x1168 = (x1167)<(x1153);
x1169 = (x1167)+(x1150);
x1170 = (x1169)<(x1150);
x1171 = (x1168)+(x1170);
x1172 = (x1171)+(x1151);
x1173 = (x1172)<(x1151);
x1174 = (x1172)+(x1148);
x1175 = (x1174)<(x1148);
x1176 = (x1173)+(x1175);
x1177 = (x1176)+(x1149);
x1178 = (x1177)<(x1149);
x1179 = (x1177)+(x1146);
x1180 = (x1179)<(x1146);
x1181 = (x1178)+(x1180);
x1182 = (x1181)+(x1147);
x1183 = (x1182)<(x1147);
x1184 = (x1182)+(x1144);
x1185 = (x1184)<(x1144);
x1186 = (x1183)+(x1185);
x1187 = (x1186)+(x1145);
x1188 = (x1187)<(x1145);
x1189 = (x1187)+(x1142);
x1190 = (x1189)<(x1142);
x1191 = (x1188)+(x1190);
x1192 = (x1191)+(x1143);
x1193 = (x1192)<(x1143);
x1194 = (x1192)+(x1140);
x1195 = (x1194)<(x1140);
x1196 = (x1193)+(x1195);
x1197 = (x1196)+(x1141);
x1198 = (x1078)+(x1158);
x1199 = (x1198)<(x1078);
x1200 = (x1199)+(x1082);
x1201 = (x1200)<(x1082);
x1202 = (x1200)+(x1159);
x1203 = (x1202)<(x1159);
x1204 = (x1201)+(x1203);
x1205 = (x1204)+(x1087);
x1206 = (x1205)<(x1087);
x1207 = (x1206)+(x1092);
x1208 = (x1207)<(x1092);
x1209 = (x1207)+(x1156);
x1210 = (x1209)<(x1156);
x1211 = (x1208)+(x1210);
x1212 = (x1211)+(x1097);
x1213 = (x1212)<(x1097);
x1214 = (x1212)+(x1160);
x1215 = (x1214)<(x1160);
x1216 = (x1213)+(x1215);
x1217 = (x1216)+(x1102);
x1218 = (x1217)<(x1102);
x1219 = (x1217)+(x1164);
x1220 = (x1219)<(x1164);
x1221 = (x1218)+(x1220);
x1222 = (x1221)+(x1107);
x1223 = (x1222)<(x1107);
x1224 = (x1222)+(x1169);
x1225 = (x1224)<(x1169);
x1226 = (x1223)+(x1225);
x1227 = (x1226)+(x1112);
x1228 = (x1227)<(x1112);
x1229 = (x1227)+(x1174);
x1230 = (x1229)<(x1174);
x1231 = (x1228)+(x1230);
x1232 = (x1231)+(x1117);
x1233 = (x1232)<(x1117);
x1234 = (x1232)+(x1179);
x1235 = (x1234)<(x1179);
x1236 = (x1233)+(x1235);
x1237 = (x1236)+(x1122);
x1238 = (x1237)<(x1122);
x1239 = (x1237)+(x1184);
x1240 = (x1239)<(x1184);
x1241 = (x1238)+(x1240);
x1242 = (x1241)+(x1127);
x1243 = (x1242)<(x1127);
x1244 = (x1242)+(x1189);
x1245 = (x1244)<(x1189);
x1246 = (x1243)+(x1245);
x1247 = (x1246)+(x1132);
x1248 = (x1247)<(x1132);
x1249 = (x1247)+(x1194);
x1250 = (x1249)<(x1194);
x1251 = (x1248)+(x1250);
x1252 = (x1251)+(x1137);
x1253 = (x1252)<(x1137);
x1254 = (x1252)+(x1197);
x1255 = (x1254)<(x1197);
x1256 = (x1253)+(x1255);
x1257 = (x1256)+(x1139);
x1258 = (x28)*(x23);
x1259 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x23))>>32 : ((__uint128_t)(x28)*(x23))>>64;
x1260 = (x28)*(x22);
x1261 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x22))>>32 : ((__uint128_t)(x28)*(x22))>>64;
x1262 = (x28)*(x21);
x1263 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x21))>>32 : ((__uint128_t)(x28)*(x21))>>64;
x1264 = (x28)*(x20);
x1265 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x20))>>32 : ((__uint128_t)(x28)*(x20))>>64;
x1266 = (x28)*(x19);
x1267 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x19))>>32 : ((__uint128_t)(x28)*(x19))>>64;
x1268 = (x28)*(x18);
x1269 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x18))>>32 : ((__uint128_t)(x28)*(x18))>>64;
x1270 = (x28)*(x17);
x1271 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x17))>>32 : ((__uint128_t)(x28)*(x17))>>64;
x1272 = (x28)*(x16);
x1273 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x16))>>32 : ((__uint128_t)(x28)*(x16))>>64;
x1274 = (x28)*(x15);
x1275 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x15))>>32 : ((__uint128_t)(x28)*(x15))>>64;
x1276 = (x28)*(x14);
x1277 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x14))>>32 : ((__uint128_t)(x28)*(x14))>>64;
x1278 = (x28)*(x13);
x1279 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x13))>>32 : ((__uint128_t)(x28)*(x13))>>64;
x1280 = (x28)*(x12);
x1281 = sizeof(intptr_t) == 4 ? ((uint64_t)(x28)*(x12))>>32 : ((__uint128_t)(x28)*(x12))>>64;
x1282 = (x1281)+(x1278);
x1283 = (x1282)<(x1281);
x1284 = (x1283)+(x1279);
x1285 = (x1284)<(x1279);
x1286 = (x1284)+(x1276);
x1287 = (x1286)<(x1276);
x1288 = (x1285)+(x1287);
x1289 = (x1288)+(x1277);
x1290 = (x1289)<(x1277);
x1291 = (x1289)+(x1274);
x1292 = (x1291)<(x1274);
x1293 = (x1290)+(x1292);
x1294 = (x1293)+(x1275);
x1295 = (x1294)<(x1275);
x1296 = (x1294)+(x1272);
x1297 = (x1296)<(x1272);
x1298 = (x1295)+(x1297);
x1299 = (x1298)+(x1273);
x1300 = (x1299)<(x1273);
x1301 = (x1299)+(x1270);
x1302 = (x1301)<(x1270);
x1303 = (x1300)+(x1302);
x1304 = (x1303)+(x1271);
x1305 = (x1304)<(x1271);
x1306 = (x1304)+(x1268);
x1307 = (x1306)<(x1268);
x1308 = (x1305)+(x1307);
x1309 = (x1308)+(x1269);
x1310 = (x1309)<(x1269);
x1311 = (x1309)+(x1266);
x1312 = (x1311)<(x1266);
x1313 = (x1310)+(x1312);
x1314 = (x1313)+(x1267);
x1315 = (x1314)<(x1267);
x1316 = (x1314)+(x1264);
x1317 = (x1316)<(x1264);
x1318 = (x1315)+(x1317);
x1319 = (x1318)+(x1265);
x1320 = (x1319)<(x1265);
x1321 = (x1319)+(x1262);
x1322 = (x1321)<(x1262);
x1323 = (x1320)+(x1322);
x1324 = (x1323)+(x1263);
x1325 = (x1324)<(x1263);
x1326 = (x1324)+(x1260);
x1327 = (x1326)<(x1260);
x1328 = (x1325)+(x1327);
x1329 = (x1328)+(x1261);
x1330 = (x1329)<(x1261);
x1331 = (x1329)+(x1258);
x1332 = (x1331)<(x1258);
x1333 = (x1330)+(x1332);
x1334 = (x1333)+(x1259);
x1335 = (x1202)+(x1280);
x1336 = (x1335)<(x1202);
x1337 = (x1336)+(x1205);
x1338 = (x1337)<(x1205);
x1339 = (x1337)+(x1282);
x1340 = (x1339)<(x1282);
x1341 = (x1338)+(x1340);
x1342 = (x1341)+(x1209);
x1343 = (x1342)<(x1209);
x1344 = (x1342)+(x1286);
x1345 = (x1344)<(x1286);
x1346 = (x1343)+(x1345);
x1347 = (x1346)+(x1214);
x1348 = (x1347)<(x1214);
x1349 = (x1347)+(x1291);
x1350 = (x1349)<(x1291);
x1351 = (x1348)+(x1350);
x1352 = (x1351)+(x1219);
x1353 = (x1352)<(x1219);
x1354 = (x1352)+(x1296);
x1355 = (x1354)<(x1296);
x1356 = (x1353)+(x1355);
x1357 = (x1356)+(x1224);
x1358 = (x1357)<(x1224);
x1359 = (x1357)+(x1301);
x1360 = (x1359)<(x1301);
x1361 = (x1358)+(x1360);
x1362 = (x1361)+(x1229);
x1363 = (x1362)<(x1229);
x1364 = (x1362)+(x1306);
x1365 = (x1364)<(x1306);
x1366 = (x1363)+(x1365);
x1367 = (x1366)+(x1234);
x1368 = (x1367)<(x1234);
x1369 = (x1367)+(x1311);
x1370 = (x1369)<(x1311);
x1371 = (x1368)+(x1370);
x1372 = (x1371)+(x1239);
x1373 = (x1372)<(x1239);
x1374 = (x1372)+(x1316);
x1375 = (x1374)<(x1316);
x1376 = (x1373)+(x1375);
x1377 = (x1376)+(x1244);
x1378 = (x1377)<(x1244);
x1379 = (x1377)+(x1321);
x1380 = (x1379)<(x1321);
x1381 = (x1378)+(x1380);
x1382 = (x1381)+(x1249);
x1383 = (x1382)<(x1249);
x1384 = (x1382)+(x1326);
x1385 = (x1384)<(x1326);
x1386 = (x1383)+(x1385);
x1387 = (x1386)+(x1254);
x1388 = (x1387)<(x1254);
x1389 = (x1387)+(x1331);
x1390 = (x1389)<(x1331);
x1391 = (x1388)+(x1390);
x1392 = (x1391)+(x1257);
x1393 = (x1392)<(x1257);
x1394 = (x1392)+(x1334);
x1395 = (x1394)<(x1334);
x1396 = (x1393)+(x1395);
x1397 = (x1335)*((uintptr_t)4294967295ULL);
x1398 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1399 = (x1335)*((uintptr_t)4294967295ULL);
x1400 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1401 = (x1335)*((uintptr_t)4294967295ULL);
x1402 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1403 = (x1335)*((uintptr_t)4294967295ULL);
x1404 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1405 = (x1335)*((uintptr_t)4294967295ULL);
x1406 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1407 = (x1335)*((uintptr_t)4294967295ULL);
x1408 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1409 = (x1335)*((uintptr_t)4294967295ULL);
x1410 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1411 = (x1335)*((uintptr_t)4294967294ULL);
x1412 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967294ULL))>>64;
x1413 = (x1335)*((uintptr_t)4294967295ULL);
x1414 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1415 = (x1335)*((uintptr_t)4294967295ULL);
x1416 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1335)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1335)*((uintptr_t)4294967295ULL))>>64;
x1417 = (x1414)+(x1411);
x1418 = (x1417)<(x1414);
x1419 = (x1418)+(x1412);
x1420 = (x1419)<(x1412);
x1421 = (x1419)+(x1409);
x1422 = (x1421)<(x1409);
x1423 = (x1420)+(x1422);
x1424 = (x1423)+(x1410);
x1425 = (x1424)<(x1410);
x1426 = (x1424)+(x1407);
x1427 = (x1426)<(x1407);
x1428 = (x1425)+(x1427);
x1429 = (x1428)+(x1408);
x1430 = (x1429)<(x1408);
x1431 = (x1429)+(x1405);
x1432 = (x1431)<(x1405);
x1433 = (x1430)+(x1432);
x1434 = (x1433)+(x1406);
x1435 = (x1434)<(x1406);
x1436 = (x1434)+(x1403);
x1437 = (x1436)<(x1403);
x1438 = (x1435)+(x1437);
x1439 = (x1438)+(x1404);
x1440 = (x1439)<(x1404);
x1441 = (x1439)+(x1401);
x1442 = (x1441)<(x1401);
x1443 = (x1440)+(x1442);
x1444 = (x1443)+(x1402);
x1445 = (x1444)<(x1402);
x1446 = (x1444)+(x1399);
x1447 = (x1446)<(x1399);
x1448 = (x1445)+(x1447);
x1449 = (x1448)+(x1400);
x1450 = (x1449)<(x1400);
x1451 = (x1449)+(x1397);
x1452 = (x1451)<(x1397);
x1453 = (x1450)+(x1452);
x1454 = (x1453)+(x1398);
x1455 = (x1335)+(x1415);
x1456 = (x1455)<(x1335);
x1457 = (x1456)+(x1339);
x1458 = (x1457)<(x1339);
x1459 = (x1457)+(x1416);
x1460 = (x1459)<(x1416);
x1461 = (x1458)+(x1460);
x1462 = (x1461)+(x1344);
x1463 = (x1462)<(x1344);
x1464 = (x1463)+(x1349);
x1465 = (x1464)<(x1349);
x1466 = (x1464)+(x1413);
x1467 = (x1466)<(x1413);
x1468 = (x1465)+(x1467);
x1469 = (x1468)+(x1354);
x1470 = (x1469)<(x1354);
x1471 = (x1469)+(x1417);
x1472 = (x1471)<(x1417);
x1473 = (x1470)+(x1472);
x1474 = (x1473)+(x1359);
x1475 = (x1474)<(x1359);
x1476 = (x1474)+(x1421);
x1477 = (x1476)<(x1421);
x1478 = (x1475)+(x1477);
x1479 = (x1478)+(x1364);
x1480 = (x1479)<(x1364);
x1481 = (x1479)+(x1426);
x1482 = (x1481)<(x1426);
x1483 = (x1480)+(x1482);
x1484 = (x1483)+(x1369);
x1485 = (x1484)<(x1369);
x1486 = (x1484)+(x1431);
x1487 = (x1486)<(x1431);
x1488 = (x1485)+(x1487);
x1489 = (x1488)+(x1374);
x1490 = (x1489)<(x1374);
x1491 = (x1489)+(x1436);
x1492 = (x1491)<(x1436);
x1493 = (x1490)+(x1492);
x1494 = (x1493)+(x1379);
x1495 = (x1494)<(x1379);
x1496 = (x1494)+(x1441);
x1497 = (x1496)<(x1441);
x1498 = (x1495)+(x1497);
x1499 = (x1498)+(x1384);
x1500 = (x1499)<(x1384);
x1501 = (x1499)+(x1446);
x1502 = (x1501)<(x1446);
x1503 = (x1500)+(x1502);
x1504 = (x1503)+(x1389);
x1505 = (x1504)<(x1389);
x1506 = (x1504)+(x1451);
x1507 = (x1506)<(x1451);
x1508 = (x1505)+(x1507);
x1509 = (x1508)+(x1394);
x1510 = (x1509)<(x1394);
x1511 = (x1509)+(x1454);
x1512 = (x1511)<(x1454);
x1513 = (x1510)+(x1512);
x1514 = (x1513)+(x1396);
x1515 = (x29)*(x23);
x1516 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x23))>>32 : ((__uint128_t)(x29)*(x23))>>64;
x1517 = (x29)*(x22);
x1518 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x22))>>32 : ((__uint128_t)(x29)*(x22))>>64;
x1519 = (x29)*(x21);
x1520 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x21))>>32 : ((__uint128_t)(x29)*(x21))>>64;
x1521 = (x29)*(x20);
x1522 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x20))>>32 : ((__uint128_t)(x29)*(x20))>>64;
x1523 = (x29)*(x19);
x1524 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x19))>>32 : ((__uint128_t)(x29)*(x19))>>64;
x1525 = (x29)*(x18);
x1526 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x18))>>32 : ((__uint128_t)(x29)*(x18))>>64;
x1527 = (x29)*(x17);
x1528 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x17))>>32 : ((__uint128_t)(x29)*(x17))>>64;
x1529 = (x29)*(x16);
x1530 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x16))>>32 : ((__uint128_t)(x29)*(x16))>>64;
x1531 = (x29)*(x15);
x1532 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x15))>>32 : ((__uint128_t)(x29)*(x15))>>64;
x1533 = (x29)*(x14);
x1534 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x14))>>32 : ((__uint128_t)(x29)*(x14))>>64;
x1535 = (x29)*(x13);
x1536 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x13))>>32 : ((__uint128_t)(x29)*(x13))>>64;
x1537 = (x29)*(x12);
x1538 = sizeof(intptr_t) == 4 ? ((uint64_t)(x29)*(x12))>>32 : ((__uint128_t)(x29)*(x12))>>64;
x1539 = (x1538)+(x1535);
x1540 = (x1539)<(x1538);
x1541 = (x1540)+(x1536);
x1542 = (x1541)<(x1536);
x1543 = (x1541)+(x1533);
x1544 = (x1543)<(x1533);
x1545 = (x1542)+(x1544);
x1546 = (x1545)+(x1534);
x1547 = (x1546)<(x1534);
x1548 = (x1546)+(x1531);
x1549 = (x1548)<(x1531);
x1550 = (x1547)+(x1549);
x1551 = (x1550)+(x1532);
x1552 = (x1551)<(x1532);
x1553 = (x1551)+(x1529);
x1554 = (x1553)<(x1529);
x1555 = (x1552)+(x1554);
x1556 = (x1555)+(x1530);
x1557 = (x1556)<(x1530);
x1558 = (x1556)+(x1527);
x1559 = (x1558)<(x1527);
x1560 = (x1557)+(x1559);
x1561 = (x1560)+(x1528);
x1562 = (x1561)<(x1528);
x1563 = (x1561)+(x1525);
x1564 = (x1563)<(x1525);
x1565 = (x1562)+(x1564);
x1566 = (x1565)+(x1526);
x1567 = (x1566)<(x1526);
x1568 = (x1566)+(x1523);
x1569 = (x1568)<(x1523);
x1570 = (x1567)+(x1569);
x1571 = (x1570)+(x1524);
x1572 = (x1571)<(x1524);
x1573 = (x1571)+(x1521);
x1574 = (x1573)<(x1521);
x1575 = (x1572)+(x1574);
x1576 = (x1575)+(x1522);
x1577 = (x1576)<(x1522);
x1578 = (x1576)+(x1519);
x1579 = (x1578)<(x1519);
x1580 = (x1577)+(x1579);
x1581 = (x1580)+(x1520);
x1582 = (x1581)<(x1520);
x1583 = (x1581)+(x1517);
x1584 = (x1583)<(x1517);
x1585 = (x1582)+(x1584);
x1586 = (x1585)+(x1518);
x1587 = (x1586)<(x1518);
x1588 = (x1586)+(x1515);
x1589 = (x1588)<(x1515);
x1590 = (x1587)+(x1589);
x1591 = (x1590)+(x1516);
x1592 = (x1459)+(x1537);
x1593 = (x1592)<(x1459);
x1594 = (x1593)+(x1462);
x1595 = (x1594)<(x1462);
x1596 = (x1594)+(x1539);
x1597 = (x1596)<(x1539);
x1598 = (x1595)+(x1597);
x1599 = (x1598)+(x1466);
x1600 = (x1599)<(x1466);
x1601 = (x1599)+(x1543);
x1602 = (x1601)<(x1543);
x1603 = (x1600)+(x1602);
x1604 = (x1603)+(x1471);
x1605 = (x1604)<(x1471);
x1606 = (x1604)+(x1548);
x1607 = (x1606)<(x1548);
x1608 = (x1605)+(x1607);
x1609 = (x1608)+(x1476);
x1610 = (x1609)<(x1476);
x1611 = (x1609)+(x1553);
x1612 = (x1611)<(x1553);
x1613 = (x1610)+(x1612);
x1614 = (x1613)+(x1481);
x1615 = (x1614)<(x1481);
x1616 = (x1614)+(x1558);
x1617 = (x1616)<(x1558);
x1618 = (x1615)+(x1617);
x1619 = (x1618)+(x1486);
x1620 = (x1619)<(x1486);
x1621 = (x1619)+(x1563);
x1622 = (x1621)<(x1563);
x1623 = (x1620)+(x1622);
x1624 = (x1623)+(x1491);
x1625 = (x1624)<(x1491);
x1626 = (x1624)+(x1568);
x1627 = (x1626)<(x1568);
x1628 = (x1625)+(x1627);
x1629 = (x1628)+(x1496);
x1630 = (x1629)<(x1496);
x1631 = (x1629)+(x1573);
x1632 = (x1631)<(x1573);
x1633 = (x1630)+(x1632);
x1634 = (x1633)+(x1501);
x1635 = (x1634)<(x1501);
x1636 = (x1634)+(x1578);
x1637 = (x1636)<(x1578);
x1638 = (x1635)+(x1637);
x1639 = (x1638)+(x1506);
x1640 = (x1639)<(x1506);
x1641 = (x1639)+(x1583);
x1642 = (x1641)<(x1583);
x1643 = (x1640)+(x1642);
x1644 = (x1643)+(x1511);
x1645 = (x1644)<(x1511);
x1646 = (x1644)+(x1588);
x1647 = (x1646)<(x1588);
x1648 = (x1645)+(x1647);
x1649 = (x1648)+(x1514);
x1650 = (x1649)<(x1514);
x1651 = (x1649)+(x1591);
x1652 = (x1651)<(x1591);
x1653 = (x1650)+(x1652);
x1654 = (x1592)*((uintptr_t)4294967295ULL);
x1655 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1656 = (x1592)*((uintptr_t)4294967295ULL);
x1657 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1658 = (x1592)*((uintptr_t)4294967295ULL);
x1659 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1660 = (x1592)*((uintptr_t)4294967295ULL);
x1661 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1662 = (x1592)*((uintptr_t)4294967295ULL);
x1663 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1664 = (x1592)*((uintptr_t)4294967295ULL);
x1665 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1666 = (x1592)*((uintptr_t)4294967295ULL);
x1667 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1668 = (x1592)*((uintptr_t)4294967294ULL);
x1669 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967294ULL))>>64;
x1670 = (x1592)*((uintptr_t)4294967295ULL);
x1671 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1672 = (x1592)*((uintptr_t)4294967295ULL);
x1673 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1592)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1592)*((uintptr_t)4294967295ULL))>>64;
x1674 = (x1671)+(x1668);
x1675 = (x1674)<(x1671);
x1676 = (x1675)+(x1669);
x1677 = (x1676)<(x1669);
x1678 = (x1676)+(x1666);
x1679 = (x1678)<(x1666);
x1680 = (x1677)+(x1679);
x1681 = (x1680)+(x1667);
x1682 = (x1681)<(x1667);
x1683 = (x1681)+(x1664);
x1684 = (x1683)<(x1664);
x1685 = (x1682)+(x1684);
x1686 = (x1685)+(x1665);
x1687 = (x1686)<(x1665);
x1688 = (x1686)+(x1662);
x1689 = (x1688)<(x1662);
x1690 = (x1687)+(x1689);
x1691 = (x1690)+(x1663);
x1692 = (x1691)<(x1663);
x1693 = (x1691)+(x1660);
x1694 = (x1693)<(x1660);
x1695 = (x1692)+(x1694);
x1696 = (x1695)+(x1661);
x1697 = (x1696)<(x1661);
x1698 = (x1696)+(x1658);
x1699 = (x1698)<(x1658);
x1700 = (x1697)+(x1699);
x1701 = (x1700)+(x1659);
x1702 = (x1701)<(x1659);
x1703 = (x1701)+(x1656);
x1704 = (x1703)<(x1656);
x1705 = (x1702)+(x1704);
x1706 = (x1705)+(x1657);
x1707 = (x1706)<(x1657);
x1708 = (x1706)+(x1654);
x1709 = (x1708)<(x1654);
x1710 = (x1707)+(x1709);
x1711 = (x1710)+(x1655);
x1712 = (x1592)+(x1672);
x1713 = (x1712)<(x1592);
x1714 = (x1713)+(x1596);
x1715 = (x1714)<(x1596);
x1716 = (x1714)+(x1673);
x1717 = (x1716)<(x1673);
x1718 = (x1715)+(x1717);
x1719 = (x1718)+(x1601);
x1720 = (x1719)<(x1601);
x1721 = (x1720)+(x1606);
x1722 = (x1721)<(x1606);
x1723 = (x1721)+(x1670);
x1724 = (x1723)<(x1670);
x1725 = (x1722)+(x1724);
x1726 = (x1725)+(x1611);
x1727 = (x1726)<(x1611);
x1728 = (x1726)+(x1674);
x1729 = (x1728)<(x1674);
x1730 = (x1727)+(x1729);
x1731 = (x1730)+(x1616);
x1732 = (x1731)<(x1616);
x1733 = (x1731)+(x1678);
x1734 = (x1733)<(x1678);
x1735 = (x1732)+(x1734);
x1736 = (x1735)+(x1621);
x1737 = (x1736)<(x1621);
x1738 = (x1736)+(x1683);
x1739 = (x1738)<(x1683);
x1740 = (x1737)+(x1739);
x1741 = (x1740)+(x1626);
x1742 = (x1741)<(x1626);
x1743 = (x1741)+(x1688);
x1744 = (x1743)<(x1688);
x1745 = (x1742)+(x1744);
x1746 = (x1745)+(x1631);
x1747 = (x1746)<(x1631);
x1748 = (x1746)+(x1693);
x1749 = (x1748)<(x1693);
x1750 = (x1747)+(x1749);
x1751 = (x1750)+(x1636);
x1752 = (x1751)<(x1636);
x1753 = (x1751)+(x1698);
x1754 = (x1753)<(x1698);
x1755 = (x1752)+(x1754);
x1756 = (x1755)+(x1641);
x1757 = (x1756)<(x1641);
x1758 = (x1756)+(x1703);
x1759 = (x1758)<(x1703);
x1760 = (x1757)+(x1759);
x1761 = (x1760)+(x1646);
x1762 = (x1761)<(x1646);
x1763 = (x1761)+(x1708);
x1764 = (x1763)<(x1708);
x1765 = (x1762)+(x1764);
x1766 = (x1765)+(x1651);
x1767 = (x1766)<(x1651);
x1768 = (x1766)+(x1711);
x1769 = (x1768)<(x1711);
x1770 = (x1767)+(x1769);
x1771 = (x1770)+(x1653);
x1772 = (x30)*(x23);
x1773 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x23))>>32 : ((__uint128_t)(x30)*(x23))>>64;
x1774 = (x30)*(x22);
x1775 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x22))>>32 : ((__uint128_t)(x30)*(x22))>>64;
x1776 = (x30)*(x21);
x1777 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x21))>>32 : ((__uint128_t)(x30)*(x21))>>64;
x1778 = (x30)*(x20);
x1779 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x20))>>32 : ((__uint128_t)(x30)*(x20))>>64;
x1780 = (x30)*(x19);
x1781 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x19))>>32 : ((__uint128_t)(x30)*(x19))>>64;
x1782 = (x30)*(x18);
x1783 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x18))>>32 : ((__uint128_t)(x30)*(x18))>>64;
x1784 = (x30)*(x17);
x1785 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x17))>>32 : ((__uint128_t)(x30)*(x17))>>64;
x1786 = (x30)*(x16);
x1787 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x16))>>32 : ((__uint128_t)(x30)*(x16))>>64;
x1788 = (x30)*(x15);
x1789 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x15))>>32 : ((__uint128_t)(x30)*(x15))>>64;
x1790 = (x30)*(x14);
x1791 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x14))>>32 : ((__uint128_t)(x30)*(x14))>>64;
x1792 = (x30)*(x13);
x1793 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x13))>>32 : ((__uint128_t)(x30)*(x13))>>64;
x1794 = (x30)*(x12);
x1795 = sizeof(intptr_t) == 4 ? ((uint64_t)(x30)*(x12))>>32 : ((__uint128_t)(x30)*(x12))>>64;
x1796 = (x1795)+(x1792);
x1797 = (x1796)<(x1795);
x1798 = (x1797)+(x1793);
x1799 = (x1798)<(x1793);
x1800 = (x1798)+(x1790);
x1801 = (x1800)<(x1790);
x1802 = (x1799)+(x1801);
x1803 = (x1802)+(x1791);
x1804 = (x1803)<(x1791);
x1805 = (x1803)+(x1788);
x1806 = (x1805)<(x1788);
x1807 = (x1804)+(x1806);
x1808 = (x1807)+(x1789);
x1809 = (x1808)<(x1789);
x1810 = (x1808)+(x1786);
x1811 = (x1810)<(x1786);
x1812 = (x1809)+(x1811);
x1813 = (x1812)+(x1787);
x1814 = (x1813)<(x1787);
x1815 = (x1813)+(x1784);
x1816 = (x1815)<(x1784);
x1817 = (x1814)+(x1816);
x1818 = (x1817)+(x1785);
x1819 = (x1818)<(x1785);
x1820 = (x1818)+(x1782);
x1821 = (x1820)<(x1782);
x1822 = (x1819)+(x1821);
x1823 = (x1822)+(x1783);
x1824 = (x1823)<(x1783);
x1825 = (x1823)+(x1780);
x1826 = (x1825)<(x1780);
x1827 = (x1824)+(x1826);
x1828 = (x1827)+(x1781);
x1829 = (x1828)<(x1781);
x1830 = (x1828)+(x1778);
x1831 = (x1830)<(x1778);
x1832 = (x1829)+(x1831);
x1833 = (x1832)+(x1779);
x1834 = (x1833)<(x1779);
x1835 = (x1833)+(x1776);
x1836 = (x1835)<(x1776);
x1837 = (x1834)+(x1836);
x1838 = (x1837)+(x1777);
x1839 = (x1838)<(x1777);
x1840 = (x1838)+(x1774);
x1841 = (x1840)<(x1774);
x1842 = (x1839)+(x1841);
x1843 = (x1842)+(x1775);
x1844 = (x1843)<(x1775);
x1845 = (x1843)+(x1772);
x1846 = (x1845)<(x1772);
x1847 = (x1844)+(x1846);
x1848 = (x1847)+(x1773);
x1849 = (x1716)+(x1794);
x1850 = (x1849)<(x1716);
x1851 = (x1850)+(x1719);
x1852 = (x1851)<(x1719);
x1853 = (x1851)+(x1796);
x1854 = (x1853)<(x1796);
x1855 = (x1852)+(x1854);
x1856 = (x1855)+(x1723);
x1857 = (x1856)<(x1723);
x1858 = (x1856)+(x1800);
x1859 = (x1858)<(x1800);
x1860 = (x1857)+(x1859);
x1861 = (x1860)+(x1728);
x1862 = (x1861)<(x1728);
x1863 = (x1861)+(x1805);
x1864 = (x1863)<(x1805);
x1865 = (x1862)+(x1864);
x1866 = (x1865)+(x1733);
x1867 = (x1866)<(x1733);
x1868 = (x1866)+(x1810);
x1869 = (x1868)<(x1810);
x1870 = (x1867)+(x1869);
x1871 = (x1870)+(x1738);
x1872 = (x1871)<(x1738);
x1873 = (x1871)+(x1815);
x1874 = (x1873)<(x1815);
x1875 = (x1872)+(x1874);
x1876 = (x1875)+(x1743);
x1877 = (x1876)<(x1743);
x1878 = (x1876)+(x1820);
x1879 = (x1878)<(x1820);
x1880 = (x1877)+(x1879);
x1881 = (x1880)+(x1748);
x1882 = (x1881)<(x1748);
x1883 = (x1881)+(x1825);
x1884 = (x1883)<(x1825);
x1885 = (x1882)+(x1884);
x1886 = (x1885)+(x1753);
x1887 = (x1886)<(x1753);
x1888 = (x1886)+(x1830);
x1889 = (x1888)<(x1830);
x1890 = (x1887)+(x1889);
x1891 = (x1890)+(x1758);
x1892 = (x1891)<(x1758);
x1893 = (x1891)+(x1835);
x1894 = (x1893)<(x1835);
x1895 = (x1892)+(x1894);
x1896 = (x1895)+(x1763);
x1897 = (x1896)<(x1763);
x1898 = (x1896)+(x1840);
x1899 = (x1898)<(x1840);
x1900 = (x1897)+(x1899);
x1901 = (x1900)+(x1768);
x1902 = (x1901)<(x1768);
x1903 = (x1901)+(x1845);
x1904 = (x1903)<(x1845);
x1905 = (x1902)+(x1904);
x1906 = (x1905)+(x1771);
x1907 = (x1906)<(x1771);
x1908 = (x1906)+(x1848);
x1909 = (x1908)<(x1848);
x1910 = (x1907)+(x1909);
x1911 = (x1849)*((uintptr_t)4294967295ULL);
x1912 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1913 = (x1849)*((uintptr_t)4294967295ULL);
x1914 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1915 = (x1849)*((uintptr_t)4294967295ULL);
x1916 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1917 = (x1849)*((uintptr_t)4294967295ULL);
x1918 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1919 = (x1849)*((uintptr_t)4294967295ULL);
x1920 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1921 = (x1849)*((uintptr_t)4294967295ULL);
x1922 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1923 = (x1849)*((uintptr_t)4294967295ULL);
x1924 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1925 = (x1849)*((uintptr_t)4294967294ULL);
x1926 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967294ULL))>>64;
x1927 = (x1849)*((uintptr_t)4294967295ULL);
x1928 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1929 = (x1849)*((uintptr_t)4294967295ULL);
x1930 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1849)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1849)*((uintptr_t)4294967295ULL))>>64;
x1931 = (x1928)+(x1925);
x1932 = (x1931)<(x1928);
x1933 = (x1932)+(x1926);
x1934 = (x1933)<(x1926);
x1935 = (x1933)+(x1923);
x1936 = (x1935)<(x1923);
x1937 = (x1934)+(x1936);
x1938 = (x1937)+(x1924);
x1939 = (x1938)<(x1924);
x1940 = (x1938)+(x1921);
x1941 = (x1940)<(x1921);
x1942 = (x1939)+(x1941);
x1943 = (x1942)+(x1922);
x1944 = (x1943)<(x1922);
x1945 = (x1943)+(x1919);
x1946 = (x1945)<(x1919);
x1947 = (x1944)+(x1946);
x1948 = (x1947)+(x1920);
x1949 = (x1948)<(x1920);
x1950 = (x1948)+(x1917);
x1951 = (x1950)<(x1917);
x1952 = (x1949)+(x1951);
x1953 = (x1952)+(x1918);
x1954 = (x1953)<(x1918);
x1955 = (x1953)+(x1915);
x1956 = (x1955)<(x1915);
x1957 = (x1954)+(x1956);
x1958 = (x1957)+(x1916);
x1959 = (x1958)<(x1916);
x1960 = (x1958)+(x1913);
x1961 = (x1960)<(x1913);
x1962 = (x1959)+(x1961);
x1963 = (x1962)+(x1914);
x1964 = (x1963)<(x1914);
x1965 = (x1963)+(x1911);
x1966 = (x1965)<(x1911);
x1967 = (x1964)+(x1966);
x1968 = (x1967)+(x1912);
x1969 = (x1849)+(x1929);
x1970 = (x1969)<(x1849);
x1971 = (x1970)+(x1853);
x1972 = (x1971)<(x1853);
x1973 = (x1971)+(x1930);
x1974 = (x1973)<(x1930);
x1975 = (x1972)+(x1974);
x1976 = (x1975)+(x1858);
x1977 = (x1976)<(x1858);
x1978 = (x1977)+(x1863);
x1979 = (x1978)<(x1863);
x1980 = (x1978)+(x1927);
x1981 = (x1980)<(x1927);
x1982 = (x1979)+(x1981);
x1983 = (x1982)+(x1868);
x1984 = (x1983)<(x1868);
x1985 = (x1983)+(x1931);
x1986 = (x1985)<(x1931);
x1987 = (x1984)+(x1986);
x1988 = (x1987)+(x1873);
x1989 = (x1988)<(x1873);
x1990 = (x1988)+(x1935);
x1991 = (x1990)<(x1935);
x1992 = (x1989)+(x1991);
x1993 = (x1992)+(x1878);
x1994 = (x1993)<(x1878);
x1995 = (x1993)+(x1940);
x1996 = (x1995)<(x1940);
x1997 = (x1994)+(x1996);
x1998 = (x1997)+(x1883);
x1999 = (x1998)<(x1883);
x2000 = (x1998)+(x1945);
x2001 = (x2000)<(x1945);
x2002 = (x1999)+(x2001);
x2003 = (x2002)+(x1888);
x2004 = (x2003)<(x1888);
x2005 = (x2003)+(x1950);
x2006 = (x2005)<(x1950);
x2007 = (x2004)+(x2006);
x2008 = (x2007)+(x1893);
x2009 = (x2008)<(x1893);
x2010 = (x2008)+(x1955);
x2011 = (x2010)<(x1955);
x2012 = (x2009)+(x2011);
x2013 = (x2012)+(x1898);
x2014 = (x2013)<(x1898);
x2015 = (x2013)+(x1960);
x2016 = (x2015)<(x1960);
x2017 = (x2014)+(x2016);
x2018 = (x2017)+(x1903);
x2019 = (x2018)<(x1903);
x2020 = (x2018)+(x1965);
x2021 = (x2020)<(x1965);
x2022 = (x2019)+(x2021);
x2023 = (x2022)+(x1908);
x2024 = (x2023)<(x1908);
x2025 = (x2023)+(x1968);
x2026 = (x2025)<(x1968);
x2027 = (x2024)+(x2026);
x2028 = (x2027)+(x1910);
x2029 = (x31)*(x23);
x2030 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x23))>>32 : ((__uint128_t)(x31)*(x23))>>64;
x2031 = (x31)*(x22);
x2032 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x22))>>32 : ((__uint128_t)(x31)*(x22))>>64;
x2033 = (x31)*(x21);
x2034 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x21))>>32 : ((__uint128_t)(x31)*(x21))>>64;
x2035 = (x31)*(x20);
x2036 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x20))>>32 : ((__uint128_t)(x31)*(x20))>>64;
x2037 = (x31)*(x19);
x2038 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x19))>>32 : ((__uint128_t)(x31)*(x19))>>64;
x2039 = (x31)*(x18);
x2040 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x18))>>32 : ((__uint128_t)(x31)*(x18))>>64;
x2041 = (x31)*(x17);
x2042 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x17))>>32 : ((__uint128_t)(x31)*(x17))>>64;
x2043 = (x31)*(x16);
x2044 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x16))>>32 : ((__uint128_t)(x31)*(x16))>>64;
x2045 = (x31)*(x15);
x2046 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x15))>>32 : ((__uint128_t)(x31)*(x15))>>64;
x2047 = (x31)*(x14);
x2048 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x14))>>32 : ((__uint128_t)(x31)*(x14))>>64;
x2049 = (x31)*(x13);
x2050 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x13))>>32 : ((__uint128_t)(x31)*(x13))>>64;
x2051 = (x31)*(x12);
x2052 = sizeof(intptr_t) == 4 ? ((uint64_t)(x31)*(x12))>>32 : ((__uint128_t)(x31)*(x12))>>64;
x2053 = (x2052)+(x2049);
x2054 = (x2053)<(x2052);
x2055 = (x2054)+(x2050);
x2056 = (x2055)<(x2050);
x2057 = (x2055)+(x2047);
x2058 = (x2057)<(x2047);
x2059 = (x2056)+(x2058);
x2060 = (x2059)+(x2048);
x2061 = (x2060)<(x2048);
x2062 = (x2060)+(x2045);
x2063 = (x2062)<(x2045);
x2064 = (x2061)+(x2063);
x2065 = (x2064)+(x2046);
x2066 = (x2065)<(x2046);
x2067 = (x2065)+(x2043);
x2068 = (x2067)<(x2043);
x2069 = (x2066)+(x2068);
x2070 = (x2069)+(x2044);
x2071 = (x2070)<(x2044);
x2072 = (x2070)+(x2041);
x2073 = (x2072)<(x2041);
x2074 = (x2071)+(x2073);
x2075 = (x2074)+(x2042);
x2076 = (x2075)<(x2042);
x2077 = (x2075)+(x2039);
x2078 = (x2077)<(x2039);
x2079 = (x2076)+(x2078);
x2080 = (x2079)+(x2040);
x2081 = (x2080)<(x2040);
x2082 = (x2080)+(x2037);
x2083 = (x2082)<(x2037);
x2084 = (x2081)+(x2083);
x2085 = (x2084)+(x2038);
x2086 = (x2085)<(x2038);
x2087 = (x2085)+(x2035);
x2088 = (x2087)<(x2035);
x2089 = (x2086)+(x2088);
x2090 = (x2089)+(x2036);
x2091 = (x2090)<(x2036);
x2092 = (x2090)+(x2033);
x2093 = (x2092)<(x2033);
x2094 = (x2091)+(x2093);
x2095 = (x2094)+(x2034);
x2096 = (x2095)<(x2034);
x2097 = (x2095)+(x2031);
x2098 = (x2097)<(x2031);
x2099 = (x2096)+(x2098);
x2100 = (x2099)+(x2032);
x2101 = (x2100)<(x2032);
x2102 = (x2100)+(x2029);
x2103 = (x2102)<(x2029);
x2104 = (x2101)+(x2103);
x2105 = (x2104)+(x2030);
x2106 = (x1973)+(x2051);
x2107 = (x2106)<(x1973);
x2108 = (x2107)+(x1976);
x2109 = (x2108)<(x1976);
x2110 = (x2108)+(x2053);
x2111 = (x2110)<(x2053);
x2112 = (x2109)+(x2111);
x2113 = (x2112)+(x1980);
x2114 = (x2113)<(x1980);
x2115 = (x2113)+(x2057);
x2116 = (x2115)<(x2057);
x2117 = (x2114)+(x2116);
x2118 = (x2117)+(x1985);
x2119 = (x2118)<(x1985);
x2120 = (x2118)+(x2062);
x2121 = (x2120)<(x2062);
x2122 = (x2119)+(x2121);
x2123 = (x2122)+(x1990);
x2124 = (x2123)<(x1990);
x2125 = (x2123)+(x2067);
x2126 = (x2125)<(x2067);
x2127 = (x2124)+(x2126);
x2128 = (x2127)+(x1995);
x2129 = (x2128)<(x1995);
x2130 = (x2128)+(x2072);
x2131 = (x2130)<(x2072);
x2132 = (x2129)+(x2131);
x2133 = (x2132)+(x2000);
x2134 = (x2133)<(x2000);
x2135 = (x2133)+(x2077);
x2136 = (x2135)<(x2077);
x2137 = (x2134)+(x2136);
x2138 = (x2137)+(x2005);
x2139 = (x2138)<(x2005);
x2140 = (x2138)+(x2082);
x2141 = (x2140)<(x2082);
x2142 = (x2139)+(x2141);
x2143 = (x2142)+(x2010);
x2144 = (x2143)<(x2010);
x2145 = (x2143)+(x2087);
x2146 = (x2145)<(x2087);
x2147 = (x2144)+(x2146);
x2148 = (x2147)+(x2015);
x2149 = (x2148)<(x2015);
x2150 = (x2148)+(x2092);
x2151 = (x2150)<(x2092);
x2152 = (x2149)+(x2151);
x2153 = (x2152)+(x2020);
x2154 = (x2153)<(x2020);
x2155 = (x2153)+(x2097);
x2156 = (x2155)<(x2097);
x2157 = (x2154)+(x2156);
x2158 = (x2157)+(x2025);
x2159 = (x2158)<(x2025);
x2160 = (x2158)+(x2102);
x2161 = (x2160)<(x2102);
x2162 = (x2159)+(x2161);
x2163 = (x2162)+(x2028);
x2164 = (x2163)<(x2028);
x2165 = (x2163)+(x2105);
x2166 = (x2165)<(x2105);
x2167 = (x2164)+(x2166);
x2168 = (x2106)*((uintptr_t)4294967295ULL);
x2169 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2170 = (x2106)*((uintptr_t)4294967295ULL);
x2171 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2172 = (x2106)*((uintptr_t)4294967295ULL);
x2173 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2174 = (x2106)*((uintptr_t)4294967295ULL);
x2175 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2176 = (x2106)*((uintptr_t)4294967295ULL);
x2177 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2178 = (x2106)*((uintptr_t)4294967295ULL);
x2179 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2180 = (x2106)*((uintptr_t)4294967295ULL);
x2181 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2182 = (x2106)*((uintptr_t)4294967294ULL);
x2183 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967294ULL))>>64;
x2184 = (x2106)*((uintptr_t)4294967295ULL);
x2185 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2186 = (x2106)*((uintptr_t)4294967295ULL);
x2187 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2106)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2106)*((uintptr_t)4294967295ULL))>>64;
x2188 = (x2185)+(x2182);
x2189 = (x2188)<(x2185);
x2190 = (x2189)+(x2183);
x2191 = (x2190)<(x2183);
x2192 = (x2190)+(x2180);
x2193 = (x2192)<(x2180);
x2194 = (x2191)+(x2193);
x2195 = (x2194)+(x2181);
x2196 = (x2195)<(x2181);
x2197 = (x2195)+(x2178);
x2198 = (x2197)<(x2178);
x2199 = (x2196)+(x2198);
x2200 = (x2199)+(x2179);
x2201 = (x2200)<(x2179);
x2202 = (x2200)+(x2176);
x2203 = (x2202)<(x2176);
x2204 = (x2201)+(x2203);
x2205 = (x2204)+(x2177);
x2206 = (x2205)<(x2177);
x2207 = (x2205)+(x2174);
x2208 = (x2207)<(x2174);
x2209 = (x2206)+(x2208);
x2210 = (x2209)+(x2175);
x2211 = (x2210)<(x2175);
x2212 = (x2210)+(x2172);
x2213 = (x2212)<(x2172);
x2214 = (x2211)+(x2213);
x2215 = (x2214)+(x2173);
x2216 = (x2215)<(x2173);
x2217 = (x2215)+(x2170);
x2218 = (x2217)<(x2170);
x2219 = (x2216)+(x2218);
x2220 = (x2219)+(x2171);
x2221 = (x2220)<(x2171);
x2222 = (x2220)+(x2168);
x2223 = (x2222)<(x2168);
x2224 = (x2221)+(x2223);
x2225 = (x2224)+(x2169);
x2226 = (x2106)+(x2186);
x2227 = (x2226)<(x2106);
x2228 = (x2227)+(x2110);
x2229 = (x2228)<(x2110);
x2230 = (x2228)+(x2187);
x2231 = (x2230)<(x2187);
x2232 = (x2229)+(x2231);
x2233 = (x2232)+(x2115);
x2234 = (x2233)<(x2115);
x2235 = (x2234)+(x2120);
x2236 = (x2235)<(x2120);
x2237 = (x2235)+(x2184);
x2238 = (x2237)<(x2184);
x2239 = (x2236)+(x2238);
x2240 = (x2239)+(x2125);
x2241 = (x2240)<(x2125);
x2242 = (x2240)+(x2188);
x2243 = (x2242)<(x2188);
x2244 = (x2241)+(x2243);
x2245 = (x2244)+(x2130);
x2246 = (x2245)<(x2130);
x2247 = (x2245)+(x2192);
x2248 = (x2247)<(x2192);
x2249 = (x2246)+(x2248);
x2250 = (x2249)+(x2135);
x2251 = (x2250)<(x2135);
x2252 = (x2250)+(x2197);
x2253 = (x2252)<(x2197);
x2254 = (x2251)+(x2253);
x2255 = (x2254)+(x2140);
x2256 = (x2255)<(x2140);
x2257 = (x2255)+(x2202);
x2258 = (x2257)<(x2202);
x2259 = (x2256)+(x2258);
x2260 = (x2259)+(x2145);
x2261 = (x2260)<(x2145);
x2262 = (x2260)+(x2207);
x2263 = (x2262)<(x2207);
x2264 = (x2261)+(x2263);
x2265 = (x2264)+(x2150);
x2266 = (x2265)<(x2150);
x2267 = (x2265)+(x2212);
x2268 = (x2267)<(x2212);
x2269 = (x2266)+(x2268);
x2270 = (x2269)+(x2155);
x2271 = (x2270)<(x2155);
x2272 = (x2270)+(x2217);
x2273 = (x2272)<(x2217);
x2274 = (x2271)+(x2273);
x2275 = (x2274)+(x2160);
x2276 = (x2275)<(x2160);
x2277 = (x2275)+(x2222);
x2278 = (x2277)<(x2222);
x2279 = (x2276)+(x2278);
x2280 = (x2279)+(x2165);
x2281 = (x2280)<(x2165);
x2282 = (x2280)+(x2225);
x2283 = (x2282)<(x2225);
x2284 = (x2281)+(x2283);
x2285 = (x2284)+(x2167);
x2286 = (x32)*(x23);
x2287 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x23))>>32 : ((__uint128_t)(x32)*(x23))>>64;
x2288 = (x32)*(x22);
x2289 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x22))>>32 : ((__uint128_t)(x32)*(x22))>>64;
x2290 = (x32)*(x21);
x2291 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x21))>>32 : ((__uint128_t)(x32)*(x21))>>64;
x2292 = (x32)*(x20);
x2293 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x20))>>32 : ((__uint128_t)(x32)*(x20))>>64;
x2294 = (x32)*(x19);
x2295 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x19))>>32 : ((__uint128_t)(x32)*(x19))>>64;
x2296 = (x32)*(x18);
x2297 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x18))>>32 : ((__uint128_t)(x32)*(x18))>>64;
x2298 = (x32)*(x17);
x2299 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x17))>>32 : ((__uint128_t)(x32)*(x17))>>64;
x2300 = (x32)*(x16);
x2301 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x16))>>32 : ((__uint128_t)(x32)*(x16))>>64;
x2302 = (x32)*(x15);
x2303 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x15))>>32 : ((__uint128_t)(x32)*(x15))>>64;
x2304 = (x32)*(x14);
x2305 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x14))>>32 : ((__uint128_t)(x32)*(x14))>>64;
x2306 = (x32)*(x13);
x2307 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x13))>>32 : ((__uint128_t)(x32)*(x13))>>64;
x2308 = (x32)*(x12);
x2309 = sizeof(intptr_t) == 4 ? ((uint64_t)(x32)*(x12))>>32 : ((__uint128_t)(x32)*(x12))>>64;
x2310 = (x2309)+(x2306);
x2311 = (x2310)<(x2309);
x2312 = (x2311)+(x2307);
x2313 = (x2312)<(x2307);
x2314 = (x2312)+(x2304);
x2315 = (x2314)<(x2304);
x2316 = (x2313)+(x2315);
x2317 = (x2316)+(x2305);
x2318 = (x2317)<(x2305);
x2319 = (x2317)+(x2302);
x2320 = (x2319)<(x2302);
x2321 = (x2318)+(x2320);
x2322 = (x2321)+(x2303);
x2323 = (x2322)<(x2303);
x2324 = (x2322)+(x2300);
x2325 = (x2324)<(x2300);
x2326 = (x2323)+(x2325);
x2327 = (x2326)+(x2301);
x2328 = (x2327)<(x2301);
x2329 = (x2327)+(x2298);
x2330 = (x2329)<(x2298);
x2331 = (x2328)+(x2330);
x2332 = (x2331)+(x2299);
x2333 = (x2332)<(x2299);
x2334 = (x2332)+(x2296);
x2335 = (x2334)<(x2296);
x2336 = (x2333)+(x2335);
x2337 = (x2336)+(x2297);
x2338 = (x2337)<(x2297);
x2339 = (x2337)+(x2294);
x2340 = (x2339)<(x2294);
x2341 = (x2338)+(x2340);
x2342 = (x2341)+(x2295);
x2343 = (x2342)<(x2295);
x2344 = (x2342)+(x2292);
x2345 = (x2344)<(x2292);
x2346 = (x2343)+(x2345);
x2347 = (x2346)+(x2293);
x2348 = (x2347)<(x2293);
x2349 = (x2347)+(x2290);
x2350 = (x2349)<(x2290);
x2351 = (x2348)+(x2350);
x2352 = (x2351)+(x2291);
x2353 = (x2352)<(x2291);
x2354 = (x2352)+(x2288);
x2355 = (x2354)<(x2288);
x2356 = (x2353)+(x2355);
x2357 = (x2356)+(x2289);
x2358 = (x2357)<(x2289);
x2359 = (x2357)+(x2286);
x2360 = (x2359)<(x2286);
x2361 = (x2358)+(x2360);
x2362 = (x2361)+(x2287);
x2363 = (x2230)+(x2308);
x2364 = (x2363)<(x2230);
x2365 = (x2364)+(x2233);
x2366 = (x2365)<(x2233);
x2367 = (x2365)+(x2310);
x2368 = (x2367)<(x2310);
x2369 = (x2366)+(x2368);
x2370 = (x2369)+(x2237);
x2371 = (x2370)<(x2237);
x2372 = (x2370)+(x2314);
x2373 = (x2372)<(x2314);
x2374 = (x2371)+(x2373);
x2375 = (x2374)+(x2242);
x2376 = (x2375)<(x2242);
x2377 = (x2375)+(x2319);
x2378 = (x2377)<(x2319);
x2379 = (x2376)+(x2378);
x2380 = (x2379)+(x2247);
x2381 = (x2380)<(x2247);
x2382 = (x2380)+(x2324);
x2383 = (x2382)<(x2324);
x2384 = (x2381)+(x2383);
x2385 = (x2384)+(x2252);
x2386 = (x2385)<(x2252);
x2387 = (x2385)+(x2329);
x2388 = (x2387)<(x2329);
x2389 = (x2386)+(x2388);
x2390 = (x2389)+(x2257);
x2391 = (x2390)<(x2257);
x2392 = (x2390)+(x2334);
x2393 = (x2392)<(x2334);
x2394 = (x2391)+(x2393);
x2395 = (x2394)+(x2262);
x2396 = (x2395)<(x2262);
x2397 = (x2395)+(x2339);
x2398 = (x2397)<(x2339);
x2399 = (x2396)+(x2398);
x2400 = (x2399)+(x2267);
x2401 = (x2400)<(x2267);
x2402 = (x2400)+(x2344);
x2403 = (x2402)<(x2344);
x2404 = (x2401)+(x2403);
x2405 = (x2404)+(x2272);
x2406 = (x2405)<(x2272);
x2407 = (x2405)+(x2349);
x2408 = (x2407)<(x2349);
x2409 = (x2406)+(x2408);
x2410 = (x2409)+(x2277);
x2411 = (x2410)<(x2277);
x2412 = (x2410)+(x2354);
x2413 = (x2412)<(x2354);
x2414 = (x2411)+(x2413);
x2415 = (x2414)+(x2282);
x2416 = (x2415)<(x2282);
x2417 = (x2415)+(x2359);
x2418 = (x2417)<(x2359);
x2419 = (x2416)+(x2418);
x2420 = (x2419)+(x2285);
x2421 = (x2420)<(x2285);
x2422 = (x2420)+(x2362);
x2423 = (x2422)<(x2362);
x2424 = (x2421)+(x2423);
x2425 = (x2363)*((uintptr_t)4294967295ULL);
x2426 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2427 = (x2363)*((uintptr_t)4294967295ULL);
x2428 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2429 = (x2363)*((uintptr_t)4294967295ULL);
x2430 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2431 = (x2363)*((uintptr_t)4294967295ULL);
x2432 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2433 = (x2363)*((uintptr_t)4294967295ULL);
x2434 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2435 = (x2363)*((uintptr_t)4294967295ULL);
x2436 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2437 = (x2363)*((uintptr_t)4294967295ULL);
x2438 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2439 = (x2363)*((uintptr_t)4294967294ULL);
x2440 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967294ULL))>>64;
x2441 = (x2363)*((uintptr_t)4294967295ULL);
x2442 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2443 = (x2363)*((uintptr_t)4294967295ULL);
x2444 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2363)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2363)*((uintptr_t)4294967295ULL))>>64;
x2445 = (x2442)+(x2439);
x2446 = (x2445)<(x2442);
x2447 = (x2446)+(x2440);
x2448 = (x2447)<(x2440);
x2449 = (x2447)+(x2437);
x2450 = (x2449)<(x2437);
x2451 = (x2448)+(x2450);
x2452 = (x2451)+(x2438);
x2453 = (x2452)<(x2438);
x2454 = (x2452)+(x2435);
x2455 = (x2454)<(x2435);
x2456 = (x2453)+(x2455);
x2457 = (x2456)+(x2436);
x2458 = (x2457)<(x2436);
x2459 = (x2457)+(x2433);
x2460 = (x2459)<(x2433);
x2461 = (x2458)+(x2460);
x2462 = (x2461)+(x2434);
x2463 = (x2462)<(x2434);
x2464 = (x2462)+(x2431);
x2465 = (x2464)<(x2431);
x2466 = (x2463)+(x2465);
x2467 = (x2466)+(x2432);
x2468 = (x2467)<(x2432);
x2469 = (x2467)+(x2429);
x2470 = (x2469)<(x2429);
x2471 = (x2468)+(x2470);
x2472 = (x2471)+(x2430);
x2473 = (x2472)<(x2430);
x2474 = (x2472)+(x2427);
x2475 = (x2474)<(x2427);
x2476 = (x2473)+(x2475);
x2477 = (x2476)+(x2428);
x2478 = (x2477)<(x2428);
x2479 = (x2477)+(x2425);
x2480 = (x2479)<(x2425);
x2481 = (x2478)+(x2480);
x2482 = (x2481)+(x2426);
x2483 = (x2363)+(x2443);
x2484 = (x2483)<(x2363);
x2485 = (x2484)+(x2367);
x2486 = (x2485)<(x2367);
x2487 = (x2485)+(x2444);
x2488 = (x2487)<(x2444);
x2489 = (x2486)+(x2488);
x2490 = (x2489)+(x2372);
x2491 = (x2490)<(x2372);
x2492 = (x2491)+(x2377);
x2493 = (x2492)<(x2377);
x2494 = (x2492)+(x2441);
x2495 = (x2494)<(x2441);
x2496 = (x2493)+(x2495);
x2497 = (x2496)+(x2382);
x2498 = (x2497)<(x2382);
x2499 = (x2497)+(x2445);
x2500 = (x2499)<(x2445);
x2501 = (x2498)+(x2500);
x2502 = (x2501)+(x2387);
x2503 = (x2502)<(x2387);
x2504 = (x2502)+(x2449);
x2505 = (x2504)<(x2449);
x2506 = (x2503)+(x2505);
x2507 = (x2506)+(x2392);
x2508 = (x2507)<(x2392);
x2509 = (x2507)+(x2454);
x2510 = (x2509)<(x2454);
x2511 = (x2508)+(x2510);
x2512 = (x2511)+(x2397);
x2513 = (x2512)<(x2397);
x2514 = (x2512)+(x2459);
x2515 = (x2514)<(x2459);
x2516 = (x2513)+(x2515);
x2517 = (x2516)+(x2402);
x2518 = (x2517)<(x2402);
x2519 = (x2517)+(x2464);
x2520 = (x2519)<(x2464);
x2521 = (x2518)+(x2520);
x2522 = (x2521)+(x2407);
x2523 = (x2522)<(x2407);
x2524 = (x2522)+(x2469);
x2525 = (x2524)<(x2469);
x2526 = (x2523)+(x2525);
x2527 = (x2526)+(x2412);
x2528 = (x2527)<(x2412);
x2529 = (x2527)+(x2474);
x2530 = (x2529)<(x2474);
x2531 = (x2528)+(x2530);
x2532 = (x2531)+(x2417);
x2533 = (x2532)<(x2417);
x2534 = (x2532)+(x2479);
x2535 = (x2534)<(x2479);
x2536 = (x2533)+(x2535);
x2537 = (x2536)+(x2422);
x2538 = (x2537)<(x2422);
x2539 = (x2537)+(x2482);
x2540 = (x2539)<(x2482);
x2541 = (x2538)+(x2540);
x2542 = (x2541)+(x2424);
x2543 = (x33)*(x23);
x2544 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x23))>>32 : ((__uint128_t)(x33)*(x23))>>64;
x2545 = (x33)*(x22);
x2546 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x22))>>32 : ((__uint128_t)(x33)*(x22))>>64;
x2547 = (x33)*(x21);
x2548 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x21))>>32 : ((__uint128_t)(x33)*(x21))>>64;
x2549 = (x33)*(x20);
x2550 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x20))>>32 : ((__uint128_t)(x33)*(x20))>>64;
x2551 = (x33)*(x19);
x2552 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x19))>>32 : ((__uint128_t)(x33)*(x19))>>64;
x2553 = (x33)*(x18);
x2554 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x18))>>32 : ((__uint128_t)(x33)*(x18))>>64;
x2555 = (x33)*(x17);
x2556 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x17))>>32 : ((__uint128_t)(x33)*(x17))>>64;
x2557 = (x33)*(x16);
x2558 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x16))>>32 : ((__uint128_t)(x33)*(x16))>>64;
x2559 = (x33)*(x15);
x2560 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x15))>>32 : ((__uint128_t)(x33)*(x15))>>64;
x2561 = (x33)*(x14);
x2562 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x14))>>32 : ((__uint128_t)(x33)*(x14))>>64;
x2563 = (x33)*(x13);
x2564 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x13))>>32 : ((__uint128_t)(x33)*(x13))>>64;
x2565 = (x33)*(x12);
x2566 = sizeof(intptr_t) == 4 ? ((uint64_t)(x33)*(x12))>>32 : ((__uint128_t)(x33)*(x12))>>64;
x2567 = (x2566)+(x2563);
x2568 = (x2567)<(x2566);
x2569 = (x2568)+(x2564);
x2570 = (x2569)<(x2564);
x2571 = (x2569)+(x2561);
x2572 = (x2571)<(x2561);
x2573 = (x2570)+(x2572);
x2574 = (x2573)+(x2562);
x2575 = (x2574)<(x2562);
x2576 = (x2574)+(x2559);
x2577 = (x2576)<(x2559);
x2578 = (x2575)+(x2577);
x2579 = (x2578)+(x2560);
x2580 = (x2579)<(x2560);
x2581 = (x2579)+(x2557);
x2582 = (x2581)<(x2557);
x2583 = (x2580)+(x2582);
x2584 = (x2583)+(x2558);
x2585 = (x2584)<(x2558);
x2586 = (x2584)+(x2555);
x2587 = (x2586)<(x2555);
x2588 = (x2585)+(x2587);
x2589 = (x2588)+(x2556);
x2590 = (x2589)<(x2556);
x2591 = (x2589)+(x2553);
x2592 = (x2591)<(x2553);
x2593 = (x2590)+(x2592);
x2594 = (x2593)+(x2554);
x2595 = (x2594)<(x2554);
x2596 = (x2594)+(x2551);
x2597 = (x2596)<(x2551);
x2598 = (x2595)+(x2597);
x2599 = (x2598)+(x2552);
x2600 = (x2599)<(x2552);
x2601 = (x2599)+(x2549);
x2602 = (x2601)<(x2549);
x2603 = (x2600)+(x2602);
x2604 = (x2603)+(x2550);
x2605 = (x2604)<(x2550);
x2606 = (x2604)+(x2547);
x2607 = (x2606)<(x2547);
x2608 = (x2605)+(x2607);
x2609 = (x2608)+(x2548);
x2610 = (x2609)<(x2548);
x2611 = (x2609)+(x2545);
x2612 = (x2611)<(x2545);
x2613 = (x2610)+(x2612);
x2614 = (x2613)+(x2546);
x2615 = (x2614)<(x2546);
x2616 = (x2614)+(x2543);
x2617 = (x2616)<(x2543);
x2618 = (x2615)+(x2617);
x2619 = (x2618)+(x2544);
x2620 = (x2487)+(x2565);
x2621 = (x2620)<(x2487);
x2622 = (x2621)+(x2490);
x2623 = (x2622)<(x2490);
x2624 = (x2622)+(x2567);
x2625 = (x2624)<(x2567);
x2626 = (x2623)+(x2625);
x2627 = (x2626)+(x2494);
x2628 = (x2627)<(x2494);
x2629 = (x2627)+(x2571);
x2630 = (x2629)<(x2571);
x2631 = (x2628)+(x2630);
x2632 = (x2631)+(x2499);
x2633 = (x2632)<(x2499);
x2634 = (x2632)+(x2576);
x2635 = (x2634)<(x2576);
x2636 = (x2633)+(x2635);
x2637 = (x2636)+(x2504);
x2638 = (x2637)<(x2504);
x2639 = (x2637)+(x2581);
x2640 = (x2639)<(x2581);
x2641 = (x2638)+(x2640);
x2642 = (x2641)+(x2509);
x2643 = (x2642)<(x2509);
x2644 = (x2642)+(x2586);
x2645 = (x2644)<(x2586);
x2646 = (x2643)+(x2645);
x2647 = (x2646)+(x2514);
x2648 = (x2647)<(x2514);
x2649 = (x2647)+(x2591);
x2650 = (x2649)<(x2591);
x2651 = (x2648)+(x2650);
x2652 = (x2651)+(x2519);
x2653 = (x2652)<(x2519);
x2654 = (x2652)+(x2596);
x2655 = (x2654)<(x2596);
x2656 = (x2653)+(x2655);
x2657 = (x2656)+(x2524);
x2658 = (x2657)<(x2524);
x2659 = (x2657)+(x2601);
x2660 = (x2659)<(x2601);
x2661 = (x2658)+(x2660);
x2662 = (x2661)+(x2529);
x2663 = (x2662)<(x2529);
x2664 = (x2662)+(x2606);
x2665 = (x2664)<(x2606);
x2666 = (x2663)+(x2665);
x2667 = (x2666)+(x2534);
x2668 = (x2667)<(x2534);
x2669 = (x2667)+(x2611);
x2670 = (x2669)<(x2611);
x2671 = (x2668)+(x2670);
x2672 = (x2671)+(x2539);
x2673 = (x2672)<(x2539);
x2674 = (x2672)+(x2616);
x2675 = (x2674)<(x2616);
x2676 = (x2673)+(x2675);
x2677 = (x2676)+(x2542);
x2678 = (x2677)<(x2542);
x2679 = (x2677)+(x2619);
x2680 = (x2679)<(x2619);
x2681 = (x2678)+(x2680);
x2682 = (x2620)*((uintptr_t)4294967295ULL);
x2683 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2684 = (x2620)*((uintptr_t)4294967295ULL);
x2685 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2686 = (x2620)*((uintptr_t)4294967295ULL);
x2687 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2688 = (x2620)*((uintptr_t)4294967295ULL);
x2689 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2690 = (x2620)*((uintptr_t)4294967295ULL);
x2691 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2692 = (x2620)*((uintptr_t)4294967295ULL);
x2693 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2694 = (x2620)*((uintptr_t)4294967295ULL);
x2695 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2696 = (x2620)*((uintptr_t)4294967294ULL);
x2697 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967294ULL))>>64;
x2698 = (x2620)*((uintptr_t)4294967295ULL);
x2699 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2700 = (x2620)*((uintptr_t)4294967295ULL);
x2701 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2620)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2620)*((uintptr_t)4294967295ULL))>>64;
x2702 = (x2699)+(x2696);
x2703 = (x2702)<(x2699);
x2704 = (x2703)+(x2697);
x2705 = (x2704)<(x2697);
x2706 = (x2704)+(x2694);
x2707 = (x2706)<(x2694);
x2708 = (x2705)+(x2707);
x2709 = (x2708)+(x2695);
x2710 = (x2709)<(x2695);
x2711 = (x2709)+(x2692);
x2712 = (x2711)<(x2692);
x2713 = (x2710)+(x2712);
x2714 = (x2713)+(x2693);
x2715 = (x2714)<(x2693);
x2716 = (x2714)+(x2690);
x2717 = (x2716)<(x2690);
x2718 = (x2715)+(x2717);
x2719 = (x2718)+(x2691);
x2720 = (x2719)<(x2691);
x2721 = (x2719)+(x2688);
x2722 = (x2721)<(x2688);
x2723 = (x2720)+(x2722);
x2724 = (x2723)+(x2689);
x2725 = (x2724)<(x2689);
x2726 = (x2724)+(x2686);
x2727 = (x2726)<(x2686);
x2728 = (x2725)+(x2727);
x2729 = (x2728)+(x2687);
x2730 = (x2729)<(x2687);
x2731 = (x2729)+(x2684);
x2732 = (x2731)<(x2684);
x2733 = (x2730)+(x2732);
x2734 = (x2733)+(x2685);
x2735 = (x2734)<(x2685);
x2736 = (x2734)+(x2682);
x2737 = (x2736)<(x2682);
x2738 = (x2735)+(x2737);
x2739 = (x2738)+(x2683);
x2740 = (x2620)+(x2700);
x2741 = (x2740)<(x2620);
x2742 = (x2741)+(x2624);
x2743 = (x2742)<(x2624);
x2744 = (x2742)+(x2701);
x2745 = (x2744)<(x2701);
x2746 = (x2743)+(x2745);
x2747 = (x2746)+(x2629);
x2748 = (x2747)<(x2629);
x2749 = (x2748)+(x2634);
x2750 = (x2749)<(x2634);
x2751 = (x2749)+(x2698);
x2752 = (x2751)<(x2698);
x2753 = (x2750)+(x2752);
x2754 = (x2753)+(x2639);
x2755 = (x2754)<(x2639);
x2756 = (x2754)+(x2702);
x2757 = (x2756)<(x2702);
x2758 = (x2755)+(x2757);
x2759 = (x2758)+(x2644);
x2760 = (x2759)<(x2644);
x2761 = (x2759)+(x2706);
x2762 = (x2761)<(x2706);
x2763 = (x2760)+(x2762);
x2764 = (x2763)+(x2649);
x2765 = (x2764)<(x2649);
x2766 = (x2764)+(x2711);
x2767 = (x2766)<(x2711);
x2768 = (x2765)+(x2767);
x2769 = (x2768)+(x2654);
x2770 = (x2769)<(x2654);
x2771 = (x2769)+(x2716);
x2772 = (x2771)<(x2716);
x2773 = (x2770)+(x2772);
x2774 = (x2773)+(x2659);
x2775 = (x2774)<(x2659);
x2776 = (x2774)+(x2721);
x2777 = (x2776)<(x2721);
x2778 = (x2775)+(x2777);
x2779 = (x2778)+(x2664);
x2780 = (x2779)<(x2664);
x2781 = (x2779)+(x2726);
x2782 = (x2781)<(x2726);
x2783 = (x2780)+(x2782);
x2784 = (x2783)+(x2669);
x2785 = (x2784)<(x2669);
x2786 = (x2784)+(x2731);
x2787 = (x2786)<(x2731);
x2788 = (x2785)+(x2787);
x2789 = (x2788)+(x2674);
x2790 = (x2789)<(x2674);
x2791 = (x2789)+(x2736);
x2792 = (x2791)<(x2736);
x2793 = (x2790)+(x2792);
x2794 = (x2793)+(x2679);
x2795 = (x2794)<(x2679);
x2796 = (x2794)+(x2739);
x2797 = (x2796)<(x2739);
x2798 = (x2795)+(x2797);
x2799 = (x2798)+(x2681);
x2800 = (x34)*(x23);
x2801 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x23))>>32 : ((__uint128_t)(x34)*(x23))>>64;
x2802 = (x34)*(x22);
x2803 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x22))>>32 : ((__uint128_t)(x34)*(x22))>>64;
x2804 = (x34)*(x21);
x2805 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x21))>>32 : ((__uint128_t)(x34)*(x21))>>64;
x2806 = (x34)*(x20);
x2807 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x20))>>32 : ((__uint128_t)(x34)*(x20))>>64;
x2808 = (x34)*(x19);
x2809 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x19))>>32 : ((__uint128_t)(x34)*(x19))>>64;
x2810 = (x34)*(x18);
x2811 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x18))>>32 : ((__uint128_t)(x34)*(x18))>>64;
x2812 = (x34)*(x17);
x2813 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x17))>>32 : ((__uint128_t)(x34)*(x17))>>64;
x2814 = (x34)*(x16);
x2815 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x16))>>32 : ((__uint128_t)(x34)*(x16))>>64;
x2816 = (x34)*(x15);
x2817 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x15))>>32 : ((__uint128_t)(x34)*(x15))>>64;
x2818 = (x34)*(x14);
x2819 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x14))>>32 : ((__uint128_t)(x34)*(x14))>>64;
x2820 = (x34)*(x13);
x2821 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x13))>>32 : ((__uint128_t)(x34)*(x13))>>64;
x2822 = (x34)*(x12);
x2823 = sizeof(intptr_t) == 4 ? ((uint64_t)(x34)*(x12))>>32 : ((__uint128_t)(x34)*(x12))>>64;
x2824 = (x2823)+(x2820);
x2825 = (x2824)<(x2823);
x2826 = (x2825)+(x2821);
x2827 = (x2826)<(x2821);
x2828 = (x2826)+(x2818);
x2829 = (x2828)<(x2818);
x2830 = (x2827)+(x2829);
x2831 = (x2830)+(x2819);
x2832 = (x2831)<(x2819);
x2833 = (x2831)+(x2816);
x2834 = (x2833)<(x2816);
x2835 = (x2832)+(x2834);
x2836 = (x2835)+(x2817);
x2837 = (x2836)<(x2817);
x2838 = (x2836)+(x2814);
x2839 = (x2838)<(x2814);
x2840 = (x2837)+(x2839);
x2841 = (x2840)+(x2815);
x2842 = (x2841)<(x2815);
x2843 = (x2841)+(x2812);
x2844 = (x2843)<(x2812);
x2845 = (x2842)+(x2844);
x2846 = (x2845)+(x2813);
x2847 = (x2846)<(x2813);
x2848 = (x2846)+(x2810);
x2849 = (x2848)<(x2810);
x2850 = (x2847)+(x2849);
x2851 = (x2850)+(x2811);
x2852 = (x2851)<(x2811);
x2853 = (x2851)+(x2808);
x2854 = (x2853)<(x2808);
x2855 = (x2852)+(x2854);
x2856 = (x2855)+(x2809);
x2857 = (x2856)<(x2809);
x2858 = (x2856)+(x2806);
x2859 = (x2858)<(x2806);
x2860 = (x2857)+(x2859);
x2861 = (x2860)+(x2807);
x2862 = (x2861)<(x2807);
x2863 = (x2861)+(x2804);
x2864 = (x2863)<(x2804);
x2865 = (x2862)+(x2864);
x2866 = (x2865)+(x2805);
x2867 = (x2866)<(x2805);
x2868 = (x2866)+(x2802);
x2869 = (x2868)<(x2802);
x2870 = (x2867)+(x2869);
x2871 = (x2870)+(x2803);
x2872 = (x2871)<(x2803);
x2873 = (x2871)+(x2800);
x2874 = (x2873)<(x2800);
x2875 = (x2872)+(x2874);
x2876 = (x2875)+(x2801);
x2877 = (x2744)+(x2822);
x2878 = (x2877)<(x2744);
x2879 = (x2878)+(x2747);
x2880 = (x2879)<(x2747);
x2881 = (x2879)+(x2824);
x2882 = (x2881)<(x2824);
x2883 = (x2880)+(x2882);
x2884 = (x2883)+(x2751);
x2885 = (x2884)<(x2751);
x2886 = (x2884)+(x2828);
x2887 = (x2886)<(x2828);
x2888 = (x2885)+(x2887);
x2889 = (x2888)+(x2756);
x2890 = (x2889)<(x2756);
x2891 = (x2889)+(x2833);
x2892 = (x2891)<(x2833);
x2893 = (x2890)+(x2892);
x2894 = (x2893)+(x2761);
x2895 = (x2894)<(x2761);
x2896 = (x2894)+(x2838);
x2897 = (x2896)<(x2838);
x2898 = (x2895)+(x2897);
x2899 = (x2898)+(x2766);
x2900 = (x2899)<(x2766);
x2901 = (x2899)+(x2843);
x2902 = (x2901)<(x2843);
x2903 = (x2900)+(x2902);
x2904 = (x2903)+(x2771);
x2905 = (x2904)<(x2771);
x2906 = (x2904)+(x2848);
x2907 = (x2906)<(x2848);
x2908 = (x2905)+(x2907);
x2909 = (x2908)+(x2776);
x2910 = (x2909)<(x2776);
x2911 = (x2909)+(x2853);
x2912 = (x2911)<(x2853);
x2913 = (x2910)+(x2912);
x2914 = (x2913)+(x2781);
x2915 = (x2914)<(x2781);
x2916 = (x2914)+(x2858);
x2917 = (x2916)<(x2858);
x2918 = (x2915)+(x2917);
x2919 = (x2918)+(x2786);
x2920 = (x2919)<(x2786);
x2921 = (x2919)+(x2863);
x2922 = (x2921)<(x2863);
x2923 = (x2920)+(x2922);
x2924 = (x2923)+(x2791);
x2925 = (x2924)<(x2791);
x2926 = (x2924)+(x2868);
x2927 = (x2926)<(x2868);
x2928 = (x2925)+(x2927);
x2929 = (x2928)+(x2796);
x2930 = (x2929)<(x2796);
x2931 = (x2929)+(x2873);
x2932 = (x2931)<(x2873);
x2933 = (x2930)+(x2932);
x2934 = (x2933)+(x2799);
x2935 = (x2934)<(x2799);
x2936 = (x2934)+(x2876);
x2937 = (x2936)<(x2876);
x2938 = (x2935)+(x2937);
x2939 = (x2877)*((uintptr_t)4294967295ULL);
x2940 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2941 = (x2877)*((uintptr_t)4294967295ULL);
x2942 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2943 = (x2877)*((uintptr_t)4294967295ULL);
x2944 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2945 = (x2877)*((uintptr_t)4294967295ULL);
x2946 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2947 = (x2877)*((uintptr_t)4294967295ULL);
x2948 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2949 = (x2877)*((uintptr_t)4294967295ULL);
x2950 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2951 = (x2877)*((uintptr_t)4294967295ULL);
x2952 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2953 = (x2877)*((uintptr_t)4294967294ULL);
x2954 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967294ULL))>>64;
x2955 = (x2877)*((uintptr_t)4294967295ULL);
x2956 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2957 = (x2877)*((uintptr_t)4294967295ULL);
x2958 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2877)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2877)*((uintptr_t)4294967295ULL))>>64;
x2959 = (x2956)+(x2953);
x2960 = (x2959)<(x2956);
x2961 = (x2960)+(x2954);
x2962 = (x2961)<(x2954);
x2963 = (x2961)+(x2951);
x2964 = (x2963)<(x2951);
x2965 = (x2962)+(x2964);
x2966 = (x2965)+(x2952);
x2967 = (x2966)<(x2952);
x2968 = (x2966)+(x2949);
x2969 = (x2968)<(x2949);
x2970 = (x2967)+(x2969);
x2971 = (x2970)+(x2950);
x2972 = (x2971)<(x2950);
x2973 = (x2971)+(x2947);
x2974 = (x2973)<(x2947);
x2975 = (x2972)+(x2974);
x2976 = (x2975)+(x2948);
x2977 = (x2976)<(x2948);
x2978 = (x2976)+(x2945);
x2979 = (x2978)<(x2945);
x2980 = (x2977)+(x2979);
x2981 = (x2980)+(x2946);
x2982 = (x2981)<(x2946);
x2983 = (x2981)+(x2943);
x2984 = (x2983)<(x2943);
x2985 = (x2982)+(x2984);
x2986 = (x2985)+(x2944);
x2987 = (x2986)<(x2944);
x2988 = (x2986)+(x2941);
x2989 = (x2988)<(x2941);
x2990 = (x2987)+(x2989);
x2991 = (x2990)+(x2942);
x2992 = (x2991)<(x2942);
x2993 = (x2991)+(x2939);
x2994 = (x2993)<(x2939);
x2995 = (x2992)+(x2994);
x2996 = (x2995)+(x2940);
x2997 = (x2877)+(x2957);
x2998 = (x2997)<(x2877);
x2999 = (x2998)+(x2881);
x3000 = (x2999)<(x2881);
x3001 = (x2999)+(x2958);
x3002 = (x3001)<(x2958);
x3003 = (x3000)+(x3002);
x3004 = (x3003)+(x2886);
x3005 = (x3004)<(x2886);
x3006 = (x3005)+(x2891);
x3007 = (x3006)<(x2891);
x3008 = (x3006)+(x2955);
x3009 = (x3008)<(x2955);
x3010 = (x3007)+(x3009);
x3011 = (x3010)+(x2896);
x3012 = (x3011)<(x2896);
x3013 = (x3011)+(x2959);
x3014 = (x3013)<(x2959);
x3015 = (x3012)+(x3014);
x3016 = (x3015)+(x2901);
x3017 = (x3016)<(x2901);
x3018 = (x3016)+(x2963);
x3019 = (x3018)<(x2963);
x3020 = (x3017)+(x3019);
x3021 = (x3020)+(x2906);
x3022 = (x3021)<(x2906);
x3023 = (x3021)+(x2968);
x3024 = (x3023)<(x2968);
x3025 = (x3022)+(x3024);
x3026 = (x3025)+(x2911);
x3027 = (x3026)<(x2911);
x3028 = (x3026)+(x2973);
x3029 = (x3028)<(x2973);
x3030 = (x3027)+(x3029);
x3031 = (x3030)+(x2916);
x3032 = (x3031)<(x2916);
x3033 = (x3031)+(x2978);
x3034 = (x3033)<(x2978);
x3035 = (x3032)+(x3034);
x3036 = (x3035)+(x2921);
x3037 = (x3036)<(x2921);
x3038 = (x3036)+(x2983);
x3039 = (x3038)<(x2983);
x3040 = (x3037)+(x3039);
x3041 = (x3040)+(x2926);
x3042 = (x3041)<(x2926);
x3043 = (x3041)+(x2988);
x3044 = (x3043)<(x2988);
x3045 = (x3042)+(x3044);
x3046 = (x3045)+(x2931);
x3047 = (x3046)<(x2931);
x3048 = (x3046)+(x2993);
x3049 = (x3048)<(x2993);
x3050 = (x3047)+(x3049);
x3051 = (x3050)+(x2936);
x3052 = (x3051)<(x2936);
x3053 = (x3051)+(x2996);
x3054 = (x3053)<(x2996);
x3055 = (x3052)+(x3054);
x3056 = (x3055)+(x2938);
x3057 = (x3001)-((uintptr_t)4294967295ULL);
x3058 = (x3001)<(x3057);
x3059 = (x3004)-(x3058);
x3060 = (x3004)<(x3059);
x3061 = (x3008)-(x3060);
x3062 = (x3008)<(x3061);
x3063 = (x3013)-((uintptr_t)4294967295ULL);
x3064 = (x3013)<(x3063);
x3065 = (x3063)-(x3062);
x3066 = (x3063)<(x3065);
x3067 = (x3064)+(x3066);
x3068 = (x3018)-((uintptr_t)4294967294ULL);
x3069 = (x3018)<(x3068);
x3070 = (x3068)-(x3067);
x3071 = (x3068)<(x3070);
x3072 = (x3069)+(x3071);
x3073 = (x3023)-((uintptr_t)4294967295ULL);
x3074 = (x3023)<(x3073);
x3075 = (x3073)-(x3072);
x3076 = (x3073)<(x3075);
x3077 = (x3074)+(x3076);
x3078 = (x3028)-((uintptr_t)4294967295ULL);
x3079 = (x3028)<(x3078);
x3080 = (x3078)-(x3077);
x3081 = (x3078)<(x3080);
x3082 = (x3079)+(x3081);
x3083 = (x3033)-((uintptr_t)4294967295ULL);
x3084 = (x3033)<(x3083);
x3085 = (x3083)-(x3082);
x3086 = (x3083)<(x3085);
x3087 = (x3084)+(x3086);
x3088 = (x3038)-((uintptr_t)4294967295ULL);
x3089 = (x3038)<(x3088);
x3090 = (x3088)-(x3087);
x3091 = (x3088)<(x3090);
x3092 = (x3089)+(x3091);
x3093 = (x3043)-((uintptr_t)4294967295ULL);
x3094 = (x3043)<(x3093);
x3095 = (x3093)-(x3092);
x3096 = (x3093)<(x3095);
x3097 = (x3094)+(x3096);
x3098 = (x3048)-((uintptr_t)4294967295ULL);
x3099 = (x3048)<(x3098);
x3100 = (x3098)-(x3097);
x3101 = (x3098)<(x3100);
x3102 = (x3099)+(x3101);
x3103 = (x3053)-((uintptr_t)4294967295ULL);
x3104 = (x3053)<(x3103);
x3105 = (x3103)-(x3102);
x3106 = (x3103)<(x3105);
x3107 = (x3104)+(x3106);
x3108 = (x3056)-(x3107);
x3109 = (x3056)<(x3108);
x3110 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3111 = (x3110)^((uintptr_t)4294967295ULL);
x3112 = ((x3001)&(x3110))|((x3057)&(x3111));
x3113 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3114 = (x3113)^((uintptr_t)4294967295ULL);
x3115 = ((x3004)&(x3113))|((x3059)&(x3114));
x3116 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3117 = (x3116)^((uintptr_t)4294967295ULL);
x3118 = ((x3008)&(x3116))|((x3061)&(x3117));
x3119 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3120 = (x3119)^((uintptr_t)4294967295ULL);
x3121 = ((x3013)&(x3119))|((x3065)&(x3120));
x3122 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3123 = (x3122)^((uintptr_t)4294967295ULL);
x3124 = ((x3018)&(x3122))|((x3070)&(x3123));
x3125 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3126 = (x3125)^((uintptr_t)4294967295ULL);
x3127 = ((x3023)&(x3125))|((x3075)&(x3126));
x3128 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3129 = (x3128)^((uintptr_t)4294967295ULL);
x3130 = ((x3028)&(x3128))|((x3080)&(x3129));
x3131 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3132 = (x3131)^((uintptr_t)4294967295ULL);
x3133 = ((x3033)&(x3131))|((x3085)&(x3132));
x3134 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3135 = (x3134)^((uintptr_t)4294967295ULL);
x3136 = ((x3038)&(x3134))|((x3090)&(x3135));
x3137 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3138 = (x3137)^((uintptr_t)4294967295ULL);
x3139 = ((x3043)&(x3137))|((x3095)&(x3138));
x3140 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3141 = (x3140)^((uintptr_t)4294967295ULL);
x3142 = ((x3048)&(x3140))|((x3100)&(x3141));
x3143 = ((uintptr_t)-1ULL)+((x3109)==((uintptr_t)0ULL));
x3144 = (x3143)^((uintptr_t)4294967295ULL);
x3145 = ((x3053)&(x3143))|((x3105)&(x3144));
x3146 = x3112;
x3147 = x3115;
x3148 = x3118;
x3149 = x3121;
x3150 = x3124;
x3151 = x3127;
x3152 = x3130;
x3153 = x3133;
x3154 = x3136;
x3155 = x3139;
x3156 = x3142;
x3157 = x3145;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x3146, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x3147, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x3148, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x3149, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x3150, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x3151, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x3152, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x3153, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x3154, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x3155, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x3156, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x3157, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_mul(uint32_t out1[12], const uint32_t arg1[12], const uint32_t arg2[12]) {
internal_fiat_p384_mul((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_square(uintptr_t out0, uintptr_t in0) {
uintptr_t x23, x44, x47, x49, x45, x50, x42, x51, x53, x54, x43, x55, x40, x56, x58, x59, x41, x60, x38, x61, x63, x64, x39, x65, x36, x66, x68, x69, x37, x70, x34, x71, x73, x74, x35, x75, x32, x76, x78, x79, x33, x80, x30, x81, x83, x84, x31, x85, x28, x86, x88, x89, x29, x90, x26, x91, x93, x94, x27, x95, x24, x96, x98, x99, x25, x115, x118, x122, x116, x123, x113, x124, x126, x127, x114, x128, x111, x129, x131, x132, x112, x133, x109, x134, x136, x137, x110, x138, x107, x139, x141, x142, x108, x143, x105, x144, x146, x147, x106, x148, x103, x149, x151, x152, x104, x153, x101, x154, x156, x157, x102, x119, x159, x46, x160, x48, x161, x120, x162, x164, x165, x52, x167, x57, x168, x117, x169, x171, x172, x62, x173, x121, x174, x176, x177, x67, x178, x125, x179, x181, x182, x72, x183, x130, x184, x186, x187, x77, x188, x135, x189, x191, x192, x82, x193, x140, x194, x196, x197, x87, x198, x145, x199, x201, x202, x92, x203, x150, x204, x206, x207, x97, x208, x155, x209, x211, x212, x100, x213, x158, x214, x216, x12, x238, x241, x243, x239, x244, x236, x245, x247, x248, x237, x249, x234, x250, x252, x253, x235, x254, x232, x255, x257, x258, x233, x259, x230, x260, x262, x263, x231, x264, x228, x265, x267, x268, x229, x269, x226, x270, x272, x273, x227, x274, x224, x275, x277, x278, x225, x279, x222, x280, x282, x283, x223, x284, x220, x285, x287, x288, x221, x289, x218, x290, x292, x293, x219, x240, x163, x296, x166, x297, x242, x298, x300, x301, x170, x302, x246, x303, x305, x306, x175, x307, x251, x308, x310, x311, x180, x312, x256, x313, x315, x316, x185, x317, x261, x318, x320, x321, x190, x322, x266, x323, x325, x326, x195, x327, x271, x328, x330, x331, x200, x332, x276, x333, x335, x336, x205, x337, x281, x338, x340, x341, x210, x342, x286, x343, x345, x346, x215, x347, x291, x348, x350, x351, x217, x352, x294, x353, x355, x371, x374, x378, x372, x379, x369, x380, x382, x383, x370, x384, x367, x385, x387, x388, x368, x389, x365, x390, x392, x393, x366, x394, x363, x395, x397, x398, x364, x399, x361, x400, x402, x403, x362, x404, x359, x405, x407, x408, x360, x409, x357, x410, x412, x413, x358, x375, x415, x295, x416, x299, x417, x376, x418, x420, x421, x304, x423, x309, x424, x373, x425, x427, x428, x314, x429, x377, x430, x432, x433, x319, x434, x381, x435, x437, x438, x324, x439, x386, x440, x442, x443, x329, x444, x391, x445, x447, x448, x334, x449, x396, x450, x452, x453, x339, x454, x401, x455, x457, x458, x344, x459, x406, x460, x462, x463, x349, x464, x411, x465, x467, x468, x354, x469, x414, x470, x472, x473, x356, x13, x495, x498, x500, x496, x501, x493, x502, x504, x505, x494, x506, x491, x507, x509, x510, x492, x511, x489, x512, x514, x515, x490, x516, x487, x517, x519, x520, x488, x521, x485, x522, x524, x525, x486, x526, x483, x527, x529, x530, x484, x531, x481, x532, x534, x535, x482, x536, x479, x537, x539, x540, x480, x541, x477, x542, x544, x545, x478, x546, x475, x547, x549, x550, x476, x497, x419, x553, x422, x554, x499, x555, x557, x558, x426, x559, x503, x560, x562, x563, x431, x564, x508, x565, x567, x568, x436, x569, x513, x570, x572, x573, x441, x574, x518, x575, x577, x578, x446, x579, x523, x580, x582, x583, x451, x584, x528, x585, x587, x588, x456, x589, x533, x590, x592, x593, x461, x594, x538, x595, x597, x598, x466, x599, x543, x600, x602, x603, x471, x604, x548, x605, x607, x608, x474, x609, x551, x610, x612, x628, x631, x635, x629, x636, x626, x637, x639, x640, x627, x641, x624, x642, x644, x645, x625, x646, x622, x647, x649, x650, x623, x651, x620, x652, x654, x655, x621, x656, x618, x657, x659, x660, x619, x661, x616, x662, x664, x665, x617, x666, x614, x667, x669, x670, x615, x632, x672, x552, x673, x556, x674, x633, x675, x677, x678, x561, x680, x566, x681, x630, x682, x684, x685, x571, x686, x634, x687, x689, x690, x576, x691, x638, x692, x694, x695, x581, x696, x643, x697, x699, x700, x586, x701, x648, x702, x704, x705, x591, x706, x653, x707, x709, x710, x596, x711, x658, x712, x714, x715, x601, x716, x663, x717, x719, x720, x606, x721, x668, x722, x724, x725, x611, x726, x671, x727, x729, x730, x613, x14, x752, x755, x757, x753, x758, x750, x759, x761, x762, x751, x763, x748, x764, x766, x767, x749, x768, x746, x769, x771, x772, x747, x773, x744, x774, x776, x777, x745, x778, x742, x779, x781, x782, x743, x783, x740, x784, x786, x787, x741, x788, x738, x789, x791, x792, x739, x793, x736, x794, x796, x797, x737, x798, x734, x799, x801, x802, x735, x803, x732, x804, x806, x807, x733, x754, x676, x810, x679, x811, x756, x812, x814, x815, x683, x816, x760, x817, x819, x820, x688, x821, x765, x822, x824, x825, x693, x826, x770, x827, x829, x830, x698, x831, x775, x832, x834, x835, x703, x836, x780, x837, x839, x840, x708, x841, x785, x842, x844, x845, x713, x846, x790, x847, x849, x850, x718, x851, x795, x852, x854, x855, x723, x856, x800, x857, x859, x860, x728, x861, x805, x862, x864, x865, x731, x866, x808, x867, x869, x885, x888, x892, x886, x893, x883, x894, x896, x897, x884, x898, x881, x899, x901, x902, x882, x903, x879, x904, x906, x907, x880, x908, x877, x909, x911, x912, x878, x913, x875, x914, x916, x917, x876, x918, x873, x919, x921, x922, x874, x923, x871, x924, x926, x927, x872, x889, x929, x809, x930, x813, x931, x890, x932, x934, x935, x818, x937, x823, x938, x887, x939, x941, x942, x828, x943, x891, x944, x946, x947, x833, x948, x895, x949, x951, x952, x838, x953, x900, x954, x956, x957, x843, x958, x905, x959, x961, x962, x848, x963, x910, x964, x966, x967, x853, x968, x915, x969, x971, x972, x858, x973, x920, x974, x976, x977, x863, x978, x925, x979, x981, x982, x868, x983, x928, x984, x986, x987, x870, x15, x1009, x1012, x1014, x1010, x1015, x1007, x1016, x1018, x1019, x1008, x1020, x1005, x1021, x1023, x1024, x1006, x1025, x1003, x1026, x1028, x1029, x1004, x1030, x1001, x1031, x1033, x1034, x1002, x1035, x999, x1036, x1038, x1039, x1000, x1040, x997, x1041, x1043, x1044, x998, x1045, x995, x1046, x1048, x1049, x996, x1050, x993, x1051, x1053, x1054, x994, x1055, x991, x1056, x1058, x1059, x992, x1060, x989, x1061, x1063, x1064, x990, x1011, x933, x1067, x936, x1068, x1013, x1069, x1071, x1072, x940, x1073, x1017, x1074, x1076, x1077, x945, x1078, x1022, x1079, x1081, x1082, x950, x1083, x1027, x1084, x1086, x1087, x955, x1088, x1032, x1089, x1091, x1092, x960, x1093, x1037, x1094, x1096, x1097, x965, x1098, x1042, x1099, x1101, x1102, x970, x1103, x1047, x1104, x1106, x1107, x975, x1108, x1052, x1109, x1111, x1112, x980, x1113, x1057, x1114, x1116, x1117, x985, x1118, x1062, x1119, x1121, x1122, x988, x1123, x1065, x1124, x1126, x1142, x1145, x1149, x1143, x1150, x1140, x1151, x1153, x1154, x1141, x1155, x1138, x1156, x1158, x1159, x1139, x1160, x1136, x1161, x1163, x1164, x1137, x1165, x1134, x1166, x1168, x1169, x1135, x1170, x1132, x1171, x1173, x1174, x1133, x1175, x1130, x1176, x1178, x1179, x1131, x1180, x1128, x1181, x1183, x1184, x1129, x1146, x1186, x1066, x1187, x1070, x1188, x1147, x1189, x1191, x1192, x1075, x1194, x1080, x1195, x1144, x1196, x1198, x1199, x1085, x1200, x1148, x1201, x1203, x1204, x1090, x1205, x1152, x1206, x1208, x1209, x1095, x1210, x1157, x1211, x1213, x1214, x1100, x1215, x1162, x1216, x1218, x1219, x1105, x1220, x1167, x1221, x1223, x1224, x1110, x1225, x1172, x1226, x1228, x1229, x1115, x1230, x1177, x1231, x1233, x1234, x1120, x1235, x1182, x1236, x1238, x1239, x1125, x1240, x1185, x1241, x1243, x1244, x1127, x16, x1266, x1269, x1271, x1267, x1272, x1264, x1273, x1275, x1276, x1265, x1277, x1262, x1278, x1280, x1281, x1263, x1282, x1260, x1283, x1285, x1286, x1261, x1287, x1258, x1288, x1290, x1291, x1259, x1292, x1256, x1293, x1295, x1296, x1257, x1297, x1254, x1298, x1300, x1301, x1255, x1302, x1252, x1303, x1305, x1306, x1253, x1307, x1250, x1308, x1310, x1311, x1251, x1312, x1248, x1313, x1315, x1316, x1249, x1317, x1246, x1318, x1320, x1321, x1247, x1268, x1190, x1324, x1193, x1325, x1270, x1326, x1328, x1329, x1197, x1330, x1274, x1331, x1333, x1334, x1202, x1335, x1279, x1336, x1338, x1339, x1207, x1340, x1284, x1341, x1343, x1344, x1212, x1345, x1289, x1346, x1348, x1349, x1217, x1350, x1294, x1351, x1353, x1354, x1222, x1355, x1299, x1356, x1358, x1359, x1227, x1360, x1304, x1361, x1363, x1364, x1232, x1365, x1309, x1366, x1368, x1369, x1237, x1370, x1314, x1371, x1373, x1374, x1242, x1375, x1319, x1376, x1378, x1379, x1245, x1380, x1322, x1381, x1383, x1399, x1402, x1406, x1400, x1407, x1397, x1408, x1410, x1411, x1398, x1412, x1395, x1413, x1415, x1416, x1396, x1417, x1393, x1418, x1420, x1421, x1394, x1422, x1391, x1423, x1425, x1426, x1392, x1427, x1389, x1428, x1430, x1431, x1390, x1432, x1387, x1433, x1435, x1436, x1388, x1437, x1385, x1438, x1440, x1441, x1386, x1403, x1443, x1323, x1444, x1327, x1445, x1404, x1446, x1448, x1449, x1332, x1451, x1337, x1452, x1401, x1453, x1455, x1456, x1342, x1457, x1405, x1458, x1460, x1461, x1347, x1462, x1409, x1463, x1465, x1466, x1352, x1467, x1414, x1468, x1470, x1471, x1357, x1472, x1419, x1473, x1475, x1476, x1362, x1477, x1424, x1478, x1480, x1481, x1367, x1482, x1429, x1483, x1485, x1486, x1372, x1487, x1434, x1488, x1490, x1491, x1377, x1492, x1439, x1493, x1495, x1496, x1382, x1497, x1442, x1498, x1500, x1501, x1384, x17, x1523, x1526, x1528, x1524, x1529, x1521, x1530, x1532, x1533, x1522, x1534, x1519, x1535, x1537, x1538, x1520, x1539, x1517, x1540, x1542, x1543, x1518, x1544, x1515, x1545, x1547, x1548, x1516, x1549, x1513, x1550, x1552, x1553, x1514, x1554, x1511, x1555, x1557, x1558, x1512, x1559, x1509, x1560, x1562, x1563, x1510, x1564, x1507, x1565, x1567, x1568, x1508, x1569, x1505, x1570, x1572, x1573, x1506, x1574, x1503, x1575, x1577, x1578, x1504, x1525, x1447, x1581, x1450, x1582, x1527, x1583, x1585, x1586, x1454, x1587, x1531, x1588, x1590, x1591, x1459, x1592, x1536, x1593, x1595, x1596, x1464, x1597, x1541, x1598, x1600, x1601, x1469, x1602, x1546, x1603, x1605, x1606, x1474, x1607, x1551, x1608, x1610, x1611, x1479, x1612, x1556, x1613, x1615, x1616, x1484, x1617, x1561, x1618, x1620, x1621, x1489, x1622, x1566, x1623, x1625, x1626, x1494, x1627, x1571, x1628, x1630, x1631, x1499, x1632, x1576, x1633, x1635, x1636, x1502, x1637, x1579, x1638, x1640, x1656, x1659, x1663, x1657, x1664, x1654, x1665, x1667, x1668, x1655, x1669, x1652, x1670, x1672, x1673, x1653, x1674, x1650, x1675, x1677, x1678, x1651, x1679, x1648, x1680, x1682, x1683, x1649, x1684, x1646, x1685, x1687, x1688, x1647, x1689, x1644, x1690, x1692, x1693, x1645, x1694, x1642, x1695, x1697, x1698, x1643, x1660, x1700, x1580, x1701, x1584, x1702, x1661, x1703, x1705, x1706, x1589, x1708, x1594, x1709, x1658, x1710, x1712, x1713, x1599, x1714, x1662, x1715, x1717, x1718, x1604, x1719, x1666, x1720, x1722, x1723, x1609, x1724, x1671, x1725, x1727, x1728, x1614, x1729, x1676, x1730, x1732, x1733, x1619, x1734, x1681, x1735, x1737, x1738, x1624, x1739, x1686, x1740, x1742, x1743, x1629, x1744, x1691, x1745, x1747, x1748, x1634, x1749, x1696, x1750, x1752, x1753, x1639, x1754, x1699, x1755, x1757, x1758, x1641, x18, x1780, x1783, x1785, x1781, x1786, x1778, x1787, x1789, x1790, x1779, x1791, x1776, x1792, x1794, x1795, x1777, x1796, x1774, x1797, x1799, x1800, x1775, x1801, x1772, x1802, x1804, x1805, x1773, x1806, x1770, x1807, x1809, x1810, x1771, x1811, x1768, x1812, x1814, x1815, x1769, x1816, x1766, x1817, x1819, x1820, x1767, x1821, x1764, x1822, x1824, x1825, x1765, x1826, x1762, x1827, x1829, x1830, x1763, x1831, x1760, x1832, x1834, x1835, x1761, x1782, x1704, x1838, x1707, x1839, x1784, x1840, x1842, x1843, x1711, x1844, x1788, x1845, x1847, x1848, x1716, x1849, x1793, x1850, x1852, x1853, x1721, x1854, x1798, x1855, x1857, x1858, x1726, x1859, x1803, x1860, x1862, x1863, x1731, x1864, x1808, x1865, x1867, x1868, x1736, x1869, x1813, x1870, x1872, x1873, x1741, x1874, x1818, x1875, x1877, x1878, x1746, x1879, x1823, x1880, x1882, x1883, x1751, x1884, x1828, x1885, x1887, x1888, x1756, x1889, x1833, x1890, x1892, x1893, x1759, x1894, x1836, x1895, x1897, x1913, x1916, x1920, x1914, x1921, x1911, x1922, x1924, x1925, x1912, x1926, x1909, x1927, x1929, x1930, x1910, x1931, x1907, x1932, x1934, x1935, x1908, x1936, x1905, x1937, x1939, x1940, x1906, x1941, x1903, x1942, x1944, x1945, x1904, x1946, x1901, x1947, x1949, x1950, x1902, x1951, x1899, x1952, x1954, x1955, x1900, x1917, x1957, x1837, x1958, x1841, x1959, x1918, x1960, x1962, x1963, x1846, x1965, x1851, x1966, x1915, x1967, x1969, x1970, x1856, x1971, x1919, x1972, x1974, x1975, x1861, x1976, x1923, x1977, x1979, x1980, x1866, x1981, x1928, x1982, x1984, x1985, x1871, x1986, x1933, x1987, x1989, x1990, x1876, x1991, x1938, x1992, x1994, x1995, x1881, x1996, x1943, x1997, x1999, x2000, x1886, x2001, x1948, x2002, x2004, x2005, x1891, x2006, x1953, x2007, x2009, x2010, x1896, x2011, x1956, x2012, x2014, x2015, x1898, x19, x2037, x2040, x2042, x2038, x2043, x2035, x2044, x2046, x2047, x2036, x2048, x2033, x2049, x2051, x2052, x2034, x2053, x2031, x2054, x2056, x2057, x2032, x2058, x2029, x2059, x2061, x2062, x2030, x2063, x2027, x2064, x2066, x2067, x2028, x2068, x2025, x2069, x2071, x2072, x2026, x2073, x2023, x2074, x2076, x2077, x2024, x2078, x2021, x2079, x2081, x2082, x2022, x2083, x2019, x2084, x2086, x2087, x2020, x2088, x2017, x2089, x2091, x2092, x2018, x2039, x1961, x2095, x1964, x2096, x2041, x2097, x2099, x2100, x1968, x2101, x2045, x2102, x2104, x2105, x1973, x2106, x2050, x2107, x2109, x2110, x1978, x2111, x2055, x2112, x2114, x2115, x1983, x2116, x2060, x2117, x2119, x2120, x1988, x2121, x2065, x2122, x2124, x2125, x1993, x2126, x2070, x2127, x2129, x2130, x1998, x2131, x2075, x2132, x2134, x2135, x2003, x2136, x2080, x2137, x2139, x2140, x2008, x2141, x2085, x2142, x2144, x2145, x2013, x2146, x2090, x2147, x2149, x2150, x2016, x2151, x2093, x2152, x2154, x2170, x2173, x2177, x2171, x2178, x2168, x2179, x2181, x2182, x2169, x2183, x2166, x2184, x2186, x2187, x2167, x2188, x2164, x2189, x2191, x2192, x2165, x2193, x2162, x2194, x2196, x2197, x2163, x2198, x2160, x2199, x2201, x2202, x2161, x2203, x2158, x2204, x2206, x2207, x2159, x2208, x2156, x2209, x2211, x2212, x2157, x2174, x2214, x2094, x2215, x2098, x2216, x2175, x2217, x2219, x2220, x2103, x2222, x2108, x2223, x2172, x2224, x2226, x2227, x2113, x2228, x2176, x2229, x2231, x2232, x2118, x2233, x2180, x2234, x2236, x2237, x2123, x2238, x2185, x2239, x2241, x2242, x2128, x2243, x2190, x2244, x2246, x2247, x2133, x2248, x2195, x2249, x2251, x2252, x2138, x2253, x2200, x2254, x2256, x2257, x2143, x2258, x2205, x2259, x2261, x2262, x2148, x2263, x2210, x2264, x2266, x2267, x2153, x2268, x2213, x2269, x2271, x2272, x2155, x20, x2294, x2297, x2299, x2295, x2300, x2292, x2301, x2303, x2304, x2293, x2305, x2290, x2306, x2308, x2309, x2291, x2310, x2288, x2311, x2313, x2314, x2289, x2315, x2286, x2316, x2318, x2319, x2287, x2320, x2284, x2321, x2323, x2324, x2285, x2325, x2282, x2326, x2328, x2329, x2283, x2330, x2280, x2331, x2333, x2334, x2281, x2335, x2278, x2336, x2338, x2339, x2279, x2340, x2276, x2341, x2343, x2344, x2277, x2345, x2274, x2346, x2348, x2349, x2275, x2296, x2218, x2352, x2221, x2353, x2298, x2354, x2356, x2357, x2225, x2358, x2302, x2359, x2361, x2362, x2230, x2363, x2307, x2364, x2366, x2367, x2235, x2368, x2312, x2369, x2371, x2372, x2240, x2373, x2317, x2374, x2376, x2377, x2245, x2378, x2322, x2379, x2381, x2382, x2250, x2383, x2327, x2384, x2386, x2387, x2255, x2388, x2332, x2389, x2391, x2392, x2260, x2393, x2337, x2394, x2396, x2397, x2265, x2398, x2342, x2399, x2401, x2402, x2270, x2403, x2347, x2404, x2406, x2407, x2273, x2408, x2350, x2409, x2411, x2427, x2430, x2434, x2428, x2435, x2425, x2436, x2438, x2439, x2426, x2440, x2423, x2441, x2443, x2444, x2424, x2445, x2421, x2446, x2448, x2449, x2422, x2450, x2419, x2451, x2453, x2454, x2420, x2455, x2417, x2456, x2458, x2459, x2418, x2460, x2415, x2461, x2463, x2464, x2416, x2465, x2413, x2466, x2468, x2469, x2414, x2431, x2471, x2351, x2472, x2355, x2473, x2432, x2474, x2476, x2477, x2360, x2479, x2365, x2480, x2429, x2481, x2483, x2484, x2370, x2485, x2433, x2486, x2488, x2489, x2375, x2490, x2437, x2491, x2493, x2494, x2380, x2495, x2442, x2496, x2498, x2499, x2385, x2500, x2447, x2501, x2503, x2504, x2390, x2505, x2452, x2506, x2508, x2509, x2395, x2510, x2457, x2511, x2513, x2514, x2400, x2515, x2462, x2516, x2518, x2519, x2405, x2520, x2467, x2521, x2523, x2524, x2410, x2525, x2470, x2526, x2528, x2529, x2412, x21, x2551, x2554, x2556, x2552, x2557, x2549, x2558, x2560, x2561, x2550, x2562, x2547, x2563, x2565, x2566, x2548, x2567, x2545, x2568, x2570, x2571, x2546, x2572, x2543, x2573, x2575, x2576, x2544, x2577, x2541, x2578, x2580, x2581, x2542, x2582, x2539, x2583, x2585, x2586, x2540, x2587, x2537, x2588, x2590, x2591, x2538, x2592, x2535, x2593, x2595, x2596, x2536, x2597, x2533, x2598, x2600, x2601, x2534, x2602, x2531, x2603, x2605, x2606, x2532, x2553, x2475, x2609, x2478, x2610, x2555, x2611, x2613, x2614, x2482, x2615, x2559, x2616, x2618, x2619, x2487, x2620, x2564, x2621, x2623, x2624, x2492, x2625, x2569, x2626, x2628, x2629, x2497, x2630, x2574, x2631, x2633, x2634, x2502, x2635, x2579, x2636, x2638, x2639, x2507, x2640, x2584, x2641, x2643, x2644, x2512, x2645, x2589, x2646, x2648, x2649, x2517, x2650, x2594, x2651, x2653, x2654, x2522, x2655, x2599, x2656, x2658, x2659, x2527, x2660, x2604, x2661, x2663, x2664, x2530, x2665, x2607, x2666, x2668, x2684, x2687, x2691, x2685, x2692, x2682, x2693, x2695, x2696, x2683, x2697, x2680, x2698, x2700, x2701, x2681, x2702, x2678, x2703, x2705, x2706, x2679, x2707, x2676, x2708, x2710, x2711, x2677, x2712, x2674, x2713, x2715, x2716, x2675, x2717, x2672, x2718, x2720, x2721, x2673, x2722, x2670, x2723, x2725, x2726, x2671, x2688, x2728, x2608, x2729, x2612, x2730, x2689, x2731, x2733, x2734, x2617, x2736, x2622, x2737, x2686, x2738, x2740, x2741, x2627, x2742, x2690, x2743, x2745, x2746, x2632, x2747, x2694, x2748, x2750, x2751, x2637, x2752, x2699, x2753, x2755, x2756, x2642, x2757, x2704, x2758, x2760, x2761, x2647, x2762, x2709, x2763, x2765, x2766, x2652, x2767, x2714, x2768, x2770, x2771, x2657, x2772, x2719, x2773, x2775, x2776, x2662, x2777, x2724, x2778, x2780, x2781, x2667, x2782, x2727, x2783, x2785, x2786, x2669, x11, x10, x9, x8, x7, x6, x5, x4, x3, x2, x1, x22, x0, x2808, x2811, x2813, x2809, x2814, x2806, x2815, x2817, x2818, x2807, x2819, x2804, x2820, x2822, x2823, x2805, x2824, x2802, x2825, x2827, x2828, x2803, x2829, x2800, x2830, x2832, x2833, x2801, x2834, x2798, x2835, x2837, x2838, x2799, x2839, x2796, x2840, x2842, x2843, x2797, x2844, x2794, x2845, x2847, x2848, x2795, x2849, x2792, x2850, x2852, x2853, x2793, x2854, x2790, x2855, x2857, x2858, x2791, x2859, x2788, x2860, x2862, x2863, x2789, x2810, x2732, x2866, x2735, x2867, x2812, x2868, x2870, x2871, x2739, x2872, x2816, x2873, x2875, x2876, x2744, x2877, x2821, x2878, x2880, x2881, x2749, x2882, x2826, x2883, x2885, x2886, x2754, x2887, x2831, x2888, x2890, x2891, x2759, x2892, x2836, x2893, x2895, x2896, x2764, x2897, x2841, x2898, x2900, x2901, x2769, x2902, x2846, x2903, x2905, x2906, x2774, x2907, x2851, x2908, x2910, x2911, x2779, x2912, x2856, x2913, x2915, x2916, x2784, x2917, x2861, x2918, x2920, x2921, x2787, x2922, x2864, x2923, x2925, x2941, x2944, x2948, x2942, x2949, x2939, x2950, x2952, x2953, x2940, x2954, x2937, x2955, x2957, x2958, x2938, x2959, x2935, x2960, x2962, x2963, x2936, x2964, x2933, x2965, x2967, x2968, x2934, x2969, x2931, x2970, x2972, x2973, x2932, x2974, x2929, x2975, x2977, x2978, x2930, x2979, x2927, x2980, x2982, x2983, x2928, x2945, x2985, x2865, x2986, x2869, x2987, x2946, x2988, x2990, x2991, x2874, x2993, x2879, x2994, x2943, x2995, x2997, x2998, x2884, x2999, x2947, x3000, x3002, x3003, x2889, x3004, x2951, x3005, x3007, x3008, x2894, x3009, x2956, x3010, x3012, x3013, x2899, x3014, x2961, x3015, x3017, x3018, x2904, x3019, x2966, x3020, x3022, x3023, x2909, x3024, x2971, x3025, x3027, x3028, x2914, x3029, x2976, x3030, x3032, x3033, x2919, x3034, x2981, x3035, x3037, x3038, x2924, x3039, x2984, x3040, x3042, x3043, x2926, x3046, x3048, x3050, x3051, x3052, x3054, x3055, x3056, x3057, x3059, x3060, x3061, x3062, x3064, x3065, x3066, x3067, x3069, x3070, x3071, x3072, x3074, x3075, x3076, x3077, x3079, x3080, x3081, x3082, x3084, x3085, x3086, x3087, x3089, x3090, x3091, x3092, x3094, x3095, x3044, x3096, x2989, x3098, x3045, x3099, x2992, x3101, x3047, x3102, x2996, x3104, x3049, x3105, x3001, x3107, x3053, x3108, x3006, x3110, x3058, x3111, x3011, x3113, x3063, x3114, x3016, x3116, x3068, x3117, x3021, x3119, x3073, x3120, x3026, x3122, x3078, x3123, x3031, x3125, x3083, x3126, x3036, x3128, x3088, x3129, x3097, x3041, x3131, x3093, x3132, x3100, x3103, x3106, x3109, x3112, x3115, x3118, x3121, x3124, x3127, x3130, x3133, x3134, x3135, x3136, x3137, x3138, x3139, x3140, x3141, x3142, x3143, x3144, x3145;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = x1;
x13 = x2;
x14 = x3;
x15 = x4;
x16 = x5;
x17 = x6;
x18 = x7;
x19 = x8;
x20 = x9;
x21 = x10;
x22 = x11;
x23 = x0;
x24 = (x23)*(x11);
x25 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x11))>>32 : ((__uint128_t)(x23)*(x11))>>64;
x26 = (x23)*(x10);
x27 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x10))>>32 : ((__uint128_t)(x23)*(x10))>>64;
x28 = (x23)*(x9);
x29 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x9))>>32 : ((__uint128_t)(x23)*(x9))>>64;
x30 = (x23)*(x8);
x31 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x8))>>32 : ((__uint128_t)(x23)*(x8))>>64;
x32 = (x23)*(x7);
x33 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x7))>>32 : ((__uint128_t)(x23)*(x7))>>64;
x34 = (x23)*(x6);
x35 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x6))>>32 : ((__uint128_t)(x23)*(x6))>>64;
x36 = (x23)*(x5);
x37 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x5))>>32 : ((__uint128_t)(x23)*(x5))>>64;
x38 = (x23)*(x4);
x39 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x4))>>32 : ((__uint128_t)(x23)*(x4))>>64;
x40 = (x23)*(x3);
x41 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x3))>>32 : ((__uint128_t)(x23)*(x3))>>64;
x42 = (x23)*(x2);
x43 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x2))>>32 : ((__uint128_t)(x23)*(x2))>>64;
x44 = (x23)*(x1);
x45 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x1))>>32 : ((__uint128_t)(x23)*(x1))>>64;
x46 = (x23)*(x0);
x47 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*(x0))>>32 : ((__uint128_t)(x23)*(x0))>>64;
x48 = (x47)+(x44);
x49 = (x48)<(x47);
x50 = (x49)+(x45);
x51 = (x50)<(x45);
x52 = (x50)+(x42);
x53 = (x52)<(x42);
x54 = (x51)+(x53);
x55 = (x54)+(x43);
x56 = (x55)<(x43);
x57 = (x55)+(x40);
x58 = (x57)<(x40);
x59 = (x56)+(x58);
x60 = (x59)+(x41);
x61 = (x60)<(x41);
x62 = (x60)+(x38);
x63 = (x62)<(x38);
x64 = (x61)+(x63);
x65 = (x64)+(x39);
x66 = (x65)<(x39);
x67 = (x65)+(x36);
x68 = (x67)<(x36);
x69 = (x66)+(x68);
x70 = (x69)+(x37);
x71 = (x70)<(x37);
x72 = (x70)+(x34);
x73 = (x72)<(x34);
x74 = (x71)+(x73);
x75 = (x74)+(x35);
x76 = (x75)<(x35);
x77 = (x75)+(x32);
x78 = (x77)<(x32);
x79 = (x76)+(x78);
x80 = (x79)+(x33);
x81 = (x80)<(x33);
x82 = (x80)+(x30);
x83 = (x82)<(x30);
x84 = (x81)+(x83);
x85 = (x84)+(x31);
x86 = (x85)<(x31);
x87 = (x85)+(x28);
x88 = (x87)<(x28);
x89 = (x86)+(x88);
x90 = (x89)+(x29);
x91 = (x90)<(x29);
x92 = (x90)+(x26);
x93 = (x92)<(x26);
x94 = (x91)+(x93);
x95 = (x94)+(x27);
x96 = (x95)<(x27);
x97 = (x95)+(x24);
x98 = (x97)<(x24);
x99 = (x96)+(x98);
x100 = (x99)+(x25);
x101 = (x46)*((uintptr_t)4294967295ULL);
x102 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x103 = (x46)*((uintptr_t)4294967295ULL);
x104 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x105 = (x46)*((uintptr_t)4294967295ULL);
x106 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x107 = (x46)*((uintptr_t)4294967295ULL);
x108 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x109 = (x46)*((uintptr_t)4294967295ULL);
x110 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x111 = (x46)*((uintptr_t)4294967295ULL);
x112 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x113 = (x46)*((uintptr_t)4294967295ULL);
x114 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x115 = (x46)*((uintptr_t)4294967294ULL);
x116 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967294ULL))>>64;
x117 = (x46)*((uintptr_t)4294967295ULL);
x118 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x119 = (x46)*((uintptr_t)4294967295ULL);
x120 = sizeof(intptr_t) == 4 ? ((uint64_t)(x46)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x46)*((uintptr_t)4294967295ULL))>>64;
x121 = (x118)+(x115);
x122 = (x121)<(x118);
x123 = (x122)+(x116);
x124 = (x123)<(x116);
x125 = (x123)+(x113);
x126 = (x125)<(x113);
x127 = (x124)+(x126);
x128 = (x127)+(x114);
x129 = (x128)<(x114);
x130 = (x128)+(x111);
x131 = (x130)<(x111);
x132 = (x129)+(x131);
x133 = (x132)+(x112);
x134 = (x133)<(x112);
x135 = (x133)+(x109);
x136 = (x135)<(x109);
x137 = (x134)+(x136);
x138 = (x137)+(x110);
x139 = (x138)<(x110);
x140 = (x138)+(x107);
x141 = (x140)<(x107);
x142 = (x139)+(x141);
x143 = (x142)+(x108);
x144 = (x143)<(x108);
x145 = (x143)+(x105);
x146 = (x145)<(x105);
x147 = (x144)+(x146);
x148 = (x147)+(x106);
x149 = (x148)<(x106);
x150 = (x148)+(x103);
x151 = (x150)<(x103);
x152 = (x149)+(x151);
x153 = (x152)+(x104);
x154 = (x153)<(x104);
x155 = (x153)+(x101);
x156 = (x155)<(x101);
x157 = (x154)+(x156);
x158 = (x157)+(x102);
x159 = (x46)+(x119);
x160 = (x159)<(x46);
x161 = (x160)+(x48);
x162 = (x161)<(x48);
x163 = (x161)+(x120);
x164 = (x163)<(x120);
x165 = (x162)+(x164);
x166 = (x165)+(x52);
x167 = (x166)<(x52);
x168 = (x167)+(x57);
x169 = (x168)<(x57);
x170 = (x168)+(x117);
x171 = (x170)<(x117);
x172 = (x169)+(x171);
x173 = (x172)+(x62);
x174 = (x173)<(x62);
x175 = (x173)+(x121);
x176 = (x175)<(x121);
x177 = (x174)+(x176);
x178 = (x177)+(x67);
x179 = (x178)<(x67);
x180 = (x178)+(x125);
x181 = (x180)<(x125);
x182 = (x179)+(x181);
x183 = (x182)+(x72);
x184 = (x183)<(x72);
x185 = (x183)+(x130);
x186 = (x185)<(x130);
x187 = (x184)+(x186);
x188 = (x187)+(x77);
x189 = (x188)<(x77);
x190 = (x188)+(x135);
x191 = (x190)<(x135);
x192 = (x189)+(x191);
x193 = (x192)+(x82);
x194 = (x193)<(x82);
x195 = (x193)+(x140);
x196 = (x195)<(x140);
x197 = (x194)+(x196);
x198 = (x197)+(x87);
x199 = (x198)<(x87);
x200 = (x198)+(x145);
x201 = (x200)<(x145);
x202 = (x199)+(x201);
x203 = (x202)+(x92);
x204 = (x203)<(x92);
x205 = (x203)+(x150);
x206 = (x205)<(x150);
x207 = (x204)+(x206);
x208 = (x207)+(x97);
x209 = (x208)<(x97);
x210 = (x208)+(x155);
x211 = (x210)<(x155);
x212 = (x209)+(x211);
x213 = (x212)+(x100);
x214 = (x213)<(x100);
x215 = (x213)+(x158);
x216 = (x215)<(x158);
x217 = (x214)+(x216);
x218 = (x12)*(x11);
x219 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x11))>>32 : ((__uint128_t)(x12)*(x11))>>64;
x220 = (x12)*(x10);
x221 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x10))>>32 : ((__uint128_t)(x12)*(x10))>>64;
x222 = (x12)*(x9);
x223 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x9))>>32 : ((__uint128_t)(x12)*(x9))>>64;
x224 = (x12)*(x8);
x225 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x8))>>32 : ((__uint128_t)(x12)*(x8))>>64;
x226 = (x12)*(x7);
x227 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x7))>>32 : ((__uint128_t)(x12)*(x7))>>64;
x228 = (x12)*(x6);
x229 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x6))>>32 : ((__uint128_t)(x12)*(x6))>>64;
x230 = (x12)*(x5);
x231 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x5))>>32 : ((__uint128_t)(x12)*(x5))>>64;
x232 = (x12)*(x4);
x233 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x4))>>32 : ((__uint128_t)(x12)*(x4))>>64;
x234 = (x12)*(x3);
x235 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x3))>>32 : ((__uint128_t)(x12)*(x3))>>64;
x236 = (x12)*(x2);
x237 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x2))>>32 : ((__uint128_t)(x12)*(x2))>>64;
x238 = (x12)*(x1);
x239 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x1))>>32 : ((__uint128_t)(x12)*(x1))>>64;
x240 = (x12)*(x0);
x241 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*(x0))>>32 : ((__uint128_t)(x12)*(x0))>>64;
x242 = (x241)+(x238);
x243 = (x242)<(x241);
x244 = (x243)+(x239);
x245 = (x244)<(x239);
x246 = (x244)+(x236);
x247 = (x246)<(x236);
x248 = (x245)+(x247);
x249 = (x248)+(x237);
x250 = (x249)<(x237);
x251 = (x249)+(x234);
x252 = (x251)<(x234);
x253 = (x250)+(x252);
x254 = (x253)+(x235);
x255 = (x254)<(x235);
x256 = (x254)+(x232);
x257 = (x256)<(x232);
x258 = (x255)+(x257);
x259 = (x258)+(x233);
x260 = (x259)<(x233);
x261 = (x259)+(x230);
x262 = (x261)<(x230);
x263 = (x260)+(x262);
x264 = (x263)+(x231);
x265 = (x264)<(x231);
x266 = (x264)+(x228);
x267 = (x266)<(x228);
x268 = (x265)+(x267);
x269 = (x268)+(x229);
x270 = (x269)<(x229);
x271 = (x269)+(x226);
x272 = (x271)<(x226);
x273 = (x270)+(x272);
x274 = (x273)+(x227);
x275 = (x274)<(x227);
x276 = (x274)+(x224);
x277 = (x276)<(x224);
x278 = (x275)+(x277);
x279 = (x278)+(x225);
x280 = (x279)<(x225);
x281 = (x279)+(x222);
x282 = (x281)<(x222);
x283 = (x280)+(x282);
x284 = (x283)+(x223);
x285 = (x284)<(x223);
x286 = (x284)+(x220);
x287 = (x286)<(x220);
x288 = (x285)+(x287);
x289 = (x288)+(x221);
x290 = (x289)<(x221);
x291 = (x289)+(x218);
x292 = (x291)<(x218);
x293 = (x290)+(x292);
x294 = (x293)+(x219);
x295 = (x163)+(x240);
x296 = (x295)<(x163);
x297 = (x296)+(x166);
x298 = (x297)<(x166);
x299 = (x297)+(x242);
x300 = (x299)<(x242);
x301 = (x298)+(x300);
x302 = (x301)+(x170);
x303 = (x302)<(x170);
x304 = (x302)+(x246);
x305 = (x304)<(x246);
x306 = (x303)+(x305);
x307 = (x306)+(x175);
x308 = (x307)<(x175);
x309 = (x307)+(x251);
x310 = (x309)<(x251);
x311 = (x308)+(x310);
x312 = (x311)+(x180);
x313 = (x312)<(x180);
x314 = (x312)+(x256);
x315 = (x314)<(x256);
x316 = (x313)+(x315);
x317 = (x316)+(x185);
x318 = (x317)<(x185);
x319 = (x317)+(x261);
x320 = (x319)<(x261);
x321 = (x318)+(x320);
x322 = (x321)+(x190);
x323 = (x322)<(x190);
x324 = (x322)+(x266);
x325 = (x324)<(x266);
x326 = (x323)+(x325);
x327 = (x326)+(x195);
x328 = (x327)<(x195);
x329 = (x327)+(x271);
x330 = (x329)<(x271);
x331 = (x328)+(x330);
x332 = (x331)+(x200);
x333 = (x332)<(x200);
x334 = (x332)+(x276);
x335 = (x334)<(x276);
x336 = (x333)+(x335);
x337 = (x336)+(x205);
x338 = (x337)<(x205);
x339 = (x337)+(x281);
x340 = (x339)<(x281);
x341 = (x338)+(x340);
x342 = (x341)+(x210);
x343 = (x342)<(x210);
x344 = (x342)+(x286);
x345 = (x344)<(x286);
x346 = (x343)+(x345);
x347 = (x346)+(x215);
x348 = (x347)<(x215);
x349 = (x347)+(x291);
x350 = (x349)<(x291);
x351 = (x348)+(x350);
x352 = (x351)+(x217);
x353 = (x352)<(x217);
x354 = (x352)+(x294);
x355 = (x354)<(x294);
x356 = (x353)+(x355);
x357 = (x295)*((uintptr_t)4294967295ULL);
x358 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x359 = (x295)*((uintptr_t)4294967295ULL);
x360 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x361 = (x295)*((uintptr_t)4294967295ULL);
x362 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x363 = (x295)*((uintptr_t)4294967295ULL);
x364 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x365 = (x295)*((uintptr_t)4294967295ULL);
x366 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x367 = (x295)*((uintptr_t)4294967295ULL);
x368 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x369 = (x295)*((uintptr_t)4294967295ULL);
x370 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x371 = (x295)*((uintptr_t)4294967294ULL);
x372 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967294ULL))>>64;
x373 = (x295)*((uintptr_t)4294967295ULL);
x374 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x375 = (x295)*((uintptr_t)4294967295ULL);
x376 = sizeof(intptr_t) == 4 ? ((uint64_t)(x295)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x295)*((uintptr_t)4294967295ULL))>>64;
x377 = (x374)+(x371);
x378 = (x377)<(x374);
x379 = (x378)+(x372);
x380 = (x379)<(x372);
x381 = (x379)+(x369);
x382 = (x381)<(x369);
x383 = (x380)+(x382);
x384 = (x383)+(x370);
x385 = (x384)<(x370);
x386 = (x384)+(x367);
x387 = (x386)<(x367);
x388 = (x385)+(x387);
x389 = (x388)+(x368);
x390 = (x389)<(x368);
x391 = (x389)+(x365);
x392 = (x391)<(x365);
x393 = (x390)+(x392);
x394 = (x393)+(x366);
x395 = (x394)<(x366);
x396 = (x394)+(x363);
x397 = (x396)<(x363);
x398 = (x395)+(x397);
x399 = (x398)+(x364);
x400 = (x399)<(x364);
x401 = (x399)+(x361);
x402 = (x401)<(x361);
x403 = (x400)+(x402);
x404 = (x403)+(x362);
x405 = (x404)<(x362);
x406 = (x404)+(x359);
x407 = (x406)<(x359);
x408 = (x405)+(x407);
x409 = (x408)+(x360);
x410 = (x409)<(x360);
x411 = (x409)+(x357);
x412 = (x411)<(x357);
x413 = (x410)+(x412);
x414 = (x413)+(x358);
x415 = (x295)+(x375);
x416 = (x415)<(x295);
x417 = (x416)+(x299);
x418 = (x417)<(x299);
x419 = (x417)+(x376);
x420 = (x419)<(x376);
x421 = (x418)+(x420);
x422 = (x421)+(x304);
x423 = (x422)<(x304);
x424 = (x423)+(x309);
x425 = (x424)<(x309);
x426 = (x424)+(x373);
x427 = (x426)<(x373);
x428 = (x425)+(x427);
x429 = (x428)+(x314);
x430 = (x429)<(x314);
x431 = (x429)+(x377);
x432 = (x431)<(x377);
x433 = (x430)+(x432);
x434 = (x433)+(x319);
x435 = (x434)<(x319);
x436 = (x434)+(x381);
x437 = (x436)<(x381);
x438 = (x435)+(x437);
x439 = (x438)+(x324);
x440 = (x439)<(x324);
x441 = (x439)+(x386);
x442 = (x441)<(x386);
x443 = (x440)+(x442);
x444 = (x443)+(x329);
x445 = (x444)<(x329);
x446 = (x444)+(x391);
x447 = (x446)<(x391);
x448 = (x445)+(x447);
x449 = (x448)+(x334);
x450 = (x449)<(x334);
x451 = (x449)+(x396);
x452 = (x451)<(x396);
x453 = (x450)+(x452);
x454 = (x453)+(x339);
x455 = (x454)<(x339);
x456 = (x454)+(x401);
x457 = (x456)<(x401);
x458 = (x455)+(x457);
x459 = (x458)+(x344);
x460 = (x459)<(x344);
x461 = (x459)+(x406);
x462 = (x461)<(x406);
x463 = (x460)+(x462);
x464 = (x463)+(x349);
x465 = (x464)<(x349);
x466 = (x464)+(x411);
x467 = (x466)<(x411);
x468 = (x465)+(x467);
x469 = (x468)+(x354);
x470 = (x469)<(x354);
x471 = (x469)+(x414);
x472 = (x471)<(x414);
x473 = (x470)+(x472);
x474 = (x473)+(x356);
x475 = (x13)*(x11);
x476 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x11))>>32 : ((__uint128_t)(x13)*(x11))>>64;
x477 = (x13)*(x10);
x478 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x10))>>32 : ((__uint128_t)(x13)*(x10))>>64;
x479 = (x13)*(x9);
x480 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x9))>>32 : ((__uint128_t)(x13)*(x9))>>64;
x481 = (x13)*(x8);
x482 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x8))>>32 : ((__uint128_t)(x13)*(x8))>>64;
x483 = (x13)*(x7);
x484 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x7))>>32 : ((__uint128_t)(x13)*(x7))>>64;
x485 = (x13)*(x6);
x486 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x6))>>32 : ((__uint128_t)(x13)*(x6))>>64;
x487 = (x13)*(x5);
x488 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x5))>>32 : ((__uint128_t)(x13)*(x5))>>64;
x489 = (x13)*(x4);
x490 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x4))>>32 : ((__uint128_t)(x13)*(x4))>>64;
x491 = (x13)*(x3);
x492 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x3))>>32 : ((__uint128_t)(x13)*(x3))>>64;
x493 = (x13)*(x2);
x494 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x2))>>32 : ((__uint128_t)(x13)*(x2))>>64;
x495 = (x13)*(x1);
x496 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x1))>>32 : ((__uint128_t)(x13)*(x1))>>64;
x497 = (x13)*(x0);
x498 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*(x0))>>32 : ((__uint128_t)(x13)*(x0))>>64;
x499 = (x498)+(x495);
x500 = (x499)<(x498);
x501 = (x500)+(x496);
x502 = (x501)<(x496);
x503 = (x501)+(x493);
x504 = (x503)<(x493);
x505 = (x502)+(x504);
x506 = (x505)+(x494);
x507 = (x506)<(x494);
x508 = (x506)+(x491);
x509 = (x508)<(x491);
x510 = (x507)+(x509);
x511 = (x510)+(x492);
x512 = (x511)<(x492);
x513 = (x511)+(x489);
x514 = (x513)<(x489);
x515 = (x512)+(x514);
x516 = (x515)+(x490);
x517 = (x516)<(x490);
x518 = (x516)+(x487);
x519 = (x518)<(x487);
x520 = (x517)+(x519);
x521 = (x520)+(x488);
x522 = (x521)<(x488);
x523 = (x521)+(x485);
x524 = (x523)<(x485);
x525 = (x522)+(x524);
x526 = (x525)+(x486);
x527 = (x526)<(x486);
x528 = (x526)+(x483);
x529 = (x528)<(x483);
x530 = (x527)+(x529);
x531 = (x530)+(x484);
x532 = (x531)<(x484);
x533 = (x531)+(x481);
x534 = (x533)<(x481);
x535 = (x532)+(x534);
x536 = (x535)+(x482);
x537 = (x536)<(x482);
x538 = (x536)+(x479);
x539 = (x538)<(x479);
x540 = (x537)+(x539);
x541 = (x540)+(x480);
x542 = (x541)<(x480);
x543 = (x541)+(x477);
x544 = (x543)<(x477);
x545 = (x542)+(x544);
x546 = (x545)+(x478);
x547 = (x546)<(x478);
x548 = (x546)+(x475);
x549 = (x548)<(x475);
x550 = (x547)+(x549);
x551 = (x550)+(x476);
x552 = (x419)+(x497);
x553 = (x552)<(x419);
x554 = (x553)+(x422);
x555 = (x554)<(x422);
x556 = (x554)+(x499);
x557 = (x556)<(x499);
x558 = (x555)+(x557);
x559 = (x558)+(x426);
x560 = (x559)<(x426);
x561 = (x559)+(x503);
x562 = (x561)<(x503);
x563 = (x560)+(x562);
x564 = (x563)+(x431);
x565 = (x564)<(x431);
x566 = (x564)+(x508);
x567 = (x566)<(x508);
x568 = (x565)+(x567);
x569 = (x568)+(x436);
x570 = (x569)<(x436);
x571 = (x569)+(x513);
x572 = (x571)<(x513);
x573 = (x570)+(x572);
x574 = (x573)+(x441);
x575 = (x574)<(x441);
x576 = (x574)+(x518);
x577 = (x576)<(x518);
x578 = (x575)+(x577);
x579 = (x578)+(x446);
x580 = (x579)<(x446);
x581 = (x579)+(x523);
x582 = (x581)<(x523);
x583 = (x580)+(x582);
x584 = (x583)+(x451);
x585 = (x584)<(x451);
x586 = (x584)+(x528);
x587 = (x586)<(x528);
x588 = (x585)+(x587);
x589 = (x588)+(x456);
x590 = (x589)<(x456);
x591 = (x589)+(x533);
x592 = (x591)<(x533);
x593 = (x590)+(x592);
x594 = (x593)+(x461);
x595 = (x594)<(x461);
x596 = (x594)+(x538);
x597 = (x596)<(x538);
x598 = (x595)+(x597);
x599 = (x598)+(x466);
x600 = (x599)<(x466);
x601 = (x599)+(x543);
x602 = (x601)<(x543);
x603 = (x600)+(x602);
x604 = (x603)+(x471);
x605 = (x604)<(x471);
x606 = (x604)+(x548);
x607 = (x606)<(x548);
x608 = (x605)+(x607);
x609 = (x608)+(x474);
x610 = (x609)<(x474);
x611 = (x609)+(x551);
x612 = (x611)<(x551);
x613 = (x610)+(x612);
x614 = (x552)*((uintptr_t)4294967295ULL);
x615 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x616 = (x552)*((uintptr_t)4294967295ULL);
x617 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x618 = (x552)*((uintptr_t)4294967295ULL);
x619 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x620 = (x552)*((uintptr_t)4294967295ULL);
x621 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x622 = (x552)*((uintptr_t)4294967295ULL);
x623 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x624 = (x552)*((uintptr_t)4294967295ULL);
x625 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x626 = (x552)*((uintptr_t)4294967295ULL);
x627 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x628 = (x552)*((uintptr_t)4294967294ULL);
x629 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967294ULL))>>64;
x630 = (x552)*((uintptr_t)4294967295ULL);
x631 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x632 = (x552)*((uintptr_t)4294967295ULL);
x633 = sizeof(intptr_t) == 4 ? ((uint64_t)(x552)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x552)*((uintptr_t)4294967295ULL))>>64;
x634 = (x631)+(x628);
x635 = (x634)<(x631);
x636 = (x635)+(x629);
x637 = (x636)<(x629);
x638 = (x636)+(x626);
x639 = (x638)<(x626);
x640 = (x637)+(x639);
x641 = (x640)+(x627);
x642 = (x641)<(x627);
x643 = (x641)+(x624);
x644 = (x643)<(x624);
x645 = (x642)+(x644);
x646 = (x645)+(x625);
x647 = (x646)<(x625);
x648 = (x646)+(x622);
x649 = (x648)<(x622);
x650 = (x647)+(x649);
x651 = (x650)+(x623);
x652 = (x651)<(x623);
x653 = (x651)+(x620);
x654 = (x653)<(x620);
x655 = (x652)+(x654);
x656 = (x655)+(x621);
x657 = (x656)<(x621);
x658 = (x656)+(x618);
x659 = (x658)<(x618);
x660 = (x657)+(x659);
x661 = (x660)+(x619);
x662 = (x661)<(x619);
x663 = (x661)+(x616);
x664 = (x663)<(x616);
x665 = (x662)+(x664);
x666 = (x665)+(x617);
x667 = (x666)<(x617);
x668 = (x666)+(x614);
x669 = (x668)<(x614);
x670 = (x667)+(x669);
x671 = (x670)+(x615);
x672 = (x552)+(x632);
x673 = (x672)<(x552);
x674 = (x673)+(x556);
x675 = (x674)<(x556);
x676 = (x674)+(x633);
x677 = (x676)<(x633);
x678 = (x675)+(x677);
x679 = (x678)+(x561);
x680 = (x679)<(x561);
x681 = (x680)+(x566);
x682 = (x681)<(x566);
x683 = (x681)+(x630);
x684 = (x683)<(x630);
x685 = (x682)+(x684);
x686 = (x685)+(x571);
x687 = (x686)<(x571);
x688 = (x686)+(x634);
x689 = (x688)<(x634);
x690 = (x687)+(x689);
x691 = (x690)+(x576);
x692 = (x691)<(x576);
x693 = (x691)+(x638);
x694 = (x693)<(x638);
x695 = (x692)+(x694);
x696 = (x695)+(x581);
x697 = (x696)<(x581);
x698 = (x696)+(x643);
x699 = (x698)<(x643);
x700 = (x697)+(x699);
x701 = (x700)+(x586);
x702 = (x701)<(x586);
x703 = (x701)+(x648);
x704 = (x703)<(x648);
x705 = (x702)+(x704);
x706 = (x705)+(x591);
x707 = (x706)<(x591);
x708 = (x706)+(x653);
x709 = (x708)<(x653);
x710 = (x707)+(x709);
x711 = (x710)+(x596);
x712 = (x711)<(x596);
x713 = (x711)+(x658);
x714 = (x713)<(x658);
x715 = (x712)+(x714);
x716 = (x715)+(x601);
x717 = (x716)<(x601);
x718 = (x716)+(x663);
x719 = (x718)<(x663);
x720 = (x717)+(x719);
x721 = (x720)+(x606);
x722 = (x721)<(x606);
x723 = (x721)+(x668);
x724 = (x723)<(x668);
x725 = (x722)+(x724);
x726 = (x725)+(x611);
x727 = (x726)<(x611);
x728 = (x726)+(x671);
x729 = (x728)<(x671);
x730 = (x727)+(x729);
x731 = (x730)+(x613);
x732 = (x14)*(x11);
x733 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x11))>>32 : ((__uint128_t)(x14)*(x11))>>64;
x734 = (x14)*(x10);
x735 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x10))>>32 : ((__uint128_t)(x14)*(x10))>>64;
x736 = (x14)*(x9);
x737 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x9))>>32 : ((__uint128_t)(x14)*(x9))>>64;
x738 = (x14)*(x8);
x739 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x8))>>32 : ((__uint128_t)(x14)*(x8))>>64;
x740 = (x14)*(x7);
x741 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x7))>>32 : ((__uint128_t)(x14)*(x7))>>64;
x742 = (x14)*(x6);
x743 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x6))>>32 : ((__uint128_t)(x14)*(x6))>>64;
x744 = (x14)*(x5);
x745 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x5))>>32 : ((__uint128_t)(x14)*(x5))>>64;
x746 = (x14)*(x4);
x747 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x4))>>32 : ((__uint128_t)(x14)*(x4))>>64;
x748 = (x14)*(x3);
x749 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x3))>>32 : ((__uint128_t)(x14)*(x3))>>64;
x750 = (x14)*(x2);
x751 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x2))>>32 : ((__uint128_t)(x14)*(x2))>>64;
x752 = (x14)*(x1);
x753 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x1))>>32 : ((__uint128_t)(x14)*(x1))>>64;
x754 = (x14)*(x0);
x755 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*(x0))>>32 : ((__uint128_t)(x14)*(x0))>>64;
x756 = (x755)+(x752);
x757 = (x756)<(x755);
x758 = (x757)+(x753);
x759 = (x758)<(x753);
x760 = (x758)+(x750);
x761 = (x760)<(x750);
x762 = (x759)+(x761);
x763 = (x762)+(x751);
x764 = (x763)<(x751);
x765 = (x763)+(x748);
x766 = (x765)<(x748);
x767 = (x764)+(x766);
x768 = (x767)+(x749);
x769 = (x768)<(x749);
x770 = (x768)+(x746);
x771 = (x770)<(x746);
x772 = (x769)+(x771);
x773 = (x772)+(x747);
x774 = (x773)<(x747);
x775 = (x773)+(x744);
x776 = (x775)<(x744);
x777 = (x774)+(x776);
x778 = (x777)+(x745);
x779 = (x778)<(x745);
x780 = (x778)+(x742);
x781 = (x780)<(x742);
x782 = (x779)+(x781);
x783 = (x782)+(x743);
x784 = (x783)<(x743);
x785 = (x783)+(x740);
x786 = (x785)<(x740);
x787 = (x784)+(x786);
x788 = (x787)+(x741);
x789 = (x788)<(x741);
x790 = (x788)+(x738);
x791 = (x790)<(x738);
x792 = (x789)+(x791);
x793 = (x792)+(x739);
x794 = (x793)<(x739);
x795 = (x793)+(x736);
x796 = (x795)<(x736);
x797 = (x794)+(x796);
x798 = (x797)+(x737);
x799 = (x798)<(x737);
x800 = (x798)+(x734);
x801 = (x800)<(x734);
x802 = (x799)+(x801);
x803 = (x802)+(x735);
x804 = (x803)<(x735);
x805 = (x803)+(x732);
x806 = (x805)<(x732);
x807 = (x804)+(x806);
x808 = (x807)+(x733);
x809 = (x676)+(x754);
x810 = (x809)<(x676);
x811 = (x810)+(x679);
x812 = (x811)<(x679);
x813 = (x811)+(x756);
x814 = (x813)<(x756);
x815 = (x812)+(x814);
x816 = (x815)+(x683);
x817 = (x816)<(x683);
x818 = (x816)+(x760);
x819 = (x818)<(x760);
x820 = (x817)+(x819);
x821 = (x820)+(x688);
x822 = (x821)<(x688);
x823 = (x821)+(x765);
x824 = (x823)<(x765);
x825 = (x822)+(x824);
x826 = (x825)+(x693);
x827 = (x826)<(x693);
x828 = (x826)+(x770);
x829 = (x828)<(x770);
x830 = (x827)+(x829);
x831 = (x830)+(x698);
x832 = (x831)<(x698);
x833 = (x831)+(x775);
x834 = (x833)<(x775);
x835 = (x832)+(x834);
x836 = (x835)+(x703);
x837 = (x836)<(x703);
x838 = (x836)+(x780);
x839 = (x838)<(x780);
x840 = (x837)+(x839);
x841 = (x840)+(x708);
x842 = (x841)<(x708);
x843 = (x841)+(x785);
x844 = (x843)<(x785);
x845 = (x842)+(x844);
x846 = (x845)+(x713);
x847 = (x846)<(x713);
x848 = (x846)+(x790);
x849 = (x848)<(x790);
x850 = (x847)+(x849);
x851 = (x850)+(x718);
x852 = (x851)<(x718);
x853 = (x851)+(x795);
x854 = (x853)<(x795);
x855 = (x852)+(x854);
x856 = (x855)+(x723);
x857 = (x856)<(x723);
x858 = (x856)+(x800);
x859 = (x858)<(x800);
x860 = (x857)+(x859);
x861 = (x860)+(x728);
x862 = (x861)<(x728);
x863 = (x861)+(x805);
x864 = (x863)<(x805);
x865 = (x862)+(x864);
x866 = (x865)+(x731);
x867 = (x866)<(x731);
x868 = (x866)+(x808);
x869 = (x868)<(x808);
x870 = (x867)+(x869);
x871 = (x809)*((uintptr_t)4294967295ULL);
x872 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x873 = (x809)*((uintptr_t)4294967295ULL);
x874 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x875 = (x809)*((uintptr_t)4294967295ULL);
x876 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x877 = (x809)*((uintptr_t)4294967295ULL);
x878 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x879 = (x809)*((uintptr_t)4294967295ULL);
x880 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x881 = (x809)*((uintptr_t)4294967295ULL);
x882 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x883 = (x809)*((uintptr_t)4294967295ULL);
x884 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x885 = (x809)*((uintptr_t)4294967294ULL);
x886 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967294ULL))>>64;
x887 = (x809)*((uintptr_t)4294967295ULL);
x888 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x889 = (x809)*((uintptr_t)4294967295ULL);
x890 = sizeof(intptr_t) == 4 ? ((uint64_t)(x809)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x809)*((uintptr_t)4294967295ULL))>>64;
x891 = (x888)+(x885);
x892 = (x891)<(x888);
x893 = (x892)+(x886);
x894 = (x893)<(x886);
x895 = (x893)+(x883);
x896 = (x895)<(x883);
x897 = (x894)+(x896);
x898 = (x897)+(x884);
x899 = (x898)<(x884);
x900 = (x898)+(x881);
x901 = (x900)<(x881);
x902 = (x899)+(x901);
x903 = (x902)+(x882);
x904 = (x903)<(x882);
x905 = (x903)+(x879);
x906 = (x905)<(x879);
x907 = (x904)+(x906);
x908 = (x907)+(x880);
x909 = (x908)<(x880);
x910 = (x908)+(x877);
x911 = (x910)<(x877);
x912 = (x909)+(x911);
x913 = (x912)+(x878);
x914 = (x913)<(x878);
x915 = (x913)+(x875);
x916 = (x915)<(x875);
x917 = (x914)+(x916);
x918 = (x917)+(x876);
x919 = (x918)<(x876);
x920 = (x918)+(x873);
x921 = (x920)<(x873);
x922 = (x919)+(x921);
x923 = (x922)+(x874);
x924 = (x923)<(x874);
x925 = (x923)+(x871);
x926 = (x925)<(x871);
x927 = (x924)+(x926);
x928 = (x927)+(x872);
x929 = (x809)+(x889);
x930 = (x929)<(x809);
x931 = (x930)+(x813);
x932 = (x931)<(x813);
x933 = (x931)+(x890);
x934 = (x933)<(x890);
x935 = (x932)+(x934);
x936 = (x935)+(x818);
x937 = (x936)<(x818);
x938 = (x937)+(x823);
x939 = (x938)<(x823);
x940 = (x938)+(x887);
x941 = (x940)<(x887);
x942 = (x939)+(x941);
x943 = (x942)+(x828);
x944 = (x943)<(x828);
x945 = (x943)+(x891);
x946 = (x945)<(x891);
x947 = (x944)+(x946);
x948 = (x947)+(x833);
x949 = (x948)<(x833);
x950 = (x948)+(x895);
x951 = (x950)<(x895);
x952 = (x949)+(x951);
x953 = (x952)+(x838);
x954 = (x953)<(x838);
x955 = (x953)+(x900);
x956 = (x955)<(x900);
x957 = (x954)+(x956);
x958 = (x957)+(x843);
x959 = (x958)<(x843);
x960 = (x958)+(x905);
x961 = (x960)<(x905);
x962 = (x959)+(x961);
x963 = (x962)+(x848);
x964 = (x963)<(x848);
x965 = (x963)+(x910);
x966 = (x965)<(x910);
x967 = (x964)+(x966);
x968 = (x967)+(x853);
x969 = (x968)<(x853);
x970 = (x968)+(x915);
x971 = (x970)<(x915);
x972 = (x969)+(x971);
x973 = (x972)+(x858);
x974 = (x973)<(x858);
x975 = (x973)+(x920);
x976 = (x975)<(x920);
x977 = (x974)+(x976);
x978 = (x977)+(x863);
x979 = (x978)<(x863);
x980 = (x978)+(x925);
x981 = (x980)<(x925);
x982 = (x979)+(x981);
x983 = (x982)+(x868);
x984 = (x983)<(x868);
x985 = (x983)+(x928);
x986 = (x985)<(x928);
x987 = (x984)+(x986);
x988 = (x987)+(x870);
x989 = (x15)*(x11);
x990 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x11))>>32 : ((__uint128_t)(x15)*(x11))>>64;
x991 = (x15)*(x10);
x992 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x10))>>32 : ((__uint128_t)(x15)*(x10))>>64;
x993 = (x15)*(x9);
x994 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x9))>>32 : ((__uint128_t)(x15)*(x9))>>64;
x995 = (x15)*(x8);
x996 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x8))>>32 : ((__uint128_t)(x15)*(x8))>>64;
x997 = (x15)*(x7);
x998 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x7))>>32 : ((__uint128_t)(x15)*(x7))>>64;
x999 = (x15)*(x6);
x1000 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x6))>>32 : ((__uint128_t)(x15)*(x6))>>64;
x1001 = (x15)*(x5);
x1002 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x5))>>32 : ((__uint128_t)(x15)*(x5))>>64;
x1003 = (x15)*(x4);
x1004 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x4))>>32 : ((__uint128_t)(x15)*(x4))>>64;
x1005 = (x15)*(x3);
x1006 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x3))>>32 : ((__uint128_t)(x15)*(x3))>>64;
x1007 = (x15)*(x2);
x1008 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x2))>>32 : ((__uint128_t)(x15)*(x2))>>64;
x1009 = (x15)*(x1);
x1010 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x1))>>32 : ((__uint128_t)(x15)*(x1))>>64;
x1011 = (x15)*(x0);
x1012 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*(x0))>>32 : ((__uint128_t)(x15)*(x0))>>64;
x1013 = (x1012)+(x1009);
x1014 = (x1013)<(x1012);
x1015 = (x1014)+(x1010);
x1016 = (x1015)<(x1010);
x1017 = (x1015)+(x1007);
x1018 = (x1017)<(x1007);
x1019 = (x1016)+(x1018);
x1020 = (x1019)+(x1008);
x1021 = (x1020)<(x1008);
x1022 = (x1020)+(x1005);
x1023 = (x1022)<(x1005);
x1024 = (x1021)+(x1023);
x1025 = (x1024)+(x1006);
x1026 = (x1025)<(x1006);
x1027 = (x1025)+(x1003);
x1028 = (x1027)<(x1003);
x1029 = (x1026)+(x1028);
x1030 = (x1029)+(x1004);
x1031 = (x1030)<(x1004);
x1032 = (x1030)+(x1001);
x1033 = (x1032)<(x1001);
x1034 = (x1031)+(x1033);
x1035 = (x1034)+(x1002);
x1036 = (x1035)<(x1002);
x1037 = (x1035)+(x999);
x1038 = (x1037)<(x999);
x1039 = (x1036)+(x1038);
x1040 = (x1039)+(x1000);
x1041 = (x1040)<(x1000);
x1042 = (x1040)+(x997);
x1043 = (x1042)<(x997);
x1044 = (x1041)+(x1043);
x1045 = (x1044)+(x998);
x1046 = (x1045)<(x998);
x1047 = (x1045)+(x995);
x1048 = (x1047)<(x995);
x1049 = (x1046)+(x1048);
x1050 = (x1049)+(x996);
x1051 = (x1050)<(x996);
x1052 = (x1050)+(x993);
x1053 = (x1052)<(x993);
x1054 = (x1051)+(x1053);
x1055 = (x1054)+(x994);
x1056 = (x1055)<(x994);
x1057 = (x1055)+(x991);
x1058 = (x1057)<(x991);
x1059 = (x1056)+(x1058);
x1060 = (x1059)+(x992);
x1061 = (x1060)<(x992);
x1062 = (x1060)+(x989);
x1063 = (x1062)<(x989);
x1064 = (x1061)+(x1063);
x1065 = (x1064)+(x990);
x1066 = (x933)+(x1011);
x1067 = (x1066)<(x933);
x1068 = (x1067)+(x936);
x1069 = (x1068)<(x936);
x1070 = (x1068)+(x1013);
x1071 = (x1070)<(x1013);
x1072 = (x1069)+(x1071);
x1073 = (x1072)+(x940);
x1074 = (x1073)<(x940);
x1075 = (x1073)+(x1017);
x1076 = (x1075)<(x1017);
x1077 = (x1074)+(x1076);
x1078 = (x1077)+(x945);
x1079 = (x1078)<(x945);
x1080 = (x1078)+(x1022);
x1081 = (x1080)<(x1022);
x1082 = (x1079)+(x1081);
x1083 = (x1082)+(x950);
x1084 = (x1083)<(x950);
x1085 = (x1083)+(x1027);
x1086 = (x1085)<(x1027);
x1087 = (x1084)+(x1086);
x1088 = (x1087)+(x955);
x1089 = (x1088)<(x955);
x1090 = (x1088)+(x1032);
x1091 = (x1090)<(x1032);
x1092 = (x1089)+(x1091);
x1093 = (x1092)+(x960);
x1094 = (x1093)<(x960);
x1095 = (x1093)+(x1037);
x1096 = (x1095)<(x1037);
x1097 = (x1094)+(x1096);
x1098 = (x1097)+(x965);
x1099 = (x1098)<(x965);
x1100 = (x1098)+(x1042);
x1101 = (x1100)<(x1042);
x1102 = (x1099)+(x1101);
x1103 = (x1102)+(x970);
x1104 = (x1103)<(x970);
x1105 = (x1103)+(x1047);
x1106 = (x1105)<(x1047);
x1107 = (x1104)+(x1106);
x1108 = (x1107)+(x975);
x1109 = (x1108)<(x975);
x1110 = (x1108)+(x1052);
x1111 = (x1110)<(x1052);
x1112 = (x1109)+(x1111);
x1113 = (x1112)+(x980);
x1114 = (x1113)<(x980);
x1115 = (x1113)+(x1057);
x1116 = (x1115)<(x1057);
x1117 = (x1114)+(x1116);
x1118 = (x1117)+(x985);
x1119 = (x1118)<(x985);
x1120 = (x1118)+(x1062);
x1121 = (x1120)<(x1062);
x1122 = (x1119)+(x1121);
x1123 = (x1122)+(x988);
x1124 = (x1123)<(x988);
x1125 = (x1123)+(x1065);
x1126 = (x1125)<(x1065);
x1127 = (x1124)+(x1126);
x1128 = (x1066)*((uintptr_t)4294967295ULL);
x1129 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1130 = (x1066)*((uintptr_t)4294967295ULL);
x1131 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1132 = (x1066)*((uintptr_t)4294967295ULL);
x1133 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1134 = (x1066)*((uintptr_t)4294967295ULL);
x1135 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1136 = (x1066)*((uintptr_t)4294967295ULL);
x1137 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1138 = (x1066)*((uintptr_t)4294967295ULL);
x1139 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1140 = (x1066)*((uintptr_t)4294967295ULL);
x1141 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1142 = (x1066)*((uintptr_t)4294967294ULL);
x1143 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967294ULL))>>64;
x1144 = (x1066)*((uintptr_t)4294967295ULL);
x1145 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1146 = (x1066)*((uintptr_t)4294967295ULL);
x1147 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1066)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1066)*((uintptr_t)4294967295ULL))>>64;
x1148 = (x1145)+(x1142);
x1149 = (x1148)<(x1145);
x1150 = (x1149)+(x1143);
x1151 = (x1150)<(x1143);
x1152 = (x1150)+(x1140);
x1153 = (x1152)<(x1140);
x1154 = (x1151)+(x1153);
x1155 = (x1154)+(x1141);
x1156 = (x1155)<(x1141);
x1157 = (x1155)+(x1138);
x1158 = (x1157)<(x1138);
x1159 = (x1156)+(x1158);
x1160 = (x1159)+(x1139);
x1161 = (x1160)<(x1139);
x1162 = (x1160)+(x1136);
x1163 = (x1162)<(x1136);
x1164 = (x1161)+(x1163);
x1165 = (x1164)+(x1137);
x1166 = (x1165)<(x1137);
x1167 = (x1165)+(x1134);
x1168 = (x1167)<(x1134);
x1169 = (x1166)+(x1168);
x1170 = (x1169)+(x1135);
x1171 = (x1170)<(x1135);
x1172 = (x1170)+(x1132);
x1173 = (x1172)<(x1132);
x1174 = (x1171)+(x1173);
x1175 = (x1174)+(x1133);
x1176 = (x1175)<(x1133);
x1177 = (x1175)+(x1130);
x1178 = (x1177)<(x1130);
x1179 = (x1176)+(x1178);
x1180 = (x1179)+(x1131);
x1181 = (x1180)<(x1131);
x1182 = (x1180)+(x1128);
x1183 = (x1182)<(x1128);
x1184 = (x1181)+(x1183);
x1185 = (x1184)+(x1129);
x1186 = (x1066)+(x1146);
x1187 = (x1186)<(x1066);
x1188 = (x1187)+(x1070);
x1189 = (x1188)<(x1070);
x1190 = (x1188)+(x1147);
x1191 = (x1190)<(x1147);
x1192 = (x1189)+(x1191);
x1193 = (x1192)+(x1075);
x1194 = (x1193)<(x1075);
x1195 = (x1194)+(x1080);
x1196 = (x1195)<(x1080);
x1197 = (x1195)+(x1144);
x1198 = (x1197)<(x1144);
x1199 = (x1196)+(x1198);
x1200 = (x1199)+(x1085);
x1201 = (x1200)<(x1085);
x1202 = (x1200)+(x1148);
x1203 = (x1202)<(x1148);
x1204 = (x1201)+(x1203);
x1205 = (x1204)+(x1090);
x1206 = (x1205)<(x1090);
x1207 = (x1205)+(x1152);
x1208 = (x1207)<(x1152);
x1209 = (x1206)+(x1208);
x1210 = (x1209)+(x1095);
x1211 = (x1210)<(x1095);
x1212 = (x1210)+(x1157);
x1213 = (x1212)<(x1157);
x1214 = (x1211)+(x1213);
x1215 = (x1214)+(x1100);
x1216 = (x1215)<(x1100);
x1217 = (x1215)+(x1162);
x1218 = (x1217)<(x1162);
x1219 = (x1216)+(x1218);
x1220 = (x1219)+(x1105);
x1221 = (x1220)<(x1105);
x1222 = (x1220)+(x1167);
x1223 = (x1222)<(x1167);
x1224 = (x1221)+(x1223);
x1225 = (x1224)+(x1110);
x1226 = (x1225)<(x1110);
x1227 = (x1225)+(x1172);
x1228 = (x1227)<(x1172);
x1229 = (x1226)+(x1228);
x1230 = (x1229)+(x1115);
x1231 = (x1230)<(x1115);
x1232 = (x1230)+(x1177);
x1233 = (x1232)<(x1177);
x1234 = (x1231)+(x1233);
x1235 = (x1234)+(x1120);
x1236 = (x1235)<(x1120);
x1237 = (x1235)+(x1182);
x1238 = (x1237)<(x1182);
x1239 = (x1236)+(x1238);
x1240 = (x1239)+(x1125);
x1241 = (x1240)<(x1125);
x1242 = (x1240)+(x1185);
x1243 = (x1242)<(x1185);
x1244 = (x1241)+(x1243);
x1245 = (x1244)+(x1127);
x1246 = (x16)*(x11);
x1247 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x11))>>32 : ((__uint128_t)(x16)*(x11))>>64;
x1248 = (x16)*(x10);
x1249 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x10))>>32 : ((__uint128_t)(x16)*(x10))>>64;
x1250 = (x16)*(x9);
x1251 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x9))>>32 : ((__uint128_t)(x16)*(x9))>>64;
x1252 = (x16)*(x8);
x1253 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x8))>>32 : ((__uint128_t)(x16)*(x8))>>64;
x1254 = (x16)*(x7);
x1255 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x7))>>32 : ((__uint128_t)(x16)*(x7))>>64;
x1256 = (x16)*(x6);
x1257 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x6))>>32 : ((__uint128_t)(x16)*(x6))>>64;
x1258 = (x16)*(x5);
x1259 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x5))>>32 : ((__uint128_t)(x16)*(x5))>>64;
x1260 = (x16)*(x4);
x1261 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x4))>>32 : ((__uint128_t)(x16)*(x4))>>64;
x1262 = (x16)*(x3);
x1263 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x3))>>32 : ((__uint128_t)(x16)*(x3))>>64;
x1264 = (x16)*(x2);
x1265 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x2))>>32 : ((__uint128_t)(x16)*(x2))>>64;
x1266 = (x16)*(x1);
x1267 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x1))>>32 : ((__uint128_t)(x16)*(x1))>>64;
x1268 = (x16)*(x0);
x1269 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*(x0))>>32 : ((__uint128_t)(x16)*(x0))>>64;
x1270 = (x1269)+(x1266);
x1271 = (x1270)<(x1269);
x1272 = (x1271)+(x1267);
x1273 = (x1272)<(x1267);
x1274 = (x1272)+(x1264);
x1275 = (x1274)<(x1264);
x1276 = (x1273)+(x1275);
x1277 = (x1276)+(x1265);
x1278 = (x1277)<(x1265);
x1279 = (x1277)+(x1262);
x1280 = (x1279)<(x1262);
x1281 = (x1278)+(x1280);
x1282 = (x1281)+(x1263);
x1283 = (x1282)<(x1263);
x1284 = (x1282)+(x1260);
x1285 = (x1284)<(x1260);
x1286 = (x1283)+(x1285);
x1287 = (x1286)+(x1261);
x1288 = (x1287)<(x1261);
x1289 = (x1287)+(x1258);
x1290 = (x1289)<(x1258);
x1291 = (x1288)+(x1290);
x1292 = (x1291)+(x1259);
x1293 = (x1292)<(x1259);
x1294 = (x1292)+(x1256);
x1295 = (x1294)<(x1256);
x1296 = (x1293)+(x1295);
x1297 = (x1296)+(x1257);
x1298 = (x1297)<(x1257);
x1299 = (x1297)+(x1254);
x1300 = (x1299)<(x1254);
x1301 = (x1298)+(x1300);
x1302 = (x1301)+(x1255);
x1303 = (x1302)<(x1255);
x1304 = (x1302)+(x1252);
x1305 = (x1304)<(x1252);
x1306 = (x1303)+(x1305);
x1307 = (x1306)+(x1253);
x1308 = (x1307)<(x1253);
x1309 = (x1307)+(x1250);
x1310 = (x1309)<(x1250);
x1311 = (x1308)+(x1310);
x1312 = (x1311)+(x1251);
x1313 = (x1312)<(x1251);
x1314 = (x1312)+(x1248);
x1315 = (x1314)<(x1248);
x1316 = (x1313)+(x1315);
x1317 = (x1316)+(x1249);
x1318 = (x1317)<(x1249);
x1319 = (x1317)+(x1246);
x1320 = (x1319)<(x1246);
x1321 = (x1318)+(x1320);
x1322 = (x1321)+(x1247);
x1323 = (x1190)+(x1268);
x1324 = (x1323)<(x1190);
x1325 = (x1324)+(x1193);
x1326 = (x1325)<(x1193);
x1327 = (x1325)+(x1270);
x1328 = (x1327)<(x1270);
x1329 = (x1326)+(x1328);
x1330 = (x1329)+(x1197);
x1331 = (x1330)<(x1197);
x1332 = (x1330)+(x1274);
x1333 = (x1332)<(x1274);
x1334 = (x1331)+(x1333);
x1335 = (x1334)+(x1202);
x1336 = (x1335)<(x1202);
x1337 = (x1335)+(x1279);
x1338 = (x1337)<(x1279);
x1339 = (x1336)+(x1338);
x1340 = (x1339)+(x1207);
x1341 = (x1340)<(x1207);
x1342 = (x1340)+(x1284);
x1343 = (x1342)<(x1284);
x1344 = (x1341)+(x1343);
x1345 = (x1344)+(x1212);
x1346 = (x1345)<(x1212);
x1347 = (x1345)+(x1289);
x1348 = (x1347)<(x1289);
x1349 = (x1346)+(x1348);
x1350 = (x1349)+(x1217);
x1351 = (x1350)<(x1217);
x1352 = (x1350)+(x1294);
x1353 = (x1352)<(x1294);
x1354 = (x1351)+(x1353);
x1355 = (x1354)+(x1222);
x1356 = (x1355)<(x1222);
x1357 = (x1355)+(x1299);
x1358 = (x1357)<(x1299);
x1359 = (x1356)+(x1358);
x1360 = (x1359)+(x1227);
x1361 = (x1360)<(x1227);
x1362 = (x1360)+(x1304);
x1363 = (x1362)<(x1304);
x1364 = (x1361)+(x1363);
x1365 = (x1364)+(x1232);
x1366 = (x1365)<(x1232);
x1367 = (x1365)+(x1309);
x1368 = (x1367)<(x1309);
x1369 = (x1366)+(x1368);
x1370 = (x1369)+(x1237);
x1371 = (x1370)<(x1237);
x1372 = (x1370)+(x1314);
x1373 = (x1372)<(x1314);
x1374 = (x1371)+(x1373);
x1375 = (x1374)+(x1242);
x1376 = (x1375)<(x1242);
x1377 = (x1375)+(x1319);
x1378 = (x1377)<(x1319);
x1379 = (x1376)+(x1378);
x1380 = (x1379)+(x1245);
x1381 = (x1380)<(x1245);
x1382 = (x1380)+(x1322);
x1383 = (x1382)<(x1322);
x1384 = (x1381)+(x1383);
x1385 = (x1323)*((uintptr_t)4294967295ULL);
x1386 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1387 = (x1323)*((uintptr_t)4294967295ULL);
x1388 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1389 = (x1323)*((uintptr_t)4294967295ULL);
x1390 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1391 = (x1323)*((uintptr_t)4294967295ULL);
x1392 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1393 = (x1323)*((uintptr_t)4294967295ULL);
x1394 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1395 = (x1323)*((uintptr_t)4294967295ULL);
x1396 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1397 = (x1323)*((uintptr_t)4294967295ULL);
x1398 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1399 = (x1323)*((uintptr_t)4294967294ULL);
x1400 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967294ULL))>>64;
x1401 = (x1323)*((uintptr_t)4294967295ULL);
x1402 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1403 = (x1323)*((uintptr_t)4294967295ULL);
x1404 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1323)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1323)*((uintptr_t)4294967295ULL))>>64;
x1405 = (x1402)+(x1399);
x1406 = (x1405)<(x1402);
x1407 = (x1406)+(x1400);
x1408 = (x1407)<(x1400);
x1409 = (x1407)+(x1397);
x1410 = (x1409)<(x1397);
x1411 = (x1408)+(x1410);
x1412 = (x1411)+(x1398);
x1413 = (x1412)<(x1398);
x1414 = (x1412)+(x1395);
x1415 = (x1414)<(x1395);
x1416 = (x1413)+(x1415);
x1417 = (x1416)+(x1396);
x1418 = (x1417)<(x1396);
x1419 = (x1417)+(x1393);
x1420 = (x1419)<(x1393);
x1421 = (x1418)+(x1420);
x1422 = (x1421)+(x1394);
x1423 = (x1422)<(x1394);
x1424 = (x1422)+(x1391);
x1425 = (x1424)<(x1391);
x1426 = (x1423)+(x1425);
x1427 = (x1426)+(x1392);
x1428 = (x1427)<(x1392);
x1429 = (x1427)+(x1389);
x1430 = (x1429)<(x1389);
x1431 = (x1428)+(x1430);
x1432 = (x1431)+(x1390);
x1433 = (x1432)<(x1390);
x1434 = (x1432)+(x1387);
x1435 = (x1434)<(x1387);
x1436 = (x1433)+(x1435);
x1437 = (x1436)+(x1388);
x1438 = (x1437)<(x1388);
x1439 = (x1437)+(x1385);
x1440 = (x1439)<(x1385);
x1441 = (x1438)+(x1440);
x1442 = (x1441)+(x1386);
x1443 = (x1323)+(x1403);
x1444 = (x1443)<(x1323);
x1445 = (x1444)+(x1327);
x1446 = (x1445)<(x1327);
x1447 = (x1445)+(x1404);
x1448 = (x1447)<(x1404);
x1449 = (x1446)+(x1448);
x1450 = (x1449)+(x1332);
x1451 = (x1450)<(x1332);
x1452 = (x1451)+(x1337);
x1453 = (x1452)<(x1337);
x1454 = (x1452)+(x1401);
x1455 = (x1454)<(x1401);
x1456 = (x1453)+(x1455);
x1457 = (x1456)+(x1342);
x1458 = (x1457)<(x1342);
x1459 = (x1457)+(x1405);
x1460 = (x1459)<(x1405);
x1461 = (x1458)+(x1460);
x1462 = (x1461)+(x1347);
x1463 = (x1462)<(x1347);
x1464 = (x1462)+(x1409);
x1465 = (x1464)<(x1409);
x1466 = (x1463)+(x1465);
x1467 = (x1466)+(x1352);
x1468 = (x1467)<(x1352);
x1469 = (x1467)+(x1414);
x1470 = (x1469)<(x1414);
x1471 = (x1468)+(x1470);
x1472 = (x1471)+(x1357);
x1473 = (x1472)<(x1357);
x1474 = (x1472)+(x1419);
x1475 = (x1474)<(x1419);
x1476 = (x1473)+(x1475);
x1477 = (x1476)+(x1362);
x1478 = (x1477)<(x1362);
x1479 = (x1477)+(x1424);
x1480 = (x1479)<(x1424);
x1481 = (x1478)+(x1480);
x1482 = (x1481)+(x1367);
x1483 = (x1482)<(x1367);
x1484 = (x1482)+(x1429);
x1485 = (x1484)<(x1429);
x1486 = (x1483)+(x1485);
x1487 = (x1486)+(x1372);
x1488 = (x1487)<(x1372);
x1489 = (x1487)+(x1434);
x1490 = (x1489)<(x1434);
x1491 = (x1488)+(x1490);
x1492 = (x1491)+(x1377);
x1493 = (x1492)<(x1377);
x1494 = (x1492)+(x1439);
x1495 = (x1494)<(x1439);
x1496 = (x1493)+(x1495);
x1497 = (x1496)+(x1382);
x1498 = (x1497)<(x1382);
x1499 = (x1497)+(x1442);
x1500 = (x1499)<(x1442);
x1501 = (x1498)+(x1500);
x1502 = (x1501)+(x1384);
x1503 = (x17)*(x11);
x1504 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x11))>>32 : ((__uint128_t)(x17)*(x11))>>64;
x1505 = (x17)*(x10);
x1506 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x10))>>32 : ((__uint128_t)(x17)*(x10))>>64;
x1507 = (x17)*(x9);
x1508 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x9))>>32 : ((__uint128_t)(x17)*(x9))>>64;
x1509 = (x17)*(x8);
x1510 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x8))>>32 : ((__uint128_t)(x17)*(x8))>>64;
x1511 = (x17)*(x7);
x1512 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x7))>>32 : ((__uint128_t)(x17)*(x7))>>64;
x1513 = (x17)*(x6);
x1514 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x6))>>32 : ((__uint128_t)(x17)*(x6))>>64;
x1515 = (x17)*(x5);
x1516 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x5))>>32 : ((__uint128_t)(x17)*(x5))>>64;
x1517 = (x17)*(x4);
x1518 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x4))>>32 : ((__uint128_t)(x17)*(x4))>>64;
x1519 = (x17)*(x3);
x1520 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x3))>>32 : ((__uint128_t)(x17)*(x3))>>64;
x1521 = (x17)*(x2);
x1522 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x2))>>32 : ((__uint128_t)(x17)*(x2))>>64;
x1523 = (x17)*(x1);
x1524 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x1))>>32 : ((__uint128_t)(x17)*(x1))>>64;
x1525 = (x17)*(x0);
x1526 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*(x0))>>32 : ((__uint128_t)(x17)*(x0))>>64;
x1527 = (x1526)+(x1523);
x1528 = (x1527)<(x1526);
x1529 = (x1528)+(x1524);
x1530 = (x1529)<(x1524);
x1531 = (x1529)+(x1521);
x1532 = (x1531)<(x1521);
x1533 = (x1530)+(x1532);
x1534 = (x1533)+(x1522);
x1535 = (x1534)<(x1522);
x1536 = (x1534)+(x1519);
x1537 = (x1536)<(x1519);
x1538 = (x1535)+(x1537);
x1539 = (x1538)+(x1520);
x1540 = (x1539)<(x1520);
x1541 = (x1539)+(x1517);
x1542 = (x1541)<(x1517);
x1543 = (x1540)+(x1542);
x1544 = (x1543)+(x1518);
x1545 = (x1544)<(x1518);
x1546 = (x1544)+(x1515);
x1547 = (x1546)<(x1515);
x1548 = (x1545)+(x1547);
x1549 = (x1548)+(x1516);
x1550 = (x1549)<(x1516);
x1551 = (x1549)+(x1513);
x1552 = (x1551)<(x1513);
x1553 = (x1550)+(x1552);
x1554 = (x1553)+(x1514);
x1555 = (x1554)<(x1514);
x1556 = (x1554)+(x1511);
x1557 = (x1556)<(x1511);
x1558 = (x1555)+(x1557);
x1559 = (x1558)+(x1512);
x1560 = (x1559)<(x1512);
x1561 = (x1559)+(x1509);
x1562 = (x1561)<(x1509);
x1563 = (x1560)+(x1562);
x1564 = (x1563)+(x1510);
x1565 = (x1564)<(x1510);
x1566 = (x1564)+(x1507);
x1567 = (x1566)<(x1507);
x1568 = (x1565)+(x1567);
x1569 = (x1568)+(x1508);
x1570 = (x1569)<(x1508);
x1571 = (x1569)+(x1505);
x1572 = (x1571)<(x1505);
x1573 = (x1570)+(x1572);
x1574 = (x1573)+(x1506);
x1575 = (x1574)<(x1506);
x1576 = (x1574)+(x1503);
x1577 = (x1576)<(x1503);
x1578 = (x1575)+(x1577);
x1579 = (x1578)+(x1504);
x1580 = (x1447)+(x1525);
x1581 = (x1580)<(x1447);
x1582 = (x1581)+(x1450);
x1583 = (x1582)<(x1450);
x1584 = (x1582)+(x1527);
x1585 = (x1584)<(x1527);
x1586 = (x1583)+(x1585);
x1587 = (x1586)+(x1454);
x1588 = (x1587)<(x1454);
x1589 = (x1587)+(x1531);
x1590 = (x1589)<(x1531);
x1591 = (x1588)+(x1590);
x1592 = (x1591)+(x1459);
x1593 = (x1592)<(x1459);
x1594 = (x1592)+(x1536);
x1595 = (x1594)<(x1536);
x1596 = (x1593)+(x1595);
x1597 = (x1596)+(x1464);
x1598 = (x1597)<(x1464);
x1599 = (x1597)+(x1541);
x1600 = (x1599)<(x1541);
x1601 = (x1598)+(x1600);
x1602 = (x1601)+(x1469);
x1603 = (x1602)<(x1469);
x1604 = (x1602)+(x1546);
x1605 = (x1604)<(x1546);
x1606 = (x1603)+(x1605);
x1607 = (x1606)+(x1474);
x1608 = (x1607)<(x1474);
x1609 = (x1607)+(x1551);
x1610 = (x1609)<(x1551);
x1611 = (x1608)+(x1610);
x1612 = (x1611)+(x1479);
x1613 = (x1612)<(x1479);
x1614 = (x1612)+(x1556);
x1615 = (x1614)<(x1556);
x1616 = (x1613)+(x1615);
x1617 = (x1616)+(x1484);
x1618 = (x1617)<(x1484);
x1619 = (x1617)+(x1561);
x1620 = (x1619)<(x1561);
x1621 = (x1618)+(x1620);
x1622 = (x1621)+(x1489);
x1623 = (x1622)<(x1489);
x1624 = (x1622)+(x1566);
x1625 = (x1624)<(x1566);
x1626 = (x1623)+(x1625);
x1627 = (x1626)+(x1494);
x1628 = (x1627)<(x1494);
x1629 = (x1627)+(x1571);
x1630 = (x1629)<(x1571);
x1631 = (x1628)+(x1630);
x1632 = (x1631)+(x1499);
x1633 = (x1632)<(x1499);
x1634 = (x1632)+(x1576);
x1635 = (x1634)<(x1576);
x1636 = (x1633)+(x1635);
x1637 = (x1636)+(x1502);
x1638 = (x1637)<(x1502);
x1639 = (x1637)+(x1579);
x1640 = (x1639)<(x1579);
x1641 = (x1638)+(x1640);
x1642 = (x1580)*((uintptr_t)4294967295ULL);
x1643 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1644 = (x1580)*((uintptr_t)4294967295ULL);
x1645 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1646 = (x1580)*((uintptr_t)4294967295ULL);
x1647 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1648 = (x1580)*((uintptr_t)4294967295ULL);
x1649 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1650 = (x1580)*((uintptr_t)4294967295ULL);
x1651 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1652 = (x1580)*((uintptr_t)4294967295ULL);
x1653 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1654 = (x1580)*((uintptr_t)4294967295ULL);
x1655 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1656 = (x1580)*((uintptr_t)4294967294ULL);
x1657 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967294ULL))>>64;
x1658 = (x1580)*((uintptr_t)4294967295ULL);
x1659 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1660 = (x1580)*((uintptr_t)4294967295ULL);
x1661 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1580)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1580)*((uintptr_t)4294967295ULL))>>64;
x1662 = (x1659)+(x1656);
x1663 = (x1662)<(x1659);
x1664 = (x1663)+(x1657);
x1665 = (x1664)<(x1657);
x1666 = (x1664)+(x1654);
x1667 = (x1666)<(x1654);
x1668 = (x1665)+(x1667);
x1669 = (x1668)+(x1655);
x1670 = (x1669)<(x1655);
x1671 = (x1669)+(x1652);
x1672 = (x1671)<(x1652);
x1673 = (x1670)+(x1672);
x1674 = (x1673)+(x1653);
x1675 = (x1674)<(x1653);
x1676 = (x1674)+(x1650);
x1677 = (x1676)<(x1650);
x1678 = (x1675)+(x1677);
x1679 = (x1678)+(x1651);
x1680 = (x1679)<(x1651);
x1681 = (x1679)+(x1648);
x1682 = (x1681)<(x1648);
x1683 = (x1680)+(x1682);
x1684 = (x1683)+(x1649);
x1685 = (x1684)<(x1649);
x1686 = (x1684)+(x1646);
x1687 = (x1686)<(x1646);
x1688 = (x1685)+(x1687);
x1689 = (x1688)+(x1647);
x1690 = (x1689)<(x1647);
x1691 = (x1689)+(x1644);
x1692 = (x1691)<(x1644);
x1693 = (x1690)+(x1692);
x1694 = (x1693)+(x1645);
x1695 = (x1694)<(x1645);
x1696 = (x1694)+(x1642);
x1697 = (x1696)<(x1642);
x1698 = (x1695)+(x1697);
x1699 = (x1698)+(x1643);
x1700 = (x1580)+(x1660);
x1701 = (x1700)<(x1580);
x1702 = (x1701)+(x1584);
x1703 = (x1702)<(x1584);
x1704 = (x1702)+(x1661);
x1705 = (x1704)<(x1661);
x1706 = (x1703)+(x1705);
x1707 = (x1706)+(x1589);
x1708 = (x1707)<(x1589);
x1709 = (x1708)+(x1594);
x1710 = (x1709)<(x1594);
x1711 = (x1709)+(x1658);
x1712 = (x1711)<(x1658);
x1713 = (x1710)+(x1712);
x1714 = (x1713)+(x1599);
x1715 = (x1714)<(x1599);
x1716 = (x1714)+(x1662);
x1717 = (x1716)<(x1662);
x1718 = (x1715)+(x1717);
x1719 = (x1718)+(x1604);
x1720 = (x1719)<(x1604);
x1721 = (x1719)+(x1666);
x1722 = (x1721)<(x1666);
x1723 = (x1720)+(x1722);
x1724 = (x1723)+(x1609);
x1725 = (x1724)<(x1609);
x1726 = (x1724)+(x1671);
x1727 = (x1726)<(x1671);
x1728 = (x1725)+(x1727);
x1729 = (x1728)+(x1614);
x1730 = (x1729)<(x1614);
x1731 = (x1729)+(x1676);
x1732 = (x1731)<(x1676);
x1733 = (x1730)+(x1732);
x1734 = (x1733)+(x1619);
x1735 = (x1734)<(x1619);
x1736 = (x1734)+(x1681);
x1737 = (x1736)<(x1681);
x1738 = (x1735)+(x1737);
x1739 = (x1738)+(x1624);
x1740 = (x1739)<(x1624);
x1741 = (x1739)+(x1686);
x1742 = (x1741)<(x1686);
x1743 = (x1740)+(x1742);
x1744 = (x1743)+(x1629);
x1745 = (x1744)<(x1629);
x1746 = (x1744)+(x1691);
x1747 = (x1746)<(x1691);
x1748 = (x1745)+(x1747);
x1749 = (x1748)+(x1634);
x1750 = (x1749)<(x1634);
x1751 = (x1749)+(x1696);
x1752 = (x1751)<(x1696);
x1753 = (x1750)+(x1752);
x1754 = (x1753)+(x1639);
x1755 = (x1754)<(x1639);
x1756 = (x1754)+(x1699);
x1757 = (x1756)<(x1699);
x1758 = (x1755)+(x1757);
x1759 = (x1758)+(x1641);
x1760 = (x18)*(x11);
x1761 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x11))>>32 : ((__uint128_t)(x18)*(x11))>>64;
x1762 = (x18)*(x10);
x1763 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x10))>>32 : ((__uint128_t)(x18)*(x10))>>64;
x1764 = (x18)*(x9);
x1765 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x9))>>32 : ((__uint128_t)(x18)*(x9))>>64;
x1766 = (x18)*(x8);
x1767 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x8))>>32 : ((__uint128_t)(x18)*(x8))>>64;
x1768 = (x18)*(x7);
x1769 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x7))>>32 : ((__uint128_t)(x18)*(x7))>>64;
x1770 = (x18)*(x6);
x1771 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x6))>>32 : ((__uint128_t)(x18)*(x6))>>64;
x1772 = (x18)*(x5);
x1773 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x5))>>32 : ((__uint128_t)(x18)*(x5))>>64;
x1774 = (x18)*(x4);
x1775 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x4))>>32 : ((__uint128_t)(x18)*(x4))>>64;
x1776 = (x18)*(x3);
x1777 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x3))>>32 : ((__uint128_t)(x18)*(x3))>>64;
x1778 = (x18)*(x2);
x1779 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x2))>>32 : ((__uint128_t)(x18)*(x2))>>64;
x1780 = (x18)*(x1);
x1781 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x1))>>32 : ((__uint128_t)(x18)*(x1))>>64;
x1782 = (x18)*(x0);
x1783 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*(x0))>>32 : ((__uint128_t)(x18)*(x0))>>64;
x1784 = (x1783)+(x1780);
x1785 = (x1784)<(x1783);
x1786 = (x1785)+(x1781);
x1787 = (x1786)<(x1781);
x1788 = (x1786)+(x1778);
x1789 = (x1788)<(x1778);
x1790 = (x1787)+(x1789);
x1791 = (x1790)+(x1779);
x1792 = (x1791)<(x1779);
x1793 = (x1791)+(x1776);
x1794 = (x1793)<(x1776);
x1795 = (x1792)+(x1794);
x1796 = (x1795)+(x1777);
x1797 = (x1796)<(x1777);
x1798 = (x1796)+(x1774);
x1799 = (x1798)<(x1774);
x1800 = (x1797)+(x1799);
x1801 = (x1800)+(x1775);
x1802 = (x1801)<(x1775);
x1803 = (x1801)+(x1772);
x1804 = (x1803)<(x1772);
x1805 = (x1802)+(x1804);
x1806 = (x1805)+(x1773);
x1807 = (x1806)<(x1773);
x1808 = (x1806)+(x1770);
x1809 = (x1808)<(x1770);
x1810 = (x1807)+(x1809);
x1811 = (x1810)+(x1771);
x1812 = (x1811)<(x1771);
x1813 = (x1811)+(x1768);
x1814 = (x1813)<(x1768);
x1815 = (x1812)+(x1814);
x1816 = (x1815)+(x1769);
x1817 = (x1816)<(x1769);
x1818 = (x1816)+(x1766);
x1819 = (x1818)<(x1766);
x1820 = (x1817)+(x1819);
x1821 = (x1820)+(x1767);
x1822 = (x1821)<(x1767);
x1823 = (x1821)+(x1764);
x1824 = (x1823)<(x1764);
x1825 = (x1822)+(x1824);
x1826 = (x1825)+(x1765);
x1827 = (x1826)<(x1765);
x1828 = (x1826)+(x1762);
x1829 = (x1828)<(x1762);
x1830 = (x1827)+(x1829);
x1831 = (x1830)+(x1763);
x1832 = (x1831)<(x1763);
x1833 = (x1831)+(x1760);
x1834 = (x1833)<(x1760);
x1835 = (x1832)+(x1834);
x1836 = (x1835)+(x1761);
x1837 = (x1704)+(x1782);
x1838 = (x1837)<(x1704);
x1839 = (x1838)+(x1707);
x1840 = (x1839)<(x1707);
x1841 = (x1839)+(x1784);
x1842 = (x1841)<(x1784);
x1843 = (x1840)+(x1842);
x1844 = (x1843)+(x1711);
x1845 = (x1844)<(x1711);
x1846 = (x1844)+(x1788);
x1847 = (x1846)<(x1788);
x1848 = (x1845)+(x1847);
x1849 = (x1848)+(x1716);
x1850 = (x1849)<(x1716);
x1851 = (x1849)+(x1793);
x1852 = (x1851)<(x1793);
x1853 = (x1850)+(x1852);
x1854 = (x1853)+(x1721);
x1855 = (x1854)<(x1721);
x1856 = (x1854)+(x1798);
x1857 = (x1856)<(x1798);
x1858 = (x1855)+(x1857);
x1859 = (x1858)+(x1726);
x1860 = (x1859)<(x1726);
x1861 = (x1859)+(x1803);
x1862 = (x1861)<(x1803);
x1863 = (x1860)+(x1862);
x1864 = (x1863)+(x1731);
x1865 = (x1864)<(x1731);
x1866 = (x1864)+(x1808);
x1867 = (x1866)<(x1808);
x1868 = (x1865)+(x1867);
x1869 = (x1868)+(x1736);
x1870 = (x1869)<(x1736);
x1871 = (x1869)+(x1813);
x1872 = (x1871)<(x1813);
x1873 = (x1870)+(x1872);
x1874 = (x1873)+(x1741);
x1875 = (x1874)<(x1741);
x1876 = (x1874)+(x1818);
x1877 = (x1876)<(x1818);
x1878 = (x1875)+(x1877);
x1879 = (x1878)+(x1746);
x1880 = (x1879)<(x1746);
x1881 = (x1879)+(x1823);
x1882 = (x1881)<(x1823);
x1883 = (x1880)+(x1882);
x1884 = (x1883)+(x1751);
x1885 = (x1884)<(x1751);
x1886 = (x1884)+(x1828);
x1887 = (x1886)<(x1828);
x1888 = (x1885)+(x1887);
x1889 = (x1888)+(x1756);
x1890 = (x1889)<(x1756);
x1891 = (x1889)+(x1833);
x1892 = (x1891)<(x1833);
x1893 = (x1890)+(x1892);
x1894 = (x1893)+(x1759);
x1895 = (x1894)<(x1759);
x1896 = (x1894)+(x1836);
x1897 = (x1896)<(x1836);
x1898 = (x1895)+(x1897);
x1899 = (x1837)*((uintptr_t)4294967295ULL);
x1900 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1901 = (x1837)*((uintptr_t)4294967295ULL);
x1902 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1903 = (x1837)*((uintptr_t)4294967295ULL);
x1904 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1905 = (x1837)*((uintptr_t)4294967295ULL);
x1906 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1907 = (x1837)*((uintptr_t)4294967295ULL);
x1908 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1909 = (x1837)*((uintptr_t)4294967295ULL);
x1910 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1911 = (x1837)*((uintptr_t)4294967295ULL);
x1912 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1913 = (x1837)*((uintptr_t)4294967294ULL);
x1914 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967294ULL))>>64;
x1915 = (x1837)*((uintptr_t)4294967295ULL);
x1916 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1917 = (x1837)*((uintptr_t)4294967295ULL);
x1918 = sizeof(intptr_t) == 4 ? ((uint64_t)(x1837)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x1837)*((uintptr_t)4294967295ULL))>>64;
x1919 = (x1916)+(x1913);
x1920 = (x1919)<(x1916);
x1921 = (x1920)+(x1914);
x1922 = (x1921)<(x1914);
x1923 = (x1921)+(x1911);
x1924 = (x1923)<(x1911);
x1925 = (x1922)+(x1924);
x1926 = (x1925)+(x1912);
x1927 = (x1926)<(x1912);
x1928 = (x1926)+(x1909);
x1929 = (x1928)<(x1909);
x1930 = (x1927)+(x1929);
x1931 = (x1930)+(x1910);
x1932 = (x1931)<(x1910);
x1933 = (x1931)+(x1907);
x1934 = (x1933)<(x1907);
x1935 = (x1932)+(x1934);
x1936 = (x1935)+(x1908);
x1937 = (x1936)<(x1908);
x1938 = (x1936)+(x1905);
x1939 = (x1938)<(x1905);
x1940 = (x1937)+(x1939);
x1941 = (x1940)+(x1906);
x1942 = (x1941)<(x1906);
x1943 = (x1941)+(x1903);
x1944 = (x1943)<(x1903);
x1945 = (x1942)+(x1944);
x1946 = (x1945)+(x1904);
x1947 = (x1946)<(x1904);
x1948 = (x1946)+(x1901);
x1949 = (x1948)<(x1901);
x1950 = (x1947)+(x1949);
x1951 = (x1950)+(x1902);
x1952 = (x1951)<(x1902);
x1953 = (x1951)+(x1899);
x1954 = (x1953)<(x1899);
x1955 = (x1952)+(x1954);
x1956 = (x1955)+(x1900);
x1957 = (x1837)+(x1917);
x1958 = (x1957)<(x1837);
x1959 = (x1958)+(x1841);
x1960 = (x1959)<(x1841);
x1961 = (x1959)+(x1918);
x1962 = (x1961)<(x1918);
x1963 = (x1960)+(x1962);
x1964 = (x1963)+(x1846);
x1965 = (x1964)<(x1846);
x1966 = (x1965)+(x1851);
x1967 = (x1966)<(x1851);
x1968 = (x1966)+(x1915);
x1969 = (x1968)<(x1915);
x1970 = (x1967)+(x1969);
x1971 = (x1970)+(x1856);
x1972 = (x1971)<(x1856);
x1973 = (x1971)+(x1919);
x1974 = (x1973)<(x1919);
x1975 = (x1972)+(x1974);
x1976 = (x1975)+(x1861);
x1977 = (x1976)<(x1861);
x1978 = (x1976)+(x1923);
x1979 = (x1978)<(x1923);
x1980 = (x1977)+(x1979);
x1981 = (x1980)+(x1866);
x1982 = (x1981)<(x1866);
x1983 = (x1981)+(x1928);
x1984 = (x1983)<(x1928);
x1985 = (x1982)+(x1984);
x1986 = (x1985)+(x1871);
x1987 = (x1986)<(x1871);
x1988 = (x1986)+(x1933);
x1989 = (x1988)<(x1933);
x1990 = (x1987)+(x1989);
x1991 = (x1990)+(x1876);
x1992 = (x1991)<(x1876);
x1993 = (x1991)+(x1938);
x1994 = (x1993)<(x1938);
x1995 = (x1992)+(x1994);
x1996 = (x1995)+(x1881);
x1997 = (x1996)<(x1881);
x1998 = (x1996)+(x1943);
x1999 = (x1998)<(x1943);
x2000 = (x1997)+(x1999);
x2001 = (x2000)+(x1886);
x2002 = (x2001)<(x1886);
x2003 = (x2001)+(x1948);
x2004 = (x2003)<(x1948);
x2005 = (x2002)+(x2004);
x2006 = (x2005)+(x1891);
x2007 = (x2006)<(x1891);
x2008 = (x2006)+(x1953);
x2009 = (x2008)<(x1953);
x2010 = (x2007)+(x2009);
x2011 = (x2010)+(x1896);
x2012 = (x2011)<(x1896);
x2013 = (x2011)+(x1956);
x2014 = (x2013)<(x1956);
x2015 = (x2012)+(x2014);
x2016 = (x2015)+(x1898);
x2017 = (x19)*(x11);
x2018 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x11))>>32 : ((__uint128_t)(x19)*(x11))>>64;
x2019 = (x19)*(x10);
x2020 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x10))>>32 : ((__uint128_t)(x19)*(x10))>>64;
x2021 = (x19)*(x9);
x2022 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x9))>>32 : ((__uint128_t)(x19)*(x9))>>64;
x2023 = (x19)*(x8);
x2024 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x8))>>32 : ((__uint128_t)(x19)*(x8))>>64;
x2025 = (x19)*(x7);
x2026 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x7))>>32 : ((__uint128_t)(x19)*(x7))>>64;
x2027 = (x19)*(x6);
x2028 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x6))>>32 : ((__uint128_t)(x19)*(x6))>>64;
x2029 = (x19)*(x5);
x2030 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x5))>>32 : ((__uint128_t)(x19)*(x5))>>64;
x2031 = (x19)*(x4);
x2032 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x4))>>32 : ((__uint128_t)(x19)*(x4))>>64;
x2033 = (x19)*(x3);
x2034 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x3))>>32 : ((__uint128_t)(x19)*(x3))>>64;
x2035 = (x19)*(x2);
x2036 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x2))>>32 : ((__uint128_t)(x19)*(x2))>>64;
x2037 = (x19)*(x1);
x2038 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x1))>>32 : ((__uint128_t)(x19)*(x1))>>64;
x2039 = (x19)*(x0);
x2040 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*(x0))>>32 : ((__uint128_t)(x19)*(x0))>>64;
x2041 = (x2040)+(x2037);
x2042 = (x2041)<(x2040);
x2043 = (x2042)+(x2038);
x2044 = (x2043)<(x2038);
x2045 = (x2043)+(x2035);
x2046 = (x2045)<(x2035);
x2047 = (x2044)+(x2046);
x2048 = (x2047)+(x2036);
x2049 = (x2048)<(x2036);
x2050 = (x2048)+(x2033);
x2051 = (x2050)<(x2033);
x2052 = (x2049)+(x2051);
x2053 = (x2052)+(x2034);
x2054 = (x2053)<(x2034);
x2055 = (x2053)+(x2031);
x2056 = (x2055)<(x2031);
x2057 = (x2054)+(x2056);
x2058 = (x2057)+(x2032);
x2059 = (x2058)<(x2032);
x2060 = (x2058)+(x2029);
x2061 = (x2060)<(x2029);
x2062 = (x2059)+(x2061);
x2063 = (x2062)+(x2030);
x2064 = (x2063)<(x2030);
x2065 = (x2063)+(x2027);
x2066 = (x2065)<(x2027);
x2067 = (x2064)+(x2066);
x2068 = (x2067)+(x2028);
x2069 = (x2068)<(x2028);
x2070 = (x2068)+(x2025);
x2071 = (x2070)<(x2025);
x2072 = (x2069)+(x2071);
x2073 = (x2072)+(x2026);
x2074 = (x2073)<(x2026);
x2075 = (x2073)+(x2023);
x2076 = (x2075)<(x2023);
x2077 = (x2074)+(x2076);
x2078 = (x2077)+(x2024);
x2079 = (x2078)<(x2024);
x2080 = (x2078)+(x2021);
x2081 = (x2080)<(x2021);
x2082 = (x2079)+(x2081);
x2083 = (x2082)+(x2022);
x2084 = (x2083)<(x2022);
x2085 = (x2083)+(x2019);
x2086 = (x2085)<(x2019);
x2087 = (x2084)+(x2086);
x2088 = (x2087)+(x2020);
x2089 = (x2088)<(x2020);
x2090 = (x2088)+(x2017);
x2091 = (x2090)<(x2017);
x2092 = (x2089)+(x2091);
x2093 = (x2092)+(x2018);
x2094 = (x1961)+(x2039);
x2095 = (x2094)<(x1961);
x2096 = (x2095)+(x1964);
x2097 = (x2096)<(x1964);
x2098 = (x2096)+(x2041);
x2099 = (x2098)<(x2041);
x2100 = (x2097)+(x2099);
x2101 = (x2100)+(x1968);
x2102 = (x2101)<(x1968);
x2103 = (x2101)+(x2045);
x2104 = (x2103)<(x2045);
x2105 = (x2102)+(x2104);
x2106 = (x2105)+(x1973);
x2107 = (x2106)<(x1973);
x2108 = (x2106)+(x2050);
x2109 = (x2108)<(x2050);
x2110 = (x2107)+(x2109);
x2111 = (x2110)+(x1978);
x2112 = (x2111)<(x1978);
x2113 = (x2111)+(x2055);
x2114 = (x2113)<(x2055);
x2115 = (x2112)+(x2114);
x2116 = (x2115)+(x1983);
x2117 = (x2116)<(x1983);
x2118 = (x2116)+(x2060);
x2119 = (x2118)<(x2060);
x2120 = (x2117)+(x2119);
x2121 = (x2120)+(x1988);
x2122 = (x2121)<(x1988);
x2123 = (x2121)+(x2065);
x2124 = (x2123)<(x2065);
x2125 = (x2122)+(x2124);
x2126 = (x2125)+(x1993);
x2127 = (x2126)<(x1993);
x2128 = (x2126)+(x2070);
x2129 = (x2128)<(x2070);
x2130 = (x2127)+(x2129);
x2131 = (x2130)+(x1998);
x2132 = (x2131)<(x1998);
x2133 = (x2131)+(x2075);
x2134 = (x2133)<(x2075);
x2135 = (x2132)+(x2134);
x2136 = (x2135)+(x2003);
x2137 = (x2136)<(x2003);
x2138 = (x2136)+(x2080);
x2139 = (x2138)<(x2080);
x2140 = (x2137)+(x2139);
x2141 = (x2140)+(x2008);
x2142 = (x2141)<(x2008);
x2143 = (x2141)+(x2085);
x2144 = (x2143)<(x2085);
x2145 = (x2142)+(x2144);
x2146 = (x2145)+(x2013);
x2147 = (x2146)<(x2013);
x2148 = (x2146)+(x2090);
x2149 = (x2148)<(x2090);
x2150 = (x2147)+(x2149);
x2151 = (x2150)+(x2016);
x2152 = (x2151)<(x2016);
x2153 = (x2151)+(x2093);
x2154 = (x2153)<(x2093);
x2155 = (x2152)+(x2154);
x2156 = (x2094)*((uintptr_t)4294967295ULL);
x2157 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2158 = (x2094)*((uintptr_t)4294967295ULL);
x2159 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2160 = (x2094)*((uintptr_t)4294967295ULL);
x2161 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2162 = (x2094)*((uintptr_t)4294967295ULL);
x2163 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2164 = (x2094)*((uintptr_t)4294967295ULL);
x2165 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2166 = (x2094)*((uintptr_t)4294967295ULL);
x2167 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2168 = (x2094)*((uintptr_t)4294967295ULL);
x2169 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2170 = (x2094)*((uintptr_t)4294967294ULL);
x2171 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967294ULL))>>64;
x2172 = (x2094)*((uintptr_t)4294967295ULL);
x2173 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2174 = (x2094)*((uintptr_t)4294967295ULL);
x2175 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2094)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2094)*((uintptr_t)4294967295ULL))>>64;
x2176 = (x2173)+(x2170);
x2177 = (x2176)<(x2173);
x2178 = (x2177)+(x2171);
x2179 = (x2178)<(x2171);
x2180 = (x2178)+(x2168);
x2181 = (x2180)<(x2168);
x2182 = (x2179)+(x2181);
x2183 = (x2182)+(x2169);
x2184 = (x2183)<(x2169);
x2185 = (x2183)+(x2166);
x2186 = (x2185)<(x2166);
x2187 = (x2184)+(x2186);
x2188 = (x2187)+(x2167);
x2189 = (x2188)<(x2167);
x2190 = (x2188)+(x2164);
x2191 = (x2190)<(x2164);
x2192 = (x2189)+(x2191);
x2193 = (x2192)+(x2165);
x2194 = (x2193)<(x2165);
x2195 = (x2193)+(x2162);
x2196 = (x2195)<(x2162);
x2197 = (x2194)+(x2196);
x2198 = (x2197)+(x2163);
x2199 = (x2198)<(x2163);
x2200 = (x2198)+(x2160);
x2201 = (x2200)<(x2160);
x2202 = (x2199)+(x2201);
x2203 = (x2202)+(x2161);
x2204 = (x2203)<(x2161);
x2205 = (x2203)+(x2158);
x2206 = (x2205)<(x2158);
x2207 = (x2204)+(x2206);
x2208 = (x2207)+(x2159);
x2209 = (x2208)<(x2159);
x2210 = (x2208)+(x2156);
x2211 = (x2210)<(x2156);
x2212 = (x2209)+(x2211);
x2213 = (x2212)+(x2157);
x2214 = (x2094)+(x2174);
x2215 = (x2214)<(x2094);
x2216 = (x2215)+(x2098);
x2217 = (x2216)<(x2098);
x2218 = (x2216)+(x2175);
x2219 = (x2218)<(x2175);
x2220 = (x2217)+(x2219);
x2221 = (x2220)+(x2103);
x2222 = (x2221)<(x2103);
x2223 = (x2222)+(x2108);
x2224 = (x2223)<(x2108);
x2225 = (x2223)+(x2172);
x2226 = (x2225)<(x2172);
x2227 = (x2224)+(x2226);
x2228 = (x2227)+(x2113);
x2229 = (x2228)<(x2113);
x2230 = (x2228)+(x2176);
x2231 = (x2230)<(x2176);
x2232 = (x2229)+(x2231);
x2233 = (x2232)+(x2118);
x2234 = (x2233)<(x2118);
x2235 = (x2233)+(x2180);
x2236 = (x2235)<(x2180);
x2237 = (x2234)+(x2236);
x2238 = (x2237)+(x2123);
x2239 = (x2238)<(x2123);
x2240 = (x2238)+(x2185);
x2241 = (x2240)<(x2185);
x2242 = (x2239)+(x2241);
x2243 = (x2242)+(x2128);
x2244 = (x2243)<(x2128);
x2245 = (x2243)+(x2190);
x2246 = (x2245)<(x2190);
x2247 = (x2244)+(x2246);
x2248 = (x2247)+(x2133);
x2249 = (x2248)<(x2133);
x2250 = (x2248)+(x2195);
x2251 = (x2250)<(x2195);
x2252 = (x2249)+(x2251);
x2253 = (x2252)+(x2138);
x2254 = (x2253)<(x2138);
x2255 = (x2253)+(x2200);
x2256 = (x2255)<(x2200);
x2257 = (x2254)+(x2256);
x2258 = (x2257)+(x2143);
x2259 = (x2258)<(x2143);
x2260 = (x2258)+(x2205);
x2261 = (x2260)<(x2205);
x2262 = (x2259)+(x2261);
x2263 = (x2262)+(x2148);
x2264 = (x2263)<(x2148);
x2265 = (x2263)+(x2210);
x2266 = (x2265)<(x2210);
x2267 = (x2264)+(x2266);
x2268 = (x2267)+(x2153);
x2269 = (x2268)<(x2153);
x2270 = (x2268)+(x2213);
x2271 = (x2270)<(x2213);
x2272 = (x2269)+(x2271);
x2273 = (x2272)+(x2155);
x2274 = (x20)*(x11);
x2275 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x11))>>32 : ((__uint128_t)(x20)*(x11))>>64;
x2276 = (x20)*(x10);
x2277 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x10))>>32 : ((__uint128_t)(x20)*(x10))>>64;
x2278 = (x20)*(x9);
x2279 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x9))>>32 : ((__uint128_t)(x20)*(x9))>>64;
x2280 = (x20)*(x8);
x2281 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x8))>>32 : ((__uint128_t)(x20)*(x8))>>64;
x2282 = (x20)*(x7);
x2283 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x7))>>32 : ((__uint128_t)(x20)*(x7))>>64;
x2284 = (x20)*(x6);
x2285 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x6))>>32 : ((__uint128_t)(x20)*(x6))>>64;
x2286 = (x20)*(x5);
x2287 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x5))>>32 : ((__uint128_t)(x20)*(x5))>>64;
x2288 = (x20)*(x4);
x2289 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x4))>>32 : ((__uint128_t)(x20)*(x4))>>64;
x2290 = (x20)*(x3);
x2291 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x3))>>32 : ((__uint128_t)(x20)*(x3))>>64;
x2292 = (x20)*(x2);
x2293 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x2))>>32 : ((__uint128_t)(x20)*(x2))>>64;
x2294 = (x20)*(x1);
x2295 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x1))>>32 : ((__uint128_t)(x20)*(x1))>>64;
x2296 = (x20)*(x0);
x2297 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*(x0))>>32 : ((__uint128_t)(x20)*(x0))>>64;
x2298 = (x2297)+(x2294);
x2299 = (x2298)<(x2297);
x2300 = (x2299)+(x2295);
x2301 = (x2300)<(x2295);
x2302 = (x2300)+(x2292);
x2303 = (x2302)<(x2292);
x2304 = (x2301)+(x2303);
x2305 = (x2304)+(x2293);
x2306 = (x2305)<(x2293);
x2307 = (x2305)+(x2290);
x2308 = (x2307)<(x2290);
x2309 = (x2306)+(x2308);
x2310 = (x2309)+(x2291);
x2311 = (x2310)<(x2291);
x2312 = (x2310)+(x2288);
x2313 = (x2312)<(x2288);
x2314 = (x2311)+(x2313);
x2315 = (x2314)+(x2289);
x2316 = (x2315)<(x2289);
x2317 = (x2315)+(x2286);
x2318 = (x2317)<(x2286);
x2319 = (x2316)+(x2318);
x2320 = (x2319)+(x2287);
x2321 = (x2320)<(x2287);
x2322 = (x2320)+(x2284);
x2323 = (x2322)<(x2284);
x2324 = (x2321)+(x2323);
x2325 = (x2324)+(x2285);
x2326 = (x2325)<(x2285);
x2327 = (x2325)+(x2282);
x2328 = (x2327)<(x2282);
x2329 = (x2326)+(x2328);
x2330 = (x2329)+(x2283);
x2331 = (x2330)<(x2283);
x2332 = (x2330)+(x2280);
x2333 = (x2332)<(x2280);
x2334 = (x2331)+(x2333);
x2335 = (x2334)+(x2281);
x2336 = (x2335)<(x2281);
x2337 = (x2335)+(x2278);
x2338 = (x2337)<(x2278);
x2339 = (x2336)+(x2338);
x2340 = (x2339)+(x2279);
x2341 = (x2340)<(x2279);
x2342 = (x2340)+(x2276);
x2343 = (x2342)<(x2276);
x2344 = (x2341)+(x2343);
x2345 = (x2344)+(x2277);
x2346 = (x2345)<(x2277);
x2347 = (x2345)+(x2274);
x2348 = (x2347)<(x2274);
x2349 = (x2346)+(x2348);
x2350 = (x2349)+(x2275);
x2351 = (x2218)+(x2296);
x2352 = (x2351)<(x2218);
x2353 = (x2352)+(x2221);
x2354 = (x2353)<(x2221);
x2355 = (x2353)+(x2298);
x2356 = (x2355)<(x2298);
x2357 = (x2354)+(x2356);
x2358 = (x2357)+(x2225);
x2359 = (x2358)<(x2225);
x2360 = (x2358)+(x2302);
x2361 = (x2360)<(x2302);
x2362 = (x2359)+(x2361);
x2363 = (x2362)+(x2230);
x2364 = (x2363)<(x2230);
x2365 = (x2363)+(x2307);
x2366 = (x2365)<(x2307);
x2367 = (x2364)+(x2366);
x2368 = (x2367)+(x2235);
x2369 = (x2368)<(x2235);
x2370 = (x2368)+(x2312);
x2371 = (x2370)<(x2312);
x2372 = (x2369)+(x2371);
x2373 = (x2372)+(x2240);
x2374 = (x2373)<(x2240);
x2375 = (x2373)+(x2317);
x2376 = (x2375)<(x2317);
x2377 = (x2374)+(x2376);
x2378 = (x2377)+(x2245);
x2379 = (x2378)<(x2245);
x2380 = (x2378)+(x2322);
x2381 = (x2380)<(x2322);
x2382 = (x2379)+(x2381);
x2383 = (x2382)+(x2250);
x2384 = (x2383)<(x2250);
x2385 = (x2383)+(x2327);
x2386 = (x2385)<(x2327);
x2387 = (x2384)+(x2386);
x2388 = (x2387)+(x2255);
x2389 = (x2388)<(x2255);
x2390 = (x2388)+(x2332);
x2391 = (x2390)<(x2332);
x2392 = (x2389)+(x2391);
x2393 = (x2392)+(x2260);
x2394 = (x2393)<(x2260);
x2395 = (x2393)+(x2337);
x2396 = (x2395)<(x2337);
x2397 = (x2394)+(x2396);
x2398 = (x2397)+(x2265);
x2399 = (x2398)<(x2265);
x2400 = (x2398)+(x2342);
x2401 = (x2400)<(x2342);
x2402 = (x2399)+(x2401);
x2403 = (x2402)+(x2270);
x2404 = (x2403)<(x2270);
x2405 = (x2403)+(x2347);
x2406 = (x2405)<(x2347);
x2407 = (x2404)+(x2406);
x2408 = (x2407)+(x2273);
x2409 = (x2408)<(x2273);
x2410 = (x2408)+(x2350);
x2411 = (x2410)<(x2350);
x2412 = (x2409)+(x2411);
x2413 = (x2351)*((uintptr_t)4294967295ULL);
x2414 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2415 = (x2351)*((uintptr_t)4294967295ULL);
x2416 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2417 = (x2351)*((uintptr_t)4294967295ULL);
x2418 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2419 = (x2351)*((uintptr_t)4294967295ULL);
x2420 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2421 = (x2351)*((uintptr_t)4294967295ULL);
x2422 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2423 = (x2351)*((uintptr_t)4294967295ULL);
x2424 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2425 = (x2351)*((uintptr_t)4294967295ULL);
x2426 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2427 = (x2351)*((uintptr_t)4294967294ULL);
x2428 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967294ULL))>>64;
x2429 = (x2351)*((uintptr_t)4294967295ULL);
x2430 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2431 = (x2351)*((uintptr_t)4294967295ULL);
x2432 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2351)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2351)*((uintptr_t)4294967295ULL))>>64;
x2433 = (x2430)+(x2427);
x2434 = (x2433)<(x2430);
x2435 = (x2434)+(x2428);
x2436 = (x2435)<(x2428);
x2437 = (x2435)+(x2425);
x2438 = (x2437)<(x2425);
x2439 = (x2436)+(x2438);
x2440 = (x2439)+(x2426);
x2441 = (x2440)<(x2426);
x2442 = (x2440)+(x2423);
x2443 = (x2442)<(x2423);
x2444 = (x2441)+(x2443);
x2445 = (x2444)+(x2424);
x2446 = (x2445)<(x2424);
x2447 = (x2445)+(x2421);
x2448 = (x2447)<(x2421);
x2449 = (x2446)+(x2448);
x2450 = (x2449)+(x2422);
x2451 = (x2450)<(x2422);
x2452 = (x2450)+(x2419);
x2453 = (x2452)<(x2419);
x2454 = (x2451)+(x2453);
x2455 = (x2454)+(x2420);
x2456 = (x2455)<(x2420);
x2457 = (x2455)+(x2417);
x2458 = (x2457)<(x2417);
x2459 = (x2456)+(x2458);
x2460 = (x2459)+(x2418);
x2461 = (x2460)<(x2418);
x2462 = (x2460)+(x2415);
x2463 = (x2462)<(x2415);
x2464 = (x2461)+(x2463);
x2465 = (x2464)+(x2416);
x2466 = (x2465)<(x2416);
x2467 = (x2465)+(x2413);
x2468 = (x2467)<(x2413);
x2469 = (x2466)+(x2468);
x2470 = (x2469)+(x2414);
x2471 = (x2351)+(x2431);
x2472 = (x2471)<(x2351);
x2473 = (x2472)+(x2355);
x2474 = (x2473)<(x2355);
x2475 = (x2473)+(x2432);
x2476 = (x2475)<(x2432);
x2477 = (x2474)+(x2476);
x2478 = (x2477)+(x2360);
x2479 = (x2478)<(x2360);
x2480 = (x2479)+(x2365);
x2481 = (x2480)<(x2365);
x2482 = (x2480)+(x2429);
x2483 = (x2482)<(x2429);
x2484 = (x2481)+(x2483);
x2485 = (x2484)+(x2370);
x2486 = (x2485)<(x2370);
x2487 = (x2485)+(x2433);
x2488 = (x2487)<(x2433);
x2489 = (x2486)+(x2488);
x2490 = (x2489)+(x2375);
x2491 = (x2490)<(x2375);
x2492 = (x2490)+(x2437);
x2493 = (x2492)<(x2437);
x2494 = (x2491)+(x2493);
x2495 = (x2494)+(x2380);
x2496 = (x2495)<(x2380);
x2497 = (x2495)+(x2442);
x2498 = (x2497)<(x2442);
x2499 = (x2496)+(x2498);
x2500 = (x2499)+(x2385);
x2501 = (x2500)<(x2385);
x2502 = (x2500)+(x2447);
x2503 = (x2502)<(x2447);
x2504 = (x2501)+(x2503);
x2505 = (x2504)+(x2390);
x2506 = (x2505)<(x2390);
x2507 = (x2505)+(x2452);
x2508 = (x2507)<(x2452);
x2509 = (x2506)+(x2508);
x2510 = (x2509)+(x2395);
x2511 = (x2510)<(x2395);
x2512 = (x2510)+(x2457);
x2513 = (x2512)<(x2457);
x2514 = (x2511)+(x2513);
x2515 = (x2514)+(x2400);
x2516 = (x2515)<(x2400);
x2517 = (x2515)+(x2462);
x2518 = (x2517)<(x2462);
x2519 = (x2516)+(x2518);
x2520 = (x2519)+(x2405);
x2521 = (x2520)<(x2405);
x2522 = (x2520)+(x2467);
x2523 = (x2522)<(x2467);
x2524 = (x2521)+(x2523);
x2525 = (x2524)+(x2410);
x2526 = (x2525)<(x2410);
x2527 = (x2525)+(x2470);
x2528 = (x2527)<(x2470);
x2529 = (x2526)+(x2528);
x2530 = (x2529)+(x2412);
x2531 = (x21)*(x11);
x2532 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x11))>>32 : ((__uint128_t)(x21)*(x11))>>64;
x2533 = (x21)*(x10);
x2534 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x10))>>32 : ((__uint128_t)(x21)*(x10))>>64;
x2535 = (x21)*(x9);
x2536 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x9))>>32 : ((__uint128_t)(x21)*(x9))>>64;
x2537 = (x21)*(x8);
x2538 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x8))>>32 : ((__uint128_t)(x21)*(x8))>>64;
x2539 = (x21)*(x7);
x2540 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x7))>>32 : ((__uint128_t)(x21)*(x7))>>64;
x2541 = (x21)*(x6);
x2542 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x6))>>32 : ((__uint128_t)(x21)*(x6))>>64;
x2543 = (x21)*(x5);
x2544 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x5))>>32 : ((__uint128_t)(x21)*(x5))>>64;
x2545 = (x21)*(x4);
x2546 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x4))>>32 : ((__uint128_t)(x21)*(x4))>>64;
x2547 = (x21)*(x3);
x2548 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x3))>>32 : ((__uint128_t)(x21)*(x3))>>64;
x2549 = (x21)*(x2);
x2550 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x2))>>32 : ((__uint128_t)(x21)*(x2))>>64;
x2551 = (x21)*(x1);
x2552 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x1))>>32 : ((__uint128_t)(x21)*(x1))>>64;
x2553 = (x21)*(x0);
x2554 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*(x0))>>32 : ((__uint128_t)(x21)*(x0))>>64;
x2555 = (x2554)+(x2551);
x2556 = (x2555)<(x2554);
x2557 = (x2556)+(x2552);
x2558 = (x2557)<(x2552);
x2559 = (x2557)+(x2549);
x2560 = (x2559)<(x2549);
x2561 = (x2558)+(x2560);
x2562 = (x2561)+(x2550);
x2563 = (x2562)<(x2550);
x2564 = (x2562)+(x2547);
x2565 = (x2564)<(x2547);
x2566 = (x2563)+(x2565);
x2567 = (x2566)+(x2548);
x2568 = (x2567)<(x2548);
x2569 = (x2567)+(x2545);
x2570 = (x2569)<(x2545);
x2571 = (x2568)+(x2570);
x2572 = (x2571)+(x2546);
x2573 = (x2572)<(x2546);
x2574 = (x2572)+(x2543);
x2575 = (x2574)<(x2543);
x2576 = (x2573)+(x2575);
x2577 = (x2576)+(x2544);
x2578 = (x2577)<(x2544);
x2579 = (x2577)+(x2541);
x2580 = (x2579)<(x2541);
x2581 = (x2578)+(x2580);
x2582 = (x2581)+(x2542);
x2583 = (x2582)<(x2542);
x2584 = (x2582)+(x2539);
x2585 = (x2584)<(x2539);
x2586 = (x2583)+(x2585);
x2587 = (x2586)+(x2540);
x2588 = (x2587)<(x2540);
x2589 = (x2587)+(x2537);
x2590 = (x2589)<(x2537);
x2591 = (x2588)+(x2590);
x2592 = (x2591)+(x2538);
x2593 = (x2592)<(x2538);
x2594 = (x2592)+(x2535);
x2595 = (x2594)<(x2535);
x2596 = (x2593)+(x2595);
x2597 = (x2596)+(x2536);
x2598 = (x2597)<(x2536);
x2599 = (x2597)+(x2533);
x2600 = (x2599)<(x2533);
x2601 = (x2598)+(x2600);
x2602 = (x2601)+(x2534);
x2603 = (x2602)<(x2534);
x2604 = (x2602)+(x2531);
x2605 = (x2604)<(x2531);
x2606 = (x2603)+(x2605);
x2607 = (x2606)+(x2532);
x2608 = (x2475)+(x2553);
x2609 = (x2608)<(x2475);
x2610 = (x2609)+(x2478);
x2611 = (x2610)<(x2478);
x2612 = (x2610)+(x2555);
x2613 = (x2612)<(x2555);
x2614 = (x2611)+(x2613);
x2615 = (x2614)+(x2482);
x2616 = (x2615)<(x2482);
x2617 = (x2615)+(x2559);
x2618 = (x2617)<(x2559);
x2619 = (x2616)+(x2618);
x2620 = (x2619)+(x2487);
x2621 = (x2620)<(x2487);
x2622 = (x2620)+(x2564);
x2623 = (x2622)<(x2564);
x2624 = (x2621)+(x2623);
x2625 = (x2624)+(x2492);
x2626 = (x2625)<(x2492);
x2627 = (x2625)+(x2569);
x2628 = (x2627)<(x2569);
x2629 = (x2626)+(x2628);
x2630 = (x2629)+(x2497);
x2631 = (x2630)<(x2497);
x2632 = (x2630)+(x2574);
x2633 = (x2632)<(x2574);
x2634 = (x2631)+(x2633);
x2635 = (x2634)+(x2502);
x2636 = (x2635)<(x2502);
x2637 = (x2635)+(x2579);
x2638 = (x2637)<(x2579);
x2639 = (x2636)+(x2638);
x2640 = (x2639)+(x2507);
x2641 = (x2640)<(x2507);
x2642 = (x2640)+(x2584);
x2643 = (x2642)<(x2584);
x2644 = (x2641)+(x2643);
x2645 = (x2644)+(x2512);
x2646 = (x2645)<(x2512);
x2647 = (x2645)+(x2589);
x2648 = (x2647)<(x2589);
x2649 = (x2646)+(x2648);
x2650 = (x2649)+(x2517);
x2651 = (x2650)<(x2517);
x2652 = (x2650)+(x2594);
x2653 = (x2652)<(x2594);
x2654 = (x2651)+(x2653);
x2655 = (x2654)+(x2522);
x2656 = (x2655)<(x2522);
x2657 = (x2655)+(x2599);
x2658 = (x2657)<(x2599);
x2659 = (x2656)+(x2658);
x2660 = (x2659)+(x2527);
x2661 = (x2660)<(x2527);
x2662 = (x2660)+(x2604);
x2663 = (x2662)<(x2604);
x2664 = (x2661)+(x2663);
x2665 = (x2664)+(x2530);
x2666 = (x2665)<(x2530);
x2667 = (x2665)+(x2607);
x2668 = (x2667)<(x2607);
x2669 = (x2666)+(x2668);
x2670 = (x2608)*((uintptr_t)4294967295ULL);
x2671 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2672 = (x2608)*((uintptr_t)4294967295ULL);
x2673 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2674 = (x2608)*((uintptr_t)4294967295ULL);
x2675 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2676 = (x2608)*((uintptr_t)4294967295ULL);
x2677 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2678 = (x2608)*((uintptr_t)4294967295ULL);
x2679 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2680 = (x2608)*((uintptr_t)4294967295ULL);
x2681 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2682 = (x2608)*((uintptr_t)4294967295ULL);
x2683 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2684 = (x2608)*((uintptr_t)4294967294ULL);
x2685 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967294ULL))>>64;
x2686 = (x2608)*((uintptr_t)4294967295ULL);
x2687 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2688 = (x2608)*((uintptr_t)4294967295ULL);
x2689 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2608)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2608)*((uintptr_t)4294967295ULL))>>64;
x2690 = (x2687)+(x2684);
x2691 = (x2690)<(x2687);
x2692 = (x2691)+(x2685);
x2693 = (x2692)<(x2685);
x2694 = (x2692)+(x2682);
x2695 = (x2694)<(x2682);
x2696 = (x2693)+(x2695);
x2697 = (x2696)+(x2683);
x2698 = (x2697)<(x2683);
x2699 = (x2697)+(x2680);
x2700 = (x2699)<(x2680);
x2701 = (x2698)+(x2700);
x2702 = (x2701)+(x2681);
x2703 = (x2702)<(x2681);
x2704 = (x2702)+(x2678);
x2705 = (x2704)<(x2678);
x2706 = (x2703)+(x2705);
x2707 = (x2706)+(x2679);
x2708 = (x2707)<(x2679);
x2709 = (x2707)+(x2676);
x2710 = (x2709)<(x2676);
x2711 = (x2708)+(x2710);
x2712 = (x2711)+(x2677);
x2713 = (x2712)<(x2677);
x2714 = (x2712)+(x2674);
x2715 = (x2714)<(x2674);
x2716 = (x2713)+(x2715);
x2717 = (x2716)+(x2675);
x2718 = (x2717)<(x2675);
x2719 = (x2717)+(x2672);
x2720 = (x2719)<(x2672);
x2721 = (x2718)+(x2720);
x2722 = (x2721)+(x2673);
x2723 = (x2722)<(x2673);
x2724 = (x2722)+(x2670);
x2725 = (x2724)<(x2670);
x2726 = (x2723)+(x2725);
x2727 = (x2726)+(x2671);
x2728 = (x2608)+(x2688);
x2729 = (x2728)<(x2608);
x2730 = (x2729)+(x2612);
x2731 = (x2730)<(x2612);
x2732 = (x2730)+(x2689);
x2733 = (x2732)<(x2689);
x2734 = (x2731)+(x2733);
x2735 = (x2734)+(x2617);
x2736 = (x2735)<(x2617);
x2737 = (x2736)+(x2622);
x2738 = (x2737)<(x2622);
x2739 = (x2737)+(x2686);
x2740 = (x2739)<(x2686);
x2741 = (x2738)+(x2740);
x2742 = (x2741)+(x2627);
x2743 = (x2742)<(x2627);
x2744 = (x2742)+(x2690);
x2745 = (x2744)<(x2690);
x2746 = (x2743)+(x2745);
x2747 = (x2746)+(x2632);
x2748 = (x2747)<(x2632);
x2749 = (x2747)+(x2694);
x2750 = (x2749)<(x2694);
x2751 = (x2748)+(x2750);
x2752 = (x2751)+(x2637);
x2753 = (x2752)<(x2637);
x2754 = (x2752)+(x2699);
x2755 = (x2754)<(x2699);
x2756 = (x2753)+(x2755);
x2757 = (x2756)+(x2642);
x2758 = (x2757)<(x2642);
x2759 = (x2757)+(x2704);
x2760 = (x2759)<(x2704);
x2761 = (x2758)+(x2760);
x2762 = (x2761)+(x2647);
x2763 = (x2762)<(x2647);
x2764 = (x2762)+(x2709);
x2765 = (x2764)<(x2709);
x2766 = (x2763)+(x2765);
x2767 = (x2766)+(x2652);
x2768 = (x2767)<(x2652);
x2769 = (x2767)+(x2714);
x2770 = (x2769)<(x2714);
x2771 = (x2768)+(x2770);
x2772 = (x2771)+(x2657);
x2773 = (x2772)<(x2657);
x2774 = (x2772)+(x2719);
x2775 = (x2774)<(x2719);
x2776 = (x2773)+(x2775);
x2777 = (x2776)+(x2662);
x2778 = (x2777)<(x2662);
x2779 = (x2777)+(x2724);
x2780 = (x2779)<(x2724);
x2781 = (x2778)+(x2780);
x2782 = (x2781)+(x2667);
x2783 = (x2782)<(x2667);
x2784 = (x2782)+(x2727);
x2785 = (x2784)<(x2727);
x2786 = (x2783)+(x2785);
x2787 = (x2786)+(x2669);
x2788 = (x22)*(x11);
x2789 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x11))>>32 : ((__uint128_t)(x22)*(x11))>>64;
x2790 = (x22)*(x10);
x2791 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x10))>>32 : ((__uint128_t)(x22)*(x10))>>64;
x2792 = (x22)*(x9);
x2793 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x9))>>32 : ((__uint128_t)(x22)*(x9))>>64;
x2794 = (x22)*(x8);
x2795 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x8))>>32 : ((__uint128_t)(x22)*(x8))>>64;
x2796 = (x22)*(x7);
x2797 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x7))>>32 : ((__uint128_t)(x22)*(x7))>>64;
x2798 = (x22)*(x6);
x2799 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x6))>>32 : ((__uint128_t)(x22)*(x6))>>64;
x2800 = (x22)*(x5);
x2801 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x5))>>32 : ((__uint128_t)(x22)*(x5))>>64;
x2802 = (x22)*(x4);
x2803 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x4))>>32 : ((__uint128_t)(x22)*(x4))>>64;
x2804 = (x22)*(x3);
x2805 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x3))>>32 : ((__uint128_t)(x22)*(x3))>>64;
x2806 = (x22)*(x2);
x2807 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x2))>>32 : ((__uint128_t)(x22)*(x2))>>64;
x2808 = (x22)*(x1);
x2809 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x1))>>32 : ((__uint128_t)(x22)*(x1))>>64;
x2810 = (x22)*(x0);
x2811 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*(x0))>>32 : ((__uint128_t)(x22)*(x0))>>64;
x2812 = (x2811)+(x2808);
x2813 = (x2812)<(x2811);
x2814 = (x2813)+(x2809);
x2815 = (x2814)<(x2809);
x2816 = (x2814)+(x2806);
x2817 = (x2816)<(x2806);
x2818 = (x2815)+(x2817);
x2819 = (x2818)+(x2807);
x2820 = (x2819)<(x2807);
x2821 = (x2819)+(x2804);
x2822 = (x2821)<(x2804);
x2823 = (x2820)+(x2822);
x2824 = (x2823)+(x2805);
x2825 = (x2824)<(x2805);
x2826 = (x2824)+(x2802);
x2827 = (x2826)<(x2802);
x2828 = (x2825)+(x2827);
x2829 = (x2828)+(x2803);
x2830 = (x2829)<(x2803);
x2831 = (x2829)+(x2800);
x2832 = (x2831)<(x2800);
x2833 = (x2830)+(x2832);
x2834 = (x2833)+(x2801);
x2835 = (x2834)<(x2801);
x2836 = (x2834)+(x2798);
x2837 = (x2836)<(x2798);
x2838 = (x2835)+(x2837);
x2839 = (x2838)+(x2799);
x2840 = (x2839)<(x2799);
x2841 = (x2839)+(x2796);
x2842 = (x2841)<(x2796);
x2843 = (x2840)+(x2842);
x2844 = (x2843)+(x2797);
x2845 = (x2844)<(x2797);
x2846 = (x2844)+(x2794);
x2847 = (x2846)<(x2794);
x2848 = (x2845)+(x2847);
x2849 = (x2848)+(x2795);
x2850 = (x2849)<(x2795);
x2851 = (x2849)+(x2792);
x2852 = (x2851)<(x2792);
x2853 = (x2850)+(x2852);
x2854 = (x2853)+(x2793);
x2855 = (x2854)<(x2793);
x2856 = (x2854)+(x2790);
x2857 = (x2856)<(x2790);
x2858 = (x2855)+(x2857);
x2859 = (x2858)+(x2791);
x2860 = (x2859)<(x2791);
x2861 = (x2859)+(x2788);
x2862 = (x2861)<(x2788);
x2863 = (x2860)+(x2862);
x2864 = (x2863)+(x2789);
x2865 = (x2732)+(x2810);
x2866 = (x2865)<(x2732);
x2867 = (x2866)+(x2735);
x2868 = (x2867)<(x2735);
x2869 = (x2867)+(x2812);
x2870 = (x2869)<(x2812);
x2871 = (x2868)+(x2870);
x2872 = (x2871)+(x2739);
x2873 = (x2872)<(x2739);
x2874 = (x2872)+(x2816);
x2875 = (x2874)<(x2816);
x2876 = (x2873)+(x2875);
x2877 = (x2876)+(x2744);
x2878 = (x2877)<(x2744);
x2879 = (x2877)+(x2821);
x2880 = (x2879)<(x2821);
x2881 = (x2878)+(x2880);
x2882 = (x2881)+(x2749);
x2883 = (x2882)<(x2749);
x2884 = (x2882)+(x2826);
x2885 = (x2884)<(x2826);
x2886 = (x2883)+(x2885);
x2887 = (x2886)+(x2754);
x2888 = (x2887)<(x2754);
x2889 = (x2887)+(x2831);
x2890 = (x2889)<(x2831);
x2891 = (x2888)+(x2890);
x2892 = (x2891)+(x2759);
x2893 = (x2892)<(x2759);
x2894 = (x2892)+(x2836);
x2895 = (x2894)<(x2836);
x2896 = (x2893)+(x2895);
x2897 = (x2896)+(x2764);
x2898 = (x2897)<(x2764);
x2899 = (x2897)+(x2841);
x2900 = (x2899)<(x2841);
x2901 = (x2898)+(x2900);
x2902 = (x2901)+(x2769);
x2903 = (x2902)<(x2769);
x2904 = (x2902)+(x2846);
x2905 = (x2904)<(x2846);
x2906 = (x2903)+(x2905);
x2907 = (x2906)+(x2774);
x2908 = (x2907)<(x2774);
x2909 = (x2907)+(x2851);
x2910 = (x2909)<(x2851);
x2911 = (x2908)+(x2910);
x2912 = (x2911)+(x2779);
x2913 = (x2912)<(x2779);
x2914 = (x2912)+(x2856);
x2915 = (x2914)<(x2856);
x2916 = (x2913)+(x2915);
x2917 = (x2916)+(x2784);
x2918 = (x2917)<(x2784);
x2919 = (x2917)+(x2861);
x2920 = (x2919)<(x2861);
x2921 = (x2918)+(x2920);
x2922 = (x2921)+(x2787);
x2923 = (x2922)<(x2787);
x2924 = (x2922)+(x2864);
x2925 = (x2924)<(x2864);
x2926 = (x2923)+(x2925);
x2927 = (x2865)*((uintptr_t)4294967295ULL);
x2928 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2929 = (x2865)*((uintptr_t)4294967295ULL);
x2930 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2931 = (x2865)*((uintptr_t)4294967295ULL);
x2932 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2933 = (x2865)*((uintptr_t)4294967295ULL);
x2934 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2935 = (x2865)*((uintptr_t)4294967295ULL);
x2936 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2937 = (x2865)*((uintptr_t)4294967295ULL);
x2938 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2939 = (x2865)*((uintptr_t)4294967295ULL);
x2940 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2941 = (x2865)*((uintptr_t)4294967294ULL);
x2942 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967294ULL))>>64;
x2943 = (x2865)*((uintptr_t)4294967295ULL);
x2944 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2945 = (x2865)*((uintptr_t)4294967295ULL);
x2946 = sizeof(intptr_t) == 4 ? ((uint64_t)(x2865)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x2865)*((uintptr_t)4294967295ULL))>>64;
x2947 = (x2944)+(x2941);
x2948 = (x2947)<(x2944);
x2949 = (x2948)+(x2942);
x2950 = (x2949)<(x2942);
x2951 = (x2949)+(x2939);
x2952 = (x2951)<(x2939);
x2953 = (x2950)+(x2952);
x2954 = (x2953)+(x2940);
x2955 = (x2954)<(x2940);
x2956 = (x2954)+(x2937);
x2957 = (x2956)<(x2937);
x2958 = (x2955)+(x2957);
x2959 = (x2958)+(x2938);
x2960 = (x2959)<(x2938);
x2961 = (x2959)+(x2935);
x2962 = (x2961)<(x2935);
x2963 = (x2960)+(x2962);
x2964 = (x2963)+(x2936);
x2965 = (x2964)<(x2936);
x2966 = (x2964)+(x2933);
x2967 = (x2966)<(x2933);
x2968 = (x2965)+(x2967);
x2969 = (x2968)+(x2934);
x2970 = (x2969)<(x2934);
x2971 = (x2969)+(x2931);
x2972 = (x2971)<(x2931);
x2973 = (x2970)+(x2972);
x2974 = (x2973)+(x2932);
x2975 = (x2974)<(x2932);
x2976 = (x2974)+(x2929);
x2977 = (x2976)<(x2929);
x2978 = (x2975)+(x2977);
x2979 = (x2978)+(x2930);
x2980 = (x2979)<(x2930);
x2981 = (x2979)+(x2927);
x2982 = (x2981)<(x2927);
x2983 = (x2980)+(x2982);
x2984 = (x2983)+(x2928);
x2985 = (x2865)+(x2945);
x2986 = (x2985)<(x2865);
x2987 = (x2986)+(x2869);
x2988 = (x2987)<(x2869);
x2989 = (x2987)+(x2946);
x2990 = (x2989)<(x2946);
x2991 = (x2988)+(x2990);
x2992 = (x2991)+(x2874);
x2993 = (x2992)<(x2874);
x2994 = (x2993)+(x2879);
x2995 = (x2994)<(x2879);
x2996 = (x2994)+(x2943);
x2997 = (x2996)<(x2943);
x2998 = (x2995)+(x2997);
x2999 = (x2998)+(x2884);
x3000 = (x2999)<(x2884);
x3001 = (x2999)+(x2947);
x3002 = (x3001)<(x2947);
x3003 = (x3000)+(x3002);
x3004 = (x3003)+(x2889);
x3005 = (x3004)<(x2889);
x3006 = (x3004)+(x2951);
x3007 = (x3006)<(x2951);
x3008 = (x3005)+(x3007);
x3009 = (x3008)+(x2894);
x3010 = (x3009)<(x2894);
x3011 = (x3009)+(x2956);
x3012 = (x3011)<(x2956);
x3013 = (x3010)+(x3012);
x3014 = (x3013)+(x2899);
x3015 = (x3014)<(x2899);
x3016 = (x3014)+(x2961);
x3017 = (x3016)<(x2961);
x3018 = (x3015)+(x3017);
x3019 = (x3018)+(x2904);
x3020 = (x3019)<(x2904);
x3021 = (x3019)+(x2966);
x3022 = (x3021)<(x2966);
x3023 = (x3020)+(x3022);
x3024 = (x3023)+(x2909);
x3025 = (x3024)<(x2909);
x3026 = (x3024)+(x2971);
x3027 = (x3026)<(x2971);
x3028 = (x3025)+(x3027);
x3029 = (x3028)+(x2914);
x3030 = (x3029)<(x2914);
x3031 = (x3029)+(x2976);
x3032 = (x3031)<(x2976);
x3033 = (x3030)+(x3032);
x3034 = (x3033)+(x2919);
x3035 = (x3034)<(x2919);
x3036 = (x3034)+(x2981);
x3037 = (x3036)<(x2981);
x3038 = (x3035)+(x3037);
x3039 = (x3038)+(x2924);
x3040 = (x3039)<(x2924);
x3041 = (x3039)+(x2984);
x3042 = (x3041)<(x2984);
x3043 = (x3040)+(x3042);
x3044 = (x3043)+(x2926);
x3045 = (x2989)-((uintptr_t)4294967295ULL);
x3046 = (x2989)<(x3045);
x3047 = (x2992)-(x3046);
x3048 = (x2992)<(x3047);
x3049 = (x2996)-(x3048);
x3050 = (x2996)<(x3049);
x3051 = (x3001)-((uintptr_t)4294967295ULL);
x3052 = (x3001)<(x3051);
x3053 = (x3051)-(x3050);
x3054 = (x3051)<(x3053);
x3055 = (x3052)+(x3054);
x3056 = (x3006)-((uintptr_t)4294967294ULL);
x3057 = (x3006)<(x3056);
x3058 = (x3056)-(x3055);
x3059 = (x3056)<(x3058);
x3060 = (x3057)+(x3059);
x3061 = (x3011)-((uintptr_t)4294967295ULL);
x3062 = (x3011)<(x3061);
x3063 = (x3061)-(x3060);
x3064 = (x3061)<(x3063);
x3065 = (x3062)+(x3064);
x3066 = (x3016)-((uintptr_t)4294967295ULL);
x3067 = (x3016)<(x3066);
x3068 = (x3066)-(x3065);
x3069 = (x3066)<(x3068);
x3070 = (x3067)+(x3069);
x3071 = (x3021)-((uintptr_t)4294967295ULL);
x3072 = (x3021)<(x3071);
x3073 = (x3071)-(x3070);
x3074 = (x3071)<(x3073);
x3075 = (x3072)+(x3074);
x3076 = (x3026)-((uintptr_t)4294967295ULL);
x3077 = (x3026)<(x3076);
x3078 = (x3076)-(x3075);
x3079 = (x3076)<(x3078);
x3080 = (x3077)+(x3079);
x3081 = (x3031)-((uintptr_t)4294967295ULL);
x3082 = (x3031)<(x3081);
x3083 = (x3081)-(x3080);
x3084 = (x3081)<(x3083);
x3085 = (x3082)+(x3084);
x3086 = (x3036)-((uintptr_t)4294967295ULL);
x3087 = (x3036)<(x3086);
x3088 = (x3086)-(x3085);
x3089 = (x3086)<(x3088);
x3090 = (x3087)+(x3089);
x3091 = (x3041)-((uintptr_t)4294967295ULL);
x3092 = (x3041)<(x3091);
x3093 = (x3091)-(x3090);
x3094 = (x3091)<(x3093);
x3095 = (x3092)+(x3094);
x3096 = (x3044)-(x3095);
x3097 = (x3044)<(x3096);
x3098 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3099 = (x3098)^((uintptr_t)4294967295ULL);
x3100 = ((x2989)&(x3098))|((x3045)&(x3099));
x3101 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3102 = (x3101)^((uintptr_t)4294967295ULL);
x3103 = ((x2992)&(x3101))|((x3047)&(x3102));
x3104 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3105 = (x3104)^((uintptr_t)4294967295ULL);
x3106 = ((x2996)&(x3104))|((x3049)&(x3105));
x3107 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3108 = (x3107)^((uintptr_t)4294967295ULL);
x3109 = ((x3001)&(x3107))|((x3053)&(x3108));
x3110 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3111 = (x3110)^((uintptr_t)4294967295ULL);
x3112 = ((x3006)&(x3110))|((x3058)&(x3111));
x3113 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3114 = (x3113)^((uintptr_t)4294967295ULL);
x3115 = ((x3011)&(x3113))|((x3063)&(x3114));
x3116 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3117 = (x3116)^((uintptr_t)4294967295ULL);
x3118 = ((x3016)&(x3116))|((x3068)&(x3117));
x3119 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3120 = (x3119)^((uintptr_t)4294967295ULL);
x3121 = ((x3021)&(x3119))|((x3073)&(x3120));
x3122 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3123 = (x3122)^((uintptr_t)4294967295ULL);
x3124 = ((x3026)&(x3122))|((x3078)&(x3123));
x3125 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3126 = (x3125)^((uintptr_t)4294967295ULL);
x3127 = ((x3031)&(x3125))|((x3083)&(x3126));
x3128 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3129 = (x3128)^((uintptr_t)4294967295ULL);
x3130 = ((x3036)&(x3128))|((x3088)&(x3129));
x3131 = ((uintptr_t)-1ULL)+((x3097)==((uintptr_t)0ULL));
x3132 = (x3131)^((uintptr_t)4294967295ULL);
x3133 = ((x3041)&(x3131))|((x3093)&(x3132));
x3134 = x3100;
x3135 = x3103;
x3136 = x3106;
x3137 = x3109;
x3138 = x3112;
x3139 = x3115;
x3140 = x3118;
x3141 = x3121;
x3142 = x3124;
x3143 = x3127;
x3144 = x3130;
x3145 = x3133;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x3134, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x3135, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x3136, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x3137, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x3138, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x3139, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x3140, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x3141, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x3142, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x3143, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x3144, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x3145, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_square(uint32_t out1[12], const uint32_t arg1[12]) {
internal_fiat_p384_square((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_add(uintptr_t out0, uintptr_t in0, uintptr_t in1) {
uintptr_t x12, x0, x25, x1, x13, x27, x2, x14, x29, x3, x15, x31, x4, x16, x33, x5, x17, x35, x6, x18, x37, x7, x19, x39, x8, x20, x41, x9, x21, x43, x10, x22, x45, x11, x23, x51, x53, x55, x57, x59, x61, x63, x65, x47, x67, x24, x70, x48, x71, x26, x73, x49, x74, x28, x76, x50, x77, x30, x79, x52, x80, x32, x82, x54, x83, x34, x85, x56, x86, x36, x88, x58, x89, x38, x91, x60, x92, x40, x94, x62, x95, x42, x97, x64, x98, x44, x100, x66, x101, x69, x46, x103, x68, x104, x72, x75, x78, x81, x84, x87, x90, x93, x96, x99, x102, x105, x106, x107, x108, x109, x110, x111, x112, x113, x114, x115, x116, x117;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
x12 = _br2_load((in1)+((uintptr_t)0ULL), sizeof(uintptr_t));
x13 = _br2_load((in1)+((uintptr_t)4ULL), sizeof(uintptr_t));
x14 = _br2_load((in1)+((uintptr_t)8ULL), sizeof(uintptr_t));
x15 = _br2_load((in1)+((uintptr_t)12ULL), sizeof(uintptr_t));
x16 = _br2_load((in1)+((uintptr_t)16ULL), sizeof(uintptr_t));
x17 = _br2_load((in1)+((uintptr_t)20ULL), sizeof(uintptr_t));
x18 = _br2_load((in1)+((uintptr_t)24ULL), sizeof(uintptr_t));
x19 = _br2_load((in1)+((uintptr_t)28ULL), sizeof(uintptr_t));
x20 = _br2_load((in1)+((uintptr_t)32ULL), sizeof(uintptr_t));
x21 = _br2_load((in1)+((uintptr_t)36ULL), sizeof(uintptr_t));
x22 = _br2_load((in1)+((uintptr_t)40ULL), sizeof(uintptr_t));
x23 = _br2_load((in1)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x24 = (x0)+(x12);
x25 = ((x24)<(x0))+(x1);
x26 = (x25)+(x13);
x27 = (((x25)<(x1))+((x26)<(x13)))+(x2);
x28 = (x27)+(x14);
x29 = (((x27)<(x2))+((x28)<(x14)))+(x3);
x30 = (x29)+(x15);
x31 = (((x29)<(x3))+((x30)<(x15)))+(x4);
x32 = (x31)+(x16);
x33 = (((x31)<(x4))+((x32)<(x16)))+(x5);
x34 = (x33)+(x17);
x35 = (((x33)<(x5))+((x34)<(x17)))+(x6);
x36 = (x35)+(x18);
x37 = (((x35)<(x6))+((x36)<(x18)))+(x7);
x38 = (x37)+(x19);
x39 = (((x37)<(x7))+((x38)<(x19)))+(x8);
x40 = (x39)+(x20);
x41 = (((x39)<(x8))+((x40)<(x20)))+(x9);
x42 = (x41)+(x21);
x43 = (((x41)<(x9))+((x42)<(x21)))+(x10);
x44 = (x43)+(x22);
x45 = (((x43)<(x10))+((x44)<(x22)))+(x11);
x46 = (x45)+(x23);
x47 = ((x45)<(x11))+((x46)<(x23));
x48 = (x24)-((uintptr_t)4294967295ULL);
x49 = (x26)-((x24)<(x48));
x50 = (x28)-((x26)<(x49));
x51 = (x30)-((uintptr_t)4294967295ULL);
x52 = (x51)-((x28)<(x50));
x53 = (x32)-((uintptr_t)4294967294ULL);
x54 = (x53)-(((x30)<(x51))+((x51)<(x52)));
x55 = (x34)-((uintptr_t)4294967295ULL);
x56 = (x55)-(((x32)<(x53))+((x53)<(x54)));
x57 = (x36)-((uintptr_t)4294967295ULL);
x58 = (x57)-(((x34)<(x55))+((x55)<(x56)));
x59 = (x38)-((uintptr_t)4294967295ULL);
x60 = (x59)-(((x36)<(x57))+((x57)<(x58)));
x61 = (x40)-((uintptr_t)4294967295ULL);
x62 = (x61)-(((x38)<(x59))+((x59)<(x60)));
x63 = (x42)-((uintptr_t)4294967295ULL);
x64 = (x63)-(((x40)<(x61))+((x61)<(x62)));
x65 = (x44)-((uintptr_t)4294967295ULL);
x66 = (x65)-(((x42)<(x63))+((x63)<(x64)));
x67 = (x46)-((uintptr_t)4294967295ULL);
x68 = (x67)-(((x44)<(x65))+((x65)<(x66)));
x69 = (x47)<((x47)-(((x46)<(x67))+((x67)<(x68))));
x70 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x71 = (x70)^((uintptr_t)4294967295ULL);
x72 = ((x24)&(x70))|((x48)&(x71));
x73 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x74 = (x73)^((uintptr_t)4294967295ULL);
x75 = ((x26)&(x73))|((x49)&(x74));
x76 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x77 = (x76)^((uintptr_t)4294967295ULL);
x78 = ((x28)&(x76))|((x50)&(x77));
x79 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x80 = (x79)^((uintptr_t)4294967295ULL);
x81 = ((x30)&(x79))|((x52)&(x80));
x82 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x83 = (x82)^((uintptr_t)4294967295ULL);
x84 = ((x32)&(x82))|((x54)&(x83));
x85 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x86 = (x85)^((uintptr_t)4294967295ULL);
x87 = ((x34)&(x85))|((x56)&(x86));
x88 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x89 = (x88)^((uintptr_t)4294967295ULL);
x90 = ((x36)&(x88))|((x58)&(x89));
x91 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x92 = (x91)^((uintptr_t)4294967295ULL);
x93 = ((x38)&(x91))|((x60)&(x92));
x94 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x95 = (x94)^((uintptr_t)4294967295ULL);
x96 = ((x40)&(x94))|((x62)&(x95));
x97 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x98 = (x97)^((uintptr_t)4294967295ULL);
x99 = ((x42)&(x97))|((x64)&(x98));
x100 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x101 = (x100)^((uintptr_t)4294967295ULL);
x102 = ((x44)&(x100))|((x66)&(x101));
x103 = ((uintptr_t)-1ULL)+((x69)==((uintptr_t)0ULL));
x104 = (x103)^((uintptr_t)4294967295ULL);
x105 = ((x46)&(x103))|((x68)&(x104));
x106 = x72;
x107 = x75;
x108 = x78;
x109 = x81;
x110 = x84;
x111 = x87;
x112 = x90;
x113 = x93;
x114 = x96;
x115 = x99;
x116 = x102;
x117 = x105;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x106, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x107, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x108, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x109, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x110, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x111, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x112, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x113, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x114, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x115, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x116, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x117, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_add(uint32_t out1[12], const uint32_t arg1[12], const uint32_t arg2[12]) {
internal_fiat_p384_add((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_sub(uintptr_t out0, uintptr_t in0, uintptr_t in1) {
uintptr_t x12, x13, x0, x14, x1, x25, x15, x2, x27, x16, x3, x29, x17, x4, x31, x18, x5, x33, x19, x6, x35, x20, x7, x37, x21, x8, x39, x22, x9, x41, x23, x10, x43, x11, x45, x24, x26, x28, x51, x30, x53, x32, x55, x34, x57, x36, x59, x38, x61, x40, x63, x42, x65, x44, x46, x47, x48, x49, x50, x52, x54, x56, x58, x60, x62, x64, x66, x67, x68, x69, x70, x71, x72, x73, x74, x75, x76, x77, x78, x79;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
x12 = _br2_load((in1)+((uintptr_t)0ULL), sizeof(uintptr_t));
x13 = _br2_load((in1)+((uintptr_t)4ULL), sizeof(uintptr_t));
x14 = _br2_load((in1)+((uintptr_t)8ULL), sizeof(uintptr_t));
x15 = _br2_load((in1)+((uintptr_t)12ULL), sizeof(uintptr_t));
x16 = _br2_load((in1)+((uintptr_t)16ULL), sizeof(uintptr_t));
x17 = _br2_load((in1)+((uintptr_t)20ULL), sizeof(uintptr_t));
x18 = _br2_load((in1)+((uintptr_t)24ULL), sizeof(uintptr_t));
x19 = _br2_load((in1)+((uintptr_t)28ULL), sizeof(uintptr_t));
x20 = _br2_load((in1)+((uintptr_t)32ULL), sizeof(uintptr_t));
x21 = _br2_load((in1)+((uintptr_t)36ULL), sizeof(uintptr_t));
x22 = _br2_load((in1)+((uintptr_t)40ULL), sizeof(uintptr_t));
x23 = _br2_load((in1)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x24 = (x0)-(x12);
x25 = (x1)-(x13);
x26 = (x25)-((x0)<(x24));
x27 = (x2)-(x14);
x28 = (x27)-(((x1)<(x25))+((x25)<(x26)));
x29 = (x3)-(x15);
x30 = (x29)-(((x2)<(x27))+((x27)<(x28)));
x31 = (x4)-(x16);
x32 = (x31)-(((x3)<(x29))+((x29)<(x30)));
x33 = (x5)-(x17);
x34 = (x33)-(((x4)<(x31))+((x31)<(x32)));
x35 = (x6)-(x18);
x36 = (x35)-(((x5)<(x33))+((x33)<(x34)));
x37 = (x7)-(x19);
x38 = (x37)-(((x6)<(x35))+((x35)<(x36)));
x39 = (x8)-(x20);
x40 = (x39)-(((x7)<(x37))+((x37)<(x38)));
x41 = (x9)-(x21);
x42 = (x41)-(((x8)<(x39))+((x39)<(x40)));
x43 = (x10)-(x22);
x44 = (x43)-(((x9)<(x41))+((x41)<(x42)));
x45 = (x11)-(x23);
x46 = (x45)-(((x10)<(x43))+((x43)<(x44)));
x47 = ((uintptr_t)-1ULL)+((((x11)<(x45))+((x45)<(x46)))==((uintptr_t)0ULL));
x48 = (x24)+(x47);
x49 = ((x48)<(x24))+(x26);
x50 = ((x49)<(x26))+(x28);
x51 = ((x50)<(x28))+(x30);
x52 = (x51)+(x47);
x53 = (((x51)<(x30))+((x52)<(x47)))+(x32);
x54 = (x53)+((x47)&((uintptr_t)4294967294ULL));
x55 = (((x53)<(x32))+((x54)<((x47)&((uintptr_t)4294967294ULL))))+(x34);
x56 = (x55)+(x47);
x57 = (((x55)<(x34))+((x56)<(x47)))+(x36);
x58 = (x57)+(x47);
x59 = (((x57)<(x36))+((x58)<(x47)))+(x38);
x60 = (x59)+(x47);
x61 = (((x59)<(x38))+((x60)<(x47)))+(x40);
x62 = (x61)+(x47);
x63 = (((x61)<(x40))+((x62)<(x47)))+(x42);
x64 = (x63)+(x47);
x65 = (((x63)<(x42))+((x64)<(x47)))+(x44);
x66 = (x65)+(x47);
x67 = ((((x65)<(x44))+((x66)<(x47)))+(x46))+(x47);
x68 = x48;
x69 = x49;
x70 = x50;
x71 = x52;
x72 = x54;
x73 = x56;
x74 = x58;
x75 = x60;
x76 = x62;
x77 = x64;
x78 = x66;
x79 = x67;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x68, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x69, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x70, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x71, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x72, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x73, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x74, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x75, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x76, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x77, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x78, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x79, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_sub(uint32_t out1[12], const uint32_t arg1[12], const uint32_t arg2[12]) {
internal_fiat_p384_sub((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_opp(uintptr_t out0, uintptr_t in0) {
uintptr_t x0, x1, x2, x13, x3, x15, x4, x17, x5, x19, x6, x21, x7, x23, x8, x25, x9, x27, x10, x29, x11, x31, x33, x12, x14, x16, x39, x18, x41, x20, x43, x22, x45, x24, x47, x26, x49, x28, x51, x30, x53, x32, x34, x35, x36, x37, x38, x40, x42, x44, x46, x48, x50, x52, x54, x55, x56, x57, x58, x59, x60, x61, x62, x63, x64, x65, x66, x67;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = ((uintptr_t)0ULL)-(x0);
x13 = ((uintptr_t)0ULL)-(x1);
x14 = (x13)-(((uintptr_t)0ULL)<(x12));
x15 = ((uintptr_t)0ULL)-(x2);
x16 = (x15)-((((uintptr_t)0ULL)<(x13))+((x13)<(x14)));
x17 = ((uintptr_t)0ULL)-(x3);
x18 = (x17)-((((uintptr_t)0ULL)<(x15))+((x15)<(x16)));
x19 = ((uintptr_t)0ULL)-(x4);
x20 = (x19)-((((uintptr_t)0ULL)<(x17))+((x17)<(x18)));
x21 = ((uintptr_t)0ULL)-(x5);
x22 = (x21)-((((uintptr_t)0ULL)<(x19))+((x19)<(x20)));
x23 = ((uintptr_t)0ULL)-(x6);
x24 = (x23)-((((uintptr_t)0ULL)<(x21))+((x21)<(x22)));
x25 = ((uintptr_t)0ULL)-(x7);
x26 = (x25)-((((uintptr_t)0ULL)<(x23))+((x23)<(x24)));
x27 = ((uintptr_t)0ULL)-(x8);
x28 = (x27)-((((uintptr_t)0ULL)<(x25))+((x25)<(x26)));
x29 = ((uintptr_t)0ULL)-(x9);
x30 = (x29)-((((uintptr_t)0ULL)<(x27))+((x27)<(x28)));
x31 = ((uintptr_t)0ULL)-(x10);
x32 = (x31)-((((uintptr_t)0ULL)<(x29))+((x29)<(x30)));
x33 = ((uintptr_t)0ULL)-(x11);
x34 = (x33)-((((uintptr_t)0ULL)<(x31))+((x31)<(x32)));
x35 = ((uintptr_t)-1ULL)+(((((uintptr_t)0ULL)<(x33))+((x33)<(x34)))==((uintptr_t)0ULL));
x36 = (x12)+(x35);
x37 = ((x36)<(x12))+(x14);
x38 = ((x37)<(x14))+(x16);
x39 = ((x38)<(x16))+(x18);
x40 = (x39)+(x35);
x41 = (((x39)<(x18))+((x40)<(x35)))+(x20);
x42 = (x41)+((x35)&((uintptr_t)4294967294ULL));
x43 = (((x41)<(x20))+((x42)<((x35)&((uintptr_t)4294967294ULL))))+(x22);
x44 = (x43)+(x35);
x45 = (((x43)<(x22))+((x44)<(x35)))+(x24);
x46 = (x45)+(x35);
x47 = (((x45)<(x24))+((x46)<(x35)))+(x26);
x48 = (x47)+(x35);
x49 = (((x47)<(x26))+((x48)<(x35)))+(x28);
x50 = (x49)+(x35);
x51 = (((x49)<(x28))+((x50)<(x35)))+(x30);
x52 = (x51)+(x35);
x53 = (((x51)<(x30))+((x52)<(x35)))+(x32);
x54 = (x53)+(x35);
x55 = ((((x53)<(x32))+((x54)<(x35)))+(x34))+(x35);
x56 = x36;
x57 = x37;
x58 = x38;
x59 = x40;
x60 = x42;
x61 = x44;
x62 = x46;
x63 = x48;
x64 = x50;
x65 = x52;
x66 = x54;
x67 = x55;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x56, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x57, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x58, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x59, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x60, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x61, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x62, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x63, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x64, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x65, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x66, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x67, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_opp(uint32_t out1[12], const uint32_t arg1[12]) {
internal_fiat_p384_opp((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_from_montgomery(uintptr_t out0, uintptr_t in0) {
uintptr_t x0, x29, x32, x27, x25, x34, x26, x23, x36, x24, x21, x38, x22, x19, x40, x20, x17, x42, x18, x15, x44, x16, x13, x12, x1, x47, x30, x66, x69, x64, x62, x71, x63, x60, x73, x61, x58, x75, x59, x56, x77, x57, x54, x79, x55, x52, x81, x53, x50, x48, x84, x49, x67, x28, x87, x31, x65, x89, x33, x68, x91, x35, x70, x93, x37, x72, x95, x39, x74, x97, x41, x76, x99, x43, x78, x101, x45, x80, x103, x46, x14, x82, x83, x51, x2, x85, x86, x88, x90, x92, x94, x96, x98, x100, x102, x104, x105, x136, x139, x134, x132, x141, x133, x130, x143, x131, x128, x145, x129, x126, x147, x127, x124, x149, x125, x122, x151, x123, x120, x107, x154, x108, x137, x109, x157, x110, x135, x159, x111, x138, x161, x112, x140, x163, x113, x142, x165, x114, x144, x167, x115, x146, x169, x116, x148, x171, x117, x150, x173, x118, x152, x175, x119, x106, x153, x121, x3, x155, x156, x158, x160, x162, x164, x166, x168, x170, x172, x174, x176, x207, x210, x205, x203, x212, x204, x201, x214, x202, x199, x216, x200, x197, x218, x198, x195, x220, x196, x193, x222, x194, x191, x178, x225, x179, x208, x180, x228, x181, x206, x230, x182, x209, x232, x183, x211, x234, x184, x213, x236, x185, x215, x238, x186, x217, x240, x187, x219, x242, x188, x221, x244, x189, x223, x246, x190, x177, x224, x192, x4, x226, x227, x229, x231, x233, x235, x237, x239, x241, x243, x245, x247, x278, x281, x276, x274, x283, x275, x272, x285, x273, x270, x287, x271, x268, x289, x269, x266, x291, x267, x264, x293, x265, x262, x249, x296, x250, x279, x251, x299, x252, x277, x301, x253, x280, x303, x254, x282, x305, x255, x284, x307, x256, x286, x309, x257, x288, x311, x258, x290, x313, x259, x292, x315, x260, x294, x317, x261, x248, x295, x263, x5, x297, x298, x300, x302, x304, x306, x308, x310, x312, x314, x316, x318, x349, x352, x347, x345, x354, x346, x343, x356, x344, x341, x358, x342, x339, x360, x340, x337, x362, x338, x335, x364, x336, x333, x320, x367, x321, x350, x322, x370, x323, x348, x372, x324, x351, x374, x325, x353, x376, x326, x355, x378, x327, x357, x380, x328, x359, x382, x329, x361, x384, x330, x363, x386, x331, x365, x388, x332, x319, x366, x334, x6, x368, x369, x371, x373, x375, x377, x379, x381, x383, x385, x387, x389, x420, x423, x418, x416, x425, x417, x414, x427, x415, x412, x429, x413, x410, x431, x411, x408, x433, x409, x406, x435, x407, x404, x391, x438, x392, x421, x393, x441, x394, x419, x443, x395, x422, x445, x396, x424, x447, x397, x426, x449, x398, x428, x451, x399, x430, x453, x400, x432, x455, x401, x434, x457, x402, x436, x459, x403, x390, x437, x405, x7, x439, x440, x442, x444, x446, x448, x450, x452, x454, x456, x458, x460, x491, x494, x489, x487, x496, x488, x485, x498, x486, x483, x500, x484, x481, x502, x482, x479, x504, x480, x477, x506, x478, x475, x462, x509, x463, x492, x464, x512, x465, x490, x514, x466, x493, x516, x467, x495, x518, x468, x497, x520, x469, x499, x522, x470, x501, x524, x471, x503, x526, x472, x505, x528, x473, x507, x530, x474, x461, x508, x476, x8, x510, x511, x513, x515, x517, x519, x521, x523, x525, x527, x529, x531, x562, x565, x560, x558, x567, x559, x556, x569, x557, x554, x571, x555, x552, x573, x553, x550, x575, x551, x548, x577, x549, x546, x533, x580, x534, x563, x535, x583, x536, x561, x585, x537, x564, x587, x538, x566, x589, x539, x568, x591, x540, x570, x593, x541, x572, x595, x542, x574, x597, x543, x576, x599, x544, x578, x601, x545, x532, x579, x547, x9, x581, x582, x584, x586, x588, x590, x592, x594, x596, x598, x600, x602, x633, x636, x631, x629, x638, x630, x627, x640, x628, x625, x642, x626, x623, x644, x624, x621, x646, x622, x619, x648, x620, x617, x604, x651, x605, x634, x606, x654, x607, x632, x656, x608, x635, x658, x609, x637, x660, x610, x639, x662, x611, x641, x664, x612, x643, x666, x613, x645, x668, x614, x647, x670, x615, x649, x672, x616, x603, x650, x618, x10, x652, x653, x655, x657, x659, x661, x663, x665, x667, x669, x671, x673, x704, x707, x702, x700, x709, x701, x698, x711, x699, x696, x713, x697, x694, x715, x695, x692, x717, x693, x690, x719, x691, x688, x675, x722, x676, x705, x677, x725, x678, x703, x727, x679, x706, x729, x680, x708, x731, x681, x710, x733, x682, x712, x735, x683, x714, x737, x684, x716, x739, x685, x718, x741, x686, x720, x743, x687, x674, x721, x689, x11, x723, x724, x726, x728, x730, x732, x734, x736, x738, x740, x742, x744, x775, x778, x773, x771, x780, x772, x769, x782, x770, x767, x784, x768, x765, x786, x766, x763, x788, x764, x761, x790, x762, x759, x746, x793, x747, x776, x748, x796, x749, x774, x798, x750, x777, x800, x751, x779, x802, x752, x781, x804, x753, x783, x806, x754, x785, x808, x755, x787, x810, x756, x789, x812, x757, x791, x814, x758, x745, x792, x760, x820, x822, x824, x826, x828, x830, x832, x834, x816, x836, x794, x839, x817, x840, x795, x842, x818, x843, x797, x845, x819, x846, x799, x848, x821, x849, x801, x851, x823, x852, x803, x854, x825, x855, x805, x857, x827, x858, x807, x860, x829, x861, x809, x863, x831, x864, x811, x866, x833, x867, x813, x869, x835, x870, x838, x815, x872, x837, x873, x841, x844, x847, x850, x853, x856, x859, x862, x865, x868, x871, x874, x875, x876, x877, x878, x879, x880, x881, x882, x883, x884, x885, x886;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = x0;
x13 = (x12)*((uintptr_t)4294967295ULL);
x14 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x15 = (x12)*((uintptr_t)4294967295ULL);
x16 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x17 = (x12)*((uintptr_t)4294967295ULL);
x18 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x19 = (x12)*((uintptr_t)4294967295ULL);
x20 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x21 = (x12)*((uintptr_t)4294967295ULL);
x22 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x23 = (x12)*((uintptr_t)4294967295ULL);
x24 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x25 = (x12)*((uintptr_t)4294967295ULL);
x26 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x27 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967294ULL))>>64;
x28 = (x12)*((uintptr_t)4294967295ULL);
x29 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x30 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967295ULL))>>64;
x31 = (x29)+((x12)*((uintptr_t)4294967294ULL));
x32 = ((x31)<(x29))+(x27);
x33 = (x32)+(x25);
x34 = (((x32)<(x27))+((x33)<(x25)))+(x26);
x35 = (x34)+(x23);
x36 = (((x34)<(x26))+((x35)<(x23)))+(x24);
x37 = (x36)+(x21);
x38 = (((x36)<(x24))+((x37)<(x21)))+(x22);
x39 = (x38)+(x19);
x40 = (((x38)<(x22))+((x39)<(x19)))+(x20);
x41 = (x40)+(x17);
x42 = (((x40)<(x20))+((x41)<(x17)))+(x18);
x43 = (x42)+(x15);
x44 = (((x42)<(x18))+((x43)<(x15)))+(x16);
x45 = (x44)+(x13);
x46 = ((x44)<(x16))+((x45)<(x13));
x47 = ((x12)+((x12)*((uintptr_t)4294967295ULL)))<(x12);
x48 = ((x47)+(x30))+(x1);
x49 = (x48)<((x47)+(x30));
x50 = (x48)*((uintptr_t)4294967295ULL);
x51 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x52 = (x48)*((uintptr_t)4294967295ULL);
x53 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x54 = (x48)*((uintptr_t)4294967295ULL);
x55 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x56 = (x48)*((uintptr_t)4294967295ULL);
x57 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x58 = (x48)*((uintptr_t)4294967295ULL);
x59 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x60 = (x48)*((uintptr_t)4294967295ULL);
x61 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x62 = (x48)*((uintptr_t)4294967295ULL);
x63 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x64 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967294ULL))>>64;
x65 = (x48)*((uintptr_t)4294967295ULL);
x66 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x67 = sizeof(intptr_t) == 4 ? ((uint64_t)(x48)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x48)*((uintptr_t)4294967295ULL))>>64;
x68 = (x66)+((x48)*((uintptr_t)4294967294ULL));
x69 = ((x68)<(x66))+(x64);
x70 = (x69)+(x62);
x71 = (((x69)<(x64))+((x70)<(x62)))+(x63);
x72 = (x71)+(x60);
x73 = (((x71)<(x63))+((x72)<(x60)))+(x61);
x74 = (x73)+(x58);
x75 = (((x73)<(x61))+((x74)<(x58)))+(x59);
x76 = (x75)+(x56);
x77 = (((x75)<(x59))+((x76)<(x56)))+(x57);
x78 = (x77)+(x54);
x79 = (((x77)<(x57))+((x78)<(x54)))+(x55);
x80 = (x79)+(x52);
x81 = (((x79)<(x55))+((x80)<(x52)))+(x53);
x82 = (x81)+(x50);
x83 = ((x81)<(x53))+((x82)<(x50));
x84 = (((x48)+((x48)*((uintptr_t)4294967295ULL)))<(x48))+(x49);
x85 = (x84)+(x67);
x86 = (((x84)<(x49))+((x85)<(x67)))+(x28);
x87 = ((x86)<(x28))+(x31);
x88 = (x87)+(x65);
x89 = (((x87)<(x31))+((x88)<(x65)))+(x33);
x90 = (x89)+(x68);
x91 = (((x89)<(x33))+((x90)<(x68)))+(x35);
x92 = (x91)+(x70);
x93 = (((x91)<(x35))+((x92)<(x70)))+(x37);
x94 = (x93)+(x72);
x95 = (((x93)<(x37))+((x94)<(x72)))+(x39);
x96 = (x95)+(x74);
x97 = (((x95)<(x39))+((x96)<(x74)))+(x41);
x98 = (x97)+(x76);
x99 = (((x97)<(x41))+((x98)<(x76)))+(x43);
x100 = (x99)+(x78);
x101 = (((x99)<(x43))+((x100)<(x78)))+(x45);
x102 = (x101)+(x80);
x103 = (((x101)<(x45))+((x102)<(x80)))+((x46)+(x14));
x104 = (x103)+(x82);
x105 = (((x103)<((x46)+(x14)))+((x104)<(x82)))+((x83)+(x51));
x106 = (x105)<((x83)+(x51));
x107 = (x85)+(x2);
x108 = ((x107)<(x85))+(x86);
x109 = ((x108)<(x86))+(x88);
x110 = ((x109)<(x88))+(x90);
x111 = ((x110)<(x90))+(x92);
x112 = ((x111)<(x92))+(x94);
x113 = ((x112)<(x94))+(x96);
x114 = ((x113)<(x96))+(x98);
x115 = ((x114)<(x98))+(x100);
x116 = ((x115)<(x100))+(x102);
x117 = ((x116)<(x102))+(x104);
x118 = ((x117)<(x104))+(x105);
x119 = (x118)<(x105);
x120 = (x107)*((uintptr_t)4294967295ULL);
x121 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x122 = (x107)*((uintptr_t)4294967295ULL);
x123 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x124 = (x107)*((uintptr_t)4294967295ULL);
x125 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x126 = (x107)*((uintptr_t)4294967295ULL);
x127 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x128 = (x107)*((uintptr_t)4294967295ULL);
x129 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x130 = (x107)*((uintptr_t)4294967295ULL);
x131 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x132 = (x107)*((uintptr_t)4294967295ULL);
x133 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x134 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967294ULL))>>64;
x135 = (x107)*((uintptr_t)4294967295ULL);
x136 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x137 = sizeof(intptr_t) == 4 ? ((uint64_t)(x107)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x107)*((uintptr_t)4294967295ULL))>>64;
x138 = (x136)+((x107)*((uintptr_t)4294967294ULL));
x139 = ((x138)<(x136))+(x134);
x140 = (x139)+(x132);
x141 = (((x139)<(x134))+((x140)<(x132)))+(x133);
x142 = (x141)+(x130);
x143 = (((x141)<(x133))+((x142)<(x130)))+(x131);
x144 = (x143)+(x128);
x145 = (((x143)<(x131))+((x144)<(x128)))+(x129);
x146 = (x145)+(x126);
x147 = (((x145)<(x129))+((x146)<(x126)))+(x127);
x148 = (x147)+(x124);
x149 = (((x147)<(x127))+((x148)<(x124)))+(x125);
x150 = (x149)+(x122);
x151 = (((x149)<(x125))+((x150)<(x122)))+(x123);
x152 = (x151)+(x120);
x153 = ((x151)<(x123))+((x152)<(x120));
x154 = (((x107)+((x107)*((uintptr_t)4294967295ULL)))<(x107))+(x108);
x155 = (x154)+(x137);
x156 = (((x154)<(x108))+((x155)<(x137)))+(x109);
x157 = ((x156)<(x109))+(x110);
x158 = (x157)+(x135);
x159 = (((x157)<(x110))+((x158)<(x135)))+(x111);
x160 = (x159)+(x138);
x161 = (((x159)<(x111))+((x160)<(x138)))+(x112);
x162 = (x161)+(x140);
x163 = (((x161)<(x112))+((x162)<(x140)))+(x113);
x164 = (x163)+(x142);
x165 = (((x163)<(x113))+((x164)<(x142)))+(x114);
x166 = (x165)+(x144);
x167 = (((x165)<(x114))+((x166)<(x144)))+(x115);
x168 = (x167)+(x146);
x169 = (((x167)<(x115))+((x168)<(x146)))+(x116);
x170 = (x169)+(x148);
x171 = (((x169)<(x116))+((x170)<(x148)))+(x117);
x172 = (x171)+(x150);
x173 = (((x171)<(x117))+((x172)<(x150)))+(x118);
x174 = (x173)+(x152);
x175 = (((x173)<(x118))+((x174)<(x152)))+((x119)+(x106));
x176 = (x175)+((x153)+(x121));
x177 = ((x175)<((x119)+(x106)))+((x176)<((x153)+(x121)));
x178 = (x155)+(x3);
x179 = ((x178)<(x155))+(x156);
x180 = ((x179)<(x156))+(x158);
x181 = ((x180)<(x158))+(x160);
x182 = ((x181)<(x160))+(x162);
x183 = ((x182)<(x162))+(x164);
x184 = ((x183)<(x164))+(x166);
x185 = ((x184)<(x166))+(x168);
x186 = ((x185)<(x168))+(x170);
x187 = ((x186)<(x170))+(x172);
x188 = ((x187)<(x172))+(x174);
x189 = ((x188)<(x174))+(x176);
x190 = (x189)<(x176);
x191 = (x178)*((uintptr_t)4294967295ULL);
x192 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x193 = (x178)*((uintptr_t)4294967295ULL);
x194 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x195 = (x178)*((uintptr_t)4294967295ULL);
x196 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x197 = (x178)*((uintptr_t)4294967295ULL);
x198 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x199 = (x178)*((uintptr_t)4294967295ULL);
x200 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x201 = (x178)*((uintptr_t)4294967295ULL);
x202 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x203 = (x178)*((uintptr_t)4294967295ULL);
x204 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x205 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967294ULL))>>64;
x206 = (x178)*((uintptr_t)4294967295ULL);
x207 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x208 = sizeof(intptr_t) == 4 ? ((uint64_t)(x178)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x178)*((uintptr_t)4294967295ULL))>>64;
x209 = (x207)+((x178)*((uintptr_t)4294967294ULL));
x210 = ((x209)<(x207))+(x205);
x211 = (x210)+(x203);
x212 = (((x210)<(x205))+((x211)<(x203)))+(x204);
x213 = (x212)+(x201);
x214 = (((x212)<(x204))+((x213)<(x201)))+(x202);
x215 = (x214)+(x199);
x216 = (((x214)<(x202))+((x215)<(x199)))+(x200);
x217 = (x216)+(x197);
x218 = (((x216)<(x200))+((x217)<(x197)))+(x198);
x219 = (x218)+(x195);
x220 = (((x218)<(x198))+((x219)<(x195)))+(x196);
x221 = (x220)+(x193);
x222 = (((x220)<(x196))+((x221)<(x193)))+(x194);
x223 = (x222)+(x191);
x224 = ((x222)<(x194))+((x223)<(x191));
x225 = (((x178)+((x178)*((uintptr_t)4294967295ULL)))<(x178))+(x179);
x226 = (x225)+(x208);
x227 = (((x225)<(x179))+((x226)<(x208)))+(x180);
x228 = ((x227)<(x180))+(x181);
x229 = (x228)+(x206);
x230 = (((x228)<(x181))+((x229)<(x206)))+(x182);
x231 = (x230)+(x209);
x232 = (((x230)<(x182))+((x231)<(x209)))+(x183);
x233 = (x232)+(x211);
x234 = (((x232)<(x183))+((x233)<(x211)))+(x184);
x235 = (x234)+(x213);
x236 = (((x234)<(x184))+((x235)<(x213)))+(x185);
x237 = (x236)+(x215);
x238 = (((x236)<(x185))+((x237)<(x215)))+(x186);
x239 = (x238)+(x217);
x240 = (((x238)<(x186))+((x239)<(x217)))+(x187);
x241 = (x240)+(x219);
x242 = (((x240)<(x187))+((x241)<(x219)))+(x188);
x243 = (x242)+(x221);
x244 = (((x242)<(x188))+((x243)<(x221)))+(x189);
x245 = (x244)+(x223);
x246 = (((x244)<(x189))+((x245)<(x223)))+((x190)+(x177));
x247 = (x246)+((x224)+(x192));
x248 = ((x246)<((x190)+(x177)))+((x247)<((x224)+(x192)));
x249 = (x226)+(x4);
x250 = ((x249)<(x226))+(x227);
x251 = ((x250)<(x227))+(x229);
x252 = ((x251)<(x229))+(x231);
x253 = ((x252)<(x231))+(x233);
x254 = ((x253)<(x233))+(x235);
x255 = ((x254)<(x235))+(x237);
x256 = ((x255)<(x237))+(x239);
x257 = ((x256)<(x239))+(x241);
x258 = ((x257)<(x241))+(x243);
x259 = ((x258)<(x243))+(x245);
x260 = ((x259)<(x245))+(x247);
x261 = (x260)<(x247);
x262 = (x249)*((uintptr_t)4294967295ULL);
x263 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x264 = (x249)*((uintptr_t)4294967295ULL);
x265 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x266 = (x249)*((uintptr_t)4294967295ULL);
x267 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x268 = (x249)*((uintptr_t)4294967295ULL);
x269 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x270 = (x249)*((uintptr_t)4294967295ULL);
x271 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x272 = (x249)*((uintptr_t)4294967295ULL);
x273 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x274 = (x249)*((uintptr_t)4294967295ULL);
x275 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x276 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967294ULL))>>64;
x277 = (x249)*((uintptr_t)4294967295ULL);
x278 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x279 = sizeof(intptr_t) == 4 ? ((uint64_t)(x249)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x249)*((uintptr_t)4294967295ULL))>>64;
x280 = (x278)+((x249)*((uintptr_t)4294967294ULL));
x281 = ((x280)<(x278))+(x276);
x282 = (x281)+(x274);
x283 = (((x281)<(x276))+((x282)<(x274)))+(x275);
x284 = (x283)+(x272);
x285 = (((x283)<(x275))+((x284)<(x272)))+(x273);
x286 = (x285)+(x270);
x287 = (((x285)<(x273))+((x286)<(x270)))+(x271);
x288 = (x287)+(x268);
x289 = (((x287)<(x271))+((x288)<(x268)))+(x269);
x290 = (x289)+(x266);
x291 = (((x289)<(x269))+((x290)<(x266)))+(x267);
x292 = (x291)+(x264);
x293 = (((x291)<(x267))+((x292)<(x264)))+(x265);
x294 = (x293)+(x262);
x295 = ((x293)<(x265))+((x294)<(x262));
x296 = (((x249)+((x249)*((uintptr_t)4294967295ULL)))<(x249))+(x250);
x297 = (x296)+(x279);
x298 = (((x296)<(x250))+((x297)<(x279)))+(x251);
x299 = ((x298)<(x251))+(x252);
x300 = (x299)+(x277);
x301 = (((x299)<(x252))+((x300)<(x277)))+(x253);
x302 = (x301)+(x280);
x303 = (((x301)<(x253))+((x302)<(x280)))+(x254);
x304 = (x303)+(x282);
x305 = (((x303)<(x254))+((x304)<(x282)))+(x255);
x306 = (x305)+(x284);
x307 = (((x305)<(x255))+((x306)<(x284)))+(x256);
x308 = (x307)+(x286);
x309 = (((x307)<(x256))+((x308)<(x286)))+(x257);
x310 = (x309)+(x288);
x311 = (((x309)<(x257))+((x310)<(x288)))+(x258);
x312 = (x311)+(x290);
x313 = (((x311)<(x258))+((x312)<(x290)))+(x259);
x314 = (x313)+(x292);
x315 = (((x313)<(x259))+((x314)<(x292)))+(x260);
x316 = (x315)+(x294);
x317 = (((x315)<(x260))+((x316)<(x294)))+((x261)+(x248));
x318 = (x317)+((x295)+(x263));
x319 = ((x317)<((x261)+(x248)))+((x318)<((x295)+(x263)));
x320 = (x297)+(x5);
x321 = ((x320)<(x297))+(x298);
x322 = ((x321)<(x298))+(x300);
x323 = ((x322)<(x300))+(x302);
x324 = ((x323)<(x302))+(x304);
x325 = ((x324)<(x304))+(x306);
x326 = ((x325)<(x306))+(x308);
x327 = ((x326)<(x308))+(x310);
x328 = ((x327)<(x310))+(x312);
x329 = ((x328)<(x312))+(x314);
x330 = ((x329)<(x314))+(x316);
x331 = ((x330)<(x316))+(x318);
x332 = (x331)<(x318);
x333 = (x320)*((uintptr_t)4294967295ULL);
x334 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x335 = (x320)*((uintptr_t)4294967295ULL);
x336 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x337 = (x320)*((uintptr_t)4294967295ULL);
x338 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x339 = (x320)*((uintptr_t)4294967295ULL);
x340 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x341 = (x320)*((uintptr_t)4294967295ULL);
x342 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x343 = (x320)*((uintptr_t)4294967295ULL);
x344 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x345 = (x320)*((uintptr_t)4294967295ULL);
x346 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x347 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967294ULL))>>64;
x348 = (x320)*((uintptr_t)4294967295ULL);
x349 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x350 = sizeof(intptr_t) == 4 ? ((uint64_t)(x320)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x320)*((uintptr_t)4294967295ULL))>>64;
x351 = (x349)+((x320)*((uintptr_t)4294967294ULL));
x352 = ((x351)<(x349))+(x347);
x353 = (x352)+(x345);
x354 = (((x352)<(x347))+((x353)<(x345)))+(x346);
x355 = (x354)+(x343);
x356 = (((x354)<(x346))+((x355)<(x343)))+(x344);
x357 = (x356)+(x341);
x358 = (((x356)<(x344))+((x357)<(x341)))+(x342);
x359 = (x358)+(x339);
x360 = (((x358)<(x342))+((x359)<(x339)))+(x340);
x361 = (x360)+(x337);
x362 = (((x360)<(x340))+((x361)<(x337)))+(x338);
x363 = (x362)+(x335);
x364 = (((x362)<(x338))+((x363)<(x335)))+(x336);
x365 = (x364)+(x333);
x366 = ((x364)<(x336))+((x365)<(x333));
x367 = (((x320)+((x320)*((uintptr_t)4294967295ULL)))<(x320))+(x321);
x368 = (x367)+(x350);
x369 = (((x367)<(x321))+((x368)<(x350)))+(x322);
x370 = ((x369)<(x322))+(x323);
x371 = (x370)+(x348);
x372 = (((x370)<(x323))+((x371)<(x348)))+(x324);
x373 = (x372)+(x351);
x374 = (((x372)<(x324))+((x373)<(x351)))+(x325);
x375 = (x374)+(x353);
x376 = (((x374)<(x325))+((x375)<(x353)))+(x326);
x377 = (x376)+(x355);
x378 = (((x376)<(x326))+((x377)<(x355)))+(x327);
x379 = (x378)+(x357);
x380 = (((x378)<(x327))+((x379)<(x357)))+(x328);
x381 = (x380)+(x359);
x382 = (((x380)<(x328))+((x381)<(x359)))+(x329);
x383 = (x382)+(x361);
x384 = (((x382)<(x329))+((x383)<(x361)))+(x330);
x385 = (x384)+(x363);
x386 = (((x384)<(x330))+((x385)<(x363)))+(x331);
x387 = (x386)+(x365);
x388 = (((x386)<(x331))+((x387)<(x365)))+((x332)+(x319));
x389 = (x388)+((x366)+(x334));
x390 = ((x388)<((x332)+(x319)))+((x389)<((x366)+(x334)));
x391 = (x368)+(x6);
x392 = ((x391)<(x368))+(x369);
x393 = ((x392)<(x369))+(x371);
x394 = ((x393)<(x371))+(x373);
x395 = ((x394)<(x373))+(x375);
x396 = ((x395)<(x375))+(x377);
x397 = ((x396)<(x377))+(x379);
x398 = ((x397)<(x379))+(x381);
x399 = ((x398)<(x381))+(x383);
x400 = ((x399)<(x383))+(x385);
x401 = ((x400)<(x385))+(x387);
x402 = ((x401)<(x387))+(x389);
x403 = (x402)<(x389);
x404 = (x391)*((uintptr_t)4294967295ULL);
x405 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x406 = (x391)*((uintptr_t)4294967295ULL);
x407 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x408 = (x391)*((uintptr_t)4294967295ULL);
x409 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x410 = (x391)*((uintptr_t)4294967295ULL);
x411 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x412 = (x391)*((uintptr_t)4294967295ULL);
x413 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x414 = (x391)*((uintptr_t)4294967295ULL);
x415 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x416 = (x391)*((uintptr_t)4294967295ULL);
x417 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x418 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967294ULL))>>64;
x419 = (x391)*((uintptr_t)4294967295ULL);
x420 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x421 = sizeof(intptr_t) == 4 ? ((uint64_t)(x391)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x391)*((uintptr_t)4294967295ULL))>>64;
x422 = (x420)+((x391)*((uintptr_t)4294967294ULL));
x423 = ((x422)<(x420))+(x418);
x424 = (x423)+(x416);
x425 = (((x423)<(x418))+((x424)<(x416)))+(x417);
x426 = (x425)+(x414);
x427 = (((x425)<(x417))+((x426)<(x414)))+(x415);
x428 = (x427)+(x412);
x429 = (((x427)<(x415))+((x428)<(x412)))+(x413);
x430 = (x429)+(x410);
x431 = (((x429)<(x413))+((x430)<(x410)))+(x411);
x432 = (x431)+(x408);
x433 = (((x431)<(x411))+((x432)<(x408)))+(x409);
x434 = (x433)+(x406);
x435 = (((x433)<(x409))+((x434)<(x406)))+(x407);
x436 = (x435)+(x404);
x437 = ((x435)<(x407))+((x436)<(x404));
x438 = (((x391)+((x391)*((uintptr_t)4294967295ULL)))<(x391))+(x392);
x439 = (x438)+(x421);
x440 = (((x438)<(x392))+((x439)<(x421)))+(x393);
x441 = ((x440)<(x393))+(x394);
x442 = (x441)+(x419);
x443 = (((x441)<(x394))+((x442)<(x419)))+(x395);
x444 = (x443)+(x422);
x445 = (((x443)<(x395))+((x444)<(x422)))+(x396);
x446 = (x445)+(x424);
x447 = (((x445)<(x396))+((x446)<(x424)))+(x397);
x448 = (x447)+(x426);
x449 = (((x447)<(x397))+((x448)<(x426)))+(x398);
x450 = (x449)+(x428);
x451 = (((x449)<(x398))+((x450)<(x428)))+(x399);
x452 = (x451)+(x430);
x453 = (((x451)<(x399))+((x452)<(x430)))+(x400);
x454 = (x453)+(x432);
x455 = (((x453)<(x400))+((x454)<(x432)))+(x401);
x456 = (x455)+(x434);
x457 = (((x455)<(x401))+((x456)<(x434)))+(x402);
x458 = (x457)+(x436);
x459 = (((x457)<(x402))+((x458)<(x436)))+((x403)+(x390));
x460 = (x459)+((x437)+(x405));
x461 = ((x459)<((x403)+(x390)))+((x460)<((x437)+(x405)));
x462 = (x439)+(x7);
x463 = ((x462)<(x439))+(x440);
x464 = ((x463)<(x440))+(x442);
x465 = ((x464)<(x442))+(x444);
x466 = ((x465)<(x444))+(x446);
x467 = ((x466)<(x446))+(x448);
x468 = ((x467)<(x448))+(x450);
x469 = ((x468)<(x450))+(x452);
x470 = ((x469)<(x452))+(x454);
x471 = ((x470)<(x454))+(x456);
x472 = ((x471)<(x456))+(x458);
x473 = ((x472)<(x458))+(x460);
x474 = (x473)<(x460);
x475 = (x462)*((uintptr_t)4294967295ULL);
x476 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x477 = (x462)*((uintptr_t)4294967295ULL);
x478 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x479 = (x462)*((uintptr_t)4294967295ULL);
x480 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x481 = (x462)*((uintptr_t)4294967295ULL);
x482 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x483 = (x462)*((uintptr_t)4294967295ULL);
x484 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x485 = (x462)*((uintptr_t)4294967295ULL);
x486 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x487 = (x462)*((uintptr_t)4294967295ULL);
x488 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x489 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967294ULL))>>64;
x490 = (x462)*((uintptr_t)4294967295ULL);
x491 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x492 = sizeof(intptr_t) == 4 ? ((uint64_t)(x462)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x462)*((uintptr_t)4294967295ULL))>>64;
x493 = (x491)+((x462)*((uintptr_t)4294967294ULL));
x494 = ((x493)<(x491))+(x489);
x495 = (x494)+(x487);
x496 = (((x494)<(x489))+((x495)<(x487)))+(x488);
x497 = (x496)+(x485);
x498 = (((x496)<(x488))+((x497)<(x485)))+(x486);
x499 = (x498)+(x483);
x500 = (((x498)<(x486))+((x499)<(x483)))+(x484);
x501 = (x500)+(x481);
x502 = (((x500)<(x484))+((x501)<(x481)))+(x482);
x503 = (x502)+(x479);
x504 = (((x502)<(x482))+((x503)<(x479)))+(x480);
x505 = (x504)+(x477);
x506 = (((x504)<(x480))+((x505)<(x477)))+(x478);
x507 = (x506)+(x475);
x508 = ((x506)<(x478))+((x507)<(x475));
x509 = (((x462)+((x462)*((uintptr_t)4294967295ULL)))<(x462))+(x463);
x510 = (x509)+(x492);
x511 = (((x509)<(x463))+((x510)<(x492)))+(x464);
x512 = ((x511)<(x464))+(x465);
x513 = (x512)+(x490);
x514 = (((x512)<(x465))+((x513)<(x490)))+(x466);
x515 = (x514)+(x493);
x516 = (((x514)<(x466))+((x515)<(x493)))+(x467);
x517 = (x516)+(x495);
x518 = (((x516)<(x467))+((x517)<(x495)))+(x468);
x519 = (x518)+(x497);
x520 = (((x518)<(x468))+((x519)<(x497)))+(x469);
x521 = (x520)+(x499);
x522 = (((x520)<(x469))+((x521)<(x499)))+(x470);
x523 = (x522)+(x501);
x524 = (((x522)<(x470))+((x523)<(x501)))+(x471);
x525 = (x524)+(x503);
x526 = (((x524)<(x471))+((x525)<(x503)))+(x472);
x527 = (x526)+(x505);
x528 = (((x526)<(x472))+((x527)<(x505)))+(x473);
x529 = (x528)+(x507);
x530 = (((x528)<(x473))+((x529)<(x507)))+((x474)+(x461));
x531 = (x530)+((x508)+(x476));
x532 = ((x530)<((x474)+(x461)))+((x531)<((x508)+(x476)));
x533 = (x510)+(x8);
x534 = ((x533)<(x510))+(x511);
x535 = ((x534)<(x511))+(x513);
x536 = ((x535)<(x513))+(x515);
x537 = ((x536)<(x515))+(x517);
x538 = ((x537)<(x517))+(x519);
x539 = ((x538)<(x519))+(x521);
x540 = ((x539)<(x521))+(x523);
x541 = ((x540)<(x523))+(x525);
x542 = ((x541)<(x525))+(x527);
x543 = ((x542)<(x527))+(x529);
x544 = ((x543)<(x529))+(x531);
x545 = (x544)<(x531);
x546 = (x533)*((uintptr_t)4294967295ULL);
x547 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x548 = (x533)*((uintptr_t)4294967295ULL);
x549 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x550 = (x533)*((uintptr_t)4294967295ULL);
x551 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x552 = (x533)*((uintptr_t)4294967295ULL);
x553 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x554 = (x533)*((uintptr_t)4294967295ULL);
x555 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x556 = (x533)*((uintptr_t)4294967295ULL);
x557 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x558 = (x533)*((uintptr_t)4294967295ULL);
x559 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x560 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967294ULL))>>64;
x561 = (x533)*((uintptr_t)4294967295ULL);
x562 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x563 = sizeof(intptr_t) == 4 ? ((uint64_t)(x533)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x533)*((uintptr_t)4294967295ULL))>>64;
x564 = (x562)+((x533)*((uintptr_t)4294967294ULL));
x565 = ((x564)<(x562))+(x560);
x566 = (x565)+(x558);
x567 = (((x565)<(x560))+((x566)<(x558)))+(x559);
x568 = (x567)+(x556);
x569 = (((x567)<(x559))+((x568)<(x556)))+(x557);
x570 = (x569)+(x554);
x571 = (((x569)<(x557))+((x570)<(x554)))+(x555);
x572 = (x571)+(x552);
x573 = (((x571)<(x555))+((x572)<(x552)))+(x553);
x574 = (x573)+(x550);
x575 = (((x573)<(x553))+((x574)<(x550)))+(x551);
x576 = (x575)+(x548);
x577 = (((x575)<(x551))+((x576)<(x548)))+(x549);
x578 = (x577)+(x546);
x579 = ((x577)<(x549))+((x578)<(x546));
x580 = (((x533)+((x533)*((uintptr_t)4294967295ULL)))<(x533))+(x534);
x581 = (x580)+(x563);
x582 = (((x580)<(x534))+((x581)<(x563)))+(x535);
x583 = ((x582)<(x535))+(x536);
x584 = (x583)+(x561);
x585 = (((x583)<(x536))+((x584)<(x561)))+(x537);
x586 = (x585)+(x564);
x587 = (((x585)<(x537))+((x586)<(x564)))+(x538);
x588 = (x587)+(x566);
x589 = (((x587)<(x538))+((x588)<(x566)))+(x539);
x590 = (x589)+(x568);
x591 = (((x589)<(x539))+((x590)<(x568)))+(x540);
x592 = (x591)+(x570);
x593 = (((x591)<(x540))+((x592)<(x570)))+(x541);
x594 = (x593)+(x572);
x595 = (((x593)<(x541))+((x594)<(x572)))+(x542);
x596 = (x595)+(x574);
x597 = (((x595)<(x542))+((x596)<(x574)))+(x543);
x598 = (x597)+(x576);
x599 = (((x597)<(x543))+((x598)<(x576)))+(x544);
x600 = (x599)+(x578);
x601 = (((x599)<(x544))+((x600)<(x578)))+((x545)+(x532));
x602 = (x601)+((x579)+(x547));
x603 = ((x601)<((x545)+(x532)))+((x602)<((x579)+(x547)));
x604 = (x581)+(x9);
x605 = ((x604)<(x581))+(x582);
x606 = ((x605)<(x582))+(x584);
x607 = ((x606)<(x584))+(x586);
x608 = ((x607)<(x586))+(x588);
x609 = ((x608)<(x588))+(x590);
x610 = ((x609)<(x590))+(x592);
x611 = ((x610)<(x592))+(x594);
x612 = ((x611)<(x594))+(x596);
x613 = ((x612)<(x596))+(x598);
x614 = ((x613)<(x598))+(x600);
x615 = ((x614)<(x600))+(x602);
x616 = (x615)<(x602);
x617 = (x604)*((uintptr_t)4294967295ULL);
x618 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x619 = (x604)*((uintptr_t)4294967295ULL);
x620 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x621 = (x604)*((uintptr_t)4294967295ULL);
x622 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x623 = (x604)*((uintptr_t)4294967295ULL);
x624 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x625 = (x604)*((uintptr_t)4294967295ULL);
x626 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x627 = (x604)*((uintptr_t)4294967295ULL);
x628 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x629 = (x604)*((uintptr_t)4294967295ULL);
x630 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x631 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967294ULL))>>64;
x632 = (x604)*((uintptr_t)4294967295ULL);
x633 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x634 = sizeof(intptr_t) == 4 ? ((uint64_t)(x604)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x604)*((uintptr_t)4294967295ULL))>>64;
x635 = (x633)+((x604)*((uintptr_t)4294967294ULL));
x636 = ((x635)<(x633))+(x631);
x637 = (x636)+(x629);
x638 = (((x636)<(x631))+((x637)<(x629)))+(x630);
x639 = (x638)+(x627);
x640 = (((x638)<(x630))+((x639)<(x627)))+(x628);
x641 = (x640)+(x625);
x642 = (((x640)<(x628))+((x641)<(x625)))+(x626);
x643 = (x642)+(x623);
x644 = (((x642)<(x626))+((x643)<(x623)))+(x624);
x645 = (x644)+(x621);
x646 = (((x644)<(x624))+((x645)<(x621)))+(x622);
x647 = (x646)+(x619);
x648 = (((x646)<(x622))+((x647)<(x619)))+(x620);
x649 = (x648)+(x617);
x650 = ((x648)<(x620))+((x649)<(x617));
x651 = (((x604)+((x604)*((uintptr_t)4294967295ULL)))<(x604))+(x605);
x652 = (x651)+(x634);
x653 = (((x651)<(x605))+((x652)<(x634)))+(x606);
x654 = ((x653)<(x606))+(x607);
x655 = (x654)+(x632);
x656 = (((x654)<(x607))+((x655)<(x632)))+(x608);
x657 = (x656)+(x635);
x658 = (((x656)<(x608))+((x657)<(x635)))+(x609);
x659 = (x658)+(x637);
x660 = (((x658)<(x609))+((x659)<(x637)))+(x610);
x661 = (x660)+(x639);
x662 = (((x660)<(x610))+((x661)<(x639)))+(x611);
x663 = (x662)+(x641);
x664 = (((x662)<(x611))+((x663)<(x641)))+(x612);
x665 = (x664)+(x643);
x666 = (((x664)<(x612))+((x665)<(x643)))+(x613);
x667 = (x666)+(x645);
x668 = (((x666)<(x613))+((x667)<(x645)))+(x614);
x669 = (x668)+(x647);
x670 = (((x668)<(x614))+((x669)<(x647)))+(x615);
x671 = (x670)+(x649);
x672 = (((x670)<(x615))+((x671)<(x649)))+((x616)+(x603));
x673 = (x672)+((x650)+(x618));
x674 = ((x672)<((x616)+(x603)))+((x673)<((x650)+(x618)));
x675 = (x652)+(x10);
x676 = ((x675)<(x652))+(x653);
x677 = ((x676)<(x653))+(x655);
x678 = ((x677)<(x655))+(x657);
x679 = ((x678)<(x657))+(x659);
x680 = ((x679)<(x659))+(x661);
x681 = ((x680)<(x661))+(x663);
x682 = ((x681)<(x663))+(x665);
x683 = ((x682)<(x665))+(x667);
x684 = ((x683)<(x667))+(x669);
x685 = ((x684)<(x669))+(x671);
x686 = ((x685)<(x671))+(x673);
x687 = (x686)<(x673);
x688 = (x675)*((uintptr_t)4294967295ULL);
x689 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x690 = (x675)*((uintptr_t)4294967295ULL);
x691 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x692 = (x675)*((uintptr_t)4294967295ULL);
x693 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x694 = (x675)*((uintptr_t)4294967295ULL);
x695 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x696 = (x675)*((uintptr_t)4294967295ULL);
x697 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x698 = (x675)*((uintptr_t)4294967295ULL);
x699 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x700 = (x675)*((uintptr_t)4294967295ULL);
x701 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x702 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967294ULL))>>64;
x703 = (x675)*((uintptr_t)4294967295ULL);
x704 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x705 = sizeof(intptr_t) == 4 ? ((uint64_t)(x675)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x675)*((uintptr_t)4294967295ULL))>>64;
x706 = (x704)+((x675)*((uintptr_t)4294967294ULL));
x707 = ((x706)<(x704))+(x702);
x708 = (x707)+(x700);
x709 = (((x707)<(x702))+((x708)<(x700)))+(x701);
x710 = (x709)+(x698);
x711 = (((x709)<(x701))+((x710)<(x698)))+(x699);
x712 = (x711)+(x696);
x713 = (((x711)<(x699))+((x712)<(x696)))+(x697);
x714 = (x713)+(x694);
x715 = (((x713)<(x697))+((x714)<(x694)))+(x695);
x716 = (x715)+(x692);
x717 = (((x715)<(x695))+((x716)<(x692)))+(x693);
x718 = (x717)+(x690);
x719 = (((x717)<(x693))+((x718)<(x690)))+(x691);
x720 = (x719)+(x688);
x721 = ((x719)<(x691))+((x720)<(x688));
x722 = (((x675)+((x675)*((uintptr_t)4294967295ULL)))<(x675))+(x676);
x723 = (x722)+(x705);
x724 = (((x722)<(x676))+((x723)<(x705)))+(x677);
x725 = ((x724)<(x677))+(x678);
x726 = (x725)+(x703);
x727 = (((x725)<(x678))+((x726)<(x703)))+(x679);
x728 = (x727)+(x706);
x729 = (((x727)<(x679))+((x728)<(x706)))+(x680);
x730 = (x729)+(x708);
x731 = (((x729)<(x680))+((x730)<(x708)))+(x681);
x732 = (x731)+(x710);
x733 = (((x731)<(x681))+((x732)<(x710)))+(x682);
x734 = (x733)+(x712);
x735 = (((x733)<(x682))+((x734)<(x712)))+(x683);
x736 = (x735)+(x714);
x737 = (((x735)<(x683))+((x736)<(x714)))+(x684);
x738 = (x737)+(x716);
x739 = (((x737)<(x684))+((x738)<(x716)))+(x685);
x740 = (x739)+(x718);
x741 = (((x739)<(x685))+((x740)<(x718)))+(x686);
x742 = (x741)+(x720);
x743 = (((x741)<(x686))+((x742)<(x720)))+((x687)+(x674));
x744 = (x743)+((x721)+(x689));
x745 = ((x743)<((x687)+(x674)))+((x744)<((x721)+(x689)));
x746 = (x723)+(x11);
x747 = ((x746)<(x723))+(x724);
x748 = ((x747)<(x724))+(x726);
x749 = ((x748)<(x726))+(x728);
x750 = ((x749)<(x728))+(x730);
x751 = ((x750)<(x730))+(x732);
x752 = ((x751)<(x732))+(x734);
x753 = ((x752)<(x734))+(x736);
x754 = ((x753)<(x736))+(x738);
x755 = ((x754)<(x738))+(x740);
x756 = ((x755)<(x740))+(x742);
x757 = ((x756)<(x742))+(x744);
x758 = (x757)<(x744);
x759 = (x746)*((uintptr_t)4294967295ULL);
x760 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x761 = (x746)*((uintptr_t)4294967295ULL);
x762 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x763 = (x746)*((uintptr_t)4294967295ULL);
x764 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x765 = (x746)*((uintptr_t)4294967295ULL);
x766 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x767 = (x746)*((uintptr_t)4294967295ULL);
x768 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x769 = (x746)*((uintptr_t)4294967295ULL);
x770 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x771 = (x746)*((uintptr_t)4294967295ULL);
x772 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x773 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967294ULL))>>64;
x774 = (x746)*((uintptr_t)4294967295ULL);
x775 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x776 = sizeof(intptr_t) == 4 ? ((uint64_t)(x746)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x746)*((uintptr_t)4294967295ULL))>>64;
x777 = (x775)+((x746)*((uintptr_t)4294967294ULL));
x778 = ((x777)<(x775))+(x773);
x779 = (x778)+(x771);
x780 = (((x778)<(x773))+((x779)<(x771)))+(x772);
x781 = (x780)+(x769);
x782 = (((x780)<(x772))+((x781)<(x769)))+(x770);
x783 = (x782)+(x767);
x784 = (((x782)<(x770))+((x783)<(x767)))+(x768);
x785 = (x784)+(x765);
x786 = (((x784)<(x768))+((x785)<(x765)))+(x766);
x787 = (x786)+(x763);
x788 = (((x786)<(x766))+((x787)<(x763)))+(x764);
x789 = (x788)+(x761);
x790 = (((x788)<(x764))+((x789)<(x761)))+(x762);
x791 = (x790)+(x759);
x792 = ((x790)<(x762))+((x791)<(x759));
x793 = (((x746)+((x746)*((uintptr_t)4294967295ULL)))<(x746))+(x747);
x794 = (x793)+(x776);
x795 = (((x793)<(x747))+((x794)<(x776)))+(x748);
x796 = ((x795)<(x748))+(x749);
x797 = (x796)+(x774);
x798 = (((x796)<(x749))+((x797)<(x774)))+(x750);
x799 = (x798)+(x777);
x800 = (((x798)<(x750))+((x799)<(x777)))+(x751);
x801 = (x800)+(x779);
x802 = (((x800)<(x751))+((x801)<(x779)))+(x752);
x803 = (x802)+(x781);
x804 = (((x802)<(x752))+((x803)<(x781)))+(x753);
x805 = (x804)+(x783);
x806 = (((x804)<(x753))+((x805)<(x783)))+(x754);
x807 = (x806)+(x785);
x808 = (((x806)<(x754))+((x807)<(x785)))+(x755);
x809 = (x808)+(x787);
x810 = (((x808)<(x755))+((x809)<(x787)))+(x756);
x811 = (x810)+(x789);
x812 = (((x810)<(x756))+((x811)<(x789)))+(x757);
x813 = (x812)+(x791);
x814 = (((x812)<(x757))+((x813)<(x791)))+((x758)+(x745));
x815 = (x814)+((x792)+(x760));
x816 = ((x814)<((x758)+(x745)))+((x815)<((x792)+(x760)));
x817 = (x794)-((uintptr_t)4294967295ULL);
x818 = (x795)-((x794)<(x817));
x819 = (x797)-((x795)<(x818));
x820 = (x799)-((uintptr_t)4294967295ULL);
x821 = (x820)-((x797)<(x819));
x822 = (x801)-((uintptr_t)4294967294ULL);
x823 = (x822)-(((x799)<(x820))+((x820)<(x821)));
x824 = (x803)-((uintptr_t)4294967295ULL);
x825 = (x824)-(((x801)<(x822))+((x822)<(x823)));
x826 = (x805)-((uintptr_t)4294967295ULL);
x827 = (x826)-(((x803)<(x824))+((x824)<(x825)));
x828 = (x807)-((uintptr_t)4294967295ULL);
x829 = (x828)-(((x805)<(x826))+((x826)<(x827)));
x830 = (x809)-((uintptr_t)4294967295ULL);
x831 = (x830)-(((x807)<(x828))+((x828)<(x829)));
x832 = (x811)-((uintptr_t)4294967295ULL);
x833 = (x832)-(((x809)<(x830))+((x830)<(x831)));
x834 = (x813)-((uintptr_t)4294967295ULL);
x835 = (x834)-(((x811)<(x832))+((x832)<(x833)));
x836 = (x815)-((uintptr_t)4294967295ULL);
x837 = (x836)-(((x813)<(x834))+((x834)<(x835)));
x838 = (x816)<((x816)-(((x815)<(x836))+((x836)<(x837))));
x839 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x840 = (x839)^((uintptr_t)4294967295ULL);
x841 = ((x794)&(x839))|((x817)&(x840));
x842 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x843 = (x842)^((uintptr_t)4294967295ULL);
x844 = ((x795)&(x842))|((x818)&(x843));
x845 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x846 = (x845)^((uintptr_t)4294967295ULL);
x847 = ((x797)&(x845))|((x819)&(x846));
x848 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x849 = (x848)^((uintptr_t)4294967295ULL);
x850 = ((x799)&(x848))|((x821)&(x849));
x851 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x852 = (x851)^((uintptr_t)4294967295ULL);
x853 = ((x801)&(x851))|((x823)&(x852));
x854 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x855 = (x854)^((uintptr_t)4294967295ULL);
x856 = ((x803)&(x854))|((x825)&(x855));
x857 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x858 = (x857)^((uintptr_t)4294967295ULL);
x859 = ((x805)&(x857))|((x827)&(x858));
x860 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x861 = (x860)^((uintptr_t)4294967295ULL);
x862 = ((x807)&(x860))|((x829)&(x861));
x863 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x864 = (x863)^((uintptr_t)4294967295ULL);
x865 = ((x809)&(x863))|((x831)&(x864));
x866 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x867 = (x866)^((uintptr_t)4294967295ULL);
x868 = ((x811)&(x866))|((x833)&(x867));
x869 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x870 = (x869)^((uintptr_t)4294967295ULL);
x871 = ((x813)&(x869))|((x835)&(x870));
x872 = ((uintptr_t)-1ULL)+((x838)==((uintptr_t)0ULL));
x873 = (x872)^((uintptr_t)4294967295ULL);
x874 = ((x815)&(x872))|((x837)&(x873));
x875 = x841;
x876 = x844;
x877 = x847;
x878 = x850;
x879 = x853;
x880 = x856;
x881 = x859;
x882 = x862;
x883 = x865;
x884 = x868;
x885 = x871;
x886 = x874;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x875, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x876, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x877, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x878, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x879, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x880, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x881, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x882, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x883, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x884, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x885, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x886, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_from_montgomery(uint32_t out1[12], const uint32_t arg1[12]) {
internal_fiat_p384_from_montgomery((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_to_montgomery(uintptr_t out0, uintptr_t in0) {
uintptr_t x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x0, x25, x49, x52, x48, x46, x54, x47, x44, x56, x45, x42, x58, x43, x40, x60, x41, x38, x62, x39, x36, x64, x37, x34, x67, x30, x50, x23, x28, x71, x29, x51, x73, x26, x53, x75, x27, x55, x77, x24, x57, x79, x32, x59, x81, x33, x61, x63, x65, x66, x35, x88, x12, x68, x98, x69, x31, x93, x100, x70, x94, x102, x72, x91, x104, x74, x92, x106, x76, x89, x108, x78, x90, x110, x80, x87, x112, x82, x95, x114, x83, x96, x84, x85, x135, x138, x133, x131, x140, x132, x129, x142, x130, x127, x144, x128, x125, x146, x126, x123, x148, x124, x121, x150, x122, x119, x97, x153, x99, x136, x101, x156, x103, x134, x158, x105, x137, x160, x107, x139, x162, x109, x141, x164, x111, x143, x166, x113, x145, x168, x115, x147, x170, x116, x149, x172, x117, x151, x174, x118, x86, x152, x120, x178, x13, x154, x188, x155, x183, x190, x157, x184, x192, x159, x181, x194, x161, x182, x196, x163, x179, x198, x165, x180, x200, x167, x177, x202, x169, x185, x204, x171, x186, x173, x175, x225, x228, x223, x221, x230, x222, x219, x232, x220, x217, x234, x218, x215, x236, x216, x213, x238, x214, x211, x240, x212, x209, x187, x243, x189, x226, x191, x246, x193, x224, x248, x195, x227, x250, x197, x229, x252, x199, x231, x254, x201, x233, x256, x203, x235, x258, x205, x237, x260, x206, x239, x262, x207, x241, x264, x208, x176, x242, x210, x268, x14, x244, x278, x245, x273, x280, x247, x274, x282, x249, x271, x284, x251, x272, x286, x253, x269, x288, x255, x270, x290, x257, x267, x292, x259, x275, x294, x261, x276, x263, x265, x315, x318, x313, x311, x320, x312, x309, x322, x310, x307, x324, x308, x305, x326, x306, x303, x328, x304, x301, x330, x302, x299, x277, x333, x279, x316, x281, x336, x283, x314, x338, x285, x317, x340, x287, x319, x342, x289, x321, x344, x291, x323, x346, x293, x325, x348, x295, x327, x350, x296, x329, x352, x297, x331, x354, x298, x266, x332, x300, x358, x15, x334, x368, x335, x363, x370, x337, x364, x372, x339, x361, x374, x341, x362, x376, x343, x359, x378, x345, x360, x380, x347, x357, x382, x349, x365, x384, x351, x366, x353, x355, x405, x408, x403, x401, x410, x402, x399, x412, x400, x397, x414, x398, x395, x416, x396, x393, x418, x394, x391, x420, x392, x389, x367, x423, x369, x406, x371, x426, x373, x404, x428, x375, x407, x430, x377, x409, x432, x379, x411, x434, x381, x413, x436, x383, x415, x438, x385, x417, x440, x386, x419, x442, x387, x421, x444, x388, x356, x422, x390, x448, x16, x424, x458, x425, x453, x460, x427, x454, x462, x429, x451, x464, x431, x452, x466, x433, x449, x468, x435, x450, x470, x437, x447, x472, x439, x455, x474, x441, x456, x443, x445, x495, x498, x493, x491, x500, x492, x489, x502, x490, x487, x504, x488, x485, x506, x486, x483, x508, x484, x481, x510, x482, x479, x457, x513, x459, x496, x461, x516, x463, x494, x518, x465, x497, x520, x467, x499, x522, x469, x501, x524, x471, x503, x526, x473, x505, x528, x475, x507, x530, x476, x509, x532, x477, x511, x534, x478, x446, x512, x480, x538, x17, x514, x548, x515, x543, x550, x517, x544, x552, x519, x541, x554, x521, x542, x556, x523, x539, x558, x525, x540, x560, x527, x537, x562, x529, x545, x564, x531, x546, x533, x535, x585, x588, x583, x581, x590, x582, x579, x592, x580, x577, x594, x578, x575, x596, x576, x573, x598, x574, x571, x600, x572, x569, x547, x603, x549, x586, x551, x606, x553, x584, x608, x555, x587, x610, x557, x589, x612, x559, x591, x614, x561, x593, x616, x563, x595, x618, x565, x597, x620, x566, x599, x622, x567, x601, x624, x568, x536, x602, x570, x628, x18, x604, x638, x605, x633, x640, x607, x634, x642, x609, x631, x644, x611, x632, x646, x613, x629, x648, x615, x630, x650, x617, x627, x652, x619, x635, x654, x621, x636, x623, x625, x675, x678, x673, x671, x680, x672, x669, x682, x670, x667, x684, x668, x665, x686, x666, x663, x688, x664, x661, x690, x662, x659, x637, x693, x639, x676, x641, x696, x643, x674, x698, x645, x677, x700, x647, x679, x702, x649, x681, x704, x651, x683, x706, x653, x685, x708, x655, x687, x710, x656, x689, x712, x657, x691, x714, x658, x626, x692, x660, x718, x19, x694, x728, x695, x723, x730, x697, x724, x732, x699, x721, x734, x701, x722, x736, x703, x719, x738, x705, x720, x740, x707, x717, x742, x709, x725, x744, x711, x726, x713, x715, x765, x768, x763, x761, x770, x762, x759, x772, x760, x757, x774, x758, x755, x776, x756, x753, x778, x754, x751, x780, x752, x749, x727, x783, x729, x766, x731, x786, x733, x764, x788, x735, x767, x790, x737, x769, x792, x739, x771, x794, x741, x773, x796, x743, x775, x798, x745, x777, x800, x746, x779, x802, x747, x781, x804, x748, x716, x782, x750, x808, x20, x784, x818, x785, x813, x820, x787, x814, x822, x789, x811, x824, x791, x812, x826, x793, x809, x828, x795, x810, x830, x797, x807, x832, x799, x815, x834, x801, x816, x803, x805, x855, x858, x853, x851, x860, x852, x849, x862, x850, x847, x864, x848, x845, x866, x846, x843, x868, x844, x841, x870, x842, x839, x817, x873, x819, x856, x821, x876, x823, x854, x878, x825, x857, x880, x827, x859, x882, x829, x861, x884, x831, x863, x886, x833, x865, x888, x835, x867, x890, x836, x869, x892, x837, x871, x894, x838, x806, x872, x840, x898, x21, x874, x908, x875, x903, x910, x877, x904, x912, x879, x901, x914, x881, x902, x916, x883, x899, x918, x885, x900, x920, x887, x897, x922, x889, x905, x924, x891, x906, x893, x895, x945, x948, x943, x941, x950, x942, x939, x952, x940, x937, x954, x938, x935, x956, x936, x933, x958, x934, x931, x960, x932, x929, x907, x963, x909, x946, x911, x966, x913, x944, x968, x915, x947, x970, x917, x949, x972, x919, x951, x974, x921, x953, x976, x923, x955, x978, x925, x957, x980, x926, x959, x982, x927, x961, x984, x928, x896, x962, x930, x988, x22, x964, x998, x965, x993, x1000, x967, x994, x1002, x969, x991, x1004, x971, x992, x1006, x973, x989, x1008, x975, x990, x1010, x977, x987, x1012, x979, x995, x1014, x981, x996, x983, x985, x1035, x1038, x1033, x1031, x1040, x1032, x1029, x1042, x1030, x1027, x1044, x1028, x1025, x1046, x1026, x1023, x1048, x1024, x1021, x1050, x1022, x1019, x997, x1053, x999, x1036, x1001, x1056, x1003, x1034, x1058, x1005, x1037, x1060, x1007, x1039, x1062, x1009, x1041, x1064, x1011, x1043, x1066, x1013, x1045, x1068, x1015, x1047, x1070, x1016, x1049, x1072, x1017, x1051, x1074, x1018, x986, x1052, x1020, x1080, x1082, x1084, x1086, x1088, x1090, x1092, x1094, x1076, x1096, x1054, x1099, x1077, x1100, x1055, x1102, x1078, x1103, x1057, x1105, x1079, x1106, x1059, x1108, x1081, x1109, x1061, x1111, x1083, x1112, x1063, x1114, x1085, x1115, x1065, x1117, x1087, x1118, x1067, x1120, x1089, x1121, x1069, x1123, x1091, x1124, x1071, x1126, x1093, x1127, x1073, x1129, x1095, x1130, x1098, x1075, x1132, x1097, x1133, x1101, x1104, x1107, x1110, x1113, x1116, x1119, x1122, x1125, x1128, x1131, x1134, x1135, x1136, x1137, x1138, x1139, x1140, x1141, x1142, x1143, x1144, x1145, x1146;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = x1;
x13 = x2;
x14 = x3;
x15 = x4;
x16 = x5;
x17 = x6;
x18 = x7;
x19 = x8;
x20 = x9;
x21 = x10;
x22 = x11;
x23 = x0;
x24 = (x23)*((uintptr_t)2ULL);
x25 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)2ULL))>>64;
x26 = (x23)*((uintptr_t)4294967294ULL);
x27 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967294ULL))>>64;
x28 = (x23)*((uintptr_t)2ULL);
x29 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)2ULL))>>64;
x30 = (x23)*((uintptr_t)4294967294ULL);
x31 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967294ULL))>>64;
x32 = (x25)+(x23);
x33 = (x32)<(x25);
x34 = (x23)*((uintptr_t)4294967295ULL);
x35 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x36 = (x23)*((uintptr_t)4294967295ULL);
x37 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x38 = (x23)*((uintptr_t)4294967295ULL);
x39 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x40 = (x23)*((uintptr_t)4294967295ULL);
x41 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x42 = (x23)*((uintptr_t)4294967295ULL);
x43 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x44 = (x23)*((uintptr_t)4294967295ULL);
x45 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x46 = (x23)*((uintptr_t)4294967295ULL);
x47 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x48 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967294ULL))>>64;
x49 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x50 = sizeof(intptr_t) == 4 ? ((uint64_t)(x23)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x23)*((uintptr_t)4294967295ULL))>>64;
x51 = (x49)+((x23)*((uintptr_t)4294967294ULL));
x52 = ((x51)<(x49))+(x48);
x53 = (x52)+(x46);
x54 = (((x52)<(x48))+((x53)<(x46)))+(x47);
x55 = (x54)+(x44);
x56 = (((x54)<(x47))+((x55)<(x44)))+(x45);
x57 = (x56)+(x42);
x58 = (((x56)<(x45))+((x57)<(x42)))+(x43);
x59 = (x58)+(x40);
x60 = (((x58)<(x43))+((x59)<(x40)))+(x41);
x61 = (x60)+(x38);
x62 = (((x60)<(x41))+((x61)<(x38)))+(x39);
x63 = (x62)+(x36);
x64 = (((x62)<(x39))+((x63)<(x36)))+(x37);
x65 = (x64)+(x34);
x66 = ((x64)<(x37))+((x65)<(x34));
x67 = (((x23)+((x23)*((uintptr_t)4294967295ULL)))<(x23))+(x30);
x68 = (x67)+(x50);
x69 = ((x67)<(x30))+((x68)<(x50));
x70 = (x28)+((x23)*((uintptr_t)4294967295ULL));
x71 = ((x70)<(x28))+(x29);
x72 = (x71)+(x51);
x73 = (((x71)<(x29))+((x72)<(x51)))+(x26);
x74 = (x73)+(x53);
x75 = (((x73)<(x26))+((x74)<(x53)))+(x27);
x76 = (x75)+(x55);
x77 = (((x75)<(x27))+((x76)<(x55)))+(x24);
x78 = (x77)+(x57);
x79 = (((x77)<(x24))+((x78)<(x57)))+(x32);
x80 = (x79)+(x59);
x81 = (((x79)<(x32))+((x80)<(x59)))+(x33);
x82 = (x81)+(x61);
x83 = (((x81)<(x33))+((x82)<(x61)))+(x63);
x84 = ((x83)<(x63))+(x65);
x85 = ((x84)<(x65))+((x66)+(x35));
x86 = (x85)<((x66)+(x35));
x87 = (x12)*((uintptr_t)2ULL);
x88 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)2ULL))>>64;
x89 = (x12)*((uintptr_t)4294967294ULL);
x90 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967294ULL))>>64;
x91 = (x12)*((uintptr_t)2ULL);
x92 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)2ULL))>>64;
x93 = (x12)*((uintptr_t)4294967294ULL);
x94 = sizeof(intptr_t) == 4 ? ((uint64_t)(x12)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x12)*((uintptr_t)4294967294ULL))>>64;
x95 = (x88)+(x12);
x96 = (x95)<(x88);
x97 = (x68)+(x12);
x98 = ((x97)<(x68))+((x69)+(x31));
x99 = (x98)+(x93);
x100 = (((x98)<((x69)+(x31)))+((x99)<(x93)))+(x70);
x101 = (x100)+(x94);
x102 = (((x100)<(x70))+((x101)<(x94)))+(x72);
x103 = (x102)+(x91);
x104 = (((x102)<(x72))+((x103)<(x91)))+(x74);
x105 = (x104)+(x92);
x106 = (((x104)<(x74))+((x105)<(x92)))+(x76);
x107 = (x106)+(x89);
x108 = (((x106)<(x76))+((x107)<(x89)))+(x78);
x109 = (x108)+(x90);
x110 = (((x108)<(x78))+((x109)<(x90)))+(x80);
x111 = (x110)+(x87);
x112 = (((x110)<(x80))+((x111)<(x87)))+(x82);
x113 = (x112)+(x95);
x114 = (((x112)<(x82))+((x113)<(x95)))+(x83);
x115 = (x114)+(x96);
x116 = (((x114)<(x83))+((x115)<(x96)))+(x84);
x117 = ((x116)<(x84))+(x85);
x118 = (x117)<(x85);
x119 = (x97)*((uintptr_t)4294967295ULL);
x120 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x121 = (x97)*((uintptr_t)4294967295ULL);
x122 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x123 = (x97)*((uintptr_t)4294967295ULL);
x124 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x125 = (x97)*((uintptr_t)4294967295ULL);
x126 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x127 = (x97)*((uintptr_t)4294967295ULL);
x128 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x129 = (x97)*((uintptr_t)4294967295ULL);
x130 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x131 = (x97)*((uintptr_t)4294967295ULL);
x132 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x133 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967294ULL))>>64;
x134 = (x97)*((uintptr_t)4294967295ULL);
x135 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x136 = sizeof(intptr_t) == 4 ? ((uint64_t)(x97)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x97)*((uintptr_t)4294967295ULL))>>64;
x137 = (x135)+((x97)*((uintptr_t)4294967294ULL));
x138 = ((x137)<(x135))+(x133);
x139 = (x138)+(x131);
x140 = (((x138)<(x133))+((x139)<(x131)))+(x132);
x141 = (x140)+(x129);
x142 = (((x140)<(x132))+((x141)<(x129)))+(x130);
x143 = (x142)+(x127);
x144 = (((x142)<(x130))+((x143)<(x127)))+(x128);
x145 = (x144)+(x125);
x146 = (((x144)<(x128))+((x145)<(x125)))+(x126);
x147 = (x146)+(x123);
x148 = (((x146)<(x126))+((x147)<(x123)))+(x124);
x149 = (x148)+(x121);
x150 = (((x148)<(x124))+((x149)<(x121)))+(x122);
x151 = (x150)+(x119);
x152 = ((x150)<(x122))+((x151)<(x119));
x153 = (((x97)+((x97)*((uintptr_t)4294967295ULL)))<(x97))+(x99);
x154 = (x153)+(x136);
x155 = (((x153)<(x99))+((x154)<(x136)))+(x101);
x156 = ((x155)<(x101))+(x103);
x157 = (x156)+(x134);
x158 = (((x156)<(x103))+((x157)<(x134)))+(x105);
x159 = (x158)+(x137);
x160 = (((x158)<(x105))+((x159)<(x137)))+(x107);
x161 = (x160)+(x139);
x162 = (((x160)<(x107))+((x161)<(x139)))+(x109);
x163 = (x162)+(x141);
x164 = (((x162)<(x109))+((x163)<(x141)))+(x111);
x165 = (x164)+(x143);
x166 = (((x164)<(x111))+((x165)<(x143)))+(x113);
x167 = (x166)+(x145);
x168 = (((x166)<(x113))+((x167)<(x145)))+(x115);
x169 = (x168)+(x147);
x170 = (((x168)<(x115))+((x169)<(x147)))+(x116);
x171 = (x170)+(x149);
x172 = (((x170)<(x116))+((x171)<(x149)))+(x117);
x173 = (x172)+(x151);
x174 = (((x172)<(x117))+((x173)<(x151)))+((x118)+(x86));
x175 = (x174)+((x152)+(x120));
x176 = ((x174)<((x118)+(x86)))+((x175)<((x152)+(x120)));
x177 = (x13)*((uintptr_t)2ULL);
x178 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x13)*((uintptr_t)2ULL))>>64;
x179 = (x13)*((uintptr_t)4294967294ULL);
x180 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x13)*((uintptr_t)4294967294ULL))>>64;
x181 = (x13)*((uintptr_t)2ULL);
x182 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x13)*((uintptr_t)2ULL))>>64;
x183 = (x13)*((uintptr_t)4294967294ULL);
x184 = sizeof(intptr_t) == 4 ? ((uint64_t)(x13)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x13)*((uintptr_t)4294967294ULL))>>64;
x185 = (x178)+(x13);
x186 = (x185)<(x178);
x187 = (x154)+(x13);
x188 = ((x187)<(x154))+(x155);
x189 = (x188)+(x183);
x190 = (((x188)<(x155))+((x189)<(x183)))+(x157);
x191 = (x190)+(x184);
x192 = (((x190)<(x157))+((x191)<(x184)))+(x159);
x193 = (x192)+(x181);
x194 = (((x192)<(x159))+((x193)<(x181)))+(x161);
x195 = (x194)+(x182);
x196 = (((x194)<(x161))+((x195)<(x182)))+(x163);
x197 = (x196)+(x179);
x198 = (((x196)<(x163))+((x197)<(x179)))+(x165);
x199 = (x198)+(x180);
x200 = (((x198)<(x165))+((x199)<(x180)))+(x167);
x201 = (x200)+(x177);
x202 = (((x200)<(x167))+((x201)<(x177)))+(x169);
x203 = (x202)+(x185);
x204 = (((x202)<(x169))+((x203)<(x185)))+(x171);
x205 = (x204)+(x186);
x206 = (((x204)<(x171))+((x205)<(x186)))+(x173);
x207 = ((x206)<(x173))+(x175);
x208 = (x207)<(x175);
x209 = (x187)*((uintptr_t)4294967295ULL);
x210 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x211 = (x187)*((uintptr_t)4294967295ULL);
x212 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x213 = (x187)*((uintptr_t)4294967295ULL);
x214 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x215 = (x187)*((uintptr_t)4294967295ULL);
x216 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x217 = (x187)*((uintptr_t)4294967295ULL);
x218 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x219 = (x187)*((uintptr_t)4294967295ULL);
x220 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x221 = (x187)*((uintptr_t)4294967295ULL);
x222 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x223 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967294ULL))>>64;
x224 = (x187)*((uintptr_t)4294967295ULL);
x225 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x226 = sizeof(intptr_t) == 4 ? ((uint64_t)(x187)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x187)*((uintptr_t)4294967295ULL))>>64;
x227 = (x225)+((x187)*((uintptr_t)4294967294ULL));
x228 = ((x227)<(x225))+(x223);
x229 = (x228)+(x221);
x230 = (((x228)<(x223))+((x229)<(x221)))+(x222);
x231 = (x230)+(x219);
x232 = (((x230)<(x222))+((x231)<(x219)))+(x220);
x233 = (x232)+(x217);
x234 = (((x232)<(x220))+((x233)<(x217)))+(x218);
x235 = (x234)+(x215);
x236 = (((x234)<(x218))+((x235)<(x215)))+(x216);
x237 = (x236)+(x213);
x238 = (((x236)<(x216))+((x237)<(x213)))+(x214);
x239 = (x238)+(x211);
x240 = (((x238)<(x214))+((x239)<(x211)))+(x212);
x241 = (x240)+(x209);
x242 = ((x240)<(x212))+((x241)<(x209));
x243 = (((x187)+((x187)*((uintptr_t)4294967295ULL)))<(x187))+(x189);
x244 = (x243)+(x226);
x245 = (((x243)<(x189))+((x244)<(x226)))+(x191);
x246 = ((x245)<(x191))+(x193);
x247 = (x246)+(x224);
x248 = (((x246)<(x193))+((x247)<(x224)))+(x195);
x249 = (x248)+(x227);
x250 = (((x248)<(x195))+((x249)<(x227)))+(x197);
x251 = (x250)+(x229);
x252 = (((x250)<(x197))+((x251)<(x229)))+(x199);
x253 = (x252)+(x231);
x254 = (((x252)<(x199))+((x253)<(x231)))+(x201);
x255 = (x254)+(x233);
x256 = (((x254)<(x201))+((x255)<(x233)))+(x203);
x257 = (x256)+(x235);
x258 = (((x256)<(x203))+((x257)<(x235)))+(x205);
x259 = (x258)+(x237);
x260 = (((x258)<(x205))+((x259)<(x237)))+(x206);
x261 = (x260)+(x239);
x262 = (((x260)<(x206))+((x261)<(x239)))+(x207);
x263 = (x262)+(x241);
x264 = (((x262)<(x207))+((x263)<(x241)))+((x208)+(x176));
x265 = (x264)+((x242)+(x210));
x266 = ((x264)<((x208)+(x176)))+((x265)<((x242)+(x210)));
x267 = (x14)*((uintptr_t)2ULL);
x268 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x14)*((uintptr_t)2ULL))>>64;
x269 = (x14)*((uintptr_t)4294967294ULL);
x270 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x14)*((uintptr_t)4294967294ULL))>>64;
x271 = (x14)*((uintptr_t)2ULL);
x272 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x14)*((uintptr_t)2ULL))>>64;
x273 = (x14)*((uintptr_t)4294967294ULL);
x274 = sizeof(intptr_t) == 4 ? ((uint64_t)(x14)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x14)*((uintptr_t)4294967294ULL))>>64;
x275 = (x268)+(x14);
x276 = (x275)<(x268);
x277 = (x244)+(x14);
x278 = ((x277)<(x244))+(x245);
x279 = (x278)+(x273);
x280 = (((x278)<(x245))+((x279)<(x273)))+(x247);
x281 = (x280)+(x274);
x282 = (((x280)<(x247))+((x281)<(x274)))+(x249);
x283 = (x282)+(x271);
x284 = (((x282)<(x249))+((x283)<(x271)))+(x251);
x285 = (x284)+(x272);
x286 = (((x284)<(x251))+((x285)<(x272)))+(x253);
x287 = (x286)+(x269);
x288 = (((x286)<(x253))+((x287)<(x269)))+(x255);
x289 = (x288)+(x270);
x290 = (((x288)<(x255))+((x289)<(x270)))+(x257);
x291 = (x290)+(x267);
x292 = (((x290)<(x257))+((x291)<(x267)))+(x259);
x293 = (x292)+(x275);
x294 = (((x292)<(x259))+((x293)<(x275)))+(x261);
x295 = (x294)+(x276);
x296 = (((x294)<(x261))+((x295)<(x276)))+(x263);
x297 = ((x296)<(x263))+(x265);
x298 = (x297)<(x265);
x299 = (x277)*((uintptr_t)4294967295ULL);
x300 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x301 = (x277)*((uintptr_t)4294967295ULL);
x302 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x303 = (x277)*((uintptr_t)4294967295ULL);
x304 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x305 = (x277)*((uintptr_t)4294967295ULL);
x306 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x307 = (x277)*((uintptr_t)4294967295ULL);
x308 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x309 = (x277)*((uintptr_t)4294967295ULL);
x310 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x311 = (x277)*((uintptr_t)4294967295ULL);
x312 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x313 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967294ULL))>>64;
x314 = (x277)*((uintptr_t)4294967295ULL);
x315 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x316 = sizeof(intptr_t) == 4 ? ((uint64_t)(x277)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x277)*((uintptr_t)4294967295ULL))>>64;
x317 = (x315)+((x277)*((uintptr_t)4294967294ULL));
x318 = ((x317)<(x315))+(x313);
x319 = (x318)+(x311);
x320 = (((x318)<(x313))+((x319)<(x311)))+(x312);
x321 = (x320)+(x309);
x322 = (((x320)<(x312))+((x321)<(x309)))+(x310);
x323 = (x322)+(x307);
x324 = (((x322)<(x310))+((x323)<(x307)))+(x308);
x325 = (x324)+(x305);
x326 = (((x324)<(x308))+((x325)<(x305)))+(x306);
x327 = (x326)+(x303);
x328 = (((x326)<(x306))+((x327)<(x303)))+(x304);
x329 = (x328)+(x301);
x330 = (((x328)<(x304))+((x329)<(x301)))+(x302);
x331 = (x330)+(x299);
x332 = ((x330)<(x302))+((x331)<(x299));
x333 = (((x277)+((x277)*((uintptr_t)4294967295ULL)))<(x277))+(x279);
x334 = (x333)+(x316);
x335 = (((x333)<(x279))+((x334)<(x316)))+(x281);
x336 = ((x335)<(x281))+(x283);
x337 = (x336)+(x314);
x338 = (((x336)<(x283))+((x337)<(x314)))+(x285);
x339 = (x338)+(x317);
x340 = (((x338)<(x285))+((x339)<(x317)))+(x287);
x341 = (x340)+(x319);
x342 = (((x340)<(x287))+((x341)<(x319)))+(x289);
x343 = (x342)+(x321);
x344 = (((x342)<(x289))+((x343)<(x321)))+(x291);
x345 = (x344)+(x323);
x346 = (((x344)<(x291))+((x345)<(x323)))+(x293);
x347 = (x346)+(x325);
x348 = (((x346)<(x293))+((x347)<(x325)))+(x295);
x349 = (x348)+(x327);
x350 = (((x348)<(x295))+((x349)<(x327)))+(x296);
x351 = (x350)+(x329);
x352 = (((x350)<(x296))+((x351)<(x329)))+(x297);
x353 = (x352)+(x331);
x354 = (((x352)<(x297))+((x353)<(x331)))+((x298)+(x266));
x355 = (x354)+((x332)+(x300));
x356 = ((x354)<((x298)+(x266)))+((x355)<((x332)+(x300)));
x357 = (x15)*((uintptr_t)2ULL);
x358 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x15)*((uintptr_t)2ULL))>>64;
x359 = (x15)*((uintptr_t)4294967294ULL);
x360 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x15)*((uintptr_t)4294967294ULL))>>64;
x361 = (x15)*((uintptr_t)2ULL);
x362 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x15)*((uintptr_t)2ULL))>>64;
x363 = (x15)*((uintptr_t)4294967294ULL);
x364 = sizeof(intptr_t) == 4 ? ((uint64_t)(x15)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x15)*((uintptr_t)4294967294ULL))>>64;
x365 = (x358)+(x15);
x366 = (x365)<(x358);
x367 = (x334)+(x15);
x368 = ((x367)<(x334))+(x335);
x369 = (x368)+(x363);
x370 = (((x368)<(x335))+((x369)<(x363)))+(x337);
x371 = (x370)+(x364);
x372 = (((x370)<(x337))+((x371)<(x364)))+(x339);
x373 = (x372)+(x361);
x374 = (((x372)<(x339))+((x373)<(x361)))+(x341);
x375 = (x374)+(x362);
x376 = (((x374)<(x341))+((x375)<(x362)))+(x343);
x377 = (x376)+(x359);
x378 = (((x376)<(x343))+((x377)<(x359)))+(x345);
x379 = (x378)+(x360);
x380 = (((x378)<(x345))+((x379)<(x360)))+(x347);
x381 = (x380)+(x357);
x382 = (((x380)<(x347))+((x381)<(x357)))+(x349);
x383 = (x382)+(x365);
x384 = (((x382)<(x349))+((x383)<(x365)))+(x351);
x385 = (x384)+(x366);
x386 = (((x384)<(x351))+((x385)<(x366)))+(x353);
x387 = ((x386)<(x353))+(x355);
x388 = (x387)<(x355);
x389 = (x367)*((uintptr_t)4294967295ULL);
x390 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x391 = (x367)*((uintptr_t)4294967295ULL);
x392 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x393 = (x367)*((uintptr_t)4294967295ULL);
x394 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x395 = (x367)*((uintptr_t)4294967295ULL);
x396 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x397 = (x367)*((uintptr_t)4294967295ULL);
x398 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x399 = (x367)*((uintptr_t)4294967295ULL);
x400 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x401 = (x367)*((uintptr_t)4294967295ULL);
x402 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x403 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967294ULL))>>64;
x404 = (x367)*((uintptr_t)4294967295ULL);
x405 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x406 = sizeof(intptr_t) == 4 ? ((uint64_t)(x367)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x367)*((uintptr_t)4294967295ULL))>>64;
x407 = (x405)+((x367)*((uintptr_t)4294967294ULL));
x408 = ((x407)<(x405))+(x403);
x409 = (x408)+(x401);
x410 = (((x408)<(x403))+((x409)<(x401)))+(x402);
x411 = (x410)+(x399);
x412 = (((x410)<(x402))+((x411)<(x399)))+(x400);
x413 = (x412)+(x397);
x414 = (((x412)<(x400))+((x413)<(x397)))+(x398);
x415 = (x414)+(x395);
x416 = (((x414)<(x398))+((x415)<(x395)))+(x396);
x417 = (x416)+(x393);
x418 = (((x416)<(x396))+((x417)<(x393)))+(x394);
x419 = (x418)+(x391);
x420 = (((x418)<(x394))+((x419)<(x391)))+(x392);
x421 = (x420)+(x389);
x422 = ((x420)<(x392))+((x421)<(x389));
x423 = (((x367)+((x367)*((uintptr_t)4294967295ULL)))<(x367))+(x369);
x424 = (x423)+(x406);
x425 = (((x423)<(x369))+((x424)<(x406)))+(x371);
x426 = ((x425)<(x371))+(x373);
x427 = (x426)+(x404);
x428 = (((x426)<(x373))+((x427)<(x404)))+(x375);
x429 = (x428)+(x407);
x430 = (((x428)<(x375))+((x429)<(x407)))+(x377);
x431 = (x430)+(x409);
x432 = (((x430)<(x377))+((x431)<(x409)))+(x379);
x433 = (x432)+(x411);
x434 = (((x432)<(x379))+((x433)<(x411)))+(x381);
x435 = (x434)+(x413);
x436 = (((x434)<(x381))+((x435)<(x413)))+(x383);
x437 = (x436)+(x415);
x438 = (((x436)<(x383))+((x437)<(x415)))+(x385);
x439 = (x438)+(x417);
x440 = (((x438)<(x385))+((x439)<(x417)))+(x386);
x441 = (x440)+(x419);
x442 = (((x440)<(x386))+((x441)<(x419)))+(x387);
x443 = (x442)+(x421);
x444 = (((x442)<(x387))+((x443)<(x421)))+((x388)+(x356));
x445 = (x444)+((x422)+(x390));
x446 = ((x444)<((x388)+(x356)))+((x445)<((x422)+(x390)));
x447 = (x16)*((uintptr_t)2ULL);
x448 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x16)*((uintptr_t)2ULL))>>64;
x449 = (x16)*((uintptr_t)4294967294ULL);
x450 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x16)*((uintptr_t)4294967294ULL))>>64;
x451 = (x16)*((uintptr_t)2ULL);
x452 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x16)*((uintptr_t)2ULL))>>64;
x453 = (x16)*((uintptr_t)4294967294ULL);
x454 = sizeof(intptr_t) == 4 ? ((uint64_t)(x16)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x16)*((uintptr_t)4294967294ULL))>>64;
x455 = (x448)+(x16);
x456 = (x455)<(x448);
x457 = (x424)+(x16);
x458 = ((x457)<(x424))+(x425);
x459 = (x458)+(x453);
x460 = (((x458)<(x425))+((x459)<(x453)))+(x427);
x461 = (x460)+(x454);
x462 = (((x460)<(x427))+((x461)<(x454)))+(x429);
x463 = (x462)+(x451);
x464 = (((x462)<(x429))+((x463)<(x451)))+(x431);
x465 = (x464)+(x452);
x466 = (((x464)<(x431))+((x465)<(x452)))+(x433);
x467 = (x466)+(x449);
x468 = (((x466)<(x433))+((x467)<(x449)))+(x435);
x469 = (x468)+(x450);
x470 = (((x468)<(x435))+((x469)<(x450)))+(x437);
x471 = (x470)+(x447);
x472 = (((x470)<(x437))+((x471)<(x447)))+(x439);
x473 = (x472)+(x455);
x474 = (((x472)<(x439))+((x473)<(x455)))+(x441);
x475 = (x474)+(x456);
x476 = (((x474)<(x441))+((x475)<(x456)))+(x443);
x477 = ((x476)<(x443))+(x445);
x478 = (x477)<(x445);
x479 = (x457)*((uintptr_t)4294967295ULL);
x480 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x481 = (x457)*((uintptr_t)4294967295ULL);
x482 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x483 = (x457)*((uintptr_t)4294967295ULL);
x484 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x485 = (x457)*((uintptr_t)4294967295ULL);
x486 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x487 = (x457)*((uintptr_t)4294967295ULL);
x488 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x489 = (x457)*((uintptr_t)4294967295ULL);
x490 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x491 = (x457)*((uintptr_t)4294967295ULL);
x492 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x493 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967294ULL))>>64;
x494 = (x457)*((uintptr_t)4294967295ULL);
x495 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x496 = sizeof(intptr_t) == 4 ? ((uint64_t)(x457)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x457)*((uintptr_t)4294967295ULL))>>64;
x497 = (x495)+((x457)*((uintptr_t)4294967294ULL));
x498 = ((x497)<(x495))+(x493);
x499 = (x498)+(x491);
x500 = (((x498)<(x493))+((x499)<(x491)))+(x492);
x501 = (x500)+(x489);
x502 = (((x500)<(x492))+((x501)<(x489)))+(x490);
x503 = (x502)+(x487);
x504 = (((x502)<(x490))+((x503)<(x487)))+(x488);
x505 = (x504)+(x485);
x506 = (((x504)<(x488))+((x505)<(x485)))+(x486);
x507 = (x506)+(x483);
x508 = (((x506)<(x486))+((x507)<(x483)))+(x484);
x509 = (x508)+(x481);
x510 = (((x508)<(x484))+((x509)<(x481)))+(x482);
x511 = (x510)+(x479);
x512 = ((x510)<(x482))+((x511)<(x479));
x513 = (((x457)+((x457)*((uintptr_t)4294967295ULL)))<(x457))+(x459);
x514 = (x513)+(x496);
x515 = (((x513)<(x459))+((x514)<(x496)))+(x461);
x516 = ((x515)<(x461))+(x463);
x517 = (x516)+(x494);
x518 = (((x516)<(x463))+((x517)<(x494)))+(x465);
x519 = (x518)+(x497);
x520 = (((x518)<(x465))+((x519)<(x497)))+(x467);
x521 = (x520)+(x499);
x522 = (((x520)<(x467))+((x521)<(x499)))+(x469);
x523 = (x522)+(x501);
x524 = (((x522)<(x469))+((x523)<(x501)))+(x471);
x525 = (x524)+(x503);
x526 = (((x524)<(x471))+((x525)<(x503)))+(x473);
x527 = (x526)+(x505);
x528 = (((x526)<(x473))+((x527)<(x505)))+(x475);
x529 = (x528)+(x507);
x530 = (((x528)<(x475))+((x529)<(x507)))+(x476);
x531 = (x530)+(x509);
x532 = (((x530)<(x476))+((x531)<(x509)))+(x477);
x533 = (x532)+(x511);
x534 = (((x532)<(x477))+((x533)<(x511)))+((x478)+(x446));
x535 = (x534)+((x512)+(x480));
x536 = ((x534)<((x478)+(x446)))+((x535)<((x512)+(x480)));
x537 = (x17)*((uintptr_t)2ULL);
x538 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x17)*((uintptr_t)2ULL))>>64;
x539 = (x17)*((uintptr_t)4294967294ULL);
x540 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x17)*((uintptr_t)4294967294ULL))>>64;
x541 = (x17)*((uintptr_t)2ULL);
x542 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x17)*((uintptr_t)2ULL))>>64;
x543 = (x17)*((uintptr_t)4294967294ULL);
x544 = sizeof(intptr_t) == 4 ? ((uint64_t)(x17)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x17)*((uintptr_t)4294967294ULL))>>64;
x545 = (x538)+(x17);
x546 = (x545)<(x538);
x547 = (x514)+(x17);
x548 = ((x547)<(x514))+(x515);
x549 = (x548)+(x543);
x550 = (((x548)<(x515))+((x549)<(x543)))+(x517);
x551 = (x550)+(x544);
x552 = (((x550)<(x517))+((x551)<(x544)))+(x519);
x553 = (x552)+(x541);
x554 = (((x552)<(x519))+((x553)<(x541)))+(x521);
x555 = (x554)+(x542);
x556 = (((x554)<(x521))+((x555)<(x542)))+(x523);
x557 = (x556)+(x539);
x558 = (((x556)<(x523))+((x557)<(x539)))+(x525);
x559 = (x558)+(x540);
x560 = (((x558)<(x525))+((x559)<(x540)))+(x527);
x561 = (x560)+(x537);
x562 = (((x560)<(x527))+((x561)<(x537)))+(x529);
x563 = (x562)+(x545);
x564 = (((x562)<(x529))+((x563)<(x545)))+(x531);
x565 = (x564)+(x546);
x566 = (((x564)<(x531))+((x565)<(x546)))+(x533);
x567 = ((x566)<(x533))+(x535);
x568 = (x567)<(x535);
x569 = (x547)*((uintptr_t)4294967295ULL);
x570 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x571 = (x547)*((uintptr_t)4294967295ULL);
x572 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x573 = (x547)*((uintptr_t)4294967295ULL);
x574 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x575 = (x547)*((uintptr_t)4294967295ULL);
x576 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x577 = (x547)*((uintptr_t)4294967295ULL);
x578 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x579 = (x547)*((uintptr_t)4294967295ULL);
x580 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x581 = (x547)*((uintptr_t)4294967295ULL);
x582 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x583 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967294ULL))>>64;
x584 = (x547)*((uintptr_t)4294967295ULL);
x585 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x586 = sizeof(intptr_t) == 4 ? ((uint64_t)(x547)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x547)*((uintptr_t)4294967295ULL))>>64;
x587 = (x585)+((x547)*((uintptr_t)4294967294ULL));
x588 = ((x587)<(x585))+(x583);
x589 = (x588)+(x581);
x590 = (((x588)<(x583))+((x589)<(x581)))+(x582);
x591 = (x590)+(x579);
x592 = (((x590)<(x582))+((x591)<(x579)))+(x580);
x593 = (x592)+(x577);
x594 = (((x592)<(x580))+((x593)<(x577)))+(x578);
x595 = (x594)+(x575);
x596 = (((x594)<(x578))+((x595)<(x575)))+(x576);
x597 = (x596)+(x573);
x598 = (((x596)<(x576))+((x597)<(x573)))+(x574);
x599 = (x598)+(x571);
x600 = (((x598)<(x574))+((x599)<(x571)))+(x572);
x601 = (x600)+(x569);
x602 = ((x600)<(x572))+((x601)<(x569));
x603 = (((x547)+((x547)*((uintptr_t)4294967295ULL)))<(x547))+(x549);
x604 = (x603)+(x586);
x605 = (((x603)<(x549))+((x604)<(x586)))+(x551);
x606 = ((x605)<(x551))+(x553);
x607 = (x606)+(x584);
x608 = (((x606)<(x553))+((x607)<(x584)))+(x555);
x609 = (x608)+(x587);
x610 = (((x608)<(x555))+((x609)<(x587)))+(x557);
x611 = (x610)+(x589);
x612 = (((x610)<(x557))+((x611)<(x589)))+(x559);
x613 = (x612)+(x591);
x614 = (((x612)<(x559))+((x613)<(x591)))+(x561);
x615 = (x614)+(x593);
x616 = (((x614)<(x561))+((x615)<(x593)))+(x563);
x617 = (x616)+(x595);
x618 = (((x616)<(x563))+((x617)<(x595)))+(x565);
x619 = (x618)+(x597);
x620 = (((x618)<(x565))+((x619)<(x597)))+(x566);
x621 = (x620)+(x599);
x622 = (((x620)<(x566))+((x621)<(x599)))+(x567);
x623 = (x622)+(x601);
x624 = (((x622)<(x567))+((x623)<(x601)))+((x568)+(x536));
x625 = (x624)+((x602)+(x570));
x626 = ((x624)<((x568)+(x536)))+((x625)<((x602)+(x570)));
x627 = (x18)*((uintptr_t)2ULL);
x628 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x18)*((uintptr_t)2ULL))>>64;
x629 = (x18)*((uintptr_t)4294967294ULL);
x630 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x18)*((uintptr_t)4294967294ULL))>>64;
x631 = (x18)*((uintptr_t)2ULL);
x632 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x18)*((uintptr_t)2ULL))>>64;
x633 = (x18)*((uintptr_t)4294967294ULL);
x634 = sizeof(intptr_t) == 4 ? ((uint64_t)(x18)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x18)*((uintptr_t)4294967294ULL))>>64;
x635 = (x628)+(x18);
x636 = (x635)<(x628);
x637 = (x604)+(x18);
x638 = ((x637)<(x604))+(x605);
x639 = (x638)+(x633);
x640 = (((x638)<(x605))+((x639)<(x633)))+(x607);
x641 = (x640)+(x634);
x642 = (((x640)<(x607))+((x641)<(x634)))+(x609);
x643 = (x642)+(x631);
x644 = (((x642)<(x609))+((x643)<(x631)))+(x611);
x645 = (x644)+(x632);
x646 = (((x644)<(x611))+((x645)<(x632)))+(x613);
x647 = (x646)+(x629);
x648 = (((x646)<(x613))+((x647)<(x629)))+(x615);
x649 = (x648)+(x630);
x650 = (((x648)<(x615))+((x649)<(x630)))+(x617);
x651 = (x650)+(x627);
x652 = (((x650)<(x617))+((x651)<(x627)))+(x619);
x653 = (x652)+(x635);
x654 = (((x652)<(x619))+((x653)<(x635)))+(x621);
x655 = (x654)+(x636);
x656 = (((x654)<(x621))+((x655)<(x636)))+(x623);
x657 = ((x656)<(x623))+(x625);
x658 = (x657)<(x625);
x659 = (x637)*((uintptr_t)4294967295ULL);
x660 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x661 = (x637)*((uintptr_t)4294967295ULL);
x662 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x663 = (x637)*((uintptr_t)4294967295ULL);
x664 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x665 = (x637)*((uintptr_t)4294967295ULL);
x666 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x667 = (x637)*((uintptr_t)4294967295ULL);
x668 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x669 = (x637)*((uintptr_t)4294967295ULL);
x670 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x671 = (x637)*((uintptr_t)4294967295ULL);
x672 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x673 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967294ULL))>>64;
x674 = (x637)*((uintptr_t)4294967295ULL);
x675 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x676 = sizeof(intptr_t) == 4 ? ((uint64_t)(x637)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x637)*((uintptr_t)4294967295ULL))>>64;
x677 = (x675)+((x637)*((uintptr_t)4294967294ULL));
x678 = ((x677)<(x675))+(x673);
x679 = (x678)+(x671);
x680 = (((x678)<(x673))+((x679)<(x671)))+(x672);
x681 = (x680)+(x669);
x682 = (((x680)<(x672))+((x681)<(x669)))+(x670);
x683 = (x682)+(x667);
x684 = (((x682)<(x670))+((x683)<(x667)))+(x668);
x685 = (x684)+(x665);
x686 = (((x684)<(x668))+((x685)<(x665)))+(x666);
x687 = (x686)+(x663);
x688 = (((x686)<(x666))+((x687)<(x663)))+(x664);
x689 = (x688)+(x661);
x690 = (((x688)<(x664))+((x689)<(x661)))+(x662);
x691 = (x690)+(x659);
x692 = ((x690)<(x662))+((x691)<(x659));
x693 = (((x637)+((x637)*((uintptr_t)4294967295ULL)))<(x637))+(x639);
x694 = (x693)+(x676);
x695 = (((x693)<(x639))+((x694)<(x676)))+(x641);
x696 = ((x695)<(x641))+(x643);
x697 = (x696)+(x674);
x698 = (((x696)<(x643))+((x697)<(x674)))+(x645);
x699 = (x698)+(x677);
x700 = (((x698)<(x645))+((x699)<(x677)))+(x647);
x701 = (x700)+(x679);
x702 = (((x700)<(x647))+((x701)<(x679)))+(x649);
x703 = (x702)+(x681);
x704 = (((x702)<(x649))+((x703)<(x681)))+(x651);
x705 = (x704)+(x683);
x706 = (((x704)<(x651))+((x705)<(x683)))+(x653);
x707 = (x706)+(x685);
x708 = (((x706)<(x653))+((x707)<(x685)))+(x655);
x709 = (x708)+(x687);
x710 = (((x708)<(x655))+((x709)<(x687)))+(x656);
x711 = (x710)+(x689);
x712 = (((x710)<(x656))+((x711)<(x689)))+(x657);
x713 = (x712)+(x691);
x714 = (((x712)<(x657))+((x713)<(x691)))+((x658)+(x626));
x715 = (x714)+((x692)+(x660));
x716 = ((x714)<((x658)+(x626)))+((x715)<((x692)+(x660)));
x717 = (x19)*((uintptr_t)2ULL);
x718 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x19)*((uintptr_t)2ULL))>>64;
x719 = (x19)*((uintptr_t)4294967294ULL);
x720 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x19)*((uintptr_t)4294967294ULL))>>64;
x721 = (x19)*((uintptr_t)2ULL);
x722 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x19)*((uintptr_t)2ULL))>>64;
x723 = (x19)*((uintptr_t)4294967294ULL);
x724 = sizeof(intptr_t) == 4 ? ((uint64_t)(x19)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x19)*((uintptr_t)4294967294ULL))>>64;
x725 = (x718)+(x19);
x726 = (x725)<(x718);
x727 = (x694)+(x19);
x728 = ((x727)<(x694))+(x695);
x729 = (x728)+(x723);
x730 = (((x728)<(x695))+((x729)<(x723)))+(x697);
x731 = (x730)+(x724);
x732 = (((x730)<(x697))+((x731)<(x724)))+(x699);
x733 = (x732)+(x721);
x734 = (((x732)<(x699))+((x733)<(x721)))+(x701);
x735 = (x734)+(x722);
x736 = (((x734)<(x701))+((x735)<(x722)))+(x703);
x737 = (x736)+(x719);
x738 = (((x736)<(x703))+((x737)<(x719)))+(x705);
x739 = (x738)+(x720);
x740 = (((x738)<(x705))+((x739)<(x720)))+(x707);
x741 = (x740)+(x717);
x742 = (((x740)<(x707))+((x741)<(x717)))+(x709);
x743 = (x742)+(x725);
x744 = (((x742)<(x709))+((x743)<(x725)))+(x711);
x745 = (x744)+(x726);
x746 = (((x744)<(x711))+((x745)<(x726)))+(x713);
x747 = ((x746)<(x713))+(x715);
x748 = (x747)<(x715);
x749 = (x727)*((uintptr_t)4294967295ULL);
x750 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x751 = (x727)*((uintptr_t)4294967295ULL);
x752 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x753 = (x727)*((uintptr_t)4294967295ULL);
x754 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x755 = (x727)*((uintptr_t)4294967295ULL);
x756 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x757 = (x727)*((uintptr_t)4294967295ULL);
x758 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x759 = (x727)*((uintptr_t)4294967295ULL);
x760 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x761 = (x727)*((uintptr_t)4294967295ULL);
x762 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x763 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967294ULL))>>64;
x764 = (x727)*((uintptr_t)4294967295ULL);
x765 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x766 = sizeof(intptr_t) == 4 ? ((uint64_t)(x727)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x727)*((uintptr_t)4294967295ULL))>>64;
x767 = (x765)+((x727)*((uintptr_t)4294967294ULL));
x768 = ((x767)<(x765))+(x763);
x769 = (x768)+(x761);
x770 = (((x768)<(x763))+((x769)<(x761)))+(x762);
x771 = (x770)+(x759);
x772 = (((x770)<(x762))+((x771)<(x759)))+(x760);
x773 = (x772)+(x757);
x774 = (((x772)<(x760))+((x773)<(x757)))+(x758);
x775 = (x774)+(x755);
x776 = (((x774)<(x758))+((x775)<(x755)))+(x756);
x777 = (x776)+(x753);
x778 = (((x776)<(x756))+((x777)<(x753)))+(x754);
x779 = (x778)+(x751);
x780 = (((x778)<(x754))+((x779)<(x751)))+(x752);
x781 = (x780)+(x749);
x782 = ((x780)<(x752))+((x781)<(x749));
x783 = (((x727)+((x727)*((uintptr_t)4294967295ULL)))<(x727))+(x729);
x784 = (x783)+(x766);
x785 = (((x783)<(x729))+((x784)<(x766)))+(x731);
x786 = ((x785)<(x731))+(x733);
x787 = (x786)+(x764);
x788 = (((x786)<(x733))+((x787)<(x764)))+(x735);
x789 = (x788)+(x767);
x790 = (((x788)<(x735))+((x789)<(x767)))+(x737);
x791 = (x790)+(x769);
x792 = (((x790)<(x737))+((x791)<(x769)))+(x739);
x793 = (x792)+(x771);
x794 = (((x792)<(x739))+((x793)<(x771)))+(x741);
x795 = (x794)+(x773);
x796 = (((x794)<(x741))+((x795)<(x773)))+(x743);
x797 = (x796)+(x775);
x798 = (((x796)<(x743))+((x797)<(x775)))+(x745);
x799 = (x798)+(x777);
x800 = (((x798)<(x745))+((x799)<(x777)))+(x746);
x801 = (x800)+(x779);
x802 = (((x800)<(x746))+((x801)<(x779)))+(x747);
x803 = (x802)+(x781);
x804 = (((x802)<(x747))+((x803)<(x781)))+((x748)+(x716));
x805 = (x804)+((x782)+(x750));
x806 = ((x804)<((x748)+(x716)))+((x805)<((x782)+(x750)));
x807 = (x20)*((uintptr_t)2ULL);
x808 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x20)*((uintptr_t)2ULL))>>64;
x809 = (x20)*((uintptr_t)4294967294ULL);
x810 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x20)*((uintptr_t)4294967294ULL))>>64;
x811 = (x20)*((uintptr_t)2ULL);
x812 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x20)*((uintptr_t)2ULL))>>64;
x813 = (x20)*((uintptr_t)4294967294ULL);
x814 = sizeof(intptr_t) == 4 ? ((uint64_t)(x20)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x20)*((uintptr_t)4294967294ULL))>>64;
x815 = (x808)+(x20);
x816 = (x815)<(x808);
x817 = (x784)+(x20);
x818 = ((x817)<(x784))+(x785);
x819 = (x818)+(x813);
x820 = (((x818)<(x785))+((x819)<(x813)))+(x787);
x821 = (x820)+(x814);
x822 = (((x820)<(x787))+((x821)<(x814)))+(x789);
x823 = (x822)+(x811);
x824 = (((x822)<(x789))+((x823)<(x811)))+(x791);
x825 = (x824)+(x812);
x826 = (((x824)<(x791))+((x825)<(x812)))+(x793);
x827 = (x826)+(x809);
x828 = (((x826)<(x793))+((x827)<(x809)))+(x795);
x829 = (x828)+(x810);
x830 = (((x828)<(x795))+((x829)<(x810)))+(x797);
x831 = (x830)+(x807);
x832 = (((x830)<(x797))+((x831)<(x807)))+(x799);
x833 = (x832)+(x815);
x834 = (((x832)<(x799))+((x833)<(x815)))+(x801);
x835 = (x834)+(x816);
x836 = (((x834)<(x801))+((x835)<(x816)))+(x803);
x837 = ((x836)<(x803))+(x805);
x838 = (x837)<(x805);
x839 = (x817)*((uintptr_t)4294967295ULL);
x840 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x841 = (x817)*((uintptr_t)4294967295ULL);
x842 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x843 = (x817)*((uintptr_t)4294967295ULL);
x844 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x845 = (x817)*((uintptr_t)4294967295ULL);
x846 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x847 = (x817)*((uintptr_t)4294967295ULL);
x848 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x849 = (x817)*((uintptr_t)4294967295ULL);
x850 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x851 = (x817)*((uintptr_t)4294967295ULL);
x852 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x853 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967294ULL))>>64;
x854 = (x817)*((uintptr_t)4294967295ULL);
x855 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x856 = sizeof(intptr_t) == 4 ? ((uint64_t)(x817)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x817)*((uintptr_t)4294967295ULL))>>64;
x857 = (x855)+((x817)*((uintptr_t)4294967294ULL));
x858 = ((x857)<(x855))+(x853);
x859 = (x858)+(x851);
x860 = (((x858)<(x853))+((x859)<(x851)))+(x852);
x861 = (x860)+(x849);
x862 = (((x860)<(x852))+((x861)<(x849)))+(x850);
x863 = (x862)+(x847);
x864 = (((x862)<(x850))+((x863)<(x847)))+(x848);
x865 = (x864)+(x845);
x866 = (((x864)<(x848))+((x865)<(x845)))+(x846);
x867 = (x866)+(x843);
x868 = (((x866)<(x846))+((x867)<(x843)))+(x844);
x869 = (x868)+(x841);
x870 = (((x868)<(x844))+((x869)<(x841)))+(x842);
x871 = (x870)+(x839);
x872 = ((x870)<(x842))+((x871)<(x839));
x873 = (((x817)+((x817)*((uintptr_t)4294967295ULL)))<(x817))+(x819);
x874 = (x873)+(x856);
x875 = (((x873)<(x819))+((x874)<(x856)))+(x821);
x876 = ((x875)<(x821))+(x823);
x877 = (x876)+(x854);
x878 = (((x876)<(x823))+((x877)<(x854)))+(x825);
x879 = (x878)+(x857);
x880 = (((x878)<(x825))+((x879)<(x857)))+(x827);
x881 = (x880)+(x859);
x882 = (((x880)<(x827))+((x881)<(x859)))+(x829);
x883 = (x882)+(x861);
x884 = (((x882)<(x829))+((x883)<(x861)))+(x831);
x885 = (x884)+(x863);
x886 = (((x884)<(x831))+((x885)<(x863)))+(x833);
x887 = (x886)+(x865);
x888 = (((x886)<(x833))+((x887)<(x865)))+(x835);
x889 = (x888)+(x867);
x890 = (((x888)<(x835))+((x889)<(x867)))+(x836);
x891 = (x890)+(x869);
x892 = (((x890)<(x836))+((x891)<(x869)))+(x837);
x893 = (x892)+(x871);
x894 = (((x892)<(x837))+((x893)<(x871)))+((x838)+(x806));
x895 = (x894)+((x872)+(x840));
x896 = ((x894)<((x838)+(x806)))+((x895)<((x872)+(x840)));
x897 = (x21)*((uintptr_t)2ULL);
x898 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x21)*((uintptr_t)2ULL))>>64;
x899 = (x21)*((uintptr_t)4294967294ULL);
x900 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x21)*((uintptr_t)4294967294ULL))>>64;
x901 = (x21)*((uintptr_t)2ULL);
x902 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x21)*((uintptr_t)2ULL))>>64;
x903 = (x21)*((uintptr_t)4294967294ULL);
x904 = sizeof(intptr_t) == 4 ? ((uint64_t)(x21)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x21)*((uintptr_t)4294967294ULL))>>64;
x905 = (x898)+(x21);
x906 = (x905)<(x898);
x907 = (x874)+(x21);
x908 = ((x907)<(x874))+(x875);
x909 = (x908)+(x903);
x910 = (((x908)<(x875))+((x909)<(x903)))+(x877);
x911 = (x910)+(x904);
x912 = (((x910)<(x877))+((x911)<(x904)))+(x879);
x913 = (x912)+(x901);
x914 = (((x912)<(x879))+((x913)<(x901)))+(x881);
x915 = (x914)+(x902);
x916 = (((x914)<(x881))+((x915)<(x902)))+(x883);
x917 = (x916)+(x899);
x918 = (((x916)<(x883))+((x917)<(x899)))+(x885);
x919 = (x918)+(x900);
x920 = (((x918)<(x885))+((x919)<(x900)))+(x887);
x921 = (x920)+(x897);
x922 = (((x920)<(x887))+((x921)<(x897)))+(x889);
x923 = (x922)+(x905);
x924 = (((x922)<(x889))+((x923)<(x905)))+(x891);
x925 = (x924)+(x906);
x926 = (((x924)<(x891))+((x925)<(x906)))+(x893);
x927 = ((x926)<(x893))+(x895);
x928 = (x927)<(x895);
x929 = (x907)*((uintptr_t)4294967295ULL);
x930 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x931 = (x907)*((uintptr_t)4294967295ULL);
x932 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x933 = (x907)*((uintptr_t)4294967295ULL);
x934 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x935 = (x907)*((uintptr_t)4294967295ULL);
x936 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x937 = (x907)*((uintptr_t)4294967295ULL);
x938 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x939 = (x907)*((uintptr_t)4294967295ULL);
x940 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x941 = (x907)*((uintptr_t)4294967295ULL);
x942 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x943 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967294ULL))>>64;
x944 = (x907)*((uintptr_t)4294967295ULL);
x945 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x946 = sizeof(intptr_t) == 4 ? ((uint64_t)(x907)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x907)*((uintptr_t)4294967295ULL))>>64;
x947 = (x945)+((x907)*((uintptr_t)4294967294ULL));
x948 = ((x947)<(x945))+(x943);
x949 = (x948)+(x941);
x950 = (((x948)<(x943))+((x949)<(x941)))+(x942);
x951 = (x950)+(x939);
x952 = (((x950)<(x942))+((x951)<(x939)))+(x940);
x953 = (x952)+(x937);
x954 = (((x952)<(x940))+((x953)<(x937)))+(x938);
x955 = (x954)+(x935);
x956 = (((x954)<(x938))+((x955)<(x935)))+(x936);
x957 = (x956)+(x933);
x958 = (((x956)<(x936))+((x957)<(x933)))+(x934);
x959 = (x958)+(x931);
x960 = (((x958)<(x934))+((x959)<(x931)))+(x932);
x961 = (x960)+(x929);
x962 = ((x960)<(x932))+((x961)<(x929));
x963 = (((x907)+((x907)*((uintptr_t)4294967295ULL)))<(x907))+(x909);
x964 = (x963)+(x946);
x965 = (((x963)<(x909))+((x964)<(x946)))+(x911);
x966 = ((x965)<(x911))+(x913);
x967 = (x966)+(x944);
x968 = (((x966)<(x913))+((x967)<(x944)))+(x915);
x969 = (x968)+(x947);
x970 = (((x968)<(x915))+((x969)<(x947)))+(x917);
x971 = (x970)+(x949);
x972 = (((x970)<(x917))+((x971)<(x949)))+(x919);
x973 = (x972)+(x951);
x974 = (((x972)<(x919))+((x973)<(x951)))+(x921);
x975 = (x974)+(x953);
x976 = (((x974)<(x921))+((x975)<(x953)))+(x923);
x977 = (x976)+(x955);
x978 = (((x976)<(x923))+((x977)<(x955)))+(x925);
x979 = (x978)+(x957);
x980 = (((x978)<(x925))+((x979)<(x957)))+(x926);
x981 = (x980)+(x959);
x982 = (((x980)<(x926))+((x981)<(x959)))+(x927);
x983 = (x982)+(x961);
x984 = (((x982)<(x927))+((x983)<(x961)))+((x928)+(x896));
x985 = (x984)+((x962)+(x930));
x986 = ((x984)<((x928)+(x896)))+((x985)<((x962)+(x930)));
x987 = (x22)*((uintptr_t)2ULL);
x988 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x22)*((uintptr_t)2ULL))>>64;
x989 = (x22)*((uintptr_t)4294967294ULL);
x990 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x22)*((uintptr_t)4294967294ULL))>>64;
x991 = (x22)*((uintptr_t)2ULL);
x992 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*((uintptr_t)2ULL))>>32 : ((__uint128_t)(x22)*((uintptr_t)2ULL))>>64;
x993 = (x22)*((uintptr_t)4294967294ULL);
x994 = sizeof(intptr_t) == 4 ? ((uint64_t)(x22)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x22)*((uintptr_t)4294967294ULL))>>64;
x995 = (x988)+(x22);
x996 = (x995)<(x988);
x997 = (x964)+(x22);
x998 = ((x997)<(x964))+(x965);
x999 = (x998)+(x993);
x1000 = (((x998)<(x965))+((x999)<(x993)))+(x967);
x1001 = (x1000)+(x994);
x1002 = (((x1000)<(x967))+((x1001)<(x994)))+(x969);
x1003 = (x1002)+(x991);
x1004 = (((x1002)<(x969))+((x1003)<(x991)))+(x971);
x1005 = (x1004)+(x992);
x1006 = (((x1004)<(x971))+((x1005)<(x992)))+(x973);
x1007 = (x1006)+(x989);
x1008 = (((x1006)<(x973))+((x1007)<(x989)))+(x975);
x1009 = (x1008)+(x990);
x1010 = (((x1008)<(x975))+((x1009)<(x990)))+(x977);
x1011 = (x1010)+(x987);
x1012 = (((x1010)<(x977))+((x1011)<(x987)))+(x979);
x1013 = (x1012)+(x995);
x1014 = (((x1012)<(x979))+((x1013)<(x995)))+(x981);
x1015 = (x1014)+(x996);
x1016 = (((x1014)<(x981))+((x1015)<(x996)))+(x983);
x1017 = ((x1016)<(x983))+(x985);
x1018 = (x1017)<(x985);
x1019 = (x997)*((uintptr_t)4294967295ULL);
x1020 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1021 = (x997)*((uintptr_t)4294967295ULL);
x1022 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1023 = (x997)*((uintptr_t)4294967295ULL);
x1024 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1025 = (x997)*((uintptr_t)4294967295ULL);
x1026 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1027 = (x997)*((uintptr_t)4294967295ULL);
x1028 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1029 = (x997)*((uintptr_t)4294967295ULL);
x1030 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1031 = (x997)*((uintptr_t)4294967295ULL);
x1032 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1033 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967294ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967294ULL))>>64;
x1034 = (x997)*((uintptr_t)4294967295ULL);
x1035 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1036 = sizeof(intptr_t) == 4 ? ((uint64_t)(x997)*((uintptr_t)4294967295ULL))>>32 : ((__uint128_t)(x997)*((uintptr_t)4294967295ULL))>>64;
x1037 = (x1035)+((x997)*((uintptr_t)4294967294ULL));
x1038 = ((x1037)<(x1035))+(x1033);
x1039 = (x1038)+(x1031);
x1040 = (((x1038)<(x1033))+((x1039)<(x1031)))+(x1032);
x1041 = (x1040)+(x1029);
x1042 = (((x1040)<(x1032))+((x1041)<(x1029)))+(x1030);
x1043 = (x1042)+(x1027);
x1044 = (((x1042)<(x1030))+((x1043)<(x1027)))+(x1028);
x1045 = (x1044)+(x1025);
x1046 = (((x1044)<(x1028))+((x1045)<(x1025)))+(x1026);
x1047 = (x1046)+(x1023);
x1048 = (((x1046)<(x1026))+((x1047)<(x1023)))+(x1024);
x1049 = (x1048)+(x1021);
x1050 = (((x1048)<(x1024))+((x1049)<(x1021)))+(x1022);
x1051 = (x1050)+(x1019);
x1052 = ((x1050)<(x1022))+((x1051)<(x1019));
x1053 = (((x997)+((x997)*((uintptr_t)4294967295ULL)))<(x997))+(x999);
x1054 = (x1053)+(x1036);
x1055 = (((x1053)<(x999))+((x1054)<(x1036)))+(x1001);
x1056 = ((x1055)<(x1001))+(x1003);
x1057 = (x1056)+(x1034);
x1058 = (((x1056)<(x1003))+((x1057)<(x1034)))+(x1005);
x1059 = (x1058)+(x1037);
x1060 = (((x1058)<(x1005))+((x1059)<(x1037)))+(x1007);
x1061 = (x1060)+(x1039);
x1062 = (((x1060)<(x1007))+((x1061)<(x1039)))+(x1009);
x1063 = (x1062)+(x1041);
x1064 = (((x1062)<(x1009))+((x1063)<(x1041)))+(x1011);
x1065 = (x1064)+(x1043);
x1066 = (((x1064)<(x1011))+((x1065)<(x1043)))+(x1013);
x1067 = (x1066)+(x1045);
x1068 = (((x1066)<(x1013))+((x1067)<(x1045)))+(x1015);
x1069 = (x1068)+(x1047);
x1070 = (((x1068)<(x1015))+((x1069)<(x1047)))+(x1016);
x1071 = (x1070)+(x1049);
x1072 = (((x1070)<(x1016))+((x1071)<(x1049)))+(x1017);
x1073 = (x1072)+(x1051);
x1074 = (((x1072)<(x1017))+((x1073)<(x1051)))+((x1018)+(x986));
x1075 = (x1074)+((x1052)+(x1020));
x1076 = ((x1074)<((x1018)+(x986)))+((x1075)<((x1052)+(x1020)));
x1077 = (x1054)-((uintptr_t)4294967295ULL);
x1078 = (x1055)-((x1054)<(x1077));
x1079 = (x1057)-((x1055)<(x1078));
x1080 = (x1059)-((uintptr_t)4294967295ULL);
x1081 = (x1080)-((x1057)<(x1079));
x1082 = (x1061)-((uintptr_t)4294967294ULL);
x1083 = (x1082)-(((x1059)<(x1080))+((x1080)<(x1081)));
x1084 = (x1063)-((uintptr_t)4294967295ULL);
x1085 = (x1084)-(((x1061)<(x1082))+((x1082)<(x1083)));
x1086 = (x1065)-((uintptr_t)4294967295ULL);
x1087 = (x1086)-(((x1063)<(x1084))+((x1084)<(x1085)));
x1088 = (x1067)-((uintptr_t)4294967295ULL);
x1089 = (x1088)-(((x1065)<(x1086))+((x1086)<(x1087)));
x1090 = (x1069)-((uintptr_t)4294967295ULL);
x1091 = (x1090)-(((x1067)<(x1088))+((x1088)<(x1089)));
x1092 = (x1071)-((uintptr_t)4294967295ULL);
x1093 = (x1092)-(((x1069)<(x1090))+((x1090)<(x1091)));
x1094 = (x1073)-((uintptr_t)4294967295ULL);
x1095 = (x1094)-(((x1071)<(x1092))+((x1092)<(x1093)));
x1096 = (x1075)-((uintptr_t)4294967295ULL);
x1097 = (x1096)-(((x1073)<(x1094))+((x1094)<(x1095)));
x1098 = (x1076)<((x1076)-(((x1075)<(x1096))+((x1096)<(x1097))));
x1099 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1100 = (x1099)^((uintptr_t)4294967295ULL);
x1101 = ((x1054)&(x1099))|((x1077)&(x1100));
x1102 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1103 = (x1102)^((uintptr_t)4294967295ULL);
x1104 = ((x1055)&(x1102))|((x1078)&(x1103));
x1105 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1106 = (x1105)^((uintptr_t)4294967295ULL);
x1107 = ((x1057)&(x1105))|((x1079)&(x1106));
x1108 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1109 = (x1108)^((uintptr_t)4294967295ULL);
x1110 = ((x1059)&(x1108))|((x1081)&(x1109));
x1111 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1112 = (x1111)^((uintptr_t)4294967295ULL);
x1113 = ((x1061)&(x1111))|((x1083)&(x1112));
x1114 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1115 = (x1114)^((uintptr_t)4294967295ULL);
x1116 = ((x1063)&(x1114))|((x1085)&(x1115));
x1117 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1118 = (x1117)^((uintptr_t)4294967295ULL);
x1119 = ((x1065)&(x1117))|((x1087)&(x1118));
x1120 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1121 = (x1120)^((uintptr_t)4294967295ULL);
x1122 = ((x1067)&(x1120))|((x1089)&(x1121));
x1123 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1124 = (x1123)^((uintptr_t)4294967295ULL);
x1125 = ((x1069)&(x1123))|((x1091)&(x1124));
x1126 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1127 = (x1126)^((uintptr_t)4294967295ULL);
x1128 = ((x1071)&(x1126))|((x1093)&(x1127));
x1129 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1130 = (x1129)^((uintptr_t)4294967295ULL);
x1131 = ((x1073)&(x1129))|((x1095)&(x1130));
x1132 = ((uintptr_t)-1ULL)+((x1098)==((uintptr_t)0ULL));
x1133 = (x1132)^((uintptr_t)4294967295ULL);
x1134 = ((x1075)&(x1132))|((x1097)&(x1133));
x1135 = x1101;
x1136 = x1104;
x1137 = x1107;
x1138 = x1110;
x1139 = x1113;
x1140 = x1116;
x1141 = x1119;
x1142 = x1122;
x1143 = x1125;
x1144 = x1128;
x1145 = x1131;
x1146 = x1134;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x1135, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x1136, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x1137, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x1138, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x1139, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x1140, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x1141, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x1142, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x1143, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x1144, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x1145, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x1146, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_to_montgomery(uint32_t out1[12], const uint32_t arg1[12]) {
internal_fiat_p384_to_montgomery((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [0x0 ~> 0xffffffff]
*/
static
uintptr_t internal_fiat_p384_nonzero(uintptr_t in0) {
uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12, out0, x13;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = (x0)|((x1)|((x2)|((x3)|((x4)|((x5)|((x6)|((x7)|((x8)|((x9)|((x10)|(x11)))))))))));
x13 = x12;
out0 = x13;
return out0;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_nonzero(uint32_t* out1, const uint32_t arg1[12]) {
*out1 = (uint32_t)internal_fiat_p384_nonzero((uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [0x0 ~> 0x1]
* in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_selectznz(uintptr_t out0, uintptr_t in0, uintptr_t in1, uintptr_t in2) {
uintptr_t x12, x24, x0, x25, x13, x27, x1, x28, x14, x30, x2, x31, x15, x33, x3, x34, x16, x36, x4, x37, x17, x39, x5, x40, x18, x42, x6, x43, x19, x45, x7, x46, x20, x48, x8, x49, x21, x51, x9, x52, x22, x54, x10, x55, x23, x57, x11, x58, x26, x29, x32, x35, x38, x41, x44, x47, x50, x53, x56, x59, x60, x61, x62, x63, x64, x65, x66, x67, x68, x69, x70, x71;
/*skip*/
x0 = _br2_load((in1)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in1)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in1)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in1)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in1)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in1)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in1)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in1)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in1)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in1)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in1)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in1)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
x12 = _br2_load((in2)+((uintptr_t)0ULL), sizeof(uintptr_t));
x13 = _br2_load((in2)+((uintptr_t)4ULL), sizeof(uintptr_t));
x14 = _br2_load((in2)+((uintptr_t)8ULL), sizeof(uintptr_t));
x15 = _br2_load((in2)+((uintptr_t)12ULL), sizeof(uintptr_t));
x16 = _br2_load((in2)+((uintptr_t)16ULL), sizeof(uintptr_t));
x17 = _br2_load((in2)+((uintptr_t)20ULL), sizeof(uintptr_t));
x18 = _br2_load((in2)+((uintptr_t)24ULL), sizeof(uintptr_t));
x19 = _br2_load((in2)+((uintptr_t)28ULL), sizeof(uintptr_t));
x20 = _br2_load((in2)+((uintptr_t)32ULL), sizeof(uintptr_t));
x21 = _br2_load((in2)+((uintptr_t)36ULL), sizeof(uintptr_t));
x22 = _br2_load((in2)+((uintptr_t)40ULL), sizeof(uintptr_t));
x23 = _br2_load((in2)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x24 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x25 = (x24)^((uintptr_t)4294967295ULL);
x26 = ((x12)&(x24))|((x0)&(x25));
x27 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x28 = (x27)^((uintptr_t)4294967295ULL);
x29 = ((x13)&(x27))|((x1)&(x28));
x30 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x31 = (x30)^((uintptr_t)4294967295ULL);
x32 = ((x14)&(x30))|((x2)&(x31));
x33 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x34 = (x33)^((uintptr_t)4294967295ULL);
x35 = ((x15)&(x33))|((x3)&(x34));
x36 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x37 = (x36)^((uintptr_t)4294967295ULL);
x38 = ((x16)&(x36))|((x4)&(x37));
x39 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x40 = (x39)^((uintptr_t)4294967295ULL);
x41 = ((x17)&(x39))|((x5)&(x40));
x42 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x43 = (x42)^((uintptr_t)4294967295ULL);
x44 = ((x18)&(x42))|((x6)&(x43));
x45 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x46 = (x45)^((uintptr_t)4294967295ULL);
x47 = ((x19)&(x45))|((x7)&(x46));
x48 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x49 = (x48)^((uintptr_t)4294967295ULL);
x50 = ((x20)&(x48))|((x8)&(x49));
x51 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x52 = (x51)^((uintptr_t)4294967295ULL);
x53 = ((x21)&(x51))|((x9)&(x52));
x54 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x55 = (x54)^((uintptr_t)4294967295ULL);
x56 = ((x22)&(x54))|((x10)&(x55));
x57 = ((uintptr_t)-1ULL)+((in0)==((uintptr_t)0ULL));
x58 = (x57)^((uintptr_t)4294967295ULL);
x59 = ((x23)&(x57))|((x11)&(x58));
x60 = x26;
x61 = x29;
x62 = x32;
x63 = x35;
x64 = x38;
x65 = x41;
x66 = x44;
x67 = x47;
x68 = x50;
x69 = x53;
x70 = x56;
x71 = x59;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x60, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x61, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x62, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x63, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x64, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x65, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x66, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x67, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x68, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x69, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x70, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x71, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_selectznz(uint32_t out1[12], uint8_t arg1, const uint32_t arg2[12], const uint32_t arg3[12]) {
internal_fiat_p384_selectznz((uintptr_t)out1, (uintptr_t)arg1, (uintptr_t)arg2, (uintptr_t)arg3);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]]
*/
static
void internal_fiat_p384_to_bytes(uintptr_t out0, uintptr_t in0) {
uintptr_t x11, x10, x9, x8, x7, x6, x5, x4, x3, x2, x1, x0, x23, x25, x27, x22, x31, x33, x21, x37, x39, x20, x43, x45, x19, x49, x51, x18, x55, x57, x17, x61, x63, x16, x67, x69, x15, x73, x75, x14, x79, x81, x13, x85, x87, x12, x91, x93, x24, x26, x28, x29, x30, x32, x34, x35, x36, x38, x40, x41, x42, x44, x46, x47, x48, x50, x52, x53, x54, x56, x58, x59, x60, x62, x64, x65, x66, x68, x70, x71, x72, x74, x76, x77, x78, x80, x82, x83, x84, x86, x88, x89, x90, x92, x94, x95, x96, x97, x98, x99, x100, x101, x102, x103, x104, x105, x106, x107, x108, x109, x110, x111, x112, x113, x114, x115, x116, x117, x118, x119, x120, x121, x122, x123, x124, x125, x126, x127, x128, x129, x130, x131, x132, x133, x134, x135, x136, x137, x138, x139, x140, x141, x142, x143;
x0 = _br2_load((in0)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in0)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in0)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in0)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in0)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in0)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in0)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in0)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in0)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in0)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in0)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in0)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x12 = x11;
x13 = x10;
x14 = x9;
x15 = x8;
x16 = x7;
x17 = x6;
x18 = x5;
x19 = x4;
x20 = x3;
x21 = x2;
x22 = x1;
x23 = x0;
x24 = (x23)&((uintptr_t)255ULL);
x25 = (x23)>>((uintptr_t)8ULL);
x26 = (x25)&((uintptr_t)255ULL);
x27 = (x25)>>((uintptr_t)8ULL);
x28 = (x27)&((uintptr_t)255ULL);
x29 = (x27)>>((uintptr_t)8ULL);
x30 = (x22)&((uintptr_t)255ULL);
x31 = (x22)>>((uintptr_t)8ULL);
x32 = (x31)&((uintptr_t)255ULL);
x33 = (x31)>>((uintptr_t)8ULL);
x34 = (x33)&((uintptr_t)255ULL);
x35 = (x33)>>((uintptr_t)8ULL);
x36 = (x21)&((uintptr_t)255ULL);
x37 = (x21)>>((uintptr_t)8ULL);
x38 = (x37)&((uintptr_t)255ULL);
x39 = (x37)>>((uintptr_t)8ULL);
x40 = (x39)&((uintptr_t)255ULL);
x41 = (x39)>>((uintptr_t)8ULL);
x42 = (x20)&((uintptr_t)255ULL);
x43 = (x20)>>((uintptr_t)8ULL);
x44 = (x43)&((uintptr_t)255ULL);
x45 = (x43)>>((uintptr_t)8ULL);
x46 = (x45)&((uintptr_t)255ULL);
x47 = (x45)>>((uintptr_t)8ULL);
x48 = (x19)&((uintptr_t)255ULL);
x49 = (x19)>>((uintptr_t)8ULL);
x50 = (x49)&((uintptr_t)255ULL);
x51 = (x49)>>((uintptr_t)8ULL);
x52 = (x51)&((uintptr_t)255ULL);
x53 = (x51)>>((uintptr_t)8ULL);
x54 = (x18)&((uintptr_t)255ULL);
x55 = (x18)>>((uintptr_t)8ULL);
x56 = (x55)&((uintptr_t)255ULL);
x57 = (x55)>>((uintptr_t)8ULL);
x58 = (x57)&((uintptr_t)255ULL);
x59 = (x57)>>((uintptr_t)8ULL);
x60 = (x17)&((uintptr_t)255ULL);
x61 = (x17)>>((uintptr_t)8ULL);
x62 = (x61)&((uintptr_t)255ULL);
x63 = (x61)>>((uintptr_t)8ULL);
x64 = (x63)&((uintptr_t)255ULL);
x65 = (x63)>>((uintptr_t)8ULL);
x66 = (x16)&((uintptr_t)255ULL);
x67 = (x16)>>((uintptr_t)8ULL);
x68 = (x67)&((uintptr_t)255ULL);
x69 = (x67)>>((uintptr_t)8ULL);
x70 = (x69)&((uintptr_t)255ULL);
x71 = (x69)>>((uintptr_t)8ULL);
x72 = (x15)&((uintptr_t)255ULL);
x73 = (x15)>>((uintptr_t)8ULL);
x74 = (x73)&((uintptr_t)255ULL);
x75 = (x73)>>((uintptr_t)8ULL);
x76 = (x75)&((uintptr_t)255ULL);
x77 = (x75)>>((uintptr_t)8ULL);
x78 = (x14)&((uintptr_t)255ULL);
x79 = (x14)>>((uintptr_t)8ULL);
x80 = (x79)&((uintptr_t)255ULL);
x81 = (x79)>>((uintptr_t)8ULL);
x82 = (x81)&((uintptr_t)255ULL);
x83 = (x81)>>((uintptr_t)8ULL);
x84 = (x13)&((uintptr_t)255ULL);
x85 = (x13)>>((uintptr_t)8ULL);
x86 = (x85)&((uintptr_t)255ULL);
x87 = (x85)>>((uintptr_t)8ULL);
x88 = (x87)&((uintptr_t)255ULL);
x89 = (x87)>>((uintptr_t)8ULL);
x90 = (x12)&((uintptr_t)255ULL);
x91 = (x12)>>((uintptr_t)8ULL);
x92 = (x91)&((uintptr_t)255ULL);
x93 = (x91)>>((uintptr_t)8ULL);
x94 = (x93)&((uintptr_t)255ULL);
x95 = (x93)>>((uintptr_t)8ULL);
x96 = x24;
x97 = x26;
x98 = x28;
x99 = x29;
x100 = x30;
x101 = x32;
x102 = x34;
x103 = x35;
x104 = x36;
x105 = x38;
x106 = x40;
x107 = x41;
x108 = x42;
x109 = x44;
x110 = x46;
x111 = x47;
x112 = x48;
x113 = x50;
x114 = x52;
x115 = x53;
x116 = x54;
x117 = x56;
x118 = x58;
x119 = x59;
x120 = x60;
x121 = x62;
x122 = x64;
x123 = x65;
x124 = x66;
x125 = x68;
x126 = x70;
x127 = x71;
x128 = x72;
x129 = x74;
x130 = x76;
x131 = x77;
x132 = x78;
x133 = x80;
x134 = x82;
x135 = x83;
x136 = x84;
x137 = x86;
x138 = x88;
x139 = x89;
x140 = x90;
x141 = x92;
x142 = x94;
x143 = x95;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x96, 1);
_br2_store((out0)+((uintptr_t)1ULL), x97, 1);
_br2_store((out0)+((uintptr_t)2ULL), x98, 1);
_br2_store((out0)+((uintptr_t)3ULL), x99, 1);
_br2_store((out0)+((uintptr_t)4ULL), x100, 1);
_br2_store((out0)+((uintptr_t)5ULL), x101, 1);
_br2_store((out0)+((uintptr_t)6ULL), x102, 1);
_br2_store((out0)+((uintptr_t)7ULL), x103, 1);
_br2_store((out0)+((uintptr_t)8ULL), x104, 1);
_br2_store((out0)+((uintptr_t)9ULL), x105, 1);
_br2_store((out0)+((uintptr_t)10ULL), x106, 1);
_br2_store((out0)+((uintptr_t)11ULL), x107, 1);
_br2_store((out0)+((uintptr_t)12ULL), x108, 1);
_br2_store((out0)+((uintptr_t)13ULL), x109, 1);
_br2_store((out0)+((uintptr_t)14ULL), x110, 1);
_br2_store((out0)+((uintptr_t)15ULL), x111, 1);
_br2_store((out0)+((uintptr_t)16ULL), x112, 1);
_br2_store((out0)+((uintptr_t)17ULL), x113, 1);
_br2_store((out0)+((uintptr_t)18ULL), x114, 1);
_br2_store((out0)+((uintptr_t)19ULL), x115, 1);
_br2_store((out0)+((uintptr_t)20ULL), x116, 1);
_br2_store((out0)+((uintptr_t)21ULL), x117, 1);
_br2_store((out0)+((uintptr_t)22ULL), x118, 1);
_br2_store((out0)+((uintptr_t)23ULL), x119, 1);
_br2_store((out0)+((uintptr_t)24ULL), x120, 1);
_br2_store((out0)+((uintptr_t)25ULL), x121, 1);
_br2_store((out0)+((uintptr_t)26ULL), x122, 1);
_br2_store((out0)+((uintptr_t)27ULL), x123, 1);
_br2_store((out0)+((uintptr_t)28ULL), x124, 1);
_br2_store((out0)+((uintptr_t)29ULL), x125, 1);
_br2_store((out0)+((uintptr_t)30ULL), x126, 1);
_br2_store((out0)+((uintptr_t)31ULL), x127, 1);
_br2_store((out0)+((uintptr_t)32ULL), x128, 1);
_br2_store((out0)+((uintptr_t)33ULL), x129, 1);
_br2_store((out0)+((uintptr_t)34ULL), x130, 1);
_br2_store((out0)+((uintptr_t)35ULL), x131, 1);
_br2_store((out0)+((uintptr_t)36ULL), x132, 1);
_br2_store((out0)+((uintptr_t)37ULL), x133, 1);
_br2_store((out0)+((uintptr_t)38ULL), x134, 1);
_br2_store((out0)+((uintptr_t)39ULL), x135, 1);
_br2_store((out0)+((uintptr_t)40ULL), x136, 1);
_br2_store((out0)+((uintptr_t)41ULL), x137, 1);
_br2_store((out0)+((uintptr_t)42ULL), x138, 1);
_br2_store((out0)+((uintptr_t)43ULL), x139, 1);
_br2_store((out0)+((uintptr_t)44ULL), x140, 1);
_br2_store((out0)+((uintptr_t)45ULL), x141, 1);
_br2_store((out0)+((uintptr_t)46ULL), x142, 1);
_br2_store((out0)+((uintptr_t)47ULL), x143, 1);
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_to_bytes(uint8_t out1[48], const uint32_t arg1[12]) {
internal_fiat_p384_to_bytes((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* in0: [[0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff], [0x0 ~> 0xff]]
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_from_bytes(uintptr_t out0, uintptr_t in0) {
uintptr_t x47, x46, x45, x44, x43, x42, x41, x40, x39, x38, x37, x36, x35, x34, x33, x32, x31, x30, x29, x28, x27, x26, x25, x24, x23, x22, x21, x20, x19, x18, x17, x16, x15, x14, x13, x12, x11, x10, x9, x8, x7, x6, x5, x4, x3, x2, x1, x0, x94, x95, x93, x96, x92, x97, x90, x91, x89, x99, x88, x100, x86, x87, x85, x102, x84, x103, x82, x83, x81, x105, x80, x106, x78, x79, x77, x108, x76, x109, x74, x75, x73, x111, x72, x112, x70, x71, x69, x114, x68, x115, x66, x67, x65, x117, x64, x118, x62, x63, x61, x120, x60, x121, x58, x59, x57, x123, x56, x124, x54, x55, x53, x126, x52, x127, x50, x51, x49, x129, x48, x130, x98, x101, x104, x107, x110, x113, x116, x119, x122, x125, x128, x131, x132, x133, x134, x135, x136, x137, x138, x139, x140, x141, x142, x143;
x0 = _br2_load((in0)+((uintptr_t)0ULL), 1);
x1 = _br2_load((in0)+((uintptr_t)1ULL), 1);
x2 = _br2_load((in0)+((uintptr_t)2ULL), 1);
x3 = _br2_load((in0)+((uintptr_t)3ULL), 1);
x4 = _br2_load((in0)+((uintptr_t)4ULL), 1);
x5 = _br2_load((in0)+((uintptr_t)5ULL), 1);
x6 = _br2_load((in0)+((uintptr_t)6ULL), 1);
x7 = _br2_load((in0)+((uintptr_t)7ULL), 1);
x8 = _br2_load((in0)+((uintptr_t)8ULL), 1);
x9 = _br2_load((in0)+((uintptr_t)9ULL), 1);
x10 = _br2_load((in0)+((uintptr_t)10ULL), 1);
x11 = _br2_load((in0)+((uintptr_t)11ULL), 1);
x12 = _br2_load((in0)+((uintptr_t)12ULL), 1);
x13 = _br2_load((in0)+((uintptr_t)13ULL), 1);
x14 = _br2_load((in0)+((uintptr_t)14ULL), 1);
x15 = _br2_load((in0)+((uintptr_t)15ULL), 1);
x16 = _br2_load((in0)+((uintptr_t)16ULL), 1);
x17 = _br2_load((in0)+((uintptr_t)17ULL), 1);
x18 = _br2_load((in0)+((uintptr_t)18ULL), 1);
x19 = _br2_load((in0)+((uintptr_t)19ULL), 1);
x20 = _br2_load((in0)+((uintptr_t)20ULL), 1);
x21 = _br2_load((in0)+((uintptr_t)21ULL), 1);
x22 = _br2_load((in0)+((uintptr_t)22ULL), 1);
x23 = _br2_load((in0)+((uintptr_t)23ULL), 1);
x24 = _br2_load((in0)+((uintptr_t)24ULL), 1);
x25 = _br2_load((in0)+((uintptr_t)25ULL), 1);
x26 = _br2_load((in0)+((uintptr_t)26ULL), 1);
x27 = _br2_load((in0)+((uintptr_t)27ULL), 1);
x28 = _br2_load((in0)+((uintptr_t)28ULL), 1);
x29 = _br2_load((in0)+((uintptr_t)29ULL), 1);
x30 = _br2_load((in0)+((uintptr_t)30ULL), 1);
x31 = _br2_load((in0)+((uintptr_t)31ULL), 1);
x32 = _br2_load((in0)+((uintptr_t)32ULL), 1);
x33 = _br2_load((in0)+((uintptr_t)33ULL), 1);
x34 = _br2_load((in0)+((uintptr_t)34ULL), 1);
x35 = _br2_load((in0)+((uintptr_t)35ULL), 1);
x36 = _br2_load((in0)+((uintptr_t)36ULL), 1);
x37 = _br2_load((in0)+((uintptr_t)37ULL), 1);
x38 = _br2_load((in0)+((uintptr_t)38ULL), 1);
x39 = _br2_load((in0)+((uintptr_t)39ULL), 1);
x40 = _br2_load((in0)+((uintptr_t)40ULL), 1);
x41 = _br2_load((in0)+((uintptr_t)41ULL), 1);
x42 = _br2_load((in0)+((uintptr_t)42ULL), 1);
x43 = _br2_load((in0)+((uintptr_t)43ULL), 1);
x44 = _br2_load((in0)+((uintptr_t)44ULL), 1);
x45 = _br2_load((in0)+((uintptr_t)45ULL), 1);
x46 = _br2_load((in0)+((uintptr_t)46ULL), 1);
x47 = _br2_load((in0)+((uintptr_t)47ULL), 1);
/*skip*/
/*skip*/
x48 = (x47)<<((uintptr_t)24ULL);
x49 = (x46)<<((uintptr_t)16ULL);
x50 = (x45)<<((uintptr_t)8ULL);
x51 = x44;
x52 = (x43)<<((uintptr_t)24ULL);
x53 = (x42)<<((uintptr_t)16ULL);
x54 = (x41)<<((uintptr_t)8ULL);
x55 = x40;
x56 = (x39)<<((uintptr_t)24ULL);
x57 = (x38)<<((uintptr_t)16ULL);
x58 = (x37)<<((uintptr_t)8ULL);
x59 = x36;
x60 = (x35)<<((uintptr_t)24ULL);
x61 = (x34)<<((uintptr_t)16ULL);
x62 = (x33)<<((uintptr_t)8ULL);
x63 = x32;
x64 = (x31)<<((uintptr_t)24ULL);
x65 = (x30)<<((uintptr_t)16ULL);
x66 = (x29)<<((uintptr_t)8ULL);
x67 = x28;
x68 = (x27)<<((uintptr_t)24ULL);
x69 = (x26)<<((uintptr_t)16ULL);
x70 = (x25)<<((uintptr_t)8ULL);
x71 = x24;
x72 = (x23)<<((uintptr_t)24ULL);
x73 = (x22)<<((uintptr_t)16ULL);
x74 = (x21)<<((uintptr_t)8ULL);
x75 = x20;
x76 = (x19)<<((uintptr_t)24ULL);
x77 = (x18)<<((uintptr_t)16ULL);
x78 = (x17)<<((uintptr_t)8ULL);
x79 = x16;
x80 = (x15)<<((uintptr_t)24ULL);
x81 = (x14)<<((uintptr_t)16ULL);
x82 = (x13)<<((uintptr_t)8ULL);
x83 = x12;
x84 = (x11)<<((uintptr_t)24ULL);
x85 = (x10)<<((uintptr_t)16ULL);
x86 = (x9)<<((uintptr_t)8ULL);
x87 = x8;
x88 = (x7)<<((uintptr_t)24ULL);
x89 = (x6)<<((uintptr_t)16ULL);
x90 = (x5)<<((uintptr_t)8ULL);
x91 = x4;
x92 = (x3)<<((uintptr_t)24ULL);
x93 = (x2)<<((uintptr_t)16ULL);
x94 = (x1)<<((uintptr_t)8ULL);
x95 = x0;
x96 = (x94)+(x95);
x97 = (x93)+(x96);
x98 = (x92)+(x97);
x99 = (x90)+(x91);
x100 = (x89)+(x99);
x101 = (x88)+(x100);
x102 = (x86)+(x87);
x103 = (x85)+(x102);
x104 = (x84)+(x103);
x105 = (x82)+(x83);
x106 = (x81)+(x105);
x107 = (x80)+(x106);
x108 = (x78)+(x79);
x109 = (x77)+(x108);
x110 = (x76)+(x109);
x111 = (x74)+(x75);
x112 = (x73)+(x111);
x113 = (x72)+(x112);
x114 = (x70)+(x71);
x115 = (x69)+(x114);
x116 = (x68)+(x115);
x117 = (x66)+(x67);
x118 = (x65)+(x117);
x119 = (x64)+(x118);
x120 = (x62)+(x63);
x121 = (x61)+(x120);
x122 = (x60)+(x121);
x123 = (x58)+(x59);
x124 = (x57)+(x123);
x125 = (x56)+(x124);
x126 = (x54)+(x55);
x127 = (x53)+(x126);
x128 = (x52)+(x127);
x129 = (x50)+(x51);
x130 = (x49)+(x129);
x131 = (x48)+(x130);
x132 = x98;
x133 = x101;
x134 = x104;
x135 = x107;
x136 = x110;
x137 = x113;
x138 = x116;
x139 = x119;
x140 = x122;
x141 = x125;
x142 = x128;
x143 = x131;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x132, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x133, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x134, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x135, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x136, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x137, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x138, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x139, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x140, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x141, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x142, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x143, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_from_bytes(uint32_t out1[12], const uint8_t arg1[48]) {
internal_fiat_p384_from_bytes((uintptr_t)out1, (uintptr_t)arg1);
}
/*
* Input Bounds:
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_set_one(uintptr_t out0) {
uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11;
/*skip*/
x0 = (uintptr_t)1ULL;
x1 = (uintptr_t)4294967295ULL;
x2 = (uintptr_t)4294967295ULL;
x3 = (uintptr_t)0ULL;
x4 = (uintptr_t)1ULL;
x5 = (uintptr_t)0ULL;
x6 = (uintptr_t)0ULL;
x7 = (uintptr_t)0ULL;
x8 = (uintptr_t)0ULL;
x9 = (uintptr_t)0ULL;
x10 = (uintptr_t)0ULL;
x11 = (uintptr_t)0ULL;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x0, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x1, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x2, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x3, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x4, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x5, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x6, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x7, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x8, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x9, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x10, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x11, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_set_one(uint32_t out1[12]) {
internal_fiat_p384_set_one((uintptr_t)out1);
}
/*
* Input Bounds:
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_msat(uintptr_t out0) {
uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12;
/*skip*/
x0 = (uintptr_t)4294967295ULL;
x1 = (uintptr_t)0ULL;
x2 = (uintptr_t)0ULL;
x3 = (uintptr_t)4294967295ULL;
x4 = (uintptr_t)4294967294ULL;
x5 = (uintptr_t)4294967295ULL;
x6 = (uintptr_t)4294967295ULL;
x7 = (uintptr_t)4294967295ULL;
x8 = (uintptr_t)4294967295ULL;
x9 = (uintptr_t)4294967295ULL;
x10 = (uintptr_t)4294967295ULL;
x11 = (uintptr_t)4294967295ULL;
x12 = (uintptr_t)0ULL;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x0, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x1, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x2, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x3, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x4, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x5, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x6, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x7, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x8, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x9, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x10, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x11, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)48ULL), x12, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_msat(uint32_t out1[13]) {
internal_fiat_p384_msat((uintptr_t)out1);
}
/*
* Input Bounds:
* in0: [0x0 ~> 0xffffffff]
* in1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* in4: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* Output Bounds:
* out0: [0x0 ~> 0xffffffff]
* out1: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* out2: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* out3: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
* out4: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
uintptr_t internal_fiat_p384_divstep(uintptr_t out1, uintptr_t out2, uintptr_t out3, uintptr_t out4, uintptr_t in0, uintptr_t in1, uintptr_t in2, uintptr_t in3, uintptr_t in4) {
uintptr_t x50, x52, x53, x54, x56, x57, x59, x60, x62, x63, x65, x66, x68, x69, x71, x72, x74, x75, x77, x78, x80, x81, x83, x84, x86, x87, x89, x90, x92, x93, x0, x96, x1, x98, x2, x100, x3, x102, x4, x104, x5, x106, x6, x108, x7, x110, x8, x112, x9, x114, x10, x116, x11, x118, x12, x95, x120, x13, x121, x97, x123, x14, x124, x99, x126, x15, x127, x101, x129, x16, x130, x103, x132, x17, x133, x105, x135, x18, x136, x107, x138, x19, x139, x109, x141, x20, x142, x111, x144, x21, x145, x113, x147, x22, x148, x115, x150, x23, x151, x117, x153, x24, x154, x119, x156, x25, x157, x159, x160, x162, x163, x165, x166, x168, x169, x171, x172, x174, x175, x177, x178, x180, x181, x183, x184, x186, x187, x189, x190, x192, x193, x196, x197, x198, x200, x201, x202, x203, x205, x206, x207, x208, x210, x211, x212, x213, x215, x216, x217, x218, x220, x221, x222, x223, x225, x226, x227, x228, x230, x231, x232, x233, x235, x236, x237, x238, x240, x241, x242, x243, x245, x246, x247, x248, x250, x253, x255, x257, x258, x259, x261, x262, x263, x264, x266, x267, x268, x269, x271, x272, x273, x274, x276, x277, x278, x279, x281, x282, x283, x284, x286, x287, x288, x289, x291, x292, x293, x294, x296, x297, x298, x299, x301, x302, x251, x303, x37, x36, x35, x34, x33, x32, x31, x30, x29, x28, x27, x26, x317, x315, x318, x320, x321, x314, x322, x324, x325, x313, x326, x328, x329, x312, x330, x332, x333, x311, x334, x336, x337, x310, x338, x340, x341, x309, x342, x344, x345, x308, x346, x348, x349, x307, x350, x352, x353, x306, x354, x356, x357, x305, x358, x360, x361, x316, x364, x319, x366, x323, x368, x327, x369, x370, x372, x373, x331, x374, x375, x377, x378, x335, x379, x380, x382, x383, x339, x384, x385, x387, x388, x343, x389, x390, x392, x393, x347, x394, x395, x397, x398, x351, x399, x400, x402, x403, x355, x404, x405, x407, x408, x359, x409, x362, x363, x411, x38, x412, x365, x414, x39, x415, x367, x417, x40, x418, x371, x420, x41, x421, x376, x423, x42, x424, x381, x426, x43, x427, x386, x429, x44, x430, x391, x432, x45, x433, x396, x435, x46, x436, x401, x438, x47, x439, x406, x441, x48, x442, x51, x410, x444, x49, x445, x448, x449, x451, x452, x454, x455, x457, x458, x460, x461, x463, x464, x466, x467, x469, x470, x472, x473, x475, x476, x478, x479, x481, x482, x484, x485, x450, x122, x488, x125, x489, x453, x490, x492, x493, x128, x494, x456, x495, x497, x498, x131, x499, x459, x500, x502, x503, x134, x504, x462, x505, x507, x508, x137, x509, x465, x510, x512, x513, x140, x514, x468, x515, x517, x518, x143, x519, x471, x520, x522, x523, x146, x524, x474, x525, x527, x528, x149, x529, x477, x530, x532, x533, x152, x534, x480, x535, x537, x538, x155, x539, x483, x540, x542, x543, x158, x544, x486, x161, x546, x547, x164, x549, x550, x167, x552, x553, x170, x555, x556, x173, x558, x559, x176, x561, x562, x179, x564, x565, x182, x567, x568, x185, x570, x571, x188, x573, x574, x191, x576, x577, x447, x194, x579, x580, x548, x413, x583, x416, x584, x551, x585, x587, x588, x419, x589, x554, x590, x592, x593, x422, x594, x557, x595, x597, x598, x425, x599, x560, x600, x602, x603, x428, x604, x563, x605, x607, x608, x431, x609, x566, x610, x612, x613, x434, x614, x569, x615, x617, x618, x437, x619, x572, x620, x622, x623, x440, x624, x575, x625, x627, x628, x443, x629, x578, x630, x632, x633, x446, x634, x581, x635, x637, x640, x642, x644, x645, x646, x648, x649, x650, x651, x653, x654, x655, x656, x658, x659, x660, x661, x663, x664, x665, x666, x668, x669, x670, x671, x673, x674, x675, x676, x678, x679, x680, x681, x683, x684, x685, x686, x688, x689, x638, x690, x55, x487, x491, x496, x501, x506, x511, x516, x521, x526, x531, x536, x541, x545, x195, x706, x252, x707, x199, x709, x254, x710, x204, x712, x256, x713, x209, x715, x260, x716, x214, x718, x265, x719, x219, x721, x270, x722, x224, x724, x275, x725, x229, x727, x280, x728, x234, x730, x285, x731, x239, x733, x290, x734, x244, x736, x295, x737, x304, x249, x739, x300, x740, x582, x742, x639, x743, x586, x745, x641, x746, x591, x748, x643, x749, x596, x751, x647, x752, x601, x754, x652, x755, x606, x757, x657, x758, x611, x760, x662, x761, x616, x763, x667, x764, x621, x766, x672, x767, x626, x769, x677, x770, x631, x772, x682, x773, x691, x636, x775, x687, x776, x692, x58, x61, x64, x67, x70, x73, x76, x79, x82, x85, x88, x91, x94, x693, x694, x695, x696, x697, x698, x699, x700, x701, x702, x703, x704, x705, x708, x711, x714, x717, x720, x723, x726, x729, x732, x735, x738, x741, x744, x747, x750, x753, x756, x759, x762, x765, x768, x771, x774, x777, out0, x778, x779, x780, x781, x782, x783, x784, x785, x786, x787, x788, x789, x790, x791, x792, x793, x794, x795, x796, x797, x798, x799, x800, x801, x802, x803, x804, x805, x806, x807, x808, x809, x810, x811, x812, x813, x814, x815, x816, x817, x818, x819, x820, x821, x822, x823, x824, x825, x826, x827, x828;
/*skip*/
x0 = _br2_load((in1)+((uintptr_t)0ULL), sizeof(uintptr_t));
x1 = _br2_load((in1)+((uintptr_t)4ULL), sizeof(uintptr_t));
x2 = _br2_load((in1)+((uintptr_t)8ULL), sizeof(uintptr_t));
x3 = _br2_load((in1)+((uintptr_t)12ULL), sizeof(uintptr_t));
x4 = _br2_load((in1)+((uintptr_t)16ULL), sizeof(uintptr_t));
x5 = _br2_load((in1)+((uintptr_t)20ULL), sizeof(uintptr_t));
x6 = _br2_load((in1)+((uintptr_t)24ULL), sizeof(uintptr_t));
x7 = _br2_load((in1)+((uintptr_t)28ULL), sizeof(uintptr_t));
x8 = _br2_load((in1)+((uintptr_t)32ULL), sizeof(uintptr_t));
x9 = _br2_load((in1)+((uintptr_t)36ULL), sizeof(uintptr_t));
x10 = _br2_load((in1)+((uintptr_t)40ULL), sizeof(uintptr_t));
x11 = _br2_load((in1)+((uintptr_t)44ULL), sizeof(uintptr_t));
x12 = _br2_load((in1)+((uintptr_t)48ULL), sizeof(uintptr_t));
/*skip*/
x13 = _br2_load((in2)+((uintptr_t)0ULL), sizeof(uintptr_t));
x14 = _br2_load((in2)+((uintptr_t)4ULL), sizeof(uintptr_t));
x15 = _br2_load((in2)+((uintptr_t)8ULL), sizeof(uintptr_t));
x16 = _br2_load((in2)+((uintptr_t)12ULL), sizeof(uintptr_t));
x17 = _br2_load((in2)+((uintptr_t)16ULL), sizeof(uintptr_t));
x18 = _br2_load((in2)+((uintptr_t)20ULL), sizeof(uintptr_t));
x19 = _br2_load((in2)+((uintptr_t)24ULL), sizeof(uintptr_t));
x20 = _br2_load((in2)+((uintptr_t)28ULL), sizeof(uintptr_t));
x21 = _br2_load((in2)+((uintptr_t)32ULL), sizeof(uintptr_t));
x22 = _br2_load((in2)+((uintptr_t)36ULL), sizeof(uintptr_t));
x23 = _br2_load((in2)+((uintptr_t)40ULL), sizeof(uintptr_t));
x24 = _br2_load((in2)+((uintptr_t)44ULL), sizeof(uintptr_t));
x25 = _br2_load((in2)+((uintptr_t)48ULL), sizeof(uintptr_t));
/*skip*/
x26 = _br2_load((in3)+((uintptr_t)0ULL), sizeof(uintptr_t));
x27 = _br2_load((in3)+((uintptr_t)4ULL), sizeof(uintptr_t));
x28 = _br2_load((in3)+((uintptr_t)8ULL), sizeof(uintptr_t));
x29 = _br2_load((in3)+((uintptr_t)12ULL), sizeof(uintptr_t));
x30 = _br2_load((in3)+((uintptr_t)16ULL), sizeof(uintptr_t));
x31 = _br2_load((in3)+((uintptr_t)20ULL), sizeof(uintptr_t));
x32 = _br2_load((in3)+((uintptr_t)24ULL), sizeof(uintptr_t));
x33 = _br2_load((in3)+((uintptr_t)28ULL), sizeof(uintptr_t));
x34 = _br2_load((in3)+((uintptr_t)32ULL), sizeof(uintptr_t));
x35 = _br2_load((in3)+((uintptr_t)36ULL), sizeof(uintptr_t));
x36 = _br2_load((in3)+((uintptr_t)40ULL), sizeof(uintptr_t));
x37 = _br2_load((in3)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
x38 = _br2_load((in4)+((uintptr_t)0ULL), sizeof(uintptr_t));
x39 = _br2_load((in4)+((uintptr_t)4ULL), sizeof(uintptr_t));
x40 = _br2_load((in4)+((uintptr_t)8ULL), sizeof(uintptr_t));
x41 = _br2_load((in4)+((uintptr_t)12ULL), sizeof(uintptr_t));
x42 = _br2_load((in4)+((uintptr_t)16ULL), sizeof(uintptr_t));
x43 = _br2_load((in4)+((uintptr_t)20ULL), sizeof(uintptr_t));
x44 = _br2_load((in4)+((uintptr_t)24ULL), sizeof(uintptr_t));
x45 = _br2_load((in4)+((uintptr_t)28ULL), sizeof(uintptr_t));
x46 = _br2_load((in4)+((uintptr_t)32ULL), sizeof(uintptr_t));
x47 = _br2_load((in4)+((uintptr_t)36ULL), sizeof(uintptr_t));
x48 = _br2_load((in4)+((uintptr_t)40ULL), sizeof(uintptr_t));
x49 = _br2_load((in4)+((uintptr_t)44ULL), sizeof(uintptr_t));
/*skip*/
/*skip*/
x50 = ((in0)^((uintptr_t)4294967295ULL))+((uintptr_t)1ULL);
x51 = ((x50)>>((uintptr_t)31ULL))&((x13)&((uintptr_t)1ULL));
x52 = ((in0)^((uintptr_t)4294967295ULL))+((uintptr_t)1ULL);
x53 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x54 = (x53)^((uintptr_t)4294967295ULL);
x55 = ((x52)&(x53))|((in0)&(x54));
x56 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x57 = (x56)^((uintptr_t)4294967295ULL);
x58 = ((x13)&(x56))|((x0)&(x57));
x59 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x60 = (x59)^((uintptr_t)4294967295ULL);
x61 = ((x14)&(x59))|((x1)&(x60));
x62 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x63 = (x62)^((uintptr_t)4294967295ULL);
x64 = ((x15)&(x62))|((x2)&(x63));
x65 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x66 = (x65)^((uintptr_t)4294967295ULL);
x67 = ((x16)&(x65))|((x3)&(x66));
x68 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x69 = (x68)^((uintptr_t)4294967295ULL);
x70 = ((x17)&(x68))|((x4)&(x69));
x71 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x72 = (x71)^((uintptr_t)4294967295ULL);
x73 = ((x18)&(x71))|((x5)&(x72));
x74 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x75 = (x74)^((uintptr_t)4294967295ULL);
x76 = ((x19)&(x74))|((x6)&(x75));
x77 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x78 = (x77)^((uintptr_t)4294967295ULL);
x79 = ((x20)&(x77))|((x7)&(x78));
x80 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x81 = (x80)^((uintptr_t)4294967295ULL);
x82 = ((x21)&(x80))|((x8)&(x81));
x83 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x84 = (x83)^((uintptr_t)4294967295ULL);
x85 = ((x22)&(x83))|((x9)&(x84));
x86 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x87 = (x86)^((uintptr_t)4294967295ULL);
x88 = ((x23)&(x86))|((x10)&(x87));
x89 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x90 = (x89)^((uintptr_t)4294967295ULL);
x91 = ((x24)&(x89))|((x11)&(x90));
x92 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x93 = (x92)^((uintptr_t)4294967295ULL);
x94 = ((x25)&(x92))|((x12)&(x93));
x95 = ((uintptr_t)1ULL)+((x0)^((uintptr_t)4294967295ULL));
x96 = (x95)<((uintptr_t)1ULL);
x97 = (x96)+((x1)^((uintptr_t)4294967295ULL));
x98 = (x97)<((x1)^((uintptr_t)4294967295ULL));
x99 = (x98)+((x2)^((uintptr_t)4294967295ULL));
x100 = (x99)<((x2)^((uintptr_t)4294967295ULL));
x101 = (x100)+((x3)^((uintptr_t)4294967295ULL));
x102 = (x101)<((x3)^((uintptr_t)4294967295ULL));
x103 = (x102)+((x4)^((uintptr_t)4294967295ULL));
x104 = (x103)<((x4)^((uintptr_t)4294967295ULL));
x105 = (x104)+((x5)^((uintptr_t)4294967295ULL));
x106 = (x105)<((x5)^((uintptr_t)4294967295ULL));
x107 = (x106)+((x6)^((uintptr_t)4294967295ULL));
x108 = (x107)<((x6)^((uintptr_t)4294967295ULL));
x109 = (x108)+((x7)^((uintptr_t)4294967295ULL));
x110 = (x109)<((x7)^((uintptr_t)4294967295ULL));
x111 = (x110)+((x8)^((uintptr_t)4294967295ULL));
x112 = (x111)<((x8)^((uintptr_t)4294967295ULL));
x113 = (x112)+((x9)^((uintptr_t)4294967295ULL));
x114 = (x113)<((x9)^((uintptr_t)4294967295ULL));
x115 = (x114)+((x10)^((uintptr_t)4294967295ULL));
x116 = (x115)<((x10)^((uintptr_t)4294967295ULL));
x117 = (x116)+((x11)^((uintptr_t)4294967295ULL));
x118 = (x117)<((x11)^((uintptr_t)4294967295ULL));
x119 = (x118)+((x12)^((uintptr_t)4294967295ULL));
x120 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x121 = (x120)^((uintptr_t)4294967295ULL);
x122 = ((x95)&(x120))|((x13)&(x121));
x123 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x124 = (x123)^((uintptr_t)4294967295ULL);
x125 = ((x97)&(x123))|((x14)&(x124));
x126 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x127 = (x126)^((uintptr_t)4294967295ULL);
x128 = ((x99)&(x126))|((x15)&(x127));
x129 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x130 = (x129)^((uintptr_t)4294967295ULL);
x131 = ((x101)&(x129))|((x16)&(x130));
x132 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x133 = (x132)^((uintptr_t)4294967295ULL);
x134 = ((x103)&(x132))|((x17)&(x133));
x135 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x136 = (x135)^((uintptr_t)4294967295ULL);
x137 = ((x105)&(x135))|((x18)&(x136));
x138 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x139 = (x138)^((uintptr_t)4294967295ULL);
x140 = ((x107)&(x138))|((x19)&(x139));
x141 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x142 = (x141)^((uintptr_t)4294967295ULL);
x143 = ((x109)&(x141))|((x20)&(x142));
x144 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x145 = (x144)^((uintptr_t)4294967295ULL);
x146 = ((x111)&(x144))|((x21)&(x145));
x147 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x148 = (x147)^((uintptr_t)4294967295ULL);
x149 = ((x113)&(x147))|((x22)&(x148));
x150 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x151 = (x150)^((uintptr_t)4294967295ULL);
x152 = ((x115)&(x150))|((x23)&(x151));
x153 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x154 = (x153)^((uintptr_t)4294967295ULL);
x155 = ((x117)&(x153))|((x24)&(x154));
x156 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x157 = (x156)^((uintptr_t)4294967295ULL);
x158 = ((x119)&(x156))|((x25)&(x157));
x159 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x160 = (x159)^((uintptr_t)4294967295ULL);
x161 = ((x38)&(x159))|((x26)&(x160));
x162 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x163 = (x162)^((uintptr_t)4294967295ULL);
x164 = ((x39)&(x162))|((x27)&(x163));
x165 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x166 = (x165)^((uintptr_t)4294967295ULL);
x167 = ((x40)&(x165))|((x28)&(x166));
x168 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x169 = (x168)^((uintptr_t)4294967295ULL);
x170 = ((x41)&(x168))|((x29)&(x169));
x171 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x172 = (x171)^((uintptr_t)4294967295ULL);
x173 = ((x42)&(x171))|((x30)&(x172));
x174 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x175 = (x174)^((uintptr_t)4294967295ULL);
x176 = ((x43)&(x174))|((x31)&(x175));
x177 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x178 = (x177)^((uintptr_t)4294967295ULL);
x179 = ((x44)&(x177))|((x32)&(x178));
x180 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x181 = (x180)^((uintptr_t)4294967295ULL);
x182 = ((x45)&(x180))|((x33)&(x181));
x183 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x184 = (x183)^((uintptr_t)4294967295ULL);
x185 = ((x46)&(x183))|((x34)&(x184));
x186 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x187 = (x186)^((uintptr_t)4294967295ULL);
x188 = ((x47)&(x186))|((x35)&(x187));
x189 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x190 = (x189)^((uintptr_t)4294967295ULL);
x191 = ((x48)&(x189))|((x36)&(x190));
x192 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x193 = (x192)^((uintptr_t)4294967295ULL);
x194 = ((x49)&(x192))|((x37)&(x193));
x195 = (x161)+(x161);
x196 = (x195)<(x161);
x197 = (x196)+(x164);
x198 = (x197)<(x164);
x199 = (x197)+(x164);
x200 = (x199)<(x164);
x201 = (x198)+(x200);
x202 = (x201)+(x167);
x203 = (x202)<(x167);
x204 = (x202)+(x167);
x205 = (x204)<(x167);
x206 = (x203)+(x205);
x207 = (x206)+(x170);
x208 = (x207)<(x170);
x209 = (x207)+(x170);
x210 = (x209)<(x170);
x211 = (x208)+(x210);
x212 = (x211)+(x173);
x213 = (x212)<(x173);
x214 = (x212)+(x173);
x215 = (x214)<(x173);
x216 = (x213)+(x215);
x217 = (x216)+(x176);
x218 = (x217)<(x176);
x219 = (x217)+(x176);
x220 = (x219)<(x176);
x221 = (x218)+(x220);
x222 = (x221)+(x179);
x223 = (x222)<(x179);
x224 = (x222)+(x179);
x225 = (x224)<(x179);
x226 = (x223)+(x225);
x227 = (x226)+(x182);
x228 = (x227)<(x182);
x229 = (x227)+(x182);
x230 = (x229)<(x182);
x231 = (x228)+(x230);
x232 = (x231)+(x185);
x233 = (x232)<(x185);
x234 = (x232)+(x185);
x235 = (x234)<(x185);
x236 = (x233)+(x235);
x237 = (x236)+(x188);
x238 = (x237)<(x188);
x239 = (x237)+(x188);
x240 = (x239)<(x188);
x241 = (x238)+(x240);
x242 = (x241)+(x191);
x243 = (x242)<(x191);
x244 = (x242)+(x191);
x245 = (x244)<(x191);
x246 = (x243)+(x245);
x247 = (x246)+(x194);
x248 = (x247)<(x194);
x249 = (x247)+(x194);
x250 = (x249)<(x194);
x251 = (x248)+(x250);
x252 = (x195)-((uintptr_t)4294967295ULL);
x253 = (x195)<(x252);
x254 = (x199)-(x253);
x255 = (x199)<(x254);
x256 = (x204)-(x255);
x257 = (x204)<(x256);
x258 = (x209)-((uintptr_t)4294967295ULL);
x259 = (x209)<(x258);
x260 = (x258)-(x257);
x261 = (x258)<(x260);
x262 = (x259)+(x261);
x263 = (x214)-((uintptr_t)4294967294ULL);
x264 = (x214)<(x263);
x265 = (x263)-(x262);
x266 = (x263)<(x265);
x267 = (x264)+(x266);
x268 = (x219)-((uintptr_t)4294967295ULL);
x269 = (x219)<(x268);
x270 = (x268)-(x267);
x271 = (x268)<(x270);
x272 = (x269)+(x271);
x273 = (x224)-((uintptr_t)4294967295ULL);
x274 = (x224)<(x273);
x275 = (x273)-(x272);
x276 = (x273)<(x275);
x277 = (x274)+(x276);
x278 = (x229)-((uintptr_t)4294967295ULL);
x279 = (x229)<(x278);
x280 = (x278)-(x277);
x281 = (x278)<(x280);
x282 = (x279)+(x281);
x283 = (x234)-((uintptr_t)4294967295ULL);
x284 = (x234)<(x283);
x285 = (x283)-(x282);
x286 = (x283)<(x285);
x287 = (x284)+(x286);
x288 = (x239)-((uintptr_t)4294967295ULL);
x289 = (x239)<(x288);
x290 = (x288)-(x287);
x291 = (x288)<(x290);
x292 = (x289)+(x291);
x293 = (x244)-((uintptr_t)4294967295ULL);
x294 = (x244)<(x293);
x295 = (x293)-(x292);
x296 = (x293)<(x295);
x297 = (x294)+(x296);
x298 = (x249)-((uintptr_t)4294967295ULL);
x299 = (x249)<(x298);
x300 = (x298)-(x297);
x301 = (x298)<(x300);
x302 = (x299)+(x301);
x303 = (x251)-(x302);
x304 = (x251)<(x303);
x305 = x37;
x306 = x36;
x307 = x35;
x308 = x34;
x309 = x33;
x310 = x32;
x311 = x31;
x312 = x30;
x313 = x29;
x314 = x28;
x315 = x27;
x316 = x26;
x317 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x316));
x318 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x315));
x319 = (((uintptr_t)0ULL)-(x315))-(x317);
x320 = (((uintptr_t)0ULL)-(x315))<(x319);
x321 = (x318)+(x320);
x322 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x314));
x323 = (((uintptr_t)0ULL)-(x314))-(x321);
x324 = (((uintptr_t)0ULL)-(x314))<(x323);
x325 = (x322)+(x324);
x326 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x313));
x327 = (((uintptr_t)0ULL)-(x313))-(x325);
x328 = (((uintptr_t)0ULL)-(x313))<(x327);
x329 = (x326)+(x328);
x330 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x312));
x331 = (((uintptr_t)0ULL)-(x312))-(x329);
x332 = (((uintptr_t)0ULL)-(x312))<(x331);
x333 = (x330)+(x332);
x334 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x311));
x335 = (((uintptr_t)0ULL)-(x311))-(x333);
x336 = (((uintptr_t)0ULL)-(x311))<(x335);
x337 = (x334)+(x336);
x338 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x310));
x339 = (((uintptr_t)0ULL)-(x310))-(x337);
x340 = (((uintptr_t)0ULL)-(x310))<(x339);
x341 = (x338)+(x340);
x342 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x309));
x343 = (((uintptr_t)0ULL)-(x309))-(x341);
x344 = (((uintptr_t)0ULL)-(x309))<(x343);
x345 = (x342)+(x344);
x346 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x308));
x347 = (((uintptr_t)0ULL)-(x308))-(x345);
x348 = (((uintptr_t)0ULL)-(x308))<(x347);
x349 = (x346)+(x348);
x350 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x307));
x351 = (((uintptr_t)0ULL)-(x307))-(x349);
x352 = (((uintptr_t)0ULL)-(x307))<(x351);
x353 = (x350)+(x352);
x354 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x306));
x355 = (((uintptr_t)0ULL)-(x306))-(x353);
x356 = (((uintptr_t)0ULL)-(x306))<(x355);
x357 = (x354)+(x356);
x358 = ((uintptr_t)0ULL)<(((uintptr_t)0ULL)-(x305));
x359 = (((uintptr_t)0ULL)-(x305))-(x357);
x360 = (((uintptr_t)0ULL)-(x305))<(x359);
x361 = (x358)+(x360);
x362 = ((uintptr_t)-1ULL)+((x361)==((uintptr_t)0ULL));
x363 = (((uintptr_t)0ULL)-(x316))+(x362);
x364 = (x363)<(((uintptr_t)0ULL)-(x316));
x365 = (x364)+(x319);
x366 = (x365)<(x319);
x367 = (x366)+(x323);
x368 = (x367)<(x323);
x369 = (x368)+(x327);
x370 = (x369)<(x327);
x371 = (x369)+(x362);
x372 = (x371)<(x362);
x373 = (x370)+(x372);
x374 = (x373)+(x331);
x375 = (x374)<(x331);
x376 = (x374)+((x362)&((uintptr_t)4294967294ULL));
x377 = (x376)<((x362)&((uintptr_t)4294967294ULL));
x378 = (x375)+(x377);
x379 = (x378)+(x335);
x380 = (x379)<(x335);
x381 = (x379)+(x362);
x382 = (x381)<(x362);
x383 = (x380)+(x382);
x384 = (x383)+(x339);
x385 = (x384)<(x339);
x386 = (x384)+(x362);
x387 = (x386)<(x362);
x388 = (x385)+(x387);
x389 = (x388)+(x343);
x390 = (x389)<(x343);
x391 = (x389)+(x362);
x392 = (x391)<(x362);
x393 = (x390)+(x392);
x394 = (x393)+(x347);
x395 = (x394)<(x347);
x396 = (x394)+(x362);
x397 = (x396)<(x362);
x398 = (x395)+(x397);
x399 = (x398)+(x351);
x400 = (x399)<(x351);
x401 = (x399)+(x362);
x402 = (x401)<(x362);
x403 = (x400)+(x402);
x404 = (x403)+(x355);
x405 = (x404)<(x355);
x406 = (x404)+(x362);
x407 = (x406)<(x362);
x408 = (x405)+(x407);
x409 = (x408)+(x359);
x410 = (x409)+(x362);
x411 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x412 = (x411)^((uintptr_t)4294967295ULL);
x413 = ((x363)&(x411))|((x38)&(x412));
x414 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x415 = (x414)^((uintptr_t)4294967295ULL);
x416 = ((x365)&(x414))|((x39)&(x415));
x417 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x418 = (x417)^((uintptr_t)4294967295ULL);
x419 = ((x367)&(x417))|((x40)&(x418));
x420 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x421 = (x420)^((uintptr_t)4294967295ULL);
x422 = ((x371)&(x420))|((x41)&(x421));
x423 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x424 = (x423)^((uintptr_t)4294967295ULL);
x425 = ((x376)&(x423))|((x42)&(x424));
x426 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x427 = (x426)^((uintptr_t)4294967295ULL);
x428 = ((x381)&(x426))|((x43)&(x427));
x429 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x430 = (x429)^((uintptr_t)4294967295ULL);
x431 = ((x386)&(x429))|((x44)&(x430));
x432 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x433 = (x432)^((uintptr_t)4294967295ULL);
x434 = ((x391)&(x432))|((x45)&(x433));
x435 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x436 = (x435)^((uintptr_t)4294967295ULL);
x437 = ((x396)&(x435))|((x46)&(x436));
x438 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x439 = (x438)^((uintptr_t)4294967295ULL);
x440 = ((x401)&(x438))|((x47)&(x439));
x441 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x442 = (x441)^((uintptr_t)4294967295ULL);
x443 = ((x406)&(x441))|((x48)&(x442));
x444 = ((uintptr_t)-1ULL)+((x51)==((uintptr_t)0ULL));
x445 = (x444)^((uintptr_t)4294967295ULL);
x446 = ((x410)&(x444))|((x49)&(x445));
x447 = (x122)&((uintptr_t)1ULL);
x448 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x449 = (x448)^((uintptr_t)4294967295ULL);
x450 = ((x58)&(x448))|(((uintptr_t)0ULL)&(x449));
x451 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x452 = (x451)^((uintptr_t)4294967295ULL);
x453 = ((x61)&(x451))|(((uintptr_t)0ULL)&(x452));
x454 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x455 = (x454)^((uintptr_t)4294967295ULL);
x456 = ((x64)&(x454))|(((uintptr_t)0ULL)&(x455));
x457 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x458 = (x457)^((uintptr_t)4294967295ULL);
x459 = ((x67)&(x457))|(((uintptr_t)0ULL)&(x458));
x460 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x461 = (x460)^((uintptr_t)4294967295ULL);
x462 = ((x70)&(x460))|(((uintptr_t)0ULL)&(x461));
x463 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x464 = (x463)^((uintptr_t)4294967295ULL);
x465 = ((x73)&(x463))|(((uintptr_t)0ULL)&(x464));
x466 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x467 = (x466)^((uintptr_t)4294967295ULL);
x468 = ((x76)&(x466))|(((uintptr_t)0ULL)&(x467));
x469 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x470 = (x469)^((uintptr_t)4294967295ULL);
x471 = ((x79)&(x469))|(((uintptr_t)0ULL)&(x470));
x472 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x473 = (x472)^((uintptr_t)4294967295ULL);
x474 = ((x82)&(x472))|(((uintptr_t)0ULL)&(x473));
x475 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x476 = (x475)^((uintptr_t)4294967295ULL);
x477 = ((x85)&(x475))|(((uintptr_t)0ULL)&(x476));
x478 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x479 = (x478)^((uintptr_t)4294967295ULL);
x480 = ((x88)&(x478))|(((uintptr_t)0ULL)&(x479));
x481 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x482 = (x481)^((uintptr_t)4294967295ULL);
x483 = ((x91)&(x481))|(((uintptr_t)0ULL)&(x482));
x484 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x485 = (x484)^((uintptr_t)4294967295ULL);
x486 = ((x94)&(x484))|(((uintptr_t)0ULL)&(x485));
x487 = (x122)+(x450);
x488 = (x487)<(x122);
x489 = (x488)+(x125);
x490 = (x489)<(x125);
x491 = (x489)+(x453);
x492 = (x491)<(x453);
x493 = (x490)+(x492);
x494 = (x493)+(x128);
x495 = (x494)<(x128);
x496 = (x494)+(x456);
x497 = (x496)<(x456);
x498 = (x495)+(x497);
x499 = (x498)+(x131);
x500 = (x499)<(x131);
x501 = (x499)+(x459);
x502 = (x501)<(x459);
x503 = (x500)+(x502);
x504 = (x503)+(x134);
x505 = (x504)<(x134);
x506 = (x504)+(x462);
x507 = (x506)<(x462);
x508 = (x505)+(x507);
x509 = (x508)+(x137);
x510 = (x509)<(x137);
x511 = (x509)+(x465);
x512 = (x511)<(x465);
x513 = (x510)+(x512);
x514 = (x513)+(x140);
x515 = (x514)<(x140);
x516 = (x514)+(x468);
x517 = (x516)<(x468);
x518 = (x515)+(x517);
x519 = (x518)+(x143);
x520 = (x519)<(x143);
x521 = (x519)+(x471);
x522 = (x521)<(x471);
x523 = (x520)+(x522);
x524 = (x523)+(x146);
x525 = (x524)<(x146);
x526 = (x524)+(x474);
x527 = (x526)<(x474);
x528 = (x525)+(x527);
x529 = (x528)+(x149);
x530 = (x529)<(x149);
x531 = (x529)+(x477);
x532 = (x531)<(x477);
x533 = (x530)+(x532);
x534 = (x533)+(x152);
x535 = (x534)<(x152);
x536 = (x534)+(x480);
x537 = (x536)<(x480);
x538 = (x535)+(x537);
x539 = (x538)+(x155);
x540 = (x539)<(x155);
x541 = (x539)+(x483);
x542 = (x541)<(x483);
x543 = (x540)+(x542);
x544 = (x543)+(x158);
x545 = (x544)+(x486);
x546 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x547 = (x546)^((uintptr_t)4294967295ULL);
x548 = ((x161)&(x546))|(((uintptr_t)0ULL)&(x547));
x549 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x550 = (x549)^((uintptr_t)4294967295ULL);
x551 = ((x164)&(x549))|(((uintptr_t)0ULL)&(x550));
x552 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x553 = (x552)^((uintptr_t)4294967295ULL);
x554 = ((x167)&(x552))|(((uintptr_t)0ULL)&(x553));
x555 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x556 = (x555)^((uintptr_t)4294967295ULL);
x557 = ((x170)&(x555))|(((uintptr_t)0ULL)&(x556));
x558 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x559 = (x558)^((uintptr_t)4294967295ULL);
x560 = ((x173)&(x558))|(((uintptr_t)0ULL)&(x559));
x561 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x562 = (x561)^((uintptr_t)4294967295ULL);
x563 = ((x176)&(x561))|(((uintptr_t)0ULL)&(x562));
x564 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x565 = (x564)^((uintptr_t)4294967295ULL);
x566 = ((x179)&(x564))|(((uintptr_t)0ULL)&(x565));
x567 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x568 = (x567)^((uintptr_t)4294967295ULL);
x569 = ((x182)&(x567))|(((uintptr_t)0ULL)&(x568));
x570 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x571 = (x570)^((uintptr_t)4294967295ULL);
x572 = ((x185)&(x570))|(((uintptr_t)0ULL)&(x571));
x573 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x574 = (x573)^((uintptr_t)4294967295ULL);
x575 = ((x188)&(x573))|(((uintptr_t)0ULL)&(x574));
x576 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x577 = (x576)^((uintptr_t)4294967295ULL);
x578 = ((x191)&(x576))|(((uintptr_t)0ULL)&(x577));
x579 = ((uintptr_t)-1ULL)+((x447)==((uintptr_t)0ULL));
x580 = (x579)^((uintptr_t)4294967295ULL);
x581 = ((x194)&(x579))|(((uintptr_t)0ULL)&(x580));
x582 = (x413)+(x548);
x583 = (x582)<(x413);
x584 = (x583)+(x416);
x585 = (x584)<(x416);
x586 = (x584)+(x551);
x587 = (x586)<(x551);
x588 = (x585)+(x587);
x589 = (x588)+(x419);
x590 = (x589)<(x419);
x591 = (x589)+(x554);
x592 = (x591)<(x554);
x593 = (x590)+(x592);
x594 = (x593)+(x422);
x595 = (x594)<(x422);
x596 = (x594)+(x557);
x597 = (x596)<(x557);
x598 = (x595)+(x597);
x599 = (x598)+(x425);
x600 = (x599)<(x425);
x601 = (x599)+(x560);
x602 = (x601)<(x560);
x603 = (x600)+(x602);
x604 = (x603)+(x428);
x605 = (x604)<(x428);
x606 = (x604)+(x563);
x607 = (x606)<(x563);
x608 = (x605)+(x607);
x609 = (x608)+(x431);
x610 = (x609)<(x431);
x611 = (x609)+(x566);
x612 = (x611)<(x566);
x613 = (x610)+(x612);
x614 = (x613)+(x434);
x615 = (x614)<(x434);
x616 = (x614)+(x569);
x617 = (x616)<(x569);
x618 = (x615)+(x617);
x619 = (x618)+(x437);
x620 = (x619)<(x437);
x621 = (x619)+(x572);
x622 = (x621)<(x572);
x623 = (x620)+(x622);
x624 = (x623)+(x440);
x625 = (x624)<(x440);
x626 = (x624)+(x575);
x627 = (x626)<(x575);
x628 = (x625)+(x627);
x629 = (x628)+(x443);
x630 = (x629)<(x443);
x631 = (x629)+(x578);
x632 = (x631)<(x578);
x633 = (x630)+(x632);
x634 = (x633)+(x446);
x635 = (x634)<(x446);
x636 = (x634)+(x581);
x637 = (x636)<(x581);
x638 = (x635)+(x637);
x639 = (x582)-((uintptr_t)4294967295ULL);
x640 = (x582)<(x639);
x641 = (x586)-(x640);
x642 = (x586)<(x641);
x643 = (x591)-(x642);
x644 = (x591)<(x643);
x645 = (x596)-((uintptr_t)4294967295ULL);
x646 = (x596)<(x645);
x647 = (x645)-(x644);
x648 = (x645)<(x647);
x649 = (x646)+(x648);
x650 = (x601)-((uintptr_t)4294967294ULL);
x651 = (x601)<(x650);
x652 = (x650)-(x649);
x653 = (x650)<(x652);
x654 = (x651)+(x653);
x655 = (x606)-((uintptr_t)4294967295ULL);
x656 = (x606)<(x655);
x657 = (x655)-(x654);
x658 = (x655)<(x657);
x659 = (x656)+(x658);
x660 = (x611)-((uintptr_t)4294967295ULL);
x661 = (x611)<(x660);
x662 = (x660)-(x659);
x663 = (x660)<(x662);
x664 = (x661)+(x663);
x665 = (x616)-((uintptr_t)4294967295ULL);
x666 = (x616)<(x665);
x667 = (x665)-(x664);
x668 = (x665)<(x667);
x669 = (x666)+(x668);
x670 = (x621)-((uintptr_t)4294967295ULL);
x671 = (x621)<(x670);
x672 = (x670)-(x669);
x673 = (x670)<(x672);
x674 = (x671)+(x673);
x675 = (x626)-((uintptr_t)4294967295ULL);
x676 = (x626)<(x675);
x677 = (x675)-(x674);
x678 = (x675)<(x677);
x679 = (x676)+(x678);
x680 = (x631)-((uintptr_t)4294967295ULL);
x681 = (x631)<(x680);
x682 = (x680)-(x679);
x683 = (x680)<(x682);
x684 = (x681)+(x683);
x685 = (x636)-((uintptr_t)4294967295ULL);
x686 = (x636)<(x685);
x687 = (x685)-(x684);
x688 = (x685)<(x687);
x689 = (x686)+(x688);
x690 = (x638)-(x689);
x691 = (x638)<(x690);
x692 = (x55)+((uintptr_t)1ULL);
x693 = ((x487)>>((uintptr_t)1ULL))|((x491)<<((uintptr_t)31ULL));
x694 = ((x491)>>((uintptr_t)1ULL))|((x496)<<((uintptr_t)31ULL));
x695 = ((x496)>>((uintptr_t)1ULL))|((x501)<<((uintptr_t)31ULL));
x696 = ((x501)>>((uintptr_t)1ULL))|((x506)<<((uintptr_t)31ULL));
x697 = ((x506)>>((uintptr_t)1ULL))|((x511)<<((uintptr_t)31ULL));
x698 = ((x511)>>((uintptr_t)1ULL))|((x516)<<((uintptr_t)31ULL));
x699 = ((x516)>>((uintptr_t)1ULL))|((x521)<<((uintptr_t)31ULL));
x700 = ((x521)>>((uintptr_t)1ULL))|((x526)<<((uintptr_t)31ULL));
x701 = ((x526)>>((uintptr_t)1ULL))|((x531)<<((uintptr_t)31ULL));
x702 = ((x531)>>((uintptr_t)1ULL))|((x536)<<((uintptr_t)31ULL));
x703 = ((x536)>>((uintptr_t)1ULL))|((x541)<<((uintptr_t)31ULL));
x704 = ((x541)>>((uintptr_t)1ULL))|((x545)<<((uintptr_t)31ULL));
x705 = ((x545)&((uintptr_t)2147483648ULL))|((x545)>>((uintptr_t)1ULL));
x706 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x707 = (x706)^((uintptr_t)4294967295ULL);
x708 = ((x195)&(x706))|((x252)&(x707));
x709 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x710 = (x709)^((uintptr_t)4294967295ULL);
x711 = ((x199)&(x709))|((x254)&(x710));
x712 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x713 = (x712)^((uintptr_t)4294967295ULL);
x714 = ((x204)&(x712))|((x256)&(x713));
x715 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x716 = (x715)^((uintptr_t)4294967295ULL);
x717 = ((x209)&(x715))|((x260)&(x716));
x718 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x719 = (x718)^((uintptr_t)4294967295ULL);
x720 = ((x214)&(x718))|((x265)&(x719));
x721 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x722 = (x721)^((uintptr_t)4294967295ULL);
x723 = ((x219)&(x721))|((x270)&(x722));
x724 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x725 = (x724)^((uintptr_t)4294967295ULL);
x726 = ((x224)&(x724))|((x275)&(x725));
x727 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x728 = (x727)^((uintptr_t)4294967295ULL);
x729 = ((x229)&(x727))|((x280)&(x728));
x730 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x731 = (x730)^((uintptr_t)4294967295ULL);
x732 = ((x234)&(x730))|((x285)&(x731));
x733 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x734 = (x733)^((uintptr_t)4294967295ULL);
x735 = ((x239)&(x733))|((x290)&(x734));
x736 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x737 = (x736)^((uintptr_t)4294967295ULL);
x738 = ((x244)&(x736))|((x295)&(x737));
x739 = ((uintptr_t)-1ULL)+((x304)==((uintptr_t)0ULL));
x740 = (x739)^((uintptr_t)4294967295ULL);
x741 = ((x249)&(x739))|((x300)&(x740));
x742 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x743 = (x742)^((uintptr_t)4294967295ULL);
x744 = ((x582)&(x742))|((x639)&(x743));
x745 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x746 = (x745)^((uintptr_t)4294967295ULL);
x747 = ((x586)&(x745))|((x641)&(x746));
x748 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x749 = (x748)^((uintptr_t)4294967295ULL);
x750 = ((x591)&(x748))|((x643)&(x749));
x751 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x752 = (x751)^((uintptr_t)4294967295ULL);
x753 = ((x596)&(x751))|((x647)&(x752));
x754 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x755 = (x754)^((uintptr_t)4294967295ULL);
x756 = ((x601)&(x754))|((x652)&(x755));
x757 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x758 = (x757)^((uintptr_t)4294967295ULL);
x759 = ((x606)&(x757))|((x657)&(x758));
x760 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x761 = (x760)^((uintptr_t)4294967295ULL);
x762 = ((x611)&(x760))|((x662)&(x761));
x763 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x764 = (x763)^((uintptr_t)4294967295ULL);
x765 = ((x616)&(x763))|((x667)&(x764));
x766 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x767 = (x766)^((uintptr_t)4294967295ULL);
x768 = ((x621)&(x766))|((x672)&(x767));
x769 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x770 = (x769)^((uintptr_t)4294967295ULL);
x771 = ((x626)&(x769))|((x677)&(x770));
x772 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x773 = (x772)^((uintptr_t)4294967295ULL);
x774 = ((x631)&(x772))|((x682)&(x773));
x775 = ((uintptr_t)-1ULL)+((x691)==((uintptr_t)0ULL));
x776 = (x775)^((uintptr_t)4294967295ULL);
x777 = ((x636)&(x775))|((x687)&(x776));
x778 = x692;
x779 = x58;
x780 = x61;
x781 = x64;
x782 = x67;
x783 = x70;
x784 = x73;
x785 = x76;
x786 = x79;
x787 = x82;
x788 = x85;
x789 = x88;
x790 = x91;
x791 = x94;
/*skip*/
x792 = x693;
x793 = x694;
x794 = x695;
x795 = x696;
x796 = x697;
x797 = x698;
x798 = x699;
x799 = x700;
x800 = x701;
x801 = x702;
x802 = x703;
x803 = x704;
x804 = x705;
/*skip*/
x805 = x708;
x806 = x711;
x807 = x714;
x808 = x717;
x809 = x720;
x810 = x723;
x811 = x726;
x812 = x729;
x813 = x732;
x814 = x735;
x815 = x738;
x816 = x741;
/*skip*/
x817 = x744;
x818 = x747;
x819 = x750;
x820 = x753;
x821 = x756;
x822 = x759;
x823 = x762;
x824 = x765;
x825 = x768;
x826 = x771;
x827 = x774;
x828 = x777;
/*skip*/
out0 = x778;
_br2_store((out1)+((uintptr_t)0ULL), x779, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)4ULL), x780, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)8ULL), x781, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)12ULL), x782, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)16ULL), x783, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)20ULL), x784, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)24ULL), x785, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)28ULL), x786, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)32ULL), x787, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)36ULL), x788, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)40ULL), x789, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)44ULL), x790, sizeof(uintptr_t));
_br2_store((out1)+((uintptr_t)48ULL), x791, sizeof(uintptr_t));
/*skip*/
_br2_store((out2)+((uintptr_t)0ULL), x792, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)4ULL), x793, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)8ULL), x794, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)12ULL), x795, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)16ULL), x796, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)20ULL), x797, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)24ULL), x798, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)28ULL), x799, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)32ULL), x800, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)36ULL), x801, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)40ULL), x802, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)44ULL), x803, sizeof(uintptr_t));
_br2_store((out2)+((uintptr_t)48ULL), x804, sizeof(uintptr_t));
/*skip*/
_br2_store((out3)+((uintptr_t)0ULL), x805, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)4ULL), x806, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)8ULL), x807, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)12ULL), x808, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)16ULL), x809, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)20ULL), x810, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)24ULL), x811, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)28ULL), x812, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)32ULL), x813, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)36ULL), x814, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)40ULL), x815, sizeof(uintptr_t));
_br2_store((out3)+((uintptr_t)44ULL), x816, sizeof(uintptr_t));
/*skip*/
_br2_store((out4)+((uintptr_t)0ULL), x817, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)4ULL), x818, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)8ULL), x819, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)12ULL), x820, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)16ULL), x821, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)20ULL), x822, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)24ULL), x823, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)28ULL), x824, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)32ULL), x825, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)36ULL), x826, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)40ULL), x827, sizeof(uintptr_t));
_br2_store((out4)+((uintptr_t)44ULL), x828, sizeof(uintptr_t));
/*skip*/
return out0;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_divstep(uint32_t* out1, uint32_t out2[13], uint32_t out3[13], uint32_t out4[12], uint32_t out5[12], uint32_t arg1, const uint32_t arg2[13], const uint32_t arg3[13], const uint32_t arg4[12], const uint32_t arg5[12]) {
*out1 = (uint32_t)internal_fiat_p384_divstep((uintptr_t)out2, (uintptr_t)out3, (uintptr_t)out4, (uintptr_t)out5, (uintptr_t)arg1, (uintptr_t)arg2, (uintptr_t)arg3, (uintptr_t)arg4, (uintptr_t)arg5);
}
/*
* Input Bounds:
* Output Bounds:
* out0: [[0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff], [0x0 ~> 0xffffffff]]
*/
static
void internal_fiat_p384_divstep_precomp(uintptr_t out0) {
uintptr_t x0, x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11;
/*skip*/
x0 = (uintptr_t)4294021119ULL;
x1 = (uintptr_t)4294349824ULL;
x2 = (uintptr_t)4294956031ULL;
x3 = (uintptr_t)178174ULL;
x4 = (uintptr_t)4294875135ULL;
x5 = (uintptr_t)4294892543ULL;
x6 = (uintptr_t)12287ULL;
x7 = (uintptr_t)164864ULL;
x8 = (uintptr_t)328704ULL;
x9 = (uintptr_t)394240ULL;
x10 = (uintptr_t)229376ULL;
x11 = (uintptr_t)4294723584ULL;
/*skip*/
_br2_store((out0)+((uintptr_t)0ULL), x0, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)4ULL), x1, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)8ULL), x2, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)12ULL), x3, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)16ULL), x4, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)20ULL), x5, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)24ULL), x6, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)28ULL), x7, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)32ULL), x8, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)36ULL), x9, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)40ULL), x10, sizeof(uintptr_t));
_br2_store((out0)+((uintptr_t)44ULL), x11, sizeof(uintptr_t));
/*skip*/
return;
}
/* NOTE: The following wrapper function is not covered by Coq proofs */
static void fiat_p384_divstep_precomp(uint32_t out1[12]) {
internal_fiat_p384_divstep_precomp((uintptr_t)out1);
}
|
the_stack_data/1237612.c | #include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
// man page says that _GNU_SOURCE has to be defined in order to be
// able to use setns() system call. But, by inspecting the source
// it turns out __USE_GNU has to be defined instead.
#define __USE_GNU
#include <sched.h>
#define CMD_NSCREATE "ip netns add "
#define CMD_NSDELETE "ip netns delete "
#define CMD_NSLIST "ip netns list"
#define CMD_NSIDENTIFY "ip netns identify "
#define NSDIR "/var/run/netns/"
#define NS1 "PvD_1"
#define NS2 "PvD_2"
#define SLEEP_TIME 5
int main(int argc, char **argv)
{
char cmd_ns[50];
char ns1_fn[50], ns2_fn[50];
int ns1_fd, ns2_fd, nsw_fd;
int counter = 0;
char spid[10];
printf("My PID is: %d\n\n", getpid());
/*
* Create new namespaces
*/
printf("Available namespaces:\n");
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSLIST);
system(cmd_ns);
printf("\n");
printf("Creating namespace %s...\n", NS1);
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSCREATE);
strcat(cmd_ns, NS1);
system(cmd_ns);
printf("\n");
printf("Available namespaces:\n");
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSLIST);
system(cmd_ns);
printf("\n");
printf("Creating namespace %s...\n", NS2);
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSCREATE);
strcat(cmd_ns, NS2);
system(cmd_ns);
printf("\n");
printf("Available namespaces:\n");
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSLIST);
system(cmd_ns);
printf("\n");
/*
* Open namespace descriptors
*/
memset(ns1_fn, '\0', sizeof(ns1_fn));
strcat(ns1_fn, NSDIR);
strcat(ns1_fn, NS1);
memset(ns2_fn, '\0', sizeof(ns2_fn));
strcat(ns2_fn, NSDIR);
strcat(ns2_fn, NS2);
if ((ns1_fd = open(ns1_fn, O_RDONLY)) < 0) {
perror("open");
exit(EXIT_FAILURE);
}
if ((ns2_fd = open(ns2_fn, O_RDONLY)) < 0) {
perror("open");
exit(EXIT_FAILURE);
}
/*
* Switch namespace several times
*/
memset(cmd_ns, '\0', sizeof(cmd_ns));
strcat(cmd_ns, CMD_NSIDENTIFY);
sprintf(spid, "%d", getpid());
strcat(cmd_ns, spid);
sleep(SLEEP_TIME);
while (1) {
nsw_fd = ns1_fd;
if (counter++ % 2 != 0) {
nsw_fd = ns2_fd;
}
printf("Changing namespace...\n");
if (setns(nsw_fd, CLONE_NEWNET) < 0) {
perror("setns");
exit(EXIT_FAILURE);
}
else {
printf("Now in ");
fflush(stdout);
system(cmd_ns);
printf("\n");
}
sleep(SLEEP_TIME);
}
printf("\n");
close(ns1_fd);
close(ns2_fd);
return 0;
}
|
the_stack_data/1210154.c | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <zlib.h>
#if !defined(__ANDROID__) && !defined(__MACOSX__) && !defined(__LINUX__)
static void *memmem(const void* haystack, size_t hlen, const void* needle, size_t nlen)
{
const unsigned char* p = haystack;
size_t plen = hlen;
if(!nlen) return NULL;
long needle_first = *(unsigned char*)needle;
while (plen >= nlen && (p = memchr(p, needle_first, plen - nlen + 1)))
{
if (!memcmp(p, needle, nlen))
return (void *)p;
p++;
plen = hlen - (p - (const unsigned char*)haystack);
}
return NULL;
}
#endif
static const char placeholder[] = "</script>";
int main(int argc, char** argv)
{
if(argc != 4)
{
printf("Usage: tic2html <html-template> <tic-input> <html-output>\n");
return 0;
}
FILE* template = fopen(argv[1], "rb");
if(!template)
{
printf("Can't open template file\n");
return 0;
}
fseek(template, 0, SEEK_END);
int htmlSize = ftell(template);
fseek(template, 0, SEEK_SET);
unsigned char* html = (unsigned char*)malloc(htmlSize);
if(!html)
{
printf("Can't alloc memory\n");
return 0;
}
fread(html, htmlSize, 1, template);
fclose(template);
unsigned char* ptr = memmem(html, htmlSize, placeholder, sizeof(placeholder)-1);
FILE* tic = fopen(argv[2], "rb");
if(!tic)
{
printf("Can't open input file\n");
return 0;
}
fseek(tic, 0, SEEK_END);
uLongf ticSize = ftell(tic);
fseek(tic, 0, SEEK_SET);
unsigned char* buffer = (unsigned char*)malloc(ticSize);
unsigned char* output = (unsigned char*)malloc(ticSize);
if(!buffer || !output)
{
printf("Can't alloc memory\n");
return 0;
}
fread(buffer, ticSize, 1, tic);
fclose(tic);
if(compress2(output, &ticSize, buffer, ticSize, Z_BEST_COMPRESSION) != Z_OK)
{
printf("compression error\n");
return 0;
}
free(buffer);
FILE* out = fopen(argv[3], "wb");
if(!out)
{
printf("Can't open output file\n");
return 0;
}
fwrite(html, ptr-html, 1, out);
fprintf(out, "\tvar cartridge = [");
for(int i = 0; i < ticSize; i++)
fprintf(out, "%d,", output[i]);
fprintf(out, "];\n\t");
fwrite(ptr, htmlSize - (ptr-html), 1, out);
fclose(out);
return 0;
}
|
the_stack_data/90761634.c | int main() {
// variable declarations
int i;
int j;
int x;
int y;
// pre-conditions
(i = x);
(j = y);
// loop body
while ((x != 0)) {
{
(x = (x - 1));
(y = (y - 1));
}
}
// post-condition
if ( (i == j) )
assert( (y == 0) );
}
|
the_stack_data/60817.c | #include <stdlib.h>
long atol(const char* str) {
return atoll(str);
}
|
the_stack_data/469673.c | /*
This is a version (aka dlmalloc) of malloc/free/realloc written by
Doug Lea and released to the public domain, as explained at
http://creativecommons.org/publicdomain/zero/1.0/ Send questions,
comments, complaints, performance data, etc to [email protected]
* Version 2.8.6 Wed Aug 29 06:57:58 2012 Doug Lea
Note: There may be an updated version of this malloc obtainable at
ftp://gee.cs.oswego.edu/pub/misc/malloc.c
Check before installing!
* Quickstart
This library is all in one file to simplify the most common usage:
ftp it, compile it (-O3), and link it into another program. All of
the compile-time options default to reasonable values for use on
most platforms. You might later want to step through various
compile-time and dynamic tuning options.
For convenience, an include file for code using this malloc is at:
ftp://gee.cs.oswego.edu/pub/misc/malloc-2.8.6.h
You don't really need this .h file unless you call functions not
defined in your system include files. The .h file contains only the
excerpts from this file needed for using this malloc on ANSI C/C++
systems, so long as you haven't changed compile-time options about
naming and tuning parameters. If you do, then you can create your
own malloc.h that does include all settings by cutting at the point
indicated below. Note that you may already by default be using a C
library containing a malloc that is based on some version of this
malloc (for example in linux). You might still want to use the one
in this file to customize settings or to avoid overheads associated
with library versions.
* Vital statistics:
Supported pointer/size_t representation: 4 or 8 bytes
size_t MUST be an unsigned type of the same width as
pointers. (If you are using an ancient system that declares
size_t as a signed type, or need it to be a different width
than pointers, you can use a previous release of this malloc
(e.g. 2.7.2) supporting these.)
Alignment: 8 bytes (minimum)
This suffices for nearly all current machines and C compilers.
However, you can define MALLOC_ALIGNMENT to be wider than this
if necessary (up to 128bytes), at the expense of using more space.
Minimum overhead per allocated chunk: 4 or 8 bytes (if 4byte sizes)
8 or 16 bytes (if 8byte sizes)
Each malloced chunk has a hidden word of overhead holding size
and status information, and additional cross-check word
if FOOTERS is defined.
Minimum allocated size: 4-byte ptrs: 16 bytes (including overhead)
8-byte ptrs: 32 bytes (including overhead)
Even a request for zero bytes (i.e., malloc(0)) returns a
pointer to something of the minimum allocatable size.
The maximum overhead wastage (i.e., number of extra bytes
allocated than were requested in malloc) is less than or equal
to the minimum size, except for requests >= mmap_threshold that
are serviced via mmap(), where the worst case wastage is about
32 bytes plus the remainder from a system page (the minimal
mmap unit); typically 4096 or 8192 bytes.
Security: static-safe; optionally more or less
The "security" of malloc refers to the ability of malicious
code to accentuate the effects of errors (for example, freeing
space that is not currently malloc'ed or overwriting past the
ends of chunks) in code that calls malloc. This malloc
guarantees not to modify any memory locations below the base of
heap, i.e., static variables, even in the presence of usage
errors. The routines additionally detect most improper frees
and reallocs. All this holds as long as the static bookkeeping
for malloc itself is not corrupted by some other means. This
is only one aspect of security -- these checks do not, and
cannot, detect all possible programming errors.
If FOOTERS is defined nonzero, then each allocated chunk
carries an additional check word to verify that it was malloced
from its space. These check words are the same within each
execution of a program using malloc, but differ across
executions, so externally crafted fake chunks cannot be
freed. This improves security by rejecting frees/reallocs that
could corrupt heap memory, in addition to the checks preventing
writes to statics that are always on. This may further improve
security at the expense of time and space overhead. (Note that
FOOTERS may also be worth using with MSPACES.)
By default detected errors cause the program to abort (calling
"abort()"). You can override this to instead proceed past
errors by defining PROCEED_ON_ERROR. In this case, a bad free
has no effect, and a malloc that encounters a bad address
caused by user overwrites will ignore the bad address by
dropping pointers and indices to all known memory. This may
be appropriate for programs that should continue if at all
possible in the face of programming errors, although they may
run out of memory because dropped memory is never reclaimed.
If you don't like either of these options, you can define
CORRUPTION_ERROR_ACTION and USAGE_ERROR_ACTION to do anything
else. And if if you are sure that your program using malloc has
no errors or vulnerabilities, you can define INSECURE to 1,
which might (or might not) provide a small performance improvement.
It is also possible to limit the maximum total allocatable
space, using malloc_set_footprint_limit. This is not
designed as a security feature in itself (calls to set limits
are not screened or privileged), but may be useful as one
aspect of a secure implementation.
Thread-safety: NOT thread-safe unless USE_LOCKS defined non-zero
When USE_LOCKS is defined, each public call to malloc, free,
etc is surrounded with a lock. By default, this uses a plain
pthread mutex, win32 critical section, or a spin-lock if if
available for the platform and not disabled by setting
USE_SPIN_LOCKS=0. However, if USE_RECURSIVE_LOCKS is defined,
recursive versions are used instead (which are not required for
base functionality but may be needed in layered extensions).
Using a global lock is not especially fast, and can be a major
bottleneck. It is designed only to provide minimal protection
in concurrent environments, and to provide a basis for
extensions. If you are using malloc in a concurrent program,
consider instead using nedmalloc
(http://www.nedprod.com/programs/portable/nedmalloc/) or
ptmalloc (See http://www.malloc.de), which are derived from
versions of this malloc.
System requirements: Any combination of MORECORE and/or MMAP/MUNMAP
This malloc can use unix sbrk or any emulation (invoked using
the CALL_MORECORE macro) and/or mmap/munmap or any emulation
(invoked using CALL_MMAP/CALL_MUNMAP) to get and release system
memory. On most unix systems, it tends to work best if both
MORECORE and MMAP are enabled. On Win32, it uses emulations
based on VirtualAlloc. It also uses common C library functions
like memset.
Compliance: I believe it is compliant with the Single Unix Specification
(See http://www.unix.org). Also SVID/XPG, ANSI C, and probably
others as well.
* Overview of algorithms
This is not the fastest, most space-conserving, most portable, or
most tunable malloc ever written. However it is among the fastest
while also being among the most space-conserving, portable and
tunable. Consistent balance across these factors results in a good
general-purpose allocator for malloc-intensive programs.
In most ways, this malloc is a best-fit allocator. Generally, it
chooses the best-fitting existing chunk for a request, with ties
broken in approximately least-recently-used order. (This strategy
normally maintains low fragmentation.) However, for requests less
than 256bytes, it deviates from best-fit when there is not an
exactly fitting available chunk by preferring to use space adjacent
to that used for the previous small request, as well as by breaking
ties in approximately most-recently-used order. (These enhance
locality of series of small allocations.) And for very large requests
(>= 256Kb by default), it relies on system memory mapping
facilities, if supported. (This helps avoid carrying around and
possibly fragmenting memory used only for large chunks.)
All operations (except malloc_stats and mallinfo) have execution
times that are bounded by a constant factor of the number of bits in
a size_t, not counting any clearing in calloc or copying in realloc,
or actions surrounding MORECORE and MMAP that have times
proportional to the number of non-contiguous regions returned by
system allocation routines, which is often just 1. In real-time
applications, you can optionally suppress segment traversals using
NO_SEGMENT_TRAVERSAL, which assures bounded execution even when
system allocators return non-contiguous spaces, at the typical
expense of carrying around more memory and increased fragmentation.
The implementation is not very modular and seriously overuses
macros. Perhaps someday all C compilers will do as good a job
inlining modular code as can now be done by brute-force expansion,
but now, enough of them seem not to.
Some compilers issue a lot of warnings about code that is
dead/unreachable only on some platforms, and also about intentional
uses of negation on unsigned types. All known cases of each can be
ignored.
For a longer but out of date high-level description, see
http://gee.cs.oswego.edu/dl/html/malloc.html
* MSPACES
If MSPACES is defined, then in addition to malloc, free, etc.,
this file also defines mspace_malloc, mspace_free, etc. These
are versions of malloc routines that take an "mspace" argument
obtained using create_mspace, to control all internal bookkeeping.
If ONLY_MSPACES is defined, only these versions are compiled.
So if you would like to use this allocator for only some allocations,
and your system malloc for others, you can compile with
ONLY_MSPACES and then do something like...
static mspace mymspace = create_mspace(0,0); // for example
#define mymalloc(bytes) mspace_malloc(mymspace, bytes)
(Note: If you only need one instance of an mspace, you can instead
use "USE_DL_PREFIX" to relabel the global malloc.)
You can similarly create thread-local allocators by storing
mspaces as thread-locals. For example:
static __thread mspace tlms = 0;
void* tlmalloc(size_t bytes) {
if (tlms == 0) tlms = create_mspace(0, 0);
return mspace_malloc(tlms, bytes);
}
void tlfree(void* mem) { mspace_free(tlms, mem); }
Unless FOOTERS is defined, each mspace is completely independent.
You cannot allocate from one and free to another (although
conformance is only weakly checked, so usage errors are not always
caught). If FOOTERS is defined, then each chunk carries around a tag
indicating its originating mspace, and frees are directed to their
originating spaces. Normally, this requires use of locks.
------------------------- Compile-time options ---------------------------
Be careful in setting #define values for numerical constants of type
size_t. On some systems, literal values are not automatically extended
to size_t precision unless they are explicitly casted. You can also
use the symbolic values MAX_SIZE_T, SIZE_T_ONE, etc below.
WIN32 default: defined if _WIN32 defined
Defining WIN32 sets up defaults for MS environment and compilers.
Otherwise defaults are for unix. Beware that there seem to be some
cases where this malloc might not be a pure drop-in replacement for
Win32 malloc: Random-looking failures from Win32 GDI API's (eg;
SetDIBits()) may be due to bugs in some video driver implementations
when pixel buffers are malloc()ed, and the region spans more than
one VirtualAlloc()ed region. Because dlmalloc uses a small (64Kb)
default granularity, pixel buffers may straddle virtual allocation
regions more often than when using the Microsoft allocator. You can
avoid this by using VirtualAlloc() and VirtualFree() for all pixel
buffers rather than using malloc(). If this is not possible,
recompile this malloc with a larger DEFAULT_GRANULARITY. Note:
in cases where MSC and gcc (cygwin) are known to differ on WIN32,
conditions use _MSC_VER to distinguish them.
DLMALLOC_EXPORT default: extern
Defines how public APIs are declared. If you want to export via a
Windows DLL, you might define this as
#define DLMALLOC_EXPORT extern __declspec(dllexport)
If you want a POSIX ELF shared object, you might use
#define DLMALLOC_EXPORT extern __attribute__((visibility("default")))
MALLOC_ALIGNMENT default: (size_t)(2 * sizeof(void *))
Controls the minimum alignment for malloc'ed chunks. It must be a
power of two and at least 8, even on machines for which smaller
alignments would suffice. It may be defined as larger than this
though. Note however that code and data structures are optimized for
the case of 8-byte alignment.
MSPACES default: 0 (false)
If true, compile in support for independent allocation spaces.
This is only supported if HAVE_MMAP is true.
ONLY_MSPACES default: 0 (false)
If true, only compile in mspace versions, not regular versions.
USE_LOCKS default: 0 (false)
Causes each call to each public routine to be surrounded with
pthread or WIN32 mutex lock/unlock. (If set true, this can be
overridden on a per-mspace basis for mspace versions.) If set to a
non-zero value other than 1, locks are used, but their
implementation is left out, so lock functions must be supplied manually,
as described below.
USE_SPIN_LOCKS default: 1 iff USE_LOCKS and spin locks available
If true, uses custom spin locks for locking. This is currently
supported only gcc >= 4.1, older gccs on x86 platforms, and recent
MS compilers. Otherwise, posix locks or win32 critical sections are
used.
USE_RECURSIVE_LOCKS default: not defined
If defined nonzero, uses recursive (aka reentrant) locks, otherwise
uses plain mutexes. This is not required for malloc proper, but may
be needed for layered allocators such as nedmalloc.
LOCK_AT_FORK default: not defined
If defined nonzero, performs pthread_atfork upon initialization
to initialize child lock while holding parent lock. The implementation
assumes that pthread locks (not custom locks) are being used. In other
cases, you may need to customize the implementation.
FOOTERS default: 0
If true, provide extra checking and dispatching by placing
information in the footers of allocated chunks. This adds
space and time overhead.
INSECURE default: 0
If true, omit checks for usage errors and heap space overwrites.
USE_DL_PREFIX default: NOT defined
Causes compiler to prefix all public routines with the string 'dl'.
This can be useful when you only want to use this malloc in one part
of a program, using your regular system malloc elsewhere.
MALLOC_INSPECT_ALL default: NOT defined
If defined, compiles malloc_inspect_all and mspace_inspect_all, that
perform traversal of all heap space. Unless access to these
functions is otherwise restricted, you probably do not want to
include them in secure implementations.
ABORT default: defined as abort()
Defines how to abort on failed checks. On most systems, a failed
check cannot die with an "assert" or even print an informative
message, because the underlying print routines in turn call malloc,
which will fail again. Generally, the best policy is to simply call
abort(). It's not very useful to do more than this because many
errors due to overwriting will show up as address faults (null, odd
addresses etc) rather than malloc-triggered checks, so will also
abort. Also, most compilers know that abort() does not return, so
can better optimize code conditionally calling it.
PROCEED_ON_ERROR default: defined as 0 (false)
Controls whether detected bad addresses cause them to bypassed
rather than aborting. If set, detected bad arguments to free and
realloc are ignored. And all bookkeeping information is zeroed out
upon a detected overwrite of freed heap space, thus losing the
ability to ever return it from malloc again, but enabling the
application to proceed. If PROCEED_ON_ERROR is defined, the
static variable malloc_corruption_error_count is compiled in
and can be examined to see if errors have occurred. This option
generates slower code than the default abort policy.
DEBUG default: NOT defined
The DEBUG setting is mainly intended for people trying to modify
this code or diagnose problems when porting to new platforms.
However, it may also be able to better isolate user errors than just
using runtime checks. The assertions in the check routines spell
out in more detail the assumptions and invariants underlying the
algorithms. The checking is fairly extensive, and will slow down
execution noticeably. Calling malloc_stats or mallinfo with DEBUG
set will attempt to check every non-mmapped allocated and free chunk
in the course of computing the summaries.
ABORT_ON_ASSERT_FAILURE default: defined as 1 (true)
Debugging assertion failures can be nearly impossible if your
version of the assert macro causes malloc to be called, which will
lead to a cascade of further failures, blowing the runtime stack.
ABORT_ON_ASSERT_FAILURE cause assertions failures to call abort(),
which will usually make debugging easier.
MALLOC_FAILURE_ACTION default: sets errno to ENOMEM, or no-op on win32
The action to take before "return 0" when malloc fails to be able to
return memory because there is none available.
HAVE_MORECORE default: 1 (true) unless win32 or ONLY_MSPACES
True if this system supports sbrk or an emulation of it.
MORECORE default: sbrk
The name of the sbrk-style system routine to call to obtain more
memory. See below for guidance on writing custom MORECORE
functions. The type of the argument to sbrk/MORECORE varies across
systems. It cannot be size_t, because it supports negative
arguments, so it is normally the signed type of the same width as
size_t (sometimes declared as "intptr_t"). It doesn't much matter
though. Internally, we only call it with arguments less than half
the max value of a size_t, which should work across all reasonable
possibilities, although sometimes generating compiler warnings.
MORECORE_CONTIGUOUS default: 1 (true) if HAVE_MORECORE
If true, take advantage of fact that consecutive calls to MORECORE
with positive arguments always return contiguous increasing
addresses. This is true of unix sbrk. It does not hurt too much to
set it true anyway, since malloc copes with non-contiguities.
Setting it false when definitely non-contiguous saves time
and possibly wasted space it would take to discover this though.
MORECORE_CANNOT_TRIM default: NOT defined
True if MORECORE cannot release space back to the system when given
negative arguments. This is generally necessary only if you are
using a hand-crafted MORECORE function that cannot handle negative
arguments.
NO_SEGMENT_TRAVERSAL default: 0
If non-zero, suppresses traversals of memory segments
returned by either MORECORE or CALL_MMAP. This disables
merging of segments that are contiguous, and selectively
releasing them to the OS if unused, but bounds execution times.
HAVE_MMAP default: 1 (true)
True if this system supports mmap or an emulation of it. If so, and
HAVE_MORECORE is not true, MMAP is used for all system
allocation. If set and HAVE_MORECORE is true as well, MMAP is
primarily used to directly allocate very large blocks. It is also
used as a backup strategy in cases where MORECORE fails to provide
space from system. Note: A single call to MUNMAP is assumed to be
able to unmap memory that may have be allocated using multiple calls
to MMAP, so long as they are adjacent.
HAVE_MREMAP default: 1 on linux, else 0
If true realloc() uses mremap() to re-allocate large blocks and
extend or shrink allocation spaces.
MMAP_CLEARS default: 1 except on WINCE.
True if mmap clears memory so calloc doesn't need to. This is true
for standard unix mmap using /dev/zero and on WIN32 except for WINCE.
USE_BUILTIN_FFS default: 0 (i.e., not used)
Causes malloc to use the builtin ffs() function to compute indices.
Some compilers may recognize and intrinsify ffs to be faster than the
supplied C version. Also, the case of x86 using gcc is special-cased
to an asm instruction, so is already as fast as it can be, and so
this setting has no effect. Similarly for Win32 under recent MS compilers.
(On most x86s, the asm version is only slightly faster than the C version.)
malloc_getpagesize default: derive from system includes, or 4096.
The system page size. To the extent possible, this malloc manages
memory from the system in page-size units. This may be (and
usually is) a function rather than a constant. This is ignored
if WIN32, where page size is determined using getSystemInfo during
initialization.
USE_DEV_RANDOM default: 0 (i.e., not used)
Causes malloc to use /dev/random to initialize secure magic seed for
stamping footers. Otherwise, the current time is used.
NO_MALLINFO default: 0
If defined, don't compile "mallinfo". This can be a simple way
of dealing with mismatches between system declarations and
those in this file.
MALLINFO_FIELD_TYPE default: size_t
The type of the fields in the mallinfo struct. This was originally
defined as "int" in SVID etc, but is more usefully defined as
size_t. The value is used only if HAVE_USR_INCLUDE_MALLOC_H is not set
NO_MALLOC_STATS default: 0
If defined, don't compile "malloc_stats". This avoids calls to
fprintf and bringing in stdio dependencies you might not want.
REALLOC_ZERO_BYTES_FREES default: not defined
This should be set if a call to realloc with zero bytes should
be the same as a call to free. Some people think it should. Otherwise,
since this malloc returns a unique pointer for malloc(0), so does
realloc(p, 0).
LACKS_UNISTD_H, LACKS_FCNTL_H, LACKS_SYS_PARAM_H, LACKS_SYS_MMAN_H
LACKS_STRINGS_H, LACKS_STRING_H, LACKS_SYS_TYPES_H, LACKS_ERRNO_H
LACKS_STDLIB_H LACKS_SCHED_H LACKS_TIME_H default: NOT defined unless on WIN32
Define these if your system does not have these header files.
You might need to manually insert some of the declarations they provide.
DEFAULT_GRANULARITY default: page size if MORECORE_CONTIGUOUS,
system_info.dwAllocationGranularity in WIN32,
otherwise 64K.
Also settable using mallopt(M_GRANULARITY, x)
The unit for allocating and deallocating memory from the system. On
most systems with contiguous MORECORE, there is no reason to
make this more than a page. However, systems with MMAP tend to
either require or encourage larger granularities. You can increase
this value to prevent system allocation functions to be called so
often, especially if they are slow. The value must be at least one
page and must be a power of two. Setting to 0 causes initialization
to either page size or win32 region size. (Note: In previous
versions of malloc, the equivalent of this option was called
"TOP_PAD")
DEFAULT_TRIM_THRESHOLD default: 2MB
Also settable using mallopt(M_TRIM_THRESHOLD, x)
The maximum amount of unused top-most memory to keep before
releasing via malloc_trim in free(). Automatic trimming is mainly
useful in long-lived programs using contiguous MORECORE. Because
trimming via sbrk can be slow on some systems, and can sometimes be
wasteful (in cases where programs immediately afterward allocate
more large chunks) the value should be high enough so that your
overall system performance would improve by releasing this much
memory. As a rough guide, you might set to a value close to the
average size of a process (program) running on your system.
Releasing this much memory would allow such a process to run in
memory. Generally, it is worth tuning trim thresholds when a
program undergoes phases where several large chunks are allocated
and released in ways that can reuse each other's storage, perhaps
mixed with phases where there are no such chunks at all. The trim
value must be greater than page size to have any useful effect. To
disable trimming completely, you can set to MAX_SIZE_T. Note that the trick
some people use of mallocing a huge space and then freeing it at
program startup, in an attempt to reserve system memory, doesn't
have the intended effect under automatic trimming, since that memory
will immediately be returned to the system.
DEFAULT_MMAP_THRESHOLD default: 256K
Also settable using mallopt(M_MMAP_THRESHOLD, x)
The request size threshold for using MMAP to directly service a
request. Requests of at least this size that cannot be allocated
using already-existing space will be serviced via mmap. (If enough
normal freed space already exists it is used instead.) Using mmap
segregates relatively large chunks of memory so that they can be
individually obtained and released from the host system. A request
serviced through mmap is never reused by any other request (at least
not directly; the system may just so happen to remap successive
requests to the same locations). Segregating space in this way has
the benefits that: Mmapped space can always be individually released
back to the system, which helps keep the system level memory demands
of a long-lived program low. Also, mapped memory doesn't become
`locked' between other chunks, as can happen with normally allocated
chunks, which means that even trimming via malloc_trim would not
release them. However, it has the disadvantage that the space
cannot be reclaimed, consolidated, and then used to service later
requests, as happens with normal chunks. The advantages of mmap
nearly always outweigh disadvantages for "large" chunks, but the
value of "large" may vary across systems. The default is an
empirically derived value that works well in most systems. You can
disable mmap by setting to MAX_SIZE_T.
MAX_RELEASE_CHECK_RATE default: 4095 unless not HAVE_MMAP
The number of consolidated frees between checks to release
unused segments when freeing. When using non-contiguous segments,
especially with multiple mspaces, checking only for topmost space
doesn't always suffice to trigger trimming. To compensate for this,
free() will, with a period of MAX_RELEASE_CHECK_RATE (or the
current number of segments, if greater) try to release unused
segments to the OS when freeing chunks that result in
consolidation. The best value for this parameter is a compromise
between slowing down frees with relatively costly checks that
rarely trigger versus holding on to unused memory. To effectively
disable, set to MAX_SIZE_T. This may lead to a very slight speed
improvement at the expense of carrying around more memory.
*/
/* Version identifier to allow people to support multiple versions */
#ifndef DLMALLOC_VERSION
#define DLMALLOC_VERSION 20806
#endif /* DLMALLOC_VERSION */
#ifndef DLMALLOC_EXPORT
#define DLMALLOC_EXPORT extern
#endif
#ifndef WIN32
#ifdef _WIN32
#define WIN32 1
#endif /* _WIN32 */
#ifdef _WIN32_WCE
#define LACKS_FCNTL_H
#define WIN32 1
#endif /* _WIN32_WCE */
#endif /* WIN32 */
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#define HAVE_MMAP 1
#define HAVE_MORECORE 0
#define LACKS_UNISTD_H
#define LACKS_SYS_PARAM_H
#define LACKS_SYS_MMAN_H
#define LACKS_STRING_H
#define LACKS_STRINGS_H
#define LACKS_SYS_TYPES_H
#define LACKS_ERRNO_H
#define LACKS_SCHED_H
#ifndef MALLOC_FAILURE_ACTION
#define MALLOC_FAILURE_ACTION
#endif /* MALLOC_FAILURE_ACTION */
#ifndef MMAP_CLEARS
#ifdef _WIN32_WCE /* WINCE reportedly does not clear */
#define MMAP_CLEARS 0
#else
#define MMAP_CLEARS 1
#endif /* _WIN32_WCE */
#endif /*MMAP_CLEARS */
#endif /* WIN32 */
#if defined(DARWIN) || defined(_DARWIN)
/* Mac OSX docs advise not to use sbrk; it seems better to use mmap */
#ifndef HAVE_MORECORE
#define HAVE_MORECORE 0
#define HAVE_MMAP 1
/* OSX allocators provide 16 byte alignment */
#ifndef MALLOC_ALIGNMENT
#define MALLOC_ALIGNMENT ((size_t)16U)
#endif
#endif /* HAVE_MORECORE */
#endif /* DARWIN */
#ifndef LACKS_SYS_TYPES_H
#include <sys/types.h> /* For size_t */
#endif /* LACKS_SYS_TYPES_H */
/* The maximum possible size_t value has all bits set */
#define MAX_SIZE_T (~(size_t)0)
#ifndef USE_LOCKS /* ensure true if spin or recursive locks set */
#define USE_LOCKS ((defined(USE_SPIN_LOCKS) && USE_SPIN_LOCKS != 0) || \
(defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0))
#endif /* USE_LOCKS */
#if USE_LOCKS /* Spin locks for gcc >= 4.1, older gcc on x86, MSC >= 1310 */
#if ((defined(__GNUC__) && \
((__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)) || \
defined(__i386__) || defined(__x86_64__))) || \
(defined(_MSC_VER) && _MSC_VER>=1310))
#ifndef USE_SPIN_LOCKS
#define USE_SPIN_LOCKS 1
#endif /* USE_SPIN_LOCKS */
#elif USE_SPIN_LOCKS
#error "USE_SPIN_LOCKS defined without implementation"
#endif /* ... locks available... */
#elif !defined(USE_SPIN_LOCKS)
#define USE_SPIN_LOCKS 0
#endif /* USE_LOCKS */
#ifndef ONLY_MSPACES
#define ONLY_MSPACES 0
#endif /* ONLY_MSPACES */
#ifndef MSPACES
#if ONLY_MSPACES
#define MSPACES 1
#else /* ONLY_MSPACES */
#define MSPACES 0
#endif /* ONLY_MSPACES */
#endif /* MSPACES */
#ifndef MALLOC_ALIGNMENT
#define MALLOC_ALIGNMENT ((size_t)(2 * sizeof(void *)))
#endif /* MALLOC_ALIGNMENT */
#ifndef FOOTERS
#define FOOTERS 0
#endif /* FOOTERS */
#ifndef ABORT
#define ABORT abort()
#endif /* ABORT */
#ifndef ABORT_ON_ASSERT_FAILURE
#define ABORT_ON_ASSERT_FAILURE 1
#endif /* ABORT_ON_ASSERT_FAILURE */
#ifndef PROCEED_ON_ERROR
#define PROCEED_ON_ERROR 0
#endif /* PROCEED_ON_ERROR */
#ifndef INSECURE
#define INSECURE 0
#endif /* INSECURE */
#ifndef MALLOC_INSPECT_ALL
#define MALLOC_INSPECT_ALL 0
#endif /* MALLOC_INSPECT_ALL */
#ifndef HAVE_MMAP
#define HAVE_MMAP 1
#endif /* HAVE_MMAP */
#ifndef MMAP_CLEARS
#define MMAP_CLEARS 1
#endif /* MMAP_CLEARS */
#ifndef HAVE_MREMAP
#ifdef linux
#define HAVE_MREMAP 1
#define _GNU_SOURCE /* Turns on mremap() definition */
#else /* linux */
#define HAVE_MREMAP 0
#endif /* linux */
#endif /* HAVE_MREMAP */
#ifndef MALLOC_FAILURE_ACTION
#define MALLOC_FAILURE_ACTION errno = ENOMEM;
#endif /* MALLOC_FAILURE_ACTION */
#ifndef HAVE_MORECORE
#if ONLY_MSPACES
#define HAVE_MORECORE 0
#else /* ONLY_MSPACES */
#define HAVE_MORECORE 1
#endif /* ONLY_MSPACES */
#endif /* HAVE_MORECORE */
#if !HAVE_MORECORE
#define MORECORE_CONTIGUOUS 0
#else /* !HAVE_MORECORE */
#define MORECORE_DEFAULT sbrk
#ifndef MORECORE_CONTIGUOUS
#define MORECORE_CONTIGUOUS 1
#endif /* MORECORE_CONTIGUOUS */
#endif /* HAVE_MORECORE */
#ifndef DEFAULT_GRANULARITY
#if (MORECORE_CONTIGUOUS || defined(WIN32))
#define DEFAULT_GRANULARITY (0) /* 0 means to compute in init_mparams */
#else /* MORECORE_CONTIGUOUS */
#define DEFAULT_GRANULARITY ((size_t)64U * (size_t)1024U)
#endif /* MORECORE_CONTIGUOUS */
#endif /* DEFAULT_GRANULARITY */
#ifndef DEFAULT_TRIM_THRESHOLD
#ifndef MORECORE_CANNOT_TRIM
#define DEFAULT_TRIM_THRESHOLD ((size_t)2U * (size_t)1024U * (size_t)1024U)
#else /* MORECORE_CANNOT_TRIM */
#define DEFAULT_TRIM_THRESHOLD MAX_SIZE_T
#endif /* MORECORE_CANNOT_TRIM */
#endif /* DEFAULT_TRIM_THRESHOLD */
#ifndef DEFAULT_MMAP_THRESHOLD
#if HAVE_MMAP
#define DEFAULT_MMAP_THRESHOLD ((size_t)256U * (size_t)1024U)
#else /* HAVE_MMAP */
#define DEFAULT_MMAP_THRESHOLD MAX_SIZE_T
#endif /* HAVE_MMAP */
#endif /* DEFAULT_MMAP_THRESHOLD */
#ifndef MAX_RELEASE_CHECK_RATE
#if HAVE_MMAP
#define MAX_RELEASE_CHECK_RATE 4095
#else
#define MAX_RELEASE_CHECK_RATE MAX_SIZE_T
#endif /* HAVE_MMAP */
#endif /* MAX_RELEASE_CHECK_RATE */
#ifndef USE_BUILTIN_FFS
#define USE_BUILTIN_FFS 0
#endif /* USE_BUILTIN_FFS */
#ifndef USE_DEV_RANDOM
#define USE_DEV_RANDOM 0
#endif /* USE_DEV_RANDOM */
#ifndef NO_MALLINFO
#define NO_MALLINFO 0
#endif /* NO_MALLINFO */
#ifndef MALLINFO_FIELD_TYPE
#define MALLINFO_FIELD_TYPE size_t
#endif /* MALLINFO_FIELD_TYPE */
#ifndef NO_MALLOC_STATS
#define NO_MALLOC_STATS 0
#endif /* NO_MALLOC_STATS */
#ifndef NO_SEGMENT_TRAVERSAL
#define NO_SEGMENT_TRAVERSAL 0
#endif /* NO_SEGMENT_TRAVERSAL */
/*
mallopt tuning options. SVID/XPG defines four standard parameter
numbers for mallopt, normally defined in malloc.h. None of these
are used in this malloc, so setting them has no effect. But this
malloc does support the following options.
*/
#define M_TRIM_THRESHOLD (-1)
#define M_GRANULARITY (-2)
#define M_MMAP_THRESHOLD (-3)
/* ------------------------ Mallinfo declarations ------------------------ */
#if !NO_MALLINFO
/*
This version of malloc supports the standard SVID/XPG mallinfo
routine that returns a struct containing usage properties and
statistics. It should work on any system that has a
/usr/include/malloc.h defining struct mallinfo. The main
declaration needed is the mallinfo struct that is returned (by-copy)
by mallinfo(). The malloinfo struct contains a bunch of fields that
are not even meaningful in this version of malloc. These fields are
are instead filled by mallinfo() with other numbers that might be of
interest.
HAVE_USR_INCLUDE_MALLOC_H should be set if you have a
/usr/include/malloc.h file that includes a declaration of struct
mallinfo. If so, it is included; else a compliant version is
declared below. These must be precisely the same for mallinfo() to
work. The original SVID version of this struct, defined on most
systems with mallinfo, declares all fields as ints. But some others
define as unsigned long. If your system defines the fields using a
type of different width than listed here, you MUST #include your
system version and #define HAVE_USR_INCLUDE_MALLOC_H.
*/
/* #define HAVE_USR_INCLUDE_MALLOC_H */
#ifdef HAVE_USR_INCLUDE_MALLOC_H
#include "/usr/include/malloc.h"
#else /* HAVE_USR_INCLUDE_MALLOC_H */
#ifndef STRUCT_MALLINFO_DECLARED
/* HP-UX (and others?) redefines mallinfo unless _STRUCT_MALLINFO is defined */
#define _STRUCT_MALLINFO
#define STRUCT_MALLINFO_DECLARED 1
struct mallinfo {
MALLINFO_FIELD_TYPE arena; /* non-mmapped space allocated from system */
MALLINFO_FIELD_TYPE ordblks; /* number of free chunks */
MALLINFO_FIELD_TYPE smblks; /* always 0 */
MALLINFO_FIELD_TYPE hblks; /* always 0 */
MALLINFO_FIELD_TYPE hblkhd; /* space in mmapped regions */
MALLINFO_FIELD_TYPE usmblks; /* maximum total allocated space */
MALLINFO_FIELD_TYPE fsmblks; /* always 0 */
MALLINFO_FIELD_TYPE uordblks; /* total allocated space */
MALLINFO_FIELD_TYPE fordblks; /* total free space */
MALLINFO_FIELD_TYPE keepcost; /* releasable (via malloc_trim) space */
};
#endif /* STRUCT_MALLINFO_DECLARED */
#endif /* HAVE_USR_INCLUDE_MALLOC_H */
#endif /* NO_MALLINFO */
/*
Try to persuade compilers to inline. The most critical functions for
inlining are defined as macros, so these aren't used for them.
*/
#ifndef FORCEINLINE
#if defined(__GNUC__)
#define FORCEINLINE __inline __attribute__ ((always_inline))
#elif defined(_MSC_VER)
#define FORCEINLINE __forceinline
#endif
#endif
#ifndef NOINLINE
#if defined(__GNUC__)
#define NOINLINE __attribute__ ((noinline))
#elif defined(_MSC_VER)
#define NOINLINE __declspec(noinline)
#else
#define NOINLINE
#endif
#endif
#ifdef __cplusplus
extern "C" {
#ifndef FORCEINLINE
#define FORCEINLINE inline
#endif
#endif /* __cplusplus */
#ifndef FORCEINLINE
#define FORCEINLINE
#endif
#if !ONLY_MSPACES
/* ------------------- Declarations of public routines ------------------- */
#ifndef USE_DL_PREFIX
#define dlcalloc calloc
#define dlfree free
#define dlmalloc malloc
#define dlmemalign memalign
#define dlposix_memalign posix_memalign
#define dlrealloc realloc
#define dlrealloc_in_place realloc_in_place
#define dlvalloc valloc
#define dlpvalloc pvalloc
#define dlmallinfo mallinfo
#define dlmallopt mallopt
#define dlmalloc_trim malloc_trim
#define dlmalloc_stats malloc_stats
#define dlmalloc_usable_size malloc_usable_size
#define dlmalloc_footprint malloc_footprint
#define dlmalloc_max_footprint malloc_max_footprint
#define dlmalloc_footprint_limit malloc_footprint_limit
#define dlmalloc_set_footprint_limit malloc_set_footprint_limit
#define dlmalloc_inspect_all malloc_inspect_all
#define dlindependent_calloc independent_calloc
#define dlindependent_comalloc independent_comalloc
#define dlbulk_free bulk_free
#endif /* USE_DL_PREFIX */
/*
malloc(size_t n)
Returns a pointer to a newly allocated chunk of at least n bytes, or
null if no space is available, in which case errno is set to ENOMEM
on ANSI C systems.
If n is zero, malloc returns a minimum-sized chunk. (The minimum
size is 16 bytes on most 32bit systems, and 32 bytes on 64bit
systems.) Note that size_t is an unsigned type, so calls with
arguments that would be negative if signed are interpreted as
requests for huge amounts of space, which will often fail. The
maximum supported value of n differs across systems, but is in all
cases less than the maximum representable value of a size_t.
*/
DLMALLOC_EXPORT void* dlmalloc(size_t);
/*
free(void* p)
Releases the chunk of memory pointed to by p, that had been previously
allocated using malloc or a related routine such as realloc.
It has no effect if p is null. If p was not malloced or already
freed, free(p) will by default cause the current program to abort.
*/
DLMALLOC_EXPORT void dlfree(void*);
/*
calloc(size_t n_elements, size_t element_size);
Returns a pointer to n_elements * element_size bytes, with all locations
set to zero.
*/
DLMALLOC_EXPORT void* dlcalloc(size_t, size_t);
/*
realloc(void* p, size_t n)
Returns a pointer to a chunk of size n that contains the same data
as does chunk p up to the minimum of (n, p's size) bytes, or null
if no space is available.
The returned pointer may or may not be the same as p. The algorithm
prefers extending p in most cases when possible, otherwise it
employs the equivalent of a malloc-copy-free sequence.
If p is null, realloc is equivalent to malloc.
If space is not available, realloc returns null, errno is set (if on
ANSI) and p is NOT freed.
if n is for fewer bytes than already held by p, the newly unused
space is lopped off and freed if possible. realloc with a size
argument of zero (re)allocates a minimum-sized chunk.
The old unix realloc convention of allowing the last-free'd chunk
to be used as an argument to realloc is not supported.
*/
DLMALLOC_EXPORT void* dlrealloc(void*, size_t);
/*
realloc_in_place(void* p, size_t n)
Resizes the space allocated for p to size n, only if this can be
done without moving p (i.e., only if there is adjacent space
available if n is greater than p's current allocated size, or n is
less than or equal to p's size). This may be used instead of plain
realloc if an alternative allocation strategy is needed upon failure
to expand space; for example, reallocation of a buffer that must be
memory-aligned or cleared. You can use realloc_in_place to trigger
these alternatives only when needed.
Returns p if successful; otherwise null.
*/
DLMALLOC_EXPORT void* dlrealloc_in_place(void*, size_t);
/*
memalign(size_t alignment, size_t n);
Returns a pointer to a newly allocated chunk of n bytes, aligned
in accord with the alignment argument.
The alignment argument should be a power of two. If the argument is
not a power of two, the nearest greater power is used.
8-byte alignment is guaranteed by normal malloc calls, so don't
bother calling memalign with an argument of 8 or less.
Overreliance on memalign is a sure way to fragment space.
*/
DLMALLOC_EXPORT void* dlmemalign(size_t, size_t);
/*
int posix_memalign(void** pp, size_t alignment, size_t n);
Allocates a chunk of n bytes, aligned in accord with the alignment
argument. Differs from memalign only in that it (1) assigns the
allocated memory to *pp rather than returning it, (2) fails and
returns EINVAL if the alignment is not a power of two (3) fails and
returns ENOMEM if memory cannot be allocated.
*/
DLMALLOC_EXPORT int dlposix_memalign(void**, size_t, size_t);
/*
valloc(size_t n);
Equivalent to memalign(pagesize, n), where pagesize is the page
size of the system. If the pagesize is unknown, 4096 is used.
*/
DLMALLOC_EXPORT void* dlvalloc(size_t);
/*
mallopt(int parameter_number, int parameter_value)
Sets tunable parameters The format is to provide a
(parameter-number, parameter-value) pair. mallopt then sets the
corresponding parameter to the argument value if it can (i.e., so
long as the value is meaningful), and returns 1 if successful else
0. To workaround the fact that mallopt is specified to use int,
not size_t parameters, the value -1 is specially treated as the
maximum unsigned size_t value.
SVID/XPG/ANSI defines four standard param numbers for mallopt,
normally defined in malloc.h. None of these are use in this malloc,
so setting them has no effect. But this malloc also supports other
options in mallopt. See below for details. Briefly, supported
parameters are as follows (listed defaults are for "typical"
configurations).
Symbol param # default allowed param values
M_TRIM_THRESHOLD -1 2*1024*1024 any (-1 disables)
M_GRANULARITY -2 page size any power of 2 >= page size
M_MMAP_THRESHOLD -3 256*1024 any (or 0 if no MMAP support)
*/
DLMALLOC_EXPORT int dlmallopt(int, int);
/*
malloc_footprint();
Returns the number of bytes obtained from the system. The total
number of bytes allocated by malloc, realloc etc., is less than this
value. Unlike mallinfo, this function returns only a precomputed
result, so can be called frequently to monitor memory consumption.
Even if locks are otherwise defined, this function does not use them,
so results might not be up to date.
*/
DLMALLOC_EXPORT size_t dlmalloc_footprint(void);
/*
malloc_max_footprint();
Returns the maximum number of bytes obtained from the system. This
value will be greater than current footprint if deallocated space
has been reclaimed by the system. The peak number of bytes allocated
by malloc, realloc etc., is less than this value. Unlike mallinfo,
this function returns only a precomputed result, so can be called
frequently to monitor memory consumption. Even if locks are
otherwise defined, this function does not use them, so results might
not be up to date.
*/
DLMALLOC_EXPORT size_t dlmalloc_max_footprint(void);
/*
malloc_footprint_limit();
Returns the number of bytes that the heap is allowed to obtain from
the system, returning the last value returned by
malloc_set_footprint_limit, or the maximum size_t value if
never set. The returned value reflects a permission. There is no
guarantee that this number of bytes can actually be obtained from
the system.
*/
DLMALLOC_EXPORT size_t dlmalloc_footprint_limit();
/*
malloc_set_footprint_limit();
Sets the maximum number of bytes to obtain from the system, causing
failure returns from malloc and related functions upon attempts to
exceed this value. The argument value may be subject to page
rounding to an enforceable limit; this actual value is returned.
Using an argument of the maximum possible size_t effectively
disables checks. If the argument is less than or equal to the
current malloc_footprint, then all future allocations that require
additional system memory will fail. However, invocation cannot
retroactively deallocate existing used memory.
*/
DLMALLOC_EXPORT size_t dlmalloc_set_footprint_limit(size_t bytes);
#if MALLOC_INSPECT_ALL
/*
malloc_inspect_all(void(*handler)(void *start,
void *end,
size_t used_bytes,
void* callback_arg),
void* arg);
Traverses the heap and calls the given handler for each managed
region, skipping all bytes that are (or may be) used for bookkeeping
purposes. Traversal does not include include chunks that have been
directly memory mapped. Each reported region begins at the start
address, and continues up to but not including the end address. The
first used_bytes of the region contain allocated data. If
used_bytes is zero, the region is unallocated. The handler is
invoked with the given callback argument. If locks are defined, they
are held during the entire traversal. It is a bad idea to invoke
other malloc functions from within the handler.
For example, to count the number of in-use chunks with size greater
than 1000, you could write:
static int count = 0;
void count_chunks(void* start, void* end, size_t used, void* arg) {
if (used >= 1000) ++count;
}
then:
malloc_inspect_all(count_chunks, NULL);
malloc_inspect_all is compiled only if MALLOC_INSPECT_ALL is defined.
*/
DLMALLOC_EXPORT void dlmalloc_inspect_all(void(*handler)(void*, void *, size_t, void*),
void* arg);
#endif /* MALLOC_INSPECT_ALL */
#if !NO_MALLINFO
/*
mallinfo()
Returns (by copy) a struct containing various summary statistics:
arena: current total non-mmapped bytes allocated from system
ordblks: the number of free chunks
smblks: always zero.
hblks: current number of mmapped regions
hblkhd: total bytes held in mmapped regions
usmblks: the maximum total allocated space. This will be greater
than current total if trimming has occurred.
fsmblks: always zero
uordblks: current total allocated space (normal or mmapped)
fordblks: total free space
keepcost: the maximum number of bytes that could ideally be released
back to system via malloc_trim. ("ideally" means that
it ignores page restrictions etc.)
Because these fields are ints, but internal bookkeeping may
be kept as longs, the reported values may wrap around zero and
thus be inaccurate.
*/
DLMALLOC_EXPORT struct mallinfo dlmallinfo(void);
#endif /* NO_MALLINFO */
/*
independent_calloc(size_t n_elements, size_t element_size, void* chunks[]);
independent_calloc is similar to calloc, but instead of returning a
single cleared space, it returns an array of pointers to n_elements
independent elements that can hold contents of size elem_size, each
of which starts out cleared, and can be independently freed,
realloc'ed etc. The elements are guaranteed to be adjacently
allocated (this is not guaranteed to occur with multiple callocs or
mallocs), which may also improve cache locality in some
applications.
The "chunks" argument is optional (i.e., may be null, which is
probably the most typical usage). If it is null, the returned array
is itself dynamically allocated and should also be freed when it is
no longer needed. Otherwise, the chunks array must be of at least
n_elements in length. It is filled in with the pointers to the
chunks.
In either case, independent_calloc returns this pointer array, or
null if the allocation failed. If n_elements is zero and "chunks"
is null, it returns a chunk representing an array with zero elements
(which should be freed if not wanted).
Each element must be freed when it is no longer needed. This can be
done all at once using bulk_free.
independent_calloc simplifies and speeds up implementations of many
kinds of pools. It may also be useful when constructing large data
structures that initially have a fixed number of fixed-sized nodes,
but the number is not known at compile time, and some of the nodes
may later need to be freed. For example:
struct Node { int item; struct Node* next; };
struct Node* build_list() {
struct Node** pool;
int n = read_number_of_nodes_needed();
if (n <= 0) return 0;
pool = (struct Node**)(independent_calloc(n, sizeof(struct Node), 0);
if (pool == 0) die();
// organize into a linked list...
struct Node* first = pool[0];
for (i = 0; i < n-1; ++i)
pool[i]->next = pool[i+1];
free(pool); // Can now free the array (or not, if it is needed later)
return first;
}
*/
DLMALLOC_EXPORT void** dlindependent_calloc(size_t, size_t, void**);
/*
independent_comalloc(size_t n_elements, size_t sizes[], void* chunks[]);
independent_comalloc allocates, all at once, a set of n_elements
chunks with sizes indicated in the "sizes" array. It returns
an array of pointers to these elements, each of which can be
independently freed, realloc'ed etc. The elements are guaranteed to
be adjacently allocated (this is not guaranteed to occur with
multiple callocs or mallocs), which may also improve cache locality
in some applications.
The "chunks" argument is optional (i.e., may be null). If it is null
the returned array is itself dynamically allocated and should also
be freed when it is no longer needed. Otherwise, the chunks array
must be of at least n_elements in length. It is filled in with the
pointers to the chunks.
In either case, independent_comalloc returns this pointer array, or
null if the allocation failed. If n_elements is zero and chunks is
null, it returns a chunk representing an array with zero elements
(which should be freed if not wanted).
Each element must be freed when it is no longer needed. This can be
done all at once using bulk_free.
independent_comallac differs from independent_calloc in that each
element may have a different size, and also that it does not
automatically clear elements.
independent_comalloc can be used to speed up allocation in cases
where several structs or objects must always be allocated at the
same time. For example:
struct Head { ... }
struct Foot { ... }
void send_message(char* msg) {
int msglen = strlen(msg);
size_t sizes[3] = { sizeof(struct Head), msglen, sizeof(struct Foot) };
void* chunks[3];
if (independent_comalloc(3, sizes, chunks) == 0)
die();
struct Head* head = (struct Head*)(chunks[0]);
char* body = (char*)(chunks[1]);
struct Foot* foot = (struct Foot*)(chunks[2]);
// ...
}
In general though, independent_comalloc is worth using only for
larger values of n_elements. For small values, you probably won't
detect enough difference from series of malloc calls to bother.
Overuse of independent_comalloc can increase overall memory usage,
since it cannot reuse existing noncontiguous small chunks that
might be available for some of the elements.
*/
DLMALLOC_EXPORT void** dlindependent_comalloc(size_t, size_t*, void**);
/*
bulk_free(void* array[], size_t n_elements)
Frees and clears (sets to null) each non-null pointer in the given
array. This is likely to be faster than freeing them one-by-one.
If footers are used, pointers that have been allocated in different
mspaces are not freed or cleared, and the count of all such pointers
is returned. For large arrays of pointers with poor locality, it
may be worthwhile to sort this array before calling bulk_free.
*/
DLMALLOC_EXPORT size_t dlbulk_free(void**, size_t n_elements);
/*
pvalloc(size_t n);
Equivalent to valloc(minimum-page-that-holds(n)), that is,
round up n to nearest pagesize.
*/
DLMALLOC_EXPORT void* dlpvalloc(size_t);
/*
malloc_trim(size_t pad);
If possible, gives memory back to the system (via negative arguments
to sbrk) if there is unused memory at the `high' end of the malloc
pool or in unused MMAP segments. You can call this after freeing
large blocks of memory to potentially reduce the system-level memory
requirements of a program. However, it cannot guarantee to reduce
memory. Under some allocation patterns, some large free blocks of
memory will be locked between two used chunks, so they cannot be
given back to the system.
The `pad' argument to malloc_trim represents the amount of free
trailing space to leave untrimmed. If this argument is zero, only
the minimum amount of memory to maintain internal data structures
will be left. Non-zero arguments can be supplied to maintain enough
trailing space to service future expected allocations without having
to re-obtain memory from the system.
Malloc_trim returns 1 if it actually released any memory, else 0.
*/
DLMALLOC_EXPORT int dlmalloc_trim(size_t);
/*
malloc_stats();
Prints on stderr the amount of space obtained from the system (both
via sbrk and mmap), the maximum amount (which may be more than
current if malloc_trim and/or munmap got called), and the current
number of bytes allocated via malloc (or realloc, etc) but not yet
freed. Note that this is the number of bytes allocated, not the
number requested. It will be larger than the number requested
because of alignment and bookkeeping overhead. Because it includes
alignment wastage as being in use, this figure may be greater than
zero even when no user-level chunks are allocated.
The reported current and maximum system memory can be inaccurate if
a program makes other calls to system memory allocation functions
(normally sbrk) outside of malloc.
malloc_stats prints only the most commonly interesting statistics.
More information can be obtained by calling mallinfo.
*/
DLMALLOC_EXPORT void dlmalloc_stats(void);
/*
malloc_usable_size(void* p);
Returns the number of bytes you can actually use in
an allocated chunk, which may be more than you requested (although
often not) due to alignment and minimum size constraints.
You can use this many bytes without worrying about
overwriting other allocated objects. This is not a particularly great
programming practice. malloc_usable_size can be more useful in
debugging and assertions, for example:
p = malloc(n);
assert(malloc_usable_size(p) >= 256);
*/
size_t dlmalloc_usable_size(void*);
#endif /* ONLY_MSPACES */
#if MSPACES
/*
mspace is an opaque type representing an independent
region of space that supports mspace_malloc, etc.
*/
typedef void* mspace;
/*
create_mspace creates and returns a new independent space with the
given initial capacity, or, if 0, the default granularity size. It
returns null if there is no system memory available to create the
space. If argument locked is non-zero, the space uses a separate
lock to control access. The capacity of the space will grow
dynamically as needed to service mspace_malloc requests. You can
control the sizes of incremental increases of this space by
compiling with a different DEFAULT_GRANULARITY or dynamically
setting with mallopt(M_GRANULARITY, value).
*/
DLMALLOC_EXPORT mspace create_mspace(size_t capacity, int locked);
/*
destroy_mspace destroys the given space, and attempts to return all
of its memory back to the system, returning the total number of
bytes freed. After destruction, the results of access to all memory
used by the space become undefined.
*/
DLMALLOC_EXPORT size_t destroy_mspace(mspace msp);
/*
create_mspace_with_base uses the memory supplied as the initial base
of a new mspace. Part (less than 128*sizeof(size_t) bytes) of this
space is used for bookkeeping, so the capacity must be at least this
large. (Otherwise 0 is returned.) When this initial space is
exhausted, additional memory will be obtained from the system.
Destroying this space will deallocate all additionally allocated
space (if possible) but not the initial base.
*/
DLMALLOC_EXPORT mspace create_mspace_with_base(void* base, size_t capacity, int locked);
/*
mspace_track_large_chunks controls whether requests for large chunks
are allocated in their own untracked mmapped regions, separate from
others in this mspace. By default large chunks are not tracked,
which reduces fragmentation. However, such chunks are not
necessarily released to the system upon destroy_mspace. Enabling
tracking by setting to true may increase fragmentation, but avoids
leakage when relying on destroy_mspace to release all memory
allocated using this space. The function returns the previous
setting.
*/
DLMALLOC_EXPORT int mspace_track_large_chunks(mspace msp, int enable);
/*
mspace_malloc behaves as malloc, but operates within
the given space.
*/
DLMALLOC_EXPORT void* mspace_malloc(mspace msp, size_t bytes);
/*
mspace_free behaves as free, but operates within
the given space.
If compiled with FOOTERS==1, mspace_free is not actually needed.
free may be called instead of mspace_free because freed chunks from
any space are handled by their originating spaces.
*/
DLMALLOC_EXPORT void mspace_free(mspace msp, void* mem);
/*
mspace_realloc behaves as realloc, but operates within
the given space.
If compiled with FOOTERS==1, mspace_realloc is not actually
needed. realloc may be called instead of mspace_realloc because
realloced chunks from any space are handled by their originating
spaces.
*/
DLMALLOC_EXPORT void* mspace_realloc(mspace msp, void* mem, size_t newsize);
/*
mspace_calloc behaves as calloc, but operates within
the given space.
*/
DLMALLOC_EXPORT void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size);
/*
mspace_memalign behaves as memalign, but operates within
the given space.
*/
DLMALLOC_EXPORT void* mspace_memalign(mspace msp, size_t alignment, size_t bytes);
/*
mspace_independent_calloc behaves as independent_calloc, but
operates within the given space.
*/
DLMALLOC_EXPORT void** mspace_independent_calloc(mspace msp, size_t n_elements,
size_t elem_size, void* chunks[]);
/*
mspace_independent_comalloc behaves as independent_comalloc, but
operates within the given space.
*/
DLMALLOC_EXPORT void** mspace_independent_comalloc(mspace msp, size_t n_elements,
size_t sizes[], void* chunks[]);
/*
mspace_footprint() returns the number of bytes obtained from the
system for this space.
*/
DLMALLOC_EXPORT size_t mspace_footprint(mspace msp);
/*
mspace_max_footprint() returns the peak number of bytes obtained from the
system for this space.
*/
DLMALLOC_EXPORT size_t mspace_max_footprint(mspace msp);
#if !NO_MALLINFO
/*
mspace_mallinfo behaves as mallinfo, but reports properties of
the given space.
*/
DLMALLOC_EXPORT struct mallinfo mspace_mallinfo(mspace msp);
#endif /* NO_MALLINFO */
/*
malloc_usable_size(void* p) behaves the same as malloc_usable_size;
*/
DLMALLOC_EXPORT size_t mspace_usable_size(const void* mem);
/*
mspace_malloc_stats behaves as malloc_stats, but reports
properties of the given space.
*/
DLMALLOC_EXPORT void mspace_malloc_stats(mspace msp);
/*
mspace_trim behaves as malloc_trim, but
operates within the given space.
*/
DLMALLOC_EXPORT int mspace_trim(mspace msp, size_t pad);
/*
An alias for mallopt.
*/
DLMALLOC_EXPORT int mspace_mallopt(int, int);
#endif /* MSPACES */
#ifdef __cplusplus
} /* end of extern "C" */
#endif /* __cplusplus */
/*
========================================================================
To make a fully customizable malloc.h header file, cut everything
above this line, put into file malloc.h, edit to suit, and #include it
on the next line, as well as in programs that use this malloc.
========================================================================
*/
/* #include "malloc.h" */
/*------------------------------ internal #includes ---------------------- */
#ifdef _MSC_VER
#pragma warning( disable : 4146 ) /* no "unsigned" warnings */
#endif /* _MSC_VER */
#if !NO_MALLOC_STATS
#include <stdio.h> /* for printing in malloc_stats */
#endif /* NO_MALLOC_STATS */
#ifndef LACKS_ERRNO_H
#include <errno.h> /* for MALLOC_FAILURE_ACTION */
#endif /* LACKS_ERRNO_H */
#ifdef DEBUG
#if ABORT_ON_ASSERT_FAILURE
#undef assert
#define assert(x) if(!(x)) ABORT
#else /* ABORT_ON_ASSERT_FAILURE */
#include <assert.h>
#endif /* ABORT_ON_ASSERT_FAILURE */
#else /* DEBUG */
#ifndef assert
#define assert(x)
#endif
#define DEBUG 0
#endif /* DEBUG */
#if !defined(WIN32) && !defined(LACKS_TIME_H)
#include <time.h> /* for magic initialization */
#endif /* WIN32 */
#ifndef LACKS_STDLIB_H
#include <stdlib.h> /* for abort() */
#endif /* LACKS_STDLIB_H */
#ifndef LACKS_STRING_H
#include <string.h> /* for memset etc */
#endif /* LACKS_STRING_H */
#if USE_BUILTIN_FFS
#ifndef LACKS_STRINGS_H
#include <strings.h> /* for ffs */
#endif /* LACKS_STRINGS_H */
#endif /* USE_BUILTIN_FFS */
#if HAVE_MMAP
#ifndef LACKS_SYS_MMAN_H
/* On some versions of linux, mremap decl in mman.h needs __USE_GNU set */
#if (defined(linux) && !defined(__USE_GNU))
#define __USE_GNU 1
#include <sys/mman.h> /* for mmap */
#undef __USE_GNU
#else
#include <sys/mman.h> /* for mmap */
#endif /* linux */
#endif /* LACKS_SYS_MMAN_H */
#ifndef LACKS_FCNTL_H
#include <fcntl.h>
#endif /* LACKS_FCNTL_H */
#endif /* HAVE_MMAP */
#ifndef LACKS_UNISTD_H
#include <unistd.h> /* for sbrk, sysconf */
#else /* LACKS_UNISTD_H */
#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__)
extern void* sbrk(ptrdiff_t);
#endif /* FreeBSD etc */
#endif /* LACKS_UNISTD_H */
/* Declarations for locking */
#if USE_LOCKS
#ifndef WIN32
#if defined (__SVR4) && defined (__sun) /* solaris */
#include <thread.h>
#elif !defined(LACKS_SCHED_H)
#include <sched.h>
#endif /* solaris or LACKS_SCHED_H */
#if (defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0) || !USE_SPIN_LOCKS
#include <pthread.h>
#endif /* USE_RECURSIVE_LOCKS ... */
#elif defined(_MSC_VER)
#ifndef _M_AMD64
/* These are already defined on AMD64 builds */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
LONG __cdecl _InterlockedCompareExchange(LONG volatile *Dest, LONG Exchange, LONG Comp);
LONG __cdecl _InterlockedExchange(LONG volatile *Target, LONG Value);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _M_AMD64 */
#pragma intrinsic (_InterlockedCompareExchange)
#pragma intrinsic (_InterlockedExchange)
#define interlockedcompareexchange _InterlockedCompareExchange
#define interlockedexchange _InterlockedExchange
#elif defined(WIN32) && defined(__GNUC__)
#define interlockedcompareexchange(a, b, c) __sync_val_compare_and_swap(a, c, b)
#define interlockedexchange __sync_lock_test_and_set
#endif /* Win32 */
#else /* USE_LOCKS */
#endif /* USE_LOCKS */
#ifndef LOCK_AT_FORK
#define LOCK_AT_FORK 0
#endif
/* Declarations for bit scanning on win32 */
#if defined(_MSC_VER) && _MSC_VER>=1300
#ifndef BitScanForward /* Try to avoid pulling in WinNT.h */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
unsigned char _BitScanForward(unsigned long *index, unsigned long mask);
unsigned char _BitScanReverse(unsigned long *index, unsigned long mask);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#define BitScanForward _BitScanForward
#define BitScanReverse _BitScanReverse
#pragma intrinsic(_BitScanForward)
#pragma intrinsic(_BitScanReverse)
#endif /* BitScanForward */
#endif /* defined(_MSC_VER) && _MSC_VER>=1300 */
#ifndef WIN32
#ifndef malloc_getpagesize
# ifdef _SC_PAGESIZE /* some SVR4 systems omit an underscore */
# ifndef _SC_PAGE_SIZE
# define _SC_PAGE_SIZE _SC_PAGESIZE
# endif
# endif
# ifdef _SC_PAGE_SIZE
# define malloc_getpagesize sysconf(_SC_PAGE_SIZE)
# else
# if defined(BSD) || defined(DGUX) || defined(HAVE_GETPAGESIZE)
extern size_t getpagesize();
# define malloc_getpagesize getpagesize()
# else
# ifdef WIN32 /* use supplied emulation of getpagesize */
# define malloc_getpagesize getpagesize()
# else
# ifndef LACKS_SYS_PARAM_H
# include <sys/param.h>
# endif
# ifdef EXEC_PAGESIZE
# define malloc_getpagesize EXEC_PAGESIZE
# else
# ifdef NBPG
# ifndef CLSIZE
# define malloc_getpagesize NBPG
# else
# define malloc_getpagesize (NBPG * CLSIZE)
# endif
# else
# ifdef NBPC
# define malloc_getpagesize NBPC
# else
# ifdef PAGESIZE
# define malloc_getpagesize PAGESIZE
# else /* just guess */
# define malloc_getpagesize ((size_t)4096U)
# endif
# endif
# endif
# endif
# endif
# endif
# endif
#endif
#endif
/* ------------------- size_t and alignment properties -------------------- */
/* The byte and bit size of a size_t */
#define SIZE_T_SIZE (sizeof(size_t))
#define SIZE_T_BITSIZE (sizeof(size_t) << 3)
/* Some constants coerced to size_t */
/* Annoying but necessary to avoid errors on some platforms */
#define SIZE_T_ZERO ((size_t)0)
#define SIZE_T_ONE ((size_t)1)
#define SIZE_T_TWO ((size_t)2)
#define SIZE_T_FOUR ((size_t)4)
#define TWO_SIZE_T_SIZES (SIZE_T_SIZE<<1)
#define FOUR_SIZE_T_SIZES (SIZE_T_SIZE<<2)
#define SIX_SIZE_T_SIZES (FOUR_SIZE_T_SIZES+TWO_SIZE_T_SIZES)
#define HALF_MAX_SIZE_T (MAX_SIZE_T / 2U)
/* The bit mask value corresponding to MALLOC_ALIGNMENT */
#define CHUNK_ALIGN_MASK (MALLOC_ALIGNMENT - SIZE_T_ONE)
/* True if address a has acceptable alignment */
#define is_aligned(A) (((size_t)((A)) & (CHUNK_ALIGN_MASK)) == 0)
/* the number of bytes to offset an address to align it */
#define align_offset(A)\
((((size_t)(A) & CHUNK_ALIGN_MASK) == 0)? 0 :\
((MALLOC_ALIGNMENT - ((size_t)(A) & CHUNK_ALIGN_MASK)) & CHUNK_ALIGN_MASK))
/* -------------------------- MMAP preliminaries ------------------------- */
/*
If HAVE_MORECORE or HAVE_MMAP are false, we just define calls and
checks to fail so compiler optimizer can delete code rather than
using so many "#if"s.
*/
/* MORECORE and MMAP must return MFAIL on failure */
#define MFAIL ((void*)(MAX_SIZE_T))
#define CMFAIL ((char*)(MFAIL)) /* defined for convenience */
#if HAVE_MMAP
#ifndef WIN32
#define MUNMAP_DEFAULT(a, s) munmap((a), (s))
#define MMAP_PROT (PROT_READ|PROT_WRITE)
#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
#define MAP_ANONYMOUS MAP_ANON
#endif /* MAP_ANON */
#ifdef MAP_ANONYMOUS
#define MMAP_FLAGS (MAP_PRIVATE|MAP_ANONYMOUS)
#define MMAP_DEFAULT(s) mmap(0, (s), MMAP_PROT, MMAP_FLAGS, -1, 0)
#else /* MAP_ANONYMOUS */
/*
Nearly all versions of mmap support MAP_ANONYMOUS, so the following
is unlikely to be needed, but is supplied just in case.
*/
#define MMAP_FLAGS (MAP_PRIVATE)
static int dev_zero_fd = -1; /* Cached file descriptor for /dev/zero. */
#define MMAP_DEFAULT(s) ((dev_zero_fd < 0) ? \
(dev_zero_fd = open("/dev/zero", O_RDWR), \
mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0)) : \
mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0))
#endif /* MAP_ANONYMOUS */
#define DIRECT_MMAP_DEFAULT(s) MMAP_DEFAULT(s)
#else /* WIN32 */
/* Win32 MMAP via VirtualAlloc */
static FORCEINLINE void* win32mmap(size_t size) {
void* ptr = VirtualAlloc(0, size, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE);
return (ptr != 0)? ptr: MFAIL;
}
/* For direct MMAP, use MEM_TOP_DOWN to minimize interference */
static FORCEINLINE void* win32direct_mmap(size_t size) {
void* ptr = VirtualAlloc(0, size, MEM_RESERVE|MEM_COMMIT|MEM_TOP_DOWN,
PAGE_READWRITE);
return (ptr != 0)? ptr: MFAIL;
}
/* This function supports releasing coalesed segments */
static FORCEINLINE int win32munmap(void* ptr, size_t size) {
MEMORY_BASIC_INFORMATION minfo;
char* cptr = (char*)ptr;
while (size) {
if (VirtualQuery(cptr, &minfo, sizeof(minfo)) == 0)
return -1;
if (minfo.BaseAddress != cptr || minfo.AllocationBase != cptr ||
minfo.State != MEM_COMMIT || minfo.RegionSize > size)
return -1;
if (VirtualFree(cptr, 0, MEM_RELEASE) == 0)
return -1;
cptr += minfo.RegionSize;
size -= minfo.RegionSize;
}
return 0;
}
#define MMAP_DEFAULT(s) win32mmap(s)
#define MUNMAP_DEFAULT(a, s) win32munmap((a), (s))
#define DIRECT_MMAP_DEFAULT(s) win32direct_mmap(s)
#endif /* WIN32 */
#endif /* HAVE_MMAP */
#if HAVE_MREMAP
#ifndef WIN32
#define MREMAP_DEFAULT(addr, osz, nsz, mv) mremap((addr), (osz), (nsz), (mv))
#endif /* WIN32 */
#endif /* HAVE_MREMAP */
/**
* Define CALL_MORECORE
*/
#if HAVE_MORECORE
#ifdef MORECORE
#define CALL_MORECORE(S) MORECORE(S)
#else /* MORECORE */
#define CALL_MORECORE(S) MORECORE_DEFAULT(S)
#endif /* MORECORE */
#else /* HAVE_MORECORE */
#define CALL_MORECORE(S) MFAIL
#endif /* HAVE_MORECORE */
/**
* Define CALL_MMAP/CALL_MUNMAP/CALL_DIRECT_MMAP
*/
#if HAVE_MMAP
#define USE_MMAP_BIT (SIZE_T_ONE)
#ifdef MMAP
#define CALL_MMAP(s) MMAP(s)
#else /* MMAP */
#define CALL_MMAP(s) MMAP_DEFAULT(s)
#endif /* MMAP */
#ifdef MUNMAP
#define CALL_MUNMAP(a, s) MUNMAP((a), (s))
#else /* MUNMAP */
#define CALL_MUNMAP(a, s) MUNMAP_DEFAULT((a), (s))
#endif /* MUNMAP */
#ifdef DIRECT_MMAP
#define CALL_DIRECT_MMAP(s) DIRECT_MMAP(s)
#else /* DIRECT_MMAP */
#define CALL_DIRECT_MMAP(s) DIRECT_MMAP_DEFAULT(s)
#endif /* DIRECT_MMAP */
#else /* HAVE_MMAP */
#define USE_MMAP_BIT (SIZE_T_ZERO)
#define MMAP(s) MFAIL
#define MUNMAP(a, s) (-1)
#define DIRECT_MMAP(s) MFAIL
#define CALL_DIRECT_MMAP(s) DIRECT_MMAP(s)
#define CALL_MMAP(s) MMAP(s)
#define CALL_MUNMAP(a, s) MUNMAP((a), (s))
#endif /* HAVE_MMAP */
/**
* Define CALL_MREMAP
*/
#if HAVE_MMAP && HAVE_MREMAP
#ifdef MREMAP
#define CALL_MREMAP(addr, osz, nsz, mv) MREMAP((addr), (osz), (nsz), (mv))
#else /* MREMAP */
#define CALL_MREMAP(addr, osz, nsz, mv) MREMAP_DEFAULT((addr), (osz), (nsz), (mv))
#endif /* MREMAP */
#else /* HAVE_MMAP && HAVE_MREMAP */
#define CALL_MREMAP(addr, osz, nsz, mv) MFAIL
#endif /* HAVE_MMAP && HAVE_MREMAP */
/* mstate bit set if continguous morecore disabled or failed */
#define USE_NONCONTIGUOUS_BIT (4U)
/* segment bit set in create_mspace_with_base */
#define EXTERN_BIT (8U)
/* --------------------------- Lock preliminaries ------------------------ */
/*
When locks are defined, there is one global lock, plus
one per-mspace lock.
The global lock_ensures that mparams.magic and other unique
mparams values are initialized only once. It also protects
sequences of calls to MORECORE. In many cases sys_alloc requires
two calls, that should not be interleaved with calls by other
threads. This does not protect against direct calls to MORECORE
by other threads not using this lock, so there is still code to
cope the best we can on interference.
Per-mspace locks surround calls to malloc, free, etc.
By default, locks are simple non-reentrant mutexes.
Because lock-protected regions generally have bounded times, it is
OK to use the supplied simple spinlocks. Spinlocks are likely to
improve performance for lightly contended applications, but worsen
performance under heavy contention.
If USE_LOCKS is > 1, the definitions of lock routines here are
bypassed, in which case you will need to define the type MLOCK_T,
and at least INITIAL_LOCK, DESTROY_LOCK, ACQUIRE_LOCK, RELEASE_LOCK
and TRY_LOCK. You must also declare a
static MLOCK_T malloc_global_mutex = { initialization values };.
*/
#if !USE_LOCKS
#define USE_LOCK_BIT (0U)
#define INITIAL_LOCK(l) (0)
#define DESTROY_LOCK(l) (0)
#define ACQUIRE_MALLOC_GLOBAL_LOCK()
#define RELEASE_MALLOC_GLOBAL_LOCK()
#else
#if USE_LOCKS > 1
/* ----------------------- User-defined locks ------------------------ */
/* Define your own lock implementation here */
/* #define INITIAL_LOCK(lk) ... */
/* #define DESTROY_LOCK(lk) ... */
/* #define ACQUIRE_LOCK(lk) ... */
/* #define RELEASE_LOCK(lk) ... */
/* #define TRY_LOCK(lk) ... */
/* static MLOCK_T malloc_global_mutex = ... */
#elif USE_SPIN_LOCKS
/* First, define CAS_LOCK and CLEAR_LOCK on ints */
/* Note CAS_LOCK defined to return 0 on success */
#if defined(__GNUC__)&& (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1))
#define CAS_LOCK(sl) __sync_lock_test_and_set(sl, 1)
#define CLEAR_LOCK(sl) __sync_lock_release(sl)
#elif (defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)))
/* Custom spin locks for older gcc on x86 */
static FORCEINLINE int x86_cas_lock(int *sl) {
int ret;
int val = 1;
int cmp = 0;
__asm__ __volatile__ ("lock; cmpxchgl %1, %2"
: "=a" (ret)
: "r" (val), "m" (*(sl)), "0"(cmp)
: "memory", "cc");
return ret;
}
static FORCEINLINE void x86_clear_lock(int* sl) {
assert(*sl != 0);
int prev = 0;
int ret;
__asm__ __volatile__ ("lock; xchgl %0, %1"
: "=r" (ret)
: "m" (*(sl)), "0"(prev)
: "memory");
}
#define CAS_LOCK(sl) x86_cas_lock(sl)
#define CLEAR_LOCK(sl) x86_clear_lock(sl)
#else /* Win32 MSC */
#define CAS_LOCK(sl) interlockedexchange(sl, (LONG)1)
#define CLEAR_LOCK(sl) interlockedexchange (sl, (LONG)0)
#endif /* ... gcc spins locks ... */
/* How to yield for a spin lock */
#define SPINS_PER_YIELD 63
#if defined(_MSC_VER)
#define SLEEP_EX_DURATION 50 /* delay for yield/sleep */
#define SPIN_LOCK_YIELD SleepEx(SLEEP_EX_DURATION, FALSE)
#elif defined (__SVR4) && defined (__sun) /* solaris */
#define SPIN_LOCK_YIELD thr_yield();
#elif !defined(LACKS_SCHED_H)
#define SPIN_LOCK_YIELD sched_yield();
#else
#define SPIN_LOCK_YIELD
#endif /* ... yield ... */
#if !defined(USE_RECURSIVE_LOCKS) || USE_RECURSIVE_LOCKS == 0
/* Plain spin locks use single word (embedded in malloc_states) */
static int spin_acquire_lock(int *sl) {
int spins = 0;
while (*(volatile int *)sl != 0 || CAS_LOCK(sl)) {
if ((++spins & SPINS_PER_YIELD) == 0) {
SPIN_LOCK_YIELD;
}
}
return 0;
}
#define MLOCK_T int
#define TRY_LOCK(sl) !CAS_LOCK(sl)
#define RELEASE_LOCK(sl) CLEAR_LOCK(sl)
#define ACQUIRE_LOCK(sl) (CAS_LOCK(sl)? spin_acquire_lock(sl) : 0)
#define INITIAL_LOCK(sl) (*sl = 0)
#define DESTROY_LOCK(sl) (0)
static MLOCK_T malloc_global_mutex = 0;
#else /* USE_RECURSIVE_LOCKS */
/* types for lock owners */
#ifdef WIN32
#define THREAD_ID_T DWORD
#define CURRENT_THREAD GetCurrentThreadId()
#define EQ_OWNER(X,Y) ((X) == (Y))
#else
/*
Note: the following assume that pthread_t is a type that can be
initialized to (casted) zero. If this is not the case, you will need to
somehow redefine these or not use spin locks.
*/
#define THREAD_ID_T pthread_t
#define CURRENT_THREAD pthread_self()
#define EQ_OWNER(X,Y) pthread_equal(X, Y)
#endif
struct malloc_recursive_lock {
int sl;
unsigned int c;
THREAD_ID_T threadid;
};
#define MLOCK_T struct malloc_recursive_lock
static MLOCK_T malloc_global_mutex = { 0, 0, (THREAD_ID_T)0};
static FORCEINLINE void recursive_release_lock(MLOCK_T *lk) {
assert(lk->sl != 0);
if (--lk->c == 0) {
CLEAR_LOCK(&lk->sl);
}
}
static FORCEINLINE int recursive_acquire_lock(MLOCK_T *lk) {
THREAD_ID_T mythreadid = CURRENT_THREAD;
int spins = 0;
for (;;) {
if (*((volatile int *)(&lk->sl)) == 0) {
if (!CAS_LOCK(&lk->sl)) {
lk->threadid = mythreadid;
lk->c = 1;
return 0;
}
}
else if (EQ_OWNER(lk->threadid, mythreadid)) {
++lk->c;
return 0;
}
if ((++spins & SPINS_PER_YIELD) == 0) {
SPIN_LOCK_YIELD;
}
}
}
static FORCEINLINE int recursive_try_lock(MLOCK_T *lk) {
THREAD_ID_T mythreadid = CURRENT_THREAD;
if (*((volatile int *)(&lk->sl)) == 0) {
if (!CAS_LOCK(&lk->sl)) {
lk->threadid = mythreadid;
lk->c = 1;
return 1;
}
}
else if (EQ_OWNER(lk->threadid, mythreadid)) {
++lk->c;
return 1;
}
return 0;
}
#define RELEASE_LOCK(lk) recursive_release_lock(lk)
#define TRY_LOCK(lk) recursive_try_lock(lk)
#define ACQUIRE_LOCK(lk) recursive_acquire_lock(lk)
#define INITIAL_LOCK(lk) ((lk)->threadid = (THREAD_ID_T)0, (lk)->sl = 0, (lk)->c = 0)
#define DESTROY_LOCK(lk) (0)
#endif /* USE_RECURSIVE_LOCKS */
#elif defined(WIN32) /* Win32 critical sections */
#define MLOCK_T CRITICAL_SECTION
#define ACQUIRE_LOCK(lk) (EnterCriticalSection(lk), 0)
#define RELEASE_LOCK(lk) LeaveCriticalSection(lk)
#define TRY_LOCK(lk) TryEnterCriticalSection(lk)
#define INITIAL_LOCK(lk) (!InitializeCriticalSectionAndSpinCount((lk), 0x80000000|4000))
#define DESTROY_LOCK(lk) (DeleteCriticalSection(lk), 0)
#define NEED_GLOBAL_LOCK_INIT
static MLOCK_T malloc_global_mutex;
static volatile LONG malloc_global_mutex_status;
/* Use spin loop to initialize global lock */
static void init_malloc_global_mutex() {
for (;;) {
long stat = malloc_global_mutex_status;
if (stat > 0)
return;
/* transition to < 0 while initializing, then to > 0) */
if (stat == 0 &&
interlockedcompareexchange(&malloc_global_mutex_status, (LONG)-1, (LONG)0) == 0) {
InitializeCriticalSection(&malloc_global_mutex);
interlockedexchange(&malloc_global_mutex_status, (LONG)1);
return;
}
SleepEx(0, FALSE);
}
}
#else /* pthreads-based locks */
#define MLOCK_T pthread_mutex_t
#define ACQUIRE_LOCK(lk) pthread_mutex_lock(lk)
#define RELEASE_LOCK(lk) pthread_mutex_unlock(lk)
#define TRY_LOCK(lk) (!pthread_mutex_trylock(lk))
#define INITIAL_LOCK(lk) pthread_init_lock(lk)
#define DESTROY_LOCK(lk) pthread_mutex_destroy(lk)
#if defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0 && defined(linux) && !defined(PTHREAD_MUTEX_RECURSIVE)
/* Cope with old-style linux recursive lock initialization by adding */
/* skipped internal declaration from pthread.h */
extern int pthread_mutexattr_setkind_np __P ((pthread_mutexattr_t *__attr,
int __kind));
#define PTHREAD_MUTEX_RECURSIVE PTHREAD_MUTEX_RECURSIVE_NP
#define pthread_mutexattr_settype(x,y) pthread_mutexattr_setkind_np(x,y)
#endif /* USE_RECURSIVE_LOCKS ... */
static MLOCK_T malloc_global_mutex = PTHREAD_MUTEX_INITIALIZER;
static int pthread_init_lock (MLOCK_T *lk) {
pthread_mutexattr_t attr;
if (pthread_mutexattr_init(&attr)) return 1;
#if defined(USE_RECURSIVE_LOCKS) && USE_RECURSIVE_LOCKS != 0
if (pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE)) return 1;
#endif
if (pthread_mutex_init(lk, &attr)) return 1;
if (pthread_mutexattr_destroy(&attr)) return 1;
return 0;
}
#endif /* ... lock types ... */
/* Common code for all lock types */
#define USE_LOCK_BIT (2U)
#ifndef ACQUIRE_MALLOC_GLOBAL_LOCK
#define ACQUIRE_MALLOC_GLOBAL_LOCK() ACQUIRE_LOCK(&malloc_global_mutex);
#endif
#ifndef RELEASE_MALLOC_GLOBAL_LOCK
#define RELEASE_MALLOC_GLOBAL_LOCK() RELEASE_LOCK(&malloc_global_mutex);
#endif
#endif /* USE_LOCKS */
/* ----------------------- Chunk representations ------------------------ */
/*
(The following includes lightly edited explanations by Colin Plumb.)
The malloc_chunk declaration below is misleading (but accurate and
necessary). It declares a "view" into memory allowing access to
necessary fields at known offsets from a given base.
Chunks of memory are maintained using a `boundary tag' method as
originally described by Knuth. (See the paper by Paul Wilson
ftp://ftp.cs.utexas.edu/pub/garbage/allocsrv.ps for a survey of such
techniques.) Sizes of free chunks are stored both in the front of
each chunk and at the end. This makes consolidating fragmented
chunks into bigger chunks fast. The head fields also hold bits
representing whether chunks are free or in use.
Here are some pictures to make it clearer. They are "exploded" to
show that the state of a chunk can be thought of as extending from
the high 31 bits of the head field of its header through the
prev_foot and PINUSE_BIT bit of the following chunk header.
A chunk that's in use looks like:
chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Size of previous chunk (if P = 0) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |P|
| Size of this chunk 1| +-+
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| |
+- -+
| |
+- -+
| :
+- size - sizeof(size_t) available payload bytes -+
: |
chunk-> +- -+
| |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |1|
| Size of next chunk (may or may not be in use) | +-+
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
And if it's free, it looks like this:
chunk-> +- -+
| User payload (must be in use, or we would have merged!) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |P|
| Size of this chunk 0| +-+
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Next pointer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Prev pointer |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| :
+- size - sizeof(struct chunk) unused bytes -+
: |
chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Size of this chunk |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |0|
| Size of next chunk (must be in use, or we would have merged)| +-+
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| :
+- User payload -+
: |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|0|
+-+
Note that since we always merge adjacent free chunks, the chunks
adjacent to a free chunk must be in use.
Given a pointer to a chunk (which can be derived trivially from the
payload pointer) we can, in O(1) time, find out whether the adjacent
chunks are free, and if so, unlink them from the lists that they
are on and merge them with the current chunk.
Chunks always begin on even word boundaries, so the mem portion
(which is returned to the user) is also on an even word boundary, and
thus at least double-word aligned.
The P (PINUSE_BIT) bit, stored in the unused low-order bit of the
chunk size (which is always a multiple of two words), is an in-use
bit for the *previous* chunk. If that bit is *clear*, then the
word before the current chunk size contains the previous chunk
size, and can be used to find the front of the previous chunk.
The very first chunk allocated always has this bit set, preventing
access to non-existent (or non-owned) memory. If pinuse is set for
any given chunk, then you CANNOT determine the size of the
previous chunk, and might even get a memory addressing fault when
trying to do so.
The C (CINUSE_BIT) bit, stored in the unused second-lowest bit of
the chunk size redundantly records whether the current chunk is
inuse (unless the chunk is mmapped). This redundancy enables usage
checks within free and realloc, and reduces indirection when freeing
and consolidating chunks.
Each freshly allocated chunk must have both cinuse and pinuse set.
That is, each allocated chunk borders either a previously allocated
and still in-use chunk, or the base of its memory arena. This is
ensured by making all allocations from the `lowest' part of any
found chunk. Further, no free chunk physically borders another one,
so each free chunk is known to be preceded and followed by either
inuse chunks or the ends of memory.
Note that the `foot' of the current chunk is actually represented
as the prev_foot of the NEXT chunk. This makes it easier to
deal with alignments etc but can be very confusing when trying
to extend or adapt this code.
The exceptions to all this are
1. The special chunk `top' is the top-most available chunk (i.e.,
the one bordering the end of available memory). It is treated
specially. Top is never included in any bin, is used only if
no other chunk is available, and is released back to the
system if it is very large (see M_TRIM_THRESHOLD). In effect,
the top chunk is treated as larger (and thus less well
fitting) than any other available chunk. The top chunk
doesn't update its trailing size field since there is no next
contiguous chunk that would have to index off it. However,
space is still allocated for it (TOP_FOOT_SIZE) to enable
separation or merging when space is extended.
3. Chunks allocated via mmap, have both cinuse and pinuse bits
cleared in their head fields. Because they are allocated
one-by-one, each must carry its own prev_foot field, which is
also used to hold the offset this chunk has within its mmapped
region, which is needed to preserve alignment. Each mmapped
chunk is trailed by the first two fields of a fake next-chunk
for sake of usage checks.
*/
struct malloc_chunk {
size_t prev_foot; /* Size of previous chunk (if free). */
size_t head; /* Size and inuse bits. */
struct malloc_chunk* fd; /* double links -- used only if free. */
struct malloc_chunk* bk;
};
typedef struct malloc_chunk mchunk;
typedef struct malloc_chunk* mchunkptr;
typedef struct malloc_chunk* sbinptr; /* The type of bins of chunks */
typedef unsigned int bindex_t; /* Described below */
typedef unsigned int binmap_t; /* Described below */
typedef unsigned int flag_t; /* The type of various bit flag sets */
/* ------------------- Chunks sizes and alignments ----------------------- */
#define MCHUNK_SIZE (sizeof(mchunk))
#if FOOTERS
#define CHUNK_OVERHEAD (TWO_SIZE_T_SIZES)
#else /* FOOTERS */
#define CHUNK_OVERHEAD (SIZE_T_SIZE)
#endif /* FOOTERS */
/* MMapped chunks need a second word of overhead ... */
#define MMAP_CHUNK_OVERHEAD (TWO_SIZE_T_SIZES)
/* ... and additional padding for fake next-chunk at foot */
#define MMAP_FOOT_PAD (FOUR_SIZE_T_SIZES)
/* The smallest size we can malloc is an aligned minimal chunk */
#define MIN_CHUNK_SIZE\
((MCHUNK_SIZE + CHUNK_ALIGN_MASK) & ~CHUNK_ALIGN_MASK)
/* conversion from malloc headers to user pointers, and back */
#define chunk2mem(p) ((void*)((char*)(p) + TWO_SIZE_T_SIZES))
#define mem2chunk(mem) ((mchunkptr)((char*)(mem) - TWO_SIZE_T_SIZES))
/* chunk associated with aligned address A */
#define align_as_chunk(A) (mchunkptr)((A) + align_offset(chunk2mem(A)))
/* Bounds on request (not chunk) sizes. */
#define MAX_REQUEST ((-MIN_CHUNK_SIZE) << 2)
#define MIN_REQUEST (MIN_CHUNK_SIZE - CHUNK_OVERHEAD - SIZE_T_ONE)
/* pad request bytes into a usable size */
#define pad_request(req) \
(((req) + CHUNK_OVERHEAD + CHUNK_ALIGN_MASK) & ~CHUNK_ALIGN_MASK)
/* pad request, checking for minimum (but not maximum) */
#define request2size(req) \
(((req) < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(req))
/* ------------------ Operations on head and foot fields ----------------- */
/*
The head field of a chunk is or'ed with PINUSE_BIT when previous
adjacent chunk in use, and or'ed with CINUSE_BIT if this chunk is in
use, unless mmapped, in which case both bits are cleared.
FLAG4_BIT is not used by this malloc, but might be useful in extensions.
*/
#define PINUSE_BIT (SIZE_T_ONE)
#define CINUSE_BIT (SIZE_T_TWO)
#define FLAG4_BIT (SIZE_T_FOUR)
#define INUSE_BITS (PINUSE_BIT|CINUSE_BIT)
#define FLAG_BITS (PINUSE_BIT|CINUSE_BIT|FLAG4_BIT)
/* Head value for fenceposts */
#define FENCEPOST_HEAD (INUSE_BITS|SIZE_T_SIZE)
/* extraction of fields from head words */
#define cinuse(p) ((p)->head & CINUSE_BIT)
#define pinuse(p) ((p)->head & PINUSE_BIT)
#define flag4inuse(p) ((p)->head & FLAG4_BIT)
#define is_inuse(p) (((p)->head & INUSE_BITS) != PINUSE_BIT)
#define is_mmapped(p) (((p)->head & INUSE_BITS) == 0)
#define chunksize(p) ((p)->head & ~(FLAG_BITS))
#define clear_pinuse(p) ((p)->head &= ~PINUSE_BIT)
#define set_flag4(p) ((p)->head |= FLAG4_BIT)
#define clear_flag4(p) ((p)->head &= ~FLAG4_BIT)
/* Treat space at ptr +/- offset as a chunk */
#define chunk_plus_offset(p, s) ((mchunkptr)(((char*)(p)) + (s)))
#define chunk_minus_offset(p, s) ((mchunkptr)(((char*)(p)) - (s)))
/* Ptr to next or previous physical malloc_chunk. */
#define next_chunk(p) ((mchunkptr)( ((char*)(p)) + ((p)->head & ~FLAG_BITS)))
#define prev_chunk(p) ((mchunkptr)( ((char*)(p)) - ((p)->prev_foot) ))
/* extract next chunk's pinuse bit */
#define next_pinuse(p) ((next_chunk(p)->head) & PINUSE_BIT)
/* Get/set size at footer */
#define get_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_foot)
#define set_foot(p, s) (((mchunkptr)((char*)(p) + (s)))->prev_foot = (s))
/* Set size, pinuse bit, and foot */
#define set_size_and_pinuse_of_free_chunk(p, s)\
((p)->head = (s|PINUSE_BIT), set_foot(p, s))
/* Set size, pinuse bit, foot, and clear next pinuse */
#define set_free_with_pinuse(p, s, n)\
(clear_pinuse(n), set_size_and_pinuse_of_free_chunk(p, s))
/* Get the internal overhead associated with chunk p */
#define overhead_for(p)\
(is_mmapped(p)? MMAP_CHUNK_OVERHEAD : CHUNK_OVERHEAD)
/* Return true if malloced space is not necessarily cleared */
#if MMAP_CLEARS
#define calloc_must_clear(p) (!is_mmapped(p))
#else /* MMAP_CLEARS */
#define calloc_must_clear(p) (1)
#endif /* MMAP_CLEARS */
/* ---------------------- Overlaid data structures ----------------------- */
/*
When chunks are not in use, they are treated as nodes of either
lists or trees.
"Small" chunks are stored in circular doubly-linked lists, and look
like this:
chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Size of previous chunk |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
`head:' | Size of chunk, in bytes |P|
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Forward pointer to next chunk in list |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Back pointer to previous chunk in list |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Unused space (may be 0 bytes long) .
. .
. |
nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
`foot:' | Size of chunk, in bytes |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Larger chunks are kept in a form of bitwise digital trees (aka
tries) keyed on chunksizes. Because malloc_tree_chunks are only for
free chunks greater than 256 bytes, their size doesn't impose any
constraints on user chunk sizes. Each node looks like:
chunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Size of previous chunk |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
`head:' | Size of chunk, in bytes |P|
mem-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Forward pointer to next chunk of same size |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Back pointer to previous chunk of same size |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Pointer to left child (child[0]) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Pointer to right child (child[1]) |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Pointer to parent |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| bin index of this chunk |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Unused space .
. |
nextchunk-> +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
`foot:' | Size of chunk, in bytes |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Each tree holding treenodes is a tree of unique chunk sizes. Chunks
of the same size are arranged in a circularly-linked list, with only
the oldest chunk (the next to be used, in our FIFO ordering)
actually in the tree. (Tree members are distinguished by a non-null
parent pointer.) If a chunk with the same size an an existing node
is inserted, it is linked off the existing node using pointers that
work in the same way as fd/bk pointers of small chunks.
Each tree contains a power of 2 sized range of chunk sizes (the
smallest is 0x100 <= x < 0x180), which is is divided in half at each
tree level, with the chunks in the smaller half of the range (0x100
<= x < 0x140 for the top nose) in the left subtree and the larger
half (0x140 <= x < 0x180) in the right subtree. This is, of course,
done by inspecting individual bits.
Using these rules, each node's left subtree contains all smaller
sizes than its right subtree. However, the node at the root of each
subtree has no particular ordering relationship to either. (The
dividing line between the subtree sizes is based on trie relation.)
If we remove the last chunk of a given size from the interior of the
tree, we need to replace it with a leaf node. The tree ordering
rules permit a node to be replaced by any leaf below it.
The smallest chunk in a tree (a common operation in a best-fit
allocator) can be found by walking a path to the leftmost leaf in
the tree. Unlike a usual binary tree, where we follow left child
pointers until we reach a null, here we follow the right child
pointer any time the left one is null, until we reach a leaf with
both child pointers null. The smallest chunk in the tree will be
somewhere along that path.
The worst case number of steps to add, find, or remove a node is
bounded by the number of bits differentiating chunks within
bins. Under current bin calculations, this ranges from 6 up to 21
(for 32 bit sizes) or up to 53 (for 64 bit sizes). The typical case
is of course much better.
*/
struct malloc_tree_chunk {
/* The first four fields must be compatible with malloc_chunk */
size_t prev_foot;
size_t head;
struct malloc_tree_chunk* fd;
struct malloc_tree_chunk* bk;
struct malloc_tree_chunk* child[2];
struct malloc_tree_chunk* parent;
bindex_t index;
};
typedef struct malloc_tree_chunk tchunk;
typedef struct malloc_tree_chunk* tchunkptr;
typedef struct malloc_tree_chunk* tbinptr; /* The type of bins of trees */
/* A little helper macro for trees */
#define leftmost_child(t) ((t)->child[0] != 0? (t)->child[0] : (t)->child[1])
/* ----------------------------- Segments -------------------------------- */
/*
Each malloc space may include non-contiguous segments, held in a
list headed by an embedded malloc_segment record representing the
top-most space. Segments also include flags holding properties of
the space. Large chunks that are directly allocated by mmap are not
included in this list. They are instead independently created and
destroyed without otherwise keeping track of them.
Segment management mainly comes into play for spaces allocated by
MMAP. Any call to MMAP might or might not return memory that is
adjacent to an existing segment. MORECORE normally contiguously
extends the current space, so this space is almost always adjacent,
which is simpler and faster to deal with. (This is why MORECORE is
used preferentially to MMAP when both are available -- see
sys_alloc.) When allocating using MMAP, we don't use any of the
hinting mechanisms (inconsistently) supported in various
implementations of unix mmap, or distinguish reserving from
committing memory. Instead, we just ask for space, and exploit
contiguity when we get it. It is probably possible to do
better than this on some systems, but no general scheme seems
to be significantly better.
Management entails a simpler variant of the consolidation scheme
used for chunks to reduce fragmentation -- new adjacent memory is
normally prepended or appended to an existing segment. However,
there are limitations compared to chunk consolidation that mostly
reflect the fact that segment processing is relatively infrequent
(occurring only when getting memory from system) and that we
don't expect to have huge numbers of segments:
* Segments are not indexed, so traversal requires linear scans. (It
would be possible to index these, but is not worth the extra
overhead and complexity for most programs on most platforms.)
* New segments are only appended to old ones when holding top-most
memory; if they cannot be prepended to others, they are held in
different segments.
Except for the top-most segment of an mstate, each segment record
is kept at the tail of its segment. Segments are added by pushing
segment records onto the list headed by &mstate.seg for the
containing mstate.
Segment flags control allocation/merge/deallocation policies:
* If EXTERN_BIT set, then we did not allocate this segment,
and so should not try to deallocate or merge with others.
(This currently holds only for the initial segment passed
into create_mspace_with_base.)
* If USE_MMAP_BIT set, the segment may be merged with
other surrounding mmapped segments and trimmed/de-allocated
using munmap.
* If neither bit is set, then the segment was obtained using
MORECORE so can be merged with surrounding MORECORE'd segments
and deallocated/trimmed using MORECORE with negative arguments.
*/
struct malloc_segment {
char* base; /* base address */
size_t size; /* allocated size */
struct malloc_segment* next; /* ptr to next segment */
flag_t sflags; /* mmap and extern flag */
};
#define is_mmapped_segment(S) ((S)->sflags & USE_MMAP_BIT)
#define is_extern_segment(S) ((S)->sflags & EXTERN_BIT)
typedef struct malloc_segment msegment;
typedef struct malloc_segment* msegmentptr;
/* ---------------------------- malloc_state ----------------------------- */
/*
A malloc_state holds all of the bookkeeping for a space.
The main fields are:
Top
The topmost chunk of the currently active segment. Its size is
cached in topsize. The actual size of topmost space is
topsize+TOP_FOOT_SIZE, which includes space reserved for adding
fenceposts and segment records if necessary when getting more
space from the system. The size at which to autotrim top is
cached from mparams in trim_check, except that it is disabled if
an autotrim fails.
Designated victim (dv)
This is the preferred chunk for servicing small requests that
don't have exact fits. It is normally the chunk split off most
recently to service another small request. Its size is cached in
dvsize. The link fields of this chunk are not maintained since it
is not kept in a bin.
SmallBins
An array of bin headers for free chunks. These bins hold chunks
with sizes less than MIN_LARGE_SIZE bytes. Each bin contains
chunks of all the same size, spaced 8 bytes apart. To simplify
use in double-linked lists, each bin header acts as a malloc_chunk
pointing to the real first node, if it exists (else pointing to
itself). This avoids special-casing for headers. But to avoid
waste, we allocate only the fd/bk pointers of bins, and then use
repositioning tricks to treat these as the fields of a chunk.
TreeBins
Treebins are pointers to the roots of trees holding a range of
sizes. There are 2 equally spaced treebins for each power of two
from TREE_SHIFT to TREE_SHIFT+16. The last bin holds anything
larger.
Bin maps
There is one bit map for small bins ("smallmap") and one for
treebins ("treemap). Each bin sets its bit when non-empty, and
clears the bit when empty. Bit operations are then used to avoid
bin-by-bin searching -- nearly all "search" is done without ever
looking at bins that won't be selected. The bit maps
conservatively use 32 bits per map word, even if on 64bit system.
For a good description of some of the bit-based techniques used
here, see Henry S. Warren Jr's book "Hacker's Delight" (and
supplement at http://hackersdelight.org/). Many of these are
intended to reduce the branchiness of paths through malloc etc, as
well as to reduce the number of memory locations read or written.
Segments
A list of segments headed by an embedded malloc_segment record
representing the initial space.
Address check support
The least_addr field is the least address ever obtained from
MORECORE or MMAP. Attempted frees and reallocs of any address less
than this are trapped (unless INSECURE is defined).
Magic tag
A cross-check field that should always hold same value as mparams.magic.
Max allowed footprint
The maximum allowed bytes to allocate from system (zero means no limit)
Flags
Bits recording whether to use MMAP, locks, or contiguous MORECORE
Statistics
Each space keeps track of current and maximum system memory
obtained via MORECORE or MMAP.
Trim support
Fields holding the amount of unused topmost memory that should trigger
trimming, and a counter to force periodic scanning to release unused
non-topmost segments.
Locking
If USE_LOCKS is defined, the "mutex" lock is acquired and released
around every public call using this mspace.
Extension support
A void* pointer and a size_t field that can be used to help implement
extensions to this malloc.
*/
/* Bin types, widths and sizes */
#define NSMALLBINS (32U)
#define NTREEBINS (32U)
#define SMALLBIN_SHIFT (3U)
#define SMALLBIN_WIDTH (SIZE_T_ONE << SMALLBIN_SHIFT)
#define TREEBIN_SHIFT (8U)
#define MIN_LARGE_SIZE (SIZE_T_ONE << TREEBIN_SHIFT)
#define MAX_SMALL_SIZE (MIN_LARGE_SIZE - SIZE_T_ONE)
#define MAX_SMALL_REQUEST (MAX_SMALL_SIZE - CHUNK_ALIGN_MASK - CHUNK_OVERHEAD)
struct malloc_state {
binmap_t smallmap;
binmap_t treemap;
size_t dvsize;
size_t topsize;
char* least_addr;
mchunkptr dv;
mchunkptr top;
size_t trim_check;
size_t release_checks;
size_t magic;
mchunkptr smallbins[(NSMALLBINS+1)*2];
tbinptr treebins[NTREEBINS];
size_t footprint;
size_t max_footprint;
size_t footprint_limit; /* zero means no limit */
flag_t mflags;
#if USE_LOCKS
MLOCK_T mutex; /* locate lock among fields that rarely change */
#endif /* USE_LOCKS */
msegment seg;
void* extp; /* Unused but available for extensions */
size_t exts;
};
typedef struct malloc_state* mstate;
/* ------------- Global malloc_state and malloc_params ------------------- */
/*
malloc_params holds global properties, including those that can be
dynamically set using mallopt. There is a single instance, mparams,
initialized in init_mparams. Note that the non-zeroness of "magic"
also serves as an initialization flag.
*/
struct malloc_params {
size_t magic;
size_t page_size;
size_t granularity;
size_t mmap_threshold;
size_t trim_threshold;
flag_t default_mflags;
};
static struct malloc_params mparams;
/* Ensure mparams initialized */
#define ensure_initialization() (void)(mparams.magic != 0 || init_mparams())
#if !ONLY_MSPACES
/* The global malloc_state used for all non-"mspace" calls */
static struct malloc_state _gm_;
#define gm (&_gm_)
#define is_global(M) ((M) == &_gm_)
#endif /* !ONLY_MSPACES */
#define is_initialized(M) ((M)->top != 0)
/* -------------------------- system alloc setup ------------------------- */
/* Operations on mflags */
#define use_lock(M) ((M)->mflags & USE_LOCK_BIT)
#define enable_lock(M) ((M)->mflags |= USE_LOCK_BIT)
#if USE_LOCKS
#define disable_lock(M) ((M)->mflags &= ~USE_LOCK_BIT)
#else
#define disable_lock(M)
#endif
#define use_mmap(M) ((M)->mflags & USE_MMAP_BIT)
#define enable_mmap(M) ((M)->mflags |= USE_MMAP_BIT)
#if HAVE_MMAP
#define disable_mmap(M) ((M)->mflags &= ~USE_MMAP_BIT)
#else
#define disable_mmap(M)
#endif
#define use_noncontiguous(M) ((M)->mflags & USE_NONCONTIGUOUS_BIT)
#define disable_contiguous(M) ((M)->mflags |= USE_NONCONTIGUOUS_BIT)
#define set_lock(M,L)\
((M)->mflags = (L)?\
((M)->mflags | USE_LOCK_BIT) :\
((M)->mflags & ~USE_LOCK_BIT))
/* page-align a size */
#define page_align(S)\
(((S) + (mparams.page_size - SIZE_T_ONE)) & ~(mparams.page_size - SIZE_T_ONE))
/* granularity-align a size */
#define granularity_align(S)\
(((S) + (mparams.granularity - SIZE_T_ONE))\
& ~(mparams.granularity - SIZE_T_ONE))
/* For mmap, use granularity alignment on windows, else page-align */
#ifdef WIN32
#define mmap_align(S) granularity_align(S)
#else
#define mmap_align(S) page_align(S)
#endif
/* For sys_alloc, enough padding to ensure can malloc request on success */
#define SYS_ALLOC_PADDING (TOP_FOOT_SIZE + MALLOC_ALIGNMENT)
#define is_page_aligned(S)\
(((size_t)(S) & (mparams.page_size - SIZE_T_ONE)) == 0)
#define is_granularity_aligned(S)\
(((size_t)(S) & (mparams.granularity - SIZE_T_ONE)) == 0)
/* True if segment S holds address A */
#define segment_holds(S, A)\
((char*)(A) >= S->base && (char*)(A) < S->base + S->size)
/* Return segment holding given address */
static msegmentptr segment_holding(mstate m, char* addr) {
msegmentptr sp = &m->seg;
for (;;) {
if (addr >= sp->base && addr < sp->base + sp->size)
return sp;
if ((sp = sp->next) == 0)
return 0;
}
}
/* Return true if segment contains a segment link */
static int has_segment_link(mstate m, msegmentptr ss) {
msegmentptr sp = &m->seg;
for (;;) {
if ((char*)sp >= ss->base && (char*)sp < ss->base + ss->size)
return 1;
if ((sp = sp->next) == 0)
return 0;
}
}
#ifndef MORECORE_CANNOT_TRIM
#define should_trim(M,s) ((s) > (M)->trim_check)
#else /* MORECORE_CANNOT_TRIM */
#define should_trim(M,s) (0)
#endif /* MORECORE_CANNOT_TRIM */
/*
TOP_FOOT_SIZE is padding at the end of a segment, including space
that may be needed to place segment records and fenceposts when new
noncontiguous segments are added.
*/
#define TOP_FOOT_SIZE\
(align_offset(chunk2mem(0))+pad_request(sizeof(struct malloc_segment))+MIN_CHUNK_SIZE)
/* ------------------------------- Hooks -------------------------------- */
/*
PREACTION should be defined to return 0 on success, and nonzero on
failure. If you are not using locking, you can redefine these to do
anything you like.
*/
#if USE_LOCKS
#define PREACTION(M) ((use_lock(M))? ACQUIRE_LOCK(&(M)->mutex) : 0)
#define POSTACTION(M) { if (use_lock(M)) RELEASE_LOCK(&(M)->mutex); }
#else /* USE_LOCKS */
#ifndef PREACTION
#define PREACTION(M) (0)
#endif /* PREACTION */
#ifndef POSTACTION
#define POSTACTION(M)
#endif /* POSTACTION */
#endif /* USE_LOCKS */
/*
CORRUPTION_ERROR_ACTION is triggered upon detected bad addresses.
USAGE_ERROR_ACTION is triggered on detected bad frees and
reallocs. The argument p is an address that might have triggered the
fault. It is ignored by the two predefined actions, but might be
useful in custom actions that try to help diagnose errors.
*/
#if PROCEED_ON_ERROR
/* A count of the number of corruption errors causing resets */
int malloc_corruption_error_count;
/* default corruption action */
static void reset_on_error(mstate m);
#define CORRUPTION_ERROR_ACTION(m) reset_on_error(m)
#define USAGE_ERROR_ACTION(m, p)
#else /* PROCEED_ON_ERROR */
#ifndef CORRUPTION_ERROR_ACTION
#define CORRUPTION_ERROR_ACTION(m) ABORT
#endif /* CORRUPTION_ERROR_ACTION */
#ifndef USAGE_ERROR_ACTION
#define USAGE_ERROR_ACTION(m,p) ABORT
#endif /* USAGE_ERROR_ACTION */
#endif /* PROCEED_ON_ERROR */
/* -------------------------- Debugging setup ---------------------------- */
#if ! DEBUG
#define check_free_chunk(M,P)
#define check_inuse_chunk(M,P)
#define check_malloced_chunk(M,P,N)
#define check_mmapped_chunk(M,P)
#define check_malloc_state(M)
#define check_top_chunk(M,P)
#else /* DEBUG */
#define check_free_chunk(M,P) do_check_free_chunk(M,P)
#define check_inuse_chunk(M,P) do_check_inuse_chunk(M,P)
#define check_top_chunk(M,P) do_check_top_chunk(M,P)
#define check_malloced_chunk(M,P,N) do_check_malloced_chunk(M,P,N)
#define check_mmapped_chunk(M,P) do_check_mmapped_chunk(M,P)
#define check_malloc_state(M) do_check_malloc_state(M)
static void do_check_any_chunk(mstate m, mchunkptr p);
static void do_check_top_chunk(mstate m, mchunkptr p);
static void do_check_mmapped_chunk(mstate m, mchunkptr p);
static void do_check_inuse_chunk(mstate m, mchunkptr p);
static void do_check_free_chunk(mstate m, mchunkptr p);
static void do_check_malloced_chunk(mstate m, void* mem, size_t s);
static void do_check_tree(mstate m, tchunkptr t);
static void do_check_treebin(mstate m, bindex_t i);
static void do_check_smallbin(mstate m, bindex_t i);
static void do_check_malloc_state(mstate m);
static int bin_find(mstate m, mchunkptr x);
static size_t traverse_and_check(mstate m);
#endif /* DEBUG */
/* ---------------------------- Indexing Bins ---------------------------- */
#define is_small(s) (((s) >> SMALLBIN_SHIFT) < NSMALLBINS)
#define small_index(s) (bindex_t)((s) >> SMALLBIN_SHIFT)
#define small_index2size(i) ((i) << SMALLBIN_SHIFT)
#define MIN_SMALL_INDEX (small_index(MIN_CHUNK_SIZE))
/* addressing by index. See above about smallbin repositioning */
#define smallbin_at(M, i) ((sbinptr)((char*)&((M)->smallbins[(i)<<1])))
#define treebin_at(M,i) (&((M)->treebins[i]))
/* assign tree index for size S to variable I. Use x86 asm if possible */
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
#define compute_tree_index(S, I)\
{\
unsigned int X = S >> TREEBIN_SHIFT;\
if (X == 0)\
I = 0;\
else if (X > 0xFFFF)\
I = NTREEBINS-1;\
else {\
unsigned int K = (unsigned) sizeof(X)*__CHAR_BIT__ - 1 - (unsigned) __builtin_clz(X); \
I = (bindex_t)((K << 1) + ((S >> (K + (TREEBIN_SHIFT-1)) & 1)));\
}\
}
#elif defined (__INTEL_COMPILER)
#define compute_tree_index(S, I)\
{\
size_t X = S >> TREEBIN_SHIFT;\
if (X == 0)\
I = 0;\
else if (X > 0xFFFF)\
I = NTREEBINS-1;\
else {\
unsigned int K = _bit_scan_reverse (X); \
I = (bindex_t)((K << 1) + ((S >> (K + (TREEBIN_SHIFT-1)) & 1)));\
}\
}
#elif defined(_MSC_VER) && _MSC_VER>=1300
#define compute_tree_index(S, I)\
{\
size_t X = S >> TREEBIN_SHIFT;\
if (X == 0)\
I = 0;\
else if (X > 0xFFFF)\
I = NTREEBINS-1;\
else {\
unsigned int K;\
_BitScanReverse((DWORD *) &K, (DWORD) X);\
I = (bindex_t)((K << 1) + ((S >> (K + (TREEBIN_SHIFT-1)) & 1)));\
}\
}
#else /* GNUC */
#define compute_tree_index(S, I)\
{\
size_t X = S >> TREEBIN_SHIFT;\
if (X == 0)\
I = 0;\
else if (X > 0xFFFF)\
I = NTREEBINS-1;\
else {\
unsigned int Y = (unsigned int)X;\
unsigned int N = ((Y - 0x100) >> 16) & 8;\
unsigned int K = (((Y <<= N) - 0x1000) >> 16) & 4;\
N += K;\
N += K = (((Y <<= K) - 0x4000) >> 16) & 2;\
K = 14 - N + ((Y <<= K) >> 15);\
I = (K << 1) + ((S >> (K + (TREEBIN_SHIFT-1)) & 1));\
}\
}
#endif /* GNUC */
/* Bit representing maximum resolved size in a treebin at i */
#define bit_for_tree_index(i) \
(i == NTREEBINS-1)? (SIZE_T_BITSIZE-1) : (((i) >> 1) + TREEBIN_SHIFT - 2)
/* Shift placing maximum resolved bit in a treebin at i as sign bit */
#define leftshift_for_tree_index(i) \
((i == NTREEBINS-1)? 0 : \
((SIZE_T_BITSIZE-SIZE_T_ONE) - (((i) >> 1) + TREEBIN_SHIFT - 2)))
/* The size of the smallest chunk held in bin with index i */
#define minsize_for_tree_index(i) \
((SIZE_T_ONE << (((i) >> 1) + TREEBIN_SHIFT)) | \
(((size_t)((i) & SIZE_T_ONE)) << (((i) >> 1) + TREEBIN_SHIFT - 1)))
/* ------------------------ Operations on bin maps ----------------------- */
/* bit corresponding to given index */
#define idx2bit(i) ((binmap_t)(1) << (i))
/* Mark/Clear bits with given index */
#define mark_smallmap(M,i) ((M)->smallmap |= idx2bit(i))
#define clear_smallmap(M,i) ((M)->smallmap &= ~idx2bit(i))
#define smallmap_is_marked(M,i) ((M)->smallmap & idx2bit(i))
#define mark_treemap(M,i) ((M)->treemap |= idx2bit(i))
#define clear_treemap(M,i) ((M)->treemap &= ~idx2bit(i))
#define treemap_is_marked(M,i) ((M)->treemap & idx2bit(i))
/* isolate the least set bit of a bitmap */
#define least_bit(x) ((x) & -(x))
/* mask with all bits to left of least bit of x on */
#define left_bits(x) ((x<<1) | -(x<<1))
/* mask with all bits to left of or equal to least bit of x on */
#define same_or_left_bits(x) ((x) | -(x))
/* index corresponding to given bit. Use x86 asm if possible */
#if defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__))
#define compute_bit2idx(X, I)\
{\
unsigned int J;\
J = __builtin_ctz(X); \
I = (bindex_t)J;\
}
#elif defined (__INTEL_COMPILER)
#define compute_bit2idx(X, I)\
{\
unsigned int J;\
J = _bit_scan_forward (X); \
I = (bindex_t)J;\
}
#elif defined(_MSC_VER) && _MSC_VER>=1300
#define compute_bit2idx(X, I)\
{\
unsigned int J;\
_BitScanForward((DWORD *) &J, X);\
I = (bindex_t)J;\
}
#elif USE_BUILTIN_FFS
#define compute_bit2idx(X, I) I = ffs(X)-1
#else
#define compute_bit2idx(X, I)\
{\
unsigned int Y = X - 1;\
unsigned int K = Y >> (16-4) & 16;\
unsigned int N = K; Y >>= K;\
N += K = Y >> (8-3) & 8; Y >>= K;\
N += K = Y >> (4-2) & 4; Y >>= K;\
N += K = Y >> (2-1) & 2; Y >>= K;\
N += K = Y >> (1-0) & 1; Y >>= K;\
I = (bindex_t)(N + Y);\
}
#endif /* GNUC */
/* ----------------------- Runtime Check Support ------------------------- */
/*
For security, the main invariant is that malloc/free/etc never
writes to a static address other than malloc_state, unless static
malloc_state itself has been corrupted, which cannot occur via
malloc (because of these checks). In essence this means that we
believe all pointers, sizes, maps etc held in malloc_state, but
check all of those linked or offsetted from other embedded data
structures. These checks are interspersed with main code in a way
that tends to minimize their run-time cost.
When FOOTERS is defined, in addition to range checking, we also
verify footer fields of inuse chunks, which can be used guarantee
that the mstate controlling malloc/free is intact. This is a
streamlined version of the approach described by William Robertson
et al in "Run-time Detection of Heap-based Overflows" LISA'03
http://www.usenix.org/events/lisa03/tech/robertson.html The footer
of an inuse chunk holds the xor of its mstate and a random seed,
that is checked upon calls to free() and realloc(). This is
(probabalistically) unguessable from outside the program, but can be
computed by any code successfully malloc'ing any chunk, so does not
itself provide protection against code that has already broken
security through some other means. Unlike Robertson et al, we
always dynamically check addresses of all offset chunks (previous,
next, etc). This turns out to be cheaper than relying on hashes.
*/
#if !INSECURE
/* Check if address a is at least as high as any from MORECORE or MMAP */
#define ok_address(M, a) ((char*)(a) >= (M)->least_addr)
/* Check if address of next chunk n is higher than base chunk p */
#define ok_next(p, n) ((char*)(p) < (char*)(n))
/* Check if p has inuse status */
#define ok_inuse(p) is_inuse(p)
/* Check if p has its pinuse bit on */
#define ok_pinuse(p) pinuse(p)
#else /* !INSECURE */
#define ok_address(M, a) (1)
#define ok_next(b, n) (1)
#define ok_inuse(p) (1)
#define ok_pinuse(p) (1)
#endif /* !INSECURE */
#if (FOOTERS && !INSECURE)
/* Check if (alleged) mstate m has expected magic field */
#define ok_magic(M) ((M)->magic == mparams.magic)
#else /* (FOOTERS && !INSECURE) */
#define ok_magic(M) (1)
#endif /* (FOOTERS && !INSECURE) */
/* In gcc, use __builtin_expect to minimize impact of checks */
#if !INSECURE
#if defined(__GNUC__) && __GNUC__ >= 3
#define RTCHECK(e) __builtin_expect(e, 1)
#else /* GNUC */
#define RTCHECK(e) (e)
#endif /* GNUC */
#else /* !INSECURE */
#define RTCHECK(e) (1)
#endif /* !INSECURE */
/* macros to set up inuse chunks with or without footers */
#if !FOOTERS
#define mark_inuse_foot(M,p,s)
/* Macros for setting head/foot of non-mmapped chunks */
/* Set cinuse bit and pinuse bit of next chunk */
#define set_inuse(M,p,s)\
((p)->head = (((p)->head & PINUSE_BIT)|s|CINUSE_BIT),\
((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT)
/* Set cinuse and pinuse of this chunk and pinuse of next chunk */
#define set_inuse_and_pinuse(M,p,s)\
((p)->head = (s|PINUSE_BIT|CINUSE_BIT),\
((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT)
/* Set size, cinuse and pinuse bit of this chunk */
#define set_size_and_pinuse_of_inuse_chunk(M, p, s)\
((p)->head = (s|PINUSE_BIT|CINUSE_BIT))
#else /* FOOTERS */
/* Set foot of inuse chunk to be xor of mstate and seed */
#define mark_inuse_foot(M,p,s)\
(((mchunkptr)((char*)(p) + (s)))->prev_foot = ((size_t)(M) ^ mparams.magic))
#define get_mstate_for(p)\
((mstate)(((mchunkptr)((char*)(p) +\
(chunksize(p))))->prev_foot ^ mparams.magic))
#define set_inuse(M,p,s)\
((p)->head = (((p)->head & PINUSE_BIT)|s|CINUSE_BIT),\
(((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT), \
mark_inuse_foot(M,p,s))
#define set_inuse_and_pinuse(M,p,s)\
((p)->head = (s|PINUSE_BIT|CINUSE_BIT),\
(((mchunkptr)(((char*)(p)) + (s)))->head |= PINUSE_BIT),\
mark_inuse_foot(M,p,s))
#define set_size_and_pinuse_of_inuse_chunk(M, p, s)\
((p)->head = (s|PINUSE_BIT|CINUSE_BIT),\
mark_inuse_foot(M, p, s))
#endif /* !FOOTERS */
/* ---------------------------- setting mparams -------------------------- */
#if LOCK_AT_FORK
static void pre_fork(void) { ACQUIRE_LOCK(&(gm)->mutex); }
static void post_fork_parent(void) { RELEASE_LOCK(&(gm)->mutex); }
static void post_fork_child(void) { INITIAL_LOCK(&(gm)->mutex); }
#endif /* LOCK_AT_FORK */
/* Initialize mparams */
static int init_mparams(void) {
#ifdef NEED_GLOBAL_LOCK_INIT
if (malloc_global_mutex_status <= 0)
init_malloc_global_mutex();
#endif
ACQUIRE_MALLOC_GLOBAL_LOCK();
if (mparams.magic == 0) {
size_t magic;
size_t psize;
size_t gsize;
#ifndef WIN32
psize = malloc_getpagesize;
gsize = ((DEFAULT_GRANULARITY != 0)? DEFAULT_GRANULARITY : psize);
#else /* WIN32 */
{
SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
psize = system_info.dwPageSize;
gsize = ((DEFAULT_GRANULARITY != 0)?
DEFAULT_GRANULARITY : system_info.dwAllocationGranularity);
}
#endif /* WIN32 */
/* Sanity-check configuration:
size_t must be unsigned and as wide as pointer type.
ints must be at least 4 bytes.
alignment must be at least 8.
Alignment, min chunk size, and page size must all be powers of 2.
*/
if ((sizeof(size_t) != sizeof(char*)) ||
(MAX_SIZE_T < MIN_CHUNK_SIZE) ||
(sizeof(int) < 4) ||
(MALLOC_ALIGNMENT < (size_t)8U) ||
((MALLOC_ALIGNMENT & (MALLOC_ALIGNMENT-SIZE_T_ONE)) != 0) ||
((MCHUNK_SIZE & (MCHUNK_SIZE-SIZE_T_ONE)) != 0) ||
((gsize & (gsize-SIZE_T_ONE)) != 0) ||
((psize & (psize-SIZE_T_ONE)) != 0))
ABORT;
mparams.granularity = gsize;
mparams.page_size = psize;
mparams.mmap_threshold = DEFAULT_MMAP_THRESHOLD;
mparams.trim_threshold = DEFAULT_TRIM_THRESHOLD;
#if MORECORE_CONTIGUOUS
mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT;
#else /* MORECORE_CONTIGUOUS */
mparams.default_mflags = USE_LOCK_BIT|USE_MMAP_BIT|USE_NONCONTIGUOUS_BIT;
#endif /* MORECORE_CONTIGUOUS */
#if !ONLY_MSPACES
/* Set up lock for main malloc area */
gm->mflags = mparams.default_mflags;
(void)INITIAL_LOCK(&gm->mutex);
#endif
#if LOCK_AT_FORK
pthread_atfork(&pre_fork, &post_fork_parent, &post_fork_child);
#endif
{
#if USE_DEV_RANDOM
int fd;
unsigned char buf[sizeof(size_t)];
/* Try to use /dev/urandom, else fall back on using time */
if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 &&
read(fd, buf, sizeof(buf)) == sizeof(buf)) {
magic = *((size_t *) buf);
close(fd);
}
else
#endif /* USE_DEV_RANDOM */
#ifdef WIN32
magic = (size_t)(GetTickCount() ^ (size_t)0x55555555U);
#elif defined(LACKS_TIME_H)
magic = (size_t)&magic ^ (size_t)0x55555555U;
#else
magic = (size_t)(time(0) ^ (size_t)0x55555555U);
#endif
magic |= (size_t)8U; /* ensure nonzero */
magic &= ~(size_t)7U; /* improve chances of fault for bad values */
/* Until memory modes commonly available, use volatile-write */
(*(volatile size_t *)(&(mparams.magic))) = magic;
}
}
RELEASE_MALLOC_GLOBAL_LOCK();
return 1;
}
/* support for mallopt */
static int change_mparam(int param_number, int value) {
size_t val;
ensure_initialization();
val = (value == -1)? MAX_SIZE_T : (size_t)value;
switch(param_number) {
case M_TRIM_THRESHOLD:
mparams.trim_threshold = val;
return 1;
case M_GRANULARITY:
if (val >= mparams.page_size && ((val & (val-1)) == 0)) {
mparams.granularity = val;
return 1;
}
else
return 0;
case M_MMAP_THRESHOLD:
mparams.mmap_threshold = val;
return 1;
default:
return 0;
}
}
#if DEBUG
/* ------------------------- Debugging Support --------------------------- */
/* Check properties of any chunk, whether free, inuse, mmapped etc */
static void do_check_any_chunk(mstate m, mchunkptr p) {
assert((is_aligned(chunk2mem(p))) || (p->head == FENCEPOST_HEAD));
assert(ok_address(m, p));
}
/* Check properties of top chunk */
static void do_check_top_chunk(mstate m, mchunkptr p) {
msegmentptr sp = segment_holding(m, (char*)p);
size_t sz = p->head & ~INUSE_BITS; /* third-lowest bit can be set! */
assert(sp != 0);
assert((is_aligned(chunk2mem(p))) || (p->head == FENCEPOST_HEAD));
assert(ok_address(m, p));
assert(sz == m->topsize);
assert(sz > 0);
assert(sz == ((sp->base + sp->size) - (char*)p) - TOP_FOOT_SIZE);
assert(pinuse(p));
assert(!pinuse(chunk_plus_offset(p, sz)));
}
/* Check properties of (inuse) mmapped chunks */
static void do_check_mmapped_chunk(mstate m, mchunkptr p) {
size_t sz = chunksize(p);
size_t len = (sz + (p->prev_foot) + MMAP_FOOT_PAD);
assert(is_mmapped(p));
assert(use_mmap(m));
assert((is_aligned(chunk2mem(p))) || (p->head == FENCEPOST_HEAD));
assert(ok_address(m, p));
assert(!is_small(sz));
assert((len & (mparams.page_size-SIZE_T_ONE)) == 0);
assert(chunk_plus_offset(p, sz)->head == FENCEPOST_HEAD);
assert(chunk_plus_offset(p, sz+SIZE_T_SIZE)->head == 0);
}
/* Check properties of inuse chunks */
static void do_check_inuse_chunk(mstate m, mchunkptr p) {
do_check_any_chunk(m, p);
assert(is_inuse(p));
assert(next_pinuse(p));
/* If not pinuse and not mmapped, previous chunk has OK offset */
assert(is_mmapped(p) || pinuse(p) || next_chunk(prev_chunk(p)) == p);
if (is_mmapped(p))
do_check_mmapped_chunk(m, p);
}
/* Check properties of free chunks */
static void do_check_free_chunk(mstate m, mchunkptr p) {
size_t sz = chunksize(p);
mchunkptr next = chunk_plus_offset(p, sz);
do_check_any_chunk(m, p);
assert(!is_inuse(p));
assert(!next_pinuse(p));
assert (!is_mmapped(p));
if (p != m->dv && p != m->top) {
if (sz >= MIN_CHUNK_SIZE) {
assert((sz & CHUNK_ALIGN_MASK) == 0);
assert(is_aligned(chunk2mem(p)));
assert(next->prev_foot == sz);
assert(pinuse(p));
assert (next == m->top || is_inuse(next));
assert(p->fd->bk == p);
assert(p->bk->fd == p);
}
else /* markers are always of size SIZE_T_SIZE */
assert(sz == SIZE_T_SIZE);
}
}
/* Check properties of malloced chunks at the point they are malloced */
static void do_check_malloced_chunk(mstate m, void* mem, size_t s) {
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
size_t sz = p->head & ~INUSE_BITS;
do_check_inuse_chunk(m, p);
assert((sz & CHUNK_ALIGN_MASK) == 0);
assert(sz >= MIN_CHUNK_SIZE);
assert(sz >= s);
/* unless mmapped, size is less than MIN_CHUNK_SIZE more than request */
assert(is_mmapped(p) || sz < (s + MIN_CHUNK_SIZE));
}
}
/* Check a tree and its subtrees. */
static void do_check_tree(mstate m, tchunkptr t) {
tchunkptr head = 0;
tchunkptr u = t;
bindex_t tindex = t->index;
size_t tsize = chunksize(t);
bindex_t idx;
compute_tree_index(tsize, idx);
assert(tindex == idx);
assert(tsize >= MIN_LARGE_SIZE);
assert(tsize >= minsize_for_tree_index(idx));
assert((idx == NTREEBINS-1) || (tsize < minsize_for_tree_index((idx+1))));
do { /* traverse through chain of same-sized nodes */
do_check_any_chunk(m, ((mchunkptr)u));
assert(u->index == tindex);
assert(chunksize(u) == tsize);
assert(!is_inuse(u));
assert(!next_pinuse(u));
assert(u->fd->bk == u);
assert(u->bk->fd == u);
if (u->parent == 0) {
assert(u->child[0] == 0);
assert(u->child[1] == 0);
}
else {
assert(head == 0); /* only one node on chain has parent */
head = u;
assert(u->parent != u);
assert (u->parent->child[0] == u ||
u->parent->child[1] == u ||
*((tbinptr*)(u->parent)) == u);
if (u->child[0] != 0) {
assert(u->child[0]->parent == u);
assert(u->child[0] != u);
do_check_tree(m, u->child[0]);
}
if (u->child[1] != 0) {
assert(u->child[1]->parent == u);
assert(u->child[1] != u);
do_check_tree(m, u->child[1]);
}
if (u->child[0] != 0 && u->child[1] != 0) {
assert(chunksize(u->child[0]) < chunksize(u->child[1]));
}
}
u = u->fd;
} while (u != t);
assert(head != 0);
}
/* Check all the chunks in a treebin. */
static void do_check_treebin(mstate m, bindex_t i) {
tbinptr* tb = treebin_at(m, i);
tchunkptr t = *tb;
int empty = (m->treemap & (1U << i)) == 0;
if (t == 0)
assert(empty);
if (!empty)
do_check_tree(m, t);
}
/* Check all the chunks in a smallbin. */
static void do_check_smallbin(mstate m, bindex_t i) {
sbinptr b = smallbin_at(m, i);
mchunkptr p = b->bk;
unsigned int empty = (m->smallmap & (1U << i)) == 0;
if (p == b)
assert(empty);
if (!empty) {
for (; p != b; p = p->bk) {
size_t size = chunksize(p);
mchunkptr q;
/* each chunk claims to be free */
do_check_free_chunk(m, p);
/* chunk belongs in bin */
assert(small_index(size) == i);
assert(p->bk == b || chunksize(p->bk) == chunksize(p));
/* chunk is followed by an inuse chunk */
q = next_chunk(p);
if (q->head != FENCEPOST_HEAD)
do_check_inuse_chunk(m, q);
}
}
}
/* Find x in a bin. Used in other check functions. */
static int bin_find(mstate m, mchunkptr x) {
size_t size = chunksize(x);
if (is_small(size)) {
bindex_t sidx = small_index(size);
sbinptr b = smallbin_at(m, sidx);
if (smallmap_is_marked(m, sidx)) {
mchunkptr p = b;
do {
if (p == x)
return 1;
} while ((p = p->fd) != b);
}
}
else {
bindex_t tidx;
compute_tree_index(size, tidx);
if (treemap_is_marked(m, tidx)) {
tchunkptr t = *treebin_at(m, tidx);
size_t sizebits = size << leftshift_for_tree_index(tidx);
while (t != 0 && chunksize(t) != size) {
t = t->child[(sizebits >> (SIZE_T_BITSIZE-SIZE_T_ONE)) & 1];
sizebits <<= 1;
}
if (t != 0) {
tchunkptr u = t;
do {
if (u == (tchunkptr)x)
return 1;
} while ((u = u->fd) != t);
}
}
}
return 0;
}
/* Traverse each chunk and check it; return total */
static size_t traverse_and_check(mstate m) {
size_t sum = 0;
if (is_initialized(m)) {
msegmentptr s = &m->seg;
sum += m->topsize + TOP_FOOT_SIZE;
while (s != 0) {
mchunkptr q = align_as_chunk(s->base);
mchunkptr lastq = 0;
assert(pinuse(q));
while (segment_holds(s, q) &&
q != m->top && q->head != FENCEPOST_HEAD) {
sum += chunksize(q);
if (is_inuse(q)) {
assert(!bin_find(m, q));
do_check_inuse_chunk(m, q);
}
else {
assert(q == m->dv || bin_find(m, q));
assert(lastq == 0 || is_inuse(lastq)); /* Not 2 consecutive free */
do_check_free_chunk(m, q);
}
lastq = q;
q = next_chunk(q);
}
s = s->next;
}
}
return sum;
}
/* Check all properties of malloc_state. */
static void do_check_malloc_state(mstate m) {
bindex_t i;
size_t total;
/* check bins */
for (i = 0; i < NSMALLBINS; ++i)
do_check_smallbin(m, i);
for (i = 0; i < NTREEBINS; ++i)
do_check_treebin(m, i);
if (m->dvsize != 0) { /* check dv chunk */
do_check_any_chunk(m, m->dv);
assert(m->dvsize == chunksize(m->dv));
assert(m->dvsize >= MIN_CHUNK_SIZE);
assert(bin_find(m, m->dv) == 0);
}
if (m->top != 0) { /* check top chunk */
do_check_top_chunk(m, m->top);
/*assert(m->topsize == chunksize(m->top)); redundant */
assert(m->topsize > 0);
assert(bin_find(m, m->top) == 0);
}
total = traverse_and_check(m);
assert(total <= m->footprint);
assert(m->footprint <= m->max_footprint);
}
#endif /* DEBUG */
/* ----------------------------- statistics ------------------------------ */
#if !NO_MALLINFO
static struct mallinfo internal_mallinfo(mstate m) {
struct mallinfo nm = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
ensure_initialization();
if (!PREACTION(m)) {
check_malloc_state(m);
if (is_initialized(m)) {
size_t nfree = SIZE_T_ONE; /* top always free */
size_t mfree = m->topsize + TOP_FOOT_SIZE;
size_t sum = mfree;
msegmentptr s = &m->seg;
while (s != 0) {
mchunkptr q = align_as_chunk(s->base);
while (segment_holds(s, q) &&
q != m->top && q->head != FENCEPOST_HEAD) {
size_t sz = chunksize(q);
sum += sz;
if (!is_inuse(q)) {
mfree += sz;
++nfree;
}
q = next_chunk(q);
}
s = s->next;
}
nm.arena = sum;
nm.ordblks = nfree;
nm.hblkhd = m->footprint - sum;
nm.usmblks = m->max_footprint;
nm.uordblks = m->footprint - mfree;
nm.fordblks = mfree;
nm.keepcost = m->topsize;
}
POSTACTION(m);
}
return nm;
}
#endif /* !NO_MALLINFO */
#if !NO_MALLOC_STATS
static void internal_malloc_stats(mstate m) {
ensure_initialization();
if (!PREACTION(m)) {
size_t maxfp = 0;
size_t fp = 0;
size_t used = 0;
check_malloc_state(m);
if (is_initialized(m)) {
msegmentptr s = &m->seg;
maxfp = m->max_footprint;
fp = m->footprint;
used = fp - (m->topsize + TOP_FOOT_SIZE);
while (s != 0) {
mchunkptr q = align_as_chunk(s->base);
while (segment_holds(s, q) &&
q != m->top && q->head != FENCEPOST_HEAD) {
if (!is_inuse(q))
used -= chunksize(q);
q = next_chunk(q);
}
s = s->next;
}
}
POSTACTION(m); /* drop lock */
fprintf(stderr, "max system bytes = %10lu\n", (unsigned long)(maxfp));
fprintf(stderr, "system bytes = %10lu\n", (unsigned long)(fp));
fprintf(stderr, "in use bytes = %10lu\n", (unsigned long)(used));
}
}
#endif /* NO_MALLOC_STATS */
/* ----------------------- Operations on smallbins ----------------------- */
/*
Various forms of linking and unlinking are defined as macros. Even
the ones for trees, which are very long but have very short typical
paths. This is ugly but reduces reliance on inlining support of
compilers.
*/
/* Link a free chunk into a smallbin */
#define insert_small_chunk(M, P, S) {\
bindex_t I = small_index(S);\
mchunkptr B = smallbin_at(M, I);\
mchunkptr F = B;\
assert(S >= MIN_CHUNK_SIZE);\
if (!smallmap_is_marked(M, I))\
mark_smallmap(M, I);\
else if (RTCHECK(ok_address(M, B->fd)))\
F = B->fd;\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
B->fd = P;\
F->bk = P;\
P->fd = F;\
P->bk = B;\
}
/* Unlink a chunk from a smallbin */
#define unlink_small_chunk(M, P, S) {\
mchunkptr F = P->fd;\
mchunkptr B = P->bk;\
bindex_t I = small_index(S);\
assert(P != B);\
assert(P != F);\
assert(chunksize(P) == small_index2size(I));\
if (RTCHECK(F == smallbin_at(M,I) || (ok_address(M, F) && F->bk == P))) { \
if (B == F) {\
clear_smallmap(M, I);\
}\
else if (RTCHECK(B == smallbin_at(M,I) ||\
(ok_address(M, B) && B->fd == P))) {\
F->bk = B;\
B->fd = F;\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
}
/* Unlink the first chunk from a smallbin */
#define unlink_first_small_chunk(M, B, P, I) {\
mchunkptr F = P->fd;\
assert(P != B);\
assert(P != F);\
assert(chunksize(P) == small_index2size(I));\
if (B == F) {\
clear_smallmap(M, I);\
}\
else if (RTCHECK(ok_address(M, F) && F->bk == P)) {\
F->bk = B;\
B->fd = F;\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
}
/* Replace dv node, binning the old one */
/* Used only when dvsize known to be small */
#define replace_dv(M, P, S) {\
size_t DVS = M->dvsize;\
assert(is_small(DVS));\
if (DVS != 0) {\
mchunkptr DV = M->dv;\
insert_small_chunk(M, DV, DVS);\
}\
M->dvsize = S;\
M->dv = P;\
}
/* ------------------------- Operations on trees ------------------------- */
/* Insert chunk into tree */
#define insert_large_chunk(M, X, S) {\
tbinptr* H;\
bindex_t I;\
compute_tree_index(S, I);\
H = treebin_at(M, I);\
X->index = I;\
X->child[0] = X->child[1] = 0;\
if (!treemap_is_marked(M, I)) {\
mark_treemap(M, I);\
*H = X;\
X->parent = (tchunkptr)H;\
X->fd = X->bk = X;\
}\
else {\
tchunkptr T = *H;\
size_t K = S << leftshift_for_tree_index(I);\
for (;;) {\
if (chunksize(T) != S) {\
tchunkptr* C = &(T->child[(K >> (SIZE_T_BITSIZE-SIZE_T_ONE)) & 1]);\
K <<= 1;\
if (*C != 0)\
T = *C;\
else if (RTCHECK(ok_address(M, C))) {\
*C = X;\
X->parent = T;\
X->fd = X->bk = X;\
break;\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
break;\
}\
}\
else {\
tchunkptr F = T->fd;\
if (RTCHECK(ok_address(M, T) && ok_address(M, F))) {\
T->fd = F->bk = X;\
X->fd = F;\
X->bk = T;\
X->parent = 0;\
break;\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
break;\
}\
}\
}\
}\
}
/*
Unlink steps:
1. If x is a chained node, unlink it from its same-sized fd/bk links
and choose its bk node as its replacement.
2. If x was the last node of its size, but not a leaf node, it must
be replaced with a leaf node (not merely one with an open left or
right), to make sure that lefts and rights of descendents
correspond properly to bit masks. We use the rightmost descendent
of x. We could use any other leaf, but this is easy to locate and
tends to counteract removal of leftmosts elsewhere, and so keeps
paths shorter than minimally guaranteed. This doesn't loop much
because on average a node in a tree is near the bottom.
3. If x is the base of a chain (i.e., has parent links) relink
x's parent and children to x's replacement (or null if none).
*/
#define unlink_large_chunk(M, X) {\
tchunkptr XP = X->parent;\
tchunkptr R;\
if (X->bk != X) {\
tchunkptr F = X->fd;\
R = X->bk;\
if (RTCHECK(ok_address(M, F) && F->bk == X && R->fd == X)) {\
F->bk = R;\
R->fd = F;\
}\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
}\
else {\
tchunkptr* RP;\
if (((R = *(RP = &(X->child[1]))) != 0) ||\
((R = *(RP = &(X->child[0]))) != 0)) {\
tchunkptr* CP;\
while ((*(CP = &(R->child[1])) != 0) ||\
(*(CP = &(R->child[0])) != 0)) {\
R = *(RP = CP);\
}\
if (RTCHECK(ok_address(M, RP)))\
*RP = 0;\
else {\
CORRUPTION_ERROR_ACTION(M);\
}\
}\
}\
if (XP != 0) {\
tbinptr* H = treebin_at(M, X->index);\
if (X == *H) {\
if ((*H = R) == 0) \
clear_treemap(M, X->index);\
}\
else if (RTCHECK(ok_address(M, XP))) {\
if (XP->child[0] == X) \
XP->child[0] = R;\
else \
XP->child[1] = R;\
}\
else\
CORRUPTION_ERROR_ACTION(M);\
if (R != 0) {\
if (RTCHECK(ok_address(M, R))) {\
tchunkptr C0, C1;\
R->parent = XP;\
if ((C0 = X->child[0]) != 0) {\
if (RTCHECK(ok_address(M, C0))) {\
R->child[0] = C0;\
C0->parent = R;\
}\
else\
CORRUPTION_ERROR_ACTION(M);\
}\
if ((C1 = X->child[1]) != 0) {\
if (RTCHECK(ok_address(M, C1))) {\
R->child[1] = C1;\
C1->parent = R;\
}\
else\
CORRUPTION_ERROR_ACTION(M);\
}\
}\
else\
CORRUPTION_ERROR_ACTION(M);\
}\
}\
}
/* Relays to large vs small bin operations */
#define insert_chunk(M, P, S)\
if (is_small(S)) insert_small_chunk(M, P, S)\
else { tchunkptr TP = (tchunkptr)(P); insert_large_chunk(M, TP, S); }
#define unlink_chunk(M, P, S)\
if (is_small(S)) unlink_small_chunk(M, P, S)\
else { tchunkptr TP = (tchunkptr)(P); unlink_large_chunk(M, TP); }
/* Relays to internal calls to malloc/free from realloc, memalign etc */
#if ONLY_MSPACES
#define internal_malloc(m, b) mspace_malloc(m, b)
#define internal_free(m, mem) mspace_free(m,mem);
#else /* ONLY_MSPACES */
#if MSPACES
#define internal_malloc(m, b)\
((m == gm)? dlmalloc(b) : mspace_malloc(m, b))
#define internal_free(m, mem)\
if (m == gm) dlfree(mem); else mspace_free(m,mem);
#else /* MSPACES */
#define internal_malloc(m, b) dlmalloc(b)
#define internal_free(m, mem) dlfree(mem)
#endif /* MSPACES */
#endif /* ONLY_MSPACES */
/* ----------------------- Direct-mmapping chunks ----------------------- */
/*
Directly mmapped chunks are set up with an offset to the start of
the mmapped region stored in the prev_foot field of the chunk. This
allows reconstruction of the required argument to MUNMAP when freed,
and also allows adjustment of the returned chunk to meet alignment
requirements (especially in memalign).
*/
/* Malloc using mmap */
static void* mmap_alloc(mstate m, size_t nb) {
size_t mmsize = mmap_align(nb + SIX_SIZE_T_SIZES + CHUNK_ALIGN_MASK);
if (m->footprint_limit != 0) {
size_t fp = m->footprint + mmsize;
if (fp <= m->footprint || fp > m->footprint_limit)
return 0;
}
if (mmsize > nb) { /* Check for wrap around 0 */
char* mm = (char*)(CALL_DIRECT_MMAP(mmsize));
if (mm != CMFAIL) {
size_t offset = align_offset(chunk2mem(mm));
size_t psize = mmsize - offset - MMAP_FOOT_PAD;
mchunkptr p = (mchunkptr)(mm + offset);
p->prev_foot = offset;
p->head = psize;
mark_inuse_foot(m, p, psize);
chunk_plus_offset(p, psize)->head = FENCEPOST_HEAD;
chunk_plus_offset(p, psize+SIZE_T_SIZE)->head = 0;
if (m->least_addr == 0 || mm < m->least_addr)
m->least_addr = mm;
if ((m->footprint += mmsize) > m->max_footprint)
m->max_footprint = m->footprint;
assert(is_aligned(chunk2mem(p)));
check_mmapped_chunk(m, p);
return chunk2mem(p);
}
}
return 0;
}
/* Realloc using mmap */
static mchunkptr mmap_resize(mstate m, mchunkptr oldp, size_t nb, int flags) {
size_t oldsize = chunksize(oldp);
(void)flags; /* placate people compiling -Wunused */
if (is_small(nb)) /* Can't shrink mmap regions below small size */
return 0;
/* Keep old chunk if big enough but not too big */
if (oldsize >= nb + SIZE_T_SIZE &&
(oldsize - nb) <= (mparams.granularity << 1))
return oldp;
else {
size_t offset = oldp->prev_foot;
size_t oldmmsize = oldsize + offset + MMAP_FOOT_PAD;
size_t newmmsize = mmap_align(nb + SIX_SIZE_T_SIZES + CHUNK_ALIGN_MASK);
char* cp = (char*)CALL_MREMAP((char*)oldp - offset,
oldmmsize, newmmsize, flags);
if (cp != CMFAIL) {
mchunkptr newp = (mchunkptr)(cp + offset);
size_t psize = newmmsize - offset - MMAP_FOOT_PAD;
newp->head = psize;
mark_inuse_foot(m, newp, psize);
chunk_plus_offset(newp, psize)->head = FENCEPOST_HEAD;
chunk_plus_offset(newp, psize+SIZE_T_SIZE)->head = 0;
if (cp < m->least_addr)
m->least_addr = cp;
if ((m->footprint += newmmsize - oldmmsize) > m->max_footprint)
m->max_footprint = m->footprint;
check_mmapped_chunk(m, newp);
return newp;
}
}
return 0;
}
/* -------------------------- mspace management -------------------------- */
/* Initialize top chunk and its size */
static void init_top(mstate m, mchunkptr p, size_t psize) {
/* Ensure alignment */
size_t offset = align_offset(chunk2mem(p));
p = (mchunkptr)((char*)p + offset);
psize -= offset;
m->top = p;
m->topsize = psize;
p->head = psize | PINUSE_BIT;
/* set size of fake trailing chunk holding overhead space only once */
chunk_plus_offset(p, psize)->head = TOP_FOOT_SIZE;
m->trim_check = mparams.trim_threshold; /* reset on each update */
}
/* Initialize bins for a new mstate that is otherwise zeroed out */
static void init_bins(mstate m) {
/* Establish circular links for smallbins */
bindex_t i;
for (i = 0; i < NSMALLBINS; ++i) {
sbinptr bin = smallbin_at(m,i);
bin->fd = bin->bk = bin;
}
}
#if PROCEED_ON_ERROR
/* default corruption action */
static void reset_on_error(mstate m) {
int i;
++malloc_corruption_error_count;
/* Reinitialize fields to forget about all memory */
m->smallmap = m->treemap = 0;
m->dvsize = m->topsize = 0;
m->seg.base = 0;
m->seg.size = 0;
m->seg.next = 0;
m->top = m->dv = 0;
for (i = 0; i < NTREEBINS; ++i)
*treebin_at(m, i) = 0;
init_bins(m);
}
#endif /* PROCEED_ON_ERROR */
/* Allocate chunk and prepend remainder with chunk in successor base. */
static void* prepend_alloc(mstate m, char* newbase, char* oldbase,
size_t nb) {
mchunkptr p = align_as_chunk(newbase);
mchunkptr oldfirst = align_as_chunk(oldbase);
size_t psize = (char*)oldfirst - (char*)p;
mchunkptr q = chunk_plus_offset(p, nb);
size_t qsize = psize - nb;
set_size_and_pinuse_of_inuse_chunk(m, p, nb);
assert((char*)oldfirst > (char*)q);
assert(pinuse(oldfirst));
assert(qsize >= MIN_CHUNK_SIZE);
/* consolidate remainder with first chunk of old base */
if (oldfirst == m->top) {
size_t tsize = m->topsize += qsize;
m->top = q;
q->head = tsize | PINUSE_BIT;
check_top_chunk(m, q);
}
else if (oldfirst == m->dv) {
size_t dsize = m->dvsize += qsize;
m->dv = q;
set_size_and_pinuse_of_free_chunk(q, dsize);
}
else {
if (!is_inuse(oldfirst)) {
size_t nsize = chunksize(oldfirst);
unlink_chunk(m, oldfirst, nsize);
oldfirst = chunk_plus_offset(oldfirst, nsize);
qsize += nsize;
}
set_free_with_pinuse(q, qsize, oldfirst);
insert_chunk(m, q, qsize);
check_free_chunk(m, q);
}
check_malloced_chunk(m, chunk2mem(p), nb);
return chunk2mem(p);
}
/* Add a segment to hold a new noncontiguous region */
static void add_segment(mstate m, char* tbase, size_t tsize, flag_t mmapped) {
/* Determine locations and sizes of segment, fenceposts, old top */
char* old_top = (char*)m->top;
msegmentptr oldsp = segment_holding(m, old_top);
char* old_end = oldsp->base + oldsp->size;
size_t ssize = pad_request(sizeof(struct malloc_segment));
char* rawsp = old_end - (ssize + FOUR_SIZE_T_SIZES + CHUNK_ALIGN_MASK);
size_t offset = align_offset(chunk2mem(rawsp));
char* asp = rawsp + offset;
char* csp = (asp < (old_top + MIN_CHUNK_SIZE))? old_top : asp;
mchunkptr sp = (mchunkptr)csp;
msegmentptr ss = (msegmentptr)(chunk2mem(sp));
mchunkptr tnext = chunk_plus_offset(sp, ssize);
mchunkptr p = tnext;
int nfences = 0;
/* reset top to new space */
init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
/* Set up segment record */
assert(is_aligned(ss));
set_size_and_pinuse_of_inuse_chunk(m, sp, ssize);
*ss = m->seg; /* Push current record */
m->seg.base = tbase;
m->seg.size = tsize;
m->seg.sflags = mmapped;
m->seg.next = ss;
/* Insert trailing fenceposts */
for (;;) {
mchunkptr nextp = chunk_plus_offset(p, SIZE_T_SIZE);
p->head = FENCEPOST_HEAD;
++nfences;
if ((char*)(&(nextp->head)) < old_end)
p = nextp;
else
break;
}
assert(nfences >= 2);
/* Insert the rest of old top into a bin as an ordinary free chunk */
if (csp != old_top) {
mchunkptr q = (mchunkptr)old_top;
size_t psize = csp - old_top;
mchunkptr tn = chunk_plus_offset(q, psize);
set_free_with_pinuse(q, psize, tn);
insert_chunk(m, q, psize);
}
check_top_chunk(m, m->top);
}
/* -------------------------- System allocation -------------------------- */
/* Get memory from system using MORECORE or MMAP */
static void* sys_alloc(mstate m, size_t nb) {
char* tbase = CMFAIL;
size_t tsize = 0;
flag_t mmap_flag = 0;
size_t asize; /* allocation size */
ensure_initialization();
/* Directly map large chunks, but only if already initialized */
if (use_mmap(m) && nb >= mparams.mmap_threshold && m->topsize != 0) {
void* mem = mmap_alloc(m, nb);
if (mem != 0)
return mem;
}
asize = granularity_align(nb + SYS_ALLOC_PADDING);
if (asize <= nb)
return 0; /* wraparound */
if (m->footprint_limit != 0) {
size_t fp = m->footprint + asize;
if (fp <= m->footprint || fp > m->footprint_limit)
return 0;
}
/*
Try getting memory in any of three ways (in most-preferred to
least-preferred order):
1. A call to MORECORE that can normally contiguously extend memory.
(disabled if not MORECORE_CONTIGUOUS or not HAVE_MORECORE or
or main space is mmapped or a previous contiguous call failed)
2. A call to MMAP new space (disabled if not HAVE_MMAP).
Note that under the default settings, if MORECORE is unable to
fulfill a request, and HAVE_MMAP is true, then mmap is
used as a noncontiguous system allocator. This is a useful backup
strategy for systems with holes in address spaces -- in this case
sbrk cannot contiguously expand the heap, but mmap may be able to
find space.
3. A call to MORECORE that cannot usually contiguously extend memory.
(disabled if not HAVE_MORECORE)
In all cases, we need to request enough bytes from system to ensure
we can malloc nb bytes upon success, so pad with enough space for
top_foot, plus alignment-pad to make sure we don't lose bytes if
not on boundary, and round this up to a granularity unit.
*/
if (MORECORE_CONTIGUOUS && !use_noncontiguous(m)) {
char* br = CMFAIL;
size_t ssize = asize; /* sbrk call size */
msegmentptr ss = (m->top == 0)? 0 : segment_holding(m, (char*)m->top);
ACQUIRE_MALLOC_GLOBAL_LOCK();
if (ss == 0) { /* First time through or recovery */
char* base = (char*)CALL_MORECORE(0);
if (base != CMFAIL) {
size_t fp;
/* Adjust to end on a page boundary */
if (!is_page_aligned(base))
ssize += (page_align((size_t)base) - (size_t)base);
fp = m->footprint + ssize; /* recheck limits */
if (ssize > nb && ssize < HALF_MAX_SIZE_T &&
(m->footprint_limit == 0 ||
(fp > m->footprint && fp <= m->footprint_limit)) &&
(br = (char*)(CALL_MORECORE(ssize))) == base) {
tbase = base;
tsize = ssize;
}
}
}
else {
/* Subtract out existing available top space from MORECORE request. */
ssize = granularity_align(nb - m->topsize + SYS_ALLOC_PADDING);
/* Use mem here only if it did continuously extend old space */
if (ssize < HALF_MAX_SIZE_T &&
(br = (char*)(CALL_MORECORE(ssize))) == ss->base+ss->size) {
tbase = br;
tsize = ssize;
}
}
if (tbase == CMFAIL) { /* Cope with partial failure */
if (br != CMFAIL) { /* Try to use/extend the space we did get */
if (ssize < HALF_MAX_SIZE_T &&
ssize < nb + SYS_ALLOC_PADDING) {
size_t esize = granularity_align(nb + SYS_ALLOC_PADDING - ssize);
if (esize < HALF_MAX_SIZE_T) {
char* end = (char*)CALL_MORECORE(esize);
if (end != CMFAIL)
ssize += esize;
else { /* Can't use; try to release */
(void) CALL_MORECORE(-ssize);
br = CMFAIL;
}
}
}
}
if (br != CMFAIL) { /* Use the space we did get */
tbase = br;
tsize = ssize;
}
else
disable_contiguous(m); /* Don't try contiguous path in the future */
}
RELEASE_MALLOC_GLOBAL_LOCK();
}
if (HAVE_MMAP && tbase == CMFAIL) { /* Try MMAP */
char* mp = (char*)(CALL_MMAP(asize));
if (mp != CMFAIL) {
tbase = mp;
tsize = asize;
mmap_flag = USE_MMAP_BIT;
}
}
if (HAVE_MORECORE && tbase == CMFAIL) { /* Try noncontiguous MORECORE */
if (asize < HALF_MAX_SIZE_T) {
char* br = CMFAIL;
char* end = CMFAIL;
ACQUIRE_MALLOC_GLOBAL_LOCK();
br = (char*)(CALL_MORECORE(asize));
end = (char*)(CALL_MORECORE(0));
RELEASE_MALLOC_GLOBAL_LOCK();
if (br != CMFAIL && end != CMFAIL && br < end) {
size_t ssize = end - br;
if (ssize > nb + TOP_FOOT_SIZE) {
tbase = br;
tsize = ssize;
}
}
}
}
if (tbase != CMFAIL) {
if ((m->footprint += tsize) > m->max_footprint)
m->max_footprint = m->footprint;
if (!is_initialized(m)) { /* first-time initialization */
if (m->least_addr == 0 || tbase < m->least_addr)
m->least_addr = tbase;
m->seg.base = tbase;
m->seg.size = tsize;
m->seg.sflags = mmap_flag;
m->magic = mparams.magic;
m->release_checks = MAX_RELEASE_CHECK_RATE;
init_bins(m);
#if !ONLY_MSPACES
if (is_global(m))
init_top(m, (mchunkptr)tbase, tsize - TOP_FOOT_SIZE);
else
#endif
{
/* Offset top by embedded malloc_state */
mchunkptr mn = next_chunk(mem2chunk(m));
init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) -TOP_FOOT_SIZE);
}
}
else {
/* Try to merge with an existing segment */
msegmentptr sp = &m->seg;
/* Only consider most recent segment if traversal suppressed */
while (sp != 0 && tbase != sp->base + sp->size)
sp = (NO_SEGMENT_TRAVERSAL) ? 0 : sp->next;
if (sp != 0 &&
!is_extern_segment(sp) &&
(sp->sflags & USE_MMAP_BIT) == mmap_flag &&
segment_holds(sp, m->top)) { /* append */
sp->size += tsize;
init_top(m, m->top, m->topsize + tsize);
}
else {
if (tbase < m->least_addr)
m->least_addr = tbase;
sp = &m->seg;
while (sp != 0 && sp->base != tbase + tsize)
sp = (NO_SEGMENT_TRAVERSAL) ? 0 : sp->next;
if (sp != 0 &&
!is_extern_segment(sp) &&
(sp->sflags & USE_MMAP_BIT) == mmap_flag) {
char* oldbase = sp->base;
sp->base = tbase;
sp->size += tsize;
return prepend_alloc(m, tbase, oldbase, nb);
}
else
add_segment(m, tbase, tsize, mmap_flag);
}
}
if (nb < m->topsize) { /* Allocate from new or extended top space */
size_t rsize = m->topsize -= nb;
mchunkptr p = m->top;
mchunkptr r = m->top = chunk_plus_offset(p, nb);
r->head = rsize | PINUSE_BIT;
set_size_and_pinuse_of_inuse_chunk(m, p, nb);
check_top_chunk(m, m->top);
check_malloced_chunk(m, chunk2mem(p), nb);
return chunk2mem(p);
}
}
MALLOC_FAILURE_ACTION;
return 0;
}
/* ----------------------- system deallocation -------------------------- */
/* Unmap and unlink any mmapped segments that don't contain used chunks */
static size_t release_unused_segments(mstate m) {
size_t released = 0;
int nsegs = 0;
msegmentptr pred = &m->seg;
msegmentptr sp = pred->next;
while (sp != 0) {
char* base = sp->base;
size_t size = sp->size;
msegmentptr next = sp->next;
++nsegs;
if (is_mmapped_segment(sp) && !is_extern_segment(sp)) {
mchunkptr p = align_as_chunk(base);
size_t psize = chunksize(p);
/* Can unmap if first chunk holds entire segment and not pinned */
if (!is_inuse(p) && (char*)p + psize >= base + size - TOP_FOOT_SIZE) {
tchunkptr tp = (tchunkptr)p;
assert(segment_holds(sp, (char*)sp));
if (p == m->dv) {
m->dv = 0;
m->dvsize = 0;
}
else {
unlink_large_chunk(m, tp);
}
if (CALL_MUNMAP(base, size) == 0) {
released += size;
m->footprint -= size;
/* unlink obsoleted record */
sp = pred;
sp->next = next;
}
else { /* back out if cannot unmap */
insert_large_chunk(m, tp, psize);
}
}
}
if (NO_SEGMENT_TRAVERSAL) /* scan only first segment */
break;
pred = sp;
sp = next;
}
/* Reset check counter */
m->release_checks = (((size_t) nsegs > (size_t) MAX_RELEASE_CHECK_RATE)?
(size_t) nsegs : (size_t) MAX_RELEASE_CHECK_RATE);
return released;
}
static int sys_trim(mstate m, size_t pad) {
size_t released = 0;
ensure_initialization();
if (pad < MAX_REQUEST && is_initialized(m)) {
pad += TOP_FOOT_SIZE; /* ensure enough room for segment overhead */
if (m->topsize > pad) {
/* Shrink top space in granularity-size units, keeping at least one */
size_t unit = mparams.granularity;
size_t extra = ((m->topsize - pad + (unit - SIZE_T_ONE)) / unit -
SIZE_T_ONE) * unit;
msegmentptr sp = segment_holding(m, (char*)m->top);
if (!is_extern_segment(sp)) {
if (is_mmapped_segment(sp)) {
if (HAVE_MMAP &&
sp->size >= extra &&
!has_segment_link(m, sp)) { /* can't shrink if pinned */
size_t newsize = sp->size - extra;
(void)newsize; /* placate people compiling -Wunused-variable */
/* Prefer mremap, fall back to munmap */
if ((CALL_MREMAP(sp->base, sp->size, newsize, 0) != MFAIL) ||
(CALL_MUNMAP(sp->base + newsize, extra) == 0)) {
released = extra;
}
}
}
else if (HAVE_MORECORE) {
if (extra >= HALF_MAX_SIZE_T) /* Avoid wrapping negative */
extra = (HALF_MAX_SIZE_T) + SIZE_T_ONE - unit;
ACQUIRE_MALLOC_GLOBAL_LOCK();
{
/* Make sure end of memory is where we last set it. */
char* old_br = (char*)(CALL_MORECORE(0));
if (old_br == sp->base + sp->size) {
char* rel_br = (char*)(CALL_MORECORE(-extra));
char* new_br = (char*)(CALL_MORECORE(0));
if (rel_br != CMFAIL && new_br < old_br)
released = old_br - new_br;
}
}
RELEASE_MALLOC_GLOBAL_LOCK();
}
}
if (released != 0) {
sp->size -= released;
m->footprint -= released;
init_top(m, m->top, m->topsize - released);
check_top_chunk(m, m->top);
}
}
/* Unmap any unused mmapped segments */
if (HAVE_MMAP)
released += release_unused_segments(m);
/* On failure, disable autotrim to avoid repeated failed future calls */
if (released == 0 && m->topsize > m->trim_check)
m->trim_check = MAX_SIZE_T;
}
return (released != 0)? 1 : 0;
}
/* Consolidate and bin a chunk. Differs from exported versions
of free mainly in that the chunk need not be marked as inuse.
*/
static void dispose_chunk(mstate m, mchunkptr p, size_t psize) {
mchunkptr next = chunk_plus_offset(p, psize);
if (!pinuse(p)) {
mchunkptr prev;
size_t prevsize = p->prev_foot;
if (is_mmapped(p)) {
psize += prevsize + MMAP_FOOT_PAD;
if (CALL_MUNMAP((char*)p - prevsize, psize) == 0)
m->footprint -= psize;
return;
}
prev = chunk_minus_offset(p, prevsize);
psize += prevsize;
p = prev;
if (RTCHECK(ok_address(m, prev))) { /* consolidate backward */
if (p != m->dv) {
unlink_chunk(m, p, prevsize);
}
else if ((next->head & INUSE_BITS) == INUSE_BITS) {
m->dvsize = psize;
set_free_with_pinuse(p, psize, next);
return;
}
}
else {
CORRUPTION_ERROR_ACTION(m);
return;
}
}
if (RTCHECK(ok_address(m, next))) {
if (!cinuse(next)) { /* consolidate forward */
if (next == m->top) {
size_t tsize = m->topsize += psize;
m->top = p;
p->head = tsize | PINUSE_BIT;
if (p == m->dv) {
m->dv = 0;
m->dvsize = 0;
}
return;
}
else if (next == m->dv) {
size_t dsize = m->dvsize += psize;
m->dv = p;
set_size_and_pinuse_of_free_chunk(p, dsize);
return;
}
else {
size_t nsize = chunksize(next);
psize += nsize;
unlink_chunk(m, next, nsize);
set_size_and_pinuse_of_free_chunk(p, psize);
if (p == m->dv) {
m->dvsize = psize;
return;
}
}
}
else {
set_free_with_pinuse(p, psize, next);
}
insert_chunk(m, p, psize);
}
else {
CORRUPTION_ERROR_ACTION(m);
}
}
/* ---------------------------- malloc --------------------------- */
/* allocate a large request from the best fitting chunk in a treebin */
static void* tmalloc_large(mstate m, size_t nb) {
tchunkptr v = 0;
size_t rsize = -nb; /* Unsigned negation */
tchunkptr t;
bindex_t idx;
compute_tree_index(nb, idx);
if ((t = *treebin_at(m, idx)) != 0) {
/* Traverse tree for this bin looking for node with size == nb */
size_t sizebits = nb << leftshift_for_tree_index(idx);
tchunkptr rst = 0; /* The deepest untaken right subtree */
for (;;) {
tchunkptr rt;
size_t trem = chunksize(t) - nb;
if (trem < rsize) {
v = t;
if ((rsize = trem) == 0)
break;
}
rt = t->child[1];
t = t->child[(sizebits >> (SIZE_T_BITSIZE-SIZE_T_ONE)) & 1];
if (rt != 0 && rt != t)
rst = rt;
if (t == 0) {
t = rst; /* set t to least subtree holding sizes > nb */
break;
}
sizebits <<= 1;
}
}
if (t == 0 && v == 0) { /* set t to root of next non-empty treebin */
binmap_t leftbits = left_bits(idx2bit(idx)) & m->treemap;
if (leftbits != 0) {
bindex_t i;
binmap_t leastbit = least_bit(leftbits);
compute_bit2idx(leastbit, i);
t = *treebin_at(m, i);
}
}
while (t != 0) { /* find smallest of tree or subtree */
size_t trem = chunksize(t) - nb;
if (trem < rsize) {
rsize = trem;
v = t;
}
t = leftmost_child(t);
}
/* If dv is a better fit, return 0 so malloc will use it */
if (v != 0 && rsize < (size_t)(m->dvsize - nb)) {
if (RTCHECK(ok_address(m, v))) { /* split */
mchunkptr r = chunk_plus_offset(v, nb);
assert(chunksize(v) == rsize + nb);
if (RTCHECK(ok_next(v, r))) {
unlink_large_chunk(m, v);
if (rsize < MIN_CHUNK_SIZE)
set_inuse_and_pinuse(m, v, (rsize + nb));
else {
set_size_and_pinuse_of_inuse_chunk(m, v, nb);
set_size_and_pinuse_of_free_chunk(r, rsize);
insert_chunk(m, r, rsize);
}
return chunk2mem(v);
}
}
CORRUPTION_ERROR_ACTION(m);
}
return 0;
}
/* allocate a small request from the best fitting chunk in a treebin */
static void* tmalloc_small(mstate m, size_t nb) {
tchunkptr t, v;
size_t rsize;
bindex_t i;
binmap_t leastbit = least_bit(m->treemap);
compute_bit2idx(leastbit, i);
v = t = *treebin_at(m, i);
rsize = chunksize(t) - nb;
while ((t = leftmost_child(t)) != 0) {
size_t trem = chunksize(t) - nb;
if (trem < rsize) {
rsize = trem;
v = t;
}
}
if (RTCHECK(ok_address(m, v))) {
mchunkptr r = chunk_plus_offset(v, nb);
assert(chunksize(v) == rsize + nb);
if (RTCHECK(ok_next(v, r))) {
unlink_large_chunk(m, v);
if (rsize < MIN_CHUNK_SIZE)
set_inuse_and_pinuse(m, v, (rsize + nb));
else {
set_size_and_pinuse_of_inuse_chunk(m, v, nb);
set_size_and_pinuse_of_free_chunk(r, rsize);
replace_dv(m, r, rsize);
}
return chunk2mem(v);
}
}
CORRUPTION_ERROR_ACTION(m);
return 0;
}
#if !ONLY_MSPACES
void* dlmalloc(size_t bytes) {
/*
Basic algorithm:
If a small request (< 256 bytes minus per-chunk overhead):
1. If one exists, use a remainderless chunk in associated smallbin.
(Remainderless means that there are too few excess bytes to
represent as a chunk.)
2. If it is big enough, use the dv chunk, which is normally the
chunk adjacent to the one used for the most recent small request.
3. If one exists, split the smallest available chunk in a bin,
saving remainder in dv.
4. If it is big enough, use the top chunk.
5. If available, get memory from system and use it
Otherwise, for a large request:
1. Find the smallest available binned chunk that fits, and use it
if it is better fitting than dv chunk, splitting if necessary.
2. If better fitting than any binned chunk, use the dv chunk.
3. If it is big enough, use the top chunk.
4. If request size >= mmap threshold, try to directly mmap this chunk.
5. If available, get memory from system and use it
The ugly goto's here ensure that postaction occurs along all paths.
*/
#if USE_LOCKS
ensure_initialization(); /* initialize in sys_alloc if not using locks */
#endif
if (!PREACTION(gm)) {
void* mem;
size_t nb;
if (bytes <= MAX_SMALL_REQUEST) {
bindex_t idx;
binmap_t smallbits;
nb = (bytes < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(bytes);
idx = small_index(nb);
smallbits = gm->smallmap >> idx;
if ((smallbits & 0x3U) != 0) { /* Remainderless fit to a smallbin. */
mchunkptr b, p;
idx += ~smallbits & 1; /* Uses next bin if idx empty */
b = smallbin_at(gm, idx);
p = b->fd;
assert(chunksize(p) == small_index2size(idx));
unlink_first_small_chunk(gm, b, p, idx);
set_inuse_and_pinuse(gm, p, small_index2size(idx));
mem = chunk2mem(p);
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
else if (nb > gm->dvsize) {
if (smallbits != 0) { /* Use chunk in next nonempty smallbin */
mchunkptr b, p, r;
size_t rsize;
bindex_t i;
binmap_t leftbits = (smallbits << idx) & left_bits(idx2bit(idx));
binmap_t leastbit = least_bit(leftbits);
compute_bit2idx(leastbit, i);
b = smallbin_at(gm, i);
p = b->fd;
assert(chunksize(p) == small_index2size(i));
unlink_first_small_chunk(gm, b, p, i);
rsize = small_index2size(i) - nb;
/* Fit here cannot be remainderless if 4byte sizes */
if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE)
set_inuse_and_pinuse(gm, p, small_index2size(i));
else {
set_size_and_pinuse_of_inuse_chunk(gm, p, nb);
r = chunk_plus_offset(p, nb);
set_size_and_pinuse_of_free_chunk(r, rsize);
replace_dv(gm, r, rsize);
}
mem = chunk2mem(p);
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
else if (gm->treemap != 0 && (mem = tmalloc_small(gm, nb)) != 0) {
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
}
}
else if (bytes >= MAX_REQUEST)
nb = MAX_SIZE_T; /* Too big to allocate. Force failure (in sys alloc) */
else {
nb = pad_request(bytes);
if (gm->treemap != 0 && (mem = tmalloc_large(gm, nb)) != 0) {
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
}
if (nb <= gm->dvsize) {
size_t rsize = gm->dvsize - nb;
mchunkptr p = gm->dv;
if (rsize >= MIN_CHUNK_SIZE) { /* split dv */
mchunkptr r = gm->dv = chunk_plus_offset(p, nb);
gm->dvsize = rsize;
set_size_and_pinuse_of_free_chunk(r, rsize);
set_size_and_pinuse_of_inuse_chunk(gm, p, nb);
}
else { /* exhaust dv */
size_t dvs = gm->dvsize;
gm->dvsize = 0;
gm->dv = 0;
set_inuse_and_pinuse(gm, p, dvs);
}
mem = chunk2mem(p);
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
else if (nb < gm->topsize) { /* Split top */
size_t rsize = gm->topsize -= nb;
mchunkptr p = gm->top;
mchunkptr r = gm->top = chunk_plus_offset(p, nb);
r->head = rsize | PINUSE_BIT;
set_size_and_pinuse_of_inuse_chunk(gm, p, nb);
mem = chunk2mem(p);
check_top_chunk(gm, gm->top);
check_malloced_chunk(gm, mem, nb);
goto postaction;
}
mem = sys_alloc(gm, nb);
postaction:
POSTACTION(gm);
return mem;
}
return 0;
}
/* ---------------------------- free --------------------------- */
void dlfree(void* mem) {
/*
Consolidate freed chunks with preceeding or succeeding bordering
free chunks, if they exist, and then place in a bin. Intermixed
with special cases for top, dv, mmapped chunks, and usage errors.
*/
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
#if FOOTERS
mstate fm = get_mstate_for(p);
if (!ok_magic(fm)) {
USAGE_ERROR_ACTION(fm, p);
return;
}
#else /* FOOTERS */
#define fm gm
#endif /* FOOTERS */
if (!PREACTION(fm)) {
check_inuse_chunk(fm, p);
if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) {
size_t psize = chunksize(p);
mchunkptr next = chunk_plus_offset(p, psize);
if (!pinuse(p)) {
size_t prevsize = p->prev_foot;
if (is_mmapped(p)) {
psize += prevsize + MMAP_FOOT_PAD;
if (CALL_MUNMAP((char*)p - prevsize, psize) == 0)
fm->footprint -= psize;
goto postaction;
}
else {
mchunkptr prev = chunk_minus_offset(p, prevsize);
psize += prevsize;
p = prev;
if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
if (p != fm->dv) {
unlink_chunk(fm, p, prevsize);
}
else if ((next->head & INUSE_BITS) == INUSE_BITS) {
fm->dvsize = psize;
set_free_with_pinuse(p, psize, next);
goto postaction;
}
}
else
goto erroraction;
}
}
if (RTCHECK(ok_next(p, next) && ok_pinuse(next))) {
if (!cinuse(next)) { /* consolidate forward */
if (next == fm->top) {
size_t tsize = fm->topsize += psize;
fm->top = p;
p->head = tsize | PINUSE_BIT;
if (p == fm->dv) {
fm->dv = 0;
fm->dvsize = 0;
}
if (should_trim(fm, tsize))
sys_trim(fm, 0);
goto postaction;
}
else if (next == fm->dv) {
size_t dsize = fm->dvsize += psize;
fm->dv = p;
set_size_and_pinuse_of_free_chunk(p, dsize);
goto postaction;
}
else {
size_t nsize = chunksize(next);
psize += nsize;
unlink_chunk(fm, next, nsize);
set_size_and_pinuse_of_free_chunk(p, psize);
if (p == fm->dv) {
fm->dvsize = psize;
goto postaction;
}
}
}
else
set_free_with_pinuse(p, psize, next);
if (is_small(psize)) {
insert_small_chunk(fm, p, psize);
check_free_chunk(fm, p);
}
else {
tchunkptr tp = (tchunkptr)p;
insert_large_chunk(fm, tp, psize);
check_free_chunk(fm, p);
if (--fm->release_checks == 0)
release_unused_segments(fm);
}
goto postaction;
}
}
erroraction:
USAGE_ERROR_ACTION(fm, p);
postaction:
POSTACTION(fm);
}
}
#if !FOOTERS
#undef fm
#endif /* FOOTERS */
}
void* dlcalloc(size_t n_elements, size_t elem_size) {
void* mem;
size_t req = 0;
if (n_elements != 0) {
req = n_elements * elem_size;
if (((n_elements | elem_size) & ~(size_t)0xffff) &&
(req / n_elements != elem_size))
req = MAX_SIZE_T; /* force downstream failure on overflow */
}
mem = dlmalloc(req);
if (mem != 0 && calloc_must_clear(mem2chunk(mem)))
memset(mem, 0, req);
return mem;
}
#endif /* !ONLY_MSPACES */
/* ------------ Internal support for realloc, memalign, etc -------------- */
/* Try to realloc; only in-place unless can_move true */
static mchunkptr try_realloc_chunk(mstate m, mchunkptr p, size_t nb,
int can_move) {
mchunkptr newp = 0;
size_t oldsize = chunksize(p);
mchunkptr next = chunk_plus_offset(p, oldsize);
if (RTCHECK(ok_address(m, p) && ok_inuse(p) &&
ok_next(p, next) && ok_pinuse(next))) {
if (is_mmapped(p)) {
newp = mmap_resize(m, p, nb, can_move);
}
else if (oldsize >= nb) { /* already big enough */
size_t rsize = oldsize - nb;
if (rsize >= MIN_CHUNK_SIZE) { /* split off remainder */
mchunkptr r = chunk_plus_offset(p, nb);
set_inuse(m, p, nb);
set_inuse(m, r, rsize);
dispose_chunk(m, r, rsize);
}
newp = p;
}
else if (next == m->top) { /* extend into top */
if (oldsize + m->topsize > nb) {
size_t newsize = oldsize + m->topsize;
size_t newtopsize = newsize - nb;
mchunkptr newtop = chunk_plus_offset(p, nb);
set_inuse(m, p, nb);
newtop->head = newtopsize |PINUSE_BIT;
m->top = newtop;
m->topsize = newtopsize;
newp = p;
}
}
else if (next == m->dv) { /* extend into dv */
size_t dvs = m->dvsize;
if (oldsize + dvs >= nb) {
size_t dsize = oldsize + dvs - nb;
if (dsize >= MIN_CHUNK_SIZE) {
mchunkptr r = chunk_plus_offset(p, nb);
mchunkptr n = chunk_plus_offset(r, dsize);
set_inuse(m, p, nb);
set_size_and_pinuse_of_free_chunk(r, dsize);
clear_pinuse(n);
m->dvsize = dsize;
m->dv = r;
}
else { /* exhaust dv */
size_t newsize = oldsize + dvs;
set_inuse(m, p, newsize);
m->dvsize = 0;
m->dv = 0;
}
newp = p;
}
}
else if (!cinuse(next)) { /* extend into next free chunk */
size_t nextsize = chunksize(next);
if (oldsize + nextsize >= nb) {
size_t rsize = oldsize + nextsize - nb;
unlink_chunk(m, next, nextsize);
if (rsize < MIN_CHUNK_SIZE) {
size_t newsize = oldsize + nextsize;
set_inuse(m, p, newsize);
}
else {
mchunkptr r = chunk_plus_offset(p, nb);
set_inuse(m, p, nb);
set_inuse(m, r, rsize);
dispose_chunk(m, r, rsize);
}
newp = p;
}
}
}
else {
USAGE_ERROR_ACTION(m, chunk2mem(p));
}
return newp;
}
static void* internal_memalign(mstate m, size_t alignment, size_t bytes) {
void* mem = 0;
if (alignment < MIN_CHUNK_SIZE) /* must be at least a minimum chunk size */
alignment = MIN_CHUNK_SIZE;
if ((alignment & (alignment-SIZE_T_ONE)) != 0) {/* Ensure a power of 2 */
size_t a = MALLOC_ALIGNMENT << 1;
while (a < alignment) a <<= 1;
alignment = a;
}
if (bytes >= MAX_REQUEST - alignment) {
if (m != 0) { /* Test isn't needed but avoids compiler warning */
MALLOC_FAILURE_ACTION;
}
}
else {
size_t nb = request2size(bytes);
size_t req = nb + alignment + MIN_CHUNK_SIZE - CHUNK_OVERHEAD;
mem = internal_malloc(m, req);
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
if (PREACTION(m))
return 0;
if ((((size_t)(mem)) & (alignment - 1)) != 0) { /* misaligned */
/*
Find an aligned spot inside chunk. Since we need to give
back leading space in a chunk of at least MIN_CHUNK_SIZE, if
the first calculation places us at a spot with less than
MIN_CHUNK_SIZE leader, we can move to the next aligned spot.
We've allocated enough total room so that this is always
possible.
*/
char* br = (char*)mem2chunk((size_t)(((size_t)((char*)mem + alignment -
SIZE_T_ONE)) &
-alignment));
char* pos = ((size_t)(br - (char*)(p)) >= MIN_CHUNK_SIZE)?
br : br+alignment;
mchunkptr newp = (mchunkptr)pos;
size_t leadsize = pos - (char*)(p);
size_t newsize = chunksize(p) - leadsize;
if (is_mmapped(p)) { /* For mmapped chunks, just adjust offset */
newp->prev_foot = p->prev_foot + leadsize;
newp->head = newsize;
}
else { /* Otherwise, give back leader, use the rest */
set_inuse(m, newp, newsize);
set_inuse(m, p, leadsize);
dispose_chunk(m, p, leadsize);
}
p = newp;
}
/* Give back spare room at the end */
if (!is_mmapped(p)) {
size_t size = chunksize(p);
if (size > nb + MIN_CHUNK_SIZE) {
size_t remainder_size = size - nb;
mchunkptr remainder = chunk_plus_offset(p, nb);
set_inuse(m, p, nb);
set_inuse(m, remainder, remainder_size);
dispose_chunk(m, remainder, remainder_size);
}
}
mem = chunk2mem(p);
assert (chunksize(p) >= nb);
assert(((size_t)mem & (alignment - 1)) == 0);
check_inuse_chunk(m, p);
POSTACTION(m);
}
}
return mem;
}
/*
Common support for independent_X routines, handling
all of the combinations that can result.
The opts arg has:
bit 0 set if all elements are same size (using sizes[0])
bit 1 set if elements should be zeroed
*/
static void** ialloc(mstate m,
size_t n_elements,
size_t* sizes,
int opts,
void* chunks[]) {
size_t element_size; /* chunksize of each element, if all same */
size_t contents_size; /* total size of elements */
size_t array_size; /* request size of pointer array */
void* mem; /* malloced aggregate space */
mchunkptr p; /* corresponding chunk */
size_t remainder_size; /* remaining bytes while splitting */
void** marray; /* either "chunks" or malloced ptr array */
mchunkptr array_chunk; /* chunk for malloced ptr array */
flag_t was_enabled; /* to disable mmap */
size_t size;
size_t i;
ensure_initialization();
/* compute array length, if needed */
if (chunks != 0) {
if (n_elements == 0)
return chunks; /* nothing to do */
marray = chunks;
array_size = 0;
}
else {
/* if empty req, must still return chunk representing empty array */
if (n_elements == 0)
return (void**)internal_malloc(m, 0);
marray = 0;
array_size = request2size(n_elements * (sizeof(void*)));
}
/* compute total element size */
if (opts & 0x1) { /* all-same-size */
element_size = request2size(*sizes);
contents_size = n_elements * element_size;
}
else { /* add up all the sizes */
element_size = 0;
contents_size = 0;
for (i = 0; i != n_elements; ++i)
contents_size += request2size(sizes[i]);
}
size = contents_size + array_size;
/*
Allocate the aggregate chunk. First disable direct-mmapping so
malloc won't use it, since we would not be able to later
free/realloc space internal to a segregated mmap region.
*/
was_enabled = use_mmap(m);
disable_mmap(m);
mem = internal_malloc(m, size - CHUNK_OVERHEAD);
if (was_enabled)
enable_mmap(m);
if (mem == 0)
return 0;
if (PREACTION(m)) return 0;
p = mem2chunk(mem);
remainder_size = chunksize(p);
assert(!is_mmapped(p));
if (opts & 0x2) { /* optionally clear the elements */
memset((size_t*)mem, 0, remainder_size - SIZE_T_SIZE - array_size);
}
/* If not provided, allocate the pointer array as final part of chunk */
if (marray == 0) {
size_t array_chunk_size;
array_chunk = chunk_plus_offset(p, contents_size);
array_chunk_size = remainder_size - contents_size;
marray = (void**) (chunk2mem(array_chunk));
set_size_and_pinuse_of_inuse_chunk(m, array_chunk, array_chunk_size);
remainder_size = contents_size;
}
/* split out elements */
for (i = 0; ; ++i) {
marray[i] = chunk2mem(p);
if (i != n_elements-1) {
if (element_size != 0)
size = element_size;
else
size = request2size(sizes[i]);
remainder_size -= size;
set_size_and_pinuse_of_inuse_chunk(m, p, size);
p = chunk_plus_offset(p, size);
}
else { /* the final element absorbs any overallocation slop */
set_size_and_pinuse_of_inuse_chunk(m, p, remainder_size);
break;
}
}
#if DEBUG
if (marray != chunks) {
/* final element must have exactly exhausted chunk */
if (element_size != 0) {
assert(remainder_size == element_size);
}
else {
assert(remainder_size == request2size(sizes[i]));
}
check_inuse_chunk(m, mem2chunk(marray));
}
for (i = 0; i != n_elements; ++i)
check_inuse_chunk(m, mem2chunk(marray[i]));
#endif /* DEBUG */
POSTACTION(m);
return marray;
}
/* Try to free all pointers in the given array.
Note: this could be made faster, by delaying consolidation,
at the price of disabling some user integrity checks, We
still optimize some consolidations by combining adjacent
chunks before freeing, which will occur often if allocated
with ialloc or the array is sorted.
*/
static size_t internal_bulk_free(mstate m, void* array[], size_t nelem) {
size_t unfreed = 0;
if (!PREACTION(m)) {
void** a;
void** fence = &(array[nelem]);
for (a = array; a != fence; ++a) {
void* mem = *a;
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
size_t psize = chunksize(p);
#if FOOTERS
if (get_mstate_for(p) != m) {
++unfreed;
continue;
}
#endif
check_inuse_chunk(m, p);
*a = 0;
if (RTCHECK(ok_address(m, p) && ok_inuse(p))) {
void ** b = a + 1; /* try to merge with next chunk */
mchunkptr next = next_chunk(p);
if (b != fence && *b == chunk2mem(next)) {
size_t newsize = chunksize(next) + psize;
set_inuse(m, p, newsize);
*b = chunk2mem(p);
}
else
dispose_chunk(m, p, psize);
}
else {
CORRUPTION_ERROR_ACTION(m);
break;
}
}
}
if (should_trim(m, m->topsize))
sys_trim(m, 0);
POSTACTION(m);
}
return unfreed;
}
/* Traversal */
#if MALLOC_INSPECT_ALL
static void internal_inspect_all(mstate m,
void(*handler)(void *start,
void *end,
size_t used_bytes,
void* callback_arg),
void* arg) {
if (is_initialized(m)) {
mchunkptr top = m->top;
msegmentptr s;
for (s = &m->seg; s != 0; s = s->next) {
mchunkptr q = align_as_chunk(s->base);
while (segment_holds(s, q) && q->head != FENCEPOST_HEAD) {
mchunkptr next = next_chunk(q);
size_t sz = chunksize(q);
size_t used;
void* start;
if (is_inuse(q)) {
used = sz - CHUNK_OVERHEAD; /* must not be mmapped */
start = chunk2mem(q);
}
else {
used = 0;
if (is_small(sz)) { /* offset by possible bookkeeping */
start = (void*)((char*)q + sizeof(struct malloc_chunk));
}
else {
start = (void*)((char*)q + sizeof(struct malloc_tree_chunk));
}
}
if (start < (void*)next) /* skip if all space is bookkeeping */
handler(start, next, used, arg);
if (q == top)
break;
q = next;
}
}
}
}
#endif /* MALLOC_INSPECT_ALL */
/* ------------------ Exported realloc, memalign, etc -------------------- */
#if !ONLY_MSPACES
void* dlrealloc(void* oldmem, size_t bytes) {
void* mem = 0;
if (oldmem == 0) {
mem = dlmalloc(bytes);
}
else if (bytes >= MAX_REQUEST) {
MALLOC_FAILURE_ACTION;
}
#ifdef REALLOC_ZERO_BYTES_FREES
else if (bytes == 0) {
dlfree(oldmem);
}
#endif /* REALLOC_ZERO_BYTES_FREES */
else {
size_t nb = request2size(bytes);
mchunkptr oldp = mem2chunk(oldmem);
#if ! FOOTERS
mstate m = gm;
#else /* FOOTERS */
mstate m = get_mstate_for(oldp);
if (!ok_magic(m)) {
USAGE_ERROR_ACTION(m, oldmem);
return 0;
}
#endif /* FOOTERS */
if (!PREACTION(m)) {
mchunkptr newp = try_realloc_chunk(m, oldp, nb, 1);
POSTACTION(m);
if (newp != 0) {
check_inuse_chunk(m, newp);
mem = chunk2mem(newp);
}
else {
mem = internal_malloc(m, bytes);
if (mem != 0) {
size_t oc = chunksize(oldp) - overhead_for(oldp);
memcpy(mem, oldmem, (oc < bytes)? oc : bytes);
internal_free(m, oldmem);
}
}
}
}
return mem;
}
void* dlrealloc_in_place(void* oldmem, size_t bytes) {
void* mem = 0;
if (oldmem != 0) {
if (bytes >= MAX_REQUEST) {
MALLOC_FAILURE_ACTION;
}
else {
size_t nb = request2size(bytes);
mchunkptr oldp = mem2chunk(oldmem);
#if ! FOOTERS
mstate m = gm;
#else /* FOOTERS */
mstate m = get_mstate_for(oldp);
if (!ok_magic(m)) {
USAGE_ERROR_ACTION(m, oldmem);
return 0;
}
#endif /* FOOTERS */
if (!PREACTION(m)) {
mchunkptr newp = try_realloc_chunk(m, oldp, nb, 0);
POSTACTION(m);
if (newp == oldp) {
check_inuse_chunk(m, newp);
mem = oldmem;
}
}
}
}
return mem;
}
void* dlmemalign(size_t alignment, size_t bytes) {
if (alignment <= MALLOC_ALIGNMENT) {
return dlmalloc(bytes);
}
return internal_memalign(gm, alignment, bytes);
}
int dlposix_memalign(void** pp, size_t alignment, size_t bytes) {
void* mem = 0;
if (alignment == MALLOC_ALIGNMENT)
mem = dlmalloc(bytes);
else {
size_t d = alignment / sizeof(void*);
size_t r = alignment % sizeof(void*);
if (r != 0 || d == 0 || (d & (d-SIZE_T_ONE)) != 0)
return EINVAL;
else if (bytes <= MAX_REQUEST - alignment) {
if (alignment < MIN_CHUNK_SIZE)
alignment = MIN_CHUNK_SIZE;
mem = internal_memalign(gm, alignment, bytes);
}
}
if (mem == 0)
return ENOMEM;
else {
*pp = mem;
return 0;
}
}
void* dlvalloc(size_t bytes) {
size_t pagesz;
ensure_initialization();
pagesz = mparams.page_size;
return dlmemalign(pagesz, bytes);
}
void* dlpvalloc(size_t bytes) {
size_t pagesz;
ensure_initialization();
pagesz = mparams.page_size;
return dlmemalign(pagesz, (bytes + pagesz - SIZE_T_ONE) & ~(pagesz - SIZE_T_ONE));
}
void** dlindependent_calloc(size_t n_elements, size_t elem_size,
void* chunks[]) {
size_t sz = elem_size; /* serves as 1-element array */
return ialloc(gm, n_elements, &sz, 3, chunks);
}
void** dlindependent_comalloc(size_t n_elements, size_t sizes[],
void* chunks[]) {
return ialloc(gm, n_elements, sizes, 0, chunks);
}
size_t dlbulk_free(void* array[], size_t nelem) {
return internal_bulk_free(gm, array, nelem);
}
#if MALLOC_INSPECT_ALL
void dlmalloc_inspect_all(void(*handler)(void *start,
void *end,
size_t used_bytes,
void* callback_arg),
void* arg) {
ensure_initialization();
if (!PREACTION(gm)) {
internal_inspect_all(gm, handler, arg);
POSTACTION(gm);
}
}
#endif /* MALLOC_INSPECT_ALL */
int dlmalloc_trim(size_t pad) {
int result = 0;
ensure_initialization();
if (!PREACTION(gm)) {
result = sys_trim(gm, pad);
POSTACTION(gm);
}
return result;
}
size_t dlmalloc_footprint(void) {
return gm->footprint;
}
size_t dlmalloc_max_footprint(void) {
return gm->max_footprint;
}
size_t dlmalloc_footprint_limit(void) {
size_t maf = gm->footprint_limit;
return maf == 0 ? MAX_SIZE_T : maf;
}
size_t dlmalloc_set_footprint_limit(size_t bytes) {
ensure_initialization();
size_t result; /* invert sense of 0 */
if (bytes == 0)
result = granularity_align(1); /* Use minimal size */
if (bytes == MAX_SIZE_T)
result = 0; /* disable */
else
result = granularity_align(bytes);
return gm->footprint_limit = result;
}
#if !NO_MALLINFO
struct mallinfo dlmallinfo(void) {
return internal_mallinfo(gm);
}
#endif /* NO_MALLINFO */
#if !NO_MALLOC_STATS
void dlmalloc_stats() {
internal_malloc_stats(gm);
}
#endif /* NO_MALLOC_STATS */
int dlmallopt(int param_number, int value) {
return change_mparam(param_number, value);
}
size_t dlmalloc_usable_size(void* mem) {
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
if (is_inuse(p))
return chunksize(p) - overhead_for(p);
}
return 0;
}
#endif /* !ONLY_MSPACES */
/* ----------------------------- user mspaces ---------------------------- */
#if MSPACES
static mstate init_user_mstate(char* tbase, size_t tsize) {
size_t msize = pad_request(sizeof(struct malloc_state));
mchunkptr mn;
mchunkptr msp = align_as_chunk(tbase);
mstate m = (mstate)(chunk2mem(msp));
memset(m, 0, msize);
(void)INITIAL_LOCK(&m->mutex);
msp->head = (msize|INUSE_BITS);
m->seg.base = m->least_addr = tbase;
m->seg.size = m->footprint = m->max_footprint = tsize;
m->magic = mparams.magic;
m->release_checks = MAX_RELEASE_CHECK_RATE;
m->mflags = mparams.default_mflags;
m->extp = 0;
m->exts = 0;
disable_contiguous(m);
init_bins(m);
mn = next_chunk(mem2chunk(m));
init_top(m, mn, (size_t)((tbase + tsize) - (char*)mn) - TOP_FOOT_SIZE);
check_top_chunk(m, m->top);
return m;
}
mspace create_mspace(size_t capacity, int locked) {
mstate m = 0;
size_t msize;
ensure_initialization();
msize = pad_request(sizeof(struct malloc_state));
if (capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {
size_t rs = ((capacity == 0)? mparams.granularity :
(capacity + TOP_FOOT_SIZE + msize));
size_t tsize = granularity_align(rs);
char* tbase = (char*)(CALL_MMAP(tsize));
if (tbase != CMFAIL) {
m = init_user_mstate(tbase, tsize);
m->seg.sflags = USE_MMAP_BIT;
set_lock(m, locked);
}
}
return (mspace)m;
}
mspace create_mspace_with_base(void* base, size_t capacity, int locked) {
mstate m = 0;
size_t msize;
ensure_initialization();
msize = pad_request(sizeof(struct malloc_state));
if (capacity > msize + TOP_FOOT_SIZE &&
capacity < (size_t) -(msize + TOP_FOOT_SIZE + mparams.page_size)) {
m = init_user_mstate((char*)base, capacity);
m->seg.sflags = EXTERN_BIT;
set_lock(m, locked);
}
return (mspace)m;
}
int mspace_track_large_chunks(mspace msp, int enable) {
int ret = 0;
mstate ms = (mstate)msp;
if (!PREACTION(ms)) {
if (!use_mmap(ms)) {
ret = 1;
}
if (!enable) {
enable_mmap(ms);
} else {
disable_mmap(ms);
}
POSTACTION(ms);
}
return ret;
}
size_t destroy_mspace(mspace msp) {
size_t freed = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
msegmentptr sp = &ms->seg;
(void)DESTROY_LOCK(&ms->mutex); /* destroy before unmapped */
while (sp != 0) {
char* base = sp->base;
size_t size = sp->size;
flag_t flag = sp->sflags;
(void)base; /* placate people compiling -Wunused-variable */
sp = sp->next;
if ((flag & USE_MMAP_BIT) && !(flag & EXTERN_BIT) &&
CALL_MUNMAP(base, size) == 0)
freed += size;
}
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return freed;
}
/*
mspace versions of routines are near-clones of the global
versions. This is not so nice but better than the alternatives.
*/
void* mspace_malloc(mspace msp, size_t bytes) {
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
return 0;
}
if (!PREACTION(ms)) {
void* mem;
size_t nb;
if (bytes <= MAX_SMALL_REQUEST) {
bindex_t idx;
binmap_t smallbits;
nb = (bytes < MIN_REQUEST)? MIN_CHUNK_SIZE : pad_request(bytes);
idx = small_index(nb);
smallbits = ms->smallmap >> idx;
if ((smallbits & 0x3U) != 0) { /* Remainderless fit to a smallbin. */
mchunkptr b, p;
idx += ~smallbits & 1; /* Uses next bin if idx empty */
b = smallbin_at(ms, idx);
p = b->fd;
assert(chunksize(p) == small_index2size(idx));
unlink_first_small_chunk(ms, b, p, idx);
set_inuse_and_pinuse(ms, p, small_index2size(idx));
mem = chunk2mem(p);
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
else if (nb > ms->dvsize) {
if (smallbits != 0) { /* Use chunk in next nonempty smallbin */
mchunkptr b, p, r;
size_t rsize;
bindex_t i;
binmap_t leftbits = (smallbits << idx) & left_bits(idx2bit(idx));
binmap_t leastbit = least_bit(leftbits);
compute_bit2idx(leastbit, i);
b = smallbin_at(ms, i);
p = b->fd;
assert(chunksize(p) == small_index2size(i));
unlink_first_small_chunk(ms, b, p, i);
rsize = small_index2size(i) - nb;
/* Fit here cannot be remainderless if 4byte sizes */
if (SIZE_T_SIZE != 4 && rsize < MIN_CHUNK_SIZE)
set_inuse_and_pinuse(ms, p, small_index2size(i));
else {
set_size_and_pinuse_of_inuse_chunk(ms, p, nb);
r = chunk_plus_offset(p, nb);
set_size_and_pinuse_of_free_chunk(r, rsize);
replace_dv(ms, r, rsize);
}
mem = chunk2mem(p);
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
else if (ms->treemap != 0 && (mem = tmalloc_small(ms, nb)) != 0) {
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
}
}
else if (bytes >= MAX_REQUEST)
nb = MAX_SIZE_T; /* Too big to allocate. Force failure (in sys alloc) */
else {
nb = pad_request(bytes);
if (ms->treemap != 0 && (mem = tmalloc_large(ms, nb)) != 0) {
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
}
if (nb <= ms->dvsize) {
size_t rsize = ms->dvsize - nb;
mchunkptr p = ms->dv;
if (rsize >= MIN_CHUNK_SIZE) { /* split dv */
mchunkptr r = ms->dv = chunk_plus_offset(p, nb);
ms->dvsize = rsize;
set_size_and_pinuse_of_free_chunk(r, rsize);
set_size_and_pinuse_of_inuse_chunk(ms, p, nb);
}
else { /* exhaust dv */
size_t dvs = ms->dvsize;
ms->dvsize = 0;
ms->dv = 0;
set_inuse_and_pinuse(ms, p, dvs);
}
mem = chunk2mem(p);
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
else if (nb < ms->topsize) { /* Split top */
size_t rsize = ms->topsize -= nb;
mchunkptr p = ms->top;
mchunkptr r = ms->top = chunk_plus_offset(p, nb);
r->head = rsize | PINUSE_BIT;
set_size_and_pinuse_of_inuse_chunk(ms, p, nb);
mem = chunk2mem(p);
check_top_chunk(ms, ms->top);
check_malloced_chunk(ms, mem, nb);
goto postaction;
}
mem = sys_alloc(ms, nb);
postaction:
POSTACTION(ms);
return mem;
}
return 0;
}
void mspace_free(mspace msp, void* mem) {
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
#if FOOTERS
mstate fm = get_mstate_for(p);
(void)msp; /* placate people compiling -Wunused */
#else /* FOOTERS */
mstate fm = (mstate)msp;
#endif /* FOOTERS */
if (!ok_magic(fm)) {
USAGE_ERROR_ACTION(fm, p);
return;
}
if (!PREACTION(fm)) {
check_inuse_chunk(fm, p);
if (RTCHECK(ok_address(fm, p) && ok_inuse(p))) {
size_t psize = chunksize(p);
mchunkptr next = chunk_plus_offset(p, psize);
if (!pinuse(p)) {
size_t prevsize = p->prev_foot;
if (is_mmapped(p)) {
psize += prevsize + MMAP_FOOT_PAD;
if (CALL_MUNMAP((char*)p - prevsize, psize) == 0)
fm->footprint -= psize;
goto postaction;
}
else {
mchunkptr prev = chunk_minus_offset(p, prevsize);
psize += prevsize;
p = prev;
if (RTCHECK(ok_address(fm, prev))) { /* consolidate backward */
if (p != fm->dv) {
unlink_chunk(fm, p, prevsize);
}
else if ((next->head & INUSE_BITS) == INUSE_BITS) {
fm->dvsize = psize;
set_free_with_pinuse(p, psize, next);
goto postaction;
}
}
else
goto erroraction;
}
}
if (RTCHECK(ok_next(p, next) && ok_pinuse(next))) {
if (!cinuse(next)) { /* consolidate forward */
if (next == fm->top) {
size_t tsize = fm->topsize += psize;
fm->top = p;
p->head = tsize | PINUSE_BIT;
if (p == fm->dv) {
fm->dv = 0;
fm->dvsize = 0;
}
if (should_trim(fm, tsize))
sys_trim(fm, 0);
goto postaction;
}
else if (next == fm->dv) {
size_t dsize = fm->dvsize += psize;
fm->dv = p;
set_size_and_pinuse_of_free_chunk(p, dsize);
goto postaction;
}
else {
size_t nsize = chunksize(next);
psize += nsize;
unlink_chunk(fm, next, nsize);
set_size_and_pinuse_of_free_chunk(p, psize);
if (p == fm->dv) {
fm->dvsize = psize;
goto postaction;
}
}
}
else
set_free_with_pinuse(p, psize, next);
if (is_small(psize)) {
insert_small_chunk(fm, p, psize);
check_free_chunk(fm, p);
}
else {
tchunkptr tp = (tchunkptr)p;
insert_large_chunk(fm, tp, psize);
check_free_chunk(fm, p);
if (--fm->release_checks == 0)
release_unused_segments(fm);
}
goto postaction;
}
}
erroraction:
USAGE_ERROR_ACTION(fm, p);
postaction:
POSTACTION(fm);
}
}
}
void* mspace_calloc(mspace msp, size_t n_elements, size_t elem_size) {
void* mem;
size_t req = 0;
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
return 0;
}
if (n_elements != 0) {
req = n_elements * elem_size;
if (((n_elements | elem_size) & ~(size_t)0xffff) &&
(req / n_elements != elem_size))
req = MAX_SIZE_T; /* force downstream failure on overflow */
}
mem = internal_malloc(ms, req);
if (mem != 0 && calloc_must_clear(mem2chunk(mem)))
memset(mem, 0, req);
return mem;
}
void* mspace_realloc(mspace msp, void* oldmem, size_t bytes) {
void* mem = 0;
if (oldmem == 0) {
mem = mspace_malloc(msp, bytes);
}
else if (bytes >= MAX_REQUEST) {
MALLOC_FAILURE_ACTION;
}
#ifdef REALLOC_ZERO_BYTES_FREES
else if (bytes == 0) {
mspace_free(msp, oldmem);
}
#endif /* REALLOC_ZERO_BYTES_FREES */
else {
size_t nb = request2size(bytes);
mchunkptr oldp = mem2chunk(oldmem);
#if ! FOOTERS
mstate m = (mstate)msp;
#else /* FOOTERS */
mstate m = get_mstate_for(oldp);
if (!ok_magic(m)) {
USAGE_ERROR_ACTION(m, oldmem);
return 0;
}
#endif /* FOOTERS */
if (!PREACTION(m)) {
mchunkptr newp = try_realloc_chunk(m, oldp, nb, 1);
POSTACTION(m);
if (newp != 0) {
check_inuse_chunk(m, newp);
mem = chunk2mem(newp);
}
else {
mem = mspace_malloc(m, bytes);
if (mem != 0) {
size_t oc = chunksize(oldp) - overhead_for(oldp);
memcpy(mem, oldmem, (oc < bytes)? oc : bytes);
mspace_free(m, oldmem);
}
}
}
}
return mem;
}
void* mspace_realloc_in_place(mspace msp, void* oldmem, size_t bytes) {
void* mem = 0;
if (oldmem != 0) {
if (bytes >= MAX_REQUEST) {
MALLOC_FAILURE_ACTION;
}
else {
size_t nb = request2size(bytes);
mchunkptr oldp = mem2chunk(oldmem);
#if ! FOOTERS
mstate m = (mstate)msp;
#else /* FOOTERS */
mstate m = get_mstate_for(oldp);
(void)msp; /* placate people compiling -Wunused */
if (!ok_magic(m)) {
USAGE_ERROR_ACTION(m, oldmem);
return 0;
}
#endif /* FOOTERS */
if (!PREACTION(m)) {
mchunkptr newp = try_realloc_chunk(m, oldp, nb, 0);
POSTACTION(m);
if (newp == oldp) {
check_inuse_chunk(m, newp);
mem = oldmem;
}
}
}
}
return mem;
}
void* mspace_memalign(mspace msp, size_t alignment, size_t bytes) {
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
return 0;
}
if (alignment <= MALLOC_ALIGNMENT)
return mspace_malloc(msp, bytes);
return internal_memalign(ms, alignment, bytes);
}
void** mspace_independent_calloc(mspace msp, size_t n_elements,
size_t elem_size, void* chunks[]) {
size_t sz = elem_size; /* serves as 1-element array */
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
return 0;
}
return ialloc(ms, n_elements, &sz, 3, chunks);
}
void** mspace_independent_comalloc(mspace msp, size_t n_elements,
size_t sizes[], void* chunks[]) {
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
return 0;
}
return ialloc(ms, n_elements, sizes, 0, chunks);
}
size_t mspace_bulk_free(mspace msp, void* array[], size_t nelem) {
return internal_bulk_free((mstate)msp, array, nelem);
}
#if MALLOC_INSPECT_ALL
void mspace_inspect_all(mspace msp,
void(*handler)(void *start,
void *end,
size_t used_bytes,
void* callback_arg),
void* arg) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
if (!PREACTION(ms)) {
internal_inspect_all(ms, handler, arg);
POSTACTION(ms);
}
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
}
#endif /* MALLOC_INSPECT_ALL */
int mspace_trim(mspace msp, size_t pad) {
int result = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
if (!PREACTION(ms)) {
result = sys_trim(ms, pad);
POSTACTION(ms);
}
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return result;
}
#if !NO_MALLOC_STATS
void mspace_malloc_stats(mspace msp) {
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
internal_malloc_stats(ms);
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
}
#endif /* NO_MALLOC_STATS */
size_t mspace_footprint(mspace msp) {
size_t result = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->footprint;
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return result;
}
size_t mspace_max_footprint(mspace msp) {
size_t result = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
result = ms->max_footprint;
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return result;
}
size_t mspace_footprint_limit(mspace msp) {
size_t result = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
size_t maf = ms->footprint_limit;
result = (maf == 0) ? MAX_SIZE_T : maf;
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return result;
}
size_t mspace_set_footprint_limit(mspace msp, size_t bytes) {
size_t result = 0;
mstate ms = (mstate)msp;
if (ok_magic(ms)) {
if (bytes == 0)
result = granularity_align(1); /* Use minimal size */
if (bytes == MAX_SIZE_T)
result = 0; /* disable */
else
result = granularity_align(bytes);
ms->footprint_limit = result;
}
else {
USAGE_ERROR_ACTION(ms,ms);
}
return result;
}
#if !NO_MALLINFO
struct mallinfo mspace_mallinfo(mspace msp) {
mstate ms = (mstate)msp;
if (!ok_magic(ms)) {
USAGE_ERROR_ACTION(ms,ms);
}
return internal_mallinfo(ms);
}
#endif /* NO_MALLINFO */
size_t mspace_usable_size(const void* mem) {
if (mem != 0) {
mchunkptr p = mem2chunk(mem);
if (is_inuse(p))
return chunksize(p) - overhead_for(p);
}
return 0;
}
int mspace_mallopt(int param_number, int value) {
return change_mparam(param_number, value);
}
#endif /* MSPACES */
/* -------------------- Alternative MORECORE functions ------------------- */
/*
Guidelines for creating a custom version of MORECORE:
* For best performance, MORECORE should allocate in multiples of pagesize.
* MORECORE may allocate more memory than requested. (Or even less,
but this will usually result in a malloc failure.)
* MORECORE must not allocate memory when given argument zero, but
instead return one past the end address of memory from previous
nonzero call.
* For best performance, consecutive calls to MORECORE with positive
arguments should return increasing addresses, indicating that
space has been contiguously extended.
* Even though consecutive calls to MORECORE need not return contiguous
addresses, it must be OK for malloc'ed chunks to span multiple
regions in those cases where they do happen to be contiguous.
* MORECORE need not handle negative arguments -- it may instead
just return MFAIL when given negative arguments.
Negative arguments are always multiples of pagesize. MORECORE
must not misinterpret negative args as large positive unsigned
args. You can suppress all such calls from even occurring by defining
MORECORE_CANNOT_TRIM,
As an example alternative MORECORE, here is a custom allocator
kindly contributed for pre-OSX macOS. It uses virtually but not
necessarily physically contiguous non-paged memory (locked in,
present and won't get swapped out). You can use it by uncommenting
this section, adding some #includes, and setting up the appropriate
defines above:
#define MORECORE osMoreCore
There is also a shutdown routine that should somehow be called for
cleanup upon program exit.
#define MAX_POOL_ENTRIES 100
#define MINIMUM_MORECORE_SIZE (64 * 1024U)
static int next_os_pool;
void *our_os_pools[MAX_POOL_ENTRIES];
void *osMoreCore(int size)
{
void *ptr = 0;
static void *sbrk_top = 0;
if (size > 0)
{
if (size < MINIMUM_MORECORE_SIZE)
size = MINIMUM_MORECORE_SIZE;
if (CurrentExecutionLevel() == kTaskLevel)
ptr = PoolAllocateResident(size + RM_PAGE_SIZE, 0);
if (ptr == 0)
{
return (void *) MFAIL;
}
// save ptrs so they can be freed during cleanup
our_os_pools[next_os_pool] = ptr;
next_os_pool++;
ptr = (void *) ((((size_t) ptr) + RM_PAGE_MASK) & ~RM_PAGE_MASK);
sbrk_top = (char *) ptr + size;
return ptr;
}
else if (size < 0)
{
// we don't currently support shrink behavior
return (void *) MFAIL;
}
else
{
return sbrk_top;
}
}
// cleanup any allocated memory pools
// called as last thing before shutting down driver
void osCleanupMem(void)
{
void **ptr;
for (ptr = our_os_pools; ptr < &our_os_pools[MAX_POOL_ENTRIES]; ptr++)
if (*ptr)
{
PoolDeallocate(*ptr);
*ptr = 0;
}
}
*/
/* -----------------------------------------------------------------------
History:
v2.8.6 Wed Aug 29 06:57:58 2012 Doug Lea
* fix bad comparison in dlposix_memalign
* don't reuse adjusted asize in sys_alloc
* add LOCK_AT_FORK -- thanks to Kirill Artamonov for the suggestion
* reduce compiler warnings -- thanks to all who reported/suggested these
v2.8.5 Sun May 22 10:26:02 2011 Doug Lea (dl at gee)
* Always perform unlink checks unless INSECURE
* Add posix_memalign.
* Improve realloc to expand in more cases; expose realloc_in_place.
Thanks to Peter Buhr for the suggestion.
* Add footprint_limit, inspect_all, bulk_free. Thanks
to Barry Hayes and others for the suggestions.
* Internal refactorings to avoid calls while holding locks
* Use non-reentrant locks by default. Thanks to Roland McGrath
for the suggestion.
* Small fixes to mspace_destroy, reset_on_error.
* Various configuration extensions/changes. Thanks
to all who contributed these.
V2.8.4a Thu Apr 28 14:39:43 2011 (dl at gee.cs.oswego.edu)
* Update Creative Commons URL
V2.8.4 Wed May 27 09:56:23 2009 Doug Lea (dl at gee)
* Use zeros instead of prev foot for is_mmapped
* Add mspace_track_large_chunks; thanks to Jean Brouwers
* Fix set_inuse in internal_realloc; thanks to Jean Brouwers
* Fix insufficient sys_alloc padding when using 16byte alignment
* Fix bad error check in mspace_footprint
* Adaptations for ptmalloc; thanks to Wolfram Gloger.
* Reentrant spin locks; thanks to Earl Chew and others
* Win32 improvements; thanks to Niall Douglas and Earl Chew
* Add NO_SEGMENT_TRAVERSAL and MAX_RELEASE_CHECK_RATE options
* Extension hook in malloc_state
* Various small adjustments to reduce warnings on some compilers
* Various configuration extensions/changes for more platforms. Thanks
to all who contributed these.
V2.8.3 Thu Sep 22 11:16:32 2005 Doug Lea (dl at gee)
* Add max_footprint functions
* Ensure all appropriate literals are size_t
* Fix conditional compilation problem for some #define settings
* Avoid concatenating segments with the one provided
in create_mspace_with_base
* Rename some variables to avoid compiler shadowing warnings
* Use explicit lock initialization.
* Better handling of sbrk interference.
* Simplify and fix segment insertion, trimming and mspace_destroy
* Reinstate REALLOC_ZERO_BYTES_FREES option from 2.7.x
* Thanks especially to Dennis Flanagan for help on these.
V2.8.2 Sun Jun 12 16:01:10 2005 Doug Lea (dl at gee)
* Fix memalign brace error.
V2.8.1 Wed Jun 8 16:11:46 2005 Doug Lea (dl at gee)
* Fix improper #endif nesting in C++
* Add explicit casts needed for C++
V2.8.0 Mon May 30 14:09:02 2005 Doug Lea (dl at gee)
* Use trees for large bins
* Support mspaces
* Use segments to unify sbrk-based and mmap-based system allocation,
removing need for emulation on most platforms without sbrk.
* Default safety checks
* Optional footer checks. Thanks to William Robertson for the idea.
* Internal code refactoring
* Incorporate suggestions and platform-specific changes.
Thanks to Dennis Flanagan, Colin Plumb, Niall Douglas,
Aaron Bachmann, Emery Berger, and others.
* Speed up non-fastbin processing enough to remove fastbins.
* Remove useless cfree() to avoid conflicts with other apps.
* Remove internal memcpy, memset. Compilers handle builtins better.
* Remove some options that no one ever used and rename others.
V2.7.2 Sat Aug 17 09:07:30 2002 Doug Lea (dl at gee)
* Fix malloc_state bitmap array misdeclaration
V2.7.1 Thu Jul 25 10:58:03 2002 Doug Lea (dl at gee)
* Allow tuning of FIRST_SORTED_BIN_SIZE
* Use PTR_UINT as type for all ptr->int casts. Thanks to John Belmonte.
* Better detection and support for non-contiguousness of MORECORE.
Thanks to Andreas Mueller, Conal Walsh, and Wolfram Gloger
* Bypass most of malloc if no frees. Thanks To Emery Berger.
* Fix freeing of old top non-contiguous chunk im sysmalloc.
* Raised default trim and map thresholds to 256K.
* Fix mmap-related #defines. Thanks to Lubos Lunak.
* Fix copy macros; added LACKS_FCNTL_H. Thanks to Neal Walfield.
* Branch-free bin calculation
* Default trim and mmap thresholds now 256K.
V2.7.0 Sun Mar 11 14:14:06 2001 Doug Lea (dl at gee)
* Introduce independent_comalloc and independent_calloc.
Thanks to Michael Pachos for motivation and help.
* Make optional .h file available
* Allow > 2GB requests on 32bit systems.
* new WIN32 sbrk, mmap, munmap, lock code from <[email protected]>.
Thanks also to Andreas Mueller <a.mueller at paradatec.de>,
and Anonymous.
* Allow override of MALLOC_ALIGNMENT (Thanks to Ruud Waij for
helping test this.)
* memalign: check alignment arg
* realloc: don't try to shift chunks backwards, since this
leads to more fragmentation in some programs and doesn't
seem to help in any others.
* Collect all cases in malloc requiring system memory into sysmalloc
* Use mmap as backup to sbrk
* Place all internal state in malloc_state
* Introduce fastbins (although similar to 2.5.1)
* Many minor tunings and cosmetic improvements
* Introduce USE_PUBLIC_MALLOC_WRAPPERS, USE_MALLOC_LOCK
* Introduce MALLOC_FAILURE_ACTION, MORECORE_CONTIGUOUS
Thanks to Tony E. Bennett <[email protected]> and others.
* Include errno.h to support default failure action.
V2.6.6 Sun Dec 5 07:42:19 1999 Doug Lea (dl at gee)
* return null for negative arguments
* Added Several WIN32 cleanups from Martin C. Fong <mcfong at yahoo.com>
* Add 'LACKS_SYS_PARAM_H' for those systems without 'sys/param.h'
(e.g. WIN32 platforms)
* Cleanup header file inclusion for WIN32 platforms
* Cleanup code to avoid Microsoft Visual C++ compiler complaints
* Add 'USE_DL_PREFIX' to quickly allow co-existence with existing
memory allocation routines
* Set 'malloc_getpagesize' for WIN32 platforms (needs more work)
* Use 'assert' rather than 'ASSERT' in WIN32 code to conform to
usage of 'assert' in non-WIN32 code
* Improve WIN32 'sbrk()' emulation's 'findRegion()' routine to
avoid infinite loop
* Always call 'fREe()' rather than 'free()'
V2.6.5 Wed Jun 17 15:57:31 1998 Doug Lea (dl at gee)
* Fixed ordering problem with boundary-stamping
V2.6.3 Sun May 19 08:17:58 1996 Doug Lea (dl at gee)
* Added pvalloc, as recommended by H.J. Liu
* Added 64bit pointer support mainly from Wolfram Gloger
* Added anonymously donated WIN32 sbrk emulation
* Malloc, calloc, getpagesize: add optimizations from Raymond Nijssen
* malloc_extend_top: fix mask error that caused wastage after
foreign sbrks
* Add linux mremap support code from HJ Liu
V2.6.2 Tue Dec 5 06:52:55 1995 Doug Lea (dl at gee)
* Integrated most documentation with the code.
* Add support for mmap, with help from
Wolfram Gloger ([email protected]).
* Use last_remainder in more cases.
* Pack bins using idea from [email protected]
* Use ordered bins instead of best-fit threshhold
* Eliminate block-local decls to simplify tracing and debugging.
* Support another case of realloc via move into top
* Fix error occuring when initial sbrk_base not word-aligned.
* Rely on page size for units instead of SBRK_UNIT to
avoid surprises about sbrk alignment conventions.
* Add mallinfo, mallopt. Thanks to Raymond Nijssen
([email protected]) for the suggestion.
* Add `pad' argument to malloc_trim and top_pad mallopt parameter.
* More precautions for cases where other routines call sbrk,
courtesy of Wolfram Gloger ([email protected]).
* Added macros etc., allowing use in linux libc from
H.J. Lu ([email protected])
* Inverted this history list
V2.6.1 Sat Dec 2 14:10:57 1995 Doug Lea (dl at gee)
* Re-tuned and fixed to behave more nicely with V2.6.0 changes.
* Removed all preallocation code since under current scheme
the work required to undo bad preallocations exceeds
the work saved in good cases for most test programs.
* No longer use return list or unconsolidated bins since
no scheme using them consistently outperforms those that don't
given above changes.
* Use best fit for very large chunks to prevent some worst-cases.
* Added some support for debugging
V2.6.0 Sat Nov 4 07:05:23 1995 Doug Lea (dl at gee)
* Removed footers when chunks are in use. Thanks to
Paul Wilson ([email protected]) for the suggestion.
V2.5.4 Wed Nov 1 07:54:51 1995 Doug Lea (dl at gee)
* Added malloc_trim, with help from Wolfram Gloger
([email protected]).
V2.5.3 Tue Apr 26 10:16:01 1994 Doug Lea (dl at g)
V2.5.2 Tue Apr 5 16:20:40 1994 Doug Lea (dl at g)
* realloc: try to expand in both directions
* malloc: swap order of clean-bin strategy;
* realloc: only conditionally expand backwards
* Try not to scavenge used bins
* Use bin counts as a guide to preallocation
* Occasionally bin return list chunks in first scan
* Add a few optimizations from [email protected]
V2.5.1 Sat Aug 14 15:40:43 1993 Doug Lea (dl at g)
* faster bin computation & slightly different binning
* merged all consolidations to one part of malloc proper
(eliminating old malloc_find_space & malloc_clean_bin)
* Scan 2 returns chunks (not just 1)
* Propagate failure in realloc if malloc returns 0
* Add stuff to allow compilation on non-ANSI compilers
from [email protected]
V2.5 Sat Aug 7 07:41:59 1993 Doug Lea (dl at g.oswego.edu)
* removed potential for odd address access in prev_chunk
* removed dependency on getpagesize.h
* misc cosmetics and a bit more internal documentation
* anticosmetics: mangled names in macros to evade debugger strangeness
* tested on sparc, hp-700, dec-mips, rs6000
with gcc & native cc (hp, dec only) allowing
Detlefs & Zorn comparison study (in SIGPLAN Notices.)
Trial version Fri Aug 28 13:14:29 1992 Doug Lea (dl at g.oswego.edu)
* Based loosely on libg++-1.2X malloc. (It retains some of the overall
structure of old version, but most details differ.)
*/
|
the_stack_data/1027808.c | /* Test the tester; previously part of gcc.misc-tests/dg-9.c. */
/* { dg-prms-id 42 } */
/* { dg-options "-Wall" } */
int main (int argc, char *argv[])
{
return 0; /* { dg-bogus "foobar" "bogus fail test" } */
}
|
the_stack_data/247019568.c | /**************************************************************************//**
* @file core_cm4.c
* @brief CMSIS Cortex-M3 Core Peripheral Access Layer Source File
* @version V2.01
* @date 06. December 2010
*
* @note
* Copyright (C) 2010 ARM Limited. All rights reserved.
*
* @par
* ARM Limited (ARM) is supplying this software for use with Cortex-M
* processor based microcontrollers. This file can be freely distributed
* within development tools that are supporting such ARM based processors.
*
* @par
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
* ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
*
******************************************************************************/
/* ################### Compiler specific Intrinsics ########################### */
#if defined ( __CC_ARM ) /*------------------ RealView Compiler ----------------*/
/* ARM armcc specific functions */
#elif (defined (__ICCARM__)) /*------------------ ICC Compiler -------------------*/
/* IAR iccarm specific functions */
#elif (defined (__GNUC__)) /*------------------ GNU Compiler ---------------------*/
/* GNU gcc specific functions */
#elif (defined (__TASKING__)) /*------------------ TASKING Compiler --------------*/
/* TASKING carm specific functions */
/*
* The CMSIS functions have been implemented as intrinsics in the compiler.
* Please use "carm -?i" to get an up to date list of all instrinsics,
* Including the CMSIS ones.
*/
#endif
|
the_stack_data/151824.c | int main(){
int j = -10;
int i = +10;
int r = 20;
int d;
int l = 7;
r = r + 10 + 9 + 3;
return r;
}
|
the_stack_data/399572.c | #include <math.h>
#define SWAP(a,b) tempr=(a);(a)=(b);(b)=tempr
void four1(double data[], int nn, int isign)
{
int n,mmax,m,j,istep,i;
double wtemp,wr,wpr,wpi,wi,theta;
double tempr,tempi;
n=nn << 1;
j=1;
for (i=1;i<n;i+=2) {
if (j > i) {
SWAP(data[j],data[i]);
SWAP(data[j+1],data[i+1]);
}
m=n >> 1;
while (m >= 2 && j > m) {
j -= m;
m >>= 1;
}
j += m;
}
mmax=2;
while (n > mmax) {
istep=2*mmax;
theta=6.28318530717959/(isign*mmax);
wtemp=sin(0.5*theta);
wpr = -2.0*wtemp*wtemp;
wpi=sin(theta);
wr=1.0;
wi=0.0;
for (m=1;m<mmax;m+=2) {
for (i=m;i<=n;i+=istep) {
j=i+mmax;
tempr=wr*data[j]-wi*data[j+1];
tempi=wr*data[j+1]+wi*data[j];
data[j]=data[i]-tempr;
data[j+1]=data[i+1]-tempi;
data[i] += tempr;
data[i+1] += tempi;
}
wr=(wtemp=wr)*wpr-wi*wpi+wr;
wi=wi*wpr+wtemp*wpi+wi;
}
mmax=istep;
}
}
#undef SWAP
|
the_stack_data/17319.c | //Faça um programa que some dois números e multiplique o resultado pelo primeiro número !
#include <stdio.h> // Bibliotecas da linguagem C para utilizar no programa
// std = Standard (Padrão)
// io = input/output (Entrada/Saída)
int main(){
//Declaração de variável
int nume1, nume2, soma, mulplicacao;
//Entradas
printf("Informe o primeiro número ");
scanf("%d", &nume1);
printf("Informe o segundo número ");
scanf("%d", &nume2);
//Processamento
soma = nume1 + nume2;
mulplicacao = soma * nume1;
//saídas
printf("O resultado da multiplicação é %d", mulplicacao);
} |
the_stack_data/32950795.c | #include<stdio.h>
int main(){
char name[] = "Dhayal Ram";
char address[] = "No. 123,\n street address,\n town,\n city,\n state,\n country,\n world,\n planet, galaxy";
printf("Name: %s\n Address:%s", name, address);
return 0;
}
|
the_stack_data/18887952.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
static uint32_t *pagetable;
#ifndef PROB1
static uint32_t *residentPageTable;
#endif
// Utility function to extract the page number from the entry
uint32_t extract_page(int table_entry, int page_bits) {
return (((1 << page_bits) - 1) & (table_entry >> 1));
}
// Utility function to truncate bit strings to a set number of bits
uint32_t truncate(int input, int num_bits) {
return (((1 << num_bits) - 1) & (input));
}
// Utility function to convert hex to decimal and truncate address if needed
uint32_t process_address(char addr[], int max_addr, int vbits) {
int len = strlen(addr);
int base = 1;
uint32_t ret = 0;
if (addr[0] == '0' && addr[1] == 'x')
addr += 2;
for (int i=len-1; i>=0; i--) {
if (addr[i] >= '0' && addr[i] <= '9') {
ret += (addr[i] - 48) * base;
base *= 16;
}
else if (addr[i] >= 'A' && addr[i] <= 'F') {
ret += (addr[i] - 55) * base;
base *= 16;
}
else if (addr[i] >= 'a' && addr[i] <= 'f') {
ret += (addr[i] - 87) * base;
base *= 16;
}
}
if(ret > max_addr) {
printf("Given address is greater than the max allowed, truncating\n");
ret = truncate(ret, vbits);
printf("New Virtual Address: 0x%X\n", ret);
}
return ret;
}
int main (int argc, char ** argv) {
int vbits, pbits, bytes;
int valid, perm, page, use;
FILE *fptr;
if(argc != 2) {
fprintf(stderr, "Error: Usage %s <filename>\n", argv[0]);
exit(EXIT_FAILURE);
}
fptr = fopen((char *)argv[1], "r");
if(fptr == NULL) {
printf("Error opening file %s.\n", argv[1]);
exit(EXIT_FAILURE);
}
fscanf(fptr, "%d %d %d", &vbits, &pbits, &bytes);
int off_bits = (int)log2(bytes);
int index_bits = vbits - off_bits;
int page_bits = pbits - off_bits;
int entry_bits = page_bits + 3; // Three extra bits for valid, perm, use
int valid_mask = (int)pow(2, entry_bits - 1);
int perm_mask = (int)pow(2, entry_bits - 2);
int vpages = (int)pow(2, index_bits);
int max_v_addr = (int)pow(2, vbits) - 1;
int i = 0;
// Allocate space for pagetables
pagetable = malloc(vpages * sizeof(uint32_t));
#ifndef PROB1
int j = 0;
int ppages = (int)pow(2, page_bits);
residentPageTable = malloc(ppages * sizeof(uint32_t));
//initialize clockhand to index 0;
int clockHand = 0;
int virtual_index_mask = ((int)pow(2, index_bits) - 1) << (page_bits + 1);
int physical_page_mask = ((int)pow(2, page_bits) - 1) << 1;
#endif
//int in;
while(fgetc(fptr) != EOF) {
fscanf(fptr, "%d %d %d %d", &valid, &perm, &page, &use);
pagetable[i] |= ((valid << 1) | perm); // add valid and perm bits
pagetable[i] <<= page_bits; // make room for page number
pagetable[i] |= page; // add page number
pagetable[i] <<= 1; // make room for "use" bit
pagetable[i] |= use; // add "use" bit
#ifndef PROB1
//initialize resident page table
if(valid == 1 && perm == 1) {
residentPageTable[j] |= i; // add index
residentPageTable[j] <<= page_bits;// make room for virtual index
residentPageTable[j] |= page; // add physical page number
residentPageTable[j] <<= 1; // make room for "use" bit
residentPageTable[j] |= use; // add "use" bit
j++;
}
#endif
++i;
}
fclose(fptr);
// Get user input
char virtual_address[22]; // is 22 enough?
printf("Enter a virtual address in hexadecimal (q to quit): ");
fgets(virtual_address, 22, stdin);
while(virtual_address[0] != 'q') {
//printf("Virtual Address read: %s", virtual_address);
uint32_t dec_addr =process_address(virtual_address, max_v_addr, vbits);
uint32_t offset = truncate(dec_addr, off_bits);
int index = dec_addr >> off_bits;
int entry = pagetable[index];
if((entry & perm_mask) == 0)
printf("SEGFAULT\n");
else if((entry & valid_mask)==0 && (entry & perm_mask)==perm_mask) {
#ifdef PROB1
printf("DISK\n");
#else
printf("PAGE FAULT\n");
int pageReplaced = 0;
uint32_t phys_addr;
while(!pageReplaced) {
//if use bit is 0 replace the page
if((residentPageTable[clockHand] % 2) == 0) {
//set valid bit at old index in virtual page table to 0
pagetable[residentPageTable[clockHand] >> (1 + page_bits)]
^= valid_mask;
// update the resident page table
// clear old index bits
residentPageTable[clockHand] &= ~virtual_index_mask;
// add new index bits
residentPageTable[clockHand] |= index << (page_bits + 1);
// set "use" bit to 1
residentPageTable[clockHand] += 1;
// update the virtual page table
pagetable[index] |= valid_mask; // set valid bit to 1
pagetable[index] &= ~physical_page_mask;
//set physical page number
pagetable[index] |= (residentPageTable[clockHand] ^
(virtual_index_mask + 1));
pagetable[index] |= 1; // set use bit to 1
int page_number = extract_page(pagetable[index],page_bits);
phys_addr = (page_number << off_bits) | offset;
pageReplaced = 1;
}
else {
//change residentPageTable "use" bit to 0;
residentPageTable[clockHand] -= 1;
//change pageTable "use" bit to 0;
pagetable[residentPageTable[clockHand] >> (1 +page_bits)]
>>= 1;
pagetable[residentPageTable[clockHand] >> (1 +page_bits)]
<<= 1;
}
clockHand++;
if (clockHand == j)
clockHand = 0;
}
printf("Physical Address: 0x%X\n", phys_addr);
#endif
}
else {
int page_number = extract_page(entry, page_bits);
uint32_t phys_addr = (page_number << off_bits) | offset;
printf("Physical Address: 0x%X\n", phys_addr);
#ifndef PROB1
if(entry % 2 != 0){
pagetable[index] |= 1;
//for each resident page in the page table
for(int p = 0; i < j; p++)
// if the index is the same as the virtual index in the
// resident page table
if(index == (residentPageTable[p] >> (page_bits + 1)))
residentPageTable[p] |= 1; //set its "use" bit to 1
}
#endif
}
printf("Enter a virtual address in hexadecimal (q to quit): ");
fgets(virtual_address, 22, stdin);
}
// Free allocated memory
free(pagetable);
#ifndef PROB1
free(residentPageTable);
#endif
return 0;
}
|
the_stack_data/16091.c | #include <syslog.h>
#include <assert.h>
void syslog(int priority, const char *format, ...)
{
assert(!"NYI");
}
void openlog(const char *ident, int option, int facility)
{
assert(!"NYI");
}
|
the_stack_data/139266.c | //18.Escrever um algoritmo que leia uma quantidade desconhecida de números e conte quantos deles estão nos seguintes intervalos: [0.25], [26,50], [51,75] e [76,100]. A entrada de dados deve terminar quando for lido um número negativo.
#include <stdio.h>
int main(){
int num, v1=0, v2=0, v3=0, v4=0;
int i=0;
while(num>=0){
printf("Digite um numero: ");
scanf("%d", &num);
i++;
if(num>=0 && num<=25){
v1++;
}else if(num>=26 && num<=50){
v2++;
}else if(num>=51 && num<=75){
v3++;
}else if(num>=76 && num<=100){
v4++;
}
}
if(num<0){
printf("\nEncerrado\n");
printf("%d numeros estao entre [0...25]\n", v1);
printf("%d numeros estao entre [26...50]\n", v2);
printf("%d numeros estao entre [51...75]\n", v3);
printf("%d numeros estao entre [76...100]\n", v4);
}
return 0;
}
|
the_stack_data/174231.c | /*
LUFA Library
Copyright (C) Dean Camera, 2021.
dean [at] fourwalledcubicle [dot] com
www.lufa-lib.org
*/
/*
Copyright 2021 Dean Camera (dean [at] fourwalledcubicle [dot] com)
Permission to use, copy, modify, distribute, and sell this
software and its documentation for any purpose is hereby granted
without fee, provided that the above copyright notice appear in
all copies and that both that the copyright notice and this
permission notice and warranty disclaimer appear in supporting
documentation, and that the name of the author not be used in
advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
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, 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.
*/
#if defined(TEMPLATE_FUNC_NAME)
uint8_t TEMPLATE_FUNC_NAME (TEMPLATE_BUFFER_TYPE const Buffer,
uint16_t Length,
uint16_t* const BytesProcessed)
{
uint8_t* DataStream = ((uint8_t*)Buffer + TEMPLATE_BUFFER_OFFSET(Length));
uint16_t BytesInTransfer = 0;
uint8_t ErrorCode;
Pipe_SetPipeToken(TEMPLATE_TOKEN);
if ((ErrorCode = Pipe_WaitUntilReady()))
return ErrorCode;
if (BytesProcessed != NULL)
{
Length -= *BytesProcessed;
TEMPLATE_BUFFER_MOVE(DataStream, *BytesProcessed);
}
while (Length)
{
if (!(Pipe_IsReadWriteAllowed()))
{
TEMPLATE_CLEAR_PIPE();
if (BytesProcessed != NULL)
{
*BytesProcessed += BytesInTransfer;
return PIPE_RWSTREAM_IncompleteTransfer;
}
if ((ErrorCode = Pipe_WaitUntilReady()))
return ErrorCode;
}
else
{
TEMPLATE_TRANSFER_BYTE(DataStream);
TEMPLATE_BUFFER_MOVE(DataStream, 1);
Length--;
BytesInTransfer++;
}
}
return PIPE_RWSTREAM_NoError;
}
#undef TEMPLATE_FUNC_NAME
#undef TEMPLATE_BUFFER_TYPE
#undef TEMPLATE_TOKEN
#undef TEMPLATE_TRANSFER_BYTE
#undef TEMPLATE_CLEAR_PIPE
#undef TEMPLATE_BUFFER_OFFSET
#undef TEMPLATE_BUFFER_MOVE
#endif
|
the_stack_data/153577.c | #include <stdio.h>
#include <stdlib.h>
int cmp(const void *a, const void *b) {
int ai = *(const int *)a;
int bi = *(const int *)b;
return ai-bi;
}
int main(int argc, char const *argv[])
{
char c;
scanf("%c", &c);
int nums[100], n = 0;
while(c != '\n') {
if (c != '+') nums[n++] = c - '0';
scanf("%c", &c);
}
qsort(nums, n, sizeof(nums[0]), cmp);
int index = 0;
while (index < n-1) {
printf("%d+", nums[index++]);
}
printf("%d\n", nums[index]);
return 0;
} |
the_stack_data/193892542.c | /**
******************************************************************************
* @file stm32wbxx_ll_pka.c
* @author MCD Application Team
* @brief PKA LL module driver.
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>
*
* This software component is licensed by ST under BSD 3-Clause license,
* the "License"; You may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
* opensource.org/licenses/BSD-3-Clause
*
******************************************************************************
*/
#if defined(USE_FULL_LL_DRIVER)
/* Includes ------------------------------------------------------------------*/
#include "stm32wbxx_ll_pka.h"
#include "stm32wbxx_ll_bus.h"
#ifdef USE_FULL_ASSERT
#include "stm32_assert.h"
#else
#define assert_param(expr) ((void)0U)
#endif
/** @addtogroup STM32WBxx_LL_Driver
* @{
*/
#if defined(PKA)
/** @addtogroup PKA_LL
* @{
*/
/* Private types -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
/* Private constants ---------------------------------------------------------*/
/* Private macros ------------------------------------------------------------*/
/** @defgroup PKA_LL_Private_Macros PKA Private Constants
* @{
*/
#define IS_LL_PKA_MODE(__VALUE__) (((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM_MOD_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_PARAM_ECC) ||\
((__VALUE__) == LL_PKA_MODE_ECC_KP_PRIMITIVE) ||\
((__VALUE__) == LL_PKA_MODE_ECDSA_SIGNATURE) ||\
((__VALUE__) == LL_PKA_MODE_ECDSA_VERIFICATION) ||\
((__VALUE__) == LL_PKA_MODE_POINT_CHECK) ||\
((__VALUE__) == LL_PKA_MODE_RSA_CRT_EXP) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_INV) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_ADD) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_SUB) ||\
((__VALUE__) == LL_PKA_MODE_ARITHMETIC_MUL) ||\
((__VALUE__) == LL_PKA_MODE_COMPARISON) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_REDUC) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_ADD) ||\
((__VALUE__) == LL_PKA_MODE_MODULAR_SUB) ||\
((__VALUE__) == LL_PKA_MODE_MONTGOMERY_MUL))
/**
* @}
*/
/* Private function prototypes -----------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
/** @addtogroup PKA_LL_Exported_Functions
* @{
*/
/** @addtogroup PKA_LL_EF_Init
* @{
*/
/**
* @brief De-initialize PKA registers (Registers restored to their default values).
* @param PKAx PKA Instance.
* @retval ErrorStatus
* - SUCCESS: PKA registers are de-initialized
* - ERROR: PKA registers are not de-initialized
*/
ErrorStatus LL_PKA_DeInit(PKA_TypeDef *PKAx)
{
ErrorStatus status = SUCCESS;
/* Check the parameters */
assert_param(IS_PKA_ALL_INSTANCE(PKAx));
if (PKAx == PKA)
{
/* Force PKA reset */
LL_AHB3_GRP1_ForceReset(LL_AHB3_GRP1_PERIPH_PKA);
/* Release PKA reset */
LL_AHB3_GRP1_ReleaseReset(LL_AHB3_GRP1_PERIPH_PKA);
}
else
{
status = ERROR;
}
return (status);
}
/**
* @brief Initialize PKA registers according to the specified parameters in PKA_InitStruct.
* @param PKAx PKA Instance.
* @param PKA_InitStruct pointer to a @ref LL_PKA_InitTypeDef structure
* that contains the configuration information for the specified PKA peripheral.
* @retval ErrorStatus
* - SUCCESS: PKA registers are initialized according to PKA_InitStruct content
* - ERROR: Not applicable
*/
ErrorStatus LL_PKA_Init(PKA_TypeDef *PKAx, LL_PKA_InitTypeDef *PKA_InitStruct)
{
assert_param(IS_PKA_ALL_INSTANCE(PKAx));
assert_param(IS_LL_PKA_MODE(PKA_InitStruct->Mode));
LL_PKA_Config(PKAx, PKA_InitStruct->Mode);
return (SUCCESS);
}
/**
* @brief Set each @ref LL_PKA_InitTypeDef field to default value.
* @param PKA_InitStruct pointer to a @ref LL_PKA_InitTypeDef structure
* whose fields will be set to default values.
* @retval None
*/
void LL_PKA_StructInit(LL_PKA_InitTypeDef *PKA_InitStruct)
{
/* Reset PKA init structure parameters values */
PKA_InitStruct->Mode = LL_PKA_MODE_MONTGOMERY_PARAM_MOD_EXP;
}
/**
* @}
*/
/**
* @}
*/
/**
* @}
*/
#endif /* defined (PKA) */
/**
* @}
*/
#endif /* USE_FULL_LL_DRIVER */
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
the_stack_data/54825616.c | //Background converted using Mollusk's PAImageConverter
//This Background uses tilegfx3_Pal
int tilegfx3_Width = 1024;
int tilegfx3_Height = 32;
const unsigned short tilegfx3_Map[512] __attribute__ ((aligned (4))) = {
0, 0, 1, 2, 3, 4, 5, 6, 1030, 1029, 7, 2, 1, 8, 9, 10,
1034, 1033, 0, 0, 0, 0, 0, 0, 11, 12, 13, 14, 15, 16, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 17, 18, 19, 20, 21, 22, 1046, 1045, 23, 18, 17, 24, 25, 26,
1050, 1049, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
39, 40, 41, 42, 43, 44, 45, 44, 45, 46, 7, 2, 1, 2, 1, 47,
0, 0, 48, 49, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
52, 53, 54, 55, 0, 0, 0, 0, 0, 0, 56, 57, 58, 57, 58, 59,
60, 61, 62, 63, 64, 65, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
const unsigned char tilegfx3_Tiles[4224] __attribute__ ((aligned (4))) = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
1, 1, 1, 1, 2, 3, 4, 4, 1, 1, 1, 1, 5, 3, 6, 6,
6, 1, 5, 3, 3, 6, 2, 2, 7, 6, 3, 4, 6, 2, 2, 1,
4, 7, 4, 6, 5, 2, 1, 1, 4, 4, 4, 6, 6, 1, 1, 1,
4, 4, 6, 3, 1, 1, 1, 1, 4, 6, 6, 3, 1, 1, 1, 1,
5, 2, 1, 1, 1, 6, 1, 1, 2, 1, 1, 1, 1, 1, 5, 3,
3, 1, 1, 1, 5, 6, 7, 7, 1, 6, 1, 5, 5, 3, 4, 4,
1, 1, 6, 6, 6, 7, 4, 4, 1, 5, 5, 2, 5, 7, 4, 4,
1, 5, 6, 2, 6, 4, 4, 4, 5, 3, 2, 1, 1, 3, 6, 4,
7, 5, 5, 1, 1, 5, 5, 5, 1, 1, 2, 1, 2, 1, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2,
2, 1, 1, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 7, 7,
3, 2, 2, 1, 7, 7, 3, 3, 1, 3, 7, 7, 3, 3, 7, 7,
7, 7, 5, 5, 1, 1, 5, 3, 1, 2, 2, 1, 7, 7, 2, 1,
2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 1,
1, 2, 2, 2, 2, 2, 1, 1, 7, 2, 2, 2, 2, 1, 1, 7,
3, 7, 2, 1, 2, 7, 7, 3, 5, 3, 7, 7, 7, 3, 1, 1,
0, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 3, 7, 7, 2, 2,
0, 0, 3, 7, 2, 2, 2, 2, 0, 3, 7, 2, 2, 2, 2, 2,
0, 3, 1, 2, 2, 2, 2, 2, 3, 2, 2, 2, 1, 1, 2, 2,
3, 1, 2, 1, 7, 7, 1, 1, 8, 7, 7, 7, 3, 3, 7, 7,
7, 7, 5, 5, 1, 1, 5, 7, 1, 2, 2, 1, 7, 7, 2, 1,
2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 1,
2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 7,
7, 7, 2, 1, 2, 7, 7, 3, 5, 3, 7, 7, 7, 3, 3, 1,
8, 3, 1, 1, 2, 3, 4, 4, 8, 3, 1, 1, 5, 3, 6, 6,
8, 3, 5, 3, 3, 6, 2, 2, 8, 3, 3, 4, 6, 2, 2, 1,
8, 3, 4, 6, 5, 2, 1, 1, 8, 3, 4, 6, 6, 1, 1, 1,
8, 3, 6, 3, 1, 1, 1, 1, 8, 3, 6, 3, 1, 1, 1, 1,
5, 2, 1, 1, 1, 6, 3, 8, 2, 1, 1, 1, 1, 1, 3, 8,
3, 1, 1, 1, 5, 6, 3, 8, 1, 6, 1, 5, 5, 3, 3, 8,
1, 1, 6, 6, 6, 7, 3, 8, 1, 5, 5, 2, 5, 7, 3, 8,
1, 5, 6, 2, 6, 4, 3, 8, 5, 3, 2, 1, 1, 3, 3, 8,
0, 0, 2, 7, 7, 7, 7, 7, 0, 7, 1, 7, 2, 2, 5, 7,
7, 1, 2, 2, 1, 7, 7, 1, 1, 7, 2, 1, 7, 11, 9, 11,
1, 7, 2, 7, 9, 9, 2, 11, 3, 9, 1, 9, 11, 9, 10, 12,
3, 11, 7, 9, 9, 1, 12, 12, 21, 7, 12, 11, 11, 12, 9, 9,
7, 7, 7, 7, 7, 7, 7, 7, 2, 5, 2, 2, 1, 1, 1, 1,
1, 7, 7, 9, 10, 2, 9, 2, 1, 7, 7, 9, 9, 1, 12, 1,
7, 2, 9, 11, 11, 12, 12, 2, 1, 2, 11, 10, 1, 1, 9, 1,
7, 11, 9, 21, 9, 9, 10, 21, 12, 12, 21, 1, 21, 9, 21, 12,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 18, 19,
0, 0, 0, 0, 0, 5, 19, 18, 0, 0, 0, 0, 0, 25, 25, 5,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
5, 2, 1, 0, 0, 0, 0, 0, 5, 18, 5, 3, 0, 0, 0, 0,
22, 22, 19, 5, 0, 0, 0, 0, 22, 25, 5, 3, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 14, 5,
0, 0, 0, 0, 0, 13, 13, 14, 0, 0, 0, 0, 0, 20, 20, 2,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2, 2, 14, 0, 0, 0, 0, 0, 13, 14, 5, 20, 0, 0, 0, 0,
23, 23, 13, 5, 0, 0, 0, 0, 23, 20, 5, 13, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 15, 0, 0, 0, 0, 0, 0, 17, 15,
0, 0, 0, 0, 0, 15, 2, 17, 0, 0, 0, 0, 0, 16, 16, 15,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
16, 15, 17, 0, 0, 0, 0, 0, 15, 17, 2, 16, 0, 0, 0, 0,
24, 24, 15, 16, 0, 0, 0, 0, 24, 16, 17, 15, 0, 0, 0, 0,
6, 6, 2, 5, 6, 1, 5, 5, 3, 2, 1, 1, 3, 6, 5, 6,
2, 2, 1, 1, 1, 1, 3, 7, 1, 1, 1, 1, 1, 5, 7, 4,
3, 1, 1, 1, 5, 6, 7, 4, 2, 3, 1, 5, 6, 7, 4, 4,
5, 2, 3, 6, 7, 4, 4, 6, 5, 5, 2, 2, 3, 4, 4, 6,
6, 2, 1, 1, 1, 3, 6, 6, 1, 1, 1, 5, 5, 6, 2, 2,
3, 1, 1, 5, 3, 2, 1, 1, 4, 6, 5, 5, 6, 2, 1, 1,
4, 6, 6, 2, 1, 3, 1, 3, 6, 3, 2, 1, 1, 1, 6, 2,
6, 6, 1, 1, 1, 5, 2, 1, 6, 2, 1, 5, 5, 3, 1, 1,
1, 6, 3, 3, 3, 1, 5, 5, 3, 7, 4, 4, 7, 6, 5, 6,
7, 7, 4, 4, 4, 4, 3, 2, 4, 4, 4, 4, 4, 6, 2, 1,
3, 4, 4, 4, 6, 6, 1, 1, 2, 3, 4, 6, 6, 6, 1, 1,
5, 2, 3, 6, 6, 1, 1, 5, 5, 5, 2, 2, 3, 1, 1, 5,
6, 2, 3, 3, 3, 7, 7, 5, 1, 1, 1, 5, 5, 6, 7, 7,
3, 1, 1, 5, 3, 7, 4, 4, 1, 6, 5, 5, 6, 7, 4, 4,
1, 1, 6, 2, 1, 3, 6, 3, 1, 3, 2, 1, 1, 1, 6, 2,
5, 6, 1, 1, 1, 5, 2, 1, 6, 2, 1, 5, 5, 3, 1, 1,
8, 8, 3, 3, 3, 1, 3, 3, 8, 3, 4, 4, 7, 6, 5, 6,
8, 3, 4, 4, 4, 4, 3, 2, 8, 3, 4, 4, 4, 6, 2, 1,
8, 3, 4, 4, 6, 6, 1, 1, 8, 3, 4, 6, 6, 6, 1, 1,
8, 3, 3, 6, 6, 1, 1, 5, 8, 3, 2, 2, 3, 1, 1, 5,
3, 2, 3, 3, 3, 7, 7, 5, 1, 1, 1, 5, 5, 6, 7, 7,
3, 1, 1, 5, 3, 7, 4, 4, 1, 6, 5, 5, 6, 7, 4, 4,
1, 1, 6, 2, 1, 3, 6, 3, 1, 3, 2, 1, 1, 1, 6, 2,
5, 6, 1, 1, 1, 5, 2, 1, 6, 2, 1, 5, 5, 3, 1, 1,
8, 3, 2, 5, 6, 1, 5, 5, 8, 3, 1, 1, 3, 6, 5, 6,
8, 3, 1, 1, 1, 1, 3, 7, 8, 3, 1, 1, 1, 5, 7, 4,
8, 3, 1, 1, 5, 6, 7, 4, 8, 3, 1, 5, 6, 7, 4, 4,
8, 3, 3, 6, 7, 4, 4, 6, 8, 3, 2, 2, 3, 4, 4, 6,
6, 2, 1, 1, 1, 3, 3, 8, 1, 1, 1, 5, 5, 6, 3, 8,
3, 1, 1, 5, 3, 2, 3, 8, 4, 6, 5, 5, 6, 2, 3, 8,
4, 6, 6, 2, 1, 3, 3, 8, 6, 3, 2, 1, 1, 1, 3, 8,
6, 6, 1, 1, 1, 5, 3, 8, 6, 2, 1, 5, 5, 3, 3, 8,
21, 10, 9, 9, 12, 21, 21, 9, 21, 21, 11, 21, 3, 6, 21, 12,
8, 21, 9, 21, 1, 1, 3, 21, 8, 3, 21, 1, 1, 5, 7, 4,
8, 3, 1, 1, 5, 6, 7, 4, 8, 3, 1, 5, 6, 7, 4, 4,
8, 3, 3, 6, 7, 4, 4, 6, 8, 3, 2, 2, 3, 4, 4, 6,
21, 21, 1, 1, 12, 21, 12, 5, 21, 1, 1, 5, 5, 6, 2, 2,
3, 1, 1, 5, 3, 2, 1, 1, 4, 6, 5, 5, 6, 2, 1, 1,
4, 6, 6, 2, 1, 3, 1, 3, 6, 3, 2, 1, 1, 1, 6, 2,
6, 6, 1, 1, 1, 5, 2, 1, 6, 2, 1, 5, 5, 3, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
12, 0, 12, 0, 12, 0, 0, 0, 0, 11, 0, 0, 0, 0, 12, 0,
0, 12, 0, 12, 0, 12, 0, 0, 12, 21, 12, 21, 12, 21, 12, 12,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 12, 0, 0, 0, 0, 0, 12, 9, 0, 0, 12, 0, 0, 12, 0,
12, 0, 12, 12, 0, 12, 11, 0, 21, 12, 21, 12, 12, 21, 12, 12,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 12, 0, 12, 0, 0,
0, 0, 21, 12, 0, 0, 0, 12, 0, 0, 12, 0, 0, 12, 12, 0,
0, 0, 12, 0, 12, 0, 12, 0, 0, 12, 0, 0, 12, 0, 12, 21,
12, 21, 0, 12, 21, 12, 0, 12, 12, 21, 12, 21, 12, 21, 12, 12,
0, 12, 0, 0, 0, 0, 0, 0, 0, 12, 0, 0, 12, 0, 0, 0,
21, 0, 0, 12, 0, 0, 12, 0, 12, 0, 0, 12, 0, 0, 21, 0,
0, 12, 0, 12, 0, 0, 0, 12, 9, 0, 21, 12, 0, 12, 12, 0,
12, 0, 21, 12, 0, 21, 11, 0, 21, 12, 12, 21, 12, 12, 12, 12,
0, 0, 0, 0, 6, 1, 1, 6, 0, 0, 0, 1, 1, 4, 4, 1,
0, 0, 1, 26, 1, 1, 1, 27, 0, 1, 30, 1, 2, 1, 1, 30,
26, 30, 30, 1, 1, 21, 1, 31, 26, 1, 31, 21, 31, 27, 31, 31,
26, 31, 21, 21, 1, 27, 31, 9, 27, 21, 12, 12, 12, 21, 12, 12,
0, 0, 3, 3, 3, 0, 0, 0, 3, 3, 1, 1, 6, 3, 0, 0,
1, 5, 1, 1, 1, 5, 3, 0, 30, 1, 6, 1, 1, 5, 3, 0,
31, 1, 31, 6, 5, 27, 0, 0, 31, 1, 32, 26, 12, 30, 26, 0,
12, 1, 26, 30, 30, 12, 21, 26, 12, 12, 12, 21, 12, 12, 12, 21,
0, 0, 0, 0, 0, 0, 19, 18, 0, 0, 0, 12, 0, 0, 0, 5,
0, 0, 21, 12, 2, 28, 28, 0, 0, 0, 12, 0, 0, 29, 29, 29,
0, 0, 12, 0, 0, 0, 0, 28, 0, 12, 0, 0, 0, 12, 12, 28,
12, 21, 0, 12, 21, 12, 0, 29, 12, 21, 12, 21, 12, 21, 12, 12,
5, 5, 3, 0, 0, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0,
5, 12, 0, 0, 0, 0, 12, 0, 28, 28, 5, 28, 12, 0, 21, 0,
21, 5, 29, 5, 5, 0, 0, 12, 5, 0, 0, 12, 0, 12, 12, 0,
12, 0, 21, 12, 0, 21, 11, 0, 21, 12, 12, 21, 12, 12, 12, 12,
0, 0, 0, 0, 0, 0, 13, 14, 0, 0, 0, 12, 0, 0, 0, 20,
0, 0, 21, 2, 29, 28, 28, 0, 0, 0, 12, 0, 0, 29, 29, 29,
0, 0, 12, 0, 0, 0, 0, 28, 0, 12, 0, 0, 0, 12, 12, 28,
12, 21, 0, 12, 21, 12, 0, 29, 12, 21, 12, 21, 12, 21, 12, 12,
5, 13, 14, 0, 0, 0, 0, 0, 5, 13, 0, 0, 0, 0, 0, 0,
29, 12, 0, 0, 0, 0, 12, 0, 28, 5, 2, 28, 5, 0, 21, 0,
21, 29, 29, 29, 0, 0, 0, 12, 12, 0, 0, 12, 0, 12, 12, 0,
12, 2, 21, 12, 0, 21, 11, 0, 21, 12, 12, 21, 12, 12, 12, 12,
0, 0, 0, 0, 0, 0, 15, 17, 0, 0, 0, 12, 0, 0, 0, 2,
0, 0, 21, 12, 29, 28, 28, 0, 0, 0, 12, 0, 0, 2, 29, 29,
0, 0, 12, 0, 0, 0, 0, 28, 0, 12, 0, 0, 0, 12, 12, 28,
12, 21, 0, 12, 21, 12, 0, 29, 12, 21, 12, 21, 12, 21, 12, 12,
16, 2, 17, 0, 0, 0, 0, 0, 15, 15, 0, 0, 0, 0, 0, 0,
29, 12, 0, 0, 0, 0, 12, 0, 28, 2, 28, 2, 12, 0, 21, 0,
21, 29, 29, 29, 0, 0, 0, 12, 12, 0, 0, 12, 0, 12, 12, 0,
12, 0, 21, 12, 0, 21, 11, 0, 21, 12, 12, 21, 12, 12, 12, 12,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 36, 36, 36, 36, 0, 0, 36, 36, 34, 34, 34, 34, 36, 36,
37, 37, 37, 37, 38, 38, 39, 35, 33, 33, 40, 38, 37, 38, 38, 38,
33, 33, 33, 33, 40, 40, 40, 38, 33, 37, 37, 37, 37, 33, 37, 37,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 36, 36, 36, 0, 0, 0, 0, 36, 35, 35, 36, 36, 36, 36, 36,
35, 34, 34, 34, 34, 37, 37, 34, 38, 35, 35, 38, 35, 35, 35, 34,
38, 38, 38, 38, 37, 37, 37, 37, 37, 37, 37, 33, 37, 33, 33, 33,
33, 33, 33, 33, 33, 34, 33, 33, 33, 34, 35, 35, 33, 33, 33, 33,
33, 33, 33, 33, 33, 33, 37, 33, 33, 33, 33, 33, 33, 33, 33, 34,
33, 33, 33, 33, 34, 34, 34, 34, 33, 33, 34, 34, 35, 33, 34, 33,
34, 34, 35, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
33, 33, 33, 34, 34, 33, 33, 33, 33, 33, 33, 33, 33, 35, 33, 33,
33, 33, 33, 33, 33, 33, 33, 33, 34, 33, 33, 33, 33, 37, 35, 33,
34, 34, 34, 33, 35, 33, 33, 33, 33, 33, 35, 33, 33, 33, 33, 33,
33, 33, 33, 33, 33, 33, 34, 34, 37, 33, 33, 33, 33, 34, 33, 33,
8, 3, 1, 1, 2, 3, 4, 4, 8, 3, 1, 1, 5, 3, 6, 6,
8, 3, 5, 3, 3, 6, 2, 2, 8, 3, 3, 4, 6, 2, 2, 1,
8, 3, 4, 6, 5, 2, 1, 1, 8, 3, 4, 6, 6, 1, 1, 1,
8, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
5, 2, 1, 1, 1, 6, 1, 1, 2, 1, 1, 1, 1, 1, 5, 3,
3, 1, 1, 1, 5, 6, 7, 7, 1, 6, 1, 5, 5, 3, 4, 4,
1, 1, 6, 6, 6, 7, 4, 4, 1, 5, 5, 2, 5, 7, 4, 4,
3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
1, 1, 1, 1, 2, 3, 4, 4, 1, 1, 1, 1, 5, 3, 6, 6,
6, 1, 5, 3, 3, 6, 2, 2, 7, 6, 3, 4, 6, 2, 2, 1,
4, 7, 4, 6, 5, 2, 1, 1, 4, 4, 4, 6, 6, 1, 1, 1,
3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
5, 2, 1, 1, 1, 6, 3, 8, 2, 1, 1, 1, 1, 1, 3, 8,
3, 1, 1, 1, 5, 6, 3, 8, 1, 6, 1, 5, 5, 3, 3, 8,
1, 1, 6, 6, 6, 7, 3, 8, 1, 5, 5, 2, 5, 7, 3, 8,
3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8, 8,
5, 2, 1, 1, 1, 6, 1, 8, 2, 1, 1, 1, 1, 1, 5, 8,
3, 1, 1, 1, 5, 6, 7, 8, 1, 6, 1, 5, 5, 3, 4, 8,
1, 1, 6, 6, 6, 7, 4, 8, 1, 5, 5, 2, 5, 7, 4, 8,
1, 5, 6, 2, 6, 4, 4, 8, 5, 3, 2, 1, 1, 3, 6, 8,
0, 0, 0, 0, 26, 27, 27, 26, 0, 0, 0, 27, 31, 31, 31, 32,
0, 0, 27, 26, 31, 32, 32, 27, 0, 27, 30, 30, 32, 26, 27, 30,
26, 30, 30, 31, 31, 32, 30, 31, 26, 31, 31, 31, 31, 27, 31, 31,
26, 31, 31, 31, 32, 27, 31, 32, 27, 26, 32, 32, 32, 32, 26, 27,
26, 0, 0, 26, 26, 26, 27, 0, 27, 27, 26, 31, 31, 32, 30, 27,
32, 30, 27, 27, 32, 30, 31, 32, 30, 31, 31, 27, 26, 31, 31, 27,
31, 31, 31, 31, 27, 27, 27, 31, 31, 32, 32, 27, 32, 30, 31, 32,
32, 27, 26, 30, 30, 31, 31, 27, 26, 26, 27, 31, 31, 31, 27, 32,
0, 0, 26, 26, 26, 26, 26, 26, 0, 26, 30, 30, 31, 31, 31, 32,
26, 32, 31, 31, 31, 32, 32, 27, 27, 27, 32, 32, 32, 26, 27, 30,
32, 30, 27, 27, 31, 32, 30, 31, 30, 31, 31, 31, 31, 27, 31, 31,
31, 31, 31, 31, 32, 27, 31, 32, 27, 31, 31, 32, 32, 32, 26, 27,
0, 0, 27, 26, 26, 0, 0, 0, 27, 26, 32, 31, 31, 26, 0, 0,
32, 30, 27, 27, 32, 30, 26, 0, 30, 31, 31, 27, 26, 31, 26, 0,
31, 31, 31, 31, 27, 27, 0, 0, 31, 32, 32, 27, 32, 30, 26, 0,
32, 27, 26, 30, 30, 31, 31, 26, 26, 26, 27, 31, 31, 32, 32, 26,
37, 34, 34, 34, 37, 37, 37, 34, 37, 37, 37, 37, 37, 37, 37, 38,
33, 33, 33, 37, 37, 38, 38, 37, 33, 33, 37, 37, 37, 37, 34, 35,
33, 33, 33, 37, 37, 37, 37, 37, 33, 33, 33, 33, 33, 33, 33, 33,
37, 37, 37, 37, 37, 33, 33, 37, 34, 34, 34, 34, 37, 37, 37, 37,
34, 38, 38, 40, 40, 33, 33, 33, 38, 38, 38, 37, 37, 40, 33, 33,
35, 34, 35, 35, 35, 37, 37, 33, 35, 35, 35, 34, 34, 37, 37, 33,
40, 38, 37, 37, 37, 37, 33, 33, 33, 33, 33, 33, 33, 33, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 34, 37, 37, 37, 34, 34, 34,
33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
33, 33, 33, 33, 34, 34, 33, 33, 34, 34, 34, 34, 33, 33, 33, 33,
35, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 33, 33,
33, 33, 33, 33, 33, 35, 34, 34, 33, 33, 33, 33, 33, 33, 33, 34,
33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
35, 35, 33, 33, 33, 33, 33, 33, 33, 33, 33, 33, 34, 34, 34, 35,
33, 33, 34, 34, 33, 33, 33, 35, 33, 33, 33, 35, 33, 33, 33, 33,
33, 33, 33, 33, 33, 33, 35, 33, 34, 34, 33, 33, 33, 33, 33, 33,
8, 3, 2, 5, 6, 1, 5, 5, 8, 3, 1, 1, 3, 6, 5, 6,
8, 3, 1, 1, 1, 1, 3, 7, 8, 3, 1, 1, 1, 5, 7, 4,
8, 3, 1, 1, 5, 6, 7, 4, 8, 3, 1, 5, 6, 7, 4, 4,
8, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
6, 2, 1, 1, 1, 3, 6, 6, 1, 1, 1, 5, 5, 6, 2, 2,
3, 1, 1, 5, 3, 2, 1, 1, 4, 6, 5, 5, 6, 2, 1, 1,
4, 6, 6, 2, 1, 3, 1, 3, 6, 3, 2, 1, 1, 1, 6, 2,
3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
6, 6, 2, 5, 6, 1, 5, 5, 3, 2, 1, 1, 3, 6, 5, 6,
2, 2, 1, 1, 1, 1, 3, 7, 1, 1, 1, 1, 1, 5, 7, 4,
3, 1, 1, 1, 5, 6, 7, 4, 2, 3, 1, 5, 6, 7, 4, 4,
3, 3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8,
6, 2, 1, 1, 1, 3, 6, 8, 1, 1, 1, 5, 5, 6, 2, 8,
3, 1, 1, 5, 3, 2, 1, 8, 4, 6, 5, 5, 6, 2, 1, 8,
4, 6, 6, 2, 1, 3, 1, 8, 6, 3, 2, 1, 1, 1, 6, 8,
3, 3, 3, 3, 3, 3, 3, 8, 8, 8, 8, 8, 8, 8, 8, 8,
0, 0, 0, 0, 0, 0, 27, 26, 27, 26, 26, 27, 0, 26, 30, 30,
27, 30, 30, 31, 26, 32, 31, 31, 30, 31, 31, 31, 27, 30, 31, 31,
30, 31, 31, 31, 27, 31, 31, 31, 30, 31, 31, 27, 27, 26, 27, 32,
27, 31, 32, 30, 30, 31, 26, 26, 26, 27, 27, 31, 31, 31, 31, 32,
26, 26, 27, 0, 0, 26, 27, 0, 30, 31, 32, 26, 27, 30, 31, 27,
31, 31, 31, 26, 30, 31, 31, 31, 31, 32, 32, 27, 31, 31, 31, 32,
31, 32, 26, 30, 27, 31, 31, 32, 32, 27, 27, 30, 32, 26, 32, 27,
27, 26, 27, 31, 32, 26, 31, 31, 32, 27, 30, 31, 31, 32, 27, 32,
0, 26, 27, 31, 27, 27, 27, 30, 0, 26, 31, 27, 31, 32, 30, 31,
26, 30, 30, 32, 27, 32, 31, 31, 26, 30, 30, 32, 27, 30, 31, 31,
26, 30, 31, 26, 27, 31, 31, 31, 0, 26, 26, 30, 30, 26, 27, 32,
26, 26, 30, 31, 31, 31, 26, 26, 26, 27, 31, 31, 31, 32, 31, 32,
30, 32, 27, 31, 31, 27, 30, 31, 31, 31, 32, 26, 27, 30, 31, 31,
31, 31, 31, 26, 30, 31, 31, 31, 31, 32, 32, 27, 31, 31, 31, 31,
31, 32, 26, 30, 27, 31, 31, 32, 32, 27, 27, 30, 32, 26, 32, 27,
27, 26, 27, 31, 32, 26, 31, 31, 32, 27, 30, 31, 31, 32, 27, 32,
27, 26, 27, 31, 27, 27, 27, 30, 30, 30, 31, 27, 31, 32, 30, 31,
31, 31, 27, 32, 27, 32, 31, 31, 31, 32, 30, 31, 27, 30, 31, 31,
32, 30, 31, 31, 27, 31, 31, 31, 30, 31, 31, 27, 27, 26, 27, 32,
27, 31, 32, 30, 30, 31, 26, 26, 26, 27, 27, 31, 31, 31, 31, 32,
30, 32, 27, 31, 32, 27, 26, 31, 31, 31, 32, 26, 27, 30, 31, 26,
31, 31, 31, 26, 30, 31, 31, 26, 31, 32, 32, 27, 31, 31, 32, 26,
31, 32, 26, 30, 27, 32, 32, 26, 32, 27, 27, 30, 32, 26, 26, 0,
27, 26, 27, 31, 31, 32, 32, 26, 32, 27, 30, 31, 31, 31, 32, 26
};
|
the_stack_data/29824494.c | #include<stdio.h>
#include<string.h>
int next[100];
void get_next(char s[],int next[])
{
int i=1,j=0;
next[1]=0;
while(i<strlen(s))
if(j==0||s[i]==s[j])
{
++i;++j;
next[i]=j;
}
else j=next[j];
}
int index_KMP(char p[],char m[],int pos)
{
int i=pos,j=1;
while(i<=strlen(p) && j<=strlen(m)){
if(j==0 || p[i-1]==m[j-1])
{++i,++j;}
else j=next[j];
}
if(j>strlen(m)) return i-strlen(m);
else return -1;
}
int main()
{
char p[100],m[100];
printf("pattern string:\n");
scanf("%s",p);
printf("match string:\n");
scanf("%s",m);
get_next(m,next);
printf("the next value is\n");
for(int i=1;i<=strlen(m);i++)
printf("%d ",next[i]);
printf("\n");
printf("%d\n",index_KMP(p,m,1));
return 0;
}
|
the_stack_data/969110.c |
// BUILD: mkdir -p $BUILD_DIR/fallback
// BUILD: $CC foo.c -dynamiclib -o $TEMP_DIR/libfoo.dylib -install_name $RUN_DIR/libfoo.dylib -DVALUE=1
// BUILD: $CC foo.c -dynamiclib -o $BUILD_DIR/fallback/libfoo.dylib -install_name $RUN_DIR/libfoo.dylib -DVALUE=42
// BUILD: $CC main.c -o $BUILD_DIR/main.exe $TEMP_DIR/libfoo.dylib
// BUILD: $DYLD_ENV_VARS_ENABLE $BUILD_DIR/main.exe
// RUN: DYLD_FALLBACK_LIBRARY_PATH=$RUN_DIR/fallback/ ./main.exe
#include <stdio.h>
extern int foo();
int main()
{
printf("[BEGIN] env-DYLD_FALLBACK_LIBRARY_PATH\n");
if ( foo() == 42 )
printf("[PASS] env-DYLD_FALLBACK_LIBRARY_PATH\n");
else
printf("[FAIL] env-DYLD_FALLBACK_LIBRARY_PATH\n");
return 0;
}
|
the_stack_data/72014095.c | #include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
int *p1, *p2;
void func0 () {
p1 = NULL;
p2 = NULL;
func1(p1);
func2(&p2);
}
void func1 (int *f) {
if (f != NULL) {
*f = 5;
}
}
void func2 (int **f) {
if (*f != NULL) {
**f = 5;
}
}
int main() {
pthread_t thr0, thr1, thr2;
pthread_create (&thr0, (void *)0, &func0, (void *)0);
//pthread_create (&thr1, (void *)0, &func1, (void *)0);
//pthread_create (&thr2, (void *)0, &func2, (void *)0);
return 0;
}
|
the_stack_data/70450661.c | #include <stdio.h>
int main()
{
int matriz[5][5], i, j, soma=0;;
printf("Digite 25 nros inteiros\n");
i = 0;
while(i < 5){
j = 0;
while(j < 5){
scanf("%d",&matriz[i][j]);
soma = matriz[i][j] + soma;
j++;
}
i++;
}
printf("Soma dos valores: %d",soma);
}
|
the_stack_data/2249.c | /* Getopt for GNU.
NOTE: getopt is now part of the C library, so if you don't know what
"Keep this file name-space clean" means, talk to [email protected]
before changing it!
Copyright (C) 1987, 88, 89, 90, 91, 92, 93, 94
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, 675 Mass Ave, Cambridge, MA 02139, USA. */
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
Ditto for AIX 3.2 and <stdlib.h>. */
#ifndef _NO_PROTO
#define _NO_PROTO
#endif
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifndef __STDC__
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#ifndef const
#define const
#endif
#endif
#include <stdio.h>
/* Comment out all this code if we are using the GNU C Library, and are not
actually compiling the library itself. This code is part of the GNU C
Library, but also included in many other GNU distributions. Compiling
and linking in this code is a waste when using the GNU C library
(especially if it is a shared library). Rather than having every GNU
program understand `configure --with-gnu-libc' and omit the object files,
it is simpler to just do this in the source for each such file. */
#if defined (_LIBC) || !defined (__GNU_LIBRARY__)
/* This needs to come after some library #include
to get __GNU_LIBRARY__ defined. */
#ifdef __GNU_LIBRARY__
/* Don't include stdlib.h for non-GNU C libraries because some of them
contain conflicting prototypes for getopt. */
#include <stdlib.h>
#endif /* GNU C library. */
/* This version of `getopt' appears to the caller like standard Unix `getopt'
but it behaves differently for the user, since it allows the user
to intersperse the options with the other arguments.
As `getopt' works, it permutes the elements of ARGV so that,
when it is done, all the options precede everything else. Thus
all application programs are extended to handle flexible argument order.
Setting the environment variable POSIXLY_CORRECT disables permutation.
Then the behavior is completely standard.
GNU application programs can use a third alternative mode in which
they can distinguish the relative order of options and other arguments. */
#include "getopt.h"
/* For communication from `getopt' to the caller.
When `getopt' finds an option that takes an argument,
the argument value is returned here.
Also, when `ordering' is RETURN_IN_ORDER,
each non-option ARGV-element is returned here. */
char *optarg = NULL;
/* Index in ARGV of the next element to be scanned.
This is used for communication to and from the caller
and for communication between successive calls to `getopt'.
On entry to `getopt', zero means this is the first call; initialize.
When `getopt' returns EOF, this is the index of the first of the
non-option elements that the caller should itself scan.
Otherwise, `optind' communicates from one call to the next
how much of ARGV has been scanned so far. */
/* XXX 1003.2 says this must be 1 before any call. */
int optind = 0;
/* The next char to be scanned in the option-element
in which the last option character we returned was found.
This allows us to pick up the scan where we left off.
If this is zero, or a null string, it means resume the scan
by advancing to the next ARGV-element. */
static char *nextchar;
/* Callers store zero here to inhibit the error message
for unrecognized options. */
int opterr = 1;
/* Set to an option character which was unrecognized.
This must be initialized on some systems to avoid linking in the
system's own getopt implementation. */
int optopt = '?';
/* Describe how to deal with options that follow non-option ARGV-elements.
If the caller did not specify anything,
the default is REQUIRE_ORDER if the environment variable
POSIXLY_CORRECT is defined, PERMUTE otherwise.
REQUIRE_ORDER means don't recognize them as options;
stop option processing when the first non-option is seen.
This is what Unix does.
This mode of operation is selected by either setting the environment
variable POSIXLY_CORRECT, or using `+' as the first character
of the list of option characters.
PERMUTE is the default. We permute the contents of ARGV as we scan,
so that eventually all the non-options are at the end. This allows options
to be given in any order, even with programs that were not written to
expect this.
RETURN_IN_ORDER is an option available to programs that were written
to expect options and other ARGV-elements in any order and that care about
the ordering of the two. We describe each non-option ARGV-element
as if it were the argument of an option with character code 1.
Using `-' as the first character of the list of option characters
selects this mode of operation.
The special argument `--' forces an end of option-scanning regardless
of the value of `ordering'. In the case of RETURN_IN_ORDER, only
`--' can cause `getopt' to return EOF with `optind' != ARGC. */
static enum
{
REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
} ordering;
/* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct;
#ifdef __GNU_LIBRARY__
/* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble.
On some systems, it contains special magic macros that don't work
in GCC. */
#include <string.h>
#define my_index strchr
#else
/* Avoid depending on library functions or files
whose names are inconsistent. */
char *getenv ();
static char *
my_index (str, chr)
const char *str;
int chr;
{
while (*str)
{
if (*str == chr)
return (char *) str;
str++;
}
return 0;
}
/* If using GCC, we can safely declare strlen this way.
If not using GCC, it is ok not to declare it. */
#ifdef __GNUC__
/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
That was relevant to code that was here before. */
#ifndef __STDC__
/* gcc with -traditional declares the built-in strlen to return int,
and has done so at least since version 2.4.5. -- rms. */
extern int strlen (const char *);
#endif /* not __STDC__ */
#endif /* __GNUC__ */
#endif /* not __GNU_LIBRARY__ */
/* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have
been skipped. `first_nonopt' is the index in ARGV of the first of them;
`last_nonopt' is the index after the last of them. */
static int first_nonopt;
static int last_nonopt;
/* Exchange two adjacent subsequences of ARGV.
One subsequence is elements [first_nonopt,last_nonopt)
which contains all the non-options that have been skipped so far.
The other is elements [last_nonopt,optind), which contains all
the options processed since those non-options were skipped.
`first_nonopt' and `last_nonopt' are relocated so that they describe
the new indices of the non-options in ARGV after they are moved. */
static void
exchange (argv)
char **argv;
{
int bottom = first_nonopt;
int middle = last_nonopt;
int top = optind;
char *tem;
/* Exchange the shorter segment with the far end of the longer segment.
That puts the shorter segment into the right place.
It leaves the longer segment in the right place overall,
but it consists of two parts that need to be swapped next. */
while (top > middle && middle > bottom)
{
if (top - middle > middle - bottom)
{
/* Bottom segment is the short one. */
int len = middle - bottom;
register int i;
/* Swap it with the top part of the top segment. */
for (i = 0; i < len; i++)
{
tem = argv[bottom + i];
argv[bottom + i] = argv[top - (middle - bottom) + i];
argv[top - (middle - bottom) + i] = tem;
}
/* Exclude the moved bottom segment from further swapping. */
top -= len;
}
else
{
/* Top segment is the short one. */
int len = top - middle;
register int i;
/* Swap it with the bottom part of the bottom segment. */
for (i = 0; i < len; i++)
{
tem = argv[bottom + i];
argv[bottom + i] = argv[middle + i];
argv[middle + i] = tem;
}
/* Exclude the moved top segment from further swapping. */
bottom += len;
}
}
/* Update records for the slots the non-options now occupy. */
first_nonopt += (optind - last_nonopt);
last_nonopt = optind;
}
/* Initialize the internal data when the first call is made. */
static const char *
_getopt_initialize (optstring)
const char *optstring;
{
/* Start processing options with ARGV-element 1 (since ARGV-element 0
is the program name); the sequence of previously skipped
non-option ARGV-elements is empty. */
first_nonopt = last_nonopt = optind = 1;
nextchar = NULL;
posixly_correct = getenv ("POSIXLY_CORRECT");
/* Determine how to handle the ordering of options and nonoptions. */
if (optstring[0] == '-')
{
ordering = RETURN_IN_ORDER;
++optstring;
}
else if (optstring[0] == '+')
{
ordering = REQUIRE_ORDER;
++optstring;
}
else if (posixly_correct != NULL)
ordering = REQUIRE_ORDER;
else
ordering = PERMUTE;
return optstring;
}
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
If an element of ARGV starts with '-', and is not exactly "-" or "--",
then it is an option element. The characters of this element
(aside from the initial '-') are option characters. If `getopt'
is called repeatedly, it returns successively each of the option characters
from each of the option elements.
If `getopt' finds another option character, it returns that character,
updating `optind' and `nextchar' so that the next call to `getopt' can
resume the scan with the following option character or ARGV-element.
If there are no more option characters, `getopt' returns `EOF'.
Then `optind' is the index in ARGV of the first ARGV-element
that is not an option. (The ARGV-elements have been permuted
so that those that are not options now come last.)
OPTSTRING is a string containing the legitimate option characters.
If an option character is seen that is not listed in OPTSTRING,
return '?' after printing an error message. If you set `opterr' to
zero, the error message is suppressed but we still return '?'.
If a char in OPTSTRING is followed by a colon, that means it wants an arg,
so the following text in the same ARGV-element, or the text of the following
ARGV-element, is returned in `optarg'. Two colons mean an option that
wants an optional arg; if there is text in the current ARGV-element,
it is returned in `optarg', otherwise `optarg' is set to zero.
If OPTSTRING starts with `-' or `+', it requests different methods of
handling the non-option ARGV-elements.
See the comments about RETURN_IN_ORDER and REQUIRE_ORDER, above.
Long-named options begin with `--' instead of `-'.
Their names may be abbreviated as long as the abbreviation is unique
or is an exact match for some defined option. If they have an
argument, it follows the option name in the same ARGV-element, separated
from the option name by a `=', or else the in next ARGV-element.
When `getopt' finds a long-named option, it returns 0 if that option's
`flag' field is nonzero, the value of the option's `val' field
if the `flag' field is zero.
The elements of ARGV aren't really const, because we permute them.
But we pretend they're const in the prototype to be compatible
with other systems.
LONGOPTS is a vector of `struct option' terminated by an
element containing a name which is zero.
LONGIND returns the index in LONGOPT of the long-named option found.
It is only valid when a long-named option has been found by the most
recent call.
If LONG_ONLY is nonzero, '-' as well as '--' can introduce
long-named options. */
int
_getopt_internal (argc, argv, optstring, longopts, longind, long_only)
int argc;
char *const *argv;
const char *optstring;
const struct option *longopts;
int *longind;
int long_only;
{
optarg = NULL;
if (optind == 0)
optstring = _getopt_initialize (optstring);
if (nextchar == NULL || *nextchar == '\0')
{
/* Advance to the next ARGV-element. */
if (ordering == PERMUTE)
{
/* If we have just processed some options following some non-options,
exchange them so that the options come first. */
if (first_nonopt != last_nonopt && last_nonopt != optind)
exchange ((char **) argv);
else if (last_nonopt != optind)
first_nonopt = optind;
/* Skip any additional non-options
and extend the range of non-options previously skipped. */
while (optind < argc
&& (argv[optind][0] != '-' || argv[optind][1] == '\0'))
optind++;
last_nonopt = optind;
}
/* The special ARGV-element `--' means premature end of options.
Skip it like a null option,
then exchange with previous non-options as if it were an option,
then skip everything else like a non-option. */
if (optind != argc && !strcmp (argv[optind], "--"))
{
optind++;
if (first_nonopt != last_nonopt && last_nonopt != optind)
exchange ((char **) argv);
else if (first_nonopt == last_nonopt)
first_nonopt = optind;
last_nonopt = argc;
optind = argc;
}
/* If we have done all the ARGV-elements, stop the scan
and back over any non-options that we skipped and permuted. */
if (optind == argc)
{
/* Set the next-arg-index to point at the non-options
that we previously skipped, so the caller will digest them. */
if (first_nonopt != last_nonopt)
optind = first_nonopt;
return EOF;
}
/* If we have come to a non-option and did not permute it,
either stop the scan or describe it to the caller and pass it by. */
if ((argv[optind][0] != '-' || argv[optind][1] == '\0'))
{
if (ordering == REQUIRE_ORDER)
return EOF;
optarg = argv[optind++];
return 1;
}
/* We have found another option-ARGV-element.
Skip the initial punctuation. */
nextchar = (argv[optind] + 1
+ (longopts != NULL && argv[optind][1] == '-'));
}
/* Decode the current option-ARGV-element. */
/* Check whether the ARGV-element is a long option.
If long_only and the ARGV-element has the form "-f", where f is
a valid short option, don't consider it an abbreviated form of
a long option that starts with f. Otherwise there would be no
way to give the -f short option.
On the other hand, if there's a long option "fubar" and
the ARGV-element is "-fu", do consider that an abbreviation of
the long option, just like "--fu", and not "-f" with arg "u".
This distinction seems to be the most useful approach. */
if (longopts != NULL
&& (argv[optind][1] == '-'
|| (long_only && (argv[optind][2] || !my_index (optstring, argv[optind][1])))))
{
char *nameend;
const struct option *p;
const struct option *pfound = NULL;
int exact = 0;
int ambig = 0;
int indfound;
int option_index;
for (nameend = nextchar; *nameend && *nameend != '='; nameend++)
/* Do nothing. */ ;
/* Test all long options for either exact match
or abbreviated matches. */
for (p = longopts, option_index = 0; p->name; p++, option_index++)
if (!strncmp (p->name, nextchar, nameend - nextchar))
{
if (nameend - nextchar == strlen (p->name))
{
/* Exact match found. */
pfound = p;
indfound = option_index;
exact = 1;
break;
}
else if (pfound == NULL)
{
/* First nonexact match found. */
pfound = p;
indfound = option_index;
}
else
/* Second or later nonexact match found. */
ambig = 1;
}
if (ambig && !exact)
{
if (opterr)
fprintf (stderr, "%s: option `%s' is ambiguous\n",
argv[0], argv[optind]);
nextchar += strlen (nextchar);
optind++;
return '?';
}
if (pfound != NULL)
{
option_index = indfound;
optind++;
if (*nameend)
{
/* Don't test has_arg with >, because some C compilers don't
allow it to be used on enums. */
if (pfound->has_arg)
optarg = nameend + 1;
else
{
if (opterr)
{
if (argv[optind - 1][1] == '-')
/* --option */
fprintf (stderr,
"%s: option `--%s' doesn't allow an argument\n",
argv[0], pfound->name);
else
/* +option or -option */
fprintf (stderr,
"%s: option `%c%s' doesn't allow an argument\n",
argv[0], argv[optind - 1][0], pfound->name);
}
nextchar += strlen (nextchar);
return '?';
}
}
else if (pfound->has_arg == 1)
{
if (optind < argc)
optarg = argv[optind++];
else
{
if (opterr)
fprintf (stderr, "%s: option `%s' requires an argument\n",
argv[0], argv[optind - 1]);
nextchar += strlen (nextchar);
return optstring[0] == ':' ? ':' : '?';
}
}
nextchar += strlen (nextchar);
if (longind != NULL)
*longind = option_index;
if (pfound->flag)
{
*(pfound->flag) = pfound->val;
return 0;
}
return pfound->val;
}
/* Can't find it as a long option. If this is not getopt_long_only,
or the option starts with '--' or is not a valid short
option, then it's an error.
Otherwise interpret it as a short option. */
if (!long_only || argv[optind][1] == '-'
|| my_index (optstring, *nextchar) == NULL)
{
if (opterr)
{
if (argv[optind][1] == '-')
/* --option */
fprintf (stderr, "%s: unrecognized option `--%s'\n",
argv[0], nextchar);
else
/* +option or -option */
fprintf (stderr, "%s: unrecognized option `%c%s'\n",
argv[0], argv[optind][0], nextchar);
}
nextchar = (char *) "";
optind++;
return '?';
}
}
/* Look at and handle the next short option-character. */
{
char c = *nextchar++;
char *temp = my_index (optstring, c);
/* Increment `optind' when we start to process its last character. */
if (*nextchar == '\0')
++optind;
if (temp == NULL || c == ':')
{
if (opterr)
{
if (posixly_correct)
/* 1003.2 specifies the format of this message. */
fprintf (stderr, "%s: illegal option -- %c\n", argv[0], c);
else
fprintf (stderr, "%s: invalid option -- %c\n", argv[0], c);
}
optopt = c;
return '?';
}
if (temp[1] == ':')
{
if (temp[2] == ':')
{
/* This is an option that accepts an argument optionally. */
if (*nextchar != '\0')
{
optarg = nextchar;
optind++;
}
else
optarg = NULL;
nextchar = NULL;
}
else
{
/* This is an option that requires an argument. */
if (*nextchar != '\0')
{
optarg = nextchar;
/* If we end this ARGV-element by taking the rest as an arg,
we must advance to the next element now. */
optind++;
}
else if (optind == argc)
{
if (opterr)
{
/* 1003.2 specifies the format of this message. */
fprintf (stderr, "%s: option requires an argument -- %c\n",
argv[0], c);
}
optopt = c;
if (optstring[0] == ':')
c = ':';
else
c = '?';
}
else
/* We already incremented `optind' once;
increment it again when taking next ARGV-elt as argument. */
optarg = argv[optind++];
nextchar = NULL;
}
}
return c;
}
}
int
getopt (argc, argv, optstring)
int argc;
char *const *argv;
const char *optstring;
{
return _getopt_internal (argc, argv, optstring,
(const struct option *) 0,
(int *) 0,
0);
}
#endif /* _LIBC or not __GNU_LIBRARY__. */
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing
the above definition of `getopt'. */
int
main (argc, argv)
int argc;
char **argv;
{
int c;
int digit_optind = 0;
while (1)
{
int this_option_optind = optind ? optind : 1;
c = getopt (argc, argv, "abc:d:0123456789");
if (c == EOF)
break;
switch (c)
{
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
if (digit_optind != 0 && digit_optind != this_option_optind)
printf ("digits occur in two different argv-elements.\n");
digit_optind = this_option_optind;
printf ("option %c\n", c);
break;
case 'a':
printf ("option a\n");
break;
case 'b':
printf ("option b\n");
break;
case 'c':
printf ("option c with value `%s'\n", optarg);
break;
case '?':
break;
default:
printf ("?? getopt returned character code 0%o ??\n", c);
}
}
if (optind < argc)
{
printf ("non-option ARGV-elements: ");
while (optind < argc)
printf ("%s ", argv[optind++]);
printf ("\n");
}
exit (0);
}
#endif /* TEST */
|
the_stack_data/533495.c | #ifdef _MSC_VER
#include <stdio.h>
#include <sys/locking.h>
#include <errno.h>
#include <io.h>
void
lockdss_(int *ihandle, int *mode, int *position, int *nbytes, int *istat)
{
long lbytes;
long lposition;
long int newPosition;
/* extern char *sys_errlist[];
extern int errno; */
lbytes = (long)*nbytes;
lposition = (long)*position;
newPosition = _lseek(*ihandle, lposition, SEEK_SET);
if (newPosition < 0) {
*istat = -1;
return;
}
/* Unlock the record */
if (*mode == 0) {
*istat = _locking(*ihandle, _LK_UNLCK, lbytes);
}
/* Lock the record. If already locked, wait until available */
else if (*mode == 1) {
*istat = _locking(*ihandle, _LK_LOCK, lbytes);
}
/* Lock the record. If already locked, return with istat != 0 */
else if (*mode == 2) {
*istat = _locking(*ihandle, _LK_NBLCK, lbytes);
}
/* Test to see if the record is already locked */
else if (*mode == 3) {
*istat = _locking(*ihandle, _LK_NBLCK, lbytes);
if (*istat == 0) {
_locking(*ihandle, _LK_UNLCK, lbytes);
}
}
/*if (*istat == -1) perror ("\nError: Lock Failed: %s\n"); */
}
#else
#if defined(__linux__)
#define _LARGEFILE64_SOURCE
#endif
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <fcntl.h>
#include <stdint.h>
#define UNLOCK 0
#define LOCK_WAIT 1
#define LOCK_NOWAIT 2
#define TEST_LOCK 3
void lockdss_(int *ihandle, int *mode, int *position, int *nbytes, int *istat)
{
off64_t lbytes;
off64_t lposition;
long newPosition;
/* extern char *sys_errlist[];
extern int errno; */
lbytes = (off64_t)*nbytes;
lposition = (off64_t)*position;
newPosition = lseek64(*ihandle, lposition, SEEK_SET);
if (newPosition < 0) {
*istat = -1;
return;
}
switch (*mode) {
case UNLOCK:
*istat = lockf64(*ihandle, F_ULOCK, lbytes);
break;
case LOCK_WAIT:
*istat = lockf64(*ihandle, F_LOCK, lbytes);
if (*istat) printf("\nError: Lock Failed:\n");
break;
case LOCK_NOWAIT:
*istat = lockf64(*ihandle, F_TLOCK, lbytes);
break;
case TEST_LOCK:
*istat = lockf64(*ihandle, F_TEST, lbytes);
break;
default:
printf("\nInvalid lock mode: %d\n", *mode);
*istat = -1;
}
}
#endif
|
the_stack_data/860165.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdup.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anowak <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/09/04 17:36:04 by anowak #+# #+# */
/* Updated: 2014/09/08 14:09:35 by anowak ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
char *ft_strdup(char *src)
{
char *dest;
int x;
x = 0;
while (src[x])
x++;
dest = (char *)malloc (sizeof(*dest) * x);
x = 0;
while (src[x])
{
dest[x] = src[x];
x++;
}
dest[x] = '\0';
return (dest);
}
|
the_stack_data/57950366.c | /* Test file for multiple mpfr.h inclusion and va_list related functions
Copyright 2011, 2012, 2013 Free Software Foundation, Inc.
Contributed by the AriC and Caramel projects, INRIA.
This file is part of the GNU MPFR Library.
The GNU MPFR Library is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
The GNU MPFR Library is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.
You should have received a copy of the GNU Lesser General Public License
along with the GNU MPFR Library; see the file COPYING.LESSER. If not, see
http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */
#if HAVE_STDARG
#if _MPFR_EXP_FORMAT == 4
/* If mpfr_exp_t is defined as intmax_t, intmax_t must be defined before
the inclusion of mpfr.h (this test doesn't use mpfr-impl.h). */
# include <stdint.h>
#endif
/* Assume that this is in fact a header inclusion for some library
that uses MPFR, i.e. this inclusion is hidden in another one.
MPFR currently (rev 6704) fails to handle this case. */
#include <mpfr.h>
#include <stdarg.h>
#define MPFR_USE_VA_LIST /* necessary due to GMP bug concerning inclusions */
#include <mpfr.h>
#include <stdio.h>
#define MPFR_USE_FILE /* necessary due to GMP bug concerning inclusions */
#include <mpfr.h>
static void
test (FILE *fout, const char *fmt, ...)
{
int (*fct) (FILE*, __gmp_const char*, va_list);
fct = mpfr_vfprintf;
if (0)
{
va_list ap;
va_start (ap, fmt);
fct (fout, fmt, ap);
va_end (ap);
}
}
int
main (void)
{
test (stdout, "%d\n", 0);
return 0;
}
#else /* HAVE_STDARG */
/* The test is disabled. */
int
main (void)
{
return 77;
}
#endif /* HAVE_STDARG */
|
the_stack_data/82002.c | /*20153292 JeongHyeonjin*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#define NUM_THREADS 3
pthread_key_t tsd_key;
typedef struct tsd_data{
int thread;
int key_data;
}tsd_data;
void *tsd_thread(void *arg){
tsd_data *data=(tsd_data *)arg;
tsd_data *result;
int status;
status=pthread_setspecific(tsd_key,data);
if(status!=0){
fprintf(stderr,"Set tsd key: %d",status);
exit(1);
}
result=(tsd_data *)pthread_getspecific(tsd_key);
printf("Thread %d: key_data is %d\n",result->thread, result->key_data);
return arg;
}
int main(int argc, char *argv[]){
pthread_t tid[NUM_THREADS];
int i;
tsd_data data[NUM_THREADS];
void *result;
int status;
if(argc<4){
fprintf(stderr,"Usage: tsdthread number1 number2 number3\n");
exit(1);
}
for(int i=0;i<NUM_THREADS;i++){
data[i].thread=i;
data[i].key_data=atoi(argv[i+1]);
}
status=pthread_key_create(&tsd_key,NULL);
if(status!=0){
fprintf(stderr,"Create key: %d",status);
exit(1);
}
for(i=0;i<NUM_THREADS;i++){
status=pthread_create(&tid[i],NULL,tsd_thread,(void *)&data[i]);
if(status!=0){
fprintf(stderr,"Create thread %d: %d",i,status);
exit(1);
}
}
for(i=0;i<NUM_THREADS;i++){
status=pthread_join(tid[i],&result);
if(status!=0){
fprintf(stderr,"Join thread %d: %d",i,status);
exit(1);
}
}
status=pthread_key_delete (tsd_key);
if(status!=0){
perror("Destroy key");
}
pthread_exit(result);
}
|
the_stack_data/51700945.c | #include <unistd.h>
#include <linux/futex.h>
#include <sys/syscall.h>
#include <stdatomic.h>
static int sysfutex(int *uaddr, int futex_op, int val, const struct timespec *timeout, int *uaddr2,
int val3)
{
return syscall(SYS_futex, uaddr, futex_op, val, timeout, uaddr2, val3);
}
int futex_wait(_Atomic int *uaddr, const struct timespec *timeout)
{
return sysfutex((int *)uaddr, FUTEX_WAIT | FUTEX_PRIVATE_FLAG, 1, timeout, NULL, 0);
}
int futex_wake(_Atomic int *uaddr)
{
return sysfutex((int *)uaddr, FUTEX_WAKE | FUTEX_PRIVATE_FLAG, 1, NULL, NULL, 0);
}
|
the_stack_data/37638891.c | #include <stdint.h>
extern
void swap4 (uint64_t x[4], uint64_t y[4], uint64_t swap, uint64_t sb);
#include <stdio.h>
int
main(void)
{
uint64_t str[8] = { 1, 2, 3, 4, 5, 6, 7, 8 };
uint64_t s;
if (scanf("%llu", &s) != 1) return -1;
swap4(str, str + 4, s & 1, 0);
for (unsigned i = 0; i < 8; ++i) {
printf("%llu%s", str[i], i == 7 ? ".\n" : " ");
}
return 0;
}
|
the_stack_data/64199804.c | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<threads.h>
int print_thread(void* str){
for (size_t i = 0; i < 10000; i++)
{
/* code */
}
printf("%s \n",(char*)str);
return EXIT_SUCCESS;
}
int main(void) {
char* str = {"this is lin eo apl in line"};
char* str1 = {"bufferdeadf"};
char* str2 = {"this monthe of end"};
char* str3 = {"julyde idnaidfad"};
int res[4] = {0};
thrd_t threads[4];
thrd_create(&threads[0],print_thread,str);
thrd_create(&threads[1],print_thread,str);
thrd_create(&threads[2],print_thread,str);
thrd_create(&threads[3],print_thread,str);
thrd_join(threads[0], &res[0]);
thrd_join(threads[1], &res[1]);
thrd_join(threads[2], &res[2]);
thrd_join(threads[3], &res[3]);
return EXIT_SUCCESS;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.