file
stringlengths 18
26
| data
stringlengths 3
1.04M
|
---|---|
the_stack_data/57951483.c
|
#include <stdio.h>
int main() {
printf("Smallest of 3 Numbers \n");
printf("Ternary/Conditional Operator \n");
printf("\n");
int num1, num2, num3;
printf("Num1 = ");
scanf("%d", &num1);
printf("Num2 = ");
scanf("%d", &num2);
printf("Num3 = ");
scanf("%d", &num3);
printf("\n");
printf("Smallest Number = %d \n", ((num1<num2) ? num1 : num2)<num3 ? ((num1<num2) ? num1 : num2) : num3);
printf("\n");
return 0;
}
|
the_stack_data/755664.c
|
/* 2. Napisz program wyświetlający poniższą szachownicę:
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
* * * * * * * *
*/
#include <stdio.h>
#include <math.h>
void znak(int x, int y)
{
for (x = 1; x <= 8; x++)
{
for (y = 1; y <= 8; y++)
{
if (x % 2 != 0)
{
printf("* ");
}
else
{
printf(" *");
}
}
printf("\n");
}
}
int main()
{
int x, y;
znak(x,y);
}
|
the_stack_data/515436.c
|
#include <stdio.h>
extern int foo2();
int
foo1()
{
return 0;
}
int
bar1()
{
return 0;
}
int
main()
{
return 0;
}
|
the_stack_data/179830491.c
|
#include <stdio.h>
#include <stdlib.h>
int Factorial(int input);
int main()
{
//Variable declaration
int n;
//Read data from user
printf("Enter any number:");
scanf("%d", &n);
//print the result
printf("Factorial of %d is %d", n, Factorial(n));
return 0;
}
int Factorial(int input)
{
if(input == 0)
return 1;
else
return input*Factorial(input-1);
}
|
the_stack_data/53292.c
|
//.
// Created by zyx on 2021/9/4.
//
#include "stdio.h"
#define MAXLINE 1000
extern int get_line(char line[], int maxline);
int remove_white(char line[]);
int main() {
char line[MAXLINE];
while (get_line(line, MAXLINE) > 0) {
if (remove_white(line) > 0) {
printf("%s", line);
}
}
return 0;
}
int remove_white(char line[]) {
int i = 0, j = 0;
while (line[j] != '\n') {
if (line[j] != ' ' && line[j] == '\t') {
i = j;
}
j++;
}
line[++i] = '\n';
line[++i] = '\0';
printf("new length %d, old length %d\n", i, j + 1);
return i;
}
|
the_stack_data/161080758.c
|
/*
** basinlength: estimates the Euclidean length of subbasins in a DEM
** basinlen2: replaces recursive method with downstream flow tracking
** method. Also adds option for variable flow direction encoding.
**
** written by Greg Tucker, Oct. 1996
*/
#include <stdio.h>
#include <math.h>
#define NColumns 718
#define NRows 1395
struct CellCoord /* Structure stores the coords of a cell */
{
int x;
int y;
};
struct CellCoord nbr[NColumns][NRows];
int NoDataValue;
float baslen[NColumns][NRows];
int gE,gSE,gS,gSW,gW,gNW,gN,gNE;
void GetFileName( basename )
char *basename;
{
printf("Enter base name of flow direction files (no ext): ");
gets( basename );
}
int ReadHeaderLine( fp )
FILE *fp;
{
int i;
/* Read the text part and discard */
for( i=1; i<=14; i++ )
fgetc( fp );
/* Read the integer */
fscanf( fp, "%d", &i );
/* Read the line feed character */
fgetc( fp );
return( i );
}
void ReadFlowDirFile( filename, format )
char *filename, format;
{
FILE *fp;
int i,j,jj,nrows,ncols,tmp;
short temparr[NColumns][NRows];
char tempstr[80];
float dx, dy;
if( (fp=fopen( filename, "r" ))==NULL ) {
printf("Unable to find '%s'\n", filename );
exit( 0 );
}
/* Read the header: ARC/INFO ascii format, or D. Tarboton ascii format */
if( format=='a' )
{
ncols = ReadHeaderLine( fp );
nrows = ReadHeaderLine( fp );
fgets( tempstr, 80, fp );
fgets( tempstr, 80, fp );
fgets( tempstr, 80, fp );
NoDataValue = ReadHeaderLine( fp );
}
else if( format=='t' )
{
fscanf( fp, "%d %d %f %f",&ncols,&nrows,&dx,&dy);
NoDataValue = -1;
}
printf("NoDataValue is %d\n",NoDataValue);
/* Check that data have the right dimensions */
if( ncols!=NColumns || nrows!=NRows )
{
printf("Program must be recompiled for %d by %d data\n",
ncols, nrows );
exit( 0 );
}
/* Convert from 1,2,4,... code to neighbor cell coords */
printf( "Reading <%s>...\n", filename );
for( j=0; j<NRows; j++ )
for( i=0; i<NColumns; i++ )
{
jj = (NRows-1)-j;
fscanf( fp, "%d", &tmp );
if( tmp==gE ) {
nbr[i][jj].x = i+1;
nbr[i][jj].y = jj;
}
else if( tmp==gSE ) {
nbr[i][jj].x = i+1;
nbr[i][jj].y = jj-1;
}
else if( tmp==gS ) {
nbr[i][jj].x = i;
nbr[i][jj].y = jj-1;
}
else if( tmp==gSW ) {
nbr[i][jj].x = i-1;
nbr[i][jj].y = jj-1;
}
else if( tmp==gW ) {
nbr[i][jj].x = i-1;
nbr[i][jj].y = jj;
}
else if( tmp==gNW ) {
nbr[i][jj].x = i-1;
nbr[i][jj].y = jj+1;
}
else if( tmp==gN ) {
nbr[i][jj].x = i;
nbr[i][jj].y = jj+1;
}
else if( tmp==gNE ) {
nbr[i][jj].x = i+1;
nbr[i][jj].y = jj+1;
}
else if( tmp==NoDataValue ) nbr[i][jj].x = NoDataValue;
else printf("Undefined flow direction %d at %d,%d\n", tmp, i, jj );
}
fclose( fp );
printf("done.\n");
}
void main( argc, argv )
int argc;
char **argv;
{
int i,j;
FILE *fp;
float localdist;
int p,q,newp,test;
/* Check that input files have been specified */
if( argc < 3 ) {
printf( "USAGE: %s <flow dir file> <encoding scheme>\n",argv[0] );
exit( 0 );
}
/* Set coding scheme */
if( argv[2][0]!='a' && argv[2][0]!='t' )
{
printf("Encoding scheme must be either a (Arc/Info) or t (Tarboton)\n");
exit(1);
}
switch( argv[2][0] ) {
case 'a':
gE = 1;
gSE = 2;
gS = 4;
gSW = 8;
gW = 16;
gNW = 32;
gN = 64;
gNE = 128;
break;
case 't':
gE = 1;
gSE = 8;
gS = 7;
gSW = 6;
gW = 5;
gNW = 4;
gN = 3;
gNE = 2;
break;
default:
printf("I don't know what format '%s' is.\nPossible formats are: a - Arc/Info ascii, t - Tarboton ascii\n",
argv[2][0] );
exit(2);
break;
}
/* Read flow directions file and convert to "neighbor cell" format */
ReadFlowDirFile( argv[1], argv[2][0] );
/* For each cell, find the maximum basin length */
printf( "Measuring sub-basin lengths...\n");
for( i=1; i<NColumns-1; i++ )
{
printf("Col %d\n",i);
for( j=1; j<NRows-1; j++ )
if( nbr[i][j].x != NoDataValue )
{
p = i;
q = j;
test = 0;
while( nbr[p][q].x!=NoDataValue && test<10000)
{
test++;
localdist = sqrt( (double)(abs(i-p)*abs(i-p) +
abs(j-q)*abs(j-q)) ) + 1;
if( localdist > baslen[p][q] ) baslen[p][q] = localdist;
newp = nbr[p][q].x;
q = nbr[p][q].y;
p = newp;
}
if( test==10000 ) {
printf("There appears to be a loop in the flow direction data.\n");
exit(0);
}
}
}
printf( "done.\n");
/* Write the data in binary format */
printf("Writing 'baslen.dat'...");
fp = fopen("baslen.dat","w");
fwrite( baslen, sizeof( baslen ), 1, fp );
fclose( fp );
printf("all done.\n");
}
|
the_stack_data/800973.c
|
/*
# Copyright 2021 Hewlett Packard Enterprise Development LP
#
# 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.
*/
/* Really simplistic, bordering on brain-dead way to go about allowing
netperf to run successfully on a system with firewalls enabled, and
only the netperf control port open in the firewall. We expect code
called by netserver to call into this with the port number to open.
We will then open the port in the system-local firewall, and
store-off if that port was already open. Then at the end of the
test, code called by netserver will call in again and if the port
was not enabled before, we will disable it. If it was enabled
before, we do nothing. We assume there is only ever one port
number being manipulated in this way per netserver process. raj
20130211*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <netinet/in.h>
static int port_was_enabled = 0;
static int enabled_port = -1;
static int enabled_protocol = -1;
static char *protocol_to_ufw(int protocol) {
switch (protocol) {
case IPPROTO_TCP:
return("tcp");
break;
case IPPROTO_UDP:
return("udp");
break;
#if defined(IPPROTO_SCTP)
case IPPROTO_SCTP:
return("sctp");
break;
#endif
#if defined(IPPROTO_DCCP)
case IPPROTO_DCCP:
return "dccp";
break;
#endif
#if defined(IPPROTO_UDPLITE)
case IPPROTO_UDPLITE:
return "udplite";
break;
#endif
default:
return("UNKNOWN");
}
}
void
enable_port(int port, int protocol) {
char command[128];
if ((port < 0) || (port > 65535))
return;
/* one of these days we will have to learn the proper way to see if
a port is already open under Linux... */
sprintf(command,
"ufw allow %d/%s 2>&1 > /dev/null",
port,
protocol_to_ufw(protocol));
if (system(command) < 0) {
/* if the command failed outright, don't bother at the back-end */
port_was_enabled = 0;
}
else {
port_was_enabled = 1;
enabled_port = port;
enabled_protocol = protocol;
}
return;
}
void
done_with_port(int port, int protocol) {
char command[128];
if (port_was_enabled) {
sprintf(command,
"ufw delete allow %d/%s 2>&1 > /dev/null",
enabled_port,
protocol_to_ufw(enabled_protocol));
system(command);
}
return;
}
|
the_stack_data/59512939.c
|
/* _exit.c
* Copyright (C) 1985-2004 Digital Mars
* www.digitalmars.com
* All rights reserved.
* Exit process
*/
#include <stdlib.h>
#ifdef __OS2__
#include <os2lib.h>
#endif
#ifdef _WIN32
#include <windows.h>
//extern int __stdcall ExitProcess(unsigned);
#endif
#ifdef DOS386
__declspec(naked) void __CLIB _Exit(int exitcode)
{
_asm
{
mov AL,4[ESP]
mov AH,0x4C
int 0x21
hlt
}
}
#endif
#ifdef __OS2__
void __CLIB _Exit(int exitcode)
{
DosExit(exitcode, 1); // 1 = terminate all threads in this process
_asm
{
hlt
}
}
#endif
#ifdef _WIN32
void __CLIB _Exit(int exitcode)
{
ExitProcess(exitcode);
/*
_asm
{
hlt
}
*/
}
#endif
|
the_stack_data/156392110.c
|
/*
SDL_mixer: An audio mixer library based on the SDL library
Copyright (C) 1997-2022 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 file is used to support SDL_LoadMUS playback of FLAC files.
~ Austen Dicken ([email protected])
*/
#ifdef MUSIC_FLAC
#include "SDL_loadso.h"
#include "SDL_assert.h"
#include "music_flac.h"
#include "utils.h"
#include <FLAC/stream_decoder.h>
typedef struct {
int loaded;
void *handle;
FLAC__StreamDecoder *(*FLAC__stream_decoder_new)(void);
void (*FLAC__stream_decoder_delete)(FLAC__StreamDecoder *decoder);
FLAC__StreamDecoderInitStatus (*FLAC__stream_decoder_init_stream)(
FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderReadCallback read_callback,
FLAC__StreamDecoderSeekCallback seek_callback,
FLAC__StreamDecoderTellCallback tell_callback,
FLAC__StreamDecoderLengthCallback length_callback,
FLAC__StreamDecoderEofCallback eof_callback,
FLAC__StreamDecoderWriteCallback write_callback,
FLAC__StreamDecoderMetadataCallback metadata_callback,
FLAC__StreamDecoderErrorCallback error_callback,
void *client_data);
FLAC__bool (*FLAC__stream_decoder_finish)(FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_flush)(FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_single)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_until_end_of_metadata)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_until_end_of_stream)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_seek_absolute)(
FLAC__StreamDecoder *decoder,
FLAC__uint64 sample);
FLAC__StreamDecoderState (*FLAC__stream_decoder_get_state)(
const FLAC__StreamDecoder *decoder);
FLAC__uint64 (*FLAC__stream_decoder_get_total_samples)(
const FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_set_metadata_respond)(
FLAC__StreamDecoder *decoder,
FLAC__MetadataType type);
} flac_loader;
static flac_loader flac;
#ifdef FLAC_DYNAMIC
#define FUNCTION_LOADER(FUNC, SIG) \
flac.FUNC = (SIG) SDL_LoadFunction(flac.handle, #FUNC); \
if (flac.FUNC == NULL) { SDL_UnloadObject(flac.handle); return -1; }
#else
#define FUNCTION_LOADER(FUNC, SIG) \
flac.FUNC = FUNC;
#endif
static int FLAC_Load(void)
{
if (flac.loaded == 0) {
#ifdef FLAC_DYNAMIC
flac.handle = SDL_LoadObject(FLAC_DYNAMIC);
if (flac.handle == NULL) {
return -1;
}
#elif defined(__MACOSX__)
extern FLAC__StreamDecoder *FLAC__stream_decoder_new(void) __attribute__((weak_import));
if (FLAC__stream_decoder_new == NULL)
{
/* Missing weakly linked framework */
Mix_SetError("Missing FLAC.framework");
return -1;
}
#endif
FUNCTION_LOADER(FLAC__stream_decoder_new, FLAC__StreamDecoder *(*)(void))
FUNCTION_LOADER(FLAC__stream_decoder_delete, void (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_init_stream, FLAC__StreamDecoderInitStatus (*)(
FLAC__StreamDecoder *,
FLAC__StreamDecoderReadCallback,
FLAC__StreamDecoderSeekCallback,
FLAC__StreamDecoderTellCallback,
FLAC__StreamDecoderLengthCallback,
FLAC__StreamDecoderEofCallback,
FLAC__StreamDecoderWriteCallback,
FLAC__StreamDecoderMetadataCallback,
FLAC__StreamDecoderErrorCallback,
void *))
FUNCTION_LOADER(FLAC__stream_decoder_finish, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_flush, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_single, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_until_end_of_metadata, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_until_end_of_stream, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_seek_absolute, FLAC__bool (*)(FLAC__StreamDecoder *, FLAC__uint64))
FUNCTION_LOADER(FLAC__stream_decoder_get_state, FLAC__StreamDecoderState (*)(const FLAC__StreamDecoder *decoder))
FUNCTION_LOADER(FLAC__stream_decoder_get_total_samples,
FLAC__uint64 (*)(const FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_set_metadata_respond,
FLAC__bool (*)(FLAC__StreamDecoder *,
FLAC__MetadataType))
}
++flac.loaded;
return 0;
}
static void FLAC_Unload(void)
{
if (flac.loaded == 0) {
return;
}
if (flac.loaded == 1) {
#ifdef FLAC_DYNAMIC
SDL_UnloadObject(flac.handle);
#endif
}
--flac.loaded;
}
typedef struct {
int volume;
int play_count;
FLAC__StreamDecoder *flac_decoder;
unsigned sample_rate;
unsigned channels;
unsigned bits_per_sample;
SDL_RWops *src;
int freesrc;
SDL_AudioStream *stream;
int loop;
FLAC__int64 pcm_pos;
FLAC__int64 full_length;
SDL_bool loop_flag;
FLAC__int64 loop_start;
FLAC__int64 loop_end;
FLAC__int64 loop_len;
Mix_MusicMetaTags tags;
} FLAC_Music;
static int FLAC_Seek(void *context, double position);
static FLAC__StreamDecoderReadStatus flac_read_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__byte buffer[],
size_t *bytes,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
(void)decoder;
/* make sure there is something to be reading */
if (*bytes > 0) {
*bytes = SDL_RWread (data->src, buffer, sizeof (FLAC__byte), *bytes);
if (*bytes == 0) { /* error or no data was read (EOF) */
return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
} else { /* data was read, continue */
return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
}
} else {
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
}
}
static FLAC__StreamDecoderSeekStatus flac_seek_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 absolute_byte_offset,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
(void)decoder;
if (SDL_RWseek(data->src, (Sint64)absolute_byte_offset, RW_SEEK_SET) < 0) {
return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
} else {
return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
}
}
static FLAC__StreamDecoderTellStatus flac_tell_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 *absolute_byte_offset,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
(void)decoder;
if (pos < 0) {
return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
} else {
*absolute_byte_offset = (FLAC__uint64)pos;
return FLAC__STREAM_DECODER_TELL_STATUS_OK;
}
}
static FLAC__StreamDecoderLengthStatus flac_length_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 *stream_length,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
Sint64 length = SDL_RWseek(data->src, 0, RW_SEEK_END);
(void)decoder;
if (SDL_RWseek(data->src, pos, RW_SEEK_SET) != pos || length < 0) {
/* there was an error attempting to return the stream to the original
* position, or the length was invalid. */
return FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR;
} else {
*stream_length = (FLAC__uint64)length;
return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;
}
}
static FLAC__bool flac_eof_music_cb(
const FLAC__StreamDecoder *decoder,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
Sint64 end = SDL_RWseek(data->src, 0, RW_SEEK_END);
(void)decoder;
/* was the original position equal to the end (a.k.a. the seek didn't move)? */
if (pos == end) {
/* must be EOF */
return true;
} else {
/* not EOF, return to the original position */
SDL_RWseek(data->src, pos, RW_SEEK_SET);
return false;
}
}
static FLAC__StreamDecoderWriteStatus flac_write_music_cb(
const FLAC__StreamDecoder *decoder,
const FLAC__Frame *frame,
const FLAC__int32 *const buffer[],
void *client_data)
{
FLAC_Music *music = (FLAC_Music *)client_data;
Sint16 *data;
unsigned int i, j, channels;
int shift_amount = 0, amount;
(void)decoder;
if (!music->stream) {
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
switch (music->bits_per_sample) {
case 16:
shift_amount = 0;
break;
case 20:
shift_amount = 4;
break;
case 24:
shift_amount = 8;
break;
default:
SDL_SetError("FLAC decoder doesn't support %d bits_per_sample", music->bits_per_sample);
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (music->channels == 3) {
/* We'll just drop the center channel for now */
channels = 2;
} else {
channels = music->channels;
}
data = SDL_stack_alloc(Sint16, (frame->header.blocksize * channels));
if (!data) {
SDL_SetError("Couldn't allocate %d bytes stack memory", (int)(frame->header.blocksize * channels * sizeof(*data)));
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (music->channels == 3) {
Sint16 *dst = data;
for (i = 0; i < frame->header.blocksize; ++i) {
Sint16 FL = (Sint16)(buffer[0][i] >> shift_amount);
Sint16 FR = (Sint16)(buffer[1][i] >> shift_amount);
Sint16 FCmix = (Sint16)((buffer[2][i] >> shift_amount) * 0.5f);
int sample;
sample = (FL + FCmix);
if (sample > SDL_MAX_SINT16) {
*dst = SDL_MAX_SINT16;
} else if (sample < SDL_MIN_SINT16) {
*dst = SDL_MIN_SINT16;
} else {
*dst = (Sint16)sample;
}
++dst;
sample = (FR + FCmix);
if (sample > SDL_MAX_SINT16) {
*dst = SDL_MAX_SINT16;
} else if (sample < SDL_MIN_SINT16) {
*dst = SDL_MIN_SINT16;
} else {
*dst = (Sint16)sample;
}
++dst;
}
} else {
for (i = 0; i < channels; ++i) {
Sint16 *dst = data + i;
for (j = 0; j < frame->header.blocksize; ++j) {
*dst = (Sint16)(buffer[i][j] >> shift_amount);
dst += channels;
}
}
}
amount = (int)(frame->header.blocksize * channels * sizeof(*data));
music->pcm_pos += (FLAC__int64) frame->header.blocksize;
if (music->loop && (music->play_count != 1) &&
(music->pcm_pos >= music->loop_end)) {
amount -= (music->pcm_pos - music->loop_end) * channels * (int)sizeof(*data);
music->loop_flag = SDL_TRUE;
}
SDL_AudioStreamPut(music->stream, data, amount);
SDL_stack_free(data);
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
}
static void flac_metadata_music_cb(
const FLAC__StreamDecoder *decoder,
const FLAC__StreamMetadata *metadata,
void *client_data)
{
FLAC_Music *music = (FLAC_Music *)client_data;
const FLAC__StreamMetadata_VorbisComment *vc;
int channels;
unsigned rate;
char *param, *argument, *value;
SDL_bool is_loop_length = SDL_FALSE;
(void)decoder;
if (metadata->type == FLAC__METADATA_TYPE_STREAMINFO) {
music->sample_rate = metadata->data.stream_info.sample_rate;
music->channels = metadata->data.stream_info.channels;
music->bits_per_sample = metadata->data.stream_info.bits_per_sample;
/*printf("FLAC: Sample rate = %d, channels = %d, bits_per_sample = %d\n", music->sample_rate, music->channels, music->bits_per_sample);*/
/* SDL's channel mapping and FLAC channel mapping are the same,
except for 3 channels: SDL is FL FR LFE and FLAC is FL FR FC
*/
if (music->channels == 3) {
channels = 2;
} else {
channels = (int)music->channels;
}
/* We check for NULL stream later when we get data */
SDL_assert(!music->stream);
music->stream = SDL_NewAudioStream(AUDIO_S16SYS, (Uint8)channels, (int)music->sample_rate,
music_spec.format, music_spec.channels, music_spec.freq);
} else if (metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
FLAC__uint32 i;
vc = &metadata->data.vorbis_comment;
rate = music->sample_rate;
for (i = 0; i < vc->num_comments; ++i) {
param = SDL_strdup((const char *) vc->comments[i].entry);
argument = param;
value = SDL_strchr(param, '=');
if (value == NULL) {
value = param + SDL_strlen(param);
} else {
*(value++) = '\0';
}
/* Want to match LOOP-START, LOOP_START, etc. Remove - or _ from
* string if it is present at position 4. */
if (_Mix_IsLoopTag(argument) && ((argument[4] == '_') || (argument[4] == '-'))) {
SDL_memmove(argument + 4, argument + 5, SDL_strlen(argument) - 4);
}
if (SDL_strcasecmp(argument, "LOOPSTART") == 0)
music->loop_start = _Mix_ParseTime(value, rate);
else if (SDL_strcasecmp(argument, "LOOPLENGTH") == 0) {
music->loop_len = SDL_strtoll(value, NULL, 10);
is_loop_length = SDL_TRUE;
} else if (SDL_strcasecmp(argument, "LOOPEND") == 0) {
music->loop_end = _Mix_ParseTime(value, rate);
is_loop_length = SDL_FALSE;
} else if (SDL_strcasecmp(argument, "TITLE") == 0) {
meta_tags_set(&music->tags, MIX_META_TITLE, value);
} else if (SDL_strcasecmp(argument, "ARTIST") == 0) {
meta_tags_set(&music->tags, MIX_META_ARTIST, value);
} else if (SDL_strcasecmp(argument, "ALBUM") == 0) {
meta_tags_set(&music->tags, MIX_META_ALBUM, value);
} else if (SDL_strcasecmp(argument, "COPYRIGHT") == 0) {
meta_tags_set(&music->tags, MIX_META_COPYRIGHT, value);
}
SDL_free(param);
}
if (is_loop_length) {
music->loop_end = music->loop_start + music->loop_len;
} else {
music->loop_len = music->loop_end - music->loop_start;
}
/* Ignore invalid loop tag */
if (music->loop_start < 0 || music->loop_len < 0 || music->loop_end < 0) {
music->loop_start = 0;
music->loop_len = 0;
music->loop_end = 0;
}
}
}
static void flac_error_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status,
void *client_data)
{
(void)decoder;
(void)client_data;
/* print an SDL error based on the error status */
switch (status) {
case FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC:
SDL_SetError("Error processing the FLAC file [LOST_SYNC].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER:
SDL_SetError("Error processing the FLAC file [BAD_HEADER].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH:
SDL_SetError("Error processing the FLAC file [CRC_MISMATCH].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM:
SDL_SetError("Error processing the FLAC file [UNPARSEABLE].");
break;
default:
SDL_SetError("Error processing the FLAC file [UNKNOWN].");
break;
}
}
/* Load an FLAC stream from an SDL_RWops object */
static void *FLAC_CreateFromRW(SDL_RWops *src, int freesrc)
{
FLAC_Music *music;
int init_stage = 0;
int was_error = 1;
FLAC__int64 full_length;
music = (FLAC_Music *)SDL_calloc(1, sizeof(*music));
if (!music) {
SDL_OutOfMemory();
return NULL;
}
music->src = src;
music->volume = MIX_MAX_VOLUME;
music->flac_decoder = flac.FLAC__stream_decoder_new();
if (music->flac_decoder) {
init_stage++; /* stage 1! */
flac.FLAC__stream_decoder_set_metadata_respond(music->flac_decoder,
FLAC__METADATA_TYPE_VORBIS_COMMENT);
if (flac.FLAC__stream_decoder_init_stream(
music->flac_decoder,
flac_read_music_cb, flac_seek_music_cb,
flac_tell_music_cb, flac_length_music_cb,
flac_eof_music_cb, flac_write_music_cb,
flac_metadata_music_cb, flac_error_music_cb,
music) == FLAC__STREAM_DECODER_INIT_STATUS_OK) {
init_stage++; /* stage 2! */
if (flac.FLAC__stream_decoder_process_until_end_of_metadata(music->flac_decoder)) {
was_error = 0;
} else {
SDL_SetError("FLAC__stream_decoder_process_until_end_of_metadata() failed");
}
} else {
SDL_SetError("FLAC__stream_decoder_init_stream() failed");
}
} else {
SDL_SetError("FLAC__stream_decoder_new() failed");
}
if (was_error) {
switch (init_stage) {
case 2:
flac.FLAC__stream_decoder_finish(music->flac_decoder); /* fallthrough */
case 1:
flac.FLAC__stream_decoder_delete(music->flac_decoder); /* fallthrough */
case 0:
SDL_free(music);
break;
}
return NULL;
}
/* loop_start, loop_end and loop_len get set by metadata callback if tags
* are present in metadata.
*/
full_length = (FLAC__int64) flac.FLAC__stream_decoder_get_total_samples(music->flac_decoder);
if ((music->loop_end > 0) && (music->loop_end <= full_length) &&
(music->loop_start < music->loop_end)) {
music->loop = 1;
}
music->full_length = full_length;
music->freesrc = freesrc;
return music;
}
static const char* FLAC_GetMetaTag(void *context, Mix_MusicMetaTag tag_type)
{
FLAC_Music *music = (FLAC_Music *)context;
return meta_tags_get(&music->tags, tag_type);
}
/* Set the volume for an FLAC stream */
static void FLAC_SetVolume(void *context, int volume)
{
FLAC_Music *music = (FLAC_Music *)context;
music->volume = volume;
}
/* Get the volume for an FLAC stream */
static int FLAC_GetVolume(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return music->volume;
}
/* Start playback of a given FLAC stream */
static int FLAC_Play(void *context, int play_count)
{
FLAC_Music *music = (FLAC_Music *)context;
music->play_count = play_count;
return FLAC_Seek(music, 0.0);
}
/* Read some FLAC stream data and convert it for output */
static int FLAC_GetSome(void *context, void *data, int bytes, SDL_bool *done)
{
FLAC_Music *music = (FLAC_Music *)context;
int filled;
filled = SDL_AudioStreamGet(music->stream, data, bytes);
if (filled != 0) {
return filled;
}
if (!music->play_count) {
/* All done */
*done = SDL_TRUE;
return 0;
}
if (!flac.FLAC__stream_decoder_process_single(music->flac_decoder)) {
SDL_SetError("FLAC__stream_decoder_process_single() failed");
return -1;
}
if (music->loop_flag) {
music->pcm_pos = music->loop_start;
if (flac.FLAC__stream_decoder_seek_absolute(music->flac_decoder, (FLAC__uint64)music->loop_start) ==
FLAC__STREAM_DECODER_SEEK_ERROR) {
SDL_SetError("FLAC__stream_decoder_seek_absolute() failed");
flac.FLAC__stream_decoder_flush(music->flac_decoder);
return -1;
} else {
int play_count = -1;
if (music->play_count > 0) {
play_count = (music->play_count - 1);
}
music->play_count = play_count;
music->loop_flag = SDL_FALSE;
}
}
if (flac.FLAC__stream_decoder_get_state(music->flac_decoder) == FLAC__STREAM_DECODER_END_OF_STREAM) {
if (music->play_count == 1) {
music->play_count = 0;
SDL_AudioStreamFlush(music->stream);
} else {
int play_count = -1;
if (music->play_count > 0) {
play_count = (music->play_count - 1);
}
if (FLAC_Play(music, play_count) < 0) {
return -1;
}
}
}
return 0;
}
/* Play some of a stream previously started with FLAC_play() */
static int FLAC_GetAudio(void *context, void *data, int bytes)
{
FLAC_Music *music = (FLAC_Music *)context;
return music_pcm_getaudio(context, data, bytes, music->volume, FLAC_GetSome);
}
/* Jump (seek) to a given position (position is in seconds) */
static int FLAC_Seek(void *context, double position)
{
FLAC_Music *music = (FLAC_Music *)context;
FLAC__uint64 seek_sample = (FLAC__uint64) (music->sample_rate * position);
SDL_AudioStreamClear(music->stream);
music->pcm_pos = (FLAC__int64) seek_sample;
if (!flac.FLAC__stream_decoder_seek_absolute(music->flac_decoder, seek_sample)) {
if (flac.FLAC__stream_decoder_get_state(music->flac_decoder) == FLAC__STREAM_DECODER_SEEK_ERROR) {
flac.FLAC__stream_decoder_flush(music->flac_decoder);
}
SDL_SetError("Seeking of FLAC stream failed: libFLAC seek failed.");
return -1;
}
return 0;
}
static double FLAC_Tell(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return (double)music->pcm_pos / music->sample_rate;
}
/* Return music duration in seconds */
static double FLAC_Duration(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return (double)music->full_length / music->sample_rate;
}
static double FLAC_LoopStart(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_start / music->sample_rate;
}
return -1.0;
}
static double FLAC_LoopEnd(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_end / music->sample_rate;
}
return -1.0;
}
static double FLAC_LoopLength(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_len / music->sample_rate;
}
return -1.0;
}
/* Close the given FLAC_Music object */
static void FLAC_Delete(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
if (music) {
meta_tags_clear(&music->tags);
if (music->flac_decoder) {
flac.FLAC__stream_decoder_finish(music->flac_decoder);
flac.FLAC__stream_decoder_delete(music->flac_decoder);
}
if (music->stream) {
SDL_FreeAudioStream(music->stream);
}
if (music->freesrc) {
SDL_RWclose(music->src);
}
SDL_free(music);
}
}
Mix_MusicInterface Mix_MusicInterface_FLAC =
{
"FLAC",
MIX_MUSIC_FLAC,
MUS_FLAC,
SDL_FALSE,
SDL_FALSE,
FLAC_Load,
NULL, /* Open */
FLAC_CreateFromRW,
NULL, /* CreateFromFile */
FLAC_SetVolume,
FLAC_GetVolume,
FLAC_Play,
NULL, /* IsPlaying */
FLAC_GetAudio,
NULL, /* Jump */
FLAC_Seek,
FLAC_Tell,
FLAC_Duration,
FLAC_LoopStart,
FLAC_LoopEnd,
FLAC_LoopLength,
FLAC_GetMetaTag,/* GetMetaTag */
NULL, /* Pause */
NULL, /* Resume */
NULL, /* Stop */
FLAC_Delete,
NULL, /* Close */
FLAC_Unload
};
#endif /* MUSIC_FLAC */
/* vi: set ts=4 sw=4 expandtab: */
|
the_stack_data/94092.c
|
#include<stdio.h>
int a[100];
int n;
void quicksort(int first,int last)
{
int i,j,pivot,temp;
if(first<last)
{
i=first;
j=last;
pivot=a[first];
while(i<j)
{
while(a[i]<=pivot &&i<last)
i=i+1;
while(a[j]>=pivot &&j>first)
j=j-1;
if(i<j)
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
temp=a[j];
a[j]=a[first];
a[first]=temp;
quicksort(first,j-1);
quicksort(j+1,last);
}}
void main()
{
int f=n-1,i,l=0;
printf("Enter number of elements\n");
scanf("%d",&n);
printf("Enter elemets\n");
for(i=0;i<n;i++)
{
scanf("%d",&a[i]);
}
quicksort(l,n-1);
for(i=0;i<n;i++)
printf("%d\t",a[i]);
printf("\n");
}
|
the_stack_data/693228.c
|
// algorithm described in https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf
// problem:
// we want to generate a value with duty cycle that is expressed
// as a ratio of N/M
// solution: to send value with N/M within period of M cycles,
// output should be 1 for N cycles and 0 for (M-N) cycles.
// The desired sequence should be spread out as evenly as possible
// The solution is to take the simplify fraction N/M, ie, divide by the
// greatest common divisor. So a duty cycles of 4/8 is best approximated
// by 1/2 over time, the algorithm below does this only using adds/subs
#include <stdio.h>
#include <stdlib.h>
typedef struct {
int c;
int n, m;
} PWM;
void
pwminit(PWM *p, int n, int m)
{
p->c = 0;
p->n = n;
p->m = m;
}
int
pwmgen(PWM *p)
{
p->c += p->n;
if (p->c >= p->m) {
p->c -= p->m;
return 1;
}
return 0;
}
int
main(int argc, char *argv[])
{
PWM p;
int i, n, m;
n = 4;
m = 8;
if (argc == 3) {
n = atoi(argv[1]);
m = atoi(argv[2]);
}
pwminit(&p, n, m);
for (i = 0; i < 1024 * m; i++) {
printf("%d ", pwmgen(&p));
if ((i & 7) == 7)
printf("\n");
}
return 0;
}
|
the_stack_data/43887633.c
|
#include <stdio.h>
#include <stdlib.h>
struct node {
int capacity;
int size;
int *arr;
};
int push_back( struct node *p){
int index = p -> size;
if ( (p -> size) < (p -> capacity) ){
p -> size = p -> size + 1;
scanf("%d", &((p -> arr)[index]));
return ((p -> arr)[index]);
} else {
return 0;
}
}
void delete_by_index(struct node *p, int index ){
for ( int i = 0; i < (p -> size); i++ ){
if (i >= index){
(p -> arr)[i] = (p -> arr)[i+1];
}
}
p -> size = ( p -> size ) - 1;
}
void delete_by_value(struct node *p, int value){
int count = -1;
for ( int i = 0; i < ( p -> size); i++){
if ( (p -> arr)[i] == value ){
count++;
}
(p -> arr)[i-count] = (p -> arr)[i+1];
}
int item = p->size - count-1;
printf("\n");
for (int k = 0; k < item; k++){
printf("%d\t", (p -> arr)[k]);
}
printf("\n");
}
void print_dynamic_table(struct node *p){
printf("\n");
printf("Capacity = %d\t", p -> capacity);
printf("Size = %d\t" , p -> size);
printf("Elements =\t");
for ( int i = 0; i < (p -> size); i++){
printf("%d\t", (p -> arr)[i]);
}
printf("\n");
return ;
}
void create_array( struct node *p, int c, int n){
int * ptr = (int *)malloc( sizeof(int)*c );
p -> capacity = c;
p -> size = 0;
p -> arr = ptr;
}
void main(){
struct node dynamic_table;
int c;
int n;
int pop_call;
scanf("%d", &c);
scanf("%d", &n);
create_array( &dynamic_table, c, n );
for (int i = 0; i < n ; i++){
push_back(&dynamic_table);
}
int index;
scanf("%d", &index);
int value;
scanf("%d", &value);
print_dynamic_table(&dynamic_table);
delete_by_index(&dynamic_table, index);
print_dynamic_table(&dynamic_table);
delete_by_value(&dynamic_table, value);
}
|
the_stack_data/218894448.c
|
/*
* file: readt.c
* This program tests the 32-bit read_doubles() assembly procedure.
* It reads the doubles from stdin.
* (Use redirection to read from file.)
*/
#include <stdio.h>
extern int read_doubles( FILE *, double *, int );
#define MAX 100
int main()
{
int i,n;
double a[MAX];
n = read_doubles(stdin, a, MAX);
for( i=0; i < n; i++ )
printf("%3d %g\n", i, a[i]);
return 0;
}
|
the_stack_data/179831719.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_pow.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: avolgin <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/12 21:22:00 by avolgin #+# #+# */
/* Updated: 2017/11/12 21:22:53 by avolgin ### ########.fr */
/* */
/* ************************************************************************** */
int ft_pow(int nb, int pow)
{
if (pow == 0)
return (1);
else
return (nb * ft_pow(nb, pow - 1));
}
|
the_stack_data/156393298.c
|
//quartz2962_37415/_tests/_group_2/_test_4.c
//-1.3643E-319 5 -1.2777E5 +0.0 +1.8287E305 +1.1602E306 -1.3764E-123 +0.0
//
/* This is a automatically generated test. Do not modify */
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
void compute(double comp, int var_1,double var_2,double var_3,double var_4,double var_5,double var_6,double var_7) {
if (comp >= -1.8978E-307 / -1.2428E-306 * -1.8803E-319) {
double tmp_1 = -1.9956E-29;
comp = tmp_1 - var_2 + (var_3 * exp(-1.7189E-306 * (-1.6418E-314 - var_4 * var_5)));
comp = cos(sqrt(-0.0 - (+0.0 + var_6)));
for (int i=0; i < var_1; ++i) {
comp += +1.7108E-306 - var_7;
}
}
printf("%.17g\n", comp);
}
double* initPointer(double v) {
double *ret = (double*) malloc(sizeof(double)*10);
for(int i=0; i < 10; ++i)
ret[i] = v;
return ret;
}
int main(int argc, char** argv) {
/* Program variables */
double tmp_1 = atof(argv[1]);
int tmp_2 = atoi(argv[2]);
double tmp_3 = atof(argv[3]);
double tmp_4 = atof(argv[4]);
double tmp_5 = atof(argv[5]);
double tmp_6 = atof(argv[6]);
double tmp_7 = atof(argv[7]);
double tmp_8 = atof(argv[8]);
compute(tmp_1,tmp_2,tmp_3,tmp_4,tmp_5,tmp_6,tmp_7,tmp_8);
return 0;
}
|
the_stack_data/40761818.c
|
#include <stdio.h>
int *find_largest(int a[], int n);
int main(void) {
int *largest = find_largest((int []){0, 2, 9, 3, 5, 7}, 6);
printf("%d\n", *largest);
}
int *find_largest(int a[], int n) {
int *max = a;
for (int i = 0; i < n; i++) max = a[i] > *max ? a + i : max;
return max;
}
|
the_stack_data/163129.c
|
#include <stdio.h>
/**
* main - Entry point
*
* Return: Always 0 (Success)
*/
int main(void)
{
printf("with proper grammar, but the outcome is a piece of art,\n");
return (0);
}
|
the_stack_data/502343.c
|
#include <stdio.h>
extern void foo ();
extern void foobar ();
void
foo ()
{
printf ("strong foo\n");
}
void
foobar ()
{
foo ();
}
|
the_stack_data/117329082.c
|
// Luiz Fernando -- Matricula: 159325
// Tarefa 004
/*Um programa que determina a ordem em que as crianças serão eliminadas
durante o jogo da batata quente. Ao som de uma música. As crianças passam
a batata de mão em mão ao redor do círculo em sentido horário, até que a
música pare de tocar. Quando a música parar, a criança que estiver segurando
a batata deve deixar o jogo, e as outras crianças reduzem o círculo.
Esse processo continua até que só reste uma criança, que é declarada vencedora.
Suponha que a musica sempre pare de tocar após a batata ter sido passada K vezes..*/
// ======================== LISTA POR ARRANJOS =====================================
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define MAX 1000
#define MAXCHAR 21
#define INICIO 0
// TAD Lista
typedef int TChave;
typedef struct
{
TChave ID;
char Nome[MAXCHAR];
} TItem;
typedef int TApontador;
typedef struct
{
TItem Criancas[MAX];
TApontador Primeiro, Ultimo;
} TLista;
//Procedimento para inicializar a lista
void Inicializa_TLista(TLista *pLista)
{
pLista->Primeiro = INICIO; // porque poderia começar com 0 ou 1, então é mais facil usar um define e dependendo da ocasião mudo nele
pLista->Ultimo = pLista->Primeiro;
}
//Função que retorna se a lista esta vazia ou não
int TLista_Eh_Vazia(TLista *pLista)
{
return (pLista->Primeiro == pLista->Ultimo);
}
//Função que retona o tamanho da lista
int Tamanho_TLista(TLista *pLista)
{
return (pLista->Ultimo - pLista->Primeiro);
}
//Função que insere um item na lista
int Insere_TLista(TLista *pLista, TApontador p, TItem x)
{
TApontador aux;
if ((pLista->Ultimo == MAX) || (p < pLista->Primeiro) || (p > pLista->Ultimo))
return 0;
for (aux = pLista->Ultimo - 1; aux >= p; aux--)
pLista->Criancas[aux + 1] = pLista->Criancas[aux];
pLista->Criancas[p] = x;
pLista->Ultimo++;
return 1;
}
//Função que retira um item da lista
int TLista_Retira(TLista *pLista, TApontador p, TItem *pX)
{
TApontador aux;
if (TLista_Eh_Vazia(pLista) || (p < pLista->Primeiro) || (p >= pLista->Ultimo))
return 0;
*pX = pLista->Criancas[p];
for (aux = p + 1; aux < pLista->Ultimo; aux++)
pLista->Criancas[aux - 1] = pLista->Criancas[aux];
pLista->Ultimo--;
return 1;
}
// TAD Lista.
int main()
{
int n, k, i;
TLista Lista_Criancas;
TItem Info_Criancas, Eliminado;
scanf("%d %d", &n, &k);
Inicializa_TLista(&Lista_Criancas); //inicializando a lista
for(i = 0; i < n; i++) //laço para ler as informações das n crianças
{
scanf("%s", Info_Criancas.Nome);
Info_Criancas.ID = i;
Insere_TLista(&Lista_Criancas, i, Info_Criancas); //inserindo as crianças na lista
}
i = k; //variavel que indica onde a batata irá para
while(Tamanho_TLista(&Lista_Criancas) != 1 )
{
if(TLista_Retira(&Lista_Criancas, i, &Eliminado) != 0) //elimiando a criança
printf("%s\n", Eliminado.Nome);
i = (i + k) % Tamanho_TLista(&Lista_Criancas); //como é uma rotação( do ultimo vai para o primeiro) soma i com k e pega o resto da divisão com o tamanho da lista
}
if(TLista_Retira(&Lista_Criancas, 0, &Eliminado) != 0) //imprimindo o vencedor, a ultima criança
printf("%s", Eliminado.Nome);
return 0;
}
|
the_stack_data/61076198.c
|
/*
Some initial prototyping of a trait system in c
*/
#include<stddef.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct KVIH {
char* name;
int offset;
} typedef KVIH;
struct ImplementationHandler {
int (*get_implementation)(struct ImplementationHandler* self, char* trait);
int (*set_implementation)(struct ImplementationHandler* self, char* trait, int offset);
KVIH* offset_map; // should be hash map but for now array
int offset_map_len;
} typedef ImplementationHandler;
int get_implementation(struct ImplementationHandler* self, char* trait) {
for(int i = 0; i < self->offset_map_len; i++) {
if (strcmp(self->offset_map[i].name, trait) == 0)
return self->offset_map[i].offset;
}
return -1;
}
int set_implementation(struct ImplementationHandler* self, char* trait, int offset) {
self->offset_map[self->offset_map_len].name = trait;
self->offset_map[self->offset_map_len].offset = offset;
self->offset_map_len++;
return 0;
}
ImplementationHandler new_ImplementationHandler() {
ImplementationHandler out;
out.get_implementation=get_implementation;
out.set_implementation=set_implementation;
out.offset_map=malloc(sizeof(KVIH)*32);
out.offset_map_len=0;
return out;
}
struct TraitPrintable {
void* self;
int (*print)(struct TraitPrintable* self_trait, const char* message);
} typedef TraitPrintable;
struct Buffer {
ImplementationHandler traitHandler;
TraitPrintable printable;
FILE* buffer;
} typedef Buffer;
int Buffer_printable_print(struct TraitPrintable* self_trait, const char* message) {
Buffer* self = (Buffer*) self_trait->self;
fputs(message, self->buffer);
return 0;
}
Buffer* new_Buffer(FILE* buffer) {
Buffer* out = malloc(sizeof(Buffer));
out->traitHandler = new_ImplementationHandler();
/* Attach Printable Trait -- probably can be turned into a function or macro */
out->traitHandler.set_implementation(&out->traitHandler,
"printable", offsetof(Buffer, printable));
out->printable.self = out;
out->printable.print = Buffer_printable_print;
out->buffer = buffer;
return out;
}
int main() {
Buffer* test = new_Buffer(stdout);
test->printable.print(&test->printable, "This is test from Buffer\n");
void* test2 = test;
ImplementationHandler testTraitHandler = *((ImplementationHandler*) test2);
int offset = testTraitHandler.get_implementation(&testTraitHandler, "printable");
TraitPrintable testPrintable = *((TraitPrintable*) (((char*) test2) + offset));
testPrintable.print(&testPrintable, "Hello from TraitPrintable\n");
test->buffer = stderr;
testPrintable.print(&testPrintable, "Hello from TraitPrintable (changed to error buffer)\n");
}
|
the_stack_data/26701679.c
|
/*
* Portable implementation of ltime() for any ISO-C platform where
* time_t behaves. (In practice, we've found that platforms such as
* Windows and Mac have needed their own specialised implementations.)
*/
#include <time.h>
#include <assert.h>
struct tm ltime(void)
{
time_t t;
time(&t);
assert (t != ((time_t)-1));
return *localtime(&t);
}
|
the_stack_data/178264831.c
|
#include <stdio.h>
#include <stdlib.h>
int main(void) {
char buffer[512];
while(fgets(buffer, 512, stdin)) {
long sum = 0;
int member = 0;
long age = 0;
char *bp = buffer;
while((age = strtol(bp, &bp, 10)) > 0) {
member++;
sum += age;
}
if (member == 0) {
continue;
}
printf("%5.2f: %s", (double)sum / member, buffer);
}
}
|
the_stack_data/67325203.c
|
int bar(int a, float c) {
int b = 5;
return a + b;
}
int main() {
float c = bar(0, 1);
}
|
the_stack_data/248580038.c
|
#include <stdio.h>
#define myprintf(format,...) printf(format,__VA_ARGS__)
void ifdef_inside_variadic_macro()
{
myprintf("%s\n",
#ifdef SOMETHING
"hello"
#else
"bye"
#endif
);
}
void elvis_operator()
{
int a = 5 ?: 10; // if '5' is true then 5 else 10
}
void const_size_array()
{
const int a = 5;
int b[a];
}
|
the_stack_data/27747.c
|
#include<stdio.h>
int fact()
{
int i,fact=1,number;
printf("Enter a number: ");
scanf("%d",&number);
for(i=1;i<=number;i++){
fact=fact*i;
}
printf("Factorial of %d is: %d",number,fact);
return 0;
}
|
the_stack_data/25136455.c
|
void parallel_0(short x[4], short y[4], int sum_array[2]) {
// Step 2: Initialize local variables
int temp_l83_i2_w1;
int temp_l83_i3_w1;
// Initialization done
// starting Loop
for( int i = 0; i < 2;i=i+1){
#pragma HLS pipeline
temp_l83_i2_w1 = x[(2)*i] * y[(2)*i];
temp_l83_i3_w1 = x[(2)*i+1] * y[(2)*i+1];
sum_array[i] = temp_l83_i2_w1 + temp_l83_i3_w1;
}
}
void epilogue(short x_0[1], short y_0[1], short y_3[1], short x_3[1], int sum_array_1[2], int sum_array_0[2], int *out) {
// Step 2: Initialize local variables
int sum_w1;
int sum_w2;
int sum_w3;
int sum_w4;
int sum_w5;
int temp_l83_i10_w1;
int temp_l83_i1_w1;
// Initialization done
sum_w3 = sum_array_0[1] + sum_array_1[0];
temp_l83_i1_w1 = x_0[0] * y_0[0];
temp_l83_i10_w1 = x_3[0] * y_3[0];
sum_w5 = 0 + temp_l83_i1_w1;
sum_w4 = sum_w5 + sum_array_0[0];
sum_w2 = sum_w4 + sum_w3;
sum_w1 = sum_w2 + sum_array_1[1];
*out = sum_w1 + temp_l83_i10_w1;
}
void n10_dotprod_parallel2(short y_0[1], short y_1[4], short y_2[4], short y_3[1], short x_0[1], short x_1[4], short x_2[4], short x_3[1], int *out) {
// Step 2: Initialize local variables
int sum_array_0[2];
int sum_array_1[2];
// Initialization done
#pragma HLS dataflow
parallel_0(x_1,y_1,sum_array_0);
parallel_0(x_2,y_2,sum_array_1);
epilogue(x_0,y_0,y_3,x_3,sum_array_1,sum_array_0,out);
}
|
the_stack_data/178266562.c
|
/**
*
* Exercise 5-1: As written, getint trats a + or - not followed by a digit as a
* valid representation of zero. Fix it to push such a character back onto the input
*
* */
#include <stdio.h>
#include <ctype.h>
#define SIZE 20
int getch(void);
void ungetch(int);
int getint(int *pn)
{
int c, sign;
while(isspace(c = getch())) // skip white space
;
if (!isdigit(c) && c != EOF && c != '+' && c != '-') {
ungetch(c); // not a number
return 0;
}
sign = (c == '-') ? -1 : 1;
if (c == '+' || c == '-') {
c = getch();
if (!isdigit(c)) {
int sign_check = sign == 1 ? '+' : '-';
ungetch(sign_check);
return 0;
}
}
for (*pn = 0; isdigit(c); c = getch()) {
*pn = 10 * *pn + (c - '0');
}
*pn *= sign;
if (c != EOF) {
ungetch(c);
}
return c;
}
int main()
{
int n, i, array[SIZE], getint(int *);
for (i = 0; i < SIZE; i++) {
array[i] = 0;
}
for (n = 0; n < SIZE && getint(&array[n]) != EOF; n++)
;
array[++n] = '\0';
for (i = 0; array[i] != '\0'; i++) {
printf("%d", array[i]);
}
printf("\n");
return 0;
}
|
the_stack_data/31387635.c
|
int main(void) {
1 == 2.0;
return 1;
}
|
the_stack_data/109638.c
|
/*===- UserPoolSystem.cpp - Implementation of callbacks needed by runtimes ===*/
/* */
/* SAFECode Compiler */
/* */
/* This file was developed by the LLVM research group and is distributed */
/* under the University of Illinois Open Source License. See LICENSE.TXT for */
/* details. */
/* */
/*===----------------------------------------------------------------------===*/
/* */
/* This file implements the callbacks for userspace code that are required by */
/* the various SAFECode runtime libraries. */
/* */
/*===----------------------------------------------------------------------===*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/mman.h>
/* Linux and *BSD tend to have these flags named differently. */
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
# define MAP_ANONYMOUS MAP_ANON
#endif /* defined(MAP_ANON) && !defined(MAP_ANONYMOUS) */
void
poolcheckfail (const char * msg, int i, void* p)
{
fprintf (stderr, "poolcheckfail: %s: %x : %p\n", msg, i, p);
fflush (stderr);
}
void
poolcheckfatal (const char * msg, int i)
{
fprintf (stderr, "poolcheckfatal: %s: %x\n", msg, i);
fflush (stderr);
exit (1);
}
void
poolcheckinfo (const char * msg, int i)
{
printf ("poolcheckinfo: %s %x\n", msg, i);
fflush (stdout);
return;
}
void
poolcheckinfo2 (const char * msg, int a, int b)
{
printf ("poolcheckinfo: %s %x %x\n", msg, a, b);
fflush (stdout);
return;
}
static volatile unsigned pcmsize = 0;
void *
poolcheckmalloc (unsigned int power)
{
void * Addr;
Addr = mmap(0, 4096*(1U << power), PROT_READ|PROT_WRITE,
MAP_SHARED|MAP_ANONYMOUS, -1, 0);
if (Addr != (void *)-1) pcmsize += 4096*(1U << power);
return (Addr == (void *)(-1)) ? 0 : Addr;
}
void *
sp_malloc (unsigned int size)
{
return malloc (size);
}
void
printpoolinfo (void *Pool)
{
return;
}
int
llva_load_lif (int i)
{
return 0;
}
int
llva_save_lif ()
{
return 0;
}
int
llva_save_tsc ()
{
return 0;
}
|
the_stack_data/184517542.c
|
/*
============================================================================
Name : 2048.c
Author : Maurits van der Schee
Revise : QAIU
Description : Console version of the game "2048" for GNU/Linux
============================================================================
*/
//本源码来自ArchLinux的aur,本人仅做适配手机的修改
//QQ:736226400
#define _XOPEN_SOURCE 500
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <termios.h>
#include <stdbool.h>
#include <stdint.h>
#include <time.h>
#include <signal.h>
#define SIZE 4
uint32_t score = 0;
uint8_t scheme = 0;
void getColor(uint8_t value, char *color, size_t length)
{
uint8_t original[] = { 8, 255, 1, 255, 2, 255, 3, 255, 4, 255, 5, 255, 6, 255, 7, 255, 9, 0, 10, 0, 11, 0, 12, 0, 13, 0, 14, 0, 255, 0, 255, 0 };
uint8_t blackwhite[] = { 232, 255, 234, 255, 236, 255, 238, 255, 240, 255, 242, 255, 244, 255, 246, 0, 248, 0, 249, 0, 250, 0, 251, 0, 252, 0, 253, 0, 254, 0, 255, 0 };
uint8_t bluered[] = { 235, 255, 63, 255, 57, 255, 93, 255, 129, 255, 165, 255, 201, 255, 200, 255, 199, 255, 198, 255, 197, 255, 196, 255, 196, 255, 196, 255, 196, 255, 196, 255 };
uint8_t *schemes[] = { original, blackwhite, bluered };
uint8_t *background = schemes[scheme] + 0;
uint8_t *foreground = schemes[scheme] + 1;
if (value > 0)
while (value--)
{
if (background + 2 < schemes[scheme] + sizeof(original))
{
background += 2;
foreground += 2;
}
}
snprintf(color, length, "\033[38;5;%d;48;5;%dm", *foreground, *background);
}
void drawBoard(uint8_t board[SIZE][SIZE])
{
uint8_t x, y;
char c;
char color[40], reset[] = "\033[m";
printf("\033[H");
printf("2048Game %17d pts\n\n", score);
for (y = 0; y < SIZE; y++)
{
for (x = 0; x < SIZE; x++)
{
getColor(board[x][y], color, 40);
printf("%s", color);
printf(" ");
printf("%s", reset);
}
printf("\n");
for (x = 0; x < SIZE; x++)
{
getColor(board[x][y], color, 40);
printf("%s", color);
if (board[x][y] != 0)
{
char s[8];
snprintf(s, 8, "%u", (uint32_t) 1 << board[x][y]);
uint8_t t = 7 - strlen(s);
printf("%*s%s%*s", t - t / 2, "", s, t / 2, "");
}
else
{
printf(" · ");
}
printf("%s", reset);
}
printf("\n");
for (x = 0; x < SIZE; x++)
{
getColor(board[x][y], color, 40);
printf("%s", color);
printf(" ");
printf("%s", reset);
}
printf("\n");
}
printf("\n");
printf("Move:2468/WASD/←↑→↓ Quit:q \n");
printf("\033[A"); // one line up
}
uint8_t findTarget(uint8_t array[SIZE], uint8_t x, uint8_t stop)
{
uint8_t t;
// if the position is already on the first, don't evaluate
if (x == 0)
{
return x;
}
for (t = x - 1; t >= 0; t--)
{
if (array[t] != 0)
{
if (array[t] != array[x])
{
// merge is not possible, take next position
return t + 1;
}
return t;
}
else
{
// we should not slide further, return this one
if (t == stop)
{
return t;
}
}
}
// we did not find a
return x;
}
bool slideArray(uint8_t array[SIZE])
{
bool success = false;
uint8_t x, t, stop = 0;
for (x = 0; x < SIZE; x++)
{
if (array[x] != 0)
{
t = findTarget(array, x, stop);
// if target is not original position, then move or merge
if (t != x)
{
// if target is zero, this is a move
if (array[t] == 0)
{
array[t] = array[x];
}
else if (array[t] == array[x])
{
// merge (increase power of two)
array[t]++;
// increase score
score += (uint32_t) 1 << array[t];
// set stop to avoid double merge
stop = t + 1;
}
array[x] = 0;
success = true;
}
}
}
return success;
}
void rotateBoard(uint8_t board[SIZE][SIZE])
{
uint8_t i, j, n = SIZE;
uint8_t tmp;
for (i = 0; i < n / 2; i++)
{
for (j = i; j < n - i - 1; j++)
{
tmp = board[i][j];
board[i][j] = board[j][n - i - 1];
board[j][n - i - 1] = board[n - i - 1][n - j - 1];
board[n - i - 1][n - j - 1] = board[n - j - 1][i];
board[n - j - 1][i] = tmp;
}
}
}
bool moveUp(uint8_t board[SIZE][SIZE])
{
bool success = false;
uint8_t x;
for (x = 0; x < SIZE; x++)
{
success |= slideArray(board[x]);
}
return success;
}
bool moveLeft(uint8_t board[SIZE][SIZE])
{
bool success;
rotateBoard(board);
success = moveUp(board);
rotateBoard(board);
rotateBoard(board);
rotateBoard(board);
return success;
}
bool moveDown(uint8_t board[SIZE][SIZE])
{
bool success;
rotateBoard(board);
rotateBoard(board);
success = moveUp(board);
rotateBoard(board);
rotateBoard(board);
return success;
}
bool moveRight(uint8_t board[SIZE][SIZE])
{
bool success;
rotateBoard(board);
rotateBoard(board);
rotateBoard(board);
success = moveUp(board);
rotateBoard(board);
return success;
}
bool findPairDown(uint8_t board[SIZE][SIZE])
{
bool success = false;
uint8_t x, y;
for (x = 0; x < SIZE; x++)
{
for (y = 0; y < SIZE - 1; y++)
{
if (board[x][y] == board[x][y + 1])
return true;
}
}
return success;
}
uint8_t countEmpty(uint8_t board[SIZE][SIZE])
{
uint8_t x, y;
uint8_t count = 0;
for (x = 0; x < SIZE; x++)
{
for (y = 0; y < SIZE; y++)
{
if (board[x][y] == 0)
{
count++;
}
}
}
return count;
}
bool gameEnded(uint8_t board[SIZE][SIZE])
{
bool ended = true;
if (countEmpty(board) > 0)
return false;
if (findPairDown(board))
return false;
rotateBoard(board);
if (findPairDown(board))
ended = false;
rotateBoard(board);
rotateBoard(board);
rotateBoard(board);
return ended;
}
void addRandom(uint8_t board[SIZE][SIZE])
{
static bool initialized = false;
uint8_t x, y;
uint8_t r, len = 0;
uint8_t n, list[SIZE * SIZE][2];
if (!initialized)
{
srand(time(NULL));
initialized = true;
}
for (x = 0; x < SIZE; x++)
{
for (y = 0; y < SIZE; y++)
{
if (board[x][y] == 0)
{
list[len][0] = x;
list[len][1] = y;
len++;
}
}
}
if (len > 0)
{
r = rand() % len;
x = list[r][0];
y = list[r][1];
n = (rand() % 10) / 9 + 1;
board[x][y] = n;
}
}
void initBoard(uint8_t board[SIZE][SIZE])
{
uint8_t x, y;
for (x = 0; x < SIZE; x++)
{
for (y = 0; y < SIZE; y++)
{
board[x][y] = 0;
}
}
addRandom(board);
addRandom(board);
drawBoard(board);
score = 0;
}
void setBufferedInput(bool enable)
{
static bool enabled = true;
static struct termios old;
struct termios news;
if (enable && !enabled)
{
// restore the former settings
tcsetattr(STDIN_FILENO, TCSANOW, &old);
// set the news state
enabled = true;
}
else if (!enable && enabled)
{
// get the terminal settings for standard input
tcgetattr(STDIN_FILENO, &news);
// we want to keep the old setting to restore them at the end
old = news;
// disable canonical mode (buffered i/o) and local echo
news.c_lflag &= (~ICANON & ~ECHO);
// set the news settings immediately
tcsetattr(STDIN_FILENO, TCSANOW, &news);
// set the news state
enabled = false;
}
}
int test()
{
uint8_t array[SIZE];
// these are exponents with base 2 (1=2 2=4 3=8)
uint8_t data[] = {
0, 0, 0, 1, 1, 0, 0, 0,
0, 0, 1, 1, 2, 0, 0, 0,
0, 1, 0, 1, 2, 0, 0, 0,
1, 0, 0, 1, 2, 0, 0, 0,
1, 0, 1, 0, 2, 0, 0, 0,
1, 1, 1, 0, 2, 1, 0, 0,
1, 0, 1, 1, 2, 1, 0, 0,
1, 1, 0, 1, 2, 1, 0, 0,
1, 1, 1, 1, 2, 2, 0, 0,
2, 2, 1, 1, 3, 2, 0, 0,
1, 1, 2, 2, 2, 3, 0, 0,
3, 0, 1, 1, 3, 2, 0, 0,
2, 0, 1, 1, 2, 2, 0, 0
};
uint8_t *in, *out;
uint8_t t, tests;
uint8_t i;
bool success = true;
tests = (sizeof(data) / sizeof(data[0])) / (2 * SIZE);
for (t = 0; t < tests; t++)
{
in = data + t * 2 * SIZE;
out = in + SIZE;
for (i = 0; i < SIZE; i++)
{
array[i] = in[i];
}
slideArray(array);
for (i = 0; i < SIZE; i++)
{
if (array[i] != out[i])
{
success = false;
}
}
if (success == false)
{
for (i = 0; i < SIZE; i++)
{
printf("%d ", in[i]);
}
printf("=> ");
for (i = 0; i < SIZE; i++)
{
printf("%d ", array[i]);
}
printf("expected ");
for (i = 0; i < SIZE; i++)
{
printf("%d ", in[i]);
}
printf("=> ");
for (i = 0; i < SIZE; i++)
{
printf("%d ", out[i]);
}
printf("\n");
break;
}
}
if (success)
{
printf("All %u tests executed successfully\n", tests);
}
return !success;
}
void signal_callback_handler(int signum)
{
printf(" quit? \n");
// setBufferedInput(true);
// printf("\033[?25h\033[m你要退出游戏吗?y/n");
// exit(signum);
}
int main(int argc, char *argv[])
{
uint8_t board[SIZE][SIZE];
char c;
bool success;
if (argc == 2 && strcmp(argv[1], "test") == 0)
{
return test();
}
if (argc == 2 && strcmp(argv[1], "blackwhite") == 0)
{
scheme = 1;
}
if (argc == 2 && strcmp(argv[1], "bluered") == 0)
{
scheme = 2;
}
printf("\033[?25l\033[2J");
// register signal handler for when ctrl-c is pressed
signal(SIGINT, signal_callback_handler);
initBoard(board);
setBufferedInput(false);
while (true)
{
c = getchar();
if (c == -1)
{ //TODO: maybe replace this -1 with a pre-defined constant(if it's in one of header files)
puts("\nError! Cannot read keyboard input!");
break;
}
switch (c)
{
case 97: // 'a' key
case 104: // 'h' key
case 68: // left arrow
case '4':
success = moveLeft(board);
break;
case 100: // 'd' key
case 108: // 'l' key
case 67: // right arrow
case '6':
success = moveRight(board);
break;
case 119: // 'w' key
case 107: // 'k' key
case 65: // up arrow
case '2':
success = moveUp(board);
break;
case 115: // 's' key
case 106: // 'j' key
case 66: // down arrow
case '8':
success = moveDown(board);
break;
default:
success = false;
}
if (success)
{
drawBoard(board);
usleep(150000);
addRandom(board);
drawBoard(board);
if (gameEnded(board))
{
printf(" GAME OVER! Again?(y/n) \n");
star:
c = getchar();
if (c == 'y')
{
initBoard(board);
}
else if (c == 'n')
break;
else
goto star;
drawBoard(board);
}
}
if (c == 'q')
{
printf(" QUIT? (y/n) \n");
c = getchar();
if (c == 'y')
{
break;
}
drawBoard(board);
}
if (c == 'r')
{
printf(" RESTART? (y/n) \n");
c = getchar();
if (c == 'y')
{
initBoard(board);
}
drawBoard(board);
}
}
setBufferedInput(true);
printf("\033[?25h\033[m");
return EXIT_SUCCESS;
}
|
the_stack_data/23574201.c
|
/*
SDL_mixer: An audio mixer library based on the SDL library
Copyright (C) 1997-2022 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 file is used to support SDL_LoadMUS playback of FLAC files.
~ Austen Dicken ([email protected])
*/
#ifdef MUSIC_FLAC
#include "SDL_loadso.h"
#include "SDL_assert.h"
#include "music_flac.h"
#include "utils.h"
#include <FLAC/stream_decoder.h>
typedef struct {
int loaded;
void *handle;
FLAC__StreamDecoder *(*FLAC__stream_decoder_new)(void);
void (*FLAC__stream_decoder_delete)(FLAC__StreamDecoder *decoder);
FLAC__StreamDecoderInitStatus (*FLAC__stream_decoder_init_stream)(
FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderReadCallback read_callback,
FLAC__StreamDecoderSeekCallback seek_callback,
FLAC__StreamDecoderTellCallback tell_callback,
FLAC__StreamDecoderLengthCallback length_callback,
FLAC__StreamDecoderEofCallback eof_callback,
FLAC__StreamDecoderWriteCallback write_callback,
FLAC__StreamDecoderMetadataCallback metadata_callback,
FLAC__StreamDecoderErrorCallback error_callback,
void *client_data);
FLAC__bool (*FLAC__stream_decoder_finish)(FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_flush)(FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_single)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_until_end_of_metadata)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_process_until_end_of_stream)(
FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_seek_absolute)(
FLAC__StreamDecoder *decoder,
FLAC__uint64 sample);
FLAC__StreamDecoderState (*FLAC__stream_decoder_get_state)(
const FLAC__StreamDecoder *decoder);
FLAC__uint64 (*FLAC__stream_decoder_get_total_samples)(
const FLAC__StreamDecoder *decoder);
FLAC__bool (*FLAC__stream_decoder_set_metadata_respond)(
FLAC__StreamDecoder *decoder,
FLAC__MetadataType type);
} flac_loader;
static flac_loader flac;
#ifdef FLAC_DYNAMIC
#define FUNCTION_LOADER(FUNC, SIG) \
flac.FUNC = (SIG) SDL_LoadFunction(flac.handle, #FUNC); \
if (flac.FUNC == NULL) { SDL_UnloadObject(flac.handle); return -1; }
#else
#define FUNCTION_LOADER(FUNC, SIG) \
flac.FUNC = FUNC; \
if (flac.FUNC == NULL) { Mix_SetError("Missing FLAC.framework"); return -1; }
#endif
static int FLAC_Load(void)
{
if (flac.loaded == 0) {
#ifdef FLAC_DYNAMIC
flac.handle = SDL_LoadObject(FLAC_DYNAMIC);
if (flac.handle == NULL) {
return -1;
}
#endif
FUNCTION_LOADER(FLAC__stream_decoder_new, FLAC__StreamDecoder *(*)(void))
FUNCTION_LOADER(FLAC__stream_decoder_delete, void (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_init_stream, FLAC__StreamDecoderInitStatus (*)(
FLAC__StreamDecoder *,
FLAC__StreamDecoderReadCallback,
FLAC__StreamDecoderSeekCallback,
FLAC__StreamDecoderTellCallback,
FLAC__StreamDecoderLengthCallback,
FLAC__StreamDecoderEofCallback,
FLAC__StreamDecoderWriteCallback,
FLAC__StreamDecoderMetadataCallback,
FLAC__StreamDecoderErrorCallback,
void *))
FUNCTION_LOADER(FLAC__stream_decoder_finish, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_flush, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_single, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_until_end_of_metadata, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_process_until_end_of_stream, FLAC__bool (*)(FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_seek_absolute, FLAC__bool (*)(FLAC__StreamDecoder *, FLAC__uint64))
FUNCTION_LOADER(FLAC__stream_decoder_get_state, FLAC__StreamDecoderState (*)(const FLAC__StreamDecoder *decoder))
FUNCTION_LOADER(FLAC__stream_decoder_get_total_samples,
FLAC__uint64 (*)(const FLAC__StreamDecoder *))
FUNCTION_LOADER(FLAC__stream_decoder_set_metadata_respond,
FLAC__bool (*)(FLAC__StreamDecoder *,
FLAC__MetadataType))
}
++flac.loaded;
return 0;
}
static void FLAC_Unload(void)
{
if (flac.loaded == 0) {
return;
}
if (flac.loaded == 1) {
#ifdef FLAC_DYNAMIC
SDL_UnloadObject(flac.handle);
#endif
}
--flac.loaded;
}
typedef struct {
int volume;
int play_count;
FLAC__StreamDecoder *flac_decoder;
unsigned sample_rate;
unsigned channels;
unsigned bits_per_sample;
SDL_RWops *src;
int freesrc;
SDL_AudioStream *stream;
int loop;
FLAC__int64 pcm_pos;
FLAC__int64 full_length;
SDL_bool loop_flag;
FLAC__int64 loop_start;
FLAC__int64 loop_end;
FLAC__int64 loop_len;
Mix_MusicMetaTags tags;
} FLAC_Music;
static int FLAC_Seek(void *context, double position);
static FLAC__StreamDecoderReadStatus flac_read_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__byte buffer[],
size_t *bytes,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
(void)decoder;
/* make sure there is something to be reading */
if (*bytes > 0) {
*bytes = SDL_RWread (data->src, buffer, sizeof (FLAC__byte), *bytes);
if (*bytes == 0) { /* error or no data was read (EOF) */
return FLAC__STREAM_DECODER_READ_STATUS_END_OF_STREAM;
} else { /* data was read, continue */
return FLAC__STREAM_DECODER_READ_STATUS_CONTINUE;
}
} else {
return FLAC__STREAM_DECODER_READ_STATUS_ABORT;
}
}
static FLAC__StreamDecoderSeekStatus flac_seek_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 absolute_byte_offset,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
(void)decoder;
if (SDL_RWseek(data->src, (Sint64)absolute_byte_offset, RW_SEEK_SET) < 0) {
return FLAC__STREAM_DECODER_SEEK_STATUS_ERROR;
} else {
return FLAC__STREAM_DECODER_SEEK_STATUS_OK;
}
}
static FLAC__StreamDecoderTellStatus flac_tell_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 *absolute_byte_offset,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
(void)decoder;
if (pos < 0) {
return FLAC__STREAM_DECODER_TELL_STATUS_ERROR;
} else {
*absolute_byte_offset = (FLAC__uint64)pos;
return FLAC__STREAM_DECODER_TELL_STATUS_OK;
}
}
static FLAC__StreamDecoderLengthStatus flac_length_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__uint64 *stream_length,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
Sint64 length = SDL_RWseek(data->src, 0, RW_SEEK_END);
(void)decoder;
if (SDL_RWseek(data->src, pos, RW_SEEK_SET) != pos || length < 0) {
/* there was an error attempting to return the stream to the original
* position, or the length was invalid. */
return FLAC__STREAM_DECODER_LENGTH_STATUS_ERROR;
} else {
*stream_length = (FLAC__uint64)length;
return FLAC__STREAM_DECODER_LENGTH_STATUS_OK;
}
}
static FLAC__bool flac_eof_music_cb(
const FLAC__StreamDecoder *decoder,
void *client_data)
{
FLAC_Music *data = (FLAC_Music*)client_data;
Sint64 pos = SDL_RWtell(data->src);
Sint64 end = SDL_RWseek(data->src, 0, RW_SEEK_END);
(void)decoder;
/* was the original position equal to the end (a.k.a. the seek didn't move)? */
if (pos == end) {
/* must be EOF */
return true;
} else {
/* not EOF, return to the original position */
SDL_RWseek(data->src, pos, RW_SEEK_SET);
return false;
}
}
static FLAC__StreamDecoderWriteStatus flac_write_music_cb(
const FLAC__StreamDecoder *decoder,
const FLAC__Frame *frame,
const FLAC__int32 *const buffer[],
void *client_data)
{
FLAC_Music *music = (FLAC_Music *)client_data;
Sint16 *data;
unsigned int i, j, channels;
int shift_amount = 0, amount;
(void)decoder;
if (!music->stream) {
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
switch (music->bits_per_sample) {
case 16:
shift_amount = 0;
break;
case 20:
shift_amount = 4;
break;
case 24:
shift_amount = 8;
break;
default:
SDL_SetError("FLAC decoder doesn't support %d bits_per_sample", music->bits_per_sample);
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (music->channels == 3) {
/* We'll just drop the center channel for now */
channels = 2;
} else {
channels = music->channels;
}
data = SDL_stack_alloc(Sint16, (frame->header.blocksize * channels));
if (!data) {
SDL_SetError("Couldn't allocate %d bytes stack memory", (int)(frame->header.blocksize * channels * sizeof(*data)));
return FLAC__STREAM_DECODER_WRITE_STATUS_ABORT;
}
if (music->channels == 3) {
Sint16 *dst = data;
for (i = 0; i < frame->header.blocksize; ++i) {
Sint16 FL = (Sint16)(buffer[0][i] >> shift_amount);
Sint16 FR = (Sint16)(buffer[1][i] >> shift_amount);
Sint16 FCmix = (Sint16)((buffer[2][i] >> shift_amount) * 0.5f);
int sample;
sample = (FL + FCmix);
if (sample > SDL_MAX_SINT16) {
*dst = SDL_MAX_SINT16;
} else if (sample < SDL_MIN_SINT16) {
*dst = SDL_MIN_SINT16;
} else {
*dst = (Sint16)sample;
}
++dst;
sample = (FR + FCmix);
if (sample > SDL_MAX_SINT16) {
*dst = SDL_MAX_SINT16;
} else if (sample < SDL_MIN_SINT16) {
*dst = SDL_MIN_SINT16;
} else {
*dst = (Sint16)sample;
}
++dst;
}
} else {
for (i = 0; i < channels; ++i) {
Sint16 *dst = data + i;
for (j = 0; j < frame->header.blocksize; ++j) {
*dst = (Sint16)(buffer[i][j] >> shift_amount);
dst += channels;
}
}
}
amount = (int)(frame->header.blocksize * channels * sizeof(*data));
music->pcm_pos += (FLAC__int64) frame->header.blocksize;
if (music->loop && (music->play_count != 1) &&
(music->pcm_pos >= music->loop_end)) {
amount -= (music->pcm_pos - music->loop_end) * channels * (int)sizeof(*data);
music->loop_flag = SDL_TRUE;
}
SDL_AudioStreamPut(music->stream, data, amount);
SDL_stack_free(data);
return FLAC__STREAM_DECODER_WRITE_STATUS_CONTINUE;
}
static void flac_metadata_music_cb(
const FLAC__StreamDecoder *decoder,
const FLAC__StreamMetadata *metadata,
void *client_data)
{
FLAC_Music *music = (FLAC_Music *)client_data;
const FLAC__StreamMetadata_VorbisComment *vc;
int channels;
unsigned rate;
char *param, *argument, *value;
SDL_bool is_loop_length = SDL_FALSE;
(void)decoder;
if (metadata->type == FLAC__METADATA_TYPE_STREAMINFO) {
music->sample_rate = metadata->data.stream_info.sample_rate;
music->channels = metadata->data.stream_info.channels;
music->bits_per_sample = metadata->data.stream_info.bits_per_sample;
/*printf("FLAC: Sample rate = %d, channels = %d, bits_per_sample = %d\n", music->sample_rate, music->channels, music->bits_per_sample);*/
/* SDL's channel mapping and FLAC channel mapping are the same,
except for 3 channels: SDL is FL FR LFE and FLAC is FL FR FC
*/
if (music->channels == 3) {
channels = 2;
} else {
channels = (int)music->channels;
}
/* We check for NULL stream later when we get data */
SDL_assert(!music->stream);
music->stream = SDL_NewAudioStream(AUDIO_S16SYS, (Uint8)channels, (int)music->sample_rate,
music_spec.format, music_spec.channels, music_spec.freq);
} else if (metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
FLAC__uint32 i;
vc = &metadata->data.vorbis_comment;
rate = music->sample_rate;
for (i = 0; i < vc->num_comments; ++i) {
param = SDL_strdup((const char *) vc->comments[i].entry);
argument = param;
value = SDL_strchr(param, '=');
if (value == NULL) {
value = param + SDL_strlen(param);
} else {
*(value++) = '\0';
}
/* Want to match LOOP-START, LOOP_START, etc. Remove - or _ from
* string if it is present at position 4. */
if (_Mix_IsLoopTag(argument) && ((argument[4] == '_') || (argument[4] == '-'))) {
SDL_memmove(argument + 4, argument + 5, SDL_strlen(argument) - 4);
}
if (SDL_strcasecmp(argument, "LOOPSTART") == 0)
music->loop_start = _Mix_ParseTime(value, rate);
else if (SDL_strcasecmp(argument, "LOOPLENGTH") == 0) {
music->loop_len = SDL_strtoll(value, NULL, 10);
is_loop_length = SDL_TRUE;
} else if (SDL_strcasecmp(argument, "LOOPEND") == 0) {
music->loop_end = _Mix_ParseTime(value, rate);
is_loop_length = SDL_FALSE;
} else if (SDL_strcasecmp(argument, "TITLE") == 0) {
meta_tags_set(&music->tags, MIX_META_TITLE, value);
} else if (SDL_strcasecmp(argument, "ARTIST") == 0) {
meta_tags_set(&music->tags, MIX_META_ARTIST, value);
} else if (SDL_strcasecmp(argument, "ALBUM") == 0) {
meta_tags_set(&music->tags, MIX_META_ALBUM, value);
} else if (SDL_strcasecmp(argument, "COPYRIGHT") == 0) {
meta_tags_set(&music->tags, MIX_META_COPYRIGHT, value);
}
SDL_free(param);
}
if (is_loop_length) {
music->loop_end = music->loop_start + music->loop_len;
} else {
music->loop_len = music->loop_end - music->loop_start;
}
/* Ignore invalid loop tag */
if (music->loop_start < 0 || music->loop_len < 0 || music->loop_end < 0) {
music->loop_start = 0;
music->loop_len = 0;
music->loop_end = 0;
}
}
}
static void flac_error_music_cb(
const FLAC__StreamDecoder *decoder,
FLAC__StreamDecoderErrorStatus status,
void *client_data)
{
(void)decoder;
(void)client_data;
/* print an SDL error based on the error status */
switch (status) {
case FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC:
SDL_SetError("Error processing the FLAC file [LOST_SYNC].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_BAD_HEADER:
SDL_SetError("Error processing the FLAC file [BAD_HEADER].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_FRAME_CRC_MISMATCH:
SDL_SetError("Error processing the FLAC file [CRC_MISMATCH].");
break;
case FLAC__STREAM_DECODER_ERROR_STATUS_UNPARSEABLE_STREAM:
SDL_SetError("Error processing the FLAC file [UNPARSEABLE].");
break;
default:
SDL_SetError("Error processing the FLAC file [UNKNOWN].");
break;
}
}
/* Load an FLAC stream from an SDL_RWops object */
static void *FLAC_CreateFromRW(SDL_RWops *src, int freesrc)
{
FLAC_Music *music;
int init_stage = 0;
int was_error = 1;
FLAC__int64 full_length;
music = (FLAC_Music *)SDL_calloc(1, sizeof(*music));
if (!music) {
SDL_OutOfMemory();
return NULL;
}
music->src = src;
music->volume = MIX_MAX_VOLUME;
music->flac_decoder = flac.FLAC__stream_decoder_new();
if (music->flac_decoder) {
init_stage++; /* stage 1! */
flac.FLAC__stream_decoder_set_metadata_respond(music->flac_decoder,
FLAC__METADATA_TYPE_VORBIS_COMMENT);
if (flac.FLAC__stream_decoder_init_stream(
music->flac_decoder,
flac_read_music_cb, flac_seek_music_cb,
flac_tell_music_cb, flac_length_music_cb,
flac_eof_music_cb, flac_write_music_cb,
flac_metadata_music_cb, flac_error_music_cb,
music) == FLAC__STREAM_DECODER_INIT_STATUS_OK) {
init_stage++; /* stage 2! */
if (flac.FLAC__stream_decoder_process_until_end_of_metadata(music->flac_decoder)) {
was_error = 0;
} else {
SDL_SetError("FLAC__stream_decoder_process_until_end_of_metadata() failed");
}
} else {
SDL_SetError("FLAC__stream_decoder_init_stream() failed");
}
} else {
SDL_SetError("FLAC__stream_decoder_new() failed");
}
if (was_error) {
switch (init_stage) {
case 2:
flac.FLAC__stream_decoder_finish(music->flac_decoder); /* fallthrough */
case 1:
flac.FLAC__stream_decoder_delete(music->flac_decoder); /* fallthrough */
case 0:
SDL_free(music);
break;
}
return NULL;
}
/* loop_start, loop_end and loop_len get set by metadata callback if tags
* are present in metadata.
*/
full_length = (FLAC__int64) flac.FLAC__stream_decoder_get_total_samples(music->flac_decoder);
if ((music->loop_end > 0) && (music->loop_end <= full_length) &&
(music->loop_start < music->loop_end)) {
music->loop = 1;
}
music->full_length = full_length;
music->freesrc = freesrc;
return music;
}
static const char* FLAC_GetMetaTag(void *context, Mix_MusicMetaTag tag_type)
{
FLAC_Music *music = (FLAC_Music *)context;
return meta_tags_get(&music->tags, tag_type);
}
/* Set the volume for an FLAC stream */
static void FLAC_SetVolume(void *context, int volume)
{
FLAC_Music *music = (FLAC_Music *)context;
music->volume = volume;
}
/* Get the volume for an FLAC stream */
static int FLAC_GetVolume(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return music->volume;
}
/* Start playback of a given FLAC stream */
static int FLAC_Play(void *context, int play_count)
{
FLAC_Music *music = (FLAC_Music *)context;
music->play_count = play_count;
return FLAC_Seek(music, 0.0);
}
/* Read some FLAC stream data and convert it for output */
static int FLAC_GetSome(void *context, void *data, int bytes, SDL_bool *done)
{
FLAC_Music *music = (FLAC_Music *)context;
int filled;
filled = SDL_AudioStreamGet(music->stream, data, bytes);
if (filled != 0) {
return filled;
}
if (!music->play_count) {
/* All done */
*done = SDL_TRUE;
return 0;
}
if (!flac.FLAC__stream_decoder_process_single(music->flac_decoder)) {
SDL_SetError("FLAC__stream_decoder_process_single() failed");
return -1;
}
if (music->loop_flag) {
music->pcm_pos = music->loop_start;
if (flac.FLAC__stream_decoder_seek_absolute(music->flac_decoder, (FLAC__uint64)music->loop_start) ==
FLAC__STREAM_DECODER_SEEK_ERROR) {
SDL_SetError("FLAC__stream_decoder_seek_absolute() failed");
flac.FLAC__stream_decoder_flush(music->flac_decoder);
return -1;
} else {
int play_count = -1;
if (music->play_count > 0) {
play_count = (music->play_count - 1);
}
music->play_count = play_count;
music->loop_flag = SDL_FALSE;
}
}
if (flac.FLAC__stream_decoder_get_state(music->flac_decoder) == FLAC__STREAM_DECODER_END_OF_STREAM) {
if (music->play_count == 1) {
music->play_count = 0;
SDL_AudioStreamFlush(music->stream);
} else {
int play_count = -1;
if (music->play_count > 0) {
play_count = (music->play_count - 1);
}
if (FLAC_Play(music, play_count) < 0) {
return -1;
}
}
}
return 0;
}
/* Play some of a stream previously started with FLAC_play() */
static int FLAC_GetAudio(void *context, void *data, int bytes)
{
FLAC_Music *music = (FLAC_Music *)context;
return music_pcm_getaudio(context, data, bytes, music->volume, FLAC_GetSome);
}
/* Jump (seek) to a given position (position is in seconds) */
static int FLAC_Seek(void *context, double position)
{
FLAC_Music *music = (FLAC_Music *)context;
FLAC__uint64 seek_sample = (FLAC__uint64) (music->sample_rate * position);
SDL_AudioStreamClear(music->stream);
music->pcm_pos = (FLAC__int64) seek_sample;
if (!flac.FLAC__stream_decoder_seek_absolute(music->flac_decoder, seek_sample)) {
if (flac.FLAC__stream_decoder_get_state(music->flac_decoder) == FLAC__STREAM_DECODER_SEEK_ERROR) {
flac.FLAC__stream_decoder_flush(music->flac_decoder);
}
SDL_SetError("Seeking of FLAC stream failed: libFLAC seek failed.");
return -1;
}
return 0;
}
static double FLAC_Tell(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return (double)music->pcm_pos / music->sample_rate;
}
/* Return music duration in seconds */
static double FLAC_Duration(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
return (double)music->full_length / music->sample_rate;
}
static double FLAC_LoopStart(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_start / music->sample_rate;
}
return -1.0;
}
static double FLAC_LoopEnd(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_end / music->sample_rate;
}
return -1.0;
}
static double FLAC_LoopLength(void *music_p)
{
FLAC_Music *music = (FLAC_Music *)music_p;
if (music->loop > 0) {
return (double)music->loop_len / music->sample_rate;
}
return -1.0;
}
/* Close the given FLAC_Music object */
static void FLAC_Delete(void *context)
{
FLAC_Music *music = (FLAC_Music *)context;
if (music) {
meta_tags_clear(&music->tags);
if (music->flac_decoder) {
flac.FLAC__stream_decoder_finish(music->flac_decoder);
flac.FLAC__stream_decoder_delete(music->flac_decoder);
}
if (music->stream) {
SDL_FreeAudioStream(music->stream);
}
if (music->freesrc) {
SDL_RWclose(music->src);
}
SDL_free(music);
}
}
Mix_MusicInterface Mix_MusicInterface_FLAC =
{
"FLAC",
MIX_MUSIC_FLAC,
MUS_FLAC,
SDL_FALSE,
SDL_FALSE,
FLAC_Load,
NULL, /* Open */
FLAC_CreateFromRW,
NULL, /* CreateFromFile */
FLAC_SetVolume,
FLAC_GetVolume,
FLAC_Play,
NULL, /* IsPlaying */
FLAC_GetAudio,
NULL, /* Jump */
FLAC_Seek,
FLAC_Tell,
FLAC_Duration,
FLAC_LoopStart,
FLAC_LoopEnd,
FLAC_LoopLength,
FLAC_GetMetaTag,/* GetMetaTag */
NULL, /* Pause */
NULL, /* Resume */
NULL, /* Stop */
FLAC_Delete,
NULL, /* Close */
FLAC_Unload
};
#endif /* MUSIC_FLAC */
/* vi: set ts=4 sw=4 expandtab: */
|
the_stack_data/825366.c
|
/*
Lista de Exercícios 01
Exercício 01
Autor: Murilo Carvalho
*/
#include <stdio.h>
int main(){
//Elabore um algoritmo que leia as 4 notas bimestrais de um aluno, calcule e apresente a média obtida.
float nota1=0.0;
float nota2=0.0;
float nota3=0.0;
float nota4=0.0;
float media=0.0;
printf("***** Calcular nota do aluno *****");
printf("\n");
printf("Informe a nota do primeiro bimestre: ");
scanf("%f",¬a1);
printf("Informe a nota do segundo bimestre: ");
scanf("%f",¬a2);
printf("Informe a nota do terceiro bimestre: ");
scanf("%f",¬a3);
printf("Informe a nota do quarto bimestre: ");
scanf("%f",¬a4);
media = (nota1+nota2+nota3+nota4)/4;
printf("A media do(a) aluno(a): %.2f",media);
return 0;
}
|
the_stack_data/210857.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_recursive_factorial.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aborboll <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/17 18:52:27 by aborboll #+# #+# */
/* Updated: 2019/09/19 17:54:31 by aborboll ### ########.fr */
/* */
/* ************************************************************************** */
int ft_recursive_factorial(int nb)
{
if (nb < 0)
return (0);
if (nb == 1)
return (1);
return (nb * ft_recursive_factorial(nb - 1));
}
|
the_stack_data/76887.c
|
// #anon_enum$EMPTY=0$FULL=1
// file ior-thread.c line 69
enum anonymous$17 { EMPTY=0, FULL=1 };
// #anon_enum$LZMA_CHECK_NONE=0$LZMA_CHECK_CRC32=1$LZMA_CHECK_CRC64=4$LZMA_CHECK_SHA256=10
// file /usr/include/lzma/check.h line 27
enum anonymous$16 { LZMA_CHECK_NONE=0, LZMA_CHECK_CRC32=1, LZMA_CHECK_CRC64=4, LZMA_CHECK_SHA256=10 };
// #anon_enum$LZMA_OK=0$LZMA_STREAM_END=1$LZMA_NO_CHECK=2$LZMA_UNSUPPORTED_CHECK=3$LZMA_GET_CHECK=4$LZMA_MEM_ERROR=5$LZMA_MEMLIMIT_ERROR=6$LZMA_FORMAT_ERROR=7$LZMA_OPTIONS_ERROR=8$LZMA_DATA_ERROR=9$LZMA_BUF_ERROR=10$LZMA_PROG_ERROR=11
// file /usr/include/lzma/base.h line 57
enum anonymous$12 { LZMA_OK=0, LZMA_STREAM_END=1, LZMA_NO_CHECK=2, LZMA_UNSUPPORTED_CHECK=3, LZMA_GET_CHECK=4, LZMA_MEM_ERROR=5, LZMA_MEMLIMIT_ERROR=6, LZMA_FORMAT_ERROR=7, LZMA_OPTIONS_ERROR=8, LZMA_DATA_ERROR=9, LZMA_BUF_ERROR=10, LZMA_PROG_ERROR=11 };
// #anon_enum$LZMA_RESERVED_ENUM=0
// file /usr/include/lzma/base.h line 44
enum anonymous$8 { LZMA_RESERVED_ENUM=0 };
// #anon_enum$LZMA_RUN=0$LZMA_SYNC_FLUSH=1$LZMA_FULL_FLUSH=2$LZMA_FINISH=3
// file /usr/include/lzma/base.h line 250
enum anonymous$13 { LZMA_RUN=0, LZMA_SYNC_FLUSH=1, LZMA_FULL_FLUSH=2, LZMA_FINISH=3 };
// #anon_enum$TRACE_CTRL_PACKET=112$TRACE_CTRL_EXTERNAL=101
// file ../../lib/libtrace.h line 234
enum anonymous { TRACE_CTRL_PACKET=112, TRACE_CTRL_EXTERNAL=101 };
// #anon_enum$TRACE_DIR_OUTGOING=0$TRACE_DIR_INCOMING=1$TRACE_DIR_OTHER=2$TRACE_DIR_UNKNOWN=-1
// file libtrace.h line 519
enum anonymous$4 { TRACE_DIR_OUTGOING=0, TRACE_DIR_INCOMING=1, TRACE_DIR_OTHER=2, TRACE_DIR_UNKNOWN=-1 };
// #anon_enum$TRACE_DLT_ERROR=-1$TRACE_DLT_NULL=0$TRACE_DLT_EN10MB=1$TRACE_DLT_PPP=9$TRACE_DLT_ATM_RFC1483=11$TRACE_DLT_RAW=12$TRACE_DLT_OPENBSD_LOOP=108$TRACE_DLT_PPP_SERIAL=50$TRACE_DLT_LINKTYPE_RAW=101$TRACE_DLT_C_HDLC=104$TRACE_DLT_IEEE802_11=105$TRACE_DLT_LINUX_SLL=113$TRACE_DLT_PFLOG=117$TRACE_DLT_IEEE802_11_RADIO=127
// file libtrace.h line 278
enum anonymous$18 { TRACE_DLT_ERROR=-1, TRACE_DLT_NULL=0, TRACE_DLT_EN10MB=1, TRACE_DLT_PPP=9, TRACE_DLT_ATM_RFC1483=11, TRACE_DLT_RAW=12, TRACE_DLT_OPENBSD_LOOP=108, TRACE_DLT_PPP_SERIAL=50, TRACE_DLT_LINKTYPE_RAW=101, TRACE_DLT_C_HDLC=104, TRACE_DLT_IEEE802_11=105, TRACE_DLT_LINUX_SLL=113, TRACE_DLT_PFLOG=117, TRACE_DLT_IEEE802_11_RADIO=127 };
// #anon_enum$TRACE_EVENT_IOWAIT=0$TRACE_EVENT_SLEEP=1$TRACE_EVENT_PACKET=2$TRACE_EVENT_TERMINATE=3
// file libtrace.h line 1442
enum anonymous$19 { TRACE_EVENT_IOWAIT=0, TRACE_EVENT_SLEEP=1, TRACE_EVENT_PACKET=2, TRACE_EVENT_TERMINATE=3 };
// #anon_enum$TRACE_OPTION_OUTPUT_FILEFLAGS=0$TRACE_OPTION_OUTPUT_COMPRESS=1$TRACE_OPTION_OUTPUT_COMPRESSTYPE=2
// file libtrace.h line 1246
enum anonymous$2 { TRACE_OPTION_OUTPUT_FILEFLAGS=0, TRACE_OPTION_OUTPUT_COMPRESS=1, TRACE_OPTION_OUTPUT_COMPRESSTYPE=2 };
// #anon_enum$TRACE_OPTION_SNAPLEN=0$TRACE_OPTION_PROMISC=1$TRACE_OPTION_FILTER=2$TRACE_OPTION_META_FREQ=3$TRACE_OPTION_EVENT_REALTIME=4
// file libtrace.h line 1204
enum anonymous$1 { TRACE_OPTION_SNAPLEN=0, TRACE_OPTION_PROMISC=1, TRACE_OPTION_FILTER=2, TRACE_OPTION_META_FREQ=3, TRACE_OPTION_EVENT_REALTIME=4 };
// #anon_enum$TRACE_RT_HELLO=1$TRACE_RT_START=2$TRACE_RT_ACK=3$TRACE_RT_STATUS=4$TRACE_RT_DUCK=5$TRACE_RT_END_DATA=6$TRACE_RT_CLOSE=7$TRACE_RT_DENY_CONN=8$TRACE_RT_PAUSE=9$TRACE_RT_PAUSE_ACK=10$TRACE_RT_OPTION=11$TRACE_RT_KEYCHANGE=12$TRACE_RT_DUCK_2_4=13$TRACE_RT_DUCK_2_5=14$TRACE_RT_LOSTCONN=15$TRACE_RT_SERVERSTART=16$TRACE_RT_CLIENTDROP=17$TRACE_RT_METADATA=18$TRACE_RT_DATA_SIMPLE=1000$TRACE_RT_DATA_ERF=1001$TRACE_RT_DATA_WAG=1004$TRACE_RT_DATA_LEGACY_ATM=1006$TRACE_RT_DATA_LEGACY_POS=1007$TRACE_RT_DATA_LEGACY_ETH=1008$TRACE_RT_DATA_LINUX_NATIVE=1009$TRACE_RT_DATA_TSH=1012$TRACE_RT_DATA_ATMHDR=1013$TRACE_RT_DATA_LEGACY_NZIX=1014$TRACE_RT_DATA_LINUX_RING=1015$TRACE_RT_DATA_DPDK=1017$TRACE_RT_DATA_DLT=2000$TRACE_RT_DLT_NULL=2000$TRACE_RT_DLT_EN10MB=2001$TRACE_RT_DLT_IEEE802_11=2105$TRACE_RT_DLT_LINUX_SLL=2113$TRACE_RT_DLT_PFLOG=2117$TRACE_RT_DLT_ATM_RFC1483=2011$TRACE_RT_DATA_DLT_END=2999$TRACE_RT_DATA_BPF=3000$TRACE_RT_BPF_NULL=3000$TRACE_RT_BPF_EN10MB=3001$TRACE_RT_BPF_IEEE802_11=3105$TRACE_RT_BPF_PFLOG=3117$TRACE_RT_BPF_ATM_RFC1483=3011$TRACE_RT_DATA_BPF_END=3999$TRACE_RT_LAST=4000
// file ../../lib/libtrace.h line 362
enum anonymous$20 { TRACE_RT_HELLO=1, TRACE_RT_START=2, TRACE_RT_ACK=3, TRACE_RT_STATUS=4, TRACE_RT_DUCK=5, TRACE_RT_END_DATA=6, TRACE_RT_CLOSE=7, TRACE_RT_DENY_CONN=8, TRACE_RT_PAUSE=9, TRACE_RT_PAUSE_ACK=10, TRACE_RT_OPTION=11, TRACE_RT_KEYCHANGE=12, TRACE_RT_DUCK_2_4=13, TRACE_RT_DUCK_2_5=14, TRACE_RT_LOSTCONN=15, TRACE_RT_SERVERSTART=16, TRACE_RT_CLIENTDROP=17, TRACE_RT_METADATA=18, TRACE_RT_DATA_SIMPLE=1000, TRACE_RT_DATA_ERF=1001, TRACE_RT_DATA_WAG=1004, TRACE_RT_DATA_LEGACY_ATM=1006, TRACE_RT_DATA_LEGACY_POS=1007, TRACE_RT_DATA_LEGACY_ETH=1008, TRACE_RT_DATA_LINUX_NATIVE=1009, TRACE_RT_DATA_TSH=1012, TRACE_RT_DATA_ATMHDR=1013, TRACE_RT_DATA_LEGACY_NZIX=1014, TRACE_RT_DATA_LINUX_RING=1015, TRACE_RT_DATA_DPDK=1017, TRACE_RT_DATA_DLT=2000, TRACE_RT_DLT_NULL=2000, TRACE_RT_DLT_EN10MB=2001, TRACE_RT_DLT_IEEE802_11=2105, TRACE_RT_DLT_LINUX_SLL=2113, TRACE_RT_DLT_PFLOG=2117, TRACE_RT_DLT_ATM_RFC1483=2011, TRACE_RT_DATA_DLT_END=2999, TRACE_RT_DATA_BPF=3000, TRACE_RT_BPF_NULL=3000, TRACE_RT_BPF_EN10MB=3001, TRACE_RT_BPF_IEEE802_11=3105, TRACE_RT_BPF_PFLOG=3117, TRACE_RT_BPF_ATM_RFC1483=3011, TRACE_RT_DATA_BPF_END=3999, TRACE_RT_LAST=4000 };
// #anon_enum$TRACE_TYPE_UNKNOWN=-1$TRACE_TYPE_HDLC_POS=1$TRACE_TYPE_ETH=2$TRACE_TYPE_ATM=3$TRACE_TYPE_80211=4$TRACE_TYPE_NONE=5$TRACE_TYPE_LINUX_SLL=6$TRACE_TYPE_PFLOG=7$TRACE_TYPE_POS=9$TRACE_TYPE_80211_PRISM=12$TRACE_TYPE_AAL5=13$TRACE_TYPE_DUCK=14$TRACE_TYPE_80211_RADIO=15$TRACE_TYPE_LLCSNAP=16$TRACE_TYPE_PPP=17$TRACE_TYPE_METADATA=18$TRACE_TYPE_NONDATA=19$TRACE_TYPE_OPENBSD_LOOP=20
// file ../../lib/libtrace.h line 312
enum anonymous$3 { TRACE_TYPE_UNKNOWN=-1, TRACE_TYPE_HDLC_POS=1, TRACE_TYPE_ETH=2, TRACE_TYPE_ATM=3, TRACE_TYPE_80211=4, TRACE_TYPE_NONE=5, TRACE_TYPE_LINUX_SLL=6, TRACE_TYPE_PFLOG=7, TRACE_TYPE_POS=9, TRACE_TYPE_80211_PRISM=12, TRACE_TYPE_AAL5=13, TRACE_TYPE_DUCK=14, TRACE_TYPE_80211_RADIO=15, TRACE_TYPE_LLCSNAP=16, TRACE_TYPE_PPP=17, TRACE_TYPE_METADATA=18, TRACE_TYPE_NONDATA=19, TRACE_TYPE_OPENBSD_LOOP=20 };
// tag-#anon#ST[*{*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$}$*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$$'alloc'||*{V(*{V}$V$|*{V}$V$)->V}$V(*{V}$V$|*{V}$V$)->V$'free'||*{V}$V$'opaque'|]
// file /usr/include/lzma/base.h line 349
struct anonymous$7;
// tag-#anon#ST[*{S8}$S8$'next_in'||U32'avail_in'||U32'total_in_lo32'||U32'total_in_hi32'||U32'$pad0'||*{S8}$S8$'next_out'||U32'avail_out'||U32'total_out_lo32'||U32'total_out_hi32'||U32'$pad1'||*{V}$V$'state'||*{*{V}$V$(*{V}$V$|S32|S32)->*{V}$V$}$*{V}$V$(*{V}$V$|S32|S32)->*{V}$V$$'bzalloc'||*{V(*{V}$V$|*{V}$V$)->V}$V(*{V}$V$|*{V}$V$)->V$'bzfree'||*{V}$V$'opaque'|]
// file /usr/include/bzlib.h line 49
struct anonymous$6;
// tag-#anon#ST[*{cS8}$cS8$'name'||*{S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|*{V}$V$|S64)->S64}$S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|*{V}$V$|S64)->S64$'read'||*{S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|*{V}$V$|S64)->S64}$S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|*{V}$V$|S64)->S64$'peek'||*{S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$)->S64}$S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$)->S64$'tell'||*{S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|S64|S32)->S64}$S64(*{SYM#tag-io_t#}$SYM#tag-io_t#$|S64|S32)->S64$'seek'||*{V(*{SYM#tag-io_t#}$SYM#tag-io_t#$)->V}$V(*{SYM#tag-io_t#}$SYM#tag-io_t#$)->V$'close'|]
// file ../libwandio/wandio.h line 82
struct anonymous$5;
// tag-#anon#ST[*{cS8}$cS8$'name'||*{S64(*{SYM#tag-iow_t#}$SYM#tag-iow_t#$|*{cS8}$cS8$|S64)->S64}$S64(*{SYM#tag-iow_t#}$SYM#tag-iow_t#$|*{cS8}$cS8$|S64)->S64$'write'||*{V(*{SYM#tag-iow_t#}$SYM#tag-iow_t#$)->V}$V(*{SYM#tag-iow_t#}$SYM#tag-iow_t#$)->V$'close'|]
// file wandio.h line 134
struct anonymous$0;
// tag-#anon#ST[*{cU8}$cU8$'next_in'||U64'avail_in'||U64'total_in'||*{U8}$U8$'next_out'||U64'avail_out'||U64'total_out'||*{SYM#tag-#anon#ST[*{*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$}$*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$$'alloc'||*{V(*{V}$V$|*{V}$V$)->V}$V(*{V}$V$|*{V}$V$)->V$'free'||*{V}$V$'opaque'|]#}$SYM#tag-#anon#ST[*{*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$}$*{V}$V$(*{V}$V$|U64|U64)->*{V}$V$$'alloc'||*{V(*{V}$V$|*{V}$V$)->V}$V(*{V}$V$|*{V}$V$)->V$'free'||*{V}$V$'opaque'|]#$'allocator'||*{SYM#tag-lzma_internal_s#}$SYM#tag-lzma_internal_s#$'internal'||*{V}$V$'reserved_ptr1'||*{V}$V$'reserved_ptr2'||*{V}$V$'reserved_ptr3'||*{V}$V$'reserved_ptr4'||U64'reserved_int1'||U64'reserved_int2'||U64'reserved_int3'||U64'reserved_int4'||EN#anon_enum$LZMA_RESERVED_ENUM=0#{U32}$U32$'reserved_enum1'||EN#anon_enum$LZMA_RESERVED_ENUM=0#{U32}$U32$'reserved_enum2'|]
// file /usr/include/lzma/base.h line 461
struct anonymous$11;
// tag-#anon#ST[S32'__lock'||U32'__futex'||U64'__total_seq'||U64'__wakeup_seq'||U64'__woken_seq'||*{V}$V$'__mutex'||U32'__nwaiters'||U32'__broadcast_seq'|]
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 141
struct anonymous$14;
// tag-#anon#UN[ARR4{S8}$S8$'__size'||S32'__align'|]
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 130
union anonymous$9;
// tag-#anon#UN[SYM#tag-#anon#ST[S32'__lock'||U32'__futex'||U64'__total_seq'||U64'__wakeup_seq'||U64'__woken_seq'||*{V}$V$'__mutex'||U32'__nwaiters'||U32'__broadcast_seq'|]#'__data'||ARR48{S8}$S8$'__size'||S64'__align'|]
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 139
union anonymous$15;
// tag-#anon#UN[SYM#tag-__pthread_mutex_s#'__data'||ARR40{S8}$S8$'__size'||S64'__align'|]
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 90
union anonymous$10;
// tag-_IO_FILE
// file /usr/include/stdio.h line 44
struct _IO_FILE;
// tag-_IO_marker
// file /usr/include/libio.h line 160
struct _IO_marker;
// tag-__pthread_internal_list
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 75
struct __pthread_internal_list;
// tag-__pthread_mutex_s
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 92
struct __pthread_mutex_s;
// tag-base_format_t
// file libtrace.h line 341
enum base_format_t { TRACE_FORMAT_ERF=1, TRACE_FORMAT_PCAP=2, TRACE_FORMAT_PCAPFILE=3, TRACE_FORMAT_WAG=4, TRACE_FORMAT_RT=5, TRACE_FORMAT_LEGACY_ATM=6, TRACE_FORMAT_LEGACY_POS=7, TRACE_FORMAT_LEGACY_ETH=8, TRACE_FORMAT_LINUX_NATIVE=9, TRACE_FORMAT_DUCK=10, TRACE_FORMAT_BPF=11, TRACE_FORMAT_TSH=12, TRACE_FORMAT_ATMHDR=13, TRACE_FORMAT_LEGACY_NZIX=14, TRACE_FORMAT_LINUX_RING=15, TRACE_FORMAT_RAWERF=16, TRACE_FORMAT_DPDK=17 };
// tag-bpf_insn
// file /usr/include/pcap/bpf.h line 108
struct bpf_insn;
// tag-bpf_jit_t
// file libtrace_int.h line 917
struct bpf_jit_t;
// tag-bpf_program
// file /usr/include/pcap/bpf.h line 106
struct bpf_program;
// tag-buffer_t
// file ior-thread.c line 66
struct buffer_t;
// tag-bz_t
// file ior-bzip.c line 52
struct bz_t;
// tag-bzw_t
// file iow-bzip.c line 50
struct bzw_t;
// tag-err_t
// file ior-zlib.c line 46
enum err_t { ERR_OK=1, ERR_EOF=0, ERR_ERROR=-1 };
// tag-internal_state
// file /usr/include/zlib.h line 83
struct internal_state;
// tag-io_t
// file ../libwandio/wandio.h line 64
struct io_t;
// tag-iovec
// file /usr/include/x86_64-linux-gnu/bits/uio.h line 43
struct iovec;
// tag-iow_t
// file wandio.h line 65
struct iow_t;
// tag-libtrace_event_status_t
// file libtrace_int.h line 154
struct libtrace_event_status_t;
// tag-libtrace_eventobj_t
// file libtrace.h line 1450
struct libtrace_eventobj_t;
// tag-libtrace_filter_t
// file libtrace.h line 224
struct libtrace_filter_t;
// tag-libtrace_format_t
// file libtrace_int.h line 174
struct libtrace_format_t;
// tag-libtrace_out_t
// file libtrace.h line 218
struct libtrace_out_t;
// tag-libtrace_packet_t
// file ../../lib/libtrace.h line 492
struct libtrace_packet_t;
// tag-libtrace_pcapfile_pkt_hdr_t
// file libtrace_int.h line 926
struct libtrace_pcapfile_pkt_hdr_t;
// tag-libtrace_t
// file libtrace.h line 221
struct libtrace_t;
// tag-lzma_internal_s
// file /usr/include/lzma/base.h line 419
struct lzma_internal_s;
// tag-lzma_t
// file ior-lzma.c line 52
struct lzma_t;
// tag-lzmaw_t
// file iow-lzma.c line 51
struct lzmaw_t;
// tag-pcap
// file /usr/include/pcap/pcap.h line 79
struct pcap;
// tag-peek_t
// file ior-peek.c line 61
struct peek_t;
// tag-pthread_attr_t
// file /usr/include/x86_64-linux-gnu/bits/pthreadtypes.h line 63
union pthread_attr_t;
// tag-state_t
// file ior-thread.c line 72
struct state_t$0;
// tag-state_t$link1
// file iow-thread.c line 72
struct state_t;
// tag-stdio_t
// file ior-stdio.c line 48
struct stdio_t;
// tag-stdiow_t
// file iow-stdio.c line 52
struct stdiow_t;
// tag-timespec
// file /usr/include/time.h line 120
struct timespec;
// tag-timeval
// file /usr/include/x86_64-linux-gnu/bits/time.h line 30
struct timeval;
// tag-timezone
// file /usr/include/x86_64-linux-gnu/sys/time.h line 55
struct timezone;
// tag-trace_err_t
// file libtrace.h line 243
struct trace_err_t;
// tag-wandio_compression_type
// file wandio.h line 68
struct wandio_compression_type;
// tag-z_stream_s
// file /usr/include/zlib.h line 85
struct z_stream_s;
// tag-zlib_t
// file ior-zlib.c line 52
struct zlib_t;
// tag-zlibw_t
// file iow-zlib.c line 52
struct zlibw_t;
#include <assert.h>
#ifndef NULL
#define NULL ((void*)0)
#endif
// BZ2_bzCompress
// file /usr/include/bzlib.h line 107
extern signed int BZ2_bzCompress(struct anonymous$6 *, signed int);
// BZ2_bzCompressEnd
// file /usr/include/bzlib.h line 112
extern signed int BZ2_bzCompressEnd(struct anonymous$6 *);
// BZ2_bzCompressInit
// file /usr/include/bzlib.h line 100
extern signed int BZ2_bzCompressInit(struct anonymous$6 *, signed int, signed int, signed int);
// BZ2_bzDecompress
// file /usr/include/bzlib.h line 122
extern signed int BZ2_bzDecompress(struct anonymous$6 *);
// BZ2_bzDecompressEnd
// file /usr/include/bzlib.h line 126
extern signed int BZ2_bzDecompressEnd(struct anonymous$6 *);
// BZ2_bzDecompressInit
// file /usr/include/bzlib.h line 116
extern signed int BZ2_bzDecompressInit(struct anonymous$6 *, signed int, signed int);
// __assert_fail
// file /usr/include/assert.h line 69
extern void __assert_fail(const char *, const char *, unsigned int, const char *);
// __errno_location
// file /usr/include/x86_64-linux-gnu/bits/errno.h line 50
extern signed int * __errno_location(void);
// abort
// file /usr/include/stdlib.h line 515
extern void abort(void);
// alignedrealloc
// file ior-peek.c line 223
static void * alignedrealloc(void *old, unsigned long int oldsize, unsigned long int size, signed int *res);
// atmhdr_constructor
// file libtrace_int.h line 954
void atmhdr_constructor(void);
// atoi
// file /usr/include/stdlib.h line 147
extern signed int atoi(const char *);
// bpf_constructor
// file libtrace_int.h line 957
void bpf_constructor(void);
// bpf_filter
// file /usr/include/pcap/bpf.h line 1497
extern unsigned int bpf_filter(struct bpf_insn *, const unsigned char *, unsigned int, unsigned int);
// bz_close
// file ior-bzip.c line 144
static void bz_close(struct io_t *io);
// bz_open
// file wandio.h line 194
struct io_t * bz_open(struct io_t *parent);
// bz_read
// file ior-bzip.c line 94
static signed long int bz_read(struct io_t *io, void *buffer, signed long int len);
// bz_wclose
// file iow-bzip.c line 138
static void bz_wclose(struct iow_t *iow);
// bz_wopen
// file wandio.h line 202
struct iow_t * bz_wopen(struct iow_t *child, signed int compress_level);
// bz_wwrite
// file iow-bzip.c line 93
static signed long int bz_wwrite(struct iow_t *iow, const char *buffer, signed long int len);
// calloc
// file /usr/include/stdlib.h line 468
extern void * calloc(unsigned long int, unsigned long int);
// close
// file /usr/include/unistd.h line 353
extern signed int close(signed int);
// create_io_reader
// file wandio.c line 134
static struct io_t * create_io_reader(const char *filename, signed int autodetect);
// deflate
// file /usr/include/zlib.h line 246
extern signed int deflate(struct z_stream_s *, signed int);
// deflateEnd
// file /usr/include/zlib.h line 353
extern signed int deflateEnd(struct z_stream_s *);
// deflateInit2_
// file /usr/include/zlib.h line 1637
extern signed int deflateInit2_(struct z_stream_s *, signed int, signed int, signed int, signed int, signed int, const char *, signed int);
// demote_packet
// file libtrace_int.h line 853
_Bool demote_packet(struct libtrace_packet_t *);
// do_option
// file wandio.c line 75
static void do_option(const char *option);
// duck_constructor
// file libtrace_int.h line 952
void duck_constructor(void);
// erf_constructor
// file libtrace_int.h line 938
void erf_constructor(void);
// exit
// file /usr/include/stdlib.h line 543
extern void exit(signed int);
// fchown
// file /usr/include/unistd.h line 478
extern signed int fchown(signed int, unsigned int, unsigned int);
// fcntl
// file /usr/include/fcntl.h line 137
extern signed int fcntl(signed int, signed int, ...);
// fprintf
// file /usr/include/stdio.h line 356
extern signed int fprintf(struct _IO_FILE *, const char *, ...);
// free
// file /usr/include/stdlib.h line 483
extern void free(void *);
// getenv
// file /usr/include/stdlib.h line 564
extern char * getenv(const char *);
// gettimeofday
// file /usr/include/x86_64-linux-gnu/sys/time.h line 71
extern signed int gettimeofday(struct timeval *, struct timezone *);
// guess_format
// file trace.c line 175
static void guess_format(struct libtrace_t *libtrace, const char *filename);
// inflate
// file /usr/include/zlib.h line 392
extern signed int inflate(struct z_stream_s *, signed int);
// inflateEnd
// file /usr/include/zlib.h line 508
extern signed int inflateEnd(struct z_stream_s *);
// inflateInit2_
// file /usr/include/zlib.h line 1641
extern signed int inflateInit2_(struct z_stream_s *, signed int, const char *, signed int);
// legacy_constructor
// file libtrace_int.h line 942
void legacy_constructor(void);
// libtrace_cleanup
// file mplstag.c line 72
static void libtrace_cleanup(struct libtrace_t *trace, struct libtrace_packet_t *packet);
// libtrace_to_pcap_dlt
// file libtrace_int.h line 785
enum anonymous$18 libtrace_to_pcap_dlt(enum anonymous$3);
// libtrace_to_pcap_linktype
// file libtrace_int.h line 777
enum anonymous$18 libtrace_to_pcap_linktype(enum anonymous$3);
// linuxnative_constructor
// file libtrace_int.h line 944
void linuxnative_constructor(void);
// lseek
// file /usr/include/unistd.h line 334
extern signed long int lseek(signed int, signed long int, signed int);
// lzma_auto_decoder
// file /usr/include/lzma/container.h line 361
extern enum anonymous$12 lzma_auto_decoder(struct anonymous$11 *, unsigned long int, unsigned int);
// lzma_close
// file ior-lzma.c line 149
static void lzma_close(struct io_t *io);
// lzma_code
// file /usr/include/lzma/base.h line 537
extern enum anonymous$12 lzma_code(struct anonymous$11 *, enum anonymous$13);
// lzma_easy_encoder
// file /usr/include/lzma/container.h line 133
extern enum anonymous$12 lzma_easy_encoder(struct anonymous$11 *, unsigned int, enum anonymous$16);
// lzma_end
// file /usr/include/lzma/base.h line 554
extern void lzma_end(struct anonymous$11 *);
// lzma_open
// file wandio.h line 197
struct io_t * lzma_open(struct io_t *parent);
// lzma_read
// file ior-lzma.c line 91
static signed long int lzma_read(struct io_t *io, void *buffer, signed long int len);
// lzma_wclose
// file iow-lzma.c line 137
static void lzma_wclose(struct iow_t *iow);
// lzma_wopen
// file wandio.h line 204
struct iow_t * lzma_wopen(struct iow_t *child, signed int compress_level);
// lzma_wwrite
// file iow-lzma.c line 93
static signed long int lzma_wwrite(struct iow_t *iow, const char *buffer, signed long int len);
// malloc
// file /usr/include/stdlib.h line 466
extern void * malloc(unsigned long int);
// memcpy
// file /usr/include/string.h line 46
extern void * memcpy(void *, const void *, unsigned long int);
// memmove
// file /usr/include/string.h line 50
extern void * memmove(void *, const void *, unsigned long int);
// memset
// file /usr/include/string.h line 66
extern void * memset(void *, signed int, unsigned long int);
// ntohl
// file /usr/include/netinet/in.h line 374
extern unsigned int ntohl(unsigned int);
// open
// file /usr/include/fcntl.h line 146
extern signed int open(const char *, signed int, ...);
// parse_env
// file wandio.c line 100
static void parse_env(void);
// pcap_close
// file /usr/include/pcap/pcap.h line 371
void pcap_close(struct pcap *);
// pcap_compile
// file /usr/include/pcap/pcap.h line 389
signed int pcap_compile(struct pcap *, struct bpf_program *, const char *, signed int, unsigned int);
// pcap_constructor
// file libtrace_int.h line 946
void pcap_constructor(void);
// pcap_freecode
// file /usr/include/pcap/pcap.h line 393
void pcap_freecode(struct bpf_program *);
// pcap_geterr
// file /usr/include/pcap/pcap.h line 387
char * pcap_geterr(struct pcap *);
// pcap_linktype_to_rt
// file libtrace_int.h line 769
enum anonymous$20 pcap_linktype_to_rt(enum anonymous$18);
// pcap_open_dead
// file /usr/include/pcap/pcap.h line 350
struct pcap * pcap_open_dead(signed int, signed int);
// pcapfile_constructor
// file libtrace_int.h line 948
void pcapfile_constructor(void);
// peek_close
// file ior-peek.c line 304
static void peek_close(struct io_t *io);
// peek_open
// file wandio.h line 198
struct io_t * peek_open(struct io_t *child);
// peek_peek
// file ior-peek.c line 250
static signed long int peek_peek(struct io_t *io, void *buffer, signed long int len);
// peek_read
// file ior-peek.c line 152
static signed long int peek_read(struct io_t *io, void *buffer, signed long int len);
// peek_seek
// file ior-peek.c line 297
static signed long int peek_seek(struct io_t *io, signed long int offset, signed int whence);
// peek_tell
// file ior-peek.c line 290
static signed long int peek_tell(struct io_t *io);
// per_packet
// file mplstag.c line 26
static void per_packet(struct libtrace_packet_t *packet);
// perror
// file /usr/include/stdio.h line 846
extern void perror(const char *);
// posix_memalign
// file /usr/include/stdlib.h line 503
extern signed int posix_memalign(void **, unsigned long int, unsigned long int);
// prctl
// file /usr/include/x86_64-linux-gnu/sys/prctl.h line 27
extern signed int prctl(signed int, ...);
// print_mpls_label
// file mplstag.c line 10
static void print_mpls_label(void *mpls, unsigned int remaining);
// printf
// file /usr/include/stdio.h line 362
extern signed int printf(const char *, ...);
// pthread_cond_destroy
// file /usr/include/pthread.h line 975
extern signed int pthread_cond_destroy(union anonymous$15 *);
// pthread_cond_init
// file /usr/include/pthread.h line 970
extern signed int pthread_cond_init(union anonymous$15 *, const union anonymous$9 *);
// pthread_cond_signal
// file /usr/include/pthread.h line 979
extern signed int pthread_cond_signal(union anonymous$15 *);
// pthread_cond_wait
// file /usr/include/pthread.h line 991
extern signed int pthread_cond_wait(union anonymous$15 *, union anonymous$10 *);
// pthread_create
// file /usr/include/pthread.h line 235
extern signed int pthread_create(unsigned long int *, const union pthread_attr_t *, void * (*)(void *), void *);
// pthread_join
// file /usr/include/pthread.h line 252
extern signed int pthread_join(unsigned long int, void **);
// pthread_mutex_destroy
// file /usr/include/pthread.h line 756
extern signed int pthread_mutex_destroy(union anonymous$10 *);
// pthread_mutex_init
// file /usr/include/pthread.h line 751
extern signed int pthread_mutex_init(union anonymous$10 *, const union anonymous$9 *);
// pthread_mutex_lock
// file /usr/include/pthread.h line 764
extern signed int pthread_mutex_lock(union anonymous$10 *);
// pthread_mutex_unlock
// file /usr/include/pthread.h line 775
extern signed int pthread_mutex_unlock(union anonymous$10 *);
// read
// file /usr/include/unistd.h line 360
extern signed long int read(signed int, void *, unsigned long int);
// realloc
// file /usr/include/stdlib.h line 480
extern void * realloc(void *, unsigned long int);
// refill_buffer
// file ior-peek.c line 94
static signed long int refill_buffer(struct io_t *io, signed long int len);
// register_format
// file trace.c line 1859
void register_format(struct libtrace_format_t *f);
// rt_constructor
// file libtrace_int.h line 950
void rt_constructor(void);
// safe_open
// file iow-stdio.c line 62
static signed int safe_open(const char *filename, signed int flags);
// snprintf
// file /usr/include/stdio.h line 386
extern signed int snprintf(char *, unsigned long int, const char *, ...);
// sscanf
// file /usr/include/stdio.h line 433
extern signed int sscanf(const char *, const char *, ...);
// stdio_close
// file ior-stdio.c line 95
static void stdio_close(struct io_t *io);
// stdio_open
// file wandio.h line 199
struct io_t * stdio_open(const char *filename);
// stdio_read
// file ior-stdio.c line 80
static signed long int stdio_read(struct io_t *io, void *buffer, signed long int len);
// stdio_seek
// file ior-stdio.c line 90
static signed long int stdio_seek(struct io_t *io, signed long int offset, signed int whence);
// stdio_tell
// file ior-stdio.c line 85
static signed long int stdio_tell(struct io_t *io);
// stdio_wclose
// file iow-stdio.c line 214
static void stdio_wclose(struct iow_t *iow);
// stdio_wopen
// file wandio.h line 206
struct iow_t * stdio_wopen(const char *filename, signed int flags);
// stdio_wwrite
// file iow-stdio.c line 146
static signed long int stdio_wwrite(struct iow_t *iow, const char *buffer, signed long int len);
// strchr
// file /usr/include/string.h line 235
extern char * strchr(const char *, signed int);
// strcmp
// file /usr/include/string.h line 144
extern signed int strcmp(const char *, const char *);
// strcpy
// file /usr/include/string.h line 129
extern char * strcpy(char *, const char *);
// strdup
// file /usr/include/string.h line 175
extern char * strdup(const char *);
// strlen
// file /usr/include/string.h line 398
extern unsigned long int strlen(const char *);
// strncasecmp
// file /usr/include/string.h line 537
extern signed int strncasecmp(const char *, const char *, unsigned long int);
// strncat
// file /usr/include/string.h line 140
extern char * strncat(char *, const char *, unsigned long int);
// strncmp
// file /usr/include/string.h line 147
extern signed int strncmp(const char *, const char *, unsigned long int);
// strncpy
// file /usr/include/string.h line 132
extern char * strncpy(char *, const char *, unsigned long int);
// strtol
// file /usr/include/stdlib.h line 183
extern signed long int strtol(const char *, char ** restrict , signed int);
// thread_close
// file ior-thread.c line 260
static void thread_close(struct io_t *io);
// thread_consumer
// file iow-thread.c line 98
static void * thread_consumer(void *userdata);
// thread_open
// file wandio.h line 196
struct io_t * thread_open(struct io_t *parent);
// thread_producer
// file ior-thread.c line 98
static void * thread_producer(void *userdata);
// thread_read
// file ior-thread.c line 196
static signed long int thread_read(struct io_t *state, void *buffer, signed long int len);
// thread_wclose
// file iow-thread.c line 242
static void thread_wclose(struct iow_t *iow);
// thread_wopen
// file wandio.h line 205
struct iow_t * thread_wopen(struct iow_t *child);
// thread_wwrite
// file iow-thread.c line 188
static signed long int thread_wwrite(struct iow_t *state, const char *buffer, signed long int len);
// trace_apply_filter
// file trace.c line 1257
signed int trace_apply_filter(struct libtrace_filter_t *filter, const struct libtrace_packet_t *packet);
// trace_bpf_compile
// file trace.c line 1204
static signed int trace_bpf_compile(struct libtrace_filter_t *filter, const struct libtrace_packet_t *packet, void *linkptr, enum anonymous$3 linktype);
// trace_clear_cache
// file trace.c line 1838
void trace_clear_cache(struct libtrace_packet_t *packet);
// trace_config
// file trace.c line 498
signed int trace_config(struct libtrace_t *libtrace, enum anonymous$1 option, void *value);
// trace_config_output
// file trace.c line 568
signed int trace_config_output(struct libtrace_out_t *libtrace, enum anonymous$2 option, void *value);
// trace_construct_packet
// file trace.c line 1749
void trace_construct_packet(struct libtrace_packet_t *packet, enum anonymous$3 linktype, const void *data, unsigned short int len);
// trace_copy_packet
// file trace.c line 645
struct libtrace_packet_t * trace_copy_packet(const struct libtrace_packet_t *packet);
// trace_create
// file ../../lib/libtrace.h line 1140
struct libtrace_t * trace_create(const char *uri);
// trace_create_dead
// file trace.c line 321
struct libtrace_t * trace_create_dead(const char *uri);
// trace_create_filter
// file trace.c line 1167
struct libtrace_filter_t * trace_create_filter(const char *filterstring);
// trace_create_filter_from_bytecode
// file trace.c line 1139
struct libtrace_filter_t * trace_create_filter_from_bytecode(void *bf_insns, unsigned int bf_len);
// trace_create_output
// file trace.c line 380
struct libtrace_out_t * trace_create_output(const char *uri);
// trace_create_packet
// file ../../lib/libtrace.h line 1397
struct libtrace_packet_t * trace_create_packet(void);
// trace_destroy
// file ../../lib/libtrace.h line 1275
void trace_destroy(struct libtrace_t *libtrace);
// trace_destroy_dead
// file trace.c line 611
void trace_destroy_dead(struct libtrace_t *libtrace);
// trace_destroy_filter
// file trace.c line 1181
void trace_destroy_filter(struct libtrace_filter_t *filter);
// trace_destroy_output
// file trace.c line 625
void trace_destroy_output(struct libtrace_out_t *libtrace);
// trace_destroy_packet
// file ../../lib/libtrace.h line 1417
void trace_destroy_packet(struct libtrace_packet_t *packet);
// trace_ether_aton
// file trace.c line 1723
unsigned char * trace_ether_aton(const char *buf, unsigned char *addr);
// trace_ether_ntoa
// file trace.c line 1711
char * trace_ether_ntoa(const unsigned char *addr, char *buf);
// trace_event
// file trace.c line 1103
struct libtrace_eventobj_t trace_event(struct libtrace_t *trace, struct libtrace_packet_t *packet);
// trace_get_accepted_packets
// file trace.c line 1832
unsigned long int trace_get_accepted_packets(struct libtrace_t *trace);
// trace_get_capture_length
// file trace.c line 1024
unsigned long int trace_get_capture_length(const struct libtrace_packet_t *packet);
// trace_get_direction
// file trace.c line 1372
enum anonymous$4 trace_get_direction(const struct libtrace_packet_t *packet);
// trace_get_dropped_packets
// file trace.c line 1823
unsigned long int trace_get_dropped_packets(struct libtrace_t *trace);
// trace_get_erf_timestamp
// file trace.c line 890
unsigned long int trace_get_erf_timestamp(const struct libtrace_packet_t *packet);
// trace_get_err
// file trace.c line 1555
struct trace_err_t trace_get_err(struct libtrace_t *trace);
// trace_get_err_output
// file trace.c line 1594
struct trace_err_t trace_get_err_output(struct libtrace_out_t *trace);
// trace_get_filtered_packets
// file trace.c line 1813
unsigned long int trace_get_filtered_packets(struct libtrace_t *trace);
// trace_get_format
// file trace.c line 1548
enum base_format_t trace_get_format(struct libtrace_packet_t *packet);
// trace_get_framing_length
// file trace.c line 1068
unsigned long int trace_get_framing_length(const struct libtrace_packet_t *packet);
// trace_get_layer2
// file ../../lib/libtrace.h line 1683
void * trace_get_layer2(const struct libtrace_packet_t *, enum anonymous$3 *, unsigned int *);
// trace_get_link
// file trace.c line 881
void * trace_get_link(const struct libtrace_packet_t *packet);
// trace_get_link_type
// file trace.c line 1080
enum anonymous$3 trace_get_link_type(const struct libtrace_packet_t *packet);
// trace_get_packet_buffer
// file trace.c line 832
void * trace_get_packet_buffer(const struct libtrace_packet_t *packet, enum anonymous$3 *linktype, unsigned int *remaining);
// trace_get_payload_from_layer2
// file ../../lib/libtrace.h line 1710
void * trace_get_payload_from_layer2(void *, enum anonymous$3, unsigned short int *, unsigned int *);
// trace_get_payload_from_mpls
// file ../../lib/libtrace.h line 1950
void * trace_get_payload_from_mpls(void *, unsigned short int *, unsigned int *);
// trace_get_received_packets
// file trace.c line 1804
unsigned long int trace_get_received_packets(struct libtrace_t *trace);
// trace_get_seconds
// file trace.c line 998
double trace_get_seconds(const struct libtrace_packet_t *packet);
// trace_get_server_port
// file trace.c line 1395
signed char trace_get_server_port(unsigned char protocol, unsigned short int source, unsigned short int dest);
// trace_get_timespec
// file trace.c line 958
struct timespec trace_get_timespec(const struct libtrace_packet_t *packet);
// trace_get_timeval
// file trace.c line 925
struct timeval trace_get_timeval(const struct libtrace_packet_t *packet);
// trace_get_wire_length
// file trace.c line 1047
unsigned long int trace_get_wire_length(const struct libtrace_packet_t *packet);
// trace_help
// file trace.c line 160
void trace_help(void);
// trace_init
// file trace.c line 131
static void trace_init(void);
// trace_interrupt
// file trace.c line 1855
void trace_interrupt(void);
// trace_is_err
// file ../../lib/libtrace.h line 1302
_Bool trace_is_err(struct libtrace_t *trace);
// trace_is_err_output
// file trace.c line 1602
_Bool trace_is_err_output(struct libtrace_out_t *trace);
// trace_parse_uri
// file trace.c line 1525
const char * trace_parse_uri(const char *uri, char **format);
// trace_pause
// file trace.c line 485
signed int trace_pause(struct libtrace_t *libtrace);
// trace_perror
// file ../../lib/libtrace.h line 1311
void trace_perror(struct libtrace_t *trace, const char *msg, ...);
// trace_perror_output
// file trace.c line 1609
void trace_perror_output(struct libtrace_out_t *trace, const char *msg, ...);
// trace_prepare_packet
// file trace.c line 777
signed int trace_prepare_packet(struct libtrace_t *trace, struct libtrace_packet_t *packet, void *buffer, enum anonymous$20 rt_type, unsigned int flags);
// trace_read_packet
// file ../../lib/libtrace.h line 1437
signed int trace_read_packet(struct libtrace_t *libtrace, struct libtrace_packet_t *packet);
// trace_seek_erf_timestamp
// file trace.c line 1628
signed int trace_seek_erf_timestamp(struct libtrace_t *trace, unsigned long int ts);
// trace_seek_seconds
// file trace.c line 1663
signed int trace_seek_seconds(struct libtrace_t *trace, double seconds);
// trace_seek_timeval
// file trace.c line 1688
signed int trace_seek_timeval(struct libtrace_t *trace, struct timeval tv);
// trace_set_capture_length
// file trace.c line 1507
unsigned long int trace_set_capture_length(struct libtrace_packet_t *packet, unsigned long int size);
// trace_set_direction
// file trace.c line 1354
enum anonymous$4 trace_set_direction(struct libtrace_packet_t *packet, enum anonymous$4 direction);
// trace_set_err
// file libtrace_int.h line 221
void trace_set_err(struct libtrace_t *, signed int, const char *, ...);
// trace_set_err_out
// file libtrace_int.h line 230
void trace_set_err_out(struct libtrace_out_t *, signed int, const char *, ...);
// trace_start
// file ../../lib/libtrace.h line 1181
signed int trace_start(struct libtrace_t *libtrace);
// trace_start_output
// file trace.c line 471
signed int trace_start_output(struct libtrace_out_t *libtrace);
// trace_write_packet
// file trace.c line 813
signed int trace_write_packet(struct libtrace_out_t *libtrace, struct libtrace_packet_t *packet);
// tsh_constructor
// file libtrace_int.h line 940
void tsh_constructor(void);
// vsnprintf
// file /usr/include/stdio.h line 390
extern signed int vsnprintf(char *, unsigned long int, const char *, void **);
// wandio_create
// file ../libwandio/wandio.h line 241
struct io_t * wandio_create(const char *filename);
// wandio_create_uncompressed
// file wandio.c line 229
struct io_t * wandio_create_uncompressed(const char *filename);
// wandio_destroy
// file wandio.c line 278
void wandio_destroy(struct io_t *io);
// wandio_lookup_compression_type
// file wandio.c line 210
struct wandio_compression_type * wandio_lookup_compression_type(const char *name);
// wandio_peek
// file wandio.c line 263
signed long int wandio_peek(struct io_t *io, void *buffer, signed long int len);
// wandio_read
// file wandio.c line 253
signed long int wandio_read(struct io_t *io, void *buffer, signed long int len);
// wandio_seek
// file wandio.c line 244
signed long int wandio_seek(struct io_t *io, signed long int offset, signed int whence);
// wandio_tell
// file wandio.c line 235
signed long int wandio_tell(struct io_t *io);
// wandio_wcreate
// file wandio.c line 288
struct iow_t * wandio_wcreate(const char *filename, signed int compress_type, signed int compression_level, signed int flags);
// wandio_wdestroy
// file wandio.c line 341
void wandio_wdestroy(struct iow_t *iow);
// wandio_wwrite
// file wandio.c line 333
signed long int wandio_wwrite(struct iow_t *iow, const void *buffer, signed long int len);
// write
// file /usr/include/unistd.h line 366
extern signed long int write(signed int, const void *, unsigned long int);
// writev
// file /usr/include/x86_64-linux-gnu/sys/uio.h line 50
extern signed long int writev(signed int, struct iovec *, signed int);
// xstrncpy
// file trace.c line 112
static void xstrncpy(char *dest, const char *src, unsigned long int n);
// xstrndup
// file trace.c line 118
static char * xstrndup(const char *src, unsigned long int n);
// zlib_close
// file ior-zlib.c line 156
static void zlib_close(struct io_t *io);
// zlib_open
// file wandio.h line 195
struct io_t * zlib_open(struct io_t *parent);
// zlib_read
// file ior-zlib.c line 92
static signed long int zlib_read(struct io_t *io, void *buffer, signed long int len);
// zlib_wclose
// file iow-zlib.c line 143
static void zlib_wclose(struct iow_t *iow);
// zlib_wopen
// file wandio.h line 201
struct iow_t * zlib_wopen(struct iow_t *child, signed int compress_level);
// zlib_wwrite
// file iow-zlib.c line 98
static signed long int zlib_wwrite(struct iow_t *iow, const char *buffer, signed long int len);
struct anonymous$7
{
// alloc
void * (*alloc)(void *, unsigned long int, unsigned long int);
// free
void (*free)(void *, void *);
// opaque
void *opaque;
};
struct anonymous$6
{
// next_in
char *next_in;
// avail_in
unsigned int avail_in;
// total_in_lo32
unsigned int total_in_lo32;
// total_in_hi32
unsigned int total_in_hi32;
// next_out
char *next_out;
// avail_out
unsigned int avail_out;
// total_out_lo32
unsigned int total_out_lo32;
// total_out_hi32
unsigned int total_out_hi32;
// state
void *state;
// bzalloc
void * (*bzalloc)(void *, signed int, signed int);
// bzfree
void (*bzfree)(void *, void *);
// opaque
void *opaque;
};
struct anonymous$5
{
// name
const char *name;
// read
signed long int (*read)(struct io_t *, void *, signed long int);
// peek
signed long int (*peek)(struct io_t *, void *, signed long int);
// tell
signed long int (*tell)(struct io_t *);
// seek
signed long int (*seek)(struct io_t *, signed long int, signed int);
// close
void (*close)(struct io_t *);
};
struct anonymous$0
{
// name
const char *name;
// write
signed long int (*write)(struct iow_t *, const char *, signed long int);
// close
void (*close)(struct iow_t *);
};
struct anonymous$11
{
// next_in
const unsigned char *next_in;
// avail_in
unsigned long int avail_in;
// total_in
unsigned long int total_in;
// next_out
unsigned char *next_out;
// avail_out
unsigned long int avail_out;
// total_out
unsigned long int total_out;
// allocator
struct anonymous$7 *allocator;
// internal
struct lzma_internal_s *internal;
// reserved_ptr1
void *reserved_ptr1;
// reserved_ptr2
void *reserved_ptr2;
// reserved_ptr3
void *reserved_ptr3;
// reserved_ptr4
void *reserved_ptr4;
// reserved_int1
unsigned long int reserved_int1;
// reserved_int2
unsigned long int reserved_int2;
// reserved_int3
unsigned long int reserved_int3;
// reserved_int4
unsigned long int reserved_int4;
// reserved_enum1
enum anonymous$8 reserved_enum1;
// reserved_enum2
enum anonymous$8 reserved_enum2;
};
struct anonymous$14
{
// __lock
signed int __lock;
// __futex
unsigned int __futex;
// __total_seq
unsigned long long int __total_seq;
// __wakeup_seq
unsigned long long int __wakeup_seq;
// __woken_seq
unsigned long long int __woken_seq;
// __mutex
void *__mutex;
// __nwaiters
unsigned int __nwaiters;
// __broadcast_seq
unsigned int __broadcast_seq;
};
union anonymous$9
{
// __size
char __size[4l];
// __align
signed int __align;
};
union anonymous$15
{
// __data
struct anonymous$14 __data;
// __size
char __size[48l];
// __align
signed long long int __align;
};
struct __pthread_internal_list
{
// __prev
struct __pthread_internal_list *__prev;
// __next
struct __pthread_internal_list *__next;
};
struct __pthread_mutex_s
{
// __lock
signed int __lock;
// __count
unsigned int __count;
// __owner
signed int __owner;
// __nusers
unsigned int __nusers;
// __kind
signed int __kind;
// __spins
signed short int __spins;
// __elision
signed short int __elision;
// __list
struct __pthread_internal_list __list;
};
union anonymous$10
{
// __data
struct __pthread_mutex_s __data;
// __size
char __size[40l];
// __align
signed long int __align;
};
struct _IO_FILE
{
// _flags
signed int _flags;
// _IO_read_ptr
char *_IO_read_ptr;
// _IO_read_end
char *_IO_read_end;
// _IO_read_base
char *_IO_read_base;
// _IO_write_base
char *_IO_write_base;
// _IO_write_ptr
char *_IO_write_ptr;
// _IO_write_end
char *_IO_write_end;
// _IO_buf_base
char *_IO_buf_base;
// _IO_buf_end
char *_IO_buf_end;
// _IO_save_base
char *_IO_save_base;
// _IO_backup_base
char *_IO_backup_base;
// _IO_save_end
char *_IO_save_end;
// _markers
struct _IO_marker *_markers;
// _chain
struct _IO_FILE *_chain;
// _fileno
signed int _fileno;
// _flags2
signed int _flags2;
// _old_offset
signed long int _old_offset;
// _cur_column
unsigned short int _cur_column;
// _vtable_offset
signed char _vtable_offset;
// _shortbuf
char _shortbuf[1l];
// _lock
void *_lock;
// _offset
signed long int _offset;
// __pad1
void *__pad1;
// __pad2
void *__pad2;
// __pad3
void *__pad3;
// __pad4
void *__pad4;
// __pad5
unsigned long int __pad5;
// _mode
signed int _mode;
// _unused2
char _unused2[(signed long int)(sizeof(signed int) * 5) /*20l*/ ];
};
struct _IO_marker
{
// _next
struct _IO_marker *_next;
// _sbuf
struct _IO_FILE *_sbuf;
// _pos
signed int _pos;
};
struct bpf_insn
{
// code
unsigned short int code;
// jt
unsigned char jt;
// jf
unsigned char jf;
// k
unsigned int k;
};
struct bpf_program
{
// bf_len
unsigned int bf_len;
// bf_insns
struct bpf_insn *bf_insns;
};
struct buffer_t
{
// buffer
char buffer[1048576l];
// len
signed int len;
// state
enum anonymous$17 state;
};
struct bz_t
{
// strm
struct anonymous$6 strm;
// inbuff
char inbuff[1048576l];
// outoffset
signed int outoffset;
// parent
struct io_t *parent;
// err
enum err_t err;
};
struct bzw_t
{
// strm
struct anonymous$6 strm;
// outbuff
char outbuff[1048576l];
// inoffset
signed int inoffset;
// child
struct iow_t *child;
// err
enum err_t err;
};
struct internal_state
{
// dummy
signed int dummy;
};
struct io_t
{
// source
struct anonymous$5 *source;
// data
void *data;
};
struct iovec
{
// iov_base
void *iov_base;
// iov_len
unsigned long int iov_len;
};
struct iow_t
{
// source
struct anonymous$0 *source;
// data
void *data;
};
struct libtrace_event_status_t
{
// packet
struct libtrace_packet_t *packet;
// tdelta
double tdelta;
// trace_last_ts
double trace_last_ts;
// psize
signed int psize;
// waiting
_Bool waiting;
};
struct libtrace_eventobj_t
{
// type
enum anonymous$19 type;
// fd
signed int fd;
// seconds
double seconds;
// size
signed int size;
};
struct libtrace_filter_t
{
// filter
struct bpf_program filter;
// filterstring
char *filterstring;
// flag
signed int flag;
// jitfilter
struct bpf_jit_t *jitfilter;
};
struct libtrace_format_t
{
// name
const char *name;
// version
const char *version;
// type
enum base_format_t type;
// probe_filename
signed int (*probe_filename)(const char *);
// probe_magic
signed int (*probe_magic)(struct io_t *);
// init_input
signed int (*init_input)(struct libtrace_t *);
// config_input
signed int (*config_input)(struct libtrace_t *, enum anonymous$1, void *);
// start_input
signed int (*start_input)(struct libtrace_t *);
// pause_input
signed int (*pause_input)(struct libtrace_t *);
// init_output
signed int (*init_output)(struct libtrace_out_t *);
// config_output
signed int (*config_output)(struct libtrace_out_t *, enum anonymous$2, void *);
// start_output
signed int (*start_output)(struct libtrace_out_t *);
// fin_input
signed int (*fin_input)(struct libtrace_t *);
// fin_output
signed int (*fin_output)(struct libtrace_out_t *);
// read_packet
signed int (*read_packet)(struct libtrace_t *, struct libtrace_packet_t *);
// prepare_packet
signed int (*prepare_packet)(struct libtrace_t *, struct libtrace_packet_t *, void *, enum anonymous$20, unsigned int);
// fin_packet
void (*fin_packet)(struct libtrace_packet_t *);
// write_packet
signed int (*write_packet)(struct libtrace_out_t *, struct libtrace_packet_t *);
// get_link_type
enum anonymous$3 (*get_link_type)(const struct libtrace_packet_t *);
// get_direction
enum anonymous$4 (*get_direction)(const struct libtrace_packet_t *);
// set_direction
enum anonymous$4 (*set_direction)(struct libtrace_packet_t *, enum anonymous$4);
// get_erf_timestamp
unsigned long int (*get_erf_timestamp)(const struct libtrace_packet_t *);
// get_timeval
struct timeval (*get_timeval)(const struct libtrace_packet_t *);
// get_timespec
struct timespec (*get_timespec)(const struct libtrace_packet_t *);
// get_seconds
double (*get_seconds)(const struct libtrace_packet_t *);
// seek_erf
signed int (*seek_erf)(struct libtrace_t *, unsigned long int);
// seek_timeval
signed int (*seek_timeval)(struct libtrace_t *, struct timeval);
// seek_seconds
signed int (*seek_seconds)(struct libtrace_t *, double);
// get_capture_length
signed int (*get_capture_length)(const struct libtrace_packet_t *);
// get_wire_length
signed int (*get_wire_length)(const struct libtrace_packet_t *);
// get_framing_length
signed int (*get_framing_length)(const struct libtrace_packet_t *);
// set_capture_length
unsigned long int (*set_capture_length)(struct libtrace_packet_t *, unsigned long int);
// get_received_packets
unsigned long int (*get_received_packets)(struct libtrace_t *);
// get_filtered_packets
unsigned long int (*get_filtered_packets)(struct libtrace_t *);
// get_dropped_packets
unsigned long int (*get_dropped_packets)(struct libtrace_t *);
// get_captured_packets
unsigned long int (*get_captured_packets)(struct libtrace_t *);
// get_fd
signed int (*get_fd)(const struct libtrace_t *);
// trace_event
struct libtrace_eventobj_t (*trace_event)(struct libtrace_t *, struct libtrace_packet_t *);
// help
void (*help)(void);
// next
struct libtrace_format_t *next;
};
struct trace_err_t
{
// err_num
signed int err_num;
// problem
char problem[255l];
};
struct libtrace_out_t
{
// format
struct libtrace_format_t *format;
// format_data
void *format_data;
// uridata
char *uridata;
// err
struct trace_err_t err;
// started
_Bool started;
};
struct libtrace_packet_t
{
// trace
struct libtrace_t *trace;
// header
void *header;
// payload
void *payload;
// buffer
void *buffer;
// type
enum anonymous$20 type;
// buf_control
enum anonymous buf_control;
// capture_length
signed int capture_length;
// wire_length
signed int wire_length;
// payload_length
signed int payload_length;
// l2_header
void *l2_header;
// link_type
enum anonymous$3 link_type;
// l2_remaining
unsigned int l2_remaining;
// l3_header
void *l3_header;
// l3_ethertype
unsigned short int l3_ethertype;
// l3_remaining
unsigned int l3_remaining;
// l4_header
void *l4_header;
// transport_proto
unsigned char transport_proto;
// l4_remaining
unsigned int l4_remaining;
};
struct libtrace_pcapfile_pkt_hdr_t
{
// ts_sec
unsigned int ts_sec;
// ts_usec
unsigned int ts_usec;
// caplen
unsigned int caplen;
// wirelen
unsigned int wirelen;
};
struct libtrace_t
{
// format
struct libtrace_format_t *format;
// event
struct libtrace_event_status_t event;
// format_data
void *format_data;
// filter
struct libtrace_filter_t *filter;
// snaplen
unsigned long int snaplen;
// accepted_packets
unsigned long int accepted_packets;
// filtered_packets
unsigned long int filtered_packets;
// uridata
char *uridata;
// io
struct io_t *io;
// err
struct trace_err_t err;
// started
_Bool started;
};
struct lzma_t
{
// inbuff
unsigned char inbuff[1048576l];
// strm
struct anonymous$11 strm;
// parent
struct io_t *parent;
// outoffset
signed int outoffset;
// err
enum err_t err;
};
struct lzmaw_t
{
// strm
struct anonymous$11 strm;
// outbuff
unsigned char outbuff[1048576l];
// child
struct iow_t *child;
// err
enum err_t err;
// inoffset
signed int inoffset;
};
struct peek_t
{
// child
struct io_t *child;
// buffer
char *buffer;
// length
signed long int length;
// offset
signed long int offset;
};
union pthread_attr_t
{
// __size
char __size[56l];
// __align
signed long int __align;
};
struct state_t$0
{
// buffer
struct buffer_t *buffer;
// in_buffer
signed int in_buffer;
// offset
signed long int offset;
// producer
unsigned long int producer;
// space_avail
union anonymous$15 space_avail;
// data_ready
union anonymous$15 data_ready;
// mutex
union anonymous$10 mutex;
// io
struct io_t *io;
// closing
_Bool closing;
};
struct state_t
{
// buffer
struct buffer_t buffer[5l];
// offset
signed long int offset;
// consumer
unsigned long int consumer;
// iow
struct iow_t *iow;
// data_ready
union anonymous$15 data_ready;
// space_avail
union anonymous$15 space_avail;
// mutex
union anonymous$10 mutex;
// out_buffer
signed int out_buffer;
// closing
_Bool closing;
};
struct stdio_t
{
// fd
signed int fd;
};
struct stdiow_t
{
// buffer
char buffer[4096l];
// offset
signed int offset;
// fd
signed int fd;
};
struct timespec
{
// tv_sec
signed long int tv_sec;
// tv_nsec
signed long int tv_nsec;
};
struct timeval
{
// tv_sec
signed long int tv_sec;
// tv_usec
signed long int tv_usec;
};
struct timezone
{
// tz_minuteswest
signed int tz_minuteswest;
// tz_dsttime
signed int tz_dsttime;
};
struct wandio_compression_type
{
// name
const char *name;
// ext
const char *ext;
// compress_type
signed int compress_type;
};
struct z_stream_s
{
// next_in
unsigned char *next_in;
// avail_in
unsigned int avail_in;
// total_in
unsigned long int total_in;
// next_out
unsigned char *next_out;
// avail_out
unsigned int avail_out;
// total_out
unsigned long int total_out;
// msg
char *msg;
// state
struct internal_state *state;
// zalloc
void * (*zalloc)(void *, unsigned int, unsigned int);
// zfree
void (*zfree)(void *, void *);
// opaque
void *opaque;
// data_type
signed int data_type;
// adler
unsigned long int adler;
// reserved
unsigned long int reserved;
};
struct zlib_t
{
// inbuff
unsigned char inbuff[1048576l];
// strm
struct z_stream_s strm;
// parent
struct io_t *parent;
// outoffset
signed int outoffset;
// err
enum err_t err;
};
struct zlibw_t
{
// strm
struct z_stream_s strm;
// outbuff
unsigned char outbuff[1048576l];
// child
struct iow_t *child;
// err
enum err_t err;
// inoffset
signed int inoffset;
};
// bz_source
// file ior-bzip.c line 152
struct anonymous$5 bz_source;
// bz_source
// file ior-bzip.c line 152
struct anonymous$5 bz_source = { .name="bzip", .read=bz_read, .peek=(signed long int (*)(struct io_t *, void *, signed long int))(void *)0, .tell=(signed long int (*)(struct io_t *))(void *)0,
.seek=(signed long int (*)(struct io_t *, signed long int, signed int))(void *)0,
.close=bz_close };
// bz_wsource
// file iow-bzip.c line 157
struct anonymous$0 bz_wsource;
// bz_wsource
// file iow-bzip.c line 157
struct anonymous$0 bz_wsource = { .name="bzw", .write=bz_wwrite, .close=bz_wclose };
// compression_type
// file wandio.c line 48
struct wandio_compression_type compression_type[5l] = { { .name="gzip", .ext="gz", .compress_type=1 },
{ .name="bzip2", .ext="bz2", .compress_type=2 },
{ .name="lzo", .ext="lzo", .compress_type=3 },
{ .name="lzma", .ext="xz", .compress_type=4 },
{ .name="NONE", .ext="", .compress_type=0 } };
// force_directio_read
// file wandio.c line 58
signed int force_directio_read = 0;
// force_directio_write
// file wandio.c line 57
signed int force_directio_write = 0;
// formats_list
// file trace.c line 105
static struct libtrace_format_t *formats_list = (struct libtrace_format_t *)(void *)0;
// keep_stats
// file wandio.c line 56
signed int keep_stats = 0;
// libtrace_halt
// file trace.c line 107
signed int libtrace_halt = 0;
// lzma_source
// file ior-lzma.c line 157
struct anonymous$5 lzma_source;
// lzma_source
// file ior-lzma.c line 157
struct anonymous$5 lzma_source = { .name="lzma", .read=lzma_read, .peek=(signed long int (*)(struct io_t *, void *, signed long int))(void *)0, .tell=(signed long int (*)(struct io_t *))(void *)0,
.seek=(signed long int (*)(struct io_t *, signed long int, signed int))(void *)0,
.close=lzma_close };
// lzma_wsource
// file iow-lzma.c line 166
struct anonymous$0 lzma_wsource;
// lzma_wsource
// file iow-lzma.c line 166
struct anonymous$0 lzma_wsource = { .name="xz", .write=lzma_wwrite, .close=lzma_wclose };
// max_buffers
// file wandio.c line 61
unsigned int max_buffers = (unsigned int)50;
// peek_source
// file ior-peek.c line 314
struct anonymous$5 peek_source;
// peek_source
// file ior-peek.c line 314
struct anonymous$5 peek_source = { .name="peek", .read=peek_read, .peek=peek_peek, .tell=peek_tell,
.seek=peek_seek, .close=peek_close };
// read_waits
// file wandio.c line 63
unsigned long int read_waits = (unsigned long int)0;
// stderr
// file /usr/include/stdio.h line 170
extern struct _IO_FILE *stderr;
// stdio_source
// file ior-stdio.c line 102
struct anonymous$5 stdio_source;
// stdio_source
// file ior-stdio.c line 102
struct anonymous$5 stdio_source = { .name="stdio", .read=stdio_read, .peek=(signed long int (*)(struct io_t *, void *, signed long int))(void *)0, .tell=stdio_tell,
.seek=stdio_seek, .close=stdio_close };
// stdio_wsource
// file iow-stdio.c line 233
struct anonymous$0 stdio_wsource;
// stdio_wsource
// file iow-stdio.c line 233
struct anonymous$0 stdio_wsource = { .name="stdiow", .write=stdio_wwrite, .close=stdio_wclose };
// thread_source
// file ior-thread.c line 279
struct anonymous$5 thread_source;
// thread_source
// file ior-thread.c line 279
struct anonymous$5 thread_source = { .name="thread", .read=thread_read, .peek=(signed long int (*)(struct io_t *, void *, signed long int))(void *)0, .tell=(signed long int (*)(struct io_t *))(void *)0,
.seek=(signed long int (*)(struct io_t *, signed long int, signed int))(void *)0,
.close=thread_close };
// thread_wsource
// file iow-thread.c line 258
struct anonymous$0 thread_wsource;
// thread_wsource
// file iow-thread.c line 258
struct anonymous$0 thread_wsource = { .name="threadw", .write=thread_wwrite, .close=thread_wclose };
// use_autodetect
// file wandio.c line 59
signed int use_autodetect = 1;
// use_threads
// file wandio.c line 60
unsigned int use_threads = (unsigned int)-1;
// write_waits
// file wandio.c line 64
unsigned long int write_waits = (unsigned long int)0;
// zlib_source
// file ior-zlib.c line 164
struct anonymous$5 zlib_source;
// zlib_source
// file ior-zlib.c line 164
struct anonymous$5 zlib_source = { .name="zlib", .read=zlib_read, .peek=(signed long int (*)(struct io_t *, void *, signed long int))(void *)0, .tell=(signed long int (*)(struct io_t *))(void *)0,
.seek=(signed long int (*)(struct io_t *, signed long int, signed int))(void *)0,
.close=zlib_close };
// zlib_wsource
// file iow-zlib.c line 173
struct anonymous$0 zlib_wsource;
// zlib_wsource
// file iow-zlib.c line 173
struct anonymous$0 zlib_wsource = { .name="zlibw", .write=zlib_wwrite, .close=zlib_wclose };
// alignedrealloc
// file ior-peek.c line 223
static void * alignedrealloc(void *old, unsigned long int oldsize, unsigned long int size, signed int *res)
{
void *new;
if(!(size >= oldsize))
return old;
else
{
*res=posix_memalign(&new, (unsigned long int)4096, size);
if(!(*res == 0))
{
fprintf(stderr, "Error aligning IO buffer: %d\n", *res);
return (void *)0;
}
else
{
/* assertion oldsize<size */
assert(oldsize < size);
memcpy(new, old, oldsize);
free(old);
return new;
}
}
}
// bz_close
// file ior-bzip.c line 144
static void bz_close(struct io_t *io)
{
BZ2_bzDecompressEnd(&((struct bz_t *)io->data)->strm);
wandio_destroy(((struct bz_t *)io->data)->parent);
free(io->data);
free((void *)io);
}
// bz_open
// file wandio.h line 194
struct io_t * bz_open(struct io_t *parent)
{
struct io_t *io;
if(parent == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
io = (struct io_t *)return_value_malloc$1;
io->source = &bz_source;
io->data=malloc(sizeof(struct bz_t) /*1048680ul*/ );
((struct bz_t *)io->data)->parent = parent;
((struct bz_t *)io->data)->strm.next_in = (char *)(void *)0;
((struct bz_t *)io->data)->strm.avail_in = (unsigned int)0;
((struct bz_t *)io->data)->strm.next_out = (char *)(void *)0;
((struct bz_t *)io->data)->strm.avail_out = (unsigned int)0;
((struct bz_t *)io->data)->strm.bzalloc = (void * (*)(void *, signed int, signed int))(void *)0;
((struct bz_t *)io->data)->strm.bzfree = (void (*)(void *, void *))(void *)0;
((struct bz_t *)io->data)->strm.opaque = (void *)0;
((struct bz_t *)io->data)->err = (enum err_t)ERR_OK;
BZ2_bzDecompressInit(&((struct bz_t *)io->data)->strm, 0, 0);
return io;
}
}
// bz_read
// file ior-bzip.c line 94
static signed long int bz_read(struct io_t *io, void *buffer, signed long int len)
{
if((signed int)((struct bz_t *)io->data)->err == ERR_EOF)
return (signed long int)0;
else
{
if((signed int)((struct bz_t *)io->data)->err == ERR_ERROR)
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = 5;
return (signed long int)-1;
}
((struct bz_t *)io->data)->strm.avail_out = (unsigned int)len;
((struct bz_t *)io->data)->strm.next_out = (char *)buffer;
while((signed int)((struct bz_t *)io->data)->err == ERR_OK)
{
if(!(((struct bz_t *)io->data)->strm.avail_out >= 1u))
break;
while(!(((struct bz_t *)io->data)->strm.avail_in >= 1u))
{
signed int bytes_read;
signed long int return_value_wandio_read$2;
return_value_wandio_read$2=wandio_read(((struct bz_t *)io->data)->parent, (void *)((struct bz_t *)io->data)->inbuff, (signed long int)sizeof(char [1048576l]) /*1048576ul*/ );
bytes_read = (signed int)return_value_wandio_read$2;
if(bytes_read == 0)
return len - (signed long int)((struct bz_t *)io->data)->strm.avail_out;
if(!(bytes_read >= 0))
{
((struct bz_t *)io->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct bz_t *)io->data)->strm.avail_out == (unsigned int)len))
return len - (signed long int)((struct bz_t *)io->data)->strm.avail_out;
return (signed long int)-1;
}
((struct bz_t *)io->data)->strm.next_in = ((struct bz_t *)io->data)->inbuff;
((struct bz_t *)io->data)->strm.avail_in = (unsigned int)bytes_read;
}
signed int err;
err=BZ2_bzDecompress(&((struct bz_t *)io->data)->strm);
switch(err)
{
case 0:
{
((struct bz_t *)io->data)->err = (enum err_t)ERR_OK;
break;
}
case 4:
{
((struct bz_t *)io->data)->err = (enum err_t)ERR_EOF;
break;
}
default:
{
signed int *return_value___errno_location$3;
return_value___errno_location$3=__errno_location();
*return_value___errno_location$3 = 5;
((struct bz_t *)io->data)->err = (enum err_t)ERR_ERROR;
}
}
}
return len - (signed long int)((struct bz_t *)io->data)->strm.avail_out;
}
}
// bz_wclose
// file iow-bzip.c line 138
static void bz_wclose(struct iow_t *iow)
{
signed int return_value_BZ2_bzCompress$1;
do
{
return_value_BZ2_bzCompress$1=BZ2_bzCompress(&((struct bzw_t *)iow->data)->strm, 2);
if(!(return_value_BZ2_bzCompress$1 == 0))
break;
wandio_wwrite(((struct bzw_t *)iow->data)->child, (const void *)((struct bzw_t *)iow->data)->outbuff, (signed long int)(sizeof(char [1048576l]) /*1048576ul*/ - (unsigned long int)((struct bzw_t *)iow->data)->strm.avail_out));
((struct bzw_t *)iow->data)->strm.next_out = ((struct bzw_t *)iow->data)->outbuff;
((struct bzw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(char [1048576l]) /*1048576ul*/ ;
}
while((_Bool)1);
BZ2_bzCompressEnd(&((struct bzw_t *)iow->data)->strm);
wandio_wwrite(((struct bzw_t *)iow->data)->child, (const void *)((struct bzw_t *)iow->data)->outbuff, (signed long int)(sizeof(char [1048576l]) /*1048576ul*/ - (unsigned long int)((struct bzw_t *)iow->data)->strm.avail_out));
wandio_wdestroy(((struct bzw_t *)iow->data)->child);
free(iow->data);
free((void *)iow);
}
// bz_wopen
// file wandio.h line 202
struct iow_t * bz_wopen(struct iow_t *child, signed int compress_level)
{
struct iow_t *iow;
if(child == ((struct iow_t *)NULL))
return (struct iow_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct iow_t) /*16ul*/ );
iow = (struct iow_t *)return_value_malloc$1;
iow->source = &bz_wsource;
iow->data=malloc(sizeof(struct bzw_t) /*1048680ul*/ );
((struct bzw_t *)iow->data)->child = child;
((struct bzw_t *)iow->data)->strm.next_in = (char *)(void *)0;
((struct bzw_t *)iow->data)->strm.avail_in = (unsigned int)0;
((struct bzw_t *)iow->data)->strm.next_out = ((struct bzw_t *)iow->data)->outbuff;
((struct bzw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(char [1048576l]) /*1048576ul*/ ;
((struct bzw_t *)iow->data)->strm.bzalloc = (void * (*)(void *, signed int, signed int))(void *)0;
((struct bzw_t *)iow->data)->strm.bzfree = (void (*)(void *, void *))(void *)0;
((struct bzw_t *)iow->data)->strm.opaque = (void *)0;
((struct bzw_t *)iow->data)->err = (enum err_t)ERR_OK;
BZ2_bzCompressInit(&((struct bzw_t *)iow->data)->strm, compress_level, 0, 30);
return iow;
}
}
// bz_wwrite
// file iow-bzip.c line 93
static signed long int bz_wwrite(struct iow_t *iow, const char *buffer, signed long int len)
{
if((signed int)((struct bzw_t *)iow->data)->err == ERR_EOF)
return (signed long int)0;
else
if((signed int)((struct bzw_t *)iow->data)->err == ERR_ERROR)
return (signed long int)-1;
else
{
((struct bzw_t *)iow->data)->strm.next_in = (char *)buffer;
((struct bzw_t *)iow->data)->strm.avail_in = (unsigned int)len;
while((signed int)((struct bzw_t *)iow->data)->err == ERR_OK)
{
if(!(((struct bzw_t *)iow->data)->strm.avail_in >= 1u))
break;
while(!(((struct bzw_t *)iow->data)->strm.avail_out >= 1u))
{
signed int bytes_written;
signed long int return_value_wandio_wwrite$1;
return_value_wandio_wwrite$1=wandio_wwrite(((struct bzw_t *)iow->data)->child, (const void *)((struct bzw_t *)iow->data)->outbuff, (signed long int)sizeof(char [1048576l]) /*1048576ul*/ );
bytes_written = (signed int)return_value_wandio_wwrite$1;
if(!(bytes_written >= 1))
{
((struct bzw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct bzw_t *)iow->data)->strm.avail_in == (unsigned int)len))
return len - (signed long int)((struct bzw_t *)iow->data)->strm.avail_in;
return (signed long int)-1;
}
((struct bzw_t *)iow->data)->strm.next_out = ((struct bzw_t *)iow->data)->outbuff;
((struct bzw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(char [1048576l]) /*1048576ul*/ ;
}
signed int err;
err=BZ2_bzCompress(&((struct bzw_t *)iow->data)->strm, 0);
if(err == 0 || err == 1)
{
((struct bzw_t *)iow->data)->err = (enum err_t)ERR_OK;
goto __CPROVER_DUMP_L10;
}
((struct bzw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
__CPROVER_DUMP_L10:
;
}
return len - (signed long int)((struct bzw_t *)iow->data)->strm.avail_in;
}
}
// create_io_reader
// file wandio.c line 134
static struct io_t * create_io_reader(const char *filename, signed int autodetect)
{
struct io_t *io;
struct io_t *return_value_stdio_open$1;
return_value_stdio_open$1=stdio_open(filename);
io=peek_open(return_value_stdio_open$1);
unsigned char buffer[1024l];
signed int len;
if(io == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
signed long int return_value_wandio_peek$2;
return_value_wandio_peek$2=wandio_peek(io, (void *)buffer, (signed long int)sizeof(unsigned char [1024l]) /*1024ul*/ );
len = (signed int)return_value_wandio_peek$2;
if(!(autodetect == 0))
{
if(len >= 3)
{
if((signed int)buffer[0l] == 0x1f)
{
if((signed int)buffer[1l] == 0x8b)
{
if((signed int)buffer[2l] == 0x08)
io=zlib_open(io);
}
}
}
if(len >= 2)
{
if((signed int)buffer[0l] == 0x1f)
{
if((signed int)buffer[1l] == 0x9d)
io=zlib_open(io);
}
}
if(len >= 3)
{
if((signed int)buffer[0l] == 66)
{
if((signed int)buffer[1l] == 90)
{
if((signed int)buffer[2l] == 104)
io=bz_open(io);
}
}
}
if(len >= 5)
{
if((signed int)buffer[0l] == 0xfd)
{
if((signed int)buffer[1l] == 55)
{
if((signed int)buffer[2l] == 122)
{
if((signed int)buffer[3l] == 88)
{
if((signed int)buffer[4l] == 90)
io=lzma_open(io);
}
}
}
}
}
}
if(!(use_threads == 0u))
io=thread_open(io);
struct io_t *return_value_peek_open$3;
return_value_peek_open$3=peek_open(io);
return return_value_peek_open$3;
}
}
// do_option
// file wandio.c line 75
static void do_option(const char *option)
{
signed int return_value_strcmp$7;
signed int return_value_strcmp$6;
signed int return_value_strcmp$5;
signed int return_value_strncmp$4;
signed int return_value_atoi$1;
signed int return_value_strncmp$3;
signed int return_value_atoi$2;
if(!((signed int)*option == 0))
{
return_value_strcmp$7=strcmp(option, "stats");
if(return_value_strcmp$7 == 0)
keep_stats = 1;
else
{
return_value_strcmp$6=strcmp(option, "nothreads");
if(return_value_strcmp$6 == 0)
use_threads = (unsigned int)0;
else
{
return_value_strcmp$5=strcmp(option, "noautodetect");
if(return_value_strcmp$5 == 0)
use_autodetect = 0;
else
{
return_value_strncmp$4=strncmp(option, "threads=", (unsigned long int)8);
if(return_value_strncmp$4 == 0)
{
return_value_atoi$1=atoi(option + (signed long int)8);
use_threads = (unsigned int)return_value_atoi$1;
}
else
{
return_value_strncmp$3=strncmp(option, "buffers=", (unsigned long int)8);
if(return_value_strncmp$3 == 0)
{
return_value_atoi$2=atoi(option + (signed long int)8);
max_buffers = (unsigned int)return_value_atoi$2;
}
else
fprintf(stderr, "Unknown libtraceio debug option '%s'\n", option);
}
}
}
}
}
}
// guess_format
// file trace.c line 175
static void guess_format(struct libtrace_t *libtrace, const char *filename)
{
struct libtrace_format_t *tmp = formats_list;
signed int return_value;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
if(!(tmp->probe_filename == ((signed int (*)(const char *))NULL)))
{
return_value=tmp->probe_filename(filename);
if(!(return_value == 0))
{
libtrace->format = tmp;
libtrace->uridata=strdup(filename);
}
}
libtrace->io=wandio_create(filename);
signed int return_value_1;
if(!(libtrace->io == ((struct io_t *)NULL)))
{
tmp = formats_list;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
if(!(tmp->probe_magic == ((signed int (*)(struct io_t *))NULL)))
{
return_value_1=tmp->probe_magic(libtrace->io);
if(!(return_value_1 == 0))
{
libtrace->format = tmp;
libtrace->uridata=strdup(filename);
}
}
goto __CPROVER_DUMP_L8;
}
__CPROVER_DUMP_L8:
;
}
// libtrace_cleanup
// file mplstag.c line 72
static void libtrace_cleanup(struct libtrace_t *trace, struct libtrace_packet_t *packet)
{
if(!(trace == ((struct libtrace_t *)NULL)))
trace_destroy(trace);
if(!(packet == ((struct libtrace_packet_t *)NULL)))
trace_destroy_packet(packet);
}
// lzma_close
// file ior-lzma.c line 149
static void lzma_close(struct io_t *io)
{
lzma_end(&((struct lzma_t *)io->data)->strm);
wandio_destroy(((struct lzma_t *)io->data)->parent);
free(io->data);
free((void *)io);
}
// lzma_open
// file wandio.h line 197
struct io_t * lzma_open(struct io_t *parent)
{
struct io_t *io;
if(parent == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
io = (struct io_t *)return_value_malloc$1;
io->source = &lzma_source;
io->data=malloc(sizeof(struct lzma_t) /*1048728ul*/ );
((struct lzma_t *)io->data)->parent = parent;
memset((void *)&((struct lzma_t *)io->data)->strm, 0, sizeof(struct anonymous$11) /*136ul*/ );
((struct lzma_t *)io->data)->err = (enum err_t)ERR_OK;
enum anonymous$12 return_value_lzma_auto_decoder$2;
return_value_lzma_auto_decoder$2=lzma_auto_decoder(&((struct lzma_t *)io->data)->strm, 18446744073709551615UL, (unsigned int)0);
if(!((signed int)return_value_lzma_auto_decoder$2 == LZMA_OK))
{
free(io->data);
free((void *)io);
fprintf(stderr, "auto decoder failed\n");
return (struct io_t *)(void *)0;
}
else
return io;
}
}
// lzma_read
// file ior-lzma.c line 91
static signed long int lzma_read(struct io_t *io, void *buffer, signed long int len)
{
if((signed int)((struct lzma_t *)io->data)->err == ERR_EOF)
return (signed long int)0;
else
{
if((signed int)((struct lzma_t *)io->data)->err == ERR_ERROR)
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = 5;
return (signed long int)-1;
}
((struct lzma_t *)io->data)->strm.avail_out = (unsigned long int)len;
((struct lzma_t *)io->data)->strm.next_out = (unsigned char *)buffer;
while((signed int)((struct lzma_t *)io->data)->err == ERR_OK)
{
if(!(((struct lzma_t *)io->data)->strm.avail_out >= 1ul))
break;
while(!(((struct lzma_t *)io->data)->strm.avail_in >= 1ul))
{
signed int bytes_read;
signed long int return_value_wandio_read$2;
return_value_wandio_read$2=wandio_read(((struct lzma_t *)io->data)->parent, (void *)(char *)((struct lzma_t *)io->data)->inbuff, (signed long int)sizeof(unsigned char [1048576l]) /*1048576ul*/ );
bytes_read = (signed int)return_value_wandio_read$2;
if(bytes_read == 0)
{
if(((struct lzma_t *)io->data)->strm.avail_out == (unsigned long int)(unsigned int)len)
{
((struct lzma_t *)io->data)->err = (enum err_t)ERR_EOF;
return (signed long int)0;
}
return (signed long int)((unsigned long int)len - ((struct lzma_t *)io->data)->strm.avail_out);
}
if(!(bytes_read >= 0))
{
((struct lzma_t *)io->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct lzma_t *)io->data)->strm.avail_out == (unsigned long int)(unsigned int)len))
return (signed long int)((unsigned long int)len - ((struct lzma_t *)io->data)->strm.avail_out);
return (signed long int)-1;
}
((struct lzma_t *)io->data)->strm.next_in = ((struct lzma_t *)io->data)->inbuff;
((struct lzma_t *)io->data)->strm.avail_in = (unsigned long int)bytes_read;
}
enum anonymous$12 err;
err=lzma_code(&((struct lzma_t *)io->data)->strm, (enum anonymous$13)LZMA_RUN);
switch((signed int)err)
{
case LZMA_OK:
{
((struct lzma_t *)io->data)->err = (enum err_t)ERR_OK;
break;
}
case LZMA_STREAM_END:
{
((struct lzma_t *)io->data)->err = (enum err_t)ERR_EOF;
break;
}
default:
{
signed int *return_value___errno_location$3;
return_value___errno_location$3=__errno_location();
*return_value___errno_location$3 = 5;
((struct lzma_t *)io->data)->err = (enum err_t)ERR_ERROR;
}
}
}
return (signed long int)((unsigned long int)len - ((struct lzma_t *)io->data)->strm.avail_out);
}
}
// lzma_wclose
// file iow-lzma.c line 137
static void lzma_wclose(struct iow_t *iow)
{
enum anonymous$12 res;
for( ; (_Bool)1; ((struct lzmaw_t *)iow->data)->strm.avail_out = sizeof(unsigned char [1048576l]) /*1048576ul*/ )
{
res=lzma_code(&((struct lzmaw_t *)iow->data)->strm, (enum anonymous$13)LZMA_FINISH);
if((signed int)res == LZMA_STREAM_END)
break;
if(!((signed int)res == LZMA_OK))
{
fprintf(stderr, "Z_STREAM_ERROR while closing output\n");
break;
}
wandio_wwrite(((struct lzmaw_t *)iow->data)->child, (const void *)(char *)((struct lzmaw_t *)iow->data)->outbuff, (signed long int)(sizeof(unsigned char [1048576l]) /*1048576ul*/ - ((struct lzmaw_t *)iow->data)->strm.avail_out));
((struct lzmaw_t *)iow->data)->strm.next_out = ((struct lzmaw_t *)iow->data)->outbuff;
}
wandio_wwrite(((struct lzmaw_t *)iow->data)->child, (const void *)(char *)((struct lzmaw_t *)iow->data)->outbuff, (signed long int)(sizeof(unsigned char [1048576l]) /*1048576ul*/ - ((struct lzmaw_t *)iow->data)->strm.avail_out));
lzma_end(&((struct lzmaw_t *)iow->data)->strm);
wandio_wdestroy(((struct lzmaw_t *)iow->data)->child);
free(iow->data);
free((void *)iow);
}
// lzma_wopen
// file wandio.h line 204
struct iow_t * lzma_wopen(struct iow_t *child, signed int compress_level)
{
struct iow_t *iow;
if(child == ((struct iow_t *)NULL))
return (struct iow_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct iow_t) /*16ul*/ );
iow = (struct iow_t *)return_value_malloc$1;
iow->source = &lzma_wsource;
iow->data=malloc(sizeof(struct lzmaw_t) /*1048728ul*/ );
((struct lzmaw_t *)iow->data)->child = child;
memset((void *)&((struct lzmaw_t *)iow->data)->strm, 0, sizeof(struct anonymous$11) /*136ul*/ );
((struct lzmaw_t *)iow->data)->strm.next_out = ((struct lzmaw_t *)iow->data)->outbuff;
((struct lzmaw_t *)iow->data)->strm.avail_out = sizeof(unsigned char [1048576l]) /*1048576ul*/ ;
((struct lzmaw_t *)iow->data)->err = (enum err_t)ERR_OK;
enum anonymous$12 return_value_lzma_easy_encoder$2;
return_value_lzma_easy_encoder$2=lzma_easy_encoder(&((struct lzmaw_t *)iow->data)->strm, (unsigned int)compress_level, (enum anonymous$16)LZMA_CHECK_CRC64);
if(!((signed int)return_value_lzma_easy_encoder$2 == LZMA_OK))
{
free(iow->data);
free((void *)iow);
return (struct iow_t *)(void *)0;
}
else
return iow;
}
}
// lzma_wwrite
// file iow-lzma.c line 93
static signed long int lzma_wwrite(struct iow_t *iow, const char *buffer, signed long int len)
{
if((signed int)((struct lzmaw_t *)iow->data)->err == ERR_EOF)
return (signed long int)0;
else
if((signed int)((struct lzmaw_t *)iow->data)->err == ERR_ERROR)
return (signed long int)-1;
else
{
((struct lzmaw_t *)iow->data)->strm.next_in = (const unsigned char *)buffer;
((struct lzmaw_t *)iow->data)->strm.avail_in = (unsigned long int)len;
while((signed int)((struct lzmaw_t *)iow->data)->err == ERR_OK)
{
if(!(((struct lzmaw_t *)iow->data)->strm.avail_in >= 1ul))
break;
while(!(((struct lzmaw_t *)iow->data)->strm.avail_out >= 1ul))
{
signed int bytes_written;
signed long int return_value_wandio_wwrite$1;
return_value_wandio_wwrite$1=wandio_wwrite(((struct lzmaw_t *)iow->data)->child, (const void *)((struct lzmaw_t *)iow->data)->outbuff, (signed long int)sizeof(unsigned char [1048576l]) /*1048576ul*/ );
bytes_written = (signed int)return_value_wandio_wwrite$1;
if(!(bytes_written >= 1))
{
((struct lzmaw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct lzmaw_t *)iow->data)->strm.avail_in == (unsigned long int)(unsigned int)len))
return (signed long int)((unsigned long int)len - ((struct lzmaw_t *)iow->data)->strm.avail_in);
return (signed long int)-1;
}
((struct lzmaw_t *)iow->data)->strm.next_out = ((struct lzmaw_t *)iow->data)->outbuff;
((struct lzmaw_t *)iow->data)->strm.avail_out = sizeof(unsigned char [1048576l]) /*1048576ul*/ ;
}
enum anonymous$12 err;
err=lzma_code(&((struct lzmaw_t *)iow->data)->strm, (enum anonymous$13)LZMA_RUN);
if((signed int)err == LZMA_OK)
{
((struct lzmaw_t *)iow->data)->err = (enum err_t)ERR_OK;
goto __CPROVER_DUMP_L10;
}
((struct lzmaw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
__CPROVER_DUMP_L10:
;
}
return (signed long int)((unsigned long int)len - ((struct lzmaw_t *)iow->data)->strm.avail_in);
}
}
// main
// file mplstag.c line 85
signed int main(signed int argc, char **argv)
{
struct libtrace_t *trace = (struct libtrace_t *)(void *)0;
struct libtrace_packet_t *packet = (struct libtrace_packet_t *)(void *)0;
signed int return_value_trace_read_packet$3;
if(!(argc >= 2))
{
fprintf(stderr, "Usage: %s inputURI\n", argv[(signed long int)0]);
return 1;
}
else
{
packet=trace_create_packet();
if(packet == ((struct libtrace_packet_t *)NULL))
{
perror("Creating libtrace packet");
libtrace_cleanup(trace, packet);
return 1;
}
else
{
trace=trace_create(argv[(signed long int)1]);
_Bool return_value_trace_is_err$1;
return_value_trace_is_err$1=trace_is_err(trace);
if(!(return_value_trace_is_err$1 == (_Bool)0))
{
trace_perror(trace, "Opening trace file");
libtrace_cleanup(trace, packet);
return 1;
}
else
{
signed int return_value_trace_start$2;
return_value_trace_start$2=trace_start(trace);
if(return_value_trace_start$2 == -1)
{
trace_perror(trace, "Starting trace");
libtrace_cleanup(trace, packet);
return 1;
}
else
{
do
{
return_value_trace_read_packet$3=trace_read_packet(trace, packet);
if(!(return_value_trace_read_packet$3 >= 1))
break;
per_packet(packet);
}
while((_Bool)1);
_Bool return_value_trace_is_err$4;
return_value_trace_is_err$4=trace_is_err(trace);
if(!(return_value_trace_is_err$4 == (_Bool)0))
{
trace_perror(trace, "Reading packets");
libtrace_cleanup(trace, packet);
return 1;
}
else
{
libtrace_cleanup(trace, packet);
return 0;
}
}
}
}
}
}
// parse_env
// file wandio.c line 100
static void parse_env(void)
{
const char *str;
str=getenv("LIBTRACEIO");
char option[1024l];
const char *ip;
char *op;
_Bool tmp_if_expr$1;
char *tmp_post$2;
if(!(str == ((const char *)NULL)))
{
ip = str;
op = option;
do
{
if(!((signed int)*ip == 0))
tmp_if_expr$1 = op < option + (signed long int)sizeof(char [1024l]) /*1024ul*/ ? (_Bool)1 : (_Bool)0;
else
tmp_if_expr$1 = (_Bool)0;
if(!tmp_if_expr$1)
break;
if((signed int)*ip == 44)
{
*op = (char)0;
do_option(option);
op = option;
}
else
{
tmp_post$2 = op;
op = op + 1l;
*tmp_post$2 = *ip;
}
ip = ip + 1l;
}
while((_Bool)1);
*op = (char)0;
do_option(option);
}
}
// peek_close
// file ior-peek.c line 304
static void peek_close(struct io_t *io)
{
wandio_destroy(((struct peek_t *)io->data)->child);
if(!(((struct peek_t *)io->data)->buffer == ((char *)NULL)))
free((void *)((struct peek_t *)io->data)->buffer);
free(io->data);
free((void *)io);
}
// peek_open
// file wandio.h line 198
struct io_t * peek_open(struct io_t *child)
{
struct io_t *io;
if(child == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
io = (struct io_t *)return_value_malloc$1;
io->data=malloc(sizeof(struct peek_t) /*32ul*/ );
io->source = &peek_source;
((struct peek_t *)io->data)->child = child;
((struct peek_t *)io->data)->buffer = (char *)(void *)0;
((struct peek_t *)io->data)->length = (signed long int)0;
((struct peek_t *)io->data)->offset = (signed long int)0;
return io;
}
}
// peek_peek
// file ior-peek.c line 250
static signed long int peek_peek(struct io_t *io, void *buffer, signed long int len)
{
signed long int ret = (signed long int)0;
signed int res = 0;
if(!(((struct peek_t *)io->data)->length + -((struct peek_t *)io->data)->offset >= len))
{
signed long int read_amount = len - (((struct peek_t *)io->data)->length - ((struct peek_t *)io->data)->offset);
read_amount = read_amount + ((signed long int)(1024 * 1024) - (((struct peek_t *)io->data)->length + read_amount) % (signed long int)(1024 * 1024));
void *return_value_alignedrealloc$1;
return_value_alignedrealloc$1=alignedrealloc((void *)((struct peek_t *)io->data)->buffer, (unsigned long int)((struct peek_t *)io->data)->length, (unsigned long int)(((struct peek_t *)io->data)->length + read_amount), &res);
((struct peek_t *)io->data)->buffer = (char *)return_value_alignedrealloc$1;
if(((struct peek_t *)io->data)->buffer == ((char *)NULL))
return (signed long int)res;
read_amount=wandio_read(((struct peek_t *)io->data)->child, (void *)(((struct peek_t *)io->data)->buffer + ((struct peek_t *)io->data)->length), read_amount);
if(!(read_amount >= 0l))
return read_amount;
((struct peek_t *)io->data)->length = ((struct peek_t *)io->data)->length + read_amount;
}
signed long int tmp_if_expr$2;
if(!(len >= ((struct peek_t *)io->data)->length + -((struct peek_t *)io->data)->offset))
tmp_if_expr$2 = len;
else
tmp_if_expr$2 = ((struct peek_t *)io->data)->length - ((struct peek_t *)io->data)->offset;
ret = tmp_if_expr$2;
memcpy(buffer, (const void *)(((struct peek_t *)io->data)->buffer + ((struct peek_t *)io->data)->offset), (unsigned long int)ret);
return ret;
}
// peek_read
// file ior-peek.c line 152
static signed long int peek_read(struct io_t *io, void *buffer, signed long int len)
{
signed long int ret = (signed long int)0;
signed long int tmp_if_expr$1;
if(!(((struct peek_t *)io->data)->buffer == ((char *)NULL)))
{
if(!(len >= ((struct peek_t *)io->data)->length + -((struct peek_t *)io->data)->offset))
tmp_if_expr$1 = len;
else
tmp_if_expr$1 = ((struct peek_t *)io->data)->length - ((struct peek_t *)io->data)->offset;
ret = tmp_if_expr$1;
memcpy(buffer, (const void *)(((struct peek_t *)io->data)->buffer + ((struct peek_t *)io->data)->offset), (unsigned long int)ret);
buffer = buffer + ret;
((struct peek_t *)io->data)->offset = ((struct peek_t *)io->data)->offset + ret;
len = len - ret;
}
if(len >= 1l)
{
/* assertion ((struct peek_t *)((io)->data))->length-((struct peek_t *)((io)->data))->offset == 0 */
assert(((struct peek_t *)io->data)->length - ((struct peek_t *)io->data)->offset == (signed long int)0);
signed long int bytes_read;
if(len % 4096l == 0l && (signed long int)buffer % 4096l == 0l)
{
/* assertion ((ptrdiff_t)buffer % 4096) == 0 */
assert((signed long int)buffer % (signed long int)4096 == (signed long int)0);
bytes_read=((struct peek_t *)io->data)->child->source->read(((struct peek_t *)io->data)->child, buffer, len);
if(!(bytes_read >= 1l))
{
if(ret >= 1l)
return ret;
return bytes_read;
}
}
else
{
bytes_read=refill_buffer(io, len);
if(!(bytes_read >= 1l))
{
if(ret >= 1l)
return ret;
return bytes_read;
}
len = len < bytes_read ? len : bytes_read;
memcpy(buffer, (const void *)((struct peek_t *)io->data)->buffer, (unsigned long int)len);
((struct peek_t *)io->data)->offset = len;
bytes_read = len;
}
ret = ret + bytes_read;
}
if(!(((struct peek_t *)io->data)->buffer == ((char *)NULL)))
{
if(((struct peek_t *)io->data)->offset >= ((struct peek_t *)io->data)->length)
{
free((void *)((struct peek_t *)io->data)->buffer);
((struct peek_t *)io->data)->buffer = (char *)(void *)0;
((struct peek_t *)io->data)->offset = (signed long int)0;
((struct peek_t *)io->data)->length = (signed long int)0;
}
}
return ret;
}
// peek_seek
// file ior-peek.c line 297
static signed long int peek_seek(struct io_t *io, signed long int offset, signed int whence)
{
signed long int return_value_wandio_seek$1;
return_value_wandio_seek$1=wandio_seek(((struct peek_t *)io->data)->child, offset, whence);
return return_value_wandio_seek$1;
}
// peek_tell
// file ior-peek.c line 290
static signed long int peek_tell(struct io_t *io)
{
signed long int return_value_wandio_tell$1;
return_value_wandio_tell$1=wandio_tell(((struct peek_t *)io->data)->child);
return return_value_wandio_tell$1;
}
// per_packet
// file mplstag.c line 26
static void per_packet(struct libtrace_packet_t *packet)
{
void *l2 = (void *)0;
void *l2_payload = (void *)0;
enum anonymous$3 link_type;
unsigned short int ethertype;
unsigned int remaining;
l2=trace_get_layer2(packet, &link_type, &remaining);
if(!(l2 == NULL))
{
l2_payload=trace_get_payload_from_layer2(l2, link_type, ðertype, &remaining);
if(!(l2_payload == NULL))
{
if(!(remaining == 0u))
{
while(remaining >= 1u && !(l2_payload == NULL))
if((signed int)ethertype == 0x8847)
{
print_mpls_label(l2_payload, remaining);
l2_payload=trace_get_payload_from_mpls(l2_payload, ðertype, &remaining);
}
else
break;
printf("\n");
}
}
}
}
// print_mpls_label
// file mplstag.c line 10
static void print_mpls_label(void *mpls, unsigned int remaining)
{
unsigned int label = (unsigned int)0;
if(remaining >= 4u)
{
label = *((unsigned int *)mpls);
label=ntohl(label);
label = label >> 12 & (unsigned int)0x000fffff;
printf("%u ", label);
}
}
// refill_buffer
// file ior-peek.c line 94
static signed long int refill_buffer(struct io_t *io, signed long int len)
{
signed long int bytes_read;
/* assertion ((struct peek_t *)((io)->data))->length - ((struct peek_t *)((io)->data))->offset == 0 */
assert(((struct peek_t *)io->data)->length - ((struct peek_t *)io->data)->offset == (signed long int)0);
bytes_read = len < (signed long int)(1024 * 1024) ? (signed long int)(1024 * 1024) : len;
signed long int tmp_if_expr$1;
if(!(bytes_read >= ((struct peek_t *)io->data)->length))
tmp_if_expr$1 = ((struct peek_t *)io->data)->length;
else
tmp_if_expr$1 = bytes_read;
bytes_read = tmp_if_expr$1;
bytes_read = bytes_read + ((signed long int)4096 - bytes_read % (signed long int)4096);
if(!(((struct peek_t *)io->data)->length >= bytes_read))
{
signed int res = 0;
void *buf_ptr = (void *)((struct peek_t *)io->data)->buffer;
if(!(buf_ptr == NULL))
free(buf_ptr);
((struct peek_t *)io->data)->length = bytes_read;
((struct peek_t *)io->data)->offset = (signed long int)0;
res=posix_memalign(&buf_ptr, (unsigned long int)4096, (unsigned long int)((struct peek_t *)io->data)->length);
if(!(res == 0))
{
fprintf(stderr, "Error aligning IO buffer: %d\n", res);
return (signed long int)res;
}
((struct peek_t *)io->data)->buffer = (char *)buf_ptr;
}
else
((struct peek_t *)io->data)->length = bytes_read;
/* assertion ((struct peek_t *)((io)->data))->buffer */
assert(((struct peek_t *)io->data)->buffer != ((char *)NULL));
bytes_read=((struct peek_t *)io->data)->child->source->read(((struct peek_t *)io->data)->child, (void *)((struct peek_t *)io->data)->buffer, bytes_read);
((struct peek_t *)io->data)->offset = (signed long int)0;
((struct peek_t *)io->data)->length = bytes_read;
if(!(bytes_read >= 1l))
return bytes_read;
else
return bytes_read;
}
// register_format
// file trace.c line 1859
void register_format(struct libtrace_format_t *f)
{
/* assertion f->next==((void *)0) */
assert(f->next == (struct libtrace_format_t *)(void *)0);
f->next = formats_list;
formats_list = f;
}
// safe_open
// file iow-stdio.c line 62
static signed int safe_open(const char *filename, signed int flags)
{
signed int fd = -1;
unsigned int userid = (unsigned int)0;
unsigned int groupid = (unsigned int)0;
char *sudoenv = (char *)(void *)0;
fd=open(filename, flags | 01 | 0100 | 01000 | (force_directio_write != 0 ? 040000 : 0), 0666);
if(fd == -1)
fd=open(filename, flags | 01 | 0100 | 01000, 0666);
signed int return_value_fchown$3;
if(fd == -1)
return fd;
else
{
sudoenv=getenv("SUDO_UID");
if(!(sudoenv == ((char *)NULL)))
{
signed long int return_value_strtol$1;
return_value_strtol$1=strtol(sudoenv, (char ** restrict )(void *)0, 10);
userid = (unsigned int)return_value_strtol$1;
}
sudoenv=getenv("SUDO_GID");
if(!(sudoenv == ((char *)NULL)))
{
signed long int return_value_strtol$2;
return_value_strtol$2=strtol(sudoenv, (char ** restrict )(void *)0, 10);
groupid = (unsigned int)return_value_strtol$2;
}
if(!(userid == 0u))
{
return_value_fchown$3=fchown(fd, userid, groupid);
if(!(return_value_fchown$3 == -1))
goto __CPROVER_DUMP_L5;
perror("fchown");
return -1;
}
else
{
__CPROVER_DUMP_L5:
;
return fd;
}
}
}
// stdio_close
// file ior-stdio.c line 95
static void stdio_close(struct io_t *io)
{
close(((struct stdio_t *)io->data)->fd);
free(io->data);
free((void *)io);
}
// stdio_open
// file wandio.h line 199
struct io_t * stdio_open(const char *filename)
{
struct io_t *io;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
io = (struct io_t *)return_value_malloc$1;
io->data=malloc(sizeof(struct stdio_t) /*4ul*/ );
signed int return_value_strcmp$2;
return_value_strcmp$2=strcmp(filename, "-");
if(return_value_strcmp$2 == 0)
((struct stdio_t *)io->data)->fd = 0;
else
((struct stdio_t *)io->data)->fd=open(filename, 00 | (force_directio_read != 0 ? 040000 : 0));
io->source = &stdio_source;
if(((struct stdio_t *)io->data)->fd == -1)
{
free((void *)io);
return (struct io_t *)(void *)0;
}
else
return io;
}
// stdio_read
// file ior-stdio.c line 80
static signed long int stdio_read(struct io_t *io, void *buffer, signed long int len)
{
signed long int return_value_read$1;
return_value_read$1=read(((struct stdio_t *)io->data)->fd, buffer, (unsigned long int)len);
return return_value_read$1;
}
// stdio_seek
// file ior-stdio.c line 90
static signed long int stdio_seek(struct io_t *io, signed long int offset, signed int whence)
{
signed long int return_value_lseek$1;
return_value_lseek$1=lseek(((struct stdio_t *)io->data)->fd, offset, whence);
return return_value_lseek$1;
}
// stdio_tell
// file ior-stdio.c line 85
static signed long int stdio_tell(struct io_t *io)
{
signed long int return_value_lseek$1;
return_value_lseek$1=lseek(((struct stdio_t *)io->data)->fd, (signed long int)0, 1);
return return_value_lseek$1;
}
// stdio_wclose
// file iow-stdio.c line 214
static void stdio_wclose(struct iow_t *iow)
{
signed long int err;
signed int return_value_fcntl$1;
return_value_fcntl$1=fcntl(((struct stdiow_t *)iow->data)->fd, 3);
err = (signed long int)return_value_fcntl$1;
if(!((16384l & err) == 0l) && !(err == -1l))
fcntl(((struct stdiow_t *)iow->data)->fd, 4, err & (signed long int)~040000);
err=write(((struct stdiow_t *)iow->data)->fd, (const void *)((struct stdiow_t *)iow->data)->buffer, (unsigned long int)((struct stdiow_t *)iow->data)->offset);
((struct stdiow_t *)iow->data)->offset = 0;
close(((struct stdiow_t *)iow->data)->fd);
free(iow->data);
free((void *)iow);
}
// stdio_wopen
// file wandio.h line 206
struct iow_t * stdio_wopen(const char *filename, signed int flags)
{
struct iow_t *iow;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct iow_t) /*16ul*/ );
iow = (struct iow_t *)return_value_malloc$1;
iow->source = &stdio_wsource;
iow->data=malloc(sizeof(struct stdiow_t) /*4104ul*/ );
signed int return_value_strcmp$2;
return_value_strcmp$2=strcmp(filename, "-");
if(return_value_strcmp$2 == 0)
((struct stdiow_t *)iow->data)->fd = 1;
else
((struct stdiow_t *)iow->data)->fd=safe_open(filename, flags);
if(((struct stdiow_t *)iow->data)->fd == -1)
{
free((void *)iow);
return (struct iow_t *)(void *)0;
}
else
{
((struct stdiow_t *)iow->data)->offset = 0;
return iow;
}
}
// stdio_wwrite
// file iow-stdio.c line 146
static signed long int stdio_wwrite(struct iow_t *iow, const char *buffer, signed long int len)
{
signed int towrite = (signed int)len;
/* assertion towrite >= 0 */
assert(towrite >= 0);
signed int tmp_if_expr$1;
signed int tmp_if_expr$3;
while(((struct stdiow_t *)iow->data)->offset + towrite >= 4096)
{
signed int err;
struct iovec iov[2l];
signed int total = ((struct stdiow_t *)iow->data)->offset + towrite;
signed int amount;
signed int count = 0;
total = total - total % 4096;
amount = total;
if(!(((struct stdiow_t *)iow->data)->offset == 0))
{
iov[(signed long int)count].iov_base = (void *)((struct stdiow_t *)iow->data)->buffer;
if(!(((struct stdiow_t *)iow->data)->offset >= amount))
tmp_if_expr$1 = ((struct stdiow_t *)iow->data)->offset;
else
tmp_if_expr$1 = amount;
iov[(signed long int)count].iov_len = (unsigned long int)tmp_if_expr$1;
amount = amount - (signed int)iov[(signed long int)count].iov_len;
count = count + 1;
}
if(!(towrite == 0))
{
iov[(signed long int)count].iov_base = (void *)buffer;
iov[(signed long int)count].iov_len = (unsigned long int)amount;
amount = amount - (signed int)iov[(signed long int)count].iov_len;
count = count + 1;
}
/* assertion amount == 0 */
assert(amount == 0);
signed long int return_value_writev$2;
return_value_writev$2=writev(((struct stdiow_t *)iow->data)->fd, iov, count);
err = (signed int)return_value_writev$2;
if(err == -1)
return (signed long int)-1;
if(!(((struct stdiow_t *)iow->data)->offset >= err))
tmp_if_expr$3 = ((struct stdiow_t *)iow->data)->offset;
else
tmp_if_expr$3 = err;
amount = tmp_if_expr$3;
memmove((void *)((struct stdiow_t *)iow->data)->buffer, (const void *)(((struct stdiow_t *)iow->data)->buffer + (signed long int)amount), (unsigned long int)(((struct stdiow_t *)iow->data)->offset - amount));
((struct stdiow_t *)iow->data)->offset = ((struct stdiow_t *)iow->data)->offset - amount;
err = err - amount;
/* assertion err <= towrite */
assert(err <= towrite);
buffer = buffer + (signed long int)err;
towrite = towrite - err;
/* assertion ((struct stdiow_t *)((iow)->data))->offset == 0 */
assert(((struct stdiow_t *)iow->data)->offset == 0);
}
/* assertion ((struct stdiow_t *)((iow)->data))->offset + towrite <= MIN_WRITE_SIZE */
assert(((struct stdiow_t *)iow->data)->offset + towrite <= 4096);
/* assertion towrite >= 0 */
assert(towrite >= 0);
if(towrite >= 1)
{
memcpy((void *)(((struct stdiow_t *)iow->data)->buffer + (signed long int)((struct stdiow_t *)iow->data)->offset), (const void *)buffer, (unsigned long int)towrite);
((struct stdiow_t *)iow->data)->offset = ((struct stdiow_t *)iow->data)->offset + towrite;
}
return len;
}
// thread_close
// file ior-thread.c line 260
static void thread_close(struct io_t *io)
{
pthread_mutex_lock(&((struct state_t$0 *)io->data)->mutex);
((struct state_t$0 *)io->data)->closing = (_Bool)1;
pthread_cond_signal(&((struct state_t$0 *)io->data)->space_avail);
pthread_mutex_unlock(&((struct state_t$0 *)io->data)->mutex);
pthread_join(((struct state_t$0 *)io->data)->producer, (void **)(void *)0);
pthread_mutex_destroy(&((struct state_t$0 *)io->data)->mutex);
pthread_cond_destroy(&((struct state_t$0 *)io->data)->space_avail);
pthread_cond_destroy(&((struct state_t$0 *)io->data)->data_ready);
free((void *)((struct state_t$0 *)io->data)->buffer);
free((void *)(struct state_t$0 *)io->data);
free((void *)io);
}
// thread_consumer
// file iow-thread.c line 98
static void * thread_consumer(void *userdata)
{
signed int buffer = 0;
_Bool running = (_Bool)1;
struct iow_t *state = (struct iow_t *)userdata;
char namebuf[17l];
signed int return_value_prctl$2;
return_value_prctl$2=prctl(16, (const void *)namebuf, 0, 0, 0);
if(return_value_prctl$2 == 0)
{
namebuf[(signed long int)16] = (char)0;
unsigned long int return_value_strlen$1;
return_value_strlen$1=strlen(namebuf);
if(return_value_strlen$1 >= 10ul)
strcpy(namebuf + (signed long int)10, "[iow]");
else
strncat(namebuf, " [iow]", (unsigned long int)16);
prctl(15, (const void *)namebuf, 0, 0, 0);
}
pthread_mutex_lock(&((struct state_t *)state->data)->mutex);
__CPROVER_DUMP_L4:
;
while((_Bool)1)
{
if((signed int)((struct state_t *)state->data)->buffer[(signed long int)buffer].state == EMPTY)
{
if(((struct state_t *)state->data)->closing == (_Bool)0)
{
pthread_cond_wait(&((struct state_t *)state->data)->data_ready, &((struct state_t *)state->data)->mutex);
goto __CPROVER_DUMP_L4;
}
}
pthread_mutex_unlock(&((struct state_t *)state->data)->mutex);
wandio_wwrite(((struct state_t *)state->data)->iow, (const void *)((struct state_t *)state->data)->buffer[(signed long int)buffer].buffer, (signed long int)((struct state_t *)state->data)->buffer[(signed long int)buffer].len);
pthread_mutex_lock(&((struct state_t *)state->data)->mutex);
running = ((struct state_t *)state->data)->buffer[(signed long int)buffer].len > 0;
((struct state_t *)state->data)->buffer[(signed long int)buffer].len = 0;
((struct state_t *)state->data)->buffer[(signed long int)buffer].state = (enum anonymous$17)EMPTY;
pthread_cond_signal(&((struct state_t *)state->data)->space_avail);
buffer = (buffer + 1) % 5;
if(running == (_Bool)0)
break;
}
wandio_wdestroy(((struct state_t *)state->data)->iow);
pthread_mutex_unlock(&((struct state_t *)state->data)->mutex);
return (void *)0;
}
// thread_open
// file wandio.h line 196
struct io_t * thread_open(struct io_t *parent)
{
struct io_t *state;
if(parent == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
state = (struct io_t *)return_value_malloc$1;
state->data=calloc((unsigned long int)1, sizeof(struct state_t$0) /*184ul*/ );
state->source = &thread_source;
void *return_value_malloc$2;
return_value_malloc$2=malloc(sizeof(struct buffer_t) /*1048584ul*/ * (unsigned long int)max_buffers);
((struct state_t$0 *)state->data)->buffer = (struct buffer_t *)return_value_malloc$2;
memset((void *)((struct state_t$0 *)state->data)->buffer, 0, sizeof(struct buffer_t) /*1048584ul*/ * (unsigned long int)max_buffers);
((struct state_t$0 *)state->data)->in_buffer = 0;
((struct state_t$0 *)state->data)->offset = (signed long int)0;
pthread_mutex_init(&((struct state_t$0 *)state->data)->mutex, (const union anonymous$9 *)(void *)0);
pthread_cond_init(&((struct state_t$0 *)state->data)->data_ready, (const union anonymous$9 *)(void *)0);
pthread_cond_init(&((struct state_t$0 *)state->data)->space_avail, (const union anonymous$9 *)(void *)0);
((struct state_t$0 *)state->data)->io = parent;
((struct state_t$0 *)state->data)->closing = (_Bool)0;
pthread_create(&((struct state_t$0 *)state->data)->producer, (const union pthread_attr_t *)(void *)0, thread_producer, (void *)state);
return state;
}
}
// thread_producer
// file ior-thread.c line 98
static void * thread_producer(void *userdata)
{
struct io_t *state = (struct io_t *)userdata;
signed int buffer = 0;
_Bool running = (_Bool)1;
char namebuf[17l];
signed int return_value_prctl$2;
return_value_prctl$2=prctl(16, (const void *)namebuf, 0, 0, 0);
if(return_value_prctl$2 == 0)
{
namebuf[(signed long int)16] = (char)0;
unsigned long int return_value_strlen$1;
return_value_strlen$1=strlen(namebuf);
if(return_value_strlen$1 >= 10ul)
strcpy(namebuf + (signed long int)10, "[ior]");
else
strncat(namebuf, " [ior]", (unsigned long int)16);
prctl(15, (const void *)namebuf, 0, 0, 0);
}
pthread_mutex_lock(&((struct state_t$0 *)state->data)->mutex);
__CPROVER_DUMP_L4:
;
while((_Bool)1)
{
if((signed int)(((struct state_t$0 *)state->data)->buffer + (signed long int)buffer)->state == FULL)
{
if(((struct state_t$0 *)state->data)->closing == (_Bool)0)
{
pthread_cond_wait(&((struct state_t$0 *)state->data)->space_avail, &((struct state_t$0 *)state->data)->mutex);
goto __CPROVER_DUMP_L4;
}
}
if(((struct state_t$0 *)state->data)->closing != (_Bool)0)
break;
pthread_mutex_unlock(&((struct state_t$0 *)state->data)->mutex);
signed long int return_value_wandio_read$3;
return_value_wandio_read$3=wandio_read(((struct state_t$0 *)state->data)->io, (void *)(((struct state_t$0 *)state->data)->buffer + (signed long int)buffer)->buffer, (signed long int)sizeof(char [1048576l]) /*1048576ul*/ );
(((struct state_t$0 *)state->data)->buffer + (signed long int)buffer)->len = (signed int)return_value_wandio_read$3;
pthread_mutex_lock(&((struct state_t$0 *)state->data)->mutex);
(((struct state_t$0 *)state->data)->buffer + (signed long int)buffer)->state = (enum anonymous$17)FULL;
running = (((struct state_t$0 *)state->data)->buffer + (signed long int)buffer)->len > 0;
pthread_cond_signal(&((struct state_t$0 *)state->data)->data_ready);
buffer = (signed int)((unsigned int)(buffer + 1) % max_buffers);
if(running == (_Bool)0)
break;
}
wandio_destroy(((struct state_t$0 *)state->data)->io);
pthread_cond_signal(&((struct state_t$0 *)state->data)->data_ready);
pthread_mutex_unlock(&((struct state_t$0 *)state->data)->mutex);
return (void *)0;
}
// thread_read
// file ior-thread.c line 196
static signed long int thread_read(struct io_t *state, void *buffer, signed long int len)
{
signed int slice;
signed int copied = 0;
signed int newbuffer;
signed long int tmp_if_expr$2;
for( ; len >= 1l; ((struct state_t$0 *)state->data)->in_buffer = newbuffer)
{
pthread_mutex_lock(&((struct state_t$0 *)state->data)->mutex);
while((signed int)(((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->state == EMPTY)
{
read_waits = read_waits + 1ul;
pthread_cond_wait(&((struct state_t$0 *)state->data)->data_ready, &((struct state_t$0 *)state->data)->mutex);
}
if(!((((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->len >= 1))
{
if(!(copied >= 1))
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = 5;
copied = (((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->len;
}
pthread_mutex_unlock(&((struct state_t$0 *)state->data)->mutex);
return (signed long int)copied;
}
if(!((signed long int)(((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->len + -((struct state_t$0 *)state->data)->offset >= len))
tmp_if_expr$2 = (signed long int)(((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->len - ((struct state_t$0 *)state->data)->offset;
else
tmp_if_expr$2 = len;
slice = (signed int)tmp_if_expr$2;
pthread_mutex_unlock(&((struct state_t$0 *)state->data)->mutex);
memcpy(buffer, (const void *)((((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->buffer + ((struct state_t$0 *)state->data)->offset), (unsigned long int)slice);
buffer = buffer + (signed long int)slice;
len = len - (signed long int)slice;
copied = copied + slice;
pthread_mutex_lock(&((struct state_t$0 *)state->data)->mutex);
((struct state_t$0 *)state->data)->offset = ((struct state_t$0 *)state->data)->offset + (signed long int)slice;
newbuffer = ((struct state_t$0 *)state->data)->in_buffer;
if(((struct state_t$0 *)state->data)->offset >= (signed long int)(((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->len)
{
(((struct state_t$0 *)state->data)->buffer + (signed long int)((struct state_t$0 *)state->data)->in_buffer)->state = (enum anonymous$17)EMPTY;
pthread_cond_signal(&((struct state_t$0 *)state->data)->space_avail);
newbuffer = (signed int)((unsigned int)(newbuffer + 1) % max_buffers);
((struct state_t$0 *)state->data)->offset = (signed long int)0;
}
pthread_mutex_unlock(&((struct state_t$0 *)state->data)->mutex);
}
return (signed long int)copied;
}
// thread_wclose
// file iow-thread.c line 242
static void thread_wclose(struct iow_t *iow)
{
pthread_mutex_lock(&((struct state_t *)iow->data)->mutex);
((struct state_t *)iow->data)->closing = (_Bool)1;
pthread_cond_signal(&((struct state_t *)iow->data)->data_ready);
pthread_mutex_unlock(&((struct state_t *)iow->data)->mutex);
pthread_join(((struct state_t *)iow->data)->consumer, (void **)(void *)0);
pthread_mutex_destroy(&((struct state_t *)iow->data)->mutex);
pthread_cond_destroy(&((struct state_t *)iow->data)->data_ready);
pthread_cond_destroy(&((struct state_t *)iow->data)->space_avail);
free(iow->data);
free((void *)iow);
}
// thread_wopen
// file wandio.h line 205
struct iow_t * thread_wopen(struct iow_t *child)
{
struct iow_t *state;
if(child == ((struct iow_t *)NULL))
return (struct iow_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct iow_t) /*16ul*/ );
state = (struct iow_t *)return_value_malloc$1;
state->data=calloc((unsigned long int)1, sizeof(struct state_t) /*5243088ul*/ );
state->source = &thread_wsource;
((struct state_t *)state->data)->out_buffer = 0;
((struct state_t *)state->data)->offset = (signed long int)0;
pthread_mutex_init(&((struct state_t *)state->data)->mutex, (const union anonymous$9 *)(void *)0);
pthread_cond_init(&((struct state_t *)state->data)->data_ready, (const union anonymous$9 *)(void *)0);
pthread_cond_init(&((struct state_t *)state->data)->space_avail, (const union anonymous$9 *)(void *)0);
((struct state_t *)state->data)->iow = child;
((struct state_t *)state->data)->closing = (_Bool)0;
pthread_create(&((struct state_t *)state->data)->consumer, (const union pthread_attr_t *)(void *)0, thread_consumer, (void *)state);
return state;
}
}
// thread_wwrite
// file iow-thread.c line 188
static signed long int thread_wwrite(struct iow_t *state, const char *buffer, signed long int len)
{
signed int slice;
signed int copied = 0;
signed int newbuffer;
pthread_mutex_lock(&((struct state_t *)state->data)->mutex);
signed long int tmp_if_expr$1;
for( ; len >= 1l; ((struct state_t *)state->data)->out_buffer = newbuffer)
{
while((signed int)((struct state_t *)state->data)->buffer[(signed long int)((struct state_t *)state->data)->out_buffer].state == FULL)
{
write_waits = write_waits + 1ul;
pthread_cond_wait(&((struct state_t *)state->data)->space_avail, &((struct state_t *)state->data)->mutex);
}
if(!((signed long int)sizeof(char [1048576l]) /*1048576l*/ + -((struct state_t *)state->data)->offset >= len))
tmp_if_expr$1 = (signed long int)sizeof(char [1048576l]) /*1048576ul*/ - ((struct state_t *)state->data)->offset;
else
tmp_if_expr$1 = len;
slice = (signed int)tmp_if_expr$1;
pthread_mutex_unlock(&((struct state_t *)state->data)->mutex);
memcpy((void *)(((struct state_t *)state->data)->buffer[(signed long int)((struct state_t *)state->data)->out_buffer].buffer + ((struct state_t *)state->data)->offset), (const void *)buffer, (unsigned long int)slice);
pthread_mutex_lock(&((struct state_t *)state->data)->mutex);
((struct state_t *)state->data)->offset = ((struct state_t *)state->data)->offset + (signed long int)slice;
((struct state_t *)state->data)->buffer[(signed long int)((struct state_t *)state->data)->out_buffer].len = ((struct state_t *)state->data)->buffer[(signed long int)((struct state_t *)state->data)->out_buffer].len + slice;
buffer = buffer + (signed long int)slice;
len = len - (signed long int)slice;
copied = copied + slice;
newbuffer = ((struct state_t *)state->data)->out_buffer;
if(((struct state_t *)state->data)->offset >= (signed long int)sizeof(char [1048576l]) /*1048576l*/ )
{
((struct state_t *)state->data)->buffer[(signed long int)((struct state_t *)state->data)->out_buffer].state = (enum anonymous$17)FULL;
pthread_cond_signal(&((struct state_t *)state->data)->data_ready);
((struct state_t *)state->data)->offset = (signed long int)0;
newbuffer = (newbuffer + 1) % 5;
}
}
pthread_mutex_unlock(&((struct state_t *)state->data)->mutex);
return (signed long int)copied;
}
// trace_apply_filter
// file trace.c line 1257
signed int trace_apply_filter(struct libtrace_filter_t *filter, const struct libtrace_packet_t *packet)
{
void *linkptr = NULL;
unsigned int clen = (unsigned int)0;
_Bool free_packet_needed = (_Bool)0;
signed int ret;
enum anonymous$3 linktype;
struct libtrace_packet_t *packet_copy = (struct libtrace_packet_t *)packet;
/* assertion filter */
assert(filter != ((struct libtrace_filter_t *)NULL));
/* assertion packet */
assert(packet != ((const struct libtrace_packet_t *)NULL));
linktype=trace_get_link_type(packet);
enum anonymous$18 return_value_libtrace_to_pcap_dlt$1;
if((signed int)linktype == TRACE_TYPE_NONDATA)
return 1;
else
{
enum anonymous$18 return_value_libtrace_to_pcap_dlt$3;
return_value_libtrace_to_pcap_dlt$3=libtrace_to_pcap_dlt(linktype);
if((signed int)return_value_libtrace_to_pcap_dlt$3 == TRACE_DLT_ERROR)
{
packet_copy=trace_copy_packet(packet);
free_packet_needed = (_Bool)1;
do
{
return_value_libtrace_to_pcap_dlt$1=libtrace_to_pcap_dlt(linktype);
if(!((signed int)return_value_libtrace_to_pcap_dlt$1 == TRACE_DLT_ERROR))
break;
_Bool return_value_demote_packet$2;
return_value_demote_packet$2=demote_packet(packet_copy);
if(return_value_demote_packet$2 == (_Bool)0)
{
trace_set_err(packet->trace, -4, "pcap does not support this format");
if(!(free_packet_needed == (_Bool)0))
trace_destroy_packet(packet_copy);
return -1;
}
linktype=trace_get_link_type(packet_copy);
}
while((_Bool)1);
}
linkptr=trace_get_packet_buffer(packet_copy, (enum anonymous$3 *)(void *)0, &clen);
if(linkptr == NULL)
{
if(!(free_packet_needed == (_Bool)0))
trace_destroy_packet(packet_copy);
return 0;
}
else
{
signed int return_value_trace_bpf_compile$4;
return_value_trace_bpf_compile$4=trace_bpf_compile(filter, packet_copy, linkptr, linktype);
if(return_value_trace_bpf_compile$4 == -1)
{
if(!(free_packet_needed == (_Bool)0))
trace_destroy_packet(packet_copy);
return -1;
}
else
{
/* assertion filter->flag */
assert(filter->flag != 0);
unsigned int return_value_bpf_filter$5;
return_value_bpf_filter$5=bpf_filter(filter->filter.bf_insns, (unsigned char *)linkptr, (unsigned int)clen, (unsigned int)clen);
ret = (signed int)return_value_bpf_filter$5;
if(!(free_packet_needed == (_Bool)0))
trace_destroy_packet(packet_copy);
return ret;
}
}
}
}
// trace_bpf_compile
// file trace.c line 1204
static signed int trace_bpf_compile(struct libtrace_filter_t *filter, const struct libtrace_packet_t *packet, void *linkptr, enum anonymous$3 linktype)
{
/* assertion filter */
assert(filter != ((struct libtrace_filter_t *)NULL));
if(linkptr == NULL)
{
trace_set_err(packet->trace, -9, "Packet has no payload");
return -1;
}
else
{
if(!(filter->filterstring == ((char *)NULL)))
{
if(filter->flag == 0)
{
struct pcap *pcap = (struct pcap *)(void *)0;
if(linktype == /*enum*/TRACE_TYPE_UNKNOWN)
{
trace_set_err(packet->trace, -9, "Packet has an unknown linktype");
return -1;
}
enum anonymous$18 return_value_libtrace_to_pcap_dlt$1;
return_value_libtrace_to_pcap_dlt$1=libtrace_to_pcap_dlt(linktype);
if((signed int)return_value_libtrace_to_pcap_dlt$1 == TRACE_DLT_ERROR)
{
trace_set_err(packet->trace, -9, "Unknown pcap equivalent linktype");
return -1;
}
enum anonymous$18 return_value_libtrace_to_pcap_dlt$2;
return_value_libtrace_to_pcap_dlt$2=libtrace_to_pcap_dlt(linktype);
struct pcap *return_value_pcap_open_dead$3;
return_value_pcap_open_dead$3=pcap_open_dead((signed int)return_value_libtrace_to_pcap_dlt$2, (signed int)1500U);
pcap = (struct pcap *)return_value_pcap_open_dead$3;
/* assertion pcap */
assert(pcap != ((struct pcap *)NULL));
signed int return_value_pcap_compile$5;
return_value_pcap_compile$5=pcap_compile(pcap, &filter->filter, filter->filterstring, 1, (unsigned int)0);
if(!(return_value_pcap_compile$5 == 0))
{
char *return_value_pcap_geterr$4;
return_value_pcap_geterr$4=pcap_geterr(pcap);
trace_set_err(packet->trace, -9, "Unable to compile the filter \"%s\": %s", filter->filterstring, return_value_pcap_geterr$4);
pcap_close(pcap);
return -1;
}
pcap_close(pcap);
filter->flag = 1;
}
}
return 0;
}
}
// trace_clear_cache
// file trace.c line 1838
void trace_clear_cache(struct libtrace_packet_t *packet)
{
packet->l2_header = (void *)0;
packet->l3_header = (void *)0;
packet->l4_header = (void *)0;
packet->link_type = (enum anonymous$3)0;
packet->l3_ethertype = (unsigned short int)0;
packet->transport_proto = (unsigned char)0;
packet->capture_length = -1;
packet->wire_length = -1;
packet->payload_length = -1;
packet->l2_remaining = (unsigned int)0;
packet->l3_remaining = (unsigned int)0;
packet->l4_remaining = (unsigned int)0;
}
// trace_config
// file trace.c line 498
signed int trace_config(struct libtrace_t *libtrace, enum anonymous$1 option, void *value)
{
signed int ret;
_Bool return_value_trace_is_err$1;
return_value_trace_is_err$1=trace_is_err(libtrace);
_Bool return_value_trace_is_err$2;
_Bool tmp_if_expr$3;
_Bool return_value_trace_is_err$4;
_Bool return_value_trace_is_err$5;
_Bool return_value_trace_is_err$6;
_Bool return_value_trace_is_err$7;
_Bool return_value_trace_is_err$8;
if(!(return_value_trace_is_err$1 == (_Bool)0))
return -1;
else
if(!(libtrace->format->config_input == ((signed int (*)(struct libtrace_t *, enum anonymous$1, void *))NULL)))
{
ret=libtrace->format->config_input(libtrace, option, value);
return 0;
}
else
switch((signed int)option)
{
case TRACE_OPTION_SNAPLEN:
{
return_value_trace_is_err$2=trace_is_err(libtrace);
if(!(return_value_trace_is_err$2 == (_Bool)0))
trace_get_err(libtrace);
if(!(*((signed int *)value) >= 0))
tmp_if_expr$3 = (_Bool)1;
else
tmp_if_expr$3 = *((signed int *)value) > 65536 ? (_Bool)1 : (_Bool)0;
if(tmp_if_expr$3)
trace_set_err(libtrace, -8, "Invalid snap length");
libtrace->snaplen = (unsigned long int)*((signed int *)value);
return 0;
}
case TRACE_OPTION_FILTER:
{
return_value_trace_is_err$4=trace_is_err(libtrace);
if(!(return_value_trace_is_err$4 == (_Bool)0))
trace_get_err(libtrace);
libtrace->filter = (struct libtrace_filter_t *)value;
return 0;
}
case TRACE_OPTION_PROMISC:
{
return_value_trace_is_err$5=trace_is_err(libtrace);
if(return_value_trace_is_err$5 == (_Bool)0)
trace_set_err(libtrace, -6, "Promisc mode is not supported by this format module");
return -1;
}
case TRACE_OPTION_META_FREQ:
{
return_value_trace_is_err$6=trace_is_err(libtrace);
if(return_value_trace_is_err$6 == (_Bool)0)
trace_set_err(libtrace, -6, "This format does not support meta-data gathering");
return -1;
}
case TRACE_OPTION_EVENT_REALTIME:
{
return_value_trace_is_err$7=trace_is_err(libtrace);
if(return_value_trace_is_err$7 == (_Bool)0)
trace_set_err(libtrace, -6, "This format does not support realtime events");
return -1;
}
default:
{
return_value_trace_is_err$8=trace_is_err(libtrace);
if(return_value_trace_is_err$8 == (_Bool)0)
trace_set_err(libtrace, -3, "Unknown option %i", option);
return -1;
}
}
}
// trace_config_output
// file trace.c line 568
signed int trace_config_output(struct libtrace_out_t *libtrace, enum anonymous$2 option, void *value)
{
if(!(libtrace->format->config_output == ((signed int (*)(struct libtrace_out_t *, enum anonymous$2, void *))NULL)))
{
signed int return_value;
return_value=libtrace->format->config_output(libtrace, option, value);
return return_value;
}
return -1;
}
// trace_construct_packet
// file trace.c line 1749
void trace_construct_packet(struct libtrace_packet_t *packet, enum anonymous$3 linktype, const void *data, unsigned short int len)
{
unsigned long int size;
struct libtrace_pcapfile_pkt_hdr_t hdr;
struct timeval tv;
static struct libtrace_t *deadtrace = (struct libtrace_t *)(void *)0;
if(deadtrace == ((struct libtrace_t *)NULL))
deadtrace=trace_create_dead("pcapfile");
gettimeofday(&tv, (struct timezone *)(void *)0);
hdr.ts_sec = (unsigned int)tv.tv_sec;
hdr.ts_usec = (unsigned int)tv.tv_usec;
hdr.caplen = (unsigned int)len;
hdr.wirelen = (unsigned int)len;
packet->trace = deadtrace;
size = (unsigned long int)len + sizeof(struct libtrace_pcapfile_pkt_hdr_t) /*16ul*/ ;
if((signed int)packet->buf_control == TRACE_CTRL_PACKET)
packet->buffer=realloc(packet->buffer, size);
else
packet->buffer=malloc(size);
packet->buf_control = (enum anonymous)TRACE_CTRL_PACKET;
packet->header = packet->buffer;
packet->payload = (void *)((char *)packet->buffer + (signed long int)sizeof(struct libtrace_pcapfile_pkt_hdr_t) /*16ul*/ );
memcpy(packet->header, (const void *)&hdr, sizeof(struct libtrace_pcapfile_pkt_hdr_t) /*16ul*/ );
memcpy(packet->payload, data, (unsigned long int)len);
enum anonymous$18 return_value_libtrace_to_pcap_linktype$1;
return_value_libtrace_to_pcap_linktype$1=libtrace_to_pcap_linktype(linktype);
packet->type=pcap_linktype_to_rt(return_value_libtrace_to_pcap_linktype$1);
trace_clear_cache(packet);
}
// trace_copy_packet
// file trace.c line 645
struct libtrace_packet_t * trace_copy_packet(const struct libtrace_packet_t *packet)
{
struct libtrace_packet_t *dest;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_packet_t) /*104ul*/ );
dest = (struct libtrace_packet_t *)return_value_malloc$1;
if(dest == ((struct libtrace_packet_t *)NULL))
{
printf("Out of memory constructing packet\n");
abort();
}
dest->trace = packet->trace;
dest->buffer=malloc((unsigned long int)65536);
if(dest->buffer == NULL)
{
printf("Out of memory allocating buffer memory\n");
abort();
}
dest->header = dest->buffer;
unsigned long int return_value_trace_get_framing_length$2;
return_value_trace_get_framing_length$2=trace_get_framing_length(packet);
dest->payload = (void *)((char *)dest->buffer + (signed long int)return_value_trace_get_framing_length$2);
dest->type = packet->type;
dest->buf_control = (enum anonymous)TRACE_CTRL_PACKET;
trace_clear_cache(dest);
unsigned long int return_value_trace_get_framing_length$3;
return_value_trace_get_framing_length$3=trace_get_framing_length(packet);
memcpy(dest->header, packet->header, return_value_trace_get_framing_length$3);
unsigned long int return_value_trace_get_capture_length$4;
return_value_trace_get_capture_length$4=trace_get_capture_length(packet);
memcpy(dest->payload, packet->payload, return_value_trace_get_capture_length$4);
return dest;
}
// trace_create
// file ../../lib/libtrace.h line 1140
struct libtrace_t * trace_create(const char *uri)
{
struct libtrace_t *libtrace;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_t) /*360ul*/ );
libtrace = (struct libtrace_t *)return_value_malloc$1;
char *scan = ((char *)NULL);
const char *uridata = ((const char *)NULL);
trace_init();
/* assertion uri && "Passing NULL to trace_create makes me a very sad program" */
assert(uri != ((const char *)NULL) && (_Bool)"Passing NULL to trace_create makes me a very sad program");
unsigned long int return_value_strlen$2;
signed int return_value_strncasecmp$3;
if(libtrace == ((struct libtrace_t *)NULL))
return (struct libtrace_t *)(void *)0;
else
{
libtrace->err.err_num = 0;
libtrace->format = (struct libtrace_format_t *)(void *)0;
libtrace->event.tdelta = 0.0;
libtrace->event.packet = (struct libtrace_packet_t *)(void *)0;
libtrace->event.psize = 0;
libtrace->event.trace_last_ts = 0.0;
libtrace->event.waiting = (_Bool)0;
libtrace->filter = (struct libtrace_filter_t *)(void *)0;
libtrace->snaplen = (unsigned long int)0;
libtrace->started = (_Bool)0;
libtrace->uridata = (char *)(void *)0;
libtrace->io = (struct io_t *)(void *)0;
libtrace->filtered_packets = (unsigned long int)0;
libtrace->accepted_packets = (unsigned long int)0;
uridata=trace_parse_uri(uri, &scan);
if(uridata == ((const char *)NULL))
{
guess_format(libtrace, uri);
if(libtrace->format == ((struct libtrace_format_t *)NULL))
{
trace_set_err(libtrace, -1, "Unable to guess format (%s)", uri);
return libtrace;
}
}
else
{
struct libtrace_format_t *tmp = formats_list;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
{
unsigned long int return_value_strlen$4;
return_value_strlen$4=strlen(scan);
unsigned long int return_value_strlen$5;
return_value_strlen$5=strlen(tmp->name);
if(return_value_strlen$4 == return_value_strlen$5)
{
return_value_strlen$2=strlen(scan);
return_value_strncasecmp$3=strncasecmp(scan, tmp->name, return_value_strlen$2);
if(return_value_strncasecmp$3 == 0)
{
libtrace->format = tmp;
break;
}
}
}
if(libtrace->format == ((struct libtrace_format_t *)NULL))
{
trace_set_err(libtrace, -1, "Unknown format (%s)", scan);
return libtrace;
}
libtrace->uridata=strdup(uridata);
}
if(!(libtrace->format->init_input == ((signed int (*)(struct libtrace_t *))NULL)))
{
signed int err;
err=libtrace->format->init_input(libtrace);
/* assertion err==-1 || err==0 */
assert(err == -1 || err == 0);
if(err == -1)
return libtrace;
}
else
{
trace_set_err(libtrace, -7, "Format does not support input (%s)", scan);
return libtrace;
}
if(!(scan == ((char *)NULL)))
free((void *)scan);
libtrace->err.err_num = 0;
libtrace->err.problem[(signed long int)0] = (char)0;
return libtrace;
}
}
// trace_create_dead
// file trace.c line 321
struct libtrace_t * trace_create_dead(const char *uri)
{
struct libtrace_t *libtrace;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_t) /*360ul*/ );
libtrace = (struct libtrace_t *)return_value_malloc$1;
char *scan;
void *return_value_calloc$2;
return_value_calloc$2=calloc(sizeof(char) /*1ul*/ , (unsigned long int)16U);
scan = (char *)return_value_calloc$2;
char *uridata;
struct libtrace_format_t *tmp;
trace_init();
libtrace->err.err_num = 0;
uridata=strchr(uri, 58);
if(uridata == ((char *)NULL))
{
unsigned long int return_value_strlen$3;
return_value_strlen$3=strlen(uri);
xstrncpy(scan, uri, return_value_strlen$3);
}
else
xstrncpy(scan, uri, (unsigned long int)(uridata - uri));
libtrace->err.err_num = 0;
libtrace->format = (struct libtrace_format_t *)(void *)0;
libtrace->event.tdelta = 0.0;
libtrace->event.packet = (struct libtrace_packet_t *)(void *)0;
libtrace->event.psize = 0;
libtrace->event.trace_last_ts = 0.0;
libtrace->filter = (struct libtrace_filter_t *)(void *)0;
libtrace->snaplen = (unsigned long int)0;
libtrace->started = (_Bool)0;
libtrace->uridata = (char *)(void *)0;
libtrace->io = (struct io_t *)(void *)0;
libtrace->filtered_packets = (unsigned long int)0;
tmp = formats_list;
unsigned long int return_value_strlen$4;
signed int return_value_strncasecmp$5;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
{
unsigned long int return_value_strlen$6;
return_value_strlen$6=strlen(scan);
unsigned long int return_value_strlen$7;
return_value_strlen$7=strlen(tmp->name);
if(return_value_strlen$6 == return_value_strlen$7)
{
return_value_strlen$4=strlen(scan);
return_value_strncasecmp$5=strncasecmp(scan, tmp->name, return_value_strlen$4);
if(return_value_strncasecmp$5 == 0)
{
libtrace->format = tmp;
break;
}
}
}
if(libtrace->format == ((struct libtrace_format_t *)NULL))
trace_set_err(libtrace, -1, "Unknown format (%s)", scan);
libtrace->format_data = (void *)0;
free((void *)scan);
return libtrace;
}
// trace_create_filter
// file trace.c line 1167
struct libtrace_filter_t * trace_create_filter(const char *filterstring)
{
struct libtrace_filter_t *filter;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_filter_t) /*40ul*/ );
filter = (struct libtrace_filter_t *)return_value_malloc$1;
filter->filterstring=strdup(filterstring);
filter->jitfilter = (struct bpf_jit_t *)(void *)0;
filter->flag = 0;
return filter;
}
// trace_create_filter_from_bytecode
// file trace.c line 1139
struct libtrace_filter_t * trace_create_filter_from_bytecode(void *bf_insns, unsigned int bf_len)
{
struct libtrace_filter_t *filter;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_filter_t) /*40ul*/ );
filter = (struct libtrace_filter_t *)return_value_malloc$1;
void *return_value_malloc$2;
return_value_malloc$2=malloc(sizeof(struct bpf_insn) /*8ul*/ * (unsigned long int)bf_len);
filter->filter.bf_insns = (struct bpf_insn *)return_value_malloc$2;
memcpy((void *)filter->filter.bf_insns, bf_insns, (unsigned long int)bf_len * sizeof(struct bpf_insn) /*8ul*/ );
filter->filter.bf_len = bf_len;
filter->filterstring = (char *)(void *)0;
filter->jitfilter = (struct bpf_jit_t *)(void *)0;
filter->flag = 1;
return filter;
}
// trace_create_output
// file trace.c line 380
struct libtrace_out_t * trace_create_output(const char *uri)
{
struct libtrace_out_t *libtrace;
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct libtrace_out_t) /*288ul*/ );
libtrace = (struct libtrace_out_t *)return_value_malloc$1;
char *scan = ((char *)NULL);
const char *uridata = ((const char *)NULL);
struct libtrace_format_t *tmp;
trace_init();
libtrace->err.err_num = 0;
strcpy(libtrace->err.problem, "Error message set\n");
libtrace->format = (struct libtrace_format_t *)(void *)0;
libtrace->uridata = (char *)(void *)0;
uridata=trace_parse_uri(uri, &scan);
unsigned long int return_value_strlen$2;
signed int return_value_strncasecmp$3;
if(uridata == ((const char *)NULL))
{
trace_set_err_out(libtrace, -1, "Bad uri format (%s)", uri);
return libtrace;
}
else
{
tmp = formats_list;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
{
unsigned long int return_value_strlen$4;
return_value_strlen$4=strlen(scan);
unsigned long int return_value_strlen$5;
return_value_strlen$5=strlen(tmp->name);
if(return_value_strlen$4 == return_value_strlen$5)
{
return_value_strlen$2=strlen(scan);
return_value_strncasecmp$3=strncasecmp(scan, tmp->name, return_value_strlen$2);
if(return_value_strncasecmp$3 == 0)
{
libtrace->format = tmp;
break;
}
}
}
free((void *)scan);
if(libtrace->format == ((struct libtrace_format_t *)NULL))
{
trace_set_err_out(libtrace, -1, "Unknown output format (%s)", scan);
return libtrace;
}
else
{
libtrace->uridata=strdup(uridata);
if(!(libtrace->format->init_output == ((signed int (*)(struct libtrace_out_t *))NULL)))
{
signed int return_value;
return_value=libtrace->format->init_output(libtrace);
if(return_value == -1)
return libtrace;
/* assertion !"Internal error: init_output() should return -1 for failure, or 0 for success" */
assert(!((_Bool)"Internal error: init_output() should return -1 for failure, or 0 for success"));
}
else
{
trace_set_err_out(libtrace, -7, "Format does not support writing (%s)", scan);
return libtrace;
}
libtrace->started = (_Bool)0;
return libtrace;
}
}
}
// trace_create_packet
// file ../../lib/libtrace.h line 1397
struct libtrace_packet_t * trace_create_packet(void)
{
struct libtrace_packet_t *packet;
void *return_value_calloc$1;
return_value_calloc$1=calloc((unsigned long int)1, sizeof(struct libtrace_packet_t) /*104ul*/ );
packet = (struct libtrace_packet_t *)return_value_calloc$1;
packet->buf_control = (enum anonymous)TRACE_CTRL_PACKET;
trace_clear_cache(packet);
return packet;
}
// trace_destroy
// file ../../lib/libtrace.h line 1275
void trace_destroy(struct libtrace_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_t *)NULL));
if(!(libtrace->format == ((struct libtrace_format_t *)NULL)))
{
if(!(libtrace->started == (_Bool)0))
{
if(!(libtrace->format->pause_input == ((signed int (*)(struct libtrace_t *))NULL)))
libtrace->format->pause_input(libtrace);
}
if(!(libtrace->format->fin_input == ((signed int (*)(struct libtrace_t *))NULL)))
libtrace->format->fin_input(libtrace);
}
if(!(libtrace->uridata == ((char *)NULL)))
free((void *)libtrace->uridata);
if(!(libtrace->event.packet == ((struct libtrace_packet_t *)NULL)))
free((void *)libtrace->event.packet);
free((void *)libtrace);
}
// trace_destroy_dead
// file trace.c line 611
void trace_destroy_dead(struct libtrace_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_t *)NULL));
if(!(libtrace->format_data == NULL))
free(libtrace->format_data);
free((void *)libtrace);
}
// trace_destroy_filter
// file trace.c line 1181
void trace_destroy_filter(struct libtrace_filter_t *filter)
{
free((void *)filter->filterstring);
if(!(filter->flag == 0))
pcap_freecode(&filter->filter);
free((void *)filter);
}
// trace_destroy_output
// file trace.c line 625
void trace_destroy_output(struct libtrace_out_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_out_t *)NULL));
if(!(libtrace->format == ((struct libtrace_format_t *)NULL)))
{
if(!(libtrace->format->fin_output == ((signed int (*)(struct libtrace_out_t *))NULL)))
libtrace->format->fin_output(libtrace);
}
if(!(libtrace->uridata == ((char *)NULL)))
free((void *)libtrace->uridata);
free((void *)libtrace);
}
// trace_destroy_packet
// file ../../lib/libtrace.h line 1417
void trace_destroy_packet(struct libtrace_packet_t *packet)
{
if((signed int)packet->buf_control == TRACE_CTRL_PACKET)
{
if(!(packet->buffer == NULL))
free(packet->buffer);
}
packet->buf_control = (enum anonymous)0;
free((void *)packet);
}
// trace_ether_aton
// file trace.c line 1723
unsigned char * trace_ether_aton(const char *buf, unsigned char *addr)
{
unsigned char *buf2 = addr;
unsigned int tmp[6l];
static unsigned char staticaddr[6l];
if(buf2 == ((unsigned char *)NULL))
buf2 = staticaddr;
sscanf(buf, "%x:%x:%x:%x:%x:%x", &tmp[(signed long int)0], &tmp[(signed long int)1], &tmp[(signed long int)2], &tmp[(signed long int)3], &tmp[(signed long int)4], &tmp[(signed long int)5]);
buf2[(signed long int)0] = (unsigned char)tmp[(signed long int)0];
buf2[(signed long int)1] = (unsigned char)tmp[(signed long int)1];
buf2[(signed long int)2] = (unsigned char)tmp[(signed long int)2];
buf2[(signed long int)3] = (unsigned char)tmp[(signed long int)3];
buf2[(signed long int)4] = (unsigned char)tmp[(signed long int)4];
buf2[(signed long int)5] = (unsigned char)tmp[(signed long int)5];
return buf2;
}
// trace_ether_ntoa
// file trace.c line 1711
char * trace_ether_ntoa(const unsigned char *addr, char *buf)
{
static char staticbuf[18l] = { (char)0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
if(buf == ((char *)NULL))
buf = staticbuf;
snprintf(buf, (unsigned long int)18, "%02x:%02x:%02x:%02x:%02x:%02x", addr[(signed long int)0], addr[(signed long int)1], addr[(signed long int)2], addr[(signed long int)3], addr[(signed long int)4], addr[(signed long int)5]);
return buf;
}
// trace_event
// file trace.c line 1103
struct libtrace_eventobj_t trace_event(struct libtrace_t *trace, struct libtrace_packet_t *packet)
{
struct libtrace_eventobj_t event = { .type=(enum anonymous$19)TRACE_EVENT_IOWAIT, .fd=0,
.seconds=0.0, .size=0 };
if(trace == ((struct libtrace_t *)NULL))
fprintf(stderr, "You called trace_event() with a NULL trace object!\n");
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
trace_clear_cache(packet);
packet->trace = trace;
if(!(packet->trace->format->trace_event == ((struct libtrace_eventobj_t (*)(struct libtrace_t *, struct libtrace_packet_t *))NULL)))
event=packet->trace->format->trace_event(trace, packet);
return event;
}
// trace_get_accepted_packets
// file trace.c line 1832
unsigned long int trace_get_accepted_packets(struct libtrace_t *trace)
{
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
return trace->accepted_packets;
}
// trace_get_capture_length
// file trace.c line 1024
unsigned long int trace_get_capture_length(const struct libtrace_packet_t *packet)
{
if(packet->capture_length == -1)
{
if(packet->trace->format->get_capture_length == ((signed int (*)(const struct libtrace_packet_t *))NULL))
return (unsigned long int)~0U;
((struct libtrace_packet_t *)packet)->capture_length=packet->trace->format->get_capture_length(packet);
}
/* assertion packet->capture_length < 65536 */
assert(packet->capture_length < 65536);
return (unsigned long int)packet->capture_length;
}
// trace_get_direction
// file trace.c line 1372
enum anonymous$4 trace_get_direction(const struct libtrace_packet_t *packet)
{
/* assertion packet */
assert(packet != ((const struct libtrace_packet_t *)NULL));
if(!(packet->trace->format->get_direction == ((enum anonymous$4 (*)(const struct libtrace_packet_t *))NULL)))
{
enum anonymous$4 return_value;
return_value=packet->trace->format->get_direction(packet);
return return_value;
}
return (enum anonymous$4)~0U;
}
// trace_get_dropped_packets
// file trace.c line 1823
unsigned long int trace_get_dropped_packets(struct libtrace_t *trace)
{
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
if(!(trace->format->get_dropped_packets == ((unsigned long int (*)(struct libtrace_t *))NULL)))
{
unsigned long int return_value;
return_value=trace->format->get_dropped_packets(trace);
return return_value;
}
return (unsigned long int)-1;
}
// trace_get_erf_timestamp
// file trace.c line 890
unsigned long int trace_get_erf_timestamp(const struct libtrace_packet_t *packet)
{
if(!(packet->trace->format->get_erf_timestamp == ((unsigned long int (*)(const struct libtrace_packet_t *))NULL)))
{
unsigned long int return_value;
return_value=packet->trace->format->get_erf_timestamp(packet);
return return_value;
}
else
if(!(packet->trace->format->get_timespec == ((struct timespec (*)(const struct libtrace_packet_t *))NULL)))
{
struct timespec ts;
ts=packet->trace->format->get_timespec(packet);
return ((unsigned long int)ts.tv_sec << 32) + ((unsigned long int)ts.tv_nsec << 32) / (unsigned long int)1000000000;
}
else
if(!(packet->trace->format->get_timeval == ((struct timeval (*)(const struct libtrace_packet_t *))NULL)))
{
struct timeval tv;
tv=packet->trace->format->get_timeval(packet);
return ((unsigned long int)tv.tv_sec << 32) + ((unsigned long int)tv.tv_usec << 32) / (unsigned long int)1000000;
}
else
if(!(packet->trace->format->get_seconds == ((double (*)(const struct libtrace_packet_t *))NULL)))
{
double seconds;
seconds=packet->trace->format->get_seconds(packet);
return ((unsigned long int)seconds << 32) + (unsigned long int)((seconds - (double)(unsigned long int)seconds) * (double)((unsigned int)0x7fffffff * 2U + 1U));
}
else
return (unsigned long int)0;
}
// trace_get_err
// file trace.c line 1555
struct trace_err_t trace_get_err(struct libtrace_t *trace)
{
struct trace_err_t err = trace->err;
trace->err.err_num = 0;
trace->err.problem[(signed long int)0] = (char)0;
return err;
}
// trace_get_err_output
// file trace.c line 1594
struct trace_err_t trace_get_err_output(struct libtrace_out_t *trace)
{
struct trace_err_t err = trace->err;
trace->err.err_num = 0;
trace->err.problem[(signed long int)0] = (char)0;
return err;
}
// trace_get_filtered_packets
// file trace.c line 1813
unsigned long int trace_get_filtered_packets(struct libtrace_t *trace)
{
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
if(!(trace->format->get_filtered_packets == ((unsigned long int (*)(struct libtrace_t *))NULL)))
{
unsigned long int return_value;
return_value=trace->format->get_filtered_packets(trace);
return return_value + trace->filtered_packets;
}
return trace->filtered_packets;
}
// trace_get_format
// file trace.c line 1548
enum base_format_t trace_get_format(struct libtrace_packet_t *packet)
{
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
return packet->trace->format->type;
}
// trace_get_framing_length
// file trace.c line 1068
unsigned long int trace_get_framing_length(const struct libtrace_packet_t *packet)
{
if(!(packet->trace->format->get_framing_length == ((signed int (*)(const struct libtrace_packet_t *))NULL)))
{
signed int return_value;
return_value=packet->trace->format->get_framing_length(packet);
return (unsigned long int)return_value;
}
return (unsigned long int)~0U;
}
// trace_get_link
// file trace.c line 881
void * trace_get_link(const struct libtrace_packet_t *packet)
{
return (void *)packet->payload;
}
// trace_get_link_type
// file trace.c line 1080
enum anonymous$3 trace_get_link_type(const struct libtrace_packet_t *packet)
{
if((signed int)packet->link_type == 0)
{
if(packet->trace->format->get_link_type == ((enum anonymous$3 (*)(const struct libtrace_packet_t *))NULL))
return (enum anonymous$3)TRACE_TYPE_UNKNOWN;
((struct libtrace_packet_t *)packet)->link_type=packet->trace->format->get_link_type(packet);
}
return packet->link_type;
}
// trace_get_packet_buffer
// file trace.c line 832
void * trace_get_packet_buffer(const struct libtrace_packet_t *packet, enum anonymous$3 *linktype, unsigned int *remaining)
{
signed int cap_len;
signed int wire_len;
/* assertion packet != ((void *)0) */
assert(packet != (const struct libtrace_packet_t *)(void *)0);
if(!(linktype == ((enum anonymous$3 *)NULL)))
*linktype=trace_get_link_type(packet);
if(!(remaining == ((unsigned int *)NULL)))
{
unsigned long int return_value_trace_get_capture_length$1;
return_value_trace_get_capture_length$1=trace_get_capture_length(packet);
cap_len = (signed int)return_value_trace_get_capture_length$1;
unsigned long int return_value_trace_get_wire_length$2;
return_value_trace_get_wire_length$2=trace_get_wire_length(packet);
wire_len = (signed int)return_value_trace_get_wire_length$2;
/* assertion cap_len >= 0 */
assert(cap_len >= 0);
if(!(wire_len >= 0))
*remaining = (unsigned int)cap_len;
else
if(!(wire_len >= cap_len))
*remaining = (unsigned int)wire_len;
else
*remaining = (unsigned int)cap_len;
}
return (void *)packet->payload;
}
// trace_get_received_packets
// file trace.c line 1804
unsigned long int trace_get_received_packets(struct libtrace_t *trace)
{
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
if(!(trace->format->get_received_packets == ((unsigned long int (*)(struct libtrace_t *))NULL)))
{
unsigned long int return_value;
return_value=trace->format->get_received_packets(trace);
return return_value;
}
return (unsigned long int)-1;
}
// trace_get_seconds
// file trace.c line 998
double trace_get_seconds(const struct libtrace_packet_t *packet)
{
double seconds = 0.0;
if(!(packet->trace->format->get_seconds == ((double (*)(const struct libtrace_packet_t *))NULL)))
seconds=packet->trace->format->get_seconds(packet);
else
if(!(packet->trace->format->get_erf_timestamp == ((unsigned long int (*)(const struct libtrace_packet_t *))NULL)))
{
unsigned long int ts = (unsigned long int)0;
ts=packet->trace->format->get_erf_timestamp(packet);
seconds = (double)(ts >> 32) + ((double)(ts & (unsigned long int)((unsigned int)0x7fffffff * 2U + 1U)) * 1.0) / (double)((unsigned int)0x7fffffff * 2U + 1U);
}
else
if(!(packet->trace->format->get_timespec == ((struct timespec (*)(const struct libtrace_packet_t *))NULL)))
{
struct timespec trace_get_seconds$$1$$3$$ts;
trace_get_seconds$$1$$3$$ts=packet->trace->format->get_timespec(packet);
seconds = (double)trace_get_seconds$$1$$3$$ts.tv_sec + ((double)trace_get_seconds$$1$$3$$ts.tv_nsec * 1.0) / (double)1000000000;
}
else
if(!(packet->trace->format->get_timeval == ((struct timeval (*)(const struct libtrace_packet_t *))NULL)))
{
struct timeval tv;
tv=packet->trace->format->get_timeval(packet);
seconds = (double)tv.tv_sec + ((double)tv.tv_usec * 1.0) / (double)1000000;
}
return seconds;
}
// trace_get_server_port
// file trace.c line 1395
signed char trace_get_server_port(unsigned char protocol, unsigned short int source, unsigned short int dest)
{
if(source == dest)
return (signed char)0;
else
if(!((signed int)dest >= 512) && !((signed int)source >= 512))
{
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)dest >= 512 && !((signed int)source >= 512))
return (signed char)1;
else
if((signed int)source >= 512 && !((signed int)dest >= 512))
return (signed char)0;
else
if((signed int)dest >= 5000 && (signed int)source >= 5000)
{
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)source >= 5000 && !((signed int)dest >= 5000))
return (signed char)1;
else
if((signed int)dest >= 5000 && !((signed int)source >= 5000))
return (signed char)0;
else
if((signed int)dest >= 512 && (signed int)source >= 512 && !((signed int)dest >= 1024) && !((signed int)source >= 1024))
{
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)source >= 512 && !((signed int)source >= 1024) && (!((signed int)dest >= 512) || (signed int)dest >= 1024))
{
if((signed int)dest >= 1024 && !((signed int)dest >= 5000))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)dest >= 512 && !((signed int)dest >= 1024) && (!((signed int)source >= 512) || (signed int)source >= 1024))
{
if((signed int)source >= 1024 && !((signed int)source >= 5000))
return (signed char)0;
return (signed char)1;
}
else
if((signed int)dest >= 1024 && (signed int)source >= 1024 && !((signed int)dest >= 5000) && !((signed int)source >= 5000))
{
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)source >= 1024 && !((signed int)source >= 5000) && (!((signed int)dest >= 1024) || (signed int)dest >= 5000))
return (signed char)0;
else
if((signed int)dest >= 1024 && !((signed int)dest >= 5000) && (!((signed int)source >= 1024) || (signed int)source >= 5000))
return (signed char)1;
else
if((signed int)dest >= 49153 && (signed int)source >= 49153 && !((signed int)dest >= 65535) && !((signed int)source >= 65535))
{
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
return (signed char)0;
}
else
if((signed int)source >= 49153 && !((signed int)source >= 65535) && (!((signed int)dest >= 49153) || (signed int)dest >= 65535))
return (signed char)0;
else
if((signed int)dest >= 49153 && !((signed int)dest >= 65535) && (!((signed int)source >= 49153) || (signed int)source >= 65535))
return (signed char)1;
else
if(!((signed int)source >= (signed int)dest))
return (signed char)1;
else
return (signed char)0;
}
// trace_get_timespec
// file trace.c line 958
struct timespec trace_get_timespec(const struct libtrace_packet_t *packet)
{
struct timespec ts;
if(!(packet->trace->format->get_timespec == ((struct timespec (*)(const struct libtrace_packet_t *))NULL)))
{
struct timespec return_value;
return_value=packet->trace->format->get_timespec(packet);
return return_value;
}
else
if(!(packet->trace->format->get_erf_timestamp == ((unsigned long int (*)(const struct libtrace_packet_t *))NULL)))
{
unsigned long int erfts;
erfts=packet->trace->format->get_erf_timestamp(packet);
ts.tv_sec = (signed long int)(erfts >> 32);
ts.tv_nsec = (signed long int)((erfts & (unsigned long int)0xFFFFFFFF) * (unsigned long int)1000000000 >> 32);
if(ts.tv_nsec >= 1000000000l)
{
ts.tv_nsec = ts.tv_nsec - (signed long int)1000000000;
ts.tv_sec = ts.tv_sec + (signed long int)1;
}
return ts;
}
else
if(!(packet->trace->format->get_timeval == ((struct timeval (*)(const struct libtrace_packet_t *))NULL)))
{
struct timeval tv;
tv=packet->trace->format->get_timeval(packet);
ts.tv_sec = tv.tv_sec;
ts.tv_nsec = tv.tv_usec * (signed long int)1000;
return ts;
}
else
if(!(packet->trace->format->get_seconds == ((double (*)(const struct libtrace_packet_t *))NULL)))
{
double seconds;
seconds=packet->trace->format->get_seconds(packet);
ts.tv_sec = (signed long int)(unsigned int)seconds;
ts.tv_nsec = (signed long int)(((seconds - (double)ts.tv_sec) * (double)1000000000) / (double)((unsigned int)0x7fffffff * 2U + 1U));
return ts;
}
else
{
ts.tv_sec = (signed long int)-1;
ts.tv_nsec = (signed long int)-1;
return ts;
}
}
// trace_get_timeval
// file trace.c line 925
struct timeval trace_get_timeval(const struct libtrace_packet_t *packet)
{
struct timeval tv;
unsigned long int trace_get_timeval$$1$$ts = (unsigned long int)0;
if(!(packet->trace->format->get_timeval == ((struct timeval (*)(const struct libtrace_packet_t *))NULL)))
tv=packet->trace->format->get_timeval(packet);
else
if(!(packet->trace->format->get_erf_timestamp == ((unsigned long int (*)(const struct libtrace_packet_t *))NULL)))
{
trace_get_timeval$$1$$ts=packet->trace->format->get_erf_timestamp(packet);
tv.tv_sec = (signed long int)(trace_get_timeval$$1$$ts >> 32);
tv.tv_usec = (signed long int)((trace_get_timeval$$1$$ts & (unsigned long int)0xFFFFFFFF) * (unsigned long int)1000000 >> 32);
if(tv.tv_usec >= 1000000l)
{
tv.tv_usec = tv.tv_usec - (signed long int)1000000;
tv.tv_sec = tv.tv_sec + (signed long int)1;
}
}
else
if(!(packet->trace->format->get_timespec == ((struct timespec (*)(const struct libtrace_packet_t *))NULL)))
{
struct timespec ts;
ts=packet->trace->format->get_timespec(packet);
tv.tv_sec = ts.tv_sec;
tv.tv_usec = ts.tv_nsec / (signed long int)1000;
}
else
if(!(packet->trace->format->get_seconds == ((double (*)(const struct libtrace_packet_t *))NULL)))
{
double seconds;
seconds=packet->trace->format->get_seconds(packet);
tv.tv_sec = (signed long int)(unsigned int)seconds;
tv.tv_usec = (signed long int)(unsigned int)(((seconds - (double)tv.tv_sec) * (double)1000000) / (double)((unsigned int)0x7fffffff * 2U + 1U));
}
else
{
tv.tv_sec = (signed long int)-1;
tv.tv_usec = (signed long int)-1;
}
return tv;
}
// trace_get_wire_length
// file trace.c line 1047
unsigned long int trace_get_wire_length(const struct libtrace_packet_t *packet)
{
if(packet->wire_length == -1)
{
if(packet->trace->format->get_wire_length == ((signed int (*)(const struct libtrace_packet_t *))NULL))
return (unsigned long int)~0U;
((struct libtrace_packet_t *)packet)->wire_length=packet->trace->format->get_wire_length(packet);
}
/* assertion packet->wire_length < 65536 */
assert(packet->wire_length < 65536);
return (unsigned long int)packet->wire_length;
}
// trace_help
// file trace.c line 160
void trace_help(void)
{
struct libtrace_format_t *tmp;
trace_init();
printf("libtrace %s\n\n", (const void *)"3.0.21");
printf("Following this are a list of the format modules supported in this build of libtrace\n\n");
tmp = formats_list;
for( ; !(tmp == ((struct libtrace_format_t *)NULL)); tmp = tmp->next)
if(!(tmp->help == ((void (*)(void))NULL)))
tmp->help();
}
// trace_init
// file trace.c line 131
static void trace_init(void)
{
if(formats_list == ((struct libtrace_format_t *)NULL))
{
duck_constructor();
erf_constructor();
tsh_constructor();
legacy_constructor();
atmhdr_constructor();
linuxnative_constructor();
pcap_constructor();
bpf_constructor();
pcapfile_constructor();
rt_constructor();
}
}
// trace_interrupt
// file trace.c line 1855
void trace_interrupt(void)
{
libtrace_halt = 1;
}
// trace_is_err
// file ../../lib/libtrace.h line 1302
_Bool trace_is_err(struct libtrace_t *trace)
{
return trace->err.err_num != 0;
}
// trace_is_err_output
// file trace.c line 1602
_Bool trace_is_err_output(struct libtrace_out_t *trace)
{
return trace->err.err_num != 0;
}
// trace_parse_uri
// file trace.c line 1525
const char * trace_parse_uri(const char *uri, char **format)
{
const char *uridata = ((const char *)NULL);
uridata=strchr(uri, 58);
if(uridata == ((const char *)NULL))
return ((const char *)NULL);
else
if((unsigned int)(uridata - uri) >= 17u)
return ((const char *)NULL);
else
{
*format=xstrndup(uri, (unsigned long int)(uridata - uri));
uridata = uridata + 1l;
return uridata;
}
}
// trace_pause
// file trace.c line 485
signed int trace_pause(struct libtrace_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_t *)NULL));
if(libtrace->started == (_Bool)0)
{
trace_set_err(libtrace, -8, "You must call trace_start() before calling trace_pause()");
return -1;
}
else
{
if(!(libtrace->format->pause_input == ((signed int (*)(struct libtrace_t *))NULL)))
libtrace->format->pause_input(libtrace);
libtrace->started = (_Bool)0;
return 0;
}
}
// trace_perror
// file ../../lib/libtrace.h line 1311
void trace_perror(struct libtrace_t *trace, const char *msg, ...)
{
char buf[256l];
void **va = (void **)&msg;
vsnprintf(buf, sizeof(char [256l]) /*256ul*/ , msg, va);
va = ((void **)NULL);
if(!(trace->err.err_num == 0))
{
if(!(trace->uridata == ((char *)NULL)))
fprintf(stderr, "%s(%s): %s\n", (const void *)buf, trace->uridata, (const void *)trace->err.problem);
else
fprintf(stderr, "%s: %s\n", (const void *)buf, (const void *)trace->err.problem);
}
else
if(!(trace->uridata == ((char *)NULL)))
fprintf(stderr, "%s(%s): No error\n", (const void *)buf, trace->uridata);
else
fprintf(stderr, "%s: No error\n", (const void *)buf);
trace->err.err_num = 0;
trace->err.problem[(signed long int)0] = (char)0;
}
// trace_perror_output
// file trace.c line 1609
void trace_perror_output(struct libtrace_out_t *trace, const char *msg, ...)
{
char buf[256l];
void **va = (void **)&msg;
vsnprintf(buf, sizeof(char [256l]) /*256ul*/ , msg, va);
va = ((void **)NULL);
char *tmp_if_expr$1;
if(!(trace->err.err_num == 0))
{
if(!(trace->uridata == ((char *)NULL)))
tmp_if_expr$1 = trace->uridata;
else
tmp_if_expr$1 = "no uri";
fprintf(stderr, "%s(%s): %s\n", (const void *)buf, tmp_if_expr$1, (const void *)trace->err.problem);
}
else
fprintf(stderr, "%s(%s): No error\n", (const void *)buf, trace->uridata);
trace->err.err_num = 0;
trace->err.problem[(signed long int)0] = (char)0;
}
// trace_prepare_packet
// file trace.c line 777
signed int trace_prepare_packet(struct libtrace_t *trace, struct libtrace_packet_t *packet, void *buffer, enum anonymous$20 rt_type, unsigned int flags)
{
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
/* assertion trace */
assert(trace != ((struct libtrace_t *)NULL));
_Bool tmp_if_expr$1;
if(buffer == NULL)
return -1;
else
{
if((signed int)packet->buf_control == TRACE_CTRL_PACKET)
tmp_if_expr$1 = (_Bool)1;
else
tmp_if_expr$1 = (signed int)packet->buf_control == TRACE_CTRL_EXTERNAL ? (_Bool)1 : (_Bool)0;
if(!tmp_if_expr$1)
{
trace_set_err(trace, -8, "Packet passed to trace_read_packet() is invalid\n");
return -1;
}
else
{
packet->trace = trace;
trace_clear_cache(packet);
if(!(trace->format->prepare_packet == ((signed int (*)(struct libtrace_t *, struct libtrace_packet_t *, void *, enum anonymous$20, unsigned int))NULL)))
{
signed int return_value;
return_value=trace->format->prepare_packet(trace, packet, buffer, rt_type, flags);
return return_value;
}
trace_set_err(trace, -7, "This format does not support preparing packets\n");
return -1;
}
}
}
// trace_read_packet
// file ../../lib/libtrace.h line 1437
signed int trace_read_packet(struct libtrace_t *libtrace, struct libtrace_packet_t *packet)
{
/* assertion libtrace && "You called trace_read_packet() with a NULL libtrace parameter!\n" */
assert(libtrace != ((struct libtrace_t *)NULL) && (_Bool)"You called trace_read_packet() with a NULL libtrace parameter!\n");
_Bool return_value_trace_is_err$1;
return_value_trace_is_err$1=trace_is_err(libtrace);
_Bool tmp_if_expr$2;
if(!(return_value_trace_is_err$1 == (_Bool)0))
return -1;
else
if(libtrace->started == (_Bool)0)
{
trace_set_err(libtrace, -8, "You must call libtrace_start() before trace_read_packet()\n");
return -1;
}
else
{
if((signed int)packet->buf_control == TRACE_CTRL_PACKET)
tmp_if_expr$2 = (_Bool)1;
else
tmp_if_expr$2 = (signed int)packet->buf_control == TRACE_CTRL_EXTERNAL ? (_Bool)1 : (_Bool)0;
if(!tmp_if_expr$2)
{
trace_set_err(libtrace, -8, "Packet passed to trace_read_packet() is invalid\n");
return -1;
}
else
{
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
packet->trace = libtrace;
if(!(libtrace->format->fin_packet == ((void (*)(struct libtrace_packet_t *))NULL)))
libtrace->format->fin_packet(packet);
if(!(libtrace->format->read_packet == ((signed int (*)(struct libtrace_t *, struct libtrace_packet_t *))NULL)))
{
unsigned long int ret;
signed int filtret;
trace_clear_cache(packet);
signed int return_value;
return_value=libtrace->format->read_packet(libtrace, packet);
ret = (unsigned long int)return_value;
if(ret == 0ul || ret == 18446744073709551615ul)
return (signed int)ret;
if(!(libtrace->filter == ((struct libtrace_filter_t *)NULL)))
{
filtret=trace_apply_filter(libtrace->filter, packet);
if(filtret == -1)
return (signed int)~0U;
libtrace->filtered_packets = libtrace->filtered_packets + 1ul;
}
else
{
if(libtrace->snaplen >= 1ul)
trace_set_capture_length(packet, libtrace->snaplen);
libtrace->accepted_packets = libtrace->accepted_packets + 1ul;
return (signed int)ret;
}
}
trace_set_err(libtrace, -7, "This format does not support reading packets\n");
return (signed int)~0U;
}
}
}
// trace_seek_erf_timestamp
// file trace.c line 1628
signed int trace_seek_erf_timestamp(struct libtrace_t *trace, unsigned long int ts)
{
if(!(trace->format->seek_erf == ((signed int (*)(struct libtrace_t *, unsigned long int))NULL)))
{
signed int return_value;
return_value=trace->format->seek_erf(trace, ts);
return return_value;
}
else
{
if(!(trace->format->seek_timeval == ((signed int (*)(struct libtrace_t *, struct timeval))NULL)))
{
struct timeval tv;
tv.tv_sec = (signed long int)(ts >> 32);
tv.tv_usec = (signed long int)((ts & (unsigned long int)0xFFFFFFFF) * (unsigned long int)1000000 >> 32);
if(tv.tv_usec >= 1000000l)
{
tv.tv_usec = tv.tv_usec - (signed long int)1000000;
tv.tv_sec = tv.tv_sec + (signed long int)1;
}
signed int return_value_1;
return_value_1=trace->format->seek_timeval(trace, tv);
return return_value_1;
}
if(!(trace->format->seek_seconds == ((signed int (*)(struct libtrace_t *, double))NULL)))
{
double seconds = (double)(ts >> 32) + ((double)(ts & (unsigned long int)((unsigned int)0x7fffffff * 2U + 1U)) * 1.0) / (double)((unsigned int)0x7fffffff * 2U + 1U);
signed int return_value_2;
return_value_2=trace->format->seek_seconds(trace, seconds);
return return_value_2;
}
trace_set_err(trace, -6, "Feature unimplemented");
return -1;
}
}
// trace_seek_seconds
// file trace.c line 1663
signed int trace_seek_seconds(struct libtrace_t *trace, double seconds)
{
if(!(trace->format->seek_seconds == ((signed int (*)(struct libtrace_t *, double))NULL)))
{
signed int return_value;
return_value=trace->format->seek_seconds(trace, seconds);
return return_value;
}
else
{
if(!(trace->format->seek_timeval == ((signed int (*)(struct libtrace_t *, struct timeval))NULL)))
{
struct timeval tv;
tv.tv_sec = (signed long int)(unsigned int)seconds;
tv.tv_usec = (signed long int)(unsigned int)(((seconds - (double)tv.tv_sec) * (double)1000000) / (double)((unsigned int)0x7fffffff * 2U + 1U));
signed int return_value_1;
return_value_1=trace->format->seek_timeval(trace, tv);
return return_value_1;
}
if(!(trace->format->seek_erf == ((signed int (*)(struct libtrace_t *, unsigned long int))NULL)))
{
unsigned long int timestamp = ((unsigned long int)(unsigned int)seconds << 32) + (unsigned long int)((seconds - (double)(unsigned int)seconds) * (double)((unsigned int)0x7fffffff * 2U + 1U));
signed int return_value_2;
return_value_2=trace->format->seek_erf(trace, timestamp);
return return_value_2;
}
trace_set_err(trace, -6, "Feature unimplemented");
return -1;
}
}
// trace_seek_timeval
// file trace.c line 1688
signed int trace_seek_timeval(struct libtrace_t *trace, struct timeval tv)
{
if(!(trace->format->seek_timeval == ((signed int (*)(struct libtrace_t *, struct timeval))NULL)))
{
signed int return_value;
return_value=trace->format->seek_timeval(trace, tv);
return return_value;
}
else
{
if(!(trace->format->seek_erf == ((signed int (*)(struct libtrace_t *, unsigned long int))NULL)))
{
unsigned long int timestamp = ((unsigned long int)tv.tv_sec << 32) + ((unsigned long int)tv.tv_usec * (unsigned long int)((unsigned int)0x7fffffff * 2U + 1U)) / (unsigned long int)1000000;
signed int return_value_1;
return_value_1=trace->format->seek_erf(trace, timestamp);
return return_value_1;
}
if(!(trace->format->seek_seconds == ((signed int (*)(struct libtrace_t *, double))NULL)))
{
double seconds = (double)tv.tv_sec + ((double)tv.tv_usec * 1.0) / (double)1000000;
signed int return_value_2;
return_value_2=trace->format->seek_seconds(trace, seconds);
return return_value_2;
}
trace_set_err(trace, -6, "Feature unimplemented");
return -1;
}
}
// trace_set_capture_length
// file trace.c line 1507
unsigned long int trace_set_capture_length(struct libtrace_packet_t *packet, unsigned long int size)
{
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
if(!(packet->trace->format->set_capture_length == ((unsigned long int (*)(struct libtrace_packet_t *, unsigned long int))NULL)))
{
unsigned long int return_value;
return_value=packet->trace->format->set_capture_length(packet, size);
packet->capture_length = (signed int)return_value;
return (unsigned long int)packet->capture_length;
}
return (unsigned long int)~0U;
}
// trace_set_direction
// file trace.c line 1354
enum anonymous$4 trace_set_direction(struct libtrace_packet_t *packet, enum anonymous$4 direction)
{
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
if(!(packet->trace->format->set_direction == ((enum anonymous$4 (*)(struct libtrace_packet_t *, enum anonymous$4))NULL)))
{
enum anonymous$4 return_value;
return_value=packet->trace->format->set_direction(packet, direction);
return return_value;
}
return (enum anonymous$4)~0U;
}
// trace_start
// file ../../lib/libtrace.h line 1181
signed int trace_start(struct libtrace_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_t *)NULL));
_Bool return_value_trace_is_err$1;
return_value_trace_is_err$1=trace_is_err(libtrace);
if(!(return_value_trace_is_err$1 == (_Bool)0))
return -1;
else
{
if(!(libtrace->format->start_input == ((signed int (*)(struct libtrace_t *))NULL)))
{
signed int ret;
ret=libtrace->format->start_input(libtrace);
if(!(ret >= 0))
return ret;
}
libtrace->started = (_Bool)1;
return 0;
}
}
// trace_start_output
// file trace.c line 471
signed int trace_start_output(struct libtrace_out_t *libtrace)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_out_t *)NULL));
if(!(libtrace->format->start_output == ((signed int (*)(struct libtrace_out_t *))NULL)))
{
signed int ret;
ret=libtrace->format->start_output(libtrace);
if(!(ret >= 0))
return ret;
}
libtrace->started = (_Bool)1;
return 0;
}
// trace_write_packet
// file trace.c line 813
signed int trace_write_packet(struct libtrace_out_t *libtrace, struct libtrace_packet_t *packet)
{
/* assertion libtrace */
assert(libtrace != ((struct libtrace_out_t *)NULL));
/* assertion packet */
assert(packet != ((struct libtrace_packet_t *)NULL));
if(libtrace->started == (_Bool)0)
{
trace_set_err_out(libtrace, -8, "Trace is not started before trace_write_packet");
return -1;
}
else
{
if(!(libtrace->format->write_packet == ((signed int (*)(struct libtrace_out_t *, struct libtrace_packet_t *))NULL)))
{
signed int return_value;
return_value=libtrace->format->write_packet(libtrace, packet);
return return_value;
}
trace_set_err_out(libtrace, -7, "This format does not support writing packets");
return -1;
}
}
// wandio_create
// file ../libwandio/wandio.h line 241
struct io_t * wandio_create(const char *filename)
{
parse_env();
struct io_t *return_value_create_io_reader$1;
return_value_create_io_reader$1=create_io_reader(filename, use_autodetect);
return return_value_create_io_reader$1;
}
// wandio_create_uncompressed
// file wandio.c line 229
struct io_t * wandio_create_uncompressed(const char *filename)
{
parse_env();
struct io_t *return_value_create_io_reader$1;
return_value_create_io_reader$1=create_io_reader(filename, 0);
return return_value_create_io_reader$1;
}
// wandio_destroy
// file wandio.c line 278
void wandio_destroy(struct io_t *io)
{
if(!(io == ((struct io_t *)NULL)))
{
if(!(keep_stats == 0))
fprintf(stderr, "LIBTRACEIO STATS: %lu blocks on read\n", read_waits);
io->source->close(io);
}
}
// wandio_lookup_compression_type
// file wandio.c line 210
struct wandio_compression_type * wandio_lookup_compression_type(const char *name)
{
struct wandio_compression_type *wct = compression_type;
signed int return_value_strcmp$1;
do
{
return_value_strcmp$1=strcmp(wct->name, "NONE");
if(return_value_strcmp$1 == 0)
break;
signed int return_value_strcmp$2;
return_value_strcmp$2=strcmp(wct->name, name);
if(return_value_strcmp$2 == 0)
return wct;
wct = wct + 1l;
}
while((_Bool)1);
return (struct wandio_compression_type *)(void *)0;
}
// wandio_peek
// file wandio.c line 263
signed long int wandio_peek(struct io_t *io, void *buffer, signed long int len)
{
signed long int ret;
/* assertion io->source->peek */
assert(io->source->peek != ((signed long int (*)(struct io_t *, void *, signed long int))NULL));
ret=io->source->peek(io, buffer, len);
return ret;
}
// wandio_read
// file wandio.c line 253
signed long int wandio_read(struct io_t *io, void *buffer, signed long int len)
{
signed long int ret;
ret=io->source->read(io, buffer, len);
return ret;
}
// wandio_seek
// file wandio.c line 244
signed long int wandio_seek(struct io_t *io, signed long int offset, signed int whence)
{
if(io->source->seek == ((signed long int (*)(struct io_t *, signed long int, signed int))NULL))
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = -38;
return (signed long int)-1;
}
signed long int return_value;
return_value=io->source->seek(io, offset, whence);
return return_value;
}
// wandio_tell
// file wandio.c line 235
signed long int wandio_tell(struct io_t *io)
{
if(io->source->tell == ((signed long int (*)(struct io_t *))NULL))
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = -38;
return (signed long int)-1;
}
signed long int return_value;
return_value=io->source->tell(io);
return return_value;
}
// wandio_wcreate
// file wandio.c line 288
struct iow_t * wandio_wcreate(const char *filename, signed int compress_type, signed int compression_level, signed int flags)
{
struct iow_t *iow;
parse_env();
/* assertion compression_level >= 0 && compression_level <= 9 */
assert(compression_level >= 0 && compression_level <= 9);
/* assertion compress_type != WANDIO_COMPRESS_MASK */
assert(compress_type != 7);
iow=stdio_wopen(filename, flags);
struct iow_t *return_value_thread_wopen$1;
if(iow == ((struct iow_t *)NULL))
return (struct iow_t *)(void *)0;
else
{
if(compress_type == 1 && !(compression_level == 0))
iow=zlib_wopen(iow, compression_level);
else
if(compress_type == 2 && !(compression_level == 0))
iow=bz_wopen(iow, compression_level);
else
if(compress_type == 4 && !(compression_level == 0))
iow=lzma_wopen(iow, compression_level);
if(!(use_threads == 0u))
{
return_value_thread_wopen$1=thread_wopen(iow);
return return_value_thread_wopen$1;
}
else
return iow;
}
}
// wandio_wdestroy
// file wandio.c line 341
void wandio_wdestroy(struct iow_t *iow)
{
iow->source->close(iow);
if(!(keep_stats == 0))
fprintf(stderr, "LIBTRACEIO STATS: %lu blocks on write\n", write_waits);
}
// wandio_wwrite
// file wandio.c line 333
signed long int wandio_wwrite(struct iow_t *iow, const void *buffer, signed long int len)
{
signed long int return_value;
return_value=iow->source->write(iow, (const char *)buffer, len);
return return_value;
}
// xstrncpy
// file trace.c line 112
static void xstrncpy(char *dest, const char *src, unsigned long int n)
{
strncpy(dest, src, n);
dest[(signed long int)n] = (char)0;
}
// xstrndup
// file trace.c line 118
static char * xstrndup(const char *src, unsigned long int n)
{
char *ret;
void *return_value_malloc$1;
return_value_malloc$1=malloc(n + (unsigned long int)1);
ret = (char *)return_value_malloc$1;
if(ret == ((char *)NULL))
{
fprintf(stderr, "Out of memory");
exit(1);
}
xstrncpy(ret, src, n);
return ret;
}
// zlib_close
// file ior-zlib.c line 156
static void zlib_close(struct io_t *io)
{
inflateEnd(&((struct zlib_t *)io->data)->strm);
wandio_destroy(((struct zlib_t *)io->data)->parent);
free(io->data);
free((void *)io);
}
// zlib_open
// file wandio.h line 195
struct io_t * zlib_open(struct io_t *parent)
{
struct io_t *io;
if(parent == ((struct io_t *)NULL))
return (struct io_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct io_t) /*16ul*/ );
io = (struct io_t *)return_value_malloc$1;
io->source = &zlib_source;
io->data=malloc(sizeof(struct zlib_t) /*1048704ul*/ );
((struct zlib_t *)io->data)->parent = parent;
((struct zlib_t *)io->data)->strm.next_in = (unsigned char *)(void *)0;
((struct zlib_t *)io->data)->strm.avail_in = (unsigned int)0;
((struct zlib_t *)io->data)->strm.next_out = (unsigned char *)(void *)0;
((struct zlib_t *)io->data)->strm.avail_out = (unsigned int)0;
((struct zlib_t *)io->data)->strm.zalloc = ((void * (*)(void *, unsigned int, unsigned int))NULL);
((struct zlib_t *)io->data)->strm.zfree = ((void (*)(void *, void *))NULL);
((struct zlib_t *)io->data)->strm.opaque = (void *)0;
((struct zlib_t *)io->data)->err = (enum err_t)ERR_OK;
inflateInit2_(&((struct zlib_t *)io->data)->strm, 15 | 32, "1.2.8", (signed int)sizeof(struct z_stream_s) /*112ul*/ );
return io;
}
}
// zlib_read
// file ior-zlib.c line 92
static signed long int zlib_read(struct io_t *io, void *buffer, signed long int len)
{
if((signed int)((struct zlib_t *)io->data)->err == ERR_EOF)
return (signed long int)0;
else
{
if((signed int)((struct zlib_t *)io->data)->err == ERR_ERROR)
{
signed int *return_value___errno_location$1;
return_value___errno_location$1=__errno_location();
*return_value___errno_location$1 = 5;
return (signed long int)-1;
}
((struct zlib_t *)io->data)->strm.avail_out = (unsigned int)len;
((struct zlib_t *)io->data)->strm.next_out = (unsigned char *)buffer;
while((signed int)((struct zlib_t *)io->data)->err == ERR_OK)
{
if(!(((struct zlib_t *)io->data)->strm.avail_out >= 1u))
break;
while(!(((struct zlib_t *)io->data)->strm.avail_in >= 1u))
{
signed int bytes_read;
signed long int return_value_wandio_read$2;
return_value_wandio_read$2=wandio_read(((struct zlib_t *)io->data)->parent, (void *)(char *)((struct zlib_t *)io->data)->inbuff, (signed long int)sizeof(unsigned char [1048576l]) /*1048576ul*/ );
bytes_read = (signed int)return_value_wandio_read$2;
if(bytes_read == 0)
{
if(((struct zlib_t *)io->data)->strm.avail_out == (unsigned int)len)
{
((struct zlib_t *)io->data)->err = (enum err_t)ERR_EOF;
return (signed long int)0;
}
return len - (signed long int)((struct zlib_t *)io->data)->strm.avail_out;
}
if(!(bytes_read >= 0))
{
((struct zlib_t *)io->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct zlib_t *)io->data)->strm.avail_out == (unsigned int)len))
return len - (signed long int)((struct zlib_t *)io->data)->strm.avail_out;
return (signed long int)-1;
}
((struct zlib_t *)io->data)->strm.next_in = ((struct zlib_t *)io->data)->inbuff;
((struct zlib_t *)io->data)->strm.avail_in = (unsigned int)bytes_read;
}
signed int err;
err=inflate(&((struct zlib_t *)io->data)->strm, 0);
switch(err)
{
case 0:
{
((struct zlib_t *)io->data)->err = (enum err_t)ERR_OK;
break;
}
case 1:
{
inflateEnd(&((struct zlib_t *)io->data)->strm);
inflateInit2_(&((struct zlib_t *)io->data)->strm, 15 | 32, "1.2.8", (signed int)sizeof(struct z_stream_s) /*112ul*/ );
((struct zlib_t *)io->data)->err = (enum err_t)ERR_OK;
break;
}
default:
{
signed int *return_value___errno_location$3;
return_value___errno_location$3=__errno_location();
*return_value___errno_location$3 = 5;
((struct zlib_t *)io->data)->err = (enum err_t)ERR_ERROR;
}
}
}
return len - (signed long int)((struct zlib_t *)io->data)->strm.avail_out;
}
}
// zlib_wclose
// file iow-zlib.c line 143
static void zlib_wclose(struct iow_t *iow)
{
signed int res;
for( ; (_Bool)1; ((struct zlibw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(unsigned char [1048576l]) /*1048576ul*/ )
{
res=deflate(&((struct zlibw_t *)iow->data)->strm, 4);
if(res == 1)
break;
if(res == -2)
{
fprintf(stderr, "Z_STREAM_ERROR while closing output\n");
break;
}
wandio_wwrite(((struct zlibw_t *)iow->data)->child, (const void *)(char *)((struct zlibw_t *)iow->data)->outbuff, (signed long int)(sizeof(unsigned char [1048576l]) /*1048576ul*/ - (unsigned long int)((struct zlibw_t *)iow->data)->strm.avail_out));
((struct zlibw_t *)iow->data)->strm.next_out = ((struct zlibw_t *)iow->data)->outbuff;
}
deflateEnd(&((struct zlibw_t *)iow->data)->strm);
wandio_wwrite(((struct zlibw_t *)iow->data)->child, (const void *)(char *)((struct zlibw_t *)iow->data)->outbuff, (signed long int)(sizeof(unsigned char [1048576l]) /*1048576ul*/ - (unsigned long int)((struct zlibw_t *)iow->data)->strm.avail_out));
wandio_wdestroy(((struct zlibw_t *)iow->data)->child);
free(iow->data);
free((void *)iow);
}
// zlib_wopen
// file wandio.h line 201
struct iow_t * zlib_wopen(struct iow_t *child, signed int compress_level)
{
struct iow_t *iow;
if(child == ((struct iow_t *)NULL))
return (struct iow_t *)(void *)0;
else
{
void *return_value_malloc$1;
return_value_malloc$1=malloc(sizeof(struct iow_t) /*16ul*/ );
iow = (struct iow_t *)return_value_malloc$1;
iow->source = &zlib_wsource;
iow->data=malloc(sizeof(struct zlibw_t) /*1048704ul*/ );
((struct zlibw_t *)iow->data)->child = child;
((struct zlibw_t *)iow->data)->strm.next_in = (unsigned char *)(void *)0;
((struct zlibw_t *)iow->data)->strm.avail_in = (unsigned int)0;
((struct zlibw_t *)iow->data)->strm.next_out = ((struct zlibw_t *)iow->data)->outbuff;
((struct zlibw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(unsigned char [1048576l]) /*1048576ul*/ ;
((struct zlibw_t *)iow->data)->strm.zalloc = ((void * (*)(void *, unsigned int, unsigned int))NULL);
((struct zlibw_t *)iow->data)->strm.zfree = ((void (*)(void *, void *))NULL);
((struct zlibw_t *)iow->data)->strm.opaque = (void *)0;
((struct zlibw_t *)iow->data)->err = (enum err_t)ERR_OK;
deflateInit2_(&((struct zlibw_t *)iow->data)->strm, compress_level, 8, 15 | 16, 9, 0, "1.2.8", (signed int)sizeof(struct z_stream_s) /*112ul*/ );
return iow;
}
}
// zlib_wwrite
// file iow-zlib.c line 98
static signed long int zlib_wwrite(struct iow_t *iow, const char *buffer, signed long int len)
{
if((signed int)((struct zlibw_t *)iow->data)->err == ERR_EOF)
return (signed long int)0;
else
if((signed int)((struct zlibw_t *)iow->data)->err == ERR_ERROR)
return (signed long int)-1;
else
{
((struct zlibw_t *)iow->data)->strm.next_in = (unsigned char *)buffer;
((struct zlibw_t *)iow->data)->strm.avail_in = (unsigned int)len;
while((signed int)((struct zlibw_t *)iow->data)->err == ERR_OK)
{
if(!(((struct zlibw_t *)iow->data)->strm.avail_in >= 1u))
break;
while(!(((struct zlibw_t *)iow->data)->strm.avail_out >= 1u))
{
signed int bytes_written;
signed long int return_value_wandio_wwrite$1;
return_value_wandio_wwrite$1=wandio_wwrite(((struct zlibw_t *)iow->data)->child, (const void *)(char *)((struct zlibw_t *)iow->data)->outbuff, (signed long int)sizeof(unsigned char [1048576l]) /*1048576ul*/ );
bytes_written = (signed int)return_value_wandio_wwrite$1;
if(!(bytes_written >= 1))
{
((struct zlibw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
if(!(((struct zlibw_t *)iow->data)->strm.avail_in == (unsigned int)len))
return len - (signed long int)((struct zlibw_t *)iow->data)->strm.avail_in;
return (signed long int)-1;
}
((struct zlibw_t *)iow->data)->strm.next_out = ((struct zlibw_t *)iow->data)->outbuff;
((struct zlibw_t *)iow->data)->strm.avail_out = (unsigned int)sizeof(unsigned char [1048576l]) /*1048576ul*/ ;
}
signed int err;
err=deflate(&((struct zlibw_t *)iow->data)->strm, 0);
if(err == 0)
{
((struct zlibw_t *)iow->data)->err = (enum err_t)ERR_OK;
goto __CPROVER_DUMP_L10;
}
((struct zlibw_t *)iow->data)->err = (enum err_t)ERR_ERROR;
__CPROVER_DUMP_L10:
;
}
return len - (signed long int)((struct zlibw_t *)iow->data)->strm.avail_in;
}
}
|
the_stack_data/170452824.c
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm < %s | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm < %s | grep 'load.*addrspace(2).. @A'
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm < %s | grep 'load.*addrspace(2).. @B'
// CHECK: @foo = common addrspace(1) global
int foo __attribute__((address_space(1)));
// CHECK: @ban = common addrspace(1) global
int ban[10] __attribute__((address_space(1)));
// CHECK-LABEL: define i32 @test1()
// CHECK: load i32 addrspace(1)* @foo
int test1() { return foo; }
// CHECK-LABEL: define i32 @test2(i32 %i)
// CHECK: load i32 addrspace(1)*
// CHECK-NEXT: ret i32
int test2(int i) { return ban[i]; }
// Both A and B point into addrspace(2).
__attribute__((address_space(2))) int *A, *B;
// CHECK-LABEL: define void @test3()
// CHECK: load i32 addrspace(2)** @B
// CHECK: load i32 addrspace(2)*
// CHECK: load i32 addrspace(2)** @A
// CHECK: store i32 {{.*}}, i32 addrspace(2)*
void test3() {
*A = *B;
}
// PR7437
typedef struct {
float aData[1];
} MyStruct;
// CHECK-LABEL: define void @test4(
// CHECK: call void @llvm.memcpy.p0i8.p2i8
// CHECK: call void @llvm.memcpy.p2i8.p0i8
void test4(MyStruct __attribute__((address_space(2))) *pPtr) {
MyStruct s = pPtr[0];
pPtr[0] = s;
}
|
the_stack_data/23575189.c
|
#include<stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
int pid = fork();
if (pid > 0)
printf("in parent process");
else if (pid == 0)
{
sleep(30);
printf("in child process");
}
return 0;
}
|
the_stack_data/154827853.c
|
extern void __VERIFIER_error() __attribute__ ((__noreturn__));
extern void __VERIFIER_assume(int);
void __VERIFIER_assert(int cond) { if(!(cond)) { ERROR: __VERIFIER_error(); } }
extern int __VERIFIER_nondet_int(void);
int N;
int main()
{
N = __VERIFIER_nondet_int();
if(N <= 0) return 1;
int i;
int a[N];
for(i=0; i<N; i++)
{
a[i] = __VERIFIER_nondet_int();
}
for(i=0; i<N; i++)
{
if(a[i] > N) {
a[i] = a[i];
} else {
a[i] = N;
}
}
for(i=0; i<N; i++)
{
__VERIFIER_assert(a[i] <= N);
}
return 1;
}
|
the_stack_data/150143321.c
|
#include <stdio.h>
#include <stdlib.h>
#define WIDTH 256
#define HEIGHT 320
void drawbmp(char *, int[WIDTH][HEIGHT], int[WIDTH][HEIGHT], int[WIDTH][HEIGHT]);
int main(void)
{
int r[WIDTH][HEIGHT];
int g[WIDTH][HEIGHT];
int b[WIDTH][HEIGHT];
for(int i = 0; i < WIDTH; i++)
{
for(int j = 0; j < HEIGHT; j++)
{
r[i][j] = 244;
g[i][j] = 66;
b[i][j] = 191;
}
}
drawbmp("hahlol.bmp", r, g, b);
return 0;
}
void drawbmp(char *filename, int r[WIDTH][HEIGHT], int g[WIDTH][HEIGHT], int b[WIDTH][HEIGHT])
{
FILE *fout;
unsigned int headers[13];
unsigned int extraBytes;
unsigned int paddedImageSize;
extraBytes = 4 - ((WIDTH * 3) % 4);
if(extraBytes == 4) extraBytes = 0;
paddedImageSize = ((WIDTH * 3) + extraBytes) * HEIGHT;
headers[0] = paddedImageSize + 54;
headers[1] = 0;
headers[2] = 54;
headers[3] = 40;
headers[4] = WIDTH;
headers[5] = HEIGHT;
headers[7] = 0;
headers[8] = paddedImageSize;
headers[9] = 0;
headers[10] = 0;
headers[11] = 0;
headers[12] = 0;
fout = fopen(filename, "wb");
fprintf(fout, "BM");
for(int i = 0; i <= 5; i++)
{
fprintf(fout, "%c", headers[i] & 0x000000FF);
fprintf(fout, "%c", (headers[i] & 0x0000FF00) >> 8);
fprintf(fout, "%c", (headers[i] & 0x00FF0000) >> 16);
fprintf(fout, "%c", (headers[i] & (unsigned int) 0xFF000000) >> 24);
}
fprintf(fout, "%c", 1);
fprintf(fout, "%c", 0);
fprintf(fout, "%c", 24);
fprintf(fout, "%c", 0);
for(int i = 7; i <= 12; i++)
{
fprintf(fout, "%c", headers[i] & 0x000000FF);
fprintf(fout, "%c", (headers[i] & 0x0000FF00) >> 8);
fprintf(fout, "%c", (headers[i] & 0x00FF0000) >> 16);
fprintf(fout, "%c", (headers[i] & (unsigned int) 0xFF000000) >> 24);
}
for(int y = HEIGHT - 1; y >= 0; y--)
{
for(int x = 0; x < WIDTH; x++)
{
fprintf(fout, "%c", b[x][y]);
fprintf(fout, "%c", g[x][y]);
fprintf(fout, "%c", r[x][y]);
}
if(extraBytes)
{
for(int i = 0; i < extraBytes; i++)
{
fprintf(fout, "%c", 0);
}
}
}
fclose(fout);
}
|
the_stack_data/212643326.c
|
//*****************************************************************************
//
//! \file main.c
//! \brief Test main.
//! \version 1.0
//! \date 5/17/2011
//! \author CooCox
//! \copy
//!
//! Copyright (c) 2009-2011 CooCox. All rights reserved.
//
//*****************************************************************************
int main()
{
while(1);
}
|
the_stack_data/371260.c
|
#include <stdio.h>
double mean(double i, double j) {
return 1.0 / ((1.0 / i + 1.0 / j) / 2.0);
}
int main(void) {
double i, j;
printf("Enter the first number:\n");
scanf("%lf", &i);
printf("Enter the second number:\n");
scanf("%lf", &j);
printf("mean = %lf\n", mean(i, j));
}
|
the_stack_data/39583.c
|
// Copyright 2021 IOsetting <[email protected]>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <stdint.h>
#include <errno.h>
#include <stdio.h>
#include <stdbool.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <termios.h>
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
static int ttys;
static speed_t termios_speed[] = {
B0, B50, B75, B110, B134, B150, B200,
B300, B600, B1200, B1800, B2400, B4800, B9600,
B19200, B38400, B57600, B115200, B230400, B460800, B500000,
B576000, B921600, B1000000, B1152000, B1500000, B2000000, B2500000,
B3000000, B3500000, B4000000,
};
static unsigned int termios_rates[] = {
0, 50, 75, 110, 134, 150, 200,
300, 600, 1200, 1800, 2400, 4800, 9600,
19200, 38400, 57600, 115200, 230400, 460800, 500000,
576000, 921600, 1000000, 1152000, 1500000, 2000000, 2500000,
3000000, 3500000, 4000000,
};
int termios_set_speed(unsigned int speed)
{
struct termios term;
unsigned int index = 0;
int retval;
if ((retval = tcgetattr(ttys, &term)) < 0)
{
return retval;
}
while (termios_rates[++index] != speed)
{
if ((index + 1) == ARRAY_SIZE(termios_speed))
{
return -1;
}
}
cfsetispeed(&term, termios_speed[index]);
cfsetospeed(&term, termios_speed[index]);
tcflush(ttys, TCIOFLUSH);
return tcsetattr(ttys, TCSANOW, &term);
}
/**
* CSIZE: Character size mask. Values are CS5, CS6, CS7, or CS8
* CSTOPB: Set two stop bits, rather than one.
* CLOCAL: Ignore modem control lines.
* CREAD: Enable receiver.
* INPCK: Enable input parity checking
* PARENB: Enable parity generation on output and parity checking for input.
* ICANON: Enable canonical mode (described below)
* ECHO: Echo input characters.
* ECHOE: If ICANON is also set, the ERASE character erases the preceding input character, and WERASE erases the preceding word.
* ISIG: When any of the characters INTR, QUIT, SUSP, or DSUSP are received, generate the corresponding signal.
*
* OPOST: Enable implementation-defined output processing.
*
* ICRNL: Translate carriage return to newline on input (unless IGNCR is set).
* XON: Enable XON/XOFF flow control on output.
*/
int termios_setup(unsigned int speed, int databits, int stopbits, char parity)
{
struct termios term;
int ret;
if ((ret = termios_set_speed(speed)) < 0)
{
return ret;
}
if ((ret = tcgetattr(ttys, &term)) < 0)
{
return ret;
}
term.c_cflag |= (CLOCAL | CREAD);
term.c_cflag &= ~CSIZE;
if (databits == 7)
term.c_cflag |= CS7;
else
term.c_cflag |= CS8;
if (stopbits == 2)
term.c_cflag |= CSTOPB;
else
term.c_cflag &= ~CSTOPB;
switch (parity) {
case 'N': case 'n':
term.c_cflag &= ~PARENB;
term.c_iflag &= ~INPCK;
break;
case 'O': case 'o':
term.c_cflag |= (PARODD | PARENB);
term.c_iflag |= INPCK;
break;
case 'E': case 'e':
term.c_cflag |= PARENB;
term.c_cflag &= ~PARODD;
term.c_iflag |= INPCK;
break;
case 'S': case 's':
term.c_cflag &= ~PARENB;
term.c_cflag &= ~CSTOPB;
term.c_iflag |= INPCK;
break;
}
/* set raw input, not using cfmakeraw(&term) */
/* local modes - clear giving: echoing off, canonical off (no erase with
backspace, ^U,...), no extended functions, no signal chars (^Z,^C) */
term.c_lflag &= ~(ICANON | ECHO | IEXTEN | ISIG | ECHONL);
/* output modes - clear giving: no post processing such as NL to CR+NL */
term.c_oflag &= ~(OPOST);
/* input modes - clear indicated ones giving: no break, no CR to NL,
no parity check, no strip char, no start/stop output (sic) control */
term.c_iflag &= ~(BRKINT | ICRNL | ISTRIP | IXON | IGNBRK | PARMRK | INLCR | IGNCR);
term.c_cc[VMIN] = 0;
term.c_cc[VTIME] = 0; /* immediate - anything */
tcflush(ttys, TCIOFLUSH);
if ((ret = tcsetattr(ttys, TCSANOW, &term)) < 0)
{
return ret;
}
return 0;
}
int termios_rts(bool enable)
{
unsigned int state;
int ret;
if ((ret = ioctl(ttys, TIOCMGET, &state)) < 0)
return ret;
if (enable)
state |= TIOCM_RTS;
else
state &= ~TIOCM_RTS;
return ioctl(ttys, TIOCMSET, &state);
}
int termios_dtr(bool enable)
{
unsigned int state;
int ret;
if ((ret = ioctl(ttys, TIOCMGET, &state)) < 0)
return ret;
if (enable)
state |= TIOCM_DTR;
else
state &= ~TIOCM_DTR;
return ioctl(ttys, TIOCMSET, &state);
}
int termios_flush(void)
{
return tcflush(ttys, TCIFLUSH);
}
int termios_read(void *data, unsigned long len)
{
int ret = read(ttys, data, len);
tcflush(ttys, TCIFLUSH);
return ret;
}
int termios_write(const void *data, unsigned long len)
{
int ret = write(ttys, data, len);
tcflush(ttys, TCOFLUSH);
return ret;
}
int termios_open(char *path)
{
if (ttys)
return -EALREADY;
ttys = open(path, O_RDWR | O_NOCTTY | O_NDELAY);
fcntl(ttys, F_SETFL, O_NDELAY);
return ttys < 0 ? ttys : 0;
}
|
the_stack_data/116774.c
|
#include <stdlib.h>
#include <stdio.h>
void usage(void) {
fprintf(stderr, "Usage: monikor <config.yml>\n");
exit(1);
}
|
the_stack_data/131032.c
|
// RUN: %llvmgcc -c -emit-llvm %s -o - | llvm-dis | grep llvm.noinline
static int bar(int x, int y) __attribute__((noinline));
static int bar(int x, int y)
{
return x + y;
}
int foo(int a, int b) {
return bar(b, a);
}
|
the_stack_data/578508.c
|
#include <stdlib.h>
typedef struct ln {
int data;
struct ln *next;
} SLL;
/*@ pred list(+p, alpha) {
(p -m> struct ln { #head; #tail } * (alpha == #head::#beta)) *
list(#tail,#beta);
(p == NULL) * (alpha == nil)
}
pred listSeg(+p, +q, alpha) {
( p == q ) * (alpha == nil);
(p -m> struct ln { #head; #tail } * (alpha == #head::#beta)) *
listSeg(#tail, q, #beta)
}
lemma lsegToList(p, alpha) {
hypothesis: listSeg(#p, NULL, #alpha)
conclusions: list(#p, #alpha)
proof:
unfold listSeg(#p, NULL, #alpha) [[bind #head: #head,
#tail: #tail,
#beta: #beta]];
if (!(#p = NULL)) {
apply lsegToList(#tail, #beta);
fold list(#p, #alpha)
}
}
lemma listSegAppend(p, q, alpha, a, end) {
hypothesis: listSeg(#p, #q, #alpha) * (#q -m> struct ln { #a; #end })
conclusions: listSeg(#p, #end, #alpha @ [#a])
proof:
unfold listSeg(#p, #q, #alpha)[[bind #head: #head,
#tail: #tail,
#beta: #beta]];
if (!(#p = #q)) {
apply listSegAppend(#tail, #q, #beta, #a, #end);
fold listSeg(#p, #end, #alpha @ [#a])
}
}
*/
/*@ spec listAppend(x, v) {
requires: (x == #x) * list(#x, #alpha) * (v == #v) * (#v == int(#z))
ensures: list(ret, #alpha @ [ #v ])
} */
SLL *listAppend(SLL *x, int v) {
if (x == NULL) {
SLL *el = malloc(sizeof(SLL));
el->data = v;
el->next = NULL;
return el;
} else {
SLL *tailp = listAppend(x->next, v);
__builtin_annot("assert [[bind #t]] list(tailp, #t)");
__builtin_annot("unfold list(tailp, #t)");
__builtin_annot("fold list(tailp, #t)");
x->next = tailp;
return x;
};
}
/*@ spec listPrepend(x, z) {
requires: (x -m> struct ln { #head; NULL }) *
(x == #v) *
(z == #z) *
list(#z, #alpha)
ensures: list(ret, #head::#alpha)
} */
SLL *listPrepend(SLL *x, SLL *z) {
__builtin_annot("unfold list(#z, #alpha)");
x->next = z;
return x;
}
/*@ spec listLength(x) {
requires: list(#x, #alpha) * (x == #x)
ensures: list(#x, #alpha) * (ret == int(#r)) * (#r == len #alpha)
} */
int listLength(SLL *x) {
if (x == NULL) {
return 0;
} else {
return 1 + listLength(x->next);
};
}
/*@ spec listDispose(x) {
requires: list(#x, #alpha) * (x == #x)
ensures: emp
} */
void listDispose(SLL *x) {
if (x == NULL) {
return;
} else {
listDispose(x->next);
free(x);
return;
};
}
/*@ spec listCopy(x) {
requires: list(#x, #alpha) * (x == #x)
ensures: list(ret, #alpha) * list(#x, #alpha)
} */
SLL *listCopy(SLL *x) {
SLL *r;
if (x == NULL) {
r = NULL;
} else {
SLL *t = listCopy(x->next);
__builtin_annot("unfold list (NULL, #beta)");
__builtin_annot("unfold list(t, #beta)");
r = malloc(sizeof(SLL));
r->data = x->data;
r->next = t;
};
return r;
}
/*@ spec listConcat(x, y) {
requires: list(#x, #alpha) * (x == #x) * list(#y, #beta) * (y == #y)
ensures: list(ret, #alpha @ #beta)
} */
SLL *listConcat(SLL *x, SLL *y) {
SLL *r;
if (x == NULL) {
r = y;
} else {
SLL *c = listConcat(x->next, y);
__builtin_annot("assert [[bind #gamma]] list(c, #gamma)");
__builtin_annot("unfold list(c, #gamma)");
__builtin_annot("fold list(c, #gamma)");
x->next = c;
r = x;
};
return r;
}
|
the_stack_data/140765797.c
|
/*
* Copyright (c) 2009 Tiago Vignatti
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following
* conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
* OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include <stdio.h>
#include "pciaccess.h"
int
pci_device_vgaarb_init(void)
{
#ifdef DEBUG
fprintf(stderr, "%s: You're using VGA arbiter stub functions!\n",
__FUNCTION__);
#endif
return -1;
}
void
pci_device_vgaarb_fini(void)
{
}
int
pci_device_vgaarb_set_target(struct pci_device *dev)
{
return -1;
}
int
pci_device_vgaarb_decodes(int new_vga_rsrc)
{
return -1;
}
int
pci_device_vgaarb_lock(void)
{
return -1;
}
int
pci_device_vgaarb_trylock(void)
{
return -1;
}
int
pci_device_vgaarb_unlock(void)
{
return 0;
}
int pci_device_vgaarb_get_info(struct pci_device *dev, int *vga_count,
int *rsrc_decodes)
{
return -1;
}
|
the_stack_data/154828845.c
|
float fahrtocel(float fahr)
{
return ((fahr - 32.0f) * 5.0f / 9.0f);
}
float celtofahr(float cel)
{
return (cel * 9.0f / 5.0f + 32.0f);
}
|
the_stack_data/191866.c
|
main() {
unsigned long i = 1, j = 1;
for (; i <= 1000000; ++i) {
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3; j*=3;
j = 1;
}
return j+i;
}
|
the_stack_data/119762.c
|
#include<stdio.h>
#include<malloc.h>
struct Node{
int data;
struct Node* left;
struct Node* right;
};
int search(int arr[],int start,int end,int value);
struct Node * newNode(int data);
struct Node * buildTree(int in[],int pre[],int inStrt,int inEnd)
{
static int preIndex = 0;
if(inStrt > inEnd)
{
return NULL;
}
struct Node *tNode = newNode(pre[preIndex++]);
if(inStrt == inEnd)
{
return tNode;
}
int inIndex = search(in,inStrt,inEnd,tNode->data);
tNode->left = buildTree(in,pre,inStrt,inIndex-1);
tNode->right = buildTree(in , pre , inIndex+1, inEnd);
return tNode;
}
int search(int arr[],int strt,int end,int value)
{
int i ;
for(i = strt ; i <= end ; i++)
{
if(arr[i] == value)
{
return i;
}
}
}
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);
}
void printInorder(struct Node* node)
{
if (node == NULL)
return;
/* first recur on left child */
printInorder(node->left);
/* then print the data of node */
printf("%d ", node->data);
/* now recur on right child */
printInorder(node->right);
}
int main()
{
int in[] = { 1,2,3,4,5 };
int pre[] = { 4,2,1,3,5 };
int len = sizeof(in) / sizeof(in[0]);
struct node* root = buildTree(in, pre, 0, len - 1);
/* Let us test the built tree by printing Insorder traversal */
printf("Inorder traversal of the constructed tree is \n");
printInorder(root);
}
|
the_stack_data/36595.c
|
#include<stdio.h>
#include<string.h>
void itob (int, char[], int);
void reverse (char[]);
int main (){
char s[100];
int n=75; //change number here
int b=16; //change the base that you want (2>=b>=36)
itob(n,s,b);
printf("%s",s);
return 0;
}
void itob (int n, char s[], int b){
int i=0,sign=0;
if(n<0){
n=-n;
sign++;
}
while(n>0){
s[i++]=(n%b<10) ? n%b+'0' : n%b+55; //if the remainder is larger than 9 that means that it
n/=b; //will be a letter and the character 'A' is at 65th position .
}
if(sign==1){
s[i++]='-';
}
s[i]='\0';
reverse (s);
}
void reverse (char s[]){
char aux;
int j,i;
for (i=0,j=strlen(s)-1; i<j; i++,j--){
aux=s[i];
s[i]=s[j];
s[j]=aux;
}
}
|
the_stack_data/3263848.c
|
#include <stdio.h>
#include <stdlib.h>
unsigned int detectPeaks(float x[], unsigned int signal_size);
int main()
{
const unsigned int MAG1 = 2597;
const unsigned int MAG2 = 8381;
float mag1[MAG1];
float mag2[MAG2];
float num;
FILE *data_in;
data_in = fopen("ConstRate_X.txt", "r");
unsigned int i;
unsigned int peaksDetected = 0;
for(i = 0; i < MAG1; i++)
{
fscanf(data_in, "%f", &num);
mag1[i] = num;
}
fclose(data_in);
data_in = fopen("SweepRate_X.txt", "r");
for(i = 0; i < MAG2; i++)
{
fscanf(data_in, "%f", &num);
mag2[i] = num;
}
fclose(data_in);
printf("Test Case 1: ConstRate_X.txt\n");
peaksDetected = detectPeaks(mag1, MAG1);
printf("\tPeaks Detected: %d\n", peaksDetected);
printf("Test Case 2: SweepRate_X.txt\n");
peaksDetected = detectPeaks(mag2, MAG2);
printf("\tPeaks Detected: %d\n", peaksDetected);
return 0;
}
unsigned int detectPeaks(float x[], unsigned int signal_size)
{
float s = 0; // s is the derivative of x.
float sf[] = {0, 0}; // sf is the filtered derivative of x.
const float a = 0.2; // a is a constant parameter for low-pass filtering.
unsigned int k; // Loop Index
float y[] = {0, 0}; // y is filtered x.
char slopeWasPositive = 0; // Used to track zero-crossings
char slopeIsPositive = 0; // Used to track zero-crossings
unsigned int pulseCount = 0; // Pulses Counted
for(k = 1; k < signal_size; k++)
{
y[1] = y[0] + (a * (x[k] - y[0])); // Low Pass Filter: x to y
s = y[1] - y[0]; // Discrete derivative of y[]
sf[1] = sf[0] + (a * (s - sf[0])); // Filter the derivative s: s to sf
sf[1] += 0.0005; // Offset Derivative to ignore noise
y[0] = y[1]; // Update y[]
sf[0] = sf[1]; // Update sf[]
if (sf[1] > 0) // If the value of the derivative is greater than zero
slopeIsPositive = 1; // Then the slope of the signal is positive.
else if (sf[1] < 0) // Else If the value of the derivative is less than zero
slopeIsPositive = 0; // Then the slope of the signal is negative.
if (!slopeIsPositive && slopeWasPositive) // If a positive to negative sign change occurs
pulseCount += 1; // Then increment the pulse count.
if (slopeIsPositive) // If the slope is positive
slopeWasPositive = 1; // Then on the next run, we'll know the slope WAS positive
else // Otherwise
slopeWasPositive = 0; // We know the slope WAS NOT positive.
}
return pulseCount;
}
|
the_stack_data/79891.c
|
#include <stdio.h>
typedef struct ponto_s {
double x;
double y;
} ponto;
typedef struct circulo_s {
ponto centro;
double raio;
} circulo;
double dist2 (ponto p1, ponto p2) {
return (p1.x-p2.x)*(p1.x-p2.x) + (p1.y-p2.y)*(p1.y-p2.y);
}
int dentro (circulo c, ponto p) {
if (dist2(c.centro, p)<= c.raio*c.raio)
return 1;
else
return 0;
}
int main(void) {
circulo c;
ponto p;
scanf("%lf %lf", &p.x, &p.y);
scanf("%lf %lf %lf", &c.centro.x, &c.centro.y, &c.raio);
if(dentro(c,p)) printf("DENTRO\n");
else printf("FORA\n");
return 0;
}
|
the_stack_data/97012550.c
|
#include <stdlib.h>
#include <math.h>
#define sign(x) ((x > 0) - (x < 0))
int str_cmatch(const char* a, const char* b)
{
int i = 0;
while(a[i] != 0 && b[i] != 0 && a[i] == b[i])
i++;
return i;
}
struct timespec ts_diff(struct timespec a, struct timespec b)
{
a.tv_sec = a.tv_sec - b.tv_sec;
a.tv_nsec = a.tv_nsec - b.tv_nsec;
a.tv_sec = abs(a.tv_sec) - 1 * ((sign(a.tv_sec) * sign(a.tv_nsec)) < 0);
a.tv_nsec = abs(1000000000 * ((sign(a.tv_sec) * sign(a.tv_nsec)) < 0) - abs(a.tv_nsec));
return a;
}
double ts_to_double(struct timespec time)
{
return time.tv_sec + time.tv_nsec / 10e9;
}
int AlmostEqualRelative(double A, double B, double maxRelDiff)
{
// Calculate the difference.
double diff = fabs(A - B);
A = fabs(A);
B = fabs(B);
// Find the largest
float largest = (B > A) ? B : A;
if (diff <= largest * maxRelDiff)
return 1;
return 0;
}
|
the_stack_data/700150.c
|
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
unsigned int floorsqrt(unsigned int n) {
if (n < 2)
return n;
unsigned int low = floorsqrt(n >> (unsigned int) 2) << (unsigned int) 1;
unsigned int high = low + 1;
return high * high > n ? low : high;
}
unsigned int ceilsqrt(unsigned int n) {
return floorsqrt(n) + 1;
}
unsigned int* sieve_of_eratosthenes(int limit) {
char *primality = malloc(limit * sizeof(char));
// initialize entire array to true
for (int i = 0; i < limit; i++)
primality[i] = 1;
// now, perform the sieve
unsigned int small_limit = ceilsqrt(limit);
for (int i = 2; i < small_limit; i++) {
if(!primality[i])
continue;
for (int j = i*i; j < limit; j += i)
primality[j] = 0;
}
unsigned int *primes = malloc(limit * sizeof(unsigned int));
int j = 0;
for (int i = 2; i < limit; i++) {
if (primality[i])
primes[j++] = i;
}
primes[j] = 0;
free(primality);
return primes;
}
unsigned int* sieve_of_eratosthenes2(int limit) {
unsigned int segment_length = ceilsqrt(limit);
// first find the lower sqrt N of primes
unsigned int *first_primes = sieve_of_eratosthenes(segment_length);
// allocate an array for all primes we might need to store
int prime_amount = 0;
unsigned int *primes = malloc(limit * sizeof(unsigned int));
// store initial primes
for(int i = 0; first_primes[i]; i++)
primes[prime_amount++] = first_primes[i];
// allocate a smaller array for the primality of the segment we're currently scanning
char *primality = malloc(segment_length * sizeof(char));
// process each segment
unsigned int high = segment_length;
for(unsigned int low = segment_length; low < limit; low += segment_length) {
high += segment_length;
if (high >= limit)
high = limit;
// initialize entire array to true
for (int i = 0; i < segment_length; i++)
primality[i] = 1;
// scan this segment with our list of primes
for (unsigned int i = 0; i < segment_length && first_primes[i]; i++) {
unsigned int prime = first_primes[i];
// starting number, the smallest number in the range that COULD have this prime as a factor
unsigned int bottom = floor((double) low / (double) prime) * prime;
if(bottom < low)
bottom += prime;
// mark multiples in the primality range
for (unsigned int j = bottom; j < high; j += prime)
primality[j - low] = 0;
}
// add new primes in segment to prime list
for (unsigned int i = 0; i < segment_length; i++) {
if (!primality[i])
continue;
primes[prime_amount++] = i + low;
}
}
primes[prime_amount] = 0;
free(primality);
free(first_primes);
return primes;
}
int main() {
int canary = 0;
char input[8];
gets(input);
if(canary) {
printf("buffer overflow! sdctf{B3$T_0f-b0TH_w0rLds}");
return 0;
}
char * end;
const long amount = strtol(input, &end, 10);
// shouldn't happen but important to prevent just in case
if (amount <= 2 || amount > 99999999) {
printf("number malformed");
return 0;
}
unsigned int * primes = sieve_of_eratosthenes2(amount);
for(int i = 0; i < amount; i++) {
if(!primes[i]) {
printf("There are exactly %d primes under %d", i, amount);
return 0;
}
}
}
|
the_stack_data/1217316.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isalpha.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mdemir <42istanbul.com.tr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/01/04 14:32:02 by mdemir #+# #+# */
/* Updated: 2022/01/04 14:32:03 by mdemir ### ########.tr */
/* */
/* ************************************************************************** */
int ft_isalpha(int c)
{
if ((c >= 65 && c <= 90) || (c >= 97 && c <= 122))
return (1);
else
return (0);
}
|
the_stack_data/184518554.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include <linux/types.h>
#include <linux/limits.h>
#define DEFAULT_PATTERN_FILE "hex_pattern"
#define DEFAULT_LOWER 0
#define DEFAULT_UPPER 255
#define DEFAULT_FILE_SIZE 1024
static struct option long_options[] = {
{"add", required_argument, 0, 0},
{"append", no_argument, 0, 0},
{"delete", required_argument, 0, 0},
{"verbose", no_argument, 0, 0},
{"create", required_argument, 0, 'c'},
{"file", required_argument, 0, 0},
{0, 0, 0, 0}
};
void show_help(char *name)
{
printf("\nGenerate a pattern file\n");
printf("\nUsage: %s [-f file] "
"[-l lower] [-u upper] [-s size] [-h]\n", name);
printf("\t-f\tfile path (Cannot overwrite an exist file)\n");
printf("\t-l\tlowest hexadecimal number (0-255)\n");
printf("\t-u\tlargest hexadecimal number (0-255)\n");
printf("\t-s\tfile size in bytes\n");
printf("\t-h\tshow this help\n\n");
}
int main(int argc, char *argv[])
{
char pattern[PATH_MAX] = DEFAULT_PATTERN_FILE;
int opt = 0;
unsigned long lower = DEFAULT_LOWER;
unsigned long upper = DEFAULT_UPPER;
unsigned long file_size = DEFAULT_FILE_SIZE;
FILE *file = NULL;
while (1) {
int option_index = 0;
opt = getopt_long(argc, argv, "f:l:s:u:h",
long_options, &option_index);
if (opt == -1)
break;
switch (opt) {
case 'f':
memset(pattern, 0, sizeof(pattern));
memcpy(pattern, optarg, strlen(optarg));
break;
case 'l':
lower = strtoul(optarg, NULL, 10);
break;
case 'u':
upper = strtoul(optarg, NULL, 10);
break;
case 's':
file_size = strtoul(optarg, NULL, 10);
break;
default:
show_help(argv[0]);
}
}
if (file_size < 1 || lower > upper ||
(lower < 0 || lower > 255) ||
(upper < 0 || upper > 255) ||
!access(pattern, F_OK)) {
show_help(argv[0]);
exit(EXIT_FAILURE);
}
file = fopen(pattern, "wb");
if (!file) {
perror("Open file failed");
exit(EXIT_FAILURE);
}
for (int i = 0, c = lower; i != file_size; i++, c++) {
if (!(c % (upper + 1)))
c = lower;
fputc(c, file);
}
fclose(file);
file = NULL;
exit(EXIT_SUCCESS);
return 0;
}
|
the_stack_data/121168.c
|
#pragma line 1 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/srrc.c"
#pragma line 1 "<built-in>"
#pragma line 1 "<command-line>"
#pragma line 1 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/srrc.c"
#pragma line 1 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/duc.h" 1
#pragma empty_line
#pragma empty_line
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h" 1
#pragma line 62 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h"
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 1 3
#pragma line 15 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/_mingw.h" 1 3
#pragma line 32 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/_mingw.h" 3
#pragma empty_line
#pragma line 33 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/_mingw.h" 3
#pragma line 16 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 2 3
#pragma line 24 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 1 3 4
#pragma line 212 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 3 4
typedef unsigned int size_t;
#pragma line 324 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 3 4
typedef short unsigned int wchar_t;
#pragma line 25 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 2 3
#pragma line 36 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memchr (const void*, int, size_t) __attribute__ ((__pure__));
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memcmp (const void*, const void*, size_t) __attribute__ ((__pure__));
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memcpy (void*, const void*, size_t);
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memmove (void*, const void*, size_t);
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memset (void*, int, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcat (char*, const char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strchr (const char*, int) __attribute__ ((__pure__));
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcmp (const char*, const char*) __attribute__ ((__pure__));
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcoll (const char*, const char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcpy (char*, const char*);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcspn (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strerror (int);
#pragma empty_line
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strlen (const char*) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strncat (char*, const char*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strncmp (const char*, const char*, size_t) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strncpy (char*, const char*, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strpbrk (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strrchr (const char*, int) __attribute__ ((__pure__));
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strspn (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strstr (const char*, const char*) __attribute__ ((__pure__));
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtok (char*, const char*);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strxfrm (char*, const char*, size_t);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strerror (const char *);
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _memccpy (void*, const void*, int, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _memicmp (const void*, const void*, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strdup (const char*) __attribute__ ((__malloc__));
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strcmpi (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _stricmp (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _stricoll (const char*, const char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strlwr (char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strnicmp (const char*, const char*, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strnset (char*, int, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strrev (char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strset (char*, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strupr (char*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _swab (const char*, char*, size_t);
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strncoll(const char*, const char*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _strnicoll(const char*, const char*, size_t);
#pragma line 90 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memccpy (void*, const void*, int, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) memicmp (const void*, const void*, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strdup (const char*) __attribute__ ((__malloc__));
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcmpi (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) stricmp (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strcasecmp (const char*, const char *);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) stricoll (const char*, const char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strlwr (char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strnicmp (const char*, const char*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strncasecmp (const char *, const char *, size_t);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strnset (char*, int, size_t);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strrev (char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strset (char*, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strupr (char*);
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) swab (const char*, char*, size_t);
#pragma line 126 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscat (wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcschr (const wchar_t*, wchar_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscmp (const wchar_t*, const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscpy (wchar_t*, const wchar_t*);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscspn (const wchar_t*, const wchar_t*);
#pragma empty_line
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcslen (const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsncat (wchar_t*, const wchar_t*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsncmp(const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsncpy(wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcspbrk(const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsrchr(const wchar_t*, wchar_t);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsspn(const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsstr(const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstok(wchar_t*, const wchar_t*);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsxfrm(wchar_t*, const wchar_t*, size_t);
#pragma line 152 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsdup (const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsicmp (const wchar_t*, const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsicoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcslwr (wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsnicmp (const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsnset (wchar_t*, wchar_t, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsrev (wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsset (wchar_t*, wchar_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsupr (wchar_t*);
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsncoll(const wchar_t*, const wchar_t*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wcsnicoll(const wchar_t*, const wchar_t*, size_t);
#pragma line 173 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/string.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsdup (const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsicmp (const wchar_t*, const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsicoll (const wchar_t*, const wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcslwr (wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsnicmp (const wchar_t*, const wchar_t*, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsnset (wchar_t*, wchar_t, size_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsrev (wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsset (wchar_t*, wchar_t);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcsupr (wchar_t*);
#pragma line 63 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h" 2
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 1 3
#pragma line 26 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 1 3 4
#pragma line 353 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 3 4
typedef short unsigned int wint_t;
#pragma line 27 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 2 3
#pragma empty_line
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stdarg.h" 1 3 4
#pragma line 40 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stdarg.h" 3 4
typedef __builtin_va_list __gnuc_va_list;
#pragma line 29 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 2 3
#pragma line 129 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
typedef struct _iobuf
{
char* _ptr;
int _cnt;
char* _base;
int _flag;
int _file;
int _charbuf;
int _bufsiz;
char* _tmpfname;
} FILE;
#pragma line 154 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
extern __attribute__ ((__dllimport__)) FILE _iob[];
#pragma line 169 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fopen (const char*, const char*);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) freopen (const char*, const char*, FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fflush (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fclose (FILE*);
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) remove (const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) rename (const char*, const char*);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) tmpfile (void);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) tmpnam (char*);
#pragma empty_line
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _tempnam (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _rmtmp(void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _unlink (const char*);
#pragma empty_line
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) tempnam (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) rmtmp(void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) unlink (const char*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) setvbuf (FILE*, char*, int, size_t);
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) setbuf (FILE*, char*);
#pragma line 204 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_fprintf(FILE*, const char*, ...);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_printf(const char*, ...);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_sprintf(char*, const char*, ...);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_snprintf(char*, size_t, const char*, ...);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vfprintf(FILE*, const char*, __gnuc_va_list);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vprintf(const char*, __gnuc_va_list);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vsprintf(char*, const char*, __gnuc_va_list);
extern int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __mingw_vsnprintf(char*, size_t, const char*, __gnuc_va_list);
#pragma line 293 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fprintf (FILE*, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) printf (const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) sprintf (char*, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vfprintf (FILE*, const char*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vprintf (const char*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vsprintf (char*, const char*, __gnuc_va_list);
#pragma line 308 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_fprintf(FILE*, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_printf(const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_sprintf(char*, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vfprintf(FILE*, const char*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vprintf(const char*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __msvcrt_vsprintf(char*, const char*, __gnuc_va_list);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _snprintf (char*, size_t, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _vsnprintf (char*, size_t, const char*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _vscprintf (const char*, __gnuc_va_list);
#pragma line 331 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) snprintf (char *, size_t, const char *, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vsnprintf (char *, size_t, const char *, __gnuc_va_list);
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vscanf (const char * __restrict__, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vfscanf (FILE * __restrict__, const char * __restrict__,
__gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vsscanf (const char * __restrict__,
const char * __restrict__, __gnuc_va_list);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fscanf (FILE*, const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) scanf (const char*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) sscanf (const char*, const char*, ...);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetc (FILE*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgets (char*, int, FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputc (int, FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputs (const char*, FILE*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) gets (char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) puts (const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ungetc (int, FILE*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _filbuf (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _flsbuf (int, FILE*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
extern __inline__ int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getc (FILE* __F)
{
return (--__F->_cnt >= 0)
? (int) (unsigned char) *__F->_ptr++
: _filbuf (__F);
}
#pragma empty_line
extern __inline__ int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putc (int __c, FILE* __F)
{
return (--__F->_cnt >= 0)
? (int) (unsigned char) (*__F->_ptr++ = (char)__c)
: _flsbuf (__c, __F);
}
#pragma empty_line
extern __inline__ int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getchar (void)
{
return (--(&_iob[0])->_cnt >= 0)
? (int) (unsigned char) *(&_iob[0])->_ptr++
: _filbuf ((&_iob[0]));
}
#pragma empty_line
extern __inline__ int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putchar(int __c)
{
return (--(&_iob[1])->_cnt >= 0)
? (int) (unsigned char) (*(&_iob[1])->_ptr++ = (char)__c)
: _flsbuf (__c, (&_iob[1]));}
#pragma line 412 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fread (void*, size_t, size_t, FILE*);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fwrite (const void*, size_t, size_t, FILE*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fseek (FILE*, long, int);
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ftell (FILE*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) rewind (FILE*);
#pragma line 455 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
typedef long long fpos_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetpos (FILE*, fpos_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fsetpos (FILE*, const fpos_t*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) feof (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ferror (FILE*);
#pragma line 480 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) clearerr (FILE*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) perror (const char*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _popen (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _pclose (FILE*);
#pragma empty_line
#pragma empty_line
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) popen (const char*, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) pclose (FILE*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _flushall (void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fgetchar (void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fputchar (int);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fdopen (int, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fileno (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fcloseall (void);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fsopen (const char*, const char*, int);
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _getmaxstdio (void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _setmaxstdio (int);
#pragma line 522 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetchar (void);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputchar (int);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fdopen (int, const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fileno (FILE*);
#pragma line 534 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/sys/types.h" 1 3
#pragma line 21 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/sys/types.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 1 3 4
#pragma line 150 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 3 4
typedef int ptrdiff_t;
#pragma line 22 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/sys/types.h" 2 3
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef long __time32_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef long long __time64_t;
#pragma line 45 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/sys/types.h" 3
typedef __time32_t time_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef long _off_t;
#pragma empty_line
#pragma empty_line
typedef _off_t off_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef unsigned int _dev_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef _dev_t dev_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef short _ino_t;
#pragma empty_line
#pragma empty_line
typedef _ino_t ino_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int _pid_t;
#pragma empty_line
#pragma empty_line
typedef _pid_t pid_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef unsigned short _mode_t;
#pragma empty_line
#pragma empty_line
typedef _mode_t mode_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int _sigset_t;
#pragma empty_line
#pragma empty_line
typedef _sigset_t sigset_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int _ssize_t;
#pragma empty_line
#pragma empty_line
typedef _ssize_t ssize_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef long long fpos64_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef long long off64_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef unsigned int useconds_t;
#pragma line 535 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 2 3
extern __inline__ FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fopen64 (const char* filename, const char* mode)
{
return fopen (filename, mode);
}
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fseeko64 (FILE*, off64_t, int);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
extern __inline__ off64_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ftello64 (FILE * stream)
{
fpos_t pos;
if (fgetpos(stream, &pos))
return -1LL;
else
return ((off64_t) pos);
}
#pragma line 563 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fwprintf (FILE*, const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wprintf (const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _snwprintf (wchar_t*, size_t, const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vfwprintf (FILE*, const wchar_t*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vwprintf (const wchar_t*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _vsnwprintf (wchar_t*, size_t, const wchar_t*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _vscwprintf (const wchar_t*, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fwscanf (FILE*, const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wscanf (const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) swscanf (const wchar_t*, const wchar_t*, ...);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetwc (FILE*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputwc (wchar_t, FILE*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ungetwc (wchar_t, FILE*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) swprintf (wchar_t*, const wchar_t*, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vswprintf (wchar_t*, const wchar_t*, __gnuc_va_list);
#pragma empty_line
#pragma empty_line
#pragma empty_line
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetws (wchar_t*, int, FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputws (const wchar_t*, FILE*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getwc (FILE*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getwchar (void);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _getws (wchar_t*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putwc (wint_t, FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _putws (const wchar_t*);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putwchar (wint_t);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wfdopen(int, const wchar_t *);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wfopen (const wchar_t*, const wchar_t*);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wfreopen (const wchar_t*, const wchar_t*, FILE*);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wfsopen (const wchar_t*, const wchar_t*, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtmpnam (wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtempnam (const wchar_t*, const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wrename (const wchar_t*, const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wremove (const wchar_t*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wperror (const wchar_t*);
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wpopen (const wchar_t*, const wchar_t*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) snwprintf (wchar_t* s, size_t n, const wchar_t* format, ...);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vsnwprintf (wchar_t* s, size_t n, const wchar_t* format, __gnuc_va_list arg);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vwscanf (const wchar_t * __restrict__, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vfwscanf (FILE * __restrict__,
const wchar_t * __restrict__, __gnuc_va_list);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) vswscanf (const wchar_t * __restrict__,
const wchar_t * __restrict__, __gnuc_va_list);
#pragma line 625 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdio.h" 3
FILE* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wpopen (const wchar_t*, const wchar_t*);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fgetwchar (void);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fputwchar (wint_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _getw (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _putw (int, FILE*);
#pragma empty_line
#pragma empty_line
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fgetwchar (void);
wint_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fputwchar (wint_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getw (FILE*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putw (int, FILE*);
#pragma line 64 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h" 2
#pragma line 77 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h"
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_apint.h" 1
#pragma line 57 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_apint.h"
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h" 1
#pragma line 97 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h"
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.def" 1
#pragma empty_line
#pragma empty_line
typedef int __attribute__ ((bitwidth(1))) int1;
typedef int __attribute__ ((bitwidth(2))) int2;
typedef int __attribute__ ((bitwidth(3))) int3;
typedef int __attribute__ ((bitwidth(4))) int4;
typedef int __attribute__ ((bitwidth(5))) int5;
typedef int __attribute__ ((bitwidth(6))) int6;
typedef int __attribute__ ((bitwidth(7))) int7;
typedef int __attribute__ ((bitwidth(8))) int8;
typedef int __attribute__ ((bitwidth(9))) int9;
typedef int __attribute__ ((bitwidth(10))) int10;
typedef int __attribute__ ((bitwidth(11))) int11;
typedef int __attribute__ ((bitwidth(12))) int12;
typedef int __attribute__ ((bitwidth(13))) int13;
typedef int __attribute__ ((bitwidth(14))) int14;
typedef int __attribute__ ((bitwidth(15))) int15;
typedef int __attribute__ ((bitwidth(16))) int16;
typedef int __attribute__ ((bitwidth(17))) int17;
typedef int __attribute__ ((bitwidth(18))) int18;
typedef int __attribute__ ((bitwidth(19))) int19;
typedef int __attribute__ ((bitwidth(20))) int20;
typedef int __attribute__ ((bitwidth(21))) int21;
typedef int __attribute__ ((bitwidth(22))) int22;
typedef int __attribute__ ((bitwidth(23))) int23;
typedef int __attribute__ ((bitwidth(24))) int24;
typedef int __attribute__ ((bitwidth(25))) int25;
typedef int __attribute__ ((bitwidth(26))) int26;
typedef int __attribute__ ((bitwidth(27))) int27;
typedef int __attribute__ ((bitwidth(28))) int28;
typedef int __attribute__ ((bitwidth(29))) int29;
typedef int __attribute__ ((bitwidth(30))) int30;
typedef int __attribute__ ((bitwidth(31))) int31;
typedef int __attribute__ ((bitwidth(32))) int32;
typedef int __attribute__ ((bitwidth(33))) int33;
typedef int __attribute__ ((bitwidth(34))) int34;
typedef int __attribute__ ((bitwidth(35))) int35;
typedef int __attribute__ ((bitwidth(36))) int36;
typedef int __attribute__ ((bitwidth(37))) int37;
typedef int __attribute__ ((bitwidth(38))) int38;
typedef int __attribute__ ((bitwidth(39))) int39;
typedef int __attribute__ ((bitwidth(40))) int40;
typedef int __attribute__ ((bitwidth(41))) int41;
typedef int __attribute__ ((bitwidth(42))) int42;
typedef int __attribute__ ((bitwidth(43))) int43;
typedef int __attribute__ ((bitwidth(44))) int44;
typedef int __attribute__ ((bitwidth(45))) int45;
typedef int __attribute__ ((bitwidth(46))) int46;
typedef int __attribute__ ((bitwidth(47))) int47;
typedef int __attribute__ ((bitwidth(48))) int48;
typedef int __attribute__ ((bitwidth(49))) int49;
typedef int __attribute__ ((bitwidth(50))) int50;
typedef int __attribute__ ((bitwidth(51))) int51;
typedef int __attribute__ ((bitwidth(52))) int52;
typedef int __attribute__ ((bitwidth(53))) int53;
typedef int __attribute__ ((bitwidth(54))) int54;
typedef int __attribute__ ((bitwidth(55))) int55;
typedef int __attribute__ ((bitwidth(56))) int56;
typedef int __attribute__ ((bitwidth(57))) int57;
typedef int __attribute__ ((bitwidth(58))) int58;
typedef int __attribute__ ((bitwidth(59))) int59;
typedef int __attribute__ ((bitwidth(60))) int60;
typedef int __attribute__ ((bitwidth(61))) int61;
typedef int __attribute__ ((bitwidth(62))) int62;
typedef int __attribute__ ((bitwidth(63))) int63;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int __attribute__ ((bitwidth(65))) int65;
typedef int __attribute__ ((bitwidth(66))) int66;
typedef int __attribute__ ((bitwidth(67))) int67;
typedef int __attribute__ ((bitwidth(68))) int68;
typedef int __attribute__ ((bitwidth(69))) int69;
typedef int __attribute__ ((bitwidth(70))) int70;
typedef int __attribute__ ((bitwidth(71))) int71;
typedef int __attribute__ ((bitwidth(72))) int72;
typedef int __attribute__ ((bitwidth(73))) int73;
typedef int __attribute__ ((bitwidth(74))) int74;
typedef int __attribute__ ((bitwidth(75))) int75;
typedef int __attribute__ ((bitwidth(76))) int76;
typedef int __attribute__ ((bitwidth(77))) int77;
typedef int __attribute__ ((bitwidth(78))) int78;
typedef int __attribute__ ((bitwidth(79))) int79;
typedef int __attribute__ ((bitwidth(80))) int80;
typedef int __attribute__ ((bitwidth(81))) int81;
typedef int __attribute__ ((bitwidth(82))) int82;
typedef int __attribute__ ((bitwidth(83))) int83;
typedef int __attribute__ ((bitwidth(84))) int84;
typedef int __attribute__ ((bitwidth(85))) int85;
typedef int __attribute__ ((bitwidth(86))) int86;
typedef int __attribute__ ((bitwidth(87))) int87;
typedef int __attribute__ ((bitwidth(88))) int88;
typedef int __attribute__ ((bitwidth(89))) int89;
typedef int __attribute__ ((bitwidth(90))) int90;
typedef int __attribute__ ((bitwidth(91))) int91;
typedef int __attribute__ ((bitwidth(92))) int92;
typedef int __attribute__ ((bitwidth(93))) int93;
typedef int __attribute__ ((bitwidth(94))) int94;
typedef int __attribute__ ((bitwidth(95))) int95;
typedef int __attribute__ ((bitwidth(96))) int96;
typedef int __attribute__ ((bitwidth(97))) int97;
typedef int __attribute__ ((bitwidth(98))) int98;
typedef int __attribute__ ((bitwidth(99))) int99;
typedef int __attribute__ ((bitwidth(100))) int100;
typedef int __attribute__ ((bitwidth(101))) int101;
typedef int __attribute__ ((bitwidth(102))) int102;
typedef int __attribute__ ((bitwidth(103))) int103;
typedef int __attribute__ ((bitwidth(104))) int104;
typedef int __attribute__ ((bitwidth(105))) int105;
typedef int __attribute__ ((bitwidth(106))) int106;
typedef int __attribute__ ((bitwidth(107))) int107;
typedef int __attribute__ ((bitwidth(108))) int108;
typedef int __attribute__ ((bitwidth(109))) int109;
typedef int __attribute__ ((bitwidth(110))) int110;
typedef int __attribute__ ((bitwidth(111))) int111;
typedef int __attribute__ ((bitwidth(112))) int112;
typedef int __attribute__ ((bitwidth(113))) int113;
typedef int __attribute__ ((bitwidth(114))) int114;
typedef int __attribute__ ((bitwidth(115))) int115;
typedef int __attribute__ ((bitwidth(116))) int116;
typedef int __attribute__ ((bitwidth(117))) int117;
typedef int __attribute__ ((bitwidth(118))) int118;
typedef int __attribute__ ((bitwidth(119))) int119;
typedef int __attribute__ ((bitwidth(120))) int120;
typedef int __attribute__ ((bitwidth(121))) int121;
typedef int __attribute__ ((bitwidth(122))) int122;
typedef int __attribute__ ((bitwidth(123))) int123;
typedef int __attribute__ ((bitwidth(124))) int124;
typedef int __attribute__ ((bitwidth(125))) int125;
typedef int __attribute__ ((bitwidth(126))) int126;
typedef int __attribute__ ((bitwidth(127))) int127;
typedef int __attribute__ ((bitwidth(128))) int128;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int __attribute__ ((bitwidth(129))) int129;
typedef int __attribute__ ((bitwidth(130))) int130;
typedef int __attribute__ ((bitwidth(131))) int131;
typedef int __attribute__ ((bitwidth(132))) int132;
typedef int __attribute__ ((bitwidth(133))) int133;
typedef int __attribute__ ((bitwidth(134))) int134;
typedef int __attribute__ ((bitwidth(135))) int135;
typedef int __attribute__ ((bitwidth(136))) int136;
typedef int __attribute__ ((bitwidth(137))) int137;
typedef int __attribute__ ((bitwidth(138))) int138;
typedef int __attribute__ ((bitwidth(139))) int139;
typedef int __attribute__ ((bitwidth(140))) int140;
typedef int __attribute__ ((bitwidth(141))) int141;
typedef int __attribute__ ((bitwidth(142))) int142;
typedef int __attribute__ ((bitwidth(143))) int143;
typedef int __attribute__ ((bitwidth(144))) int144;
typedef int __attribute__ ((bitwidth(145))) int145;
typedef int __attribute__ ((bitwidth(146))) int146;
typedef int __attribute__ ((bitwidth(147))) int147;
typedef int __attribute__ ((bitwidth(148))) int148;
typedef int __attribute__ ((bitwidth(149))) int149;
typedef int __attribute__ ((bitwidth(150))) int150;
typedef int __attribute__ ((bitwidth(151))) int151;
typedef int __attribute__ ((bitwidth(152))) int152;
typedef int __attribute__ ((bitwidth(153))) int153;
typedef int __attribute__ ((bitwidth(154))) int154;
typedef int __attribute__ ((bitwidth(155))) int155;
typedef int __attribute__ ((bitwidth(156))) int156;
typedef int __attribute__ ((bitwidth(157))) int157;
typedef int __attribute__ ((bitwidth(158))) int158;
typedef int __attribute__ ((bitwidth(159))) int159;
typedef int __attribute__ ((bitwidth(160))) int160;
typedef int __attribute__ ((bitwidth(161))) int161;
typedef int __attribute__ ((bitwidth(162))) int162;
typedef int __attribute__ ((bitwidth(163))) int163;
typedef int __attribute__ ((bitwidth(164))) int164;
typedef int __attribute__ ((bitwidth(165))) int165;
typedef int __attribute__ ((bitwidth(166))) int166;
typedef int __attribute__ ((bitwidth(167))) int167;
typedef int __attribute__ ((bitwidth(168))) int168;
typedef int __attribute__ ((bitwidth(169))) int169;
typedef int __attribute__ ((bitwidth(170))) int170;
typedef int __attribute__ ((bitwidth(171))) int171;
typedef int __attribute__ ((bitwidth(172))) int172;
typedef int __attribute__ ((bitwidth(173))) int173;
typedef int __attribute__ ((bitwidth(174))) int174;
typedef int __attribute__ ((bitwidth(175))) int175;
typedef int __attribute__ ((bitwidth(176))) int176;
typedef int __attribute__ ((bitwidth(177))) int177;
typedef int __attribute__ ((bitwidth(178))) int178;
typedef int __attribute__ ((bitwidth(179))) int179;
typedef int __attribute__ ((bitwidth(180))) int180;
typedef int __attribute__ ((bitwidth(181))) int181;
typedef int __attribute__ ((bitwidth(182))) int182;
typedef int __attribute__ ((bitwidth(183))) int183;
typedef int __attribute__ ((bitwidth(184))) int184;
typedef int __attribute__ ((bitwidth(185))) int185;
typedef int __attribute__ ((bitwidth(186))) int186;
typedef int __attribute__ ((bitwidth(187))) int187;
typedef int __attribute__ ((bitwidth(188))) int188;
typedef int __attribute__ ((bitwidth(189))) int189;
typedef int __attribute__ ((bitwidth(190))) int190;
typedef int __attribute__ ((bitwidth(191))) int191;
typedef int __attribute__ ((bitwidth(192))) int192;
typedef int __attribute__ ((bitwidth(193))) int193;
typedef int __attribute__ ((bitwidth(194))) int194;
typedef int __attribute__ ((bitwidth(195))) int195;
typedef int __attribute__ ((bitwidth(196))) int196;
typedef int __attribute__ ((bitwidth(197))) int197;
typedef int __attribute__ ((bitwidth(198))) int198;
typedef int __attribute__ ((bitwidth(199))) int199;
typedef int __attribute__ ((bitwidth(200))) int200;
typedef int __attribute__ ((bitwidth(201))) int201;
typedef int __attribute__ ((bitwidth(202))) int202;
typedef int __attribute__ ((bitwidth(203))) int203;
typedef int __attribute__ ((bitwidth(204))) int204;
typedef int __attribute__ ((bitwidth(205))) int205;
typedef int __attribute__ ((bitwidth(206))) int206;
typedef int __attribute__ ((bitwidth(207))) int207;
typedef int __attribute__ ((bitwidth(208))) int208;
typedef int __attribute__ ((bitwidth(209))) int209;
typedef int __attribute__ ((bitwidth(210))) int210;
typedef int __attribute__ ((bitwidth(211))) int211;
typedef int __attribute__ ((bitwidth(212))) int212;
typedef int __attribute__ ((bitwidth(213))) int213;
typedef int __attribute__ ((bitwidth(214))) int214;
typedef int __attribute__ ((bitwidth(215))) int215;
typedef int __attribute__ ((bitwidth(216))) int216;
typedef int __attribute__ ((bitwidth(217))) int217;
typedef int __attribute__ ((bitwidth(218))) int218;
typedef int __attribute__ ((bitwidth(219))) int219;
typedef int __attribute__ ((bitwidth(220))) int220;
typedef int __attribute__ ((bitwidth(221))) int221;
typedef int __attribute__ ((bitwidth(222))) int222;
typedef int __attribute__ ((bitwidth(223))) int223;
typedef int __attribute__ ((bitwidth(224))) int224;
typedef int __attribute__ ((bitwidth(225))) int225;
typedef int __attribute__ ((bitwidth(226))) int226;
typedef int __attribute__ ((bitwidth(227))) int227;
typedef int __attribute__ ((bitwidth(228))) int228;
typedef int __attribute__ ((bitwidth(229))) int229;
typedef int __attribute__ ((bitwidth(230))) int230;
typedef int __attribute__ ((bitwidth(231))) int231;
typedef int __attribute__ ((bitwidth(232))) int232;
typedef int __attribute__ ((bitwidth(233))) int233;
typedef int __attribute__ ((bitwidth(234))) int234;
typedef int __attribute__ ((bitwidth(235))) int235;
typedef int __attribute__ ((bitwidth(236))) int236;
typedef int __attribute__ ((bitwidth(237))) int237;
typedef int __attribute__ ((bitwidth(238))) int238;
typedef int __attribute__ ((bitwidth(239))) int239;
typedef int __attribute__ ((bitwidth(240))) int240;
typedef int __attribute__ ((bitwidth(241))) int241;
typedef int __attribute__ ((bitwidth(242))) int242;
typedef int __attribute__ ((bitwidth(243))) int243;
typedef int __attribute__ ((bitwidth(244))) int244;
typedef int __attribute__ ((bitwidth(245))) int245;
typedef int __attribute__ ((bitwidth(246))) int246;
typedef int __attribute__ ((bitwidth(247))) int247;
typedef int __attribute__ ((bitwidth(248))) int248;
typedef int __attribute__ ((bitwidth(249))) int249;
typedef int __attribute__ ((bitwidth(250))) int250;
typedef int __attribute__ ((bitwidth(251))) int251;
typedef int __attribute__ ((bitwidth(252))) int252;
typedef int __attribute__ ((bitwidth(253))) int253;
typedef int __attribute__ ((bitwidth(254))) int254;
typedef int __attribute__ ((bitwidth(255))) int255;
typedef int __attribute__ ((bitwidth(256))) int256;
typedef int __attribute__ ((bitwidth(257))) int257;
typedef int __attribute__ ((bitwidth(258))) int258;
typedef int __attribute__ ((bitwidth(259))) int259;
typedef int __attribute__ ((bitwidth(260))) int260;
typedef int __attribute__ ((bitwidth(261))) int261;
typedef int __attribute__ ((bitwidth(262))) int262;
typedef int __attribute__ ((bitwidth(263))) int263;
typedef int __attribute__ ((bitwidth(264))) int264;
typedef int __attribute__ ((bitwidth(265))) int265;
typedef int __attribute__ ((bitwidth(266))) int266;
typedef int __attribute__ ((bitwidth(267))) int267;
typedef int __attribute__ ((bitwidth(268))) int268;
typedef int __attribute__ ((bitwidth(269))) int269;
typedef int __attribute__ ((bitwidth(270))) int270;
typedef int __attribute__ ((bitwidth(271))) int271;
typedef int __attribute__ ((bitwidth(272))) int272;
typedef int __attribute__ ((bitwidth(273))) int273;
typedef int __attribute__ ((bitwidth(274))) int274;
typedef int __attribute__ ((bitwidth(275))) int275;
typedef int __attribute__ ((bitwidth(276))) int276;
typedef int __attribute__ ((bitwidth(277))) int277;
typedef int __attribute__ ((bitwidth(278))) int278;
typedef int __attribute__ ((bitwidth(279))) int279;
typedef int __attribute__ ((bitwidth(280))) int280;
typedef int __attribute__ ((bitwidth(281))) int281;
typedef int __attribute__ ((bitwidth(282))) int282;
typedef int __attribute__ ((bitwidth(283))) int283;
typedef int __attribute__ ((bitwidth(284))) int284;
typedef int __attribute__ ((bitwidth(285))) int285;
typedef int __attribute__ ((bitwidth(286))) int286;
typedef int __attribute__ ((bitwidth(287))) int287;
typedef int __attribute__ ((bitwidth(288))) int288;
typedef int __attribute__ ((bitwidth(289))) int289;
typedef int __attribute__ ((bitwidth(290))) int290;
typedef int __attribute__ ((bitwidth(291))) int291;
typedef int __attribute__ ((bitwidth(292))) int292;
typedef int __attribute__ ((bitwidth(293))) int293;
typedef int __attribute__ ((bitwidth(294))) int294;
typedef int __attribute__ ((bitwidth(295))) int295;
typedef int __attribute__ ((bitwidth(296))) int296;
typedef int __attribute__ ((bitwidth(297))) int297;
typedef int __attribute__ ((bitwidth(298))) int298;
typedef int __attribute__ ((bitwidth(299))) int299;
typedef int __attribute__ ((bitwidth(300))) int300;
typedef int __attribute__ ((bitwidth(301))) int301;
typedef int __attribute__ ((bitwidth(302))) int302;
typedef int __attribute__ ((bitwidth(303))) int303;
typedef int __attribute__ ((bitwidth(304))) int304;
typedef int __attribute__ ((bitwidth(305))) int305;
typedef int __attribute__ ((bitwidth(306))) int306;
typedef int __attribute__ ((bitwidth(307))) int307;
typedef int __attribute__ ((bitwidth(308))) int308;
typedef int __attribute__ ((bitwidth(309))) int309;
typedef int __attribute__ ((bitwidth(310))) int310;
typedef int __attribute__ ((bitwidth(311))) int311;
typedef int __attribute__ ((bitwidth(312))) int312;
typedef int __attribute__ ((bitwidth(313))) int313;
typedef int __attribute__ ((bitwidth(314))) int314;
typedef int __attribute__ ((bitwidth(315))) int315;
typedef int __attribute__ ((bitwidth(316))) int316;
typedef int __attribute__ ((bitwidth(317))) int317;
typedef int __attribute__ ((bitwidth(318))) int318;
typedef int __attribute__ ((bitwidth(319))) int319;
typedef int __attribute__ ((bitwidth(320))) int320;
typedef int __attribute__ ((bitwidth(321))) int321;
typedef int __attribute__ ((bitwidth(322))) int322;
typedef int __attribute__ ((bitwidth(323))) int323;
typedef int __attribute__ ((bitwidth(324))) int324;
typedef int __attribute__ ((bitwidth(325))) int325;
typedef int __attribute__ ((bitwidth(326))) int326;
typedef int __attribute__ ((bitwidth(327))) int327;
typedef int __attribute__ ((bitwidth(328))) int328;
typedef int __attribute__ ((bitwidth(329))) int329;
typedef int __attribute__ ((bitwidth(330))) int330;
typedef int __attribute__ ((bitwidth(331))) int331;
typedef int __attribute__ ((bitwidth(332))) int332;
typedef int __attribute__ ((bitwidth(333))) int333;
typedef int __attribute__ ((bitwidth(334))) int334;
typedef int __attribute__ ((bitwidth(335))) int335;
typedef int __attribute__ ((bitwidth(336))) int336;
typedef int __attribute__ ((bitwidth(337))) int337;
typedef int __attribute__ ((bitwidth(338))) int338;
typedef int __attribute__ ((bitwidth(339))) int339;
typedef int __attribute__ ((bitwidth(340))) int340;
typedef int __attribute__ ((bitwidth(341))) int341;
typedef int __attribute__ ((bitwidth(342))) int342;
typedef int __attribute__ ((bitwidth(343))) int343;
typedef int __attribute__ ((bitwidth(344))) int344;
typedef int __attribute__ ((bitwidth(345))) int345;
typedef int __attribute__ ((bitwidth(346))) int346;
typedef int __attribute__ ((bitwidth(347))) int347;
typedef int __attribute__ ((bitwidth(348))) int348;
typedef int __attribute__ ((bitwidth(349))) int349;
typedef int __attribute__ ((bitwidth(350))) int350;
typedef int __attribute__ ((bitwidth(351))) int351;
typedef int __attribute__ ((bitwidth(352))) int352;
typedef int __attribute__ ((bitwidth(353))) int353;
typedef int __attribute__ ((bitwidth(354))) int354;
typedef int __attribute__ ((bitwidth(355))) int355;
typedef int __attribute__ ((bitwidth(356))) int356;
typedef int __attribute__ ((bitwidth(357))) int357;
typedef int __attribute__ ((bitwidth(358))) int358;
typedef int __attribute__ ((bitwidth(359))) int359;
typedef int __attribute__ ((bitwidth(360))) int360;
typedef int __attribute__ ((bitwidth(361))) int361;
typedef int __attribute__ ((bitwidth(362))) int362;
typedef int __attribute__ ((bitwidth(363))) int363;
typedef int __attribute__ ((bitwidth(364))) int364;
typedef int __attribute__ ((bitwidth(365))) int365;
typedef int __attribute__ ((bitwidth(366))) int366;
typedef int __attribute__ ((bitwidth(367))) int367;
typedef int __attribute__ ((bitwidth(368))) int368;
typedef int __attribute__ ((bitwidth(369))) int369;
typedef int __attribute__ ((bitwidth(370))) int370;
typedef int __attribute__ ((bitwidth(371))) int371;
typedef int __attribute__ ((bitwidth(372))) int372;
typedef int __attribute__ ((bitwidth(373))) int373;
typedef int __attribute__ ((bitwidth(374))) int374;
typedef int __attribute__ ((bitwidth(375))) int375;
typedef int __attribute__ ((bitwidth(376))) int376;
typedef int __attribute__ ((bitwidth(377))) int377;
typedef int __attribute__ ((bitwidth(378))) int378;
typedef int __attribute__ ((bitwidth(379))) int379;
typedef int __attribute__ ((bitwidth(380))) int380;
typedef int __attribute__ ((bitwidth(381))) int381;
typedef int __attribute__ ((bitwidth(382))) int382;
typedef int __attribute__ ((bitwidth(383))) int383;
typedef int __attribute__ ((bitwidth(384))) int384;
typedef int __attribute__ ((bitwidth(385))) int385;
typedef int __attribute__ ((bitwidth(386))) int386;
typedef int __attribute__ ((bitwidth(387))) int387;
typedef int __attribute__ ((bitwidth(388))) int388;
typedef int __attribute__ ((bitwidth(389))) int389;
typedef int __attribute__ ((bitwidth(390))) int390;
typedef int __attribute__ ((bitwidth(391))) int391;
typedef int __attribute__ ((bitwidth(392))) int392;
typedef int __attribute__ ((bitwidth(393))) int393;
typedef int __attribute__ ((bitwidth(394))) int394;
typedef int __attribute__ ((bitwidth(395))) int395;
typedef int __attribute__ ((bitwidth(396))) int396;
typedef int __attribute__ ((bitwidth(397))) int397;
typedef int __attribute__ ((bitwidth(398))) int398;
typedef int __attribute__ ((bitwidth(399))) int399;
typedef int __attribute__ ((bitwidth(400))) int400;
typedef int __attribute__ ((bitwidth(401))) int401;
typedef int __attribute__ ((bitwidth(402))) int402;
typedef int __attribute__ ((bitwidth(403))) int403;
typedef int __attribute__ ((bitwidth(404))) int404;
typedef int __attribute__ ((bitwidth(405))) int405;
typedef int __attribute__ ((bitwidth(406))) int406;
typedef int __attribute__ ((bitwidth(407))) int407;
typedef int __attribute__ ((bitwidth(408))) int408;
typedef int __attribute__ ((bitwidth(409))) int409;
typedef int __attribute__ ((bitwidth(410))) int410;
typedef int __attribute__ ((bitwidth(411))) int411;
typedef int __attribute__ ((bitwidth(412))) int412;
typedef int __attribute__ ((bitwidth(413))) int413;
typedef int __attribute__ ((bitwidth(414))) int414;
typedef int __attribute__ ((bitwidth(415))) int415;
typedef int __attribute__ ((bitwidth(416))) int416;
typedef int __attribute__ ((bitwidth(417))) int417;
typedef int __attribute__ ((bitwidth(418))) int418;
typedef int __attribute__ ((bitwidth(419))) int419;
typedef int __attribute__ ((bitwidth(420))) int420;
typedef int __attribute__ ((bitwidth(421))) int421;
typedef int __attribute__ ((bitwidth(422))) int422;
typedef int __attribute__ ((bitwidth(423))) int423;
typedef int __attribute__ ((bitwidth(424))) int424;
typedef int __attribute__ ((bitwidth(425))) int425;
typedef int __attribute__ ((bitwidth(426))) int426;
typedef int __attribute__ ((bitwidth(427))) int427;
typedef int __attribute__ ((bitwidth(428))) int428;
typedef int __attribute__ ((bitwidth(429))) int429;
typedef int __attribute__ ((bitwidth(430))) int430;
typedef int __attribute__ ((bitwidth(431))) int431;
typedef int __attribute__ ((bitwidth(432))) int432;
typedef int __attribute__ ((bitwidth(433))) int433;
typedef int __attribute__ ((bitwidth(434))) int434;
typedef int __attribute__ ((bitwidth(435))) int435;
typedef int __attribute__ ((bitwidth(436))) int436;
typedef int __attribute__ ((bitwidth(437))) int437;
typedef int __attribute__ ((bitwidth(438))) int438;
typedef int __attribute__ ((bitwidth(439))) int439;
typedef int __attribute__ ((bitwidth(440))) int440;
typedef int __attribute__ ((bitwidth(441))) int441;
typedef int __attribute__ ((bitwidth(442))) int442;
typedef int __attribute__ ((bitwidth(443))) int443;
typedef int __attribute__ ((bitwidth(444))) int444;
typedef int __attribute__ ((bitwidth(445))) int445;
typedef int __attribute__ ((bitwidth(446))) int446;
typedef int __attribute__ ((bitwidth(447))) int447;
typedef int __attribute__ ((bitwidth(448))) int448;
typedef int __attribute__ ((bitwidth(449))) int449;
typedef int __attribute__ ((bitwidth(450))) int450;
typedef int __attribute__ ((bitwidth(451))) int451;
typedef int __attribute__ ((bitwidth(452))) int452;
typedef int __attribute__ ((bitwidth(453))) int453;
typedef int __attribute__ ((bitwidth(454))) int454;
typedef int __attribute__ ((bitwidth(455))) int455;
typedef int __attribute__ ((bitwidth(456))) int456;
typedef int __attribute__ ((bitwidth(457))) int457;
typedef int __attribute__ ((bitwidth(458))) int458;
typedef int __attribute__ ((bitwidth(459))) int459;
typedef int __attribute__ ((bitwidth(460))) int460;
typedef int __attribute__ ((bitwidth(461))) int461;
typedef int __attribute__ ((bitwidth(462))) int462;
typedef int __attribute__ ((bitwidth(463))) int463;
typedef int __attribute__ ((bitwidth(464))) int464;
typedef int __attribute__ ((bitwidth(465))) int465;
typedef int __attribute__ ((bitwidth(466))) int466;
typedef int __attribute__ ((bitwidth(467))) int467;
typedef int __attribute__ ((bitwidth(468))) int468;
typedef int __attribute__ ((bitwidth(469))) int469;
typedef int __attribute__ ((bitwidth(470))) int470;
typedef int __attribute__ ((bitwidth(471))) int471;
typedef int __attribute__ ((bitwidth(472))) int472;
typedef int __attribute__ ((bitwidth(473))) int473;
typedef int __attribute__ ((bitwidth(474))) int474;
typedef int __attribute__ ((bitwidth(475))) int475;
typedef int __attribute__ ((bitwidth(476))) int476;
typedef int __attribute__ ((bitwidth(477))) int477;
typedef int __attribute__ ((bitwidth(478))) int478;
typedef int __attribute__ ((bitwidth(479))) int479;
typedef int __attribute__ ((bitwidth(480))) int480;
typedef int __attribute__ ((bitwidth(481))) int481;
typedef int __attribute__ ((bitwidth(482))) int482;
typedef int __attribute__ ((bitwidth(483))) int483;
typedef int __attribute__ ((bitwidth(484))) int484;
typedef int __attribute__ ((bitwidth(485))) int485;
typedef int __attribute__ ((bitwidth(486))) int486;
typedef int __attribute__ ((bitwidth(487))) int487;
typedef int __attribute__ ((bitwidth(488))) int488;
typedef int __attribute__ ((bitwidth(489))) int489;
typedef int __attribute__ ((bitwidth(490))) int490;
typedef int __attribute__ ((bitwidth(491))) int491;
typedef int __attribute__ ((bitwidth(492))) int492;
typedef int __attribute__ ((bitwidth(493))) int493;
typedef int __attribute__ ((bitwidth(494))) int494;
typedef int __attribute__ ((bitwidth(495))) int495;
typedef int __attribute__ ((bitwidth(496))) int496;
typedef int __attribute__ ((bitwidth(497))) int497;
typedef int __attribute__ ((bitwidth(498))) int498;
typedef int __attribute__ ((bitwidth(499))) int499;
typedef int __attribute__ ((bitwidth(500))) int500;
typedef int __attribute__ ((bitwidth(501))) int501;
typedef int __attribute__ ((bitwidth(502))) int502;
typedef int __attribute__ ((bitwidth(503))) int503;
typedef int __attribute__ ((bitwidth(504))) int504;
typedef int __attribute__ ((bitwidth(505))) int505;
typedef int __attribute__ ((bitwidth(506))) int506;
typedef int __attribute__ ((bitwidth(507))) int507;
typedef int __attribute__ ((bitwidth(508))) int508;
typedef int __attribute__ ((bitwidth(509))) int509;
typedef int __attribute__ ((bitwidth(510))) int510;
typedef int __attribute__ ((bitwidth(511))) int511;
typedef int __attribute__ ((bitwidth(512))) int512;
typedef int __attribute__ ((bitwidth(513))) int513;
typedef int __attribute__ ((bitwidth(514))) int514;
typedef int __attribute__ ((bitwidth(515))) int515;
typedef int __attribute__ ((bitwidth(516))) int516;
typedef int __attribute__ ((bitwidth(517))) int517;
typedef int __attribute__ ((bitwidth(518))) int518;
typedef int __attribute__ ((bitwidth(519))) int519;
typedef int __attribute__ ((bitwidth(520))) int520;
typedef int __attribute__ ((bitwidth(521))) int521;
typedef int __attribute__ ((bitwidth(522))) int522;
typedef int __attribute__ ((bitwidth(523))) int523;
typedef int __attribute__ ((bitwidth(524))) int524;
typedef int __attribute__ ((bitwidth(525))) int525;
typedef int __attribute__ ((bitwidth(526))) int526;
typedef int __attribute__ ((bitwidth(527))) int527;
typedef int __attribute__ ((bitwidth(528))) int528;
typedef int __attribute__ ((bitwidth(529))) int529;
typedef int __attribute__ ((bitwidth(530))) int530;
typedef int __attribute__ ((bitwidth(531))) int531;
typedef int __attribute__ ((bitwidth(532))) int532;
typedef int __attribute__ ((bitwidth(533))) int533;
typedef int __attribute__ ((bitwidth(534))) int534;
typedef int __attribute__ ((bitwidth(535))) int535;
typedef int __attribute__ ((bitwidth(536))) int536;
typedef int __attribute__ ((bitwidth(537))) int537;
typedef int __attribute__ ((bitwidth(538))) int538;
typedef int __attribute__ ((bitwidth(539))) int539;
typedef int __attribute__ ((bitwidth(540))) int540;
typedef int __attribute__ ((bitwidth(541))) int541;
typedef int __attribute__ ((bitwidth(542))) int542;
typedef int __attribute__ ((bitwidth(543))) int543;
typedef int __attribute__ ((bitwidth(544))) int544;
typedef int __attribute__ ((bitwidth(545))) int545;
typedef int __attribute__ ((bitwidth(546))) int546;
typedef int __attribute__ ((bitwidth(547))) int547;
typedef int __attribute__ ((bitwidth(548))) int548;
typedef int __attribute__ ((bitwidth(549))) int549;
typedef int __attribute__ ((bitwidth(550))) int550;
typedef int __attribute__ ((bitwidth(551))) int551;
typedef int __attribute__ ((bitwidth(552))) int552;
typedef int __attribute__ ((bitwidth(553))) int553;
typedef int __attribute__ ((bitwidth(554))) int554;
typedef int __attribute__ ((bitwidth(555))) int555;
typedef int __attribute__ ((bitwidth(556))) int556;
typedef int __attribute__ ((bitwidth(557))) int557;
typedef int __attribute__ ((bitwidth(558))) int558;
typedef int __attribute__ ((bitwidth(559))) int559;
typedef int __attribute__ ((bitwidth(560))) int560;
typedef int __attribute__ ((bitwidth(561))) int561;
typedef int __attribute__ ((bitwidth(562))) int562;
typedef int __attribute__ ((bitwidth(563))) int563;
typedef int __attribute__ ((bitwidth(564))) int564;
typedef int __attribute__ ((bitwidth(565))) int565;
typedef int __attribute__ ((bitwidth(566))) int566;
typedef int __attribute__ ((bitwidth(567))) int567;
typedef int __attribute__ ((bitwidth(568))) int568;
typedef int __attribute__ ((bitwidth(569))) int569;
typedef int __attribute__ ((bitwidth(570))) int570;
typedef int __attribute__ ((bitwidth(571))) int571;
typedef int __attribute__ ((bitwidth(572))) int572;
typedef int __attribute__ ((bitwidth(573))) int573;
typedef int __attribute__ ((bitwidth(574))) int574;
typedef int __attribute__ ((bitwidth(575))) int575;
typedef int __attribute__ ((bitwidth(576))) int576;
typedef int __attribute__ ((bitwidth(577))) int577;
typedef int __attribute__ ((bitwidth(578))) int578;
typedef int __attribute__ ((bitwidth(579))) int579;
typedef int __attribute__ ((bitwidth(580))) int580;
typedef int __attribute__ ((bitwidth(581))) int581;
typedef int __attribute__ ((bitwidth(582))) int582;
typedef int __attribute__ ((bitwidth(583))) int583;
typedef int __attribute__ ((bitwidth(584))) int584;
typedef int __attribute__ ((bitwidth(585))) int585;
typedef int __attribute__ ((bitwidth(586))) int586;
typedef int __attribute__ ((bitwidth(587))) int587;
typedef int __attribute__ ((bitwidth(588))) int588;
typedef int __attribute__ ((bitwidth(589))) int589;
typedef int __attribute__ ((bitwidth(590))) int590;
typedef int __attribute__ ((bitwidth(591))) int591;
typedef int __attribute__ ((bitwidth(592))) int592;
typedef int __attribute__ ((bitwidth(593))) int593;
typedef int __attribute__ ((bitwidth(594))) int594;
typedef int __attribute__ ((bitwidth(595))) int595;
typedef int __attribute__ ((bitwidth(596))) int596;
typedef int __attribute__ ((bitwidth(597))) int597;
typedef int __attribute__ ((bitwidth(598))) int598;
typedef int __attribute__ ((bitwidth(599))) int599;
typedef int __attribute__ ((bitwidth(600))) int600;
typedef int __attribute__ ((bitwidth(601))) int601;
typedef int __attribute__ ((bitwidth(602))) int602;
typedef int __attribute__ ((bitwidth(603))) int603;
typedef int __attribute__ ((bitwidth(604))) int604;
typedef int __attribute__ ((bitwidth(605))) int605;
typedef int __attribute__ ((bitwidth(606))) int606;
typedef int __attribute__ ((bitwidth(607))) int607;
typedef int __attribute__ ((bitwidth(608))) int608;
typedef int __attribute__ ((bitwidth(609))) int609;
typedef int __attribute__ ((bitwidth(610))) int610;
typedef int __attribute__ ((bitwidth(611))) int611;
typedef int __attribute__ ((bitwidth(612))) int612;
typedef int __attribute__ ((bitwidth(613))) int613;
typedef int __attribute__ ((bitwidth(614))) int614;
typedef int __attribute__ ((bitwidth(615))) int615;
typedef int __attribute__ ((bitwidth(616))) int616;
typedef int __attribute__ ((bitwidth(617))) int617;
typedef int __attribute__ ((bitwidth(618))) int618;
typedef int __attribute__ ((bitwidth(619))) int619;
typedef int __attribute__ ((bitwidth(620))) int620;
typedef int __attribute__ ((bitwidth(621))) int621;
typedef int __attribute__ ((bitwidth(622))) int622;
typedef int __attribute__ ((bitwidth(623))) int623;
typedef int __attribute__ ((bitwidth(624))) int624;
typedef int __attribute__ ((bitwidth(625))) int625;
typedef int __attribute__ ((bitwidth(626))) int626;
typedef int __attribute__ ((bitwidth(627))) int627;
typedef int __attribute__ ((bitwidth(628))) int628;
typedef int __attribute__ ((bitwidth(629))) int629;
typedef int __attribute__ ((bitwidth(630))) int630;
typedef int __attribute__ ((bitwidth(631))) int631;
typedef int __attribute__ ((bitwidth(632))) int632;
typedef int __attribute__ ((bitwidth(633))) int633;
typedef int __attribute__ ((bitwidth(634))) int634;
typedef int __attribute__ ((bitwidth(635))) int635;
typedef int __attribute__ ((bitwidth(636))) int636;
typedef int __attribute__ ((bitwidth(637))) int637;
typedef int __attribute__ ((bitwidth(638))) int638;
typedef int __attribute__ ((bitwidth(639))) int639;
typedef int __attribute__ ((bitwidth(640))) int640;
typedef int __attribute__ ((bitwidth(641))) int641;
typedef int __attribute__ ((bitwidth(642))) int642;
typedef int __attribute__ ((bitwidth(643))) int643;
typedef int __attribute__ ((bitwidth(644))) int644;
typedef int __attribute__ ((bitwidth(645))) int645;
typedef int __attribute__ ((bitwidth(646))) int646;
typedef int __attribute__ ((bitwidth(647))) int647;
typedef int __attribute__ ((bitwidth(648))) int648;
typedef int __attribute__ ((bitwidth(649))) int649;
typedef int __attribute__ ((bitwidth(650))) int650;
typedef int __attribute__ ((bitwidth(651))) int651;
typedef int __attribute__ ((bitwidth(652))) int652;
typedef int __attribute__ ((bitwidth(653))) int653;
typedef int __attribute__ ((bitwidth(654))) int654;
typedef int __attribute__ ((bitwidth(655))) int655;
typedef int __attribute__ ((bitwidth(656))) int656;
typedef int __attribute__ ((bitwidth(657))) int657;
typedef int __attribute__ ((bitwidth(658))) int658;
typedef int __attribute__ ((bitwidth(659))) int659;
typedef int __attribute__ ((bitwidth(660))) int660;
typedef int __attribute__ ((bitwidth(661))) int661;
typedef int __attribute__ ((bitwidth(662))) int662;
typedef int __attribute__ ((bitwidth(663))) int663;
typedef int __attribute__ ((bitwidth(664))) int664;
typedef int __attribute__ ((bitwidth(665))) int665;
typedef int __attribute__ ((bitwidth(666))) int666;
typedef int __attribute__ ((bitwidth(667))) int667;
typedef int __attribute__ ((bitwidth(668))) int668;
typedef int __attribute__ ((bitwidth(669))) int669;
typedef int __attribute__ ((bitwidth(670))) int670;
typedef int __attribute__ ((bitwidth(671))) int671;
typedef int __attribute__ ((bitwidth(672))) int672;
typedef int __attribute__ ((bitwidth(673))) int673;
typedef int __attribute__ ((bitwidth(674))) int674;
typedef int __attribute__ ((bitwidth(675))) int675;
typedef int __attribute__ ((bitwidth(676))) int676;
typedef int __attribute__ ((bitwidth(677))) int677;
typedef int __attribute__ ((bitwidth(678))) int678;
typedef int __attribute__ ((bitwidth(679))) int679;
typedef int __attribute__ ((bitwidth(680))) int680;
typedef int __attribute__ ((bitwidth(681))) int681;
typedef int __attribute__ ((bitwidth(682))) int682;
typedef int __attribute__ ((bitwidth(683))) int683;
typedef int __attribute__ ((bitwidth(684))) int684;
typedef int __attribute__ ((bitwidth(685))) int685;
typedef int __attribute__ ((bitwidth(686))) int686;
typedef int __attribute__ ((bitwidth(687))) int687;
typedef int __attribute__ ((bitwidth(688))) int688;
typedef int __attribute__ ((bitwidth(689))) int689;
typedef int __attribute__ ((bitwidth(690))) int690;
typedef int __attribute__ ((bitwidth(691))) int691;
typedef int __attribute__ ((bitwidth(692))) int692;
typedef int __attribute__ ((bitwidth(693))) int693;
typedef int __attribute__ ((bitwidth(694))) int694;
typedef int __attribute__ ((bitwidth(695))) int695;
typedef int __attribute__ ((bitwidth(696))) int696;
typedef int __attribute__ ((bitwidth(697))) int697;
typedef int __attribute__ ((bitwidth(698))) int698;
typedef int __attribute__ ((bitwidth(699))) int699;
typedef int __attribute__ ((bitwidth(700))) int700;
typedef int __attribute__ ((bitwidth(701))) int701;
typedef int __attribute__ ((bitwidth(702))) int702;
typedef int __attribute__ ((bitwidth(703))) int703;
typedef int __attribute__ ((bitwidth(704))) int704;
typedef int __attribute__ ((bitwidth(705))) int705;
typedef int __attribute__ ((bitwidth(706))) int706;
typedef int __attribute__ ((bitwidth(707))) int707;
typedef int __attribute__ ((bitwidth(708))) int708;
typedef int __attribute__ ((bitwidth(709))) int709;
typedef int __attribute__ ((bitwidth(710))) int710;
typedef int __attribute__ ((bitwidth(711))) int711;
typedef int __attribute__ ((bitwidth(712))) int712;
typedef int __attribute__ ((bitwidth(713))) int713;
typedef int __attribute__ ((bitwidth(714))) int714;
typedef int __attribute__ ((bitwidth(715))) int715;
typedef int __attribute__ ((bitwidth(716))) int716;
typedef int __attribute__ ((bitwidth(717))) int717;
typedef int __attribute__ ((bitwidth(718))) int718;
typedef int __attribute__ ((bitwidth(719))) int719;
typedef int __attribute__ ((bitwidth(720))) int720;
typedef int __attribute__ ((bitwidth(721))) int721;
typedef int __attribute__ ((bitwidth(722))) int722;
typedef int __attribute__ ((bitwidth(723))) int723;
typedef int __attribute__ ((bitwidth(724))) int724;
typedef int __attribute__ ((bitwidth(725))) int725;
typedef int __attribute__ ((bitwidth(726))) int726;
typedef int __attribute__ ((bitwidth(727))) int727;
typedef int __attribute__ ((bitwidth(728))) int728;
typedef int __attribute__ ((bitwidth(729))) int729;
typedef int __attribute__ ((bitwidth(730))) int730;
typedef int __attribute__ ((bitwidth(731))) int731;
typedef int __attribute__ ((bitwidth(732))) int732;
typedef int __attribute__ ((bitwidth(733))) int733;
typedef int __attribute__ ((bitwidth(734))) int734;
typedef int __attribute__ ((bitwidth(735))) int735;
typedef int __attribute__ ((bitwidth(736))) int736;
typedef int __attribute__ ((bitwidth(737))) int737;
typedef int __attribute__ ((bitwidth(738))) int738;
typedef int __attribute__ ((bitwidth(739))) int739;
typedef int __attribute__ ((bitwidth(740))) int740;
typedef int __attribute__ ((bitwidth(741))) int741;
typedef int __attribute__ ((bitwidth(742))) int742;
typedef int __attribute__ ((bitwidth(743))) int743;
typedef int __attribute__ ((bitwidth(744))) int744;
typedef int __attribute__ ((bitwidth(745))) int745;
typedef int __attribute__ ((bitwidth(746))) int746;
typedef int __attribute__ ((bitwidth(747))) int747;
typedef int __attribute__ ((bitwidth(748))) int748;
typedef int __attribute__ ((bitwidth(749))) int749;
typedef int __attribute__ ((bitwidth(750))) int750;
typedef int __attribute__ ((bitwidth(751))) int751;
typedef int __attribute__ ((bitwidth(752))) int752;
typedef int __attribute__ ((bitwidth(753))) int753;
typedef int __attribute__ ((bitwidth(754))) int754;
typedef int __attribute__ ((bitwidth(755))) int755;
typedef int __attribute__ ((bitwidth(756))) int756;
typedef int __attribute__ ((bitwidth(757))) int757;
typedef int __attribute__ ((bitwidth(758))) int758;
typedef int __attribute__ ((bitwidth(759))) int759;
typedef int __attribute__ ((bitwidth(760))) int760;
typedef int __attribute__ ((bitwidth(761))) int761;
typedef int __attribute__ ((bitwidth(762))) int762;
typedef int __attribute__ ((bitwidth(763))) int763;
typedef int __attribute__ ((bitwidth(764))) int764;
typedef int __attribute__ ((bitwidth(765))) int765;
typedef int __attribute__ ((bitwidth(766))) int766;
typedef int __attribute__ ((bitwidth(767))) int767;
typedef int __attribute__ ((bitwidth(768))) int768;
typedef int __attribute__ ((bitwidth(769))) int769;
typedef int __attribute__ ((bitwidth(770))) int770;
typedef int __attribute__ ((bitwidth(771))) int771;
typedef int __attribute__ ((bitwidth(772))) int772;
typedef int __attribute__ ((bitwidth(773))) int773;
typedef int __attribute__ ((bitwidth(774))) int774;
typedef int __attribute__ ((bitwidth(775))) int775;
typedef int __attribute__ ((bitwidth(776))) int776;
typedef int __attribute__ ((bitwidth(777))) int777;
typedef int __attribute__ ((bitwidth(778))) int778;
typedef int __attribute__ ((bitwidth(779))) int779;
typedef int __attribute__ ((bitwidth(780))) int780;
typedef int __attribute__ ((bitwidth(781))) int781;
typedef int __attribute__ ((bitwidth(782))) int782;
typedef int __attribute__ ((bitwidth(783))) int783;
typedef int __attribute__ ((bitwidth(784))) int784;
typedef int __attribute__ ((bitwidth(785))) int785;
typedef int __attribute__ ((bitwidth(786))) int786;
typedef int __attribute__ ((bitwidth(787))) int787;
typedef int __attribute__ ((bitwidth(788))) int788;
typedef int __attribute__ ((bitwidth(789))) int789;
typedef int __attribute__ ((bitwidth(790))) int790;
typedef int __attribute__ ((bitwidth(791))) int791;
typedef int __attribute__ ((bitwidth(792))) int792;
typedef int __attribute__ ((bitwidth(793))) int793;
typedef int __attribute__ ((bitwidth(794))) int794;
typedef int __attribute__ ((bitwidth(795))) int795;
typedef int __attribute__ ((bitwidth(796))) int796;
typedef int __attribute__ ((bitwidth(797))) int797;
typedef int __attribute__ ((bitwidth(798))) int798;
typedef int __attribute__ ((bitwidth(799))) int799;
typedef int __attribute__ ((bitwidth(800))) int800;
typedef int __attribute__ ((bitwidth(801))) int801;
typedef int __attribute__ ((bitwidth(802))) int802;
typedef int __attribute__ ((bitwidth(803))) int803;
typedef int __attribute__ ((bitwidth(804))) int804;
typedef int __attribute__ ((bitwidth(805))) int805;
typedef int __attribute__ ((bitwidth(806))) int806;
typedef int __attribute__ ((bitwidth(807))) int807;
typedef int __attribute__ ((bitwidth(808))) int808;
typedef int __attribute__ ((bitwidth(809))) int809;
typedef int __attribute__ ((bitwidth(810))) int810;
typedef int __attribute__ ((bitwidth(811))) int811;
typedef int __attribute__ ((bitwidth(812))) int812;
typedef int __attribute__ ((bitwidth(813))) int813;
typedef int __attribute__ ((bitwidth(814))) int814;
typedef int __attribute__ ((bitwidth(815))) int815;
typedef int __attribute__ ((bitwidth(816))) int816;
typedef int __attribute__ ((bitwidth(817))) int817;
typedef int __attribute__ ((bitwidth(818))) int818;
typedef int __attribute__ ((bitwidth(819))) int819;
typedef int __attribute__ ((bitwidth(820))) int820;
typedef int __attribute__ ((bitwidth(821))) int821;
typedef int __attribute__ ((bitwidth(822))) int822;
typedef int __attribute__ ((bitwidth(823))) int823;
typedef int __attribute__ ((bitwidth(824))) int824;
typedef int __attribute__ ((bitwidth(825))) int825;
typedef int __attribute__ ((bitwidth(826))) int826;
typedef int __attribute__ ((bitwidth(827))) int827;
typedef int __attribute__ ((bitwidth(828))) int828;
typedef int __attribute__ ((bitwidth(829))) int829;
typedef int __attribute__ ((bitwidth(830))) int830;
typedef int __attribute__ ((bitwidth(831))) int831;
typedef int __attribute__ ((bitwidth(832))) int832;
typedef int __attribute__ ((bitwidth(833))) int833;
typedef int __attribute__ ((bitwidth(834))) int834;
typedef int __attribute__ ((bitwidth(835))) int835;
typedef int __attribute__ ((bitwidth(836))) int836;
typedef int __attribute__ ((bitwidth(837))) int837;
typedef int __attribute__ ((bitwidth(838))) int838;
typedef int __attribute__ ((bitwidth(839))) int839;
typedef int __attribute__ ((bitwidth(840))) int840;
typedef int __attribute__ ((bitwidth(841))) int841;
typedef int __attribute__ ((bitwidth(842))) int842;
typedef int __attribute__ ((bitwidth(843))) int843;
typedef int __attribute__ ((bitwidth(844))) int844;
typedef int __attribute__ ((bitwidth(845))) int845;
typedef int __attribute__ ((bitwidth(846))) int846;
typedef int __attribute__ ((bitwidth(847))) int847;
typedef int __attribute__ ((bitwidth(848))) int848;
typedef int __attribute__ ((bitwidth(849))) int849;
typedef int __attribute__ ((bitwidth(850))) int850;
typedef int __attribute__ ((bitwidth(851))) int851;
typedef int __attribute__ ((bitwidth(852))) int852;
typedef int __attribute__ ((bitwidth(853))) int853;
typedef int __attribute__ ((bitwidth(854))) int854;
typedef int __attribute__ ((bitwidth(855))) int855;
typedef int __attribute__ ((bitwidth(856))) int856;
typedef int __attribute__ ((bitwidth(857))) int857;
typedef int __attribute__ ((bitwidth(858))) int858;
typedef int __attribute__ ((bitwidth(859))) int859;
typedef int __attribute__ ((bitwidth(860))) int860;
typedef int __attribute__ ((bitwidth(861))) int861;
typedef int __attribute__ ((bitwidth(862))) int862;
typedef int __attribute__ ((bitwidth(863))) int863;
typedef int __attribute__ ((bitwidth(864))) int864;
typedef int __attribute__ ((bitwidth(865))) int865;
typedef int __attribute__ ((bitwidth(866))) int866;
typedef int __attribute__ ((bitwidth(867))) int867;
typedef int __attribute__ ((bitwidth(868))) int868;
typedef int __attribute__ ((bitwidth(869))) int869;
typedef int __attribute__ ((bitwidth(870))) int870;
typedef int __attribute__ ((bitwidth(871))) int871;
typedef int __attribute__ ((bitwidth(872))) int872;
typedef int __attribute__ ((bitwidth(873))) int873;
typedef int __attribute__ ((bitwidth(874))) int874;
typedef int __attribute__ ((bitwidth(875))) int875;
typedef int __attribute__ ((bitwidth(876))) int876;
typedef int __attribute__ ((bitwidth(877))) int877;
typedef int __attribute__ ((bitwidth(878))) int878;
typedef int __attribute__ ((bitwidth(879))) int879;
typedef int __attribute__ ((bitwidth(880))) int880;
typedef int __attribute__ ((bitwidth(881))) int881;
typedef int __attribute__ ((bitwidth(882))) int882;
typedef int __attribute__ ((bitwidth(883))) int883;
typedef int __attribute__ ((bitwidth(884))) int884;
typedef int __attribute__ ((bitwidth(885))) int885;
typedef int __attribute__ ((bitwidth(886))) int886;
typedef int __attribute__ ((bitwidth(887))) int887;
typedef int __attribute__ ((bitwidth(888))) int888;
typedef int __attribute__ ((bitwidth(889))) int889;
typedef int __attribute__ ((bitwidth(890))) int890;
typedef int __attribute__ ((bitwidth(891))) int891;
typedef int __attribute__ ((bitwidth(892))) int892;
typedef int __attribute__ ((bitwidth(893))) int893;
typedef int __attribute__ ((bitwidth(894))) int894;
typedef int __attribute__ ((bitwidth(895))) int895;
typedef int __attribute__ ((bitwidth(896))) int896;
typedef int __attribute__ ((bitwidth(897))) int897;
typedef int __attribute__ ((bitwidth(898))) int898;
typedef int __attribute__ ((bitwidth(899))) int899;
typedef int __attribute__ ((bitwidth(900))) int900;
typedef int __attribute__ ((bitwidth(901))) int901;
typedef int __attribute__ ((bitwidth(902))) int902;
typedef int __attribute__ ((bitwidth(903))) int903;
typedef int __attribute__ ((bitwidth(904))) int904;
typedef int __attribute__ ((bitwidth(905))) int905;
typedef int __attribute__ ((bitwidth(906))) int906;
typedef int __attribute__ ((bitwidth(907))) int907;
typedef int __attribute__ ((bitwidth(908))) int908;
typedef int __attribute__ ((bitwidth(909))) int909;
typedef int __attribute__ ((bitwidth(910))) int910;
typedef int __attribute__ ((bitwidth(911))) int911;
typedef int __attribute__ ((bitwidth(912))) int912;
typedef int __attribute__ ((bitwidth(913))) int913;
typedef int __attribute__ ((bitwidth(914))) int914;
typedef int __attribute__ ((bitwidth(915))) int915;
typedef int __attribute__ ((bitwidth(916))) int916;
typedef int __attribute__ ((bitwidth(917))) int917;
typedef int __attribute__ ((bitwidth(918))) int918;
typedef int __attribute__ ((bitwidth(919))) int919;
typedef int __attribute__ ((bitwidth(920))) int920;
typedef int __attribute__ ((bitwidth(921))) int921;
typedef int __attribute__ ((bitwidth(922))) int922;
typedef int __attribute__ ((bitwidth(923))) int923;
typedef int __attribute__ ((bitwidth(924))) int924;
typedef int __attribute__ ((bitwidth(925))) int925;
typedef int __attribute__ ((bitwidth(926))) int926;
typedef int __attribute__ ((bitwidth(927))) int927;
typedef int __attribute__ ((bitwidth(928))) int928;
typedef int __attribute__ ((bitwidth(929))) int929;
typedef int __attribute__ ((bitwidth(930))) int930;
typedef int __attribute__ ((bitwidth(931))) int931;
typedef int __attribute__ ((bitwidth(932))) int932;
typedef int __attribute__ ((bitwidth(933))) int933;
typedef int __attribute__ ((bitwidth(934))) int934;
typedef int __attribute__ ((bitwidth(935))) int935;
typedef int __attribute__ ((bitwidth(936))) int936;
typedef int __attribute__ ((bitwidth(937))) int937;
typedef int __attribute__ ((bitwidth(938))) int938;
typedef int __attribute__ ((bitwidth(939))) int939;
typedef int __attribute__ ((bitwidth(940))) int940;
typedef int __attribute__ ((bitwidth(941))) int941;
typedef int __attribute__ ((bitwidth(942))) int942;
typedef int __attribute__ ((bitwidth(943))) int943;
typedef int __attribute__ ((bitwidth(944))) int944;
typedef int __attribute__ ((bitwidth(945))) int945;
typedef int __attribute__ ((bitwidth(946))) int946;
typedef int __attribute__ ((bitwidth(947))) int947;
typedef int __attribute__ ((bitwidth(948))) int948;
typedef int __attribute__ ((bitwidth(949))) int949;
typedef int __attribute__ ((bitwidth(950))) int950;
typedef int __attribute__ ((bitwidth(951))) int951;
typedef int __attribute__ ((bitwidth(952))) int952;
typedef int __attribute__ ((bitwidth(953))) int953;
typedef int __attribute__ ((bitwidth(954))) int954;
typedef int __attribute__ ((bitwidth(955))) int955;
typedef int __attribute__ ((bitwidth(956))) int956;
typedef int __attribute__ ((bitwidth(957))) int957;
typedef int __attribute__ ((bitwidth(958))) int958;
typedef int __attribute__ ((bitwidth(959))) int959;
typedef int __attribute__ ((bitwidth(960))) int960;
typedef int __attribute__ ((bitwidth(961))) int961;
typedef int __attribute__ ((bitwidth(962))) int962;
typedef int __attribute__ ((bitwidth(963))) int963;
typedef int __attribute__ ((bitwidth(964))) int964;
typedef int __attribute__ ((bitwidth(965))) int965;
typedef int __attribute__ ((bitwidth(966))) int966;
typedef int __attribute__ ((bitwidth(967))) int967;
typedef int __attribute__ ((bitwidth(968))) int968;
typedef int __attribute__ ((bitwidth(969))) int969;
typedef int __attribute__ ((bitwidth(970))) int970;
typedef int __attribute__ ((bitwidth(971))) int971;
typedef int __attribute__ ((bitwidth(972))) int972;
typedef int __attribute__ ((bitwidth(973))) int973;
typedef int __attribute__ ((bitwidth(974))) int974;
typedef int __attribute__ ((bitwidth(975))) int975;
typedef int __attribute__ ((bitwidth(976))) int976;
typedef int __attribute__ ((bitwidth(977))) int977;
typedef int __attribute__ ((bitwidth(978))) int978;
typedef int __attribute__ ((bitwidth(979))) int979;
typedef int __attribute__ ((bitwidth(980))) int980;
typedef int __attribute__ ((bitwidth(981))) int981;
typedef int __attribute__ ((bitwidth(982))) int982;
typedef int __attribute__ ((bitwidth(983))) int983;
typedef int __attribute__ ((bitwidth(984))) int984;
typedef int __attribute__ ((bitwidth(985))) int985;
typedef int __attribute__ ((bitwidth(986))) int986;
typedef int __attribute__ ((bitwidth(987))) int987;
typedef int __attribute__ ((bitwidth(988))) int988;
typedef int __attribute__ ((bitwidth(989))) int989;
typedef int __attribute__ ((bitwidth(990))) int990;
typedef int __attribute__ ((bitwidth(991))) int991;
typedef int __attribute__ ((bitwidth(992))) int992;
typedef int __attribute__ ((bitwidth(993))) int993;
typedef int __attribute__ ((bitwidth(994))) int994;
typedef int __attribute__ ((bitwidth(995))) int995;
typedef int __attribute__ ((bitwidth(996))) int996;
typedef int __attribute__ ((bitwidth(997))) int997;
typedef int __attribute__ ((bitwidth(998))) int998;
typedef int __attribute__ ((bitwidth(999))) int999;
typedef int __attribute__ ((bitwidth(1000))) int1000;
typedef int __attribute__ ((bitwidth(1001))) int1001;
typedef int __attribute__ ((bitwidth(1002))) int1002;
typedef int __attribute__ ((bitwidth(1003))) int1003;
typedef int __attribute__ ((bitwidth(1004))) int1004;
typedef int __attribute__ ((bitwidth(1005))) int1005;
typedef int __attribute__ ((bitwidth(1006))) int1006;
typedef int __attribute__ ((bitwidth(1007))) int1007;
typedef int __attribute__ ((bitwidth(1008))) int1008;
typedef int __attribute__ ((bitwidth(1009))) int1009;
typedef int __attribute__ ((bitwidth(1010))) int1010;
typedef int __attribute__ ((bitwidth(1011))) int1011;
typedef int __attribute__ ((bitwidth(1012))) int1012;
typedef int __attribute__ ((bitwidth(1013))) int1013;
typedef int __attribute__ ((bitwidth(1014))) int1014;
typedef int __attribute__ ((bitwidth(1015))) int1015;
typedef int __attribute__ ((bitwidth(1016))) int1016;
typedef int __attribute__ ((bitwidth(1017))) int1017;
typedef int __attribute__ ((bitwidth(1018))) int1018;
typedef int __attribute__ ((bitwidth(1019))) int1019;
typedef int __attribute__ ((bitwidth(1020))) int1020;
typedef int __attribute__ ((bitwidth(1021))) int1021;
typedef int __attribute__ ((bitwidth(1022))) int1022;
typedef int __attribute__ ((bitwidth(1023))) int1023;
typedef int __attribute__ ((bitwidth(1024))) int1024;
#pragma line 98 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h" 2
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt_ext.def" 1
#pragma empty_line
#pragma empty_line
typedef int __attribute__ ((bitwidth(1025))) int1025;
typedef int __attribute__ ((bitwidth(1026))) int1026;
typedef int __attribute__ ((bitwidth(1027))) int1027;
typedef int __attribute__ ((bitwidth(1028))) int1028;
typedef int __attribute__ ((bitwidth(1029))) int1029;
typedef int __attribute__ ((bitwidth(1030))) int1030;
typedef int __attribute__ ((bitwidth(1031))) int1031;
typedef int __attribute__ ((bitwidth(1032))) int1032;
typedef int __attribute__ ((bitwidth(1033))) int1033;
typedef int __attribute__ ((bitwidth(1034))) int1034;
typedef int __attribute__ ((bitwidth(1035))) int1035;
typedef int __attribute__ ((bitwidth(1036))) int1036;
typedef int __attribute__ ((bitwidth(1037))) int1037;
typedef int __attribute__ ((bitwidth(1038))) int1038;
typedef int __attribute__ ((bitwidth(1039))) int1039;
typedef int __attribute__ ((bitwidth(1040))) int1040;
typedef int __attribute__ ((bitwidth(1041))) int1041;
typedef int __attribute__ ((bitwidth(1042))) int1042;
typedef int __attribute__ ((bitwidth(1043))) int1043;
typedef int __attribute__ ((bitwidth(1044))) int1044;
typedef int __attribute__ ((bitwidth(1045))) int1045;
typedef int __attribute__ ((bitwidth(1046))) int1046;
typedef int __attribute__ ((bitwidth(1047))) int1047;
typedef int __attribute__ ((bitwidth(1048))) int1048;
typedef int __attribute__ ((bitwidth(1049))) int1049;
typedef int __attribute__ ((bitwidth(1050))) int1050;
typedef int __attribute__ ((bitwidth(1051))) int1051;
typedef int __attribute__ ((bitwidth(1052))) int1052;
typedef int __attribute__ ((bitwidth(1053))) int1053;
typedef int __attribute__ ((bitwidth(1054))) int1054;
typedef int __attribute__ ((bitwidth(1055))) int1055;
typedef int __attribute__ ((bitwidth(1056))) int1056;
typedef int __attribute__ ((bitwidth(1057))) int1057;
typedef int __attribute__ ((bitwidth(1058))) int1058;
typedef int __attribute__ ((bitwidth(1059))) int1059;
typedef int __attribute__ ((bitwidth(1060))) int1060;
typedef int __attribute__ ((bitwidth(1061))) int1061;
typedef int __attribute__ ((bitwidth(1062))) int1062;
typedef int __attribute__ ((bitwidth(1063))) int1063;
typedef int __attribute__ ((bitwidth(1064))) int1064;
typedef int __attribute__ ((bitwidth(1065))) int1065;
typedef int __attribute__ ((bitwidth(1066))) int1066;
typedef int __attribute__ ((bitwidth(1067))) int1067;
typedef int __attribute__ ((bitwidth(1068))) int1068;
typedef int __attribute__ ((bitwidth(1069))) int1069;
typedef int __attribute__ ((bitwidth(1070))) int1070;
typedef int __attribute__ ((bitwidth(1071))) int1071;
typedef int __attribute__ ((bitwidth(1072))) int1072;
typedef int __attribute__ ((bitwidth(1073))) int1073;
typedef int __attribute__ ((bitwidth(1074))) int1074;
typedef int __attribute__ ((bitwidth(1075))) int1075;
typedef int __attribute__ ((bitwidth(1076))) int1076;
typedef int __attribute__ ((bitwidth(1077))) int1077;
typedef int __attribute__ ((bitwidth(1078))) int1078;
typedef int __attribute__ ((bitwidth(1079))) int1079;
typedef int __attribute__ ((bitwidth(1080))) int1080;
typedef int __attribute__ ((bitwidth(1081))) int1081;
typedef int __attribute__ ((bitwidth(1082))) int1082;
typedef int __attribute__ ((bitwidth(1083))) int1083;
typedef int __attribute__ ((bitwidth(1084))) int1084;
typedef int __attribute__ ((bitwidth(1085))) int1085;
typedef int __attribute__ ((bitwidth(1086))) int1086;
typedef int __attribute__ ((bitwidth(1087))) int1087;
typedef int __attribute__ ((bitwidth(1088))) int1088;
typedef int __attribute__ ((bitwidth(1089))) int1089;
typedef int __attribute__ ((bitwidth(1090))) int1090;
typedef int __attribute__ ((bitwidth(1091))) int1091;
typedef int __attribute__ ((bitwidth(1092))) int1092;
typedef int __attribute__ ((bitwidth(1093))) int1093;
typedef int __attribute__ ((bitwidth(1094))) int1094;
typedef int __attribute__ ((bitwidth(1095))) int1095;
typedef int __attribute__ ((bitwidth(1096))) int1096;
typedef int __attribute__ ((bitwidth(1097))) int1097;
typedef int __attribute__ ((bitwidth(1098))) int1098;
typedef int __attribute__ ((bitwidth(1099))) int1099;
typedef int __attribute__ ((bitwidth(1100))) int1100;
typedef int __attribute__ ((bitwidth(1101))) int1101;
typedef int __attribute__ ((bitwidth(1102))) int1102;
typedef int __attribute__ ((bitwidth(1103))) int1103;
typedef int __attribute__ ((bitwidth(1104))) int1104;
typedef int __attribute__ ((bitwidth(1105))) int1105;
typedef int __attribute__ ((bitwidth(1106))) int1106;
typedef int __attribute__ ((bitwidth(1107))) int1107;
typedef int __attribute__ ((bitwidth(1108))) int1108;
typedef int __attribute__ ((bitwidth(1109))) int1109;
typedef int __attribute__ ((bitwidth(1110))) int1110;
typedef int __attribute__ ((bitwidth(1111))) int1111;
typedef int __attribute__ ((bitwidth(1112))) int1112;
typedef int __attribute__ ((bitwidth(1113))) int1113;
typedef int __attribute__ ((bitwidth(1114))) int1114;
typedef int __attribute__ ((bitwidth(1115))) int1115;
typedef int __attribute__ ((bitwidth(1116))) int1116;
typedef int __attribute__ ((bitwidth(1117))) int1117;
typedef int __attribute__ ((bitwidth(1118))) int1118;
typedef int __attribute__ ((bitwidth(1119))) int1119;
typedef int __attribute__ ((bitwidth(1120))) int1120;
typedef int __attribute__ ((bitwidth(1121))) int1121;
typedef int __attribute__ ((bitwidth(1122))) int1122;
typedef int __attribute__ ((bitwidth(1123))) int1123;
typedef int __attribute__ ((bitwidth(1124))) int1124;
typedef int __attribute__ ((bitwidth(1125))) int1125;
typedef int __attribute__ ((bitwidth(1126))) int1126;
typedef int __attribute__ ((bitwidth(1127))) int1127;
typedef int __attribute__ ((bitwidth(1128))) int1128;
typedef int __attribute__ ((bitwidth(1129))) int1129;
typedef int __attribute__ ((bitwidth(1130))) int1130;
typedef int __attribute__ ((bitwidth(1131))) int1131;
typedef int __attribute__ ((bitwidth(1132))) int1132;
typedef int __attribute__ ((bitwidth(1133))) int1133;
typedef int __attribute__ ((bitwidth(1134))) int1134;
typedef int __attribute__ ((bitwidth(1135))) int1135;
typedef int __attribute__ ((bitwidth(1136))) int1136;
typedef int __attribute__ ((bitwidth(1137))) int1137;
typedef int __attribute__ ((bitwidth(1138))) int1138;
typedef int __attribute__ ((bitwidth(1139))) int1139;
typedef int __attribute__ ((bitwidth(1140))) int1140;
typedef int __attribute__ ((bitwidth(1141))) int1141;
typedef int __attribute__ ((bitwidth(1142))) int1142;
typedef int __attribute__ ((bitwidth(1143))) int1143;
typedef int __attribute__ ((bitwidth(1144))) int1144;
typedef int __attribute__ ((bitwidth(1145))) int1145;
typedef int __attribute__ ((bitwidth(1146))) int1146;
typedef int __attribute__ ((bitwidth(1147))) int1147;
typedef int __attribute__ ((bitwidth(1148))) int1148;
typedef int __attribute__ ((bitwidth(1149))) int1149;
typedef int __attribute__ ((bitwidth(1150))) int1150;
typedef int __attribute__ ((bitwidth(1151))) int1151;
typedef int __attribute__ ((bitwidth(1152))) int1152;
typedef int __attribute__ ((bitwidth(1153))) int1153;
typedef int __attribute__ ((bitwidth(1154))) int1154;
typedef int __attribute__ ((bitwidth(1155))) int1155;
typedef int __attribute__ ((bitwidth(1156))) int1156;
typedef int __attribute__ ((bitwidth(1157))) int1157;
typedef int __attribute__ ((bitwidth(1158))) int1158;
typedef int __attribute__ ((bitwidth(1159))) int1159;
typedef int __attribute__ ((bitwidth(1160))) int1160;
typedef int __attribute__ ((bitwidth(1161))) int1161;
typedef int __attribute__ ((bitwidth(1162))) int1162;
typedef int __attribute__ ((bitwidth(1163))) int1163;
typedef int __attribute__ ((bitwidth(1164))) int1164;
typedef int __attribute__ ((bitwidth(1165))) int1165;
typedef int __attribute__ ((bitwidth(1166))) int1166;
typedef int __attribute__ ((bitwidth(1167))) int1167;
typedef int __attribute__ ((bitwidth(1168))) int1168;
typedef int __attribute__ ((bitwidth(1169))) int1169;
typedef int __attribute__ ((bitwidth(1170))) int1170;
typedef int __attribute__ ((bitwidth(1171))) int1171;
typedef int __attribute__ ((bitwidth(1172))) int1172;
typedef int __attribute__ ((bitwidth(1173))) int1173;
typedef int __attribute__ ((bitwidth(1174))) int1174;
typedef int __attribute__ ((bitwidth(1175))) int1175;
typedef int __attribute__ ((bitwidth(1176))) int1176;
typedef int __attribute__ ((bitwidth(1177))) int1177;
typedef int __attribute__ ((bitwidth(1178))) int1178;
typedef int __attribute__ ((bitwidth(1179))) int1179;
typedef int __attribute__ ((bitwidth(1180))) int1180;
typedef int __attribute__ ((bitwidth(1181))) int1181;
typedef int __attribute__ ((bitwidth(1182))) int1182;
typedef int __attribute__ ((bitwidth(1183))) int1183;
typedef int __attribute__ ((bitwidth(1184))) int1184;
typedef int __attribute__ ((bitwidth(1185))) int1185;
typedef int __attribute__ ((bitwidth(1186))) int1186;
typedef int __attribute__ ((bitwidth(1187))) int1187;
typedef int __attribute__ ((bitwidth(1188))) int1188;
typedef int __attribute__ ((bitwidth(1189))) int1189;
typedef int __attribute__ ((bitwidth(1190))) int1190;
typedef int __attribute__ ((bitwidth(1191))) int1191;
typedef int __attribute__ ((bitwidth(1192))) int1192;
typedef int __attribute__ ((bitwidth(1193))) int1193;
typedef int __attribute__ ((bitwidth(1194))) int1194;
typedef int __attribute__ ((bitwidth(1195))) int1195;
typedef int __attribute__ ((bitwidth(1196))) int1196;
typedef int __attribute__ ((bitwidth(1197))) int1197;
typedef int __attribute__ ((bitwidth(1198))) int1198;
typedef int __attribute__ ((bitwidth(1199))) int1199;
typedef int __attribute__ ((bitwidth(1200))) int1200;
typedef int __attribute__ ((bitwidth(1201))) int1201;
typedef int __attribute__ ((bitwidth(1202))) int1202;
typedef int __attribute__ ((bitwidth(1203))) int1203;
typedef int __attribute__ ((bitwidth(1204))) int1204;
typedef int __attribute__ ((bitwidth(1205))) int1205;
typedef int __attribute__ ((bitwidth(1206))) int1206;
typedef int __attribute__ ((bitwidth(1207))) int1207;
typedef int __attribute__ ((bitwidth(1208))) int1208;
typedef int __attribute__ ((bitwidth(1209))) int1209;
typedef int __attribute__ ((bitwidth(1210))) int1210;
typedef int __attribute__ ((bitwidth(1211))) int1211;
typedef int __attribute__ ((bitwidth(1212))) int1212;
typedef int __attribute__ ((bitwidth(1213))) int1213;
typedef int __attribute__ ((bitwidth(1214))) int1214;
typedef int __attribute__ ((bitwidth(1215))) int1215;
typedef int __attribute__ ((bitwidth(1216))) int1216;
typedef int __attribute__ ((bitwidth(1217))) int1217;
typedef int __attribute__ ((bitwidth(1218))) int1218;
typedef int __attribute__ ((bitwidth(1219))) int1219;
typedef int __attribute__ ((bitwidth(1220))) int1220;
typedef int __attribute__ ((bitwidth(1221))) int1221;
typedef int __attribute__ ((bitwidth(1222))) int1222;
typedef int __attribute__ ((bitwidth(1223))) int1223;
typedef int __attribute__ ((bitwidth(1224))) int1224;
typedef int __attribute__ ((bitwidth(1225))) int1225;
typedef int __attribute__ ((bitwidth(1226))) int1226;
typedef int __attribute__ ((bitwidth(1227))) int1227;
typedef int __attribute__ ((bitwidth(1228))) int1228;
typedef int __attribute__ ((bitwidth(1229))) int1229;
typedef int __attribute__ ((bitwidth(1230))) int1230;
typedef int __attribute__ ((bitwidth(1231))) int1231;
typedef int __attribute__ ((bitwidth(1232))) int1232;
typedef int __attribute__ ((bitwidth(1233))) int1233;
typedef int __attribute__ ((bitwidth(1234))) int1234;
typedef int __attribute__ ((bitwidth(1235))) int1235;
typedef int __attribute__ ((bitwidth(1236))) int1236;
typedef int __attribute__ ((bitwidth(1237))) int1237;
typedef int __attribute__ ((bitwidth(1238))) int1238;
typedef int __attribute__ ((bitwidth(1239))) int1239;
typedef int __attribute__ ((bitwidth(1240))) int1240;
typedef int __attribute__ ((bitwidth(1241))) int1241;
typedef int __attribute__ ((bitwidth(1242))) int1242;
typedef int __attribute__ ((bitwidth(1243))) int1243;
typedef int __attribute__ ((bitwidth(1244))) int1244;
typedef int __attribute__ ((bitwidth(1245))) int1245;
typedef int __attribute__ ((bitwidth(1246))) int1246;
typedef int __attribute__ ((bitwidth(1247))) int1247;
typedef int __attribute__ ((bitwidth(1248))) int1248;
typedef int __attribute__ ((bitwidth(1249))) int1249;
typedef int __attribute__ ((bitwidth(1250))) int1250;
typedef int __attribute__ ((bitwidth(1251))) int1251;
typedef int __attribute__ ((bitwidth(1252))) int1252;
typedef int __attribute__ ((bitwidth(1253))) int1253;
typedef int __attribute__ ((bitwidth(1254))) int1254;
typedef int __attribute__ ((bitwidth(1255))) int1255;
typedef int __attribute__ ((bitwidth(1256))) int1256;
typedef int __attribute__ ((bitwidth(1257))) int1257;
typedef int __attribute__ ((bitwidth(1258))) int1258;
typedef int __attribute__ ((bitwidth(1259))) int1259;
typedef int __attribute__ ((bitwidth(1260))) int1260;
typedef int __attribute__ ((bitwidth(1261))) int1261;
typedef int __attribute__ ((bitwidth(1262))) int1262;
typedef int __attribute__ ((bitwidth(1263))) int1263;
typedef int __attribute__ ((bitwidth(1264))) int1264;
typedef int __attribute__ ((bitwidth(1265))) int1265;
typedef int __attribute__ ((bitwidth(1266))) int1266;
typedef int __attribute__ ((bitwidth(1267))) int1267;
typedef int __attribute__ ((bitwidth(1268))) int1268;
typedef int __attribute__ ((bitwidth(1269))) int1269;
typedef int __attribute__ ((bitwidth(1270))) int1270;
typedef int __attribute__ ((bitwidth(1271))) int1271;
typedef int __attribute__ ((bitwidth(1272))) int1272;
typedef int __attribute__ ((bitwidth(1273))) int1273;
typedef int __attribute__ ((bitwidth(1274))) int1274;
typedef int __attribute__ ((bitwidth(1275))) int1275;
typedef int __attribute__ ((bitwidth(1276))) int1276;
typedef int __attribute__ ((bitwidth(1277))) int1277;
typedef int __attribute__ ((bitwidth(1278))) int1278;
typedef int __attribute__ ((bitwidth(1279))) int1279;
typedef int __attribute__ ((bitwidth(1280))) int1280;
typedef int __attribute__ ((bitwidth(1281))) int1281;
typedef int __attribute__ ((bitwidth(1282))) int1282;
typedef int __attribute__ ((bitwidth(1283))) int1283;
typedef int __attribute__ ((bitwidth(1284))) int1284;
typedef int __attribute__ ((bitwidth(1285))) int1285;
typedef int __attribute__ ((bitwidth(1286))) int1286;
typedef int __attribute__ ((bitwidth(1287))) int1287;
typedef int __attribute__ ((bitwidth(1288))) int1288;
typedef int __attribute__ ((bitwidth(1289))) int1289;
typedef int __attribute__ ((bitwidth(1290))) int1290;
typedef int __attribute__ ((bitwidth(1291))) int1291;
typedef int __attribute__ ((bitwidth(1292))) int1292;
typedef int __attribute__ ((bitwidth(1293))) int1293;
typedef int __attribute__ ((bitwidth(1294))) int1294;
typedef int __attribute__ ((bitwidth(1295))) int1295;
typedef int __attribute__ ((bitwidth(1296))) int1296;
typedef int __attribute__ ((bitwidth(1297))) int1297;
typedef int __attribute__ ((bitwidth(1298))) int1298;
typedef int __attribute__ ((bitwidth(1299))) int1299;
typedef int __attribute__ ((bitwidth(1300))) int1300;
typedef int __attribute__ ((bitwidth(1301))) int1301;
typedef int __attribute__ ((bitwidth(1302))) int1302;
typedef int __attribute__ ((bitwidth(1303))) int1303;
typedef int __attribute__ ((bitwidth(1304))) int1304;
typedef int __attribute__ ((bitwidth(1305))) int1305;
typedef int __attribute__ ((bitwidth(1306))) int1306;
typedef int __attribute__ ((bitwidth(1307))) int1307;
typedef int __attribute__ ((bitwidth(1308))) int1308;
typedef int __attribute__ ((bitwidth(1309))) int1309;
typedef int __attribute__ ((bitwidth(1310))) int1310;
typedef int __attribute__ ((bitwidth(1311))) int1311;
typedef int __attribute__ ((bitwidth(1312))) int1312;
typedef int __attribute__ ((bitwidth(1313))) int1313;
typedef int __attribute__ ((bitwidth(1314))) int1314;
typedef int __attribute__ ((bitwidth(1315))) int1315;
typedef int __attribute__ ((bitwidth(1316))) int1316;
typedef int __attribute__ ((bitwidth(1317))) int1317;
typedef int __attribute__ ((bitwidth(1318))) int1318;
typedef int __attribute__ ((bitwidth(1319))) int1319;
typedef int __attribute__ ((bitwidth(1320))) int1320;
typedef int __attribute__ ((bitwidth(1321))) int1321;
typedef int __attribute__ ((bitwidth(1322))) int1322;
typedef int __attribute__ ((bitwidth(1323))) int1323;
typedef int __attribute__ ((bitwidth(1324))) int1324;
typedef int __attribute__ ((bitwidth(1325))) int1325;
typedef int __attribute__ ((bitwidth(1326))) int1326;
typedef int __attribute__ ((bitwidth(1327))) int1327;
typedef int __attribute__ ((bitwidth(1328))) int1328;
typedef int __attribute__ ((bitwidth(1329))) int1329;
typedef int __attribute__ ((bitwidth(1330))) int1330;
typedef int __attribute__ ((bitwidth(1331))) int1331;
typedef int __attribute__ ((bitwidth(1332))) int1332;
typedef int __attribute__ ((bitwidth(1333))) int1333;
typedef int __attribute__ ((bitwidth(1334))) int1334;
typedef int __attribute__ ((bitwidth(1335))) int1335;
typedef int __attribute__ ((bitwidth(1336))) int1336;
typedef int __attribute__ ((bitwidth(1337))) int1337;
typedef int __attribute__ ((bitwidth(1338))) int1338;
typedef int __attribute__ ((bitwidth(1339))) int1339;
typedef int __attribute__ ((bitwidth(1340))) int1340;
typedef int __attribute__ ((bitwidth(1341))) int1341;
typedef int __attribute__ ((bitwidth(1342))) int1342;
typedef int __attribute__ ((bitwidth(1343))) int1343;
typedef int __attribute__ ((bitwidth(1344))) int1344;
typedef int __attribute__ ((bitwidth(1345))) int1345;
typedef int __attribute__ ((bitwidth(1346))) int1346;
typedef int __attribute__ ((bitwidth(1347))) int1347;
typedef int __attribute__ ((bitwidth(1348))) int1348;
typedef int __attribute__ ((bitwidth(1349))) int1349;
typedef int __attribute__ ((bitwidth(1350))) int1350;
typedef int __attribute__ ((bitwidth(1351))) int1351;
typedef int __attribute__ ((bitwidth(1352))) int1352;
typedef int __attribute__ ((bitwidth(1353))) int1353;
typedef int __attribute__ ((bitwidth(1354))) int1354;
typedef int __attribute__ ((bitwidth(1355))) int1355;
typedef int __attribute__ ((bitwidth(1356))) int1356;
typedef int __attribute__ ((bitwidth(1357))) int1357;
typedef int __attribute__ ((bitwidth(1358))) int1358;
typedef int __attribute__ ((bitwidth(1359))) int1359;
typedef int __attribute__ ((bitwidth(1360))) int1360;
typedef int __attribute__ ((bitwidth(1361))) int1361;
typedef int __attribute__ ((bitwidth(1362))) int1362;
typedef int __attribute__ ((bitwidth(1363))) int1363;
typedef int __attribute__ ((bitwidth(1364))) int1364;
typedef int __attribute__ ((bitwidth(1365))) int1365;
typedef int __attribute__ ((bitwidth(1366))) int1366;
typedef int __attribute__ ((bitwidth(1367))) int1367;
typedef int __attribute__ ((bitwidth(1368))) int1368;
typedef int __attribute__ ((bitwidth(1369))) int1369;
typedef int __attribute__ ((bitwidth(1370))) int1370;
typedef int __attribute__ ((bitwidth(1371))) int1371;
typedef int __attribute__ ((bitwidth(1372))) int1372;
typedef int __attribute__ ((bitwidth(1373))) int1373;
typedef int __attribute__ ((bitwidth(1374))) int1374;
typedef int __attribute__ ((bitwidth(1375))) int1375;
typedef int __attribute__ ((bitwidth(1376))) int1376;
typedef int __attribute__ ((bitwidth(1377))) int1377;
typedef int __attribute__ ((bitwidth(1378))) int1378;
typedef int __attribute__ ((bitwidth(1379))) int1379;
typedef int __attribute__ ((bitwidth(1380))) int1380;
typedef int __attribute__ ((bitwidth(1381))) int1381;
typedef int __attribute__ ((bitwidth(1382))) int1382;
typedef int __attribute__ ((bitwidth(1383))) int1383;
typedef int __attribute__ ((bitwidth(1384))) int1384;
typedef int __attribute__ ((bitwidth(1385))) int1385;
typedef int __attribute__ ((bitwidth(1386))) int1386;
typedef int __attribute__ ((bitwidth(1387))) int1387;
typedef int __attribute__ ((bitwidth(1388))) int1388;
typedef int __attribute__ ((bitwidth(1389))) int1389;
typedef int __attribute__ ((bitwidth(1390))) int1390;
typedef int __attribute__ ((bitwidth(1391))) int1391;
typedef int __attribute__ ((bitwidth(1392))) int1392;
typedef int __attribute__ ((bitwidth(1393))) int1393;
typedef int __attribute__ ((bitwidth(1394))) int1394;
typedef int __attribute__ ((bitwidth(1395))) int1395;
typedef int __attribute__ ((bitwidth(1396))) int1396;
typedef int __attribute__ ((bitwidth(1397))) int1397;
typedef int __attribute__ ((bitwidth(1398))) int1398;
typedef int __attribute__ ((bitwidth(1399))) int1399;
typedef int __attribute__ ((bitwidth(1400))) int1400;
typedef int __attribute__ ((bitwidth(1401))) int1401;
typedef int __attribute__ ((bitwidth(1402))) int1402;
typedef int __attribute__ ((bitwidth(1403))) int1403;
typedef int __attribute__ ((bitwidth(1404))) int1404;
typedef int __attribute__ ((bitwidth(1405))) int1405;
typedef int __attribute__ ((bitwidth(1406))) int1406;
typedef int __attribute__ ((bitwidth(1407))) int1407;
typedef int __attribute__ ((bitwidth(1408))) int1408;
typedef int __attribute__ ((bitwidth(1409))) int1409;
typedef int __attribute__ ((bitwidth(1410))) int1410;
typedef int __attribute__ ((bitwidth(1411))) int1411;
typedef int __attribute__ ((bitwidth(1412))) int1412;
typedef int __attribute__ ((bitwidth(1413))) int1413;
typedef int __attribute__ ((bitwidth(1414))) int1414;
typedef int __attribute__ ((bitwidth(1415))) int1415;
typedef int __attribute__ ((bitwidth(1416))) int1416;
typedef int __attribute__ ((bitwidth(1417))) int1417;
typedef int __attribute__ ((bitwidth(1418))) int1418;
typedef int __attribute__ ((bitwidth(1419))) int1419;
typedef int __attribute__ ((bitwidth(1420))) int1420;
typedef int __attribute__ ((bitwidth(1421))) int1421;
typedef int __attribute__ ((bitwidth(1422))) int1422;
typedef int __attribute__ ((bitwidth(1423))) int1423;
typedef int __attribute__ ((bitwidth(1424))) int1424;
typedef int __attribute__ ((bitwidth(1425))) int1425;
typedef int __attribute__ ((bitwidth(1426))) int1426;
typedef int __attribute__ ((bitwidth(1427))) int1427;
typedef int __attribute__ ((bitwidth(1428))) int1428;
typedef int __attribute__ ((bitwidth(1429))) int1429;
typedef int __attribute__ ((bitwidth(1430))) int1430;
typedef int __attribute__ ((bitwidth(1431))) int1431;
typedef int __attribute__ ((bitwidth(1432))) int1432;
typedef int __attribute__ ((bitwidth(1433))) int1433;
typedef int __attribute__ ((bitwidth(1434))) int1434;
typedef int __attribute__ ((bitwidth(1435))) int1435;
typedef int __attribute__ ((bitwidth(1436))) int1436;
typedef int __attribute__ ((bitwidth(1437))) int1437;
typedef int __attribute__ ((bitwidth(1438))) int1438;
typedef int __attribute__ ((bitwidth(1439))) int1439;
typedef int __attribute__ ((bitwidth(1440))) int1440;
typedef int __attribute__ ((bitwidth(1441))) int1441;
typedef int __attribute__ ((bitwidth(1442))) int1442;
typedef int __attribute__ ((bitwidth(1443))) int1443;
typedef int __attribute__ ((bitwidth(1444))) int1444;
typedef int __attribute__ ((bitwidth(1445))) int1445;
typedef int __attribute__ ((bitwidth(1446))) int1446;
typedef int __attribute__ ((bitwidth(1447))) int1447;
typedef int __attribute__ ((bitwidth(1448))) int1448;
typedef int __attribute__ ((bitwidth(1449))) int1449;
typedef int __attribute__ ((bitwidth(1450))) int1450;
typedef int __attribute__ ((bitwidth(1451))) int1451;
typedef int __attribute__ ((bitwidth(1452))) int1452;
typedef int __attribute__ ((bitwidth(1453))) int1453;
typedef int __attribute__ ((bitwidth(1454))) int1454;
typedef int __attribute__ ((bitwidth(1455))) int1455;
typedef int __attribute__ ((bitwidth(1456))) int1456;
typedef int __attribute__ ((bitwidth(1457))) int1457;
typedef int __attribute__ ((bitwidth(1458))) int1458;
typedef int __attribute__ ((bitwidth(1459))) int1459;
typedef int __attribute__ ((bitwidth(1460))) int1460;
typedef int __attribute__ ((bitwidth(1461))) int1461;
typedef int __attribute__ ((bitwidth(1462))) int1462;
typedef int __attribute__ ((bitwidth(1463))) int1463;
typedef int __attribute__ ((bitwidth(1464))) int1464;
typedef int __attribute__ ((bitwidth(1465))) int1465;
typedef int __attribute__ ((bitwidth(1466))) int1466;
typedef int __attribute__ ((bitwidth(1467))) int1467;
typedef int __attribute__ ((bitwidth(1468))) int1468;
typedef int __attribute__ ((bitwidth(1469))) int1469;
typedef int __attribute__ ((bitwidth(1470))) int1470;
typedef int __attribute__ ((bitwidth(1471))) int1471;
typedef int __attribute__ ((bitwidth(1472))) int1472;
typedef int __attribute__ ((bitwidth(1473))) int1473;
typedef int __attribute__ ((bitwidth(1474))) int1474;
typedef int __attribute__ ((bitwidth(1475))) int1475;
typedef int __attribute__ ((bitwidth(1476))) int1476;
typedef int __attribute__ ((bitwidth(1477))) int1477;
typedef int __attribute__ ((bitwidth(1478))) int1478;
typedef int __attribute__ ((bitwidth(1479))) int1479;
typedef int __attribute__ ((bitwidth(1480))) int1480;
typedef int __attribute__ ((bitwidth(1481))) int1481;
typedef int __attribute__ ((bitwidth(1482))) int1482;
typedef int __attribute__ ((bitwidth(1483))) int1483;
typedef int __attribute__ ((bitwidth(1484))) int1484;
typedef int __attribute__ ((bitwidth(1485))) int1485;
typedef int __attribute__ ((bitwidth(1486))) int1486;
typedef int __attribute__ ((bitwidth(1487))) int1487;
typedef int __attribute__ ((bitwidth(1488))) int1488;
typedef int __attribute__ ((bitwidth(1489))) int1489;
typedef int __attribute__ ((bitwidth(1490))) int1490;
typedef int __attribute__ ((bitwidth(1491))) int1491;
typedef int __attribute__ ((bitwidth(1492))) int1492;
typedef int __attribute__ ((bitwidth(1493))) int1493;
typedef int __attribute__ ((bitwidth(1494))) int1494;
typedef int __attribute__ ((bitwidth(1495))) int1495;
typedef int __attribute__ ((bitwidth(1496))) int1496;
typedef int __attribute__ ((bitwidth(1497))) int1497;
typedef int __attribute__ ((bitwidth(1498))) int1498;
typedef int __attribute__ ((bitwidth(1499))) int1499;
typedef int __attribute__ ((bitwidth(1500))) int1500;
typedef int __attribute__ ((bitwidth(1501))) int1501;
typedef int __attribute__ ((bitwidth(1502))) int1502;
typedef int __attribute__ ((bitwidth(1503))) int1503;
typedef int __attribute__ ((bitwidth(1504))) int1504;
typedef int __attribute__ ((bitwidth(1505))) int1505;
typedef int __attribute__ ((bitwidth(1506))) int1506;
typedef int __attribute__ ((bitwidth(1507))) int1507;
typedef int __attribute__ ((bitwidth(1508))) int1508;
typedef int __attribute__ ((bitwidth(1509))) int1509;
typedef int __attribute__ ((bitwidth(1510))) int1510;
typedef int __attribute__ ((bitwidth(1511))) int1511;
typedef int __attribute__ ((bitwidth(1512))) int1512;
typedef int __attribute__ ((bitwidth(1513))) int1513;
typedef int __attribute__ ((bitwidth(1514))) int1514;
typedef int __attribute__ ((bitwidth(1515))) int1515;
typedef int __attribute__ ((bitwidth(1516))) int1516;
typedef int __attribute__ ((bitwidth(1517))) int1517;
typedef int __attribute__ ((bitwidth(1518))) int1518;
typedef int __attribute__ ((bitwidth(1519))) int1519;
typedef int __attribute__ ((bitwidth(1520))) int1520;
typedef int __attribute__ ((bitwidth(1521))) int1521;
typedef int __attribute__ ((bitwidth(1522))) int1522;
typedef int __attribute__ ((bitwidth(1523))) int1523;
typedef int __attribute__ ((bitwidth(1524))) int1524;
typedef int __attribute__ ((bitwidth(1525))) int1525;
typedef int __attribute__ ((bitwidth(1526))) int1526;
typedef int __attribute__ ((bitwidth(1527))) int1527;
typedef int __attribute__ ((bitwidth(1528))) int1528;
typedef int __attribute__ ((bitwidth(1529))) int1529;
typedef int __attribute__ ((bitwidth(1530))) int1530;
typedef int __attribute__ ((bitwidth(1531))) int1531;
typedef int __attribute__ ((bitwidth(1532))) int1532;
typedef int __attribute__ ((bitwidth(1533))) int1533;
typedef int __attribute__ ((bitwidth(1534))) int1534;
typedef int __attribute__ ((bitwidth(1535))) int1535;
typedef int __attribute__ ((bitwidth(1536))) int1536;
typedef int __attribute__ ((bitwidth(1537))) int1537;
typedef int __attribute__ ((bitwidth(1538))) int1538;
typedef int __attribute__ ((bitwidth(1539))) int1539;
typedef int __attribute__ ((bitwidth(1540))) int1540;
typedef int __attribute__ ((bitwidth(1541))) int1541;
typedef int __attribute__ ((bitwidth(1542))) int1542;
typedef int __attribute__ ((bitwidth(1543))) int1543;
typedef int __attribute__ ((bitwidth(1544))) int1544;
typedef int __attribute__ ((bitwidth(1545))) int1545;
typedef int __attribute__ ((bitwidth(1546))) int1546;
typedef int __attribute__ ((bitwidth(1547))) int1547;
typedef int __attribute__ ((bitwidth(1548))) int1548;
typedef int __attribute__ ((bitwidth(1549))) int1549;
typedef int __attribute__ ((bitwidth(1550))) int1550;
typedef int __attribute__ ((bitwidth(1551))) int1551;
typedef int __attribute__ ((bitwidth(1552))) int1552;
typedef int __attribute__ ((bitwidth(1553))) int1553;
typedef int __attribute__ ((bitwidth(1554))) int1554;
typedef int __attribute__ ((bitwidth(1555))) int1555;
typedef int __attribute__ ((bitwidth(1556))) int1556;
typedef int __attribute__ ((bitwidth(1557))) int1557;
typedef int __attribute__ ((bitwidth(1558))) int1558;
typedef int __attribute__ ((bitwidth(1559))) int1559;
typedef int __attribute__ ((bitwidth(1560))) int1560;
typedef int __attribute__ ((bitwidth(1561))) int1561;
typedef int __attribute__ ((bitwidth(1562))) int1562;
typedef int __attribute__ ((bitwidth(1563))) int1563;
typedef int __attribute__ ((bitwidth(1564))) int1564;
typedef int __attribute__ ((bitwidth(1565))) int1565;
typedef int __attribute__ ((bitwidth(1566))) int1566;
typedef int __attribute__ ((bitwidth(1567))) int1567;
typedef int __attribute__ ((bitwidth(1568))) int1568;
typedef int __attribute__ ((bitwidth(1569))) int1569;
typedef int __attribute__ ((bitwidth(1570))) int1570;
typedef int __attribute__ ((bitwidth(1571))) int1571;
typedef int __attribute__ ((bitwidth(1572))) int1572;
typedef int __attribute__ ((bitwidth(1573))) int1573;
typedef int __attribute__ ((bitwidth(1574))) int1574;
typedef int __attribute__ ((bitwidth(1575))) int1575;
typedef int __attribute__ ((bitwidth(1576))) int1576;
typedef int __attribute__ ((bitwidth(1577))) int1577;
typedef int __attribute__ ((bitwidth(1578))) int1578;
typedef int __attribute__ ((bitwidth(1579))) int1579;
typedef int __attribute__ ((bitwidth(1580))) int1580;
typedef int __attribute__ ((bitwidth(1581))) int1581;
typedef int __attribute__ ((bitwidth(1582))) int1582;
typedef int __attribute__ ((bitwidth(1583))) int1583;
typedef int __attribute__ ((bitwidth(1584))) int1584;
typedef int __attribute__ ((bitwidth(1585))) int1585;
typedef int __attribute__ ((bitwidth(1586))) int1586;
typedef int __attribute__ ((bitwidth(1587))) int1587;
typedef int __attribute__ ((bitwidth(1588))) int1588;
typedef int __attribute__ ((bitwidth(1589))) int1589;
typedef int __attribute__ ((bitwidth(1590))) int1590;
typedef int __attribute__ ((bitwidth(1591))) int1591;
typedef int __attribute__ ((bitwidth(1592))) int1592;
typedef int __attribute__ ((bitwidth(1593))) int1593;
typedef int __attribute__ ((bitwidth(1594))) int1594;
typedef int __attribute__ ((bitwidth(1595))) int1595;
typedef int __attribute__ ((bitwidth(1596))) int1596;
typedef int __attribute__ ((bitwidth(1597))) int1597;
typedef int __attribute__ ((bitwidth(1598))) int1598;
typedef int __attribute__ ((bitwidth(1599))) int1599;
typedef int __attribute__ ((bitwidth(1600))) int1600;
typedef int __attribute__ ((bitwidth(1601))) int1601;
typedef int __attribute__ ((bitwidth(1602))) int1602;
typedef int __attribute__ ((bitwidth(1603))) int1603;
typedef int __attribute__ ((bitwidth(1604))) int1604;
typedef int __attribute__ ((bitwidth(1605))) int1605;
typedef int __attribute__ ((bitwidth(1606))) int1606;
typedef int __attribute__ ((bitwidth(1607))) int1607;
typedef int __attribute__ ((bitwidth(1608))) int1608;
typedef int __attribute__ ((bitwidth(1609))) int1609;
typedef int __attribute__ ((bitwidth(1610))) int1610;
typedef int __attribute__ ((bitwidth(1611))) int1611;
typedef int __attribute__ ((bitwidth(1612))) int1612;
typedef int __attribute__ ((bitwidth(1613))) int1613;
typedef int __attribute__ ((bitwidth(1614))) int1614;
typedef int __attribute__ ((bitwidth(1615))) int1615;
typedef int __attribute__ ((bitwidth(1616))) int1616;
typedef int __attribute__ ((bitwidth(1617))) int1617;
typedef int __attribute__ ((bitwidth(1618))) int1618;
typedef int __attribute__ ((bitwidth(1619))) int1619;
typedef int __attribute__ ((bitwidth(1620))) int1620;
typedef int __attribute__ ((bitwidth(1621))) int1621;
typedef int __attribute__ ((bitwidth(1622))) int1622;
typedef int __attribute__ ((bitwidth(1623))) int1623;
typedef int __attribute__ ((bitwidth(1624))) int1624;
typedef int __attribute__ ((bitwidth(1625))) int1625;
typedef int __attribute__ ((bitwidth(1626))) int1626;
typedef int __attribute__ ((bitwidth(1627))) int1627;
typedef int __attribute__ ((bitwidth(1628))) int1628;
typedef int __attribute__ ((bitwidth(1629))) int1629;
typedef int __attribute__ ((bitwidth(1630))) int1630;
typedef int __attribute__ ((bitwidth(1631))) int1631;
typedef int __attribute__ ((bitwidth(1632))) int1632;
typedef int __attribute__ ((bitwidth(1633))) int1633;
typedef int __attribute__ ((bitwidth(1634))) int1634;
typedef int __attribute__ ((bitwidth(1635))) int1635;
typedef int __attribute__ ((bitwidth(1636))) int1636;
typedef int __attribute__ ((bitwidth(1637))) int1637;
typedef int __attribute__ ((bitwidth(1638))) int1638;
typedef int __attribute__ ((bitwidth(1639))) int1639;
typedef int __attribute__ ((bitwidth(1640))) int1640;
typedef int __attribute__ ((bitwidth(1641))) int1641;
typedef int __attribute__ ((bitwidth(1642))) int1642;
typedef int __attribute__ ((bitwidth(1643))) int1643;
typedef int __attribute__ ((bitwidth(1644))) int1644;
typedef int __attribute__ ((bitwidth(1645))) int1645;
typedef int __attribute__ ((bitwidth(1646))) int1646;
typedef int __attribute__ ((bitwidth(1647))) int1647;
typedef int __attribute__ ((bitwidth(1648))) int1648;
typedef int __attribute__ ((bitwidth(1649))) int1649;
typedef int __attribute__ ((bitwidth(1650))) int1650;
typedef int __attribute__ ((bitwidth(1651))) int1651;
typedef int __attribute__ ((bitwidth(1652))) int1652;
typedef int __attribute__ ((bitwidth(1653))) int1653;
typedef int __attribute__ ((bitwidth(1654))) int1654;
typedef int __attribute__ ((bitwidth(1655))) int1655;
typedef int __attribute__ ((bitwidth(1656))) int1656;
typedef int __attribute__ ((bitwidth(1657))) int1657;
typedef int __attribute__ ((bitwidth(1658))) int1658;
typedef int __attribute__ ((bitwidth(1659))) int1659;
typedef int __attribute__ ((bitwidth(1660))) int1660;
typedef int __attribute__ ((bitwidth(1661))) int1661;
typedef int __attribute__ ((bitwidth(1662))) int1662;
typedef int __attribute__ ((bitwidth(1663))) int1663;
typedef int __attribute__ ((bitwidth(1664))) int1664;
typedef int __attribute__ ((bitwidth(1665))) int1665;
typedef int __attribute__ ((bitwidth(1666))) int1666;
typedef int __attribute__ ((bitwidth(1667))) int1667;
typedef int __attribute__ ((bitwidth(1668))) int1668;
typedef int __attribute__ ((bitwidth(1669))) int1669;
typedef int __attribute__ ((bitwidth(1670))) int1670;
typedef int __attribute__ ((bitwidth(1671))) int1671;
typedef int __attribute__ ((bitwidth(1672))) int1672;
typedef int __attribute__ ((bitwidth(1673))) int1673;
typedef int __attribute__ ((bitwidth(1674))) int1674;
typedef int __attribute__ ((bitwidth(1675))) int1675;
typedef int __attribute__ ((bitwidth(1676))) int1676;
typedef int __attribute__ ((bitwidth(1677))) int1677;
typedef int __attribute__ ((bitwidth(1678))) int1678;
typedef int __attribute__ ((bitwidth(1679))) int1679;
typedef int __attribute__ ((bitwidth(1680))) int1680;
typedef int __attribute__ ((bitwidth(1681))) int1681;
typedef int __attribute__ ((bitwidth(1682))) int1682;
typedef int __attribute__ ((bitwidth(1683))) int1683;
typedef int __attribute__ ((bitwidth(1684))) int1684;
typedef int __attribute__ ((bitwidth(1685))) int1685;
typedef int __attribute__ ((bitwidth(1686))) int1686;
typedef int __attribute__ ((bitwidth(1687))) int1687;
typedef int __attribute__ ((bitwidth(1688))) int1688;
typedef int __attribute__ ((bitwidth(1689))) int1689;
typedef int __attribute__ ((bitwidth(1690))) int1690;
typedef int __attribute__ ((bitwidth(1691))) int1691;
typedef int __attribute__ ((bitwidth(1692))) int1692;
typedef int __attribute__ ((bitwidth(1693))) int1693;
typedef int __attribute__ ((bitwidth(1694))) int1694;
typedef int __attribute__ ((bitwidth(1695))) int1695;
typedef int __attribute__ ((bitwidth(1696))) int1696;
typedef int __attribute__ ((bitwidth(1697))) int1697;
typedef int __attribute__ ((bitwidth(1698))) int1698;
typedef int __attribute__ ((bitwidth(1699))) int1699;
typedef int __attribute__ ((bitwidth(1700))) int1700;
typedef int __attribute__ ((bitwidth(1701))) int1701;
typedef int __attribute__ ((bitwidth(1702))) int1702;
typedef int __attribute__ ((bitwidth(1703))) int1703;
typedef int __attribute__ ((bitwidth(1704))) int1704;
typedef int __attribute__ ((bitwidth(1705))) int1705;
typedef int __attribute__ ((bitwidth(1706))) int1706;
typedef int __attribute__ ((bitwidth(1707))) int1707;
typedef int __attribute__ ((bitwidth(1708))) int1708;
typedef int __attribute__ ((bitwidth(1709))) int1709;
typedef int __attribute__ ((bitwidth(1710))) int1710;
typedef int __attribute__ ((bitwidth(1711))) int1711;
typedef int __attribute__ ((bitwidth(1712))) int1712;
typedef int __attribute__ ((bitwidth(1713))) int1713;
typedef int __attribute__ ((bitwidth(1714))) int1714;
typedef int __attribute__ ((bitwidth(1715))) int1715;
typedef int __attribute__ ((bitwidth(1716))) int1716;
typedef int __attribute__ ((bitwidth(1717))) int1717;
typedef int __attribute__ ((bitwidth(1718))) int1718;
typedef int __attribute__ ((bitwidth(1719))) int1719;
typedef int __attribute__ ((bitwidth(1720))) int1720;
typedef int __attribute__ ((bitwidth(1721))) int1721;
typedef int __attribute__ ((bitwidth(1722))) int1722;
typedef int __attribute__ ((bitwidth(1723))) int1723;
typedef int __attribute__ ((bitwidth(1724))) int1724;
typedef int __attribute__ ((bitwidth(1725))) int1725;
typedef int __attribute__ ((bitwidth(1726))) int1726;
typedef int __attribute__ ((bitwidth(1727))) int1727;
typedef int __attribute__ ((bitwidth(1728))) int1728;
typedef int __attribute__ ((bitwidth(1729))) int1729;
typedef int __attribute__ ((bitwidth(1730))) int1730;
typedef int __attribute__ ((bitwidth(1731))) int1731;
typedef int __attribute__ ((bitwidth(1732))) int1732;
typedef int __attribute__ ((bitwidth(1733))) int1733;
typedef int __attribute__ ((bitwidth(1734))) int1734;
typedef int __attribute__ ((bitwidth(1735))) int1735;
typedef int __attribute__ ((bitwidth(1736))) int1736;
typedef int __attribute__ ((bitwidth(1737))) int1737;
typedef int __attribute__ ((bitwidth(1738))) int1738;
typedef int __attribute__ ((bitwidth(1739))) int1739;
typedef int __attribute__ ((bitwidth(1740))) int1740;
typedef int __attribute__ ((bitwidth(1741))) int1741;
typedef int __attribute__ ((bitwidth(1742))) int1742;
typedef int __attribute__ ((bitwidth(1743))) int1743;
typedef int __attribute__ ((bitwidth(1744))) int1744;
typedef int __attribute__ ((bitwidth(1745))) int1745;
typedef int __attribute__ ((bitwidth(1746))) int1746;
typedef int __attribute__ ((bitwidth(1747))) int1747;
typedef int __attribute__ ((bitwidth(1748))) int1748;
typedef int __attribute__ ((bitwidth(1749))) int1749;
typedef int __attribute__ ((bitwidth(1750))) int1750;
typedef int __attribute__ ((bitwidth(1751))) int1751;
typedef int __attribute__ ((bitwidth(1752))) int1752;
typedef int __attribute__ ((bitwidth(1753))) int1753;
typedef int __attribute__ ((bitwidth(1754))) int1754;
typedef int __attribute__ ((bitwidth(1755))) int1755;
typedef int __attribute__ ((bitwidth(1756))) int1756;
typedef int __attribute__ ((bitwidth(1757))) int1757;
typedef int __attribute__ ((bitwidth(1758))) int1758;
typedef int __attribute__ ((bitwidth(1759))) int1759;
typedef int __attribute__ ((bitwidth(1760))) int1760;
typedef int __attribute__ ((bitwidth(1761))) int1761;
typedef int __attribute__ ((bitwidth(1762))) int1762;
typedef int __attribute__ ((bitwidth(1763))) int1763;
typedef int __attribute__ ((bitwidth(1764))) int1764;
typedef int __attribute__ ((bitwidth(1765))) int1765;
typedef int __attribute__ ((bitwidth(1766))) int1766;
typedef int __attribute__ ((bitwidth(1767))) int1767;
typedef int __attribute__ ((bitwidth(1768))) int1768;
typedef int __attribute__ ((bitwidth(1769))) int1769;
typedef int __attribute__ ((bitwidth(1770))) int1770;
typedef int __attribute__ ((bitwidth(1771))) int1771;
typedef int __attribute__ ((bitwidth(1772))) int1772;
typedef int __attribute__ ((bitwidth(1773))) int1773;
typedef int __attribute__ ((bitwidth(1774))) int1774;
typedef int __attribute__ ((bitwidth(1775))) int1775;
typedef int __attribute__ ((bitwidth(1776))) int1776;
typedef int __attribute__ ((bitwidth(1777))) int1777;
typedef int __attribute__ ((bitwidth(1778))) int1778;
typedef int __attribute__ ((bitwidth(1779))) int1779;
typedef int __attribute__ ((bitwidth(1780))) int1780;
typedef int __attribute__ ((bitwidth(1781))) int1781;
typedef int __attribute__ ((bitwidth(1782))) int1782;
typedef int __attribute__ ((bitwidth(1783))) int1783;
typedef int __attribute__ ((bitwidth(1784))) int1784;
typedef int __attribute__ ((bitwidth(1785))) int1785;
typedef int __attribute__ ((bitwidth(1786))) int1786;
typedef int __attribute__ ((bitwidth(1787))) int1787;
typedef int __attribute__ ((bitwidth(1788))) int1788;
typedef int __attribute__ ((bitwidth(1789))) int1789;
typedef int __attribute__ ((bitwidth(1790))) int1790;
typedef int __attribute__ ((bitwidth(1791))) int1791;
typedef int __attribute__ ((bitwidth(1792))) int1792;
typedef int __attribute__ ((bitwidth(1793))) int1793;
typedef int __attribute__ ((bitwidth(1794))) int1794;
typedef int __attribute__ ((bitwidth(1795))) int1795;
typedef int __attribute__ ((bitwidth(1796))) int1796;
typedef int __attribute__ ((bitwidth(1797))) int1797;
typedef int __attribute__ ((bitwidth(1798))) int1798;
typedef int __attribute__ ((bitwidth(1799))) int1799;
typedef int __attribute__ ((bitwidth(1800))) int1800;
typedef int __attribute__ ((bitwidth(1801))) int1801;
typedef int __attribute__ ((bitwidth(1802))) int1802;
typedef int __attribute__ ((bitwidth(1803))) int1803;
typedef int __attribute__ ((bitwidth(1804))) int1804;
typedef int __attribute__ ((bitwidth(1805))) int1805;
typedef int __attribute__ ((bitwidth(1806))) int1806;
typedef int __attribute__ ((bitwidth(1807))) int1807;
typedef int __attribute__ ((bitwidth(1808))) int1808;
typedef int __attribute__ ((bitwidth(1809))) int1809;
typedef int __attribute__ ((bitwidth(1810))) int1810;
typedef int __attribute__ ((bitwidth(1811))) int1811;
typedef int __attribute__ ((bitwidth(1812))) int1812;
typedef int __attribute__ ((bitwidth(1813))) int1813;
typedef int __attribute__ ((bitwidth(1814))) int1814;
typedef int __attribute__ ((bitwidth(1815))) int1815;
typedef int __attribute__ ((bitwidth(1816))) int1816;
typedef int __attribute__ ((bitwidth(1817))) int1817;
typedef int __attribute__ ((bitwidth(1818))) int1818;
typedef int __attribute__ ((bitwidth(1819))) int1819;
typedef int __attribute__ ((bitwidth(1820))) int1820;
typedef int __attribute__ ((bitwidth(1821))) int1821;
typedef int __attribute__ ((bitwidth(1822))) int1822;
typedef int __attribute__ ((bitwidth(1823))) int1823;
typedef int __attribute__ ((bitwidth(1824))) int1824;
typedef int __attribute__ ((bitwidth(1825))) int1825;
typedef int __attribute__ ((bitwidth(1826))) int1826;
typedef int __attribute__ ((bitwidth(1827))) int1827;
typedef int __attribute__ ((bitwidth(1828))) int1828;
typedef int __attribute__ ((bitwidth(1829))) int1829;
typedef int __attribute__ ((bitwidth(1830))) int1830;
typedef int __attribute__ ((bitwidth(1831))) int1831;
typedef int __attribute__ ((bitwidth(1832))) int1832;
typedef int __attribute__ ((bitwidth(1833))) int1833;
typedef int __attribute__ ((bitwidth(1834))) int1834;
typedef int __attribute__ ((bitwidth(1835))) int1835;
typedef int __attribute__ ((bitwidth(1836))) int1836;
typedef int __attribute__ ((bitwidth(1837))) int1837;
typedef int __attribute__ ((bitwidth(1838))) int1838;
typedef int __attribute__ ((bitwidth(1839))) int1839;
typedef int __attribute__ ((bitwidth(1840))) int1840;
typedef int __attribute__ ((bitwidth(1841))) int1841;
typedef int __attribute__ ((bitwidth(1842))) int1842;
typedef int __attribute__ ((bitwidth(1843))) int1843;
typedef int __attribute__ ((bitwidth(1844))) int1844;
typedef int __attribute__ ((bitwidth(1845))) int1845;
typedef int __attribute__ ((bitwidth(1846))) int1846;
typedef int __attribute__ ((bitwidth(1847))) int1847;
typedef int __attribute__ ((bitwidth(1848))) int1848;
typedef int __attribute__ ((bitwidth(1849))) int1849;
typedef int __attribute__ ((bitwidth(1850))) int1850;
typedef int __attribute__ ((bitwidth(1851))) int1851;
typedef int __attribute__ ((bitwidth(1852))) int1852;
typedef int __attribute__ ((bitwidth(1853))) int1853;
typedef int __attribute__ ((bitwidth(1854))) int1854;
typedef int __attribute__ ((bitwidth(1855))) int1855;
typedef int __attribute__ ((bitwidth(1856))) int1856;
typedef int __attribute__ ((bitwidth(1857))) int1857;
typedef int __attribute__ ((bitwidth(1858))) int1858;
typedef int __attribute__ ((bitwidth(1859))) int1859;
typedef int __attribute__ ((bitwidth(1860))) int1860;
typedef int __attribute__ ((bitwidth(1861))) int1861;
typedef int __attribute__ ((bitwidth(1862))) int1862;
typedef int __attribute__ ((bitwidth(1863))) int1863;
typedef int __attribute__ ((bitwidth(1864))) int1864;
typedef int __attribute__ ((bitwidth(1865))) int1865;
typedef int __attribute__ ((bitwidth(1866))) int1866;
typedef int __attribute__ ((bitwidth(1867))) int1867;
typedef int __attribute__ ((bitwidth(1868))) int1868;
typedef int __attribute__ ((bitwidth(1869))) int1869;
typedef int __attribute__ ((bitwidth(1870))) int1870;
typedef int __attribute__ ((bitwidth(1871))) int1871;
typedef int __attribute__ ((bitwidth(1872))) int1872;
typedef int __attribute__ ((bitwidth(1873))) int1873;
typedef int __attribute__ ((bitwidth(1874))) int1874;
typedef int __attribute__ ((bitwidth(1875))) int1875;
typedef int __attribute__ ((bitwidth(1876))) int1876;
typedef int __attribute__ ((bitwidth(1877))) int1877;
typedef int __attribute__ ((bitwidth(1878))) int1878;
typedef int __attribute__ ((bitwidth(1879))) int1879;
typedef int __attribute__ ((bitwidth(1880))) int1880;
typedef int __attribute__ ((bitwidth(1881))) int1881;
typedef int __attribute__ ((bitwidth(1882))) int1882;
typedef int __attribute__ ((bitwidth(1883))) int1883;
typedef int __attribute__ ((bitwidth(1884))) int1884;
typedef int __attribute__ ((bitwidth(1885))) int1885;
typedef int __attribute__ ((bitwidth(1886))) int1886;
typedef int __attribute__ ((bitwidth(1887))) int1887;
typedef int __attribute__ ((bitwidth(1888))) int1888;
typedef int __attribute__ ((bitwidth(1889))) int1889;
typedef int __attribute__ ((bitwidth(1890))) int1890;
typedef int __attribute__ ((bitwidth(1891))) int1891;
typedef int __attribute__ ((bitwidth(1892))) int1892;
typedef int __attribute__ ((bitwidth(1893))) int1893;
typedef int __attribute__ ((bitwidth(1894))) int1894;
typedef int __attribute__ ((bitwidth(1895))) int1895;
typedef int __attribute__ ((bitwidth(1896))) int1896;
typedef int __attribute__ ((bitwidth(1897))) int1897;
typedef int __attribute__ ((bitwidth(1898))) int1898;
typedef int __attribute__ ((bitwidth(1899))) int1899;
typedef int __attribute__ ((bitwidth(1900))) int1900;
typedef int __attribute__ ((bitwidth(1901))) int1901;
typedef int __attribute__ ((bitwidth(1902))) int1902;
typedef int __attribute__ ((bitwidth(1903))) int1903;
typedef int __attribute__ ((bitwidth(1904))) int1904;
typedef int __attribute__ ((bitwidth(1905))) int1905;
typedef int __attribute__ ((bitwidth(1906))) int1906;
typedef int __attribute__ ((bitwidth(1907))) int1907;
typedef int __attribute__ ((bitwidth(1908))) int1908;
typedef int __attribute__ ((bitwidth(1909))) int1909;
typedef int __attribute__ ((bitwidth(1910))) int1910;
typedef int __attribute__ ((bitwidth(1911))) int1911;
typedef int __attribute__ ((bitwidth(1912))) int1912;
typedef int __attribute__ ((bitwidth(1913))) int1913;
typedef int __attribute__ ((bitwidth(1914))) int1914;
typedef int __attribute__ ((bitwidth(1915))) int1915;
typedef int __attribute__ ((bitwidth(1916))) int1916;
typedef int __attribute__ ((bitwidth(1917))) int1917;
typedef int __attribute__ ((bitwidth(1918))) int1918;
typedef int __attribute__ ((bitwidth(1919))) int1919;
typedef int __attribute__ ((bitwidth(1920))) int1920;
typedef int __attribute__ ((bitwidth(1921))) int1921;
typedef int __attribute__ ((bitwidth(1922))) int1922;
typedef int __attribute__ ((bitwidth(1923))) int1923;
typedef int __attribute__ ((bitwidth(1924))) int1924;
typedef int __attribute__ ((bitwidth(1925))) int1925;
typedef int __attribute__ ((bitwidth(1926))) int1926;
typedef int __attribute__ ((bitwidth(1927))) int1927;
typedef int __attribute__ ((bitwidth(1928))) int1928;
typedef int __attribute__ ((bitwidth(1929))) int1929;
typedef int __attribute__ ((bitwidth(1930))) int1930;
typedef int __attribute__ ((bitwidth(1931))) int1931;
typedef int __attribute__ ((bitwidth(1932))) int1932;
typedef int __attribute__ ((bitwidth(1933))) int1933;
typedef int __attribute__ ((bitwidth(1934))) int1934;
typedef int __attribute__ ((bitwidth(1935))) int1935;
typedef int __attribute__ ((bitwidth(1936))) int1936;
typedef int __attribute__ ((bitwidth(1937))) int1937;
typedef int __attribute__ ((bitwidth(1938))) int1938;
typedef int __attribute__ ((bitwidth(1939))) int1939;
typedef int __attribute__ ((bitwidth(1940))) int1940;
typedef int __attribute__ ((bitwidth(1941))) int1941;
typedef int __attribute__ ((bitwidth(1942))) int1942;
typedef int __attribute__ ((bitwidth(1943))) int1943;
typedef int __attribute__ ((bitwidth(1944))) int1944;
typedef int __attribute__ ((bitwidth(1945))) int1945;
typedef int __attribute__ ((bitwidth(1946))) int1946;
typedef int __attribute__ ((bitwidth(1947))) int1947;
typedef int __attribute__ ((bitwidth(1948))) int1948;
typedef int __attribute__ ((bitwidth(1949))) int1949;
typedef int __attribute__ ((bitwidth(1950))) int1950;
typedef int __attribute__ ((bitwidth(1951))) int1951;
typedef int __attribute__ ((bitwidth(1952))) int1952;
typedef int __attribute__ ((bitwidth(1953))) int1953;
typedef int __attribute__ ((bitwidth(1954))) int1954;
typedef int __attribute__ ((bitwidth(1955))) int1955;
typedef int __attribute__ ((bitwidth(1956))) int1956;
typedef int __attribute__ ((bitwidth(1957))) int1957;
typedef int __attribute__ ((bitwidth(1958))) int1958;
typedef int __attribute__ ((bitwidth(1959))) int1959;
typedef int __attribute__ ((bitwidth(1960))) int1960;
typedef int __attribute__ ((bitwidth(1961))) int1961;
typedef int __attribute__ ((bitwidth(1962))) int1962;
typedef int __attribute__ ((bitwidth(1963))) int1963;
typedef int __attribute__ ((bitwidth(1964))) int1964;
typedef int __attribute__ ((bitwidth(1965))) int1965;
typedef int __attribute__ ((bitwidth(1966))) int1966;
typedef int __attribute__ ((bitwidth(1967))) int1967;
typedef int __attribute__ ((bitwidth(1968))) int1968;
typedef int __attribute__ ((bitwidth(1969))) int1969;
typedef int __attribute__ ((bitwidth(1970))) int1970;
typedef int __attribute__ ((bitwidth(1971))) int1971;
typedef int __attribute__ ((bitwidth(1972))) int1972;
typedef int __attribute__ ((bitwidth(1973))) int1973;
typedef int __attribute__ ((bitwidth(1974))) int1974;
typedef int __attribute__ ((bitwidth(1975))) int1975;
typedef int __attribute__ ((bitwidth(1976))) int1976;
typedef int __attribute__ ((bitwidth(1977))) int1977;
typedef int __attribute__ ((bitwidth(1978))) int1978;
typedef int __attribute__ ((bitwidth(1979))) int1979;
typedef int __attribute__ ((bitwidth(1980))) int1980;
typedef int __attribute__ ((bitwidth(1981))) int1981;
typedef int __attribute__ ((bitwidth(1982))) int1982;
typedef int __attribute__ ((bitwidth(1983))) int1983;
typedef int __attribute__ ((bitwidth(1984))) int1984;
typedef int __attribute__ ((bitwidth(1985))) int1985;
typedef int __attribute__ ((bitwidth(1986))) int1986;
typedef int __attribute__ ((bitwidth(1987))) int1987;
typedef int __attribute__ ((bitwidth(1988))) int1988;
typedef int __attribute__ ((bitwidth(1989))) int1989;
typedef int __attribute__ ((bitwidth(1990))) int1990;
typedef int __attribute__ ((bitwidth(1991))) int1991;
typedef int __attribute__ ((bitwidth(1992))) int1992;
typedef int __attribute__ ((bitwidth(1993))) int1993;
typedef int __attribute__ ((bitwidth(1994))) int1994;
typedef int __attribute__ ((bitwidth(1995))) int1995;
typedef int __attribute__ ((bitwidth(1996))) int1996;
typedef int __attribute__ ((bitwidth(1997))) int1997;
typedef int __attribute__ ((bitwidth(1998))) int1998;
typedef int __attribute__ ((bitwidth(1999))) int1999;
typedef int __attribute__ ((bitwidth(2000))) int2000;
typedef int __attribute__ ((bitwidth(2001))) int2001;
typedef int __attribute__ ((bitwidth(2002))) int2002;
typedef int __attribute__ ((bitwidth(2003))) int2003;
typedef int __attribute__ ((bitwidth(2004))) int2004;
typedef int __attribute__ ((bitwidth(2005))) int2005;
typedef int __attribute__ ((bitwidth(2006))) int2006;
typedef int __attribute__ ((bitwidth(2007))) int2007;
typedef int __attribute__ ((bitwidth(2008))) int2008;
typedef int __attribute__ ((bitwidth(2009))) int2009;
typedef int __attribute__ ((bitwidth(2010))) int2010;
typedef int __attribute__ ((bitwidth(2011))) int2011;
typedef int __attribute__ ((bitwidth(2012))) int2012;
typedef int __attribute__ ((bitwidth(2013))) int2013;
typedef int __attribute__ ((bitwidth(2014))) int2014;
typedef int __attribute__ ((bitwidth(2015))) int2015;
typedef int __attribute__ ((bitwidth(2016))) int2016;
typedef int __attribute__ ((bitwidth(2017))) int2017;
typedef int __attribute__ ((bitwidth(2018))) int2018;
typedef int __attribute__ ((bitwidth(2019))) int2019;
typedef int __attribute__ ((bitwidth(2020))) int2020;
typedef int __attribute__ ((bitwidth(2021))) int2021;
typedef int __attribute__ ((bitwidth(2022))) int2022;
typedef int __attribute__ ((bitwidth(2023))) int2023;
typedef int __attribute__ ((bitwidth(2024))) int2024;
typedef int __attribute__ ((bitwidth(2025))) int2025;
typedef int __attribute__ ((bitwidth(2026))) int2026;
typedef int __attribute__ ((bitwidth(2027))) int2027;
typedef int __attribute__ ((bitwidth(2028))) int2028;
typedef int __attribute__ ((bitwidth(2029))) int2029;
typedef int __attribute__ ((bitwidth(2030))) int2030;
typedef int __attribute__ ((bitwidth(2031))) int2031;
typedef int __attribute__ ((bitwidth(2032))) int2032;
typedef int __attribute__ ((bitwidth(2033))) int2033;
typedef int __attribute__ ((bitwidth(2034))) int2034;
typedef int __attribute__ ((bitwidth(2035))) int2035;
typedef int __attribute__ ((bitwidth(2036))) int2036;
typedef int __attribute__ ((bitwidth(2037))) int2037;
typedef int __attribute__ ((bitwidth(2038))) int2038;
typedef int __attribute__ ((bitwidth(2039))) int2039;
typedef int __attribute__ ((bitwidth(2040))) int2040;
typedef int __attribute__ ((bitwidth(2041))) int2041;
typedef int __attribute__ ((bitwidth(2042))) int2042;
typedef int __attribute__ ((bitwidth(2043))) int2043;
typedef int __attribute__ ((bitwidth(2044))) int2044;
typedef int __attribute__ ((bitwidth(2045))) int2045;
typedef int __attribute__ ((bitwidth(2046))) int2046;
typedef int __attribute__ ((bitwidth(2047))) int2047;
typedef int __attribute__ ((bitwidth(2048))) int2048;
#pragma line 99 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h" 2
#pragma line 108 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h"
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.def" 1
#pragma empty_line
#pragma empty_line
typedef unsigned int __attribute__ ((bitwidth(1))) uint1;
typedef unsigned int __attribute__ ((bitwidth(2))) uint2;
typedef unsigned int __attribute__ ((bitwidth(3))) uint3;
typedef unsigned int __attribute__ ((bitwidth(4))) uint4;
typedef unsigned int __attribute__ ((bitwidth(5))) uint5;
typedef unsigned int __attribute__ ((bitwidth(6))) uint6;
typedef unsigned int __attribute__ ((bitwidth(7))) uint7;
typedef unsigned int __attribute__ ((bitwidth(8))) uint8;
typedef unsigned int __attribute__ ((bitwidth(9))) uint9;
typedef unsigned int __attribute__ ((bitwidth(10))) uint10;
typedef unsigned int __attribute__ ((bitwidth(11))) uint11;
typedef unsigned int __attribute__ ((bitwidth(12))) uint12;
typedef unsigned int __attribute__ ((bitwidth(13))) uint13;
typedef unsigned int __attribute__ ((bitwidth(14))) uint14;
typedef unsigned int __attribute__ ((bitwidth(15))) uint15;
typedef unsigned int __attribute__ ((bitwidth(16))) uint16;
typedef unsigned int __attribute__ ((bitwidth(17))) uint17;
typedef unsigned int __attribute__ ((bitwidth(18))) uint18;
typedef unsigned int __attribute__ ((bitwidth(19))) uint19;
typedef unsigned int __attribute__ ((bitwidth(20))) uint20;
typedef unsigned int __attribute__ ((bitwidth(21))) uint21;
typedef unsigned int __attribute__ ((bitwidth(22))) uint22;
typedef unsigned int __attribute__ ((bitwidth(23))) uint23;
typedef unsigned int __attribute__ ((bitwidth(24))) uint24;
typedef unsigned int __attribute__ ((bitwidth(25))) uint25;
typedef unsigned int __attribute__ ((bitwidth(26))) uint26;
typedef unsigned int __attribute__ ((bitwidth(27))) uint27;
typedef unsigned int __attribute__ ((bitwidth(28))) uint28;
typedef unsigned int __attribute__ ((bitwidth(29))) uint29;
typedef unsigned int __attribute__ ((bitwidth(30))) uint30;
typedef unsigned int __attribute__ ((bitwidth(31))) uint31;
typedef unsigned int __attribute__ ((bitwidth(32))) uint32;
typedef unsigned int __attribute__ ((bitwidth(33))) uint33;
typedef unsigned int __attribute__ ((bitwidth(34))) uint34;
typedef unsigned int __attribute__ ((bitwidth(35))) uint35;
typedef unsigned int __attribute__ ((bitwidth(36))) uint36;
typedef unsigned int __attribute__ ((bitwidth(37))) uint37;
typedef unsigned int __attribute__ ((bitwidth(38))) uint38;
typedef unsigned int __attribute__ ((bitwidth(39))) uint39;
typedef unsigned int __attribute__ ((bitwidth(40))) uint40;
typedef unsigned int __attribute__ ((bitwidth(41))) uint41;
typedef unsigned int __attribute__ ((bitwidth(42))) uint42;
typedef unsigned int __attribute__ ((bitwidth(43))) uint43;
typedef unsigned int __attribute__ ((bitwidth(44))) uint44;
typedef unsigned int __attribute__ ((bitwidth(45))) uint45;
typedef unsigned int __attribute__ ((bitwidth(46))) uint46;
typedef unsigned int __attribute__ ((bitwidth(47))) uint47;
typedef unsigned int __attribute__ ((bitwidth(48))) uint48;
typedef unsigned int __attribute__ ((bitwidth(49))) uint49;
typedef unsigned int __attribute__ ((bitwidth(50))) uint50;
typedef unsigned int __attribute__ ((bitwidth(51))) uint51;
typedef unsigned int __attribute__ ((bitwidth(52))) uint52;
typedef unsigned int __attribute__ ((bitwidth(53))) uint53;
typedef unsigned int __attribute__ ((bitwidth(54))) uint54;
typedef unsigned int __attribute__ ((bitwidth(55))) uint55;
typedef unsigned int __attribute__ ((bitwidth(56))) uint56;
typedef unsigned int __attribute__ ((bitwidth(57))) uint57;
typedef unsigned int __attribute__ ((bitwidth(58))) uint58;
typedef unsigned int __attribute__ ((bitwidth(59))) uint59;
typedef unsigned int __attribute__ ((bitwidth(60))) uint60;
typedef unsigned int __attribute__ ((bitwidth(61))) uint61;
typedef unsigned int __attribute__ ((bitwidth(62))) uint62;
typedef unsigned int __attribute__ ((bitwidth(63))) uint63;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef unsigned int __attribute__ ((bitwidth(65))) uint65;
typedef unsigned int __attribute__ ((bitwidth(66))) uint66;
typedef unsigned int __attribute__ ((bitwidth(67))) uint67;
typedef unsigned int __attribute__ ((bitwidth(68))) uint68;
typedef unsigned int __attribute__ ((bitwidth(69))) uint69;
typedef unsigned int __attribute__ ((bitwidth(70))) uint70;
typedef unsigned int __attribute__ ((bitwidth(71))) uint71;
typedef unsigned int __attribute__ ((bitwidth(72))) uint72;
typedef unsigned int __attribute__ ((bitwidth(73))) uint73;
typedef unsigned int __attribute__ ((bitwidth(74))) uint74;
typedef unsigned int __attribute__ ((bitwidth(75))) uint75;
typedef unsigned int __attribute__ ((bitwidth(76))) uint76;
typedef unsigned int __attribute__ ((bitwidth(77))) uint77;
typedef unsigned int __attribute__ ((bitwidth(78))) uint78;
typedef unsigned int __attribute__ ((bitwidth(79))) uint79;
typedef unsigned int __attribute__ ((bitwidth(80))) uint80;
typedef unsigned int __attribute__ ((bitwidth(81))) uint81;
typedef unsigned int __attribute__ ((bitwidth(82))) uint82;
typedef unsigned int __attribute__ ((bitwidth(83))) uint83;
typedef unsigned int __attribute__ ((bitwidth(84))) uint84;
typedef unsigned int __attribute__ ((bitwidth(85))) uint85;
typedef unsigned int __attribute__ ((bitwidth(86))) uint86;
typedef unsigned int __attribute__ ((bitwidth(87))) uint87;
typedef unsigned int __attribute__ ((bitwidth(88))) uint88;
typedef unsigned int __attribute__ ((bitwidth(89))) uint89;
typedef unsigned int __attribute__ ((bitwidth(90))) uint90;
typedef unsigned int __attribute__ ((bitwidth(91))) uint91;
typedef unsigned int __attribute__ ((bitwidth(92))) uint92;
typedef unsigned int __attribute__ ((bitwidth(93))) uint93;
typedef unsigned int __attribute__ ((bitwidth(94))) uint94;
typedef unsigned int __attribute__ ((bitwidth(95))) uint95;
typedef unsigned int __attribute__ ((bitwidth(96))) uint96;
typedef unsigned int __attribute__ ((bitwidth(97))) uint97;
typedef unsigned int __attribute__ ((bitwidth(98))) uint98;
typedef unsigned int __attribute__ ((bitwidth(99))) uint99;
typedef unsigned int __attribute__ ((bitwidth(100))) uint100;
typedef unsigned int __attribute__ ((bitwidth(101))) uint101;
typedef unsigned int __attribute__ ((bitwidth(102))) uint102;
typedef unsigned int __attribute__ ((bitwidth(103))) uint103;
typedef unsigned int __attribute__ ((bitwidth(104))) uint104;
typedef unsigned int __attribute__ ((bitwidth(105))) uint105;
typedef unsigned int __attribute__ ((bitwidth(106))) uint106;
typedef unsigned int __attribute__ ((bitwidth(107))) uint107;
typedef unsigned int __attribute__ ((bitwidth(108))) uint108;
typedef unsigned int __attribute__ ((bitwidth(109))) uint109;
typedef unsigned int __attribute__ ((bitwidth(110))) uint110;
typedef unsigned int __attribute__ ((bitwidth(111))) uint111;
typedef unsigned int __attribute__ ((bitwidth(112))) uint112;
typedef unsigned int __attribute__ ((bitwidth(113))) uint113;
typedef unsigned int __attribute__ ((bitwidth(114))) uint114;
typedef unsigned int __attribute__ ((bitwidth(115))) uint115;
typedef unsigned int __attribute__ ((bitwidth(116))) uint116;
typedef unsigned int __attribute__ ((bitwidth(117))) uint117;
typedef unsigned int __attribute__ ((bitwidth(118))) uint118;
typedef unsigned int __attribute__ ((bitwidth(119))) uint119;
typedef unsigned int __attribute__ ((bitwidth(120))) uint120;
typedef unsigned int __attribute__ ((bitwidth(121))) uint121;
typedef unsigned int __attribute__ ((bitwidth(122))) uint122;
typedef unsigned int __attribute__ ((bitwidth(123))) uint123;
typedef unsigned int __attribute__ ((bitwidth(124))) uint124;
typedef unsigned int __attribute__ ((bitwidth(125))) uint125;
typedef unsigned int __attribute__ ((bitwidth(126))) uint126;
typedef unsigned int __attribute__ ((bitwidth(127))) uint127;
typedef unsigned int __attribute__ ((bitwidth(128))) uint128;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef unsigned int __attribute__ ((bitwidth(129))) uint129;
typedef unsigned int __attribute__ ((bitwidth(130))) uint130;
typedef unsigned int __attribute__ ((bitwidth(131))) uint131;
typedef unsigned int __attribute__ ((bitwidth(132))) uint132;
typedef unsigned int __attribute__ ((bitwidth(133))) uint133;
typedef unsigned int __attribute__ ((bitwidth(134))) uint134;
typedef unsigned int __attribute__ ((bitwidth(135))) uint135;
typedef unsigned int __attribute__ ((bitwidth(136))) uint136;
typedef unsigned int __attribute__ ((bitwidth(137))) uint137;
typedef unsigned int __attribute__ ((bitwidth(138))) uint138;
typedef unsigned int __attribute__ ((bitwidth(139))) uint139;
typedef unsigned int __attribute__ ((bitwidth(140))) uint140;
typedef unsigned int __attribute__ ((bitwidth(141))) uint141;
typedef unsigned int __attribute__ ((bitwidth(142))) uint142;
typedef unsigned int __attribute__ ((bitwidth(143))) uint143;
typedef unsigned int __attribute__ ((bitwidth(144))) uint144;
typedef unsigned int __attribute__ ((bitwidth(145))) uint145;
typedef unsigned int __attribute__ ((bitwidth(146))) uint146;
typedef unsigned int __attribute__ ((bitwidth(147))) uint147;
typedef unsigned int __attribute__ ((bitwidth(148))) uint148;
typedef unsigned int __attribute__ ((bitwidth(149))) uint149;
typedef unsigned int __attribute__ ((bitwidth(150))) uint150;
typedef unsigned int __attribute__ ((bitwidth(151))) uint151;
typedef unsigned int __attribute__ ((bitwidth(152))) uint152;
typedef unsigned int __attribute__ ((bitwidth(153))) uint153;
typedef unsigned int __attribute__ ((bitwidth(154))) uint154;
typedef unsigned int __attribute__ ((bitwidth(155))) uint155;
typedef unsigned int __attribute__ ((bitwidth(156))) uint156;
typedef unsigned int __attribute__ ((bitwidth(157))) uint157;
typedef unsigned int __attribute__ ((bitwidth(158))) uint158;
typedef unsigned int __attribute__ ((bitwidth(159))) uint159;
typedef unsigned int __attribute__ ((bitwidth(160))) uint160;
typedef unsigned int __attribute__ ((bitwidth(161))) uint161;
typedef unsigned int __attribute__ ((bitwidth(162))) uint162;
typedef unsigned int __attribute__ ((bitwidth(163))) uint163;
typedef unsigned int __attribute__ ((bitwidth(164))) uint164;
typedef unsigned int __attribute__ ((bitwidth(165))) uint165;
typedef unsigned int __attribute__ ((bitwidth(166))) uint166;
typedef unsigned int __attribute__ ((bitwidth(167))) uint167;
typedef unsigned int __attribute__ ((bitwidth(168))) uint168;
typedef unsigned int __attribute__ ((bitwidth(169))) uint169;
typedef unsigned int __attribute__ ((bitwidth(170))) uint170;
typedef unsigned int __attribute__ ((bitwidth(171))) uint171;
typedef unsigned int __attribute__ ((bitwidth(172))) uint172;
typedef unsigned int __attribute__ ((bitwidth(173))) uint173;
typedef unsigned int __attribute__ ((bitwidth(174))) uint174;
typedef unsigned int __attribute__ ((bitwidth(175))) uint175;
typedef unsigned int __attribute__ ((bitwidth(176))) uint176;
typedef unsigned int __attribute__ ((bitwidth(177))) uint177;
typedef unsigned int __attribute__ ((bitwidth(178))) uint178;
typedef unsigned int __attribute__ ((bitwidth(179))) uint179;
typedef unsigned int __attribute__ ((bitwidth(180))) uint180;
typedef unsigned int __attribute__ ((bitwidth(181))) uint181;
typedef unsigned int __attribute__ ((bitwidth(182))) uint182;
typedef unsigned int __attribute__ ((bitwidth(183))) uint183;
typedef unsigned int __attribute__ ((bitwidth(184))) uint184;
typedef unsigned int __attribute__ ((bitwidth(185))) uint185;
typedef unsigned int __attribute__ ((bitwidth(186))) uint186;
typedef unsigned int __attribute__ ((bitwidth(187))) uint187;
typedef unsigned int __attribute__ ((bitwidth(188))) uint188;
typedef unsigned int __attribute__ ((bitwidth(189))) uint189;
typedef unsigned int __attribute__ ((bitwidth(190))) uint190;
typedef unsigned int __attribute__ ((bitwidth(191))) uint191;
typedef unsigned int __attribute__ ((bitwidth(192))) uint192;
typedef unsigned int __attribute__ ((bitwidth(193))) uint193;
typedef unsigned int __attribute__ ((bitwidth(194))) uint194;
typedef unsigned int __attribute__ ((bitwidth(195))) uint195;
typedef unsigned int __attribute__ ((bitwidth(196))) uint196;
typedef unsigned int __attribute__ ((bitwidth(197))) uint197;
typedef unsigned int __attribute__ ((bitwidth(198))) uint198;
typedef unsigned int __attribute__ ((bitwidth(199))) uint199;
typedef unsigned int __attribute__ ((bitwidth(200))) uint200;
typedef unsigned int __attribute__ ((bitwidth(201))) uint201;
typedef unsigned int __attribute__ ((bitwidth(202))) uint202;
typedef unsigned int __attribute__ ((bitwidth(203))) uint203;
typedef unsigned int __attribute__ ((bitwidth(204))) uint204;
typedef unsigned int __attribute__ ((bitwidth(205))) uint205;
typedef unsigned int __attribute__ ((bitwidth(206))) uint206;
typedef unsigned int __attribute__ ((bitwidth(207))) uint207;
typedef unsigned int __attribute__ ((bitwidth(208))) uint208;
typedef unsigned int __attribute__ ((bitwidth(209))) uint209;
typedef unsigned int __attribute__ ((bitwidth(210))) uint210;
typedef unsigned int __attribute__ ((bitwidth(211))) uint211;
typedef unsigned int __attribute__ ((bitwidth(212))) uint212;
typedef unsigned int __attribute__ ((bitwidth(213))) uint213;
typedef unsigned int __attribute__ ((bitwidth(214))) uint214;
typedef unsigned int __attribute__ ((bitwidth(215))) uint215;
typedef unsigned int __attribute__ ((bitwidth(216))) uint216;
typedef unsigned int __attribute__ ((bitwidth(217))) uint217;
typedef unsigned int __attribute__ ((bitwidth(218))) uint218;
typedef unsigned int __attribute__ ((bitwidth(219))) uint219;
typedef unsigned int __attribute__ ((bitwidth(220))) uint220;
typedef unsigned int __attribute__ ((bitwidth(221))) uint221;
typedef unsigned int __attribute__ ((bitwidth(222))) uint222;
typedef unsigned int __attribute__ ((bitwidth(223))) uint223;
typedef unsigned int __attribute__ ((bitwidth(224))) uint224;
typedef unsigned int __attribute__ ((bitwidth(225))) uint225;
typedef unsigned int __attribute__ ((bitwidth(226))) uint226;
typedef unsigned int __attribute__ ((bitwidth(227))) uint227;
typedef unsigned int __attribute__ ((bitwidth(228))) uint228;
typedef unsigned int __attribute__ ((bitwidth(229))) uint229;
typedef unsigned int __attribute__ ((bitwidth(230))) uint230;
typedef unsigned int __attribute__ ((bitwidth(231))) uint231;
typedef unsigned int __attribute__ ((bitwidth(232))) uint232;
typedef unsigned int __attribute__ ((bitwidth(233))) uint233;
typedef unsigned int __attribute__ ((bitwidth(234))) uint234;
typedef unsigned int __attribute__ ((bitwidth(235))) uint235;
typedef unsigned int __attribute__ ((bitwidth(236))) uint236;
typedef unsigned int __attribute__ ((bitwidth(237))) uint237;
typedef unsigned int __attribute__ ((bitwidth(238))) uint238;
typedef unsigned int __attribute__ ((bitwidth(239))) uint239;
typedef unsigned int __attribute__ ((bitwidth(240))) uint240;
typedef unsigned int __attribute__ ((bitwidth(241))) uint241;
typedef unsigned int __attribute__ ((bitwidth(242))) uint242;
typedef unsigned int __attribute__ ((bitwidth(243))) uint243;
typedef unsigned int __attribute__ ((bitwidth(244))) uint244;
typedef unsigned int __attribute__ ((bitwidth(245))) uint245;
typedef unsigned int __attribute__ ((bitwidth(246))) uint246;
typedef unsigned int __attribute__ ((bitwidth(247))) uint247;
typedef unsigned int __attribute__ ((bitwidth(248))) uint248;
typedef unsigned int __attribute__ ((bitwidth(249))) uint249;
typedef unsigned int __attribute__ ((bitwidth(250))) uint250;
typedef unsigned int __attribute__ ((bitwidth(251))) uint251;
typedef unsigned int __attribute__ ((bitwidth(252))) uint252;
typedef unsigned int __attribute__ ((bitwidth(253))) uint253;
typedef unsigned int __attribute__ ((bitwidth(254))) uint254;
typedef unsigned int __attribute__ ((bitwidth(255))) uint255;
typedef unsigned int __attribute__ ((bitwidth(256))) uint256;
typedef unsigned int __attribute__ ((bitwidth(257))) uint257;
typedef unsigned int __attribute__ ((bitwidth(258))) uint258;
typedef unsigned int __attribute__ ((bitwidth(259))) uint259;
typedef unsigned int __attribute__ ((bitwidth(260))) uint260;
typedef unsigned int __attribute__ ((bitwidth(261))) uint261;
typedef unsigned int __attribute__ ((bitwidth(262))) uint262;
typedef unsigned int __attribute__ ((bitwidth(263))) uint263;
typedef unsigned int __attribute__ ((bitwidth(264))) uint264;
typedef unsigned int __attribute__ ((bitwidth(265))) uint265;
typedef unsigned int __attribute__ ((bitwidth(266))) uint266;
typedef unsigned int __attribute__ ((bitwidth(267))) uint267;
typedef unsigned int __attribute__ ((bitwidth(268))) uint268;
typedef unsigned int __attribute__ ((bitwidth(269))) uint269;
typedef unsigned int __attribute__ ((bitwidth(270))) uint270;
typedef unsigned int __attribute__ ((bitwidth(271))) uint271;
typedef unsigned int __attribute__ ((bitwidth(272))) uint272;
typedef unsigned int __attribute__ ((bitwidth(273))) uint273;
typedef unsigned int __attribute__ ((bitwidth(274))) uint274;
typedef unsigned int __attribute__ ((bitwidth(275))) uint275;
typedef unsigned int __attribute__ ((bitwidth(276))) uint276;
typedef unsigned int __attribute__ ((bitwidth(277))) uint277;
typedef unsigned int __attribute__ ((bitwidth(278))) uint278;
typedef unsigned int __attribute__ ((bitwidth(279))) uint279;
typedef unsigned int __attribute__ ((bitwidth(280))) uint280;
typedef unsigned int __attribute__ ((bitwidth(281))) uint281;
typedef unsigned int __attribute__ ((bitwidth(282))) uint282;
typedef unsigned int __attribute__ ((bitwidth(283))) uint283;
typedef unsigned int __attribute__ ((bitwidth(284))) uint284;
typedef unsigned int __attribute__ ((bitwidth(285))) uint285;
typedef unsigned int __attribute__ ((bitwidth(286))) uint286;
typedef unsigned int __attribute__ ((bitwidth(287))) uint287;
typedef unsigned int __attribute__ ((bitwidth(288))) uint288;
typedef unsigned int __attribute__ ((bitwidth(289))) uint289;
typedef unsigned int __attribute__ ((bitwidth(290))) uint290;
typedef unsigned int __attribute__ ((bitwidth(291))) uint291;
typedef unsigned int __attribute__ ((bitwidth(292))) uint292;
typedef unsigned int __attribute__ ((bitwidth(293))) uint293;
typedef unsigned int __attribute__ ((bitwidth(294))) uint294;
typedef unsigned int __attribute__ ((bitwidth(295))) uint295;
typedef unsigned int __attribute__ ((bitwidth(296))) uint296;
typedef unsigned int __attribute__ ((bitwidth(297))) uint297;
typedef unsigned int __attribute__ ((bitwidth(298))) uint298;
typedef unsigned int __attribute__ ((bitwidth(299))) uint299;
typedef unsigned int __attribute__ ((bitwidth(300))) uint300;
typedef unsigned int __attribute__ ((bitwidth(301))) uint301;
typedef unsigned int __attribute__ ((bitwidth(302))) uint302;
typedef unsigned int __attribute__ ((bitwidth(303))) uint303;
typedef unsigned int __attribute__ ((bitwidth(304))) uint304;
typedef unsigned int __attribute__ ((bitwidth(305))) uint305;
typedef unsigned int __attribute__ ((bitwidth(306))) uint306;
typedef unsigned int __attribute__ ((bitwidth(307))) uint307;
typedef unsigned int __attribute__ ((bitwidth(308))) uint308;
typedef unsigned int __attribute__ ((bitwidth(309))) uint309;
typedef unsigned int __attribute__ ((bitwidth(310))) uint310;
typedef unsigned int __attribute__ ((bitwidth(311))) uint311;
typedef unsigned int __attribute__ ((bitwidth(312))) uint312;
typedef unsigned int __attribute__ ((bitwidth(313))) uint313;
typedef unsigned int __attribute__ ((bitwidth(314))) uint314;
typedef unsigned int __attribute__ ((bitwidth(315))) uint315;
typedef unsigned int __attribute__ ((bitwidth(316))) uint316;
typedef unsigned int __attribute__ ((bitwidth(317))) uint317;
typedef unsigned int __attribute__ ((bitwidth(318))) uint318;
typedef unsigned int __attribute__ ((bitwidth(319))) uint319;
typedef unsigned int __attribute__ ((bitwidth(320))) uint320;
typedef unsigned int __attribute__ ((bitwidth(321))) uint321;
typedef unsigned int __attribute__ ((bitwidth(322))) uint322;
typedef unsigned int __attribute__ ((bitwidth(323))) uint323;
typedef unsigned int __attribute__ ((bitwidth(324))) uint324;
typedef unsigned int __attribute__ ((bitwidth(325))) uint325;
typedef unsigned int __attribute__ ((bitwidth(326))) uint326;
typedef unsigned int __attribute__ ((bitwidth(327))) uint327;
typedef unsigned int __attribute__ ((bitwidth(328))) uint328;
typedef unsigned int __attribute__ ((bitwidth(329))) uint329;
typedef unsigned int __attribute__ ((bitwidth(330))) uint330;
typedef unsigned int __attribute__ ((bitwidth(331))) uint331;
typedef unsigned int __attribute__ ((bitwidth(332))) uint332;
typedef unsigned int __attribute__ ((bitwidth(333))) uint333;
typedef unsigned int __attribute__ ((bitwidth(334))) uint334;
typedef unsigned int __attribute__ ((bitwidth(335))) uint335;
typedef unsigned int __attribute__ ((bitwidth(336))) uint336;
typedef unsigned int __attribute__ ((bitwidth(337))) uint337;
typedef unsigned int __attribute__ ((bitwidth(338))) uint338;
typedef unsigned int __attribute__ ((bitwidth(339))) uint339;
typedef unsigned int __attribute__ ((bitwidth(340))) uint340;
typedef unsigned int __attribute__ ((bitwidth(341))) uint341;
typedef unsigned int __attribute__ ((bitwidth(342))) uint342;
typedef unsigned int __attribute__ ((bitwidth(343))) uint343;
typedef unsigned int __attribute__ ((bitwidth(344))) uint344;
typedef unsigned int __attribute__ ((bitwidth(345))) uint345;
typedef unsigned int __attribute__ ((bitwidth(346))) uint346;
typedef unsigned int __attribute__ ((bitwidth(347))) uint347;
typedef unsigned int __attribute__ ((bitwidth(348))) uint348;
typedef unsigned int __attribute__ ((bitwidth(349))) uint349;
typedef unsigned int __attribute__ ((bitwidth(350))) uint350;
typedef unsigned int __attribute__ ((bitwidth(351))) uint351;
typedef unsigned int __attribute__ ((bitwidth(352))) uint352;
typedef unsigned int __attribute__ ((bitwidth(353))) uint353;
typedef unsigned int __attribute__ ((bitwidth(354))) uint354;
typedef unsigned int __attribute__ ((bitwidth(355))) uint355;
typedef unsigned int __attribute__ ((bitwidth(356))) uint356;
typedef unsigned int __attribute__ ((bitwidth(357))) uint357;
typedef unsigned int __attribute__ ((bitwidth(358))) uint358;
typedef unsigned int __attribute__ ((bitwidth(359))) uint359;
typedef unsigned int __attribute__ ((bitwidth(360))) uint360;
typedef unsigned int __attribute__ ((bitwidth(361))) uint361;
typedef unsigned int __attribute__ ((bitwidth(362))) uint362;
typedef unsigned int __attribute__ ((bitwidth(363))) uint363;
typedef unsigned int __attribute__ ((bitwidth(364))) uint364;
typedef unsigned int __attribute__ ((bitwidth(365))) uint365;
typedef unsigned int __attribute__ ((bitwidth(366))) uint366;
typedef unsigned int __attribute__ ((bitwidth(367))) uint367;
typedef unsigned int __attribute__ ((bitwidth(368))) uint368;
typedef unsigned int __attribute__ ((bitwidth(369))) uint369;
typedef unsigned int __attribute__ ((bitwidth(370))) uint370;
typedef unsigned int __attribute__ ((bitwidth(371))) uint371;
typedef unsigned int __attribute__ ((bitwidth(372))) uint372;
typedef unsigned int __attribute__ ((bitwidth(373))) uint373;
typedef unsigned int __attribute__ ((bitwidth(374))) uint374;
typedef unsigned int __attribute__ ((bitwidth(375))) uint375;
typedef unsigned int __attribute__ ((bitwidth(376))) uint376;
typedef unsigned int __attribute__ ((bitwidth(377))) uint377;
typedef unsigned int __attribute__ ((bitwidth(378))) uint378;
typedef unsigned int __attribute__ ((bitwidth(379))) uint379;
typedef unsigned int __attribute__ ((bitwidth(380))) uint380;
typedef unsigned int __attribute__ ((bitwidth(381))) uint381;
typedef unsigned int __attribute__ ((bitwidth(382))) uint382;
typedef unsigned int __attribute__ ((bitwidth(383))) uint383;
typedef unsigned int __attribute__ ((bitwidth(384))) uint384;
typedef unsigned int __attribute__ ((bitwidth(385))) uint385;
typedef unsigned int __attribute__ ((bitwidth(386))) uint386;
typedef unsigned int __attribute__ ((bitwidth(387))) uint387;
typedef unsigned int __attribute__ ((bitwidth(388))) uint388;
typedef unsigned int __attribute__ ((bitwidth(389))) uint389;
typedef unsigned int __attribute__ ((bitwidth(390))) uint390;
typedef unsigned int __attribute__ ((bitwidth(391))) uint391;
typedef unsigned int __attribute__ ((bitwidth(392))) uint392;
typedef unsigned int __attribute__ ((bitwidth(393))) uint393;
typedef unsigned int __attribute__ ((bitwidth(394))) uint394;
typedef unsigned int __attribute__ ((bitwidth(395))) uint395;
typedef unsigned int __attribute__ ((bitwidth(396))) uint396;
typedef unsigned int __attribute__ ((bitwidth(397))) uint397;
typedef unsigned int __attribute__ ((bitwidth(398))) uint398;
typedef unsigned int __attribute__ ((bitwidth(399))) uint399;
typedef unsigned int __attribute__ ((bitwidth(400))) uint400;
typedef unsigned int __attribute__ ((bitwidth(401))) uint401;
typedef unsigned int __attribute__ ((bitwidth(402))) uint402;
typedef unsigned int __attribute__ ((bitwidth(403))) uint403;
typedef unsigned int __attribute__ ((bitwidth(404))) uint404;
typedef unsigned int __attribute__ ((bitwidth(405))) uint405;
typedef unsigned int __attribute__ ((bitwidth(406))) uint406;
typedef unsigned int __attribute__ ((bitwidth(407))) uint407;
typedef unsigned int __attribute__ ((bitwidth(408))) uint408;
typedef unsigned int __attribute__ ((bitwidth(409))) uint409;
typedef unsigned int __attribute__ ((bitwidth(410))) uint410;
typedef unsigned int __attribute__ ((bitwidth(411))) uint411;
typedef unsigned int __attribute__ ((bitwidth(412))) uint412;
typedef unsigned int __attribute__ ((bitwidth(413))) uint413;
typedef unsigned int __attribute__ ((bitwidth(414))) uint414;
typedef unsigned int __attribute__ ((bitwidth(415))) uint415;
typedef unsigned int __attribute__ ((bitwidth(416))) uint416;
typedef unsigned int __attribute__ ((bitwidth(417))) uint417;
typedef unsigned int __attribute__ ((bitwidth(418))) uint418;
typedef unsigned int __attribute__ ((bitwidth(419))) uint419;
typedef unsigned int __attribute__ ((bitwidth(420))) uint420;
typedef unsigned int __attribute__ ((bitwidth(421))) uint421;
typedef unsigned int __attribute__ ((bitwidth(422))) uint422;
typedef unsigned int __attribute__ ((bitwidth(423))) uint423;
typedef unsigned int __attribute__ ((bitwidth(424))) uint424;
typedef unsigned int __attribute__ ((bitwidth(425))) uint425;
typedef unsigned int __attribute__ ((bitwidth(426))) uint426;
typedef unsigned int __attribute__ ((bitwidth(427))) uint427;
typedef unsigned int __attribute__ ((bitwidth(428))) uint428;
typedef unsigned int __attribute__ ((bitwidth(429))) uint429;
typedef unsigned int __attribute__ ((bitwidth(430))) uint430;
typedef unsigned int __attribute__ ((bitwidth(431))) uint431;
typedef unsigned int __attribute__ ((bitwidth(432))) uint432;
typedef unsigned int __attribute__ ((bitwidth(433))) uint433;
typedef unsigned int __attribute__ ((bitwidth(434))) uint434;
typedef unsigned int __attribute__ ((bitwidth(435))) uint435;
typedef unsigned int __attribute__ ((bitwidth(436))) uint436;
typedef unsigned int __attribute__ ((bitwidth(437))) uint437;
typedef unsigned int __attribute__ ((bitwidth(438))) uint438;
typedef unsigned int __attribute__ ((bitwidth(439))) uint439;
typedef unsigned int __attribute__ ((bitwidth(440))) uint440;
typedef unsigned int __attribute__ ((bitwidth(441))) uint441;
typedef unsigned int __attribute__ ((bitwidth(442))) uint442;
typedef unsigned int __attribute__ ((bitwidth(443))) uint443;
typedef unsigned int __attribute__ ((bitwidth(444))) uint444;
typedef unsigned int __attribute__ ((bitwidth(445))) uint445;
typedef unsigned int __attribute__ ((bitwidth(446))) uint446;
typedef unsigned int __attribute__ ((bitwidth(447))) uint447;
typedef unsigned int __attribute__ ((bitwidth(448))) uint448;
typedef unsigned int __attribute__ ((bitwidth(449))) uint449;
typedef unsigned int __attribute__ ((bitwidth(450))) uint450;
typedef unsigned int __attribute__ ((bitwidth(451))) uint451;
typedef unsigned int __attribute__ ((bitwidth(452))) uint452;
typedef unsigned int __attribute__ ((bitwidth(453))) uint453;
typedef unsigned int __attribute__ ((bitwidth(454))) uint454;
typedef unsigned int __attribute__ ((bitwidth(455))) uint455;
typedef unsigned int __attribute__ ((bitwidth(456))) uint456;
typedef unsigned int __attribute__ ((bitwidth(457))) uint457;
typedef unsigned int __attribute__ ((bitwidth(458))) uint458;
typedef unsigned int __attribute__ ((bitwidth(459))) uint459;
typedef unsigned int __attribute__ ((bitwidth(460))) uint460;
typedef unsigned int __attribute__ ((bitwidth(461))) uint461;
typedef unsigned int __attribute__ ((bitwidth(462))) uint462;
typedef unsigned int __attribute__ ((bitwidth(463))) uint463;
typedef unsigned int __attribute__ ((bitwidth(464))) uint464;
typedef unsigned int __attribute__ ((bitwidth(465))) uint465;
typedef unsigned int __attribute__ ((bitwidth(466))) uint466;
typedef unsigned int __attribute__ ((bitwidth(467))) uint467;
typedef unsigned int __attribute__ ((bitwidth(468))) uint468;
typedef unsigned int __attribute__ ((bitwidth(469))) uint469;
typedef unsigned int __attribute__ ((bitwidth(470))) uint470;
typedef unsigned int __attribute__ ((bitwidth(471))) uint471;
typedef unsigned int __attribute__ ((bitwidth(472))) uint472;
typedef unsigned int __attribute__ ((bitwidth(473))) uint473;
typedef unsigned int __attribute__ ((bitwidth(474))) uint474;
typedef unsigned int __attribute__ ((bitwidth(475))) uint475;
typedef unsigned int __attribute__ ((bitwidth(476))) uint476;
typedef unsigned int __attribute__ ((bitwidth(477))) uint477;
typedef unsigned int __attribute__ ((bitwidth(478))) uint478;
typedef unsigned int __attribute__ ((bitwidth(479))) uint479;
typedef unsigned int __attribute__ ((bitwidth(480))) uint480;
typedef unsigned int __attribute__ ((bitwidth(481))) uint481;
typedef unsigned int __attribute__ ((bitwidth(482))) uint482;
typedef unsigned int __attribute__ ((bitwidth(483))) uint483;
typedef unsigned int __attribute__ ((bitwidth(484))) uint484;
typedef unsigned int __attribute__ ((bitwidth(485))) uint485;
typedef unsigned int __attribute__ ((bitwidth(486))) uint486;
typedef unsigned int __attribute__ ((bitwidth(487))) uint487;
typedef unsigned int __attribute__ ((bitwidth(488))) uint488;
typedef unsigned int __attribute__ ((bitwidth(489))) uint489;
typedef unsigned int __attribute__ ((bitwidth(490))) uint490;
typedef unsigned int __attribute__ ((bitwidth(491))) uint491;
typedef unsigned int __attribute__ ((bitwidth(492))) uint492;
typedef unsigned int __attribute__ ((bitwidth(493))) uint493;
typedef unsigned int __attribute__ ((bitwidth(494))) uint494;
typedef unsigned int __attribute__ ((bitwidth(495))) uint495;
typedef unsigned int __attribute__ ((bitwidth(496))) uint496;
typedef unsigned int __attribute__ ((bitwidth(497))) uint497;
typedef unsigned int __attribute__ ((bitwidth(498))) uint498;
typedef unsigned int __attribute__ ((bitwidth(499))) uint499;
typedef unsigned int __attribute__ ((bitwidth(500))) uint500;
typedef unsigned int __attribute__ ((bitwidth(501))) uint501;
typedef unsigned int __attribute__ ((bitwidth(502))) uint502;
typedef unsigned int __attribute__ ((bitwidth(503))) uint503;
typedef unsigned int __attribute__ ((bitwidth(504))) uint504;
typedef unsigned int __attribute__ ((bitwidth(505))) uint505;
typedef unsigned int __attribute__ ((bitwidth(506))) uint506;
typedef unsigned int __attribute__ ((bitwidth(507))) uint507;
typedef unsigned int __attribute__ ((bitwidth(508))) uint508;
typedef unsigned int __attribute__ ((bitwidth(509))) uint509;
typedef unsigned int __attribute__ ((bitwidth(510))) uint510;
typedef unsigned int __attribute__ ((bitwidth(511))) uint511;
typedef unsigned int __attribute__ ((bitwidth(512))) uint512;
typedef unsigned int __attribute__ ((bitwidth(513))) uint513;
typedef unsigned int __attribute__ ((bitwidth(514))) uint514;
typedef unsigned int __attribute__ ((bitwidth(515))) uint515;
typedef unsigned int __attribute__ ((bitwidth(516))) uint516;
typedef unsigned int __attribute__ ((bitwidth(517))) uint517;
typedef unsigned int __attribute__ ((bitwidth(518))) uint518;
typedef unsigned int __attribute__ ((bitwidth(519))) uint519;
typedef unsigned int __attribute__ ((bitwidth(520))) uint520;
typedef unsigned int __attribute__ ((bitwidth(521))) uint521;
typedef unsigned int __attribute__ ((bitwidth(522))) uint522;
typedef unsigned int __attribute__ ((bitwidth(523))) uint523;
typedef unsigned int __attribute__ ((bitwidth(524))) uint524;
typedef unsigned int __attribute__ ((bitwidth(525))) uint525;
typedef unsigned int __attribute__ ((bitwidth(526))) uint526;
typedef unsigned int __attribute__ ((bitwidth(527))) uint527;
typedef unsigned int __attribute__ ((bitwidth(528))) uint528;
typedef unsigned int __attribute__ ((bitwidth(529))) uint529;
typedef unsigned int __attribute__ ((bitwidth(530))) uint530;
typedef unsigned int __attribute__ ((bitwidth(531))) uint531;
typedef unsigned int __attribute__ ((bitwidth(532))) uint532;
typedef unsigned int __attribute__ ((bitwidth(533))) uint533;
typedef unsigned int __attribute__ ((bitwidth(534))) uint534;
typedef unsigned int __attribute__ ((bitwidth(535))) uint535;
typedef unsigned int __attribute__ ((bitwidth(536))) uint536;
typedef unsigned int __attribute__ ((bitwidth(537))) uint537;
typedef unsigned int __attribute__ ((bitwidth(538))) uint538;
typedef unsigned int __attribute__ ((bitwidth(539))) uint539;
typedef unsigned int __attribute__ ((bitwidth(540))) uint540;
typedef unsigned int __attribute__ ((bitwidth(541))) uint541;
typedef unsigned int __attribute__ ((bitwidth(542))) uint542;
typedef unsigned int __attribute__ ((bitwidth(543))) uint543;
typedef unsigned int __attribute__ ((bitwidth(544))) uint544;
typedef unsigned int __attribute__ ((bitwidth(545))) uint545;
typedef unsigned int __attribute__ ((bitwidth(546))) uint546;
typedef unsigned int __attribute__ ((bitwidth(547))) uint547;
typedef unsigned int __attribute__ ((bitwidth(548))) uint548;
typedef unsigned int __attribute__ ((bitwidth(549))) uint549;
typedef unsigned int __attribute__ ((bitwidth(550))) uint550;
typedef unsigned int __attribute__ ((bitwidth(551))) uint551;
typedef unsigned int __attribute__ ((bitwidth(552))) uint552;
typedef unsigned int __attribute__ ((bitwidth(553))) uint553;
typedef unsigned int __attribute__ ((bitwidth(554))) uint554;
typedef unsigned int __attribute__ ((bitwidth(555))) uint555;
typedef unsigned int __attribute__ ((bitwidth(556))) uint556;
typedef unsigned int __attribute__ ((bitwidth(557))) uint557;
typedef unsigned int __attribute__ ((bitwidth(558))) uint558;
typedef unsigned int __attribute__ ((bitwidth(559))) uint559;
typedef unsigned int __attribute__ ((bitwidth(560))) uint560;
typedef unsigned int __attribute__ ((bitwidth(561))) uint561;
typedef unsigned int __attribute__ ((bitwidth(562))) uint562;
typedef unsigned int __attribute__ ((bitwidth(563))) uint563;
typedef unsigned int __attribute__ ((bitwidth(564))) uint564;
typedef unsigned int __attribute__ ((bitwidth(565))) uint565;
typedef unsigned int __attribute__ ((bitwidth(566))) uint566;
typedef unsigned int __attribute__ ((bitwidth(567))) uint567;
typedef unsigned int __attribute__ ((bitwidth(568))) uint568;
typedef unsigned int __attribute__ ((bitwidth(569))) uint569;
typedef unsigned int __attribute__ ((bitwidth(570))) uint570;
typedef unsigned int __attribute__ ((bitwidth(571))) uint571;
typedef unsigned int __attribute__ ((bitwidth(572))) uint572;
typedef unsigned int __attribute__ ((bitwidth(573))) uint573;
typedef unsigned int __attribute__ ((bitwidth(574))) uint574;
typedef unsigned int __attribute__ ((bitwidth(575))) uint575;
typedef unsigned int __attribute__ ((bitwidth(576))) uint576;
typedef unsigned int __attribute__ ((bitwidth(577))) uint577;
typedef unsigned int __attribute__ ((bitwidth(578))) uint578;
typedef unsigned int __attribute__ ((bitwidth(579))) uint579;
typedef unsigned int __attribute__ ((bitwidth(580))) uint580;
typedef unsigned int __attribute__ ((bitwidth(581))) uint581;
typedef unsigned int __attribute__ ((bitwidth(582))) uint582;
typedef unsigned int __attribute__ ((bitwidth(583))) uint583;
typedef unsigned int __attribute__ ((bitwidth(584))) uint584;
typedef unsigned int __attribute__ ((bitwidth(585))) uint585;
typedef unsigned int __attribute__ ((bitwidth(586))) uint586;
typedef unsigned int __attribute__ ((bitwidth(587))) uint587;
typedef unsigned int __attribute__ ((bitwidth(588))) uint588;
typedef unsigned int __attribute__ ((bitwidth(589))) uint589;
typedef unsigned int __attribute__ ((bitwidth(590))) uint590;
typedef unsigned int __attribute__ ((bitwidth(591))) uint591;
typedef unsigned int __attribute__ ((bitwidth(592))) uint592;
typedef unsigned int __attribute__ ((bitwidth(593))) uint593;
typedef unsigned int __attribute__ ((bitwidth(594))) uint594;
typedef unsigned int __attribute__ ((bitwidth(595))) uint595;
typedef unsigned int __attribute__ ((bitwidth(596))) uint596;
typedef unsigned int __attribute__ ((bitwidth(597))) uint597;
typedef unsigned int __attribute__ ((bitwidth(598))) uint598;
typedef unsigned int __attribute__ ((bitwidth(599))) uint599;
typedef unsigned int __attribute__ ((bitwidth(600))) uint600;
typedef unsigned int __attribute__ ((bitwidth(601))) uint601;
typedef unsigned int __attribute__ ((bitwidth(602))) uint602;
typedef unsigned int __attribute__ ((bitwidth(603))) uint603;
typedef unsigned int __attribute__ ((bitwidth(604))) uint604;
typedef unsigned int __attribute__ ((bitwidth(605))) uint605;
typedef unsigned int __attribute__ ((bitwidth(606))) uint606;
typedef unsigned int __attribute__ ((bitwidth(607))) uint607;
typedef unsigned int __attribute__ ((bitwidth(608))) uint608;
typedef unsigned int __attribute__ ((bitwidth(609))) uint609;
typedef unsigned int __attribute__ ((bitwidth(610))) uint610;
typedef unsigned int __attribute__ ((bitwidth(611))) uint611;
typedef unsigned int __attribute__ ((bitwidth(612))) uint612;
typedef unsigned int __attribute__ ((bitwidth(613))) uint613;
typedef unsigned int __attribute__ ((bitwidth(614))) uint614;
typedef unsigned int __attribute__ ((bitwidth(615))) uint615;
typedef unsigned int __attribute__ ((bitwidth(616))) uint616;
typedef unsigned int __attribute__ ((bitwidth(617))) uint617;
typedef unsigned int __attribute__ ((bitwidth(618))) uint618;
typedef unsigned int __attribute__ ((bitwidth(619))) uint619;
typedef unsigned int __attribute__ ((bitwidth(620))) uint620;
typedef unsigned int __attribute__ ((bitwidth(621))) uint621;
typedef unsigned int __attribute__ ((bitwidth(622))) uint622;
typedef unsigned int __attribute__ ((bitwidth(623))) uint623;
typedef unsigned int __attribute__ ((bitwidth(624))) uint624;
typedef unsigned int __attribute__ ((bitwidth(625))) uint625;
typedef unsigned int __attribute__ ((bitwidth(626))) uint626;
typedef unsigned int __attribute__ ((bitwidth(627))) uint627;
typedef unsigned int __attribute__ ((bitwidth(628))) uint628;
typedef unsigned int __attribute__ ((bitwidth(629))) uint629;
typedef unsigned int __attribute__ ((bitwidth(630))) uint630;
typedef unsigned int __attribute__ ((bitwidth(631))) uint631;
typedef unsigned int __attribute__ ((bitwidth(632))) uint632;
typedef unsigned int __attribute__ ((bitwidth(633))) uint633;
typedef unsigned int __attribute__ ((bitwidth(634))) uint634;
typedef unsigned int __attribute__ ((bitwidth(635))) uint635;
typedef unsigned int __attribute__ ((bitwidth(636))) uint636;
typedef unsigned int __attribute__ ((bitwidth(637))) uint637;
typedef unsigned int __attribute__ ((bitwidth(638))) uint638;
typedef unsigned int __attribute__ ((bitwidth(639))) uint639;
typedef unsigned int __attribute__ ((bitwidth(640))) uint640;
typedef unsigned int __attribute__ ((bitwidth(641))) uint641;
typedef unsigned int __attribute__ ((bitwidth(642))) uint642;
typedef unsigned int __attribute__ ((bitwidth(643))) uint643;
typedef unsigned int __attribute__ ((bitwidth(644))) uint644;
typedef unsigned int __attribute__ ((bitwidth(645))) uint645;
typedef unsigned int __attribute__ ((bitwidth(646))) uint646;
typedef unsigned int __attribute__ ((bitwidth(647))) uint647;
typedef unsigned int __attribute__ ((bitwidth(648))) uint648;
typedef unsigned int __attribute__ ((bitwidth(649))) uint649;
typedef unsigned int __attribute__ ((bitwidth(650))) uint650;
typedef unsigned int __attribute__ ((bitwidth(651))) uint651;
typedef unsigned int __attribute__ ((bitwidth(652))) uint652;
typedef unsigned int __attribute__ ((bitwidth(653))) uint653;
typedef unsigned int __attribute__ ((bitwidth(654))) uint654;
typedef unsigned int __attribute__ ((bitwidth(655))) uint655;
typedef unsigned int __attribute__ ((bitwidth(656))) uint656;
typedef unsigned int __attribute__ ((bitwidth(657))) uint657;
typedef unsigned int __attribute__ ((bitwidth(658))) uint658;
typedef unsigned int __attribute__ ((bitwidth(659))) uint659;
typedef unsigned int __attribute__ ((bitwidth(660))) uint660;
typedef unsigned int __attribute__ ((bitwidth(661))) uint661;
typedef unsigned int __attribute__ ((bitwidth(662))) uint662;
typedef unsigned int __attribute__ ((bitwidth(663))) uint663;
typedef unsigned int __attribute__ ((bitwidth(664))) uint664;
typedef unsigned int __attribute__ ((bitwidth(665))) uint665;
typedef unsigned int __attribute__ ((bitwidth(666))) uint666;
typedef unsigned int __attribute__ ((bitwidth(667))) uint667;
typedef unsigned int __attribute__ ((bitwidth(668))) uint668;
typedef unsigned int __attribute__ ((bitwidth(669))) uint669;
typedef unsigned int __attribute__ ((bitwidth(670))) uint670;
typedef unsigned int __attribute__ ((bitwidth(671))) uint671;
typedef unsigned int __attribute__ ((bitwidth(672))) uint672;
typedef unsigned int __attribute__ ((bitwidth(673))) uint673;
typedef unsigned int __attribute__ ((bitwidth(674))) uint674;
typedef unsigned int __attribute__ ((bitwidth(675))) uint675;
typedef unsigned int __attribute__ ((bitwidth(676))) uint676;
typedef unsigned int __attribute__ ((bitwidth(677))) uint677;
typedef unsigned int __attribute__ ((bitwidth(678))) uint678;
typedef unsigned int __attribute__ ((bitwidth(679))) uint679;
typedef unsigned int __attribute__ ((bitwidth(680))) uint680;
typedef unsigned int __attribute__ ((bitwidth(681))) uint681;
typedef unsigned int __attribute__ ((bitwidth(682))) uint682;
typedef unsigned int __attribute__ ((bitwidth(683))) uint683;
typedef unsigned int __attribute__ ((bitwidth(684))) uint684;
typedef unsigned int __attribute__ ((bitwidth(685))) uint685;
typedef unsigned int __attribute__ ((bitwidth(686))) uint686;
typedef unsigned int __attribute__ ((bitwidth(687))) uint687;
typedef unsigned int __attribute__ ((bitwidth(688))) uint688;
typedef unsigned int __attribute__ ((bitwidth(689))) uint689;
typedef unsigned int __attribute__ ((bitwidth(690))) uint690;
typedef unsigned int __attribute__ ((bitwidth(691))) uint691;
typedef unsigned int __attribute__ ((bitwidth(692))) uint692;
typedef unsigned int __attribute__ ((bitwidth(693))) uint693;
typedef unsigned int __attribute__ ((bitwidth(694))) uint694;
typedef unsigned int __attribute__ ((bitwidth(695))) uint695;
typedef unsigned int __attribute__ ((bitwidth(696))) uint696;
typedef unsigned int __attribute__ ((bitwidth(697))) uint697;
typedef unsigned int __attribute__ ((bitwidth(698))) uint698;
typedef unsigned int __attribute__ ((bitwidth(699))) uint699;
typedef unsigned int __attribute__ ((bitwidth(700))) uint700;
typedef unsigned int __attribute__ ((bitwidth(701))) uint701;
typedef unsigned int __attribute__ ((bitwidth(702))) uint702;
typedef unsigned int __attribute__ ((bitwidth(703))) uint703;
typedef unsigned int __attribute__ ((bitwidth(704))) uint704;
typedef unsigned int __attribute__ ((bitwidth(705))) uint705;
typedef unsigned int __attribute__ ((bitwidth(706))) uint706;
typedef unsigned int __attribute__ ((bitwidth(707))) uint707;
typedef unsigned int __attribute__ ((bitwidth(708))) uint708;
typedef unsigned int __attribute__ ((bitwidth(709))) uint709;
typedef unsigned int __attribute__ ((bitwidth(710))) uint710;
typedef unsigned int __attribute__ ((bitwidth(711))) uint711;
typedef unsigned int __attribute__ ((bitwidth(712))) uint712;
typedef unsigned int __attribute__ ((bitwidth(713))) uint713;
typedef unsigned int __attribute__ ((bitwidth(714))) uint714;
typedef unsigned int __attribute__ ((bitwidth(715))) uint715;
typedef unsigned int __attribute__ ((bitwidth(716))) uint716;
typedef unsigned int __attribute__ ((bitwidth(717))) uint717;
typedef unsigned int __attribute__ ((bitwidth(718))) uint718;
typedef unsigned int __attribute__ ((bitwidth(719))) uint719;
typedef unsigned int __attribute__ ((bitwidth(720))) uint720;
typedef unsigned int __attribute__ ((bitwidth(721))) uint721;
typedef unsigned int __attribute__ ((bitwidth(722))) uint722;
typedef unsigned int __attribute__ ((bitwidth(723))) uint723;
typedef unsigned int __attribute__ ((bitwidth(724))) uint724;
typedef unsigned int __attribute__ ((bitwidth(725))) uint725;
typedef unsigned int __attribute__ ((bitwidth(726))) uint726;
typedef unsigned int __attribute__ ((bitwidth(727))) uint727;
typedef unsigned int __attribute__ ((bitwidth(728))) uint728;
typedef unsigned int __attribute__ ((bitwidth(729))) uint729;
typedef unsigned int __attribute__ ((bitwidth(730))) uint730;
typedef unsigned int __attribute__ ((bitwidth(731))) uint731;
typedef unsigned int __attribute__ ((bitwidth(732))) uint732;
typedef unsigned int __attribute__ ((bitwidth(733))) uint733;
typedef unsigned int __attribute__ ((bitwidth(734))) uint734;
typedef unsigned int __attribute__ ((bitwidth(735))) uint735;
typedef unsigned int __attribute__ ((bitwidth(736))) uint736;
typedef unsigned int __attribute__ ((bitwidth(737))) uint737;
typedef unsigned int __attribute__ ((bitwidth(738))) uint738;
typedef unsigned int __attribute__ ((bitwidth(739))) uint739;
typedef unsigned int __attribute__ ((bitwidth(740))) uint740;
typedef unsigned int __attribute__ ((bitwidth(741))) uint741;
typedef unsigned int __attribute__ ((bitwidth(742))) uint742;
typedef unsigned int __attribute__ ((bitwidth(743))) uint743;
typedef unsigned int __attribute__ ((bitwidth(744))) uint744;
typedef unsigned int __attribute__ ((bitwidth(745))) uint745;
typedef unsigned int __attribute__ ((bitwidth(746))) uint746;
typedef unsigned int __attribute__ ((bitwidth(747))) uint747;
typedef unsigned int __attribute__ ((bitwidth(748))) uint748;
typedef unsigned int __attribute__ ((bitwidth(749))) uint749;
typedef unsigned int __attribute__ ((bitwidth(750))) uint750;
typedef unsigned int __attribute__ ((bitwidth(751))) uint751;
typedef unsigned int __attribute__ ((bitwidth(752))) uint752;
typedef unsigned int __attribute__ ((bitwidth(753))) uint753;
typedef unsigned int __attribute__ ((bitwidth(754))) uint754;
typedef unsigned int __attribute__ ((bitwidth(755))) uint755;
typedef unsigned int __attribute__ ((bitwidth(756))) uint756;
typedef unsigned int __attribute__ ((bitwidth(757))) uint757;
typedef unsigned int __attribute__ ((bitwidth(758))) uint758;
typedef unsigned int __attribute__ ((bitwidth(759))) uint759;
typedef unsigned int __attribute__ ((bitwidth(760))) uint760;
typedef unsigned int __attribute__ ((bitwidth(761))) uint761;
typedef unsigned int __attribute__ ((bitwidth(762))) uint762;
typedef unsigned int __attribute__ ((bitwidth(763))) uint763;
typedef unsigned int __attribute__ ((bitwidth(764))) uint764;
typedef unsigned int __attribute__ ((bitwidth(765))) uint765;
typedef unsigned int __attribute__ ((bitwidth(766))) uint766;
typedef unsigned int __attribute__ ((bitwidth(767))) uint767;
typedef unsigned int __attribute__ ((bitwidth(768))) uint768;
typedef unsigned int __attribute__ ((bitwidth(769))) uint769;
typedef unsigned int __attribute__ ((bitwidth(770))) uint770;
typedef unsigned int __attribute__ ((bitwidth(771))) uint771;
typedef unsigned int __attribute__ ((bitwidth(772))) uint772;
typedef unsigned int __attribute__ ((bitwidth(773))) uint773;
typedef unsigned int __attribute__ ((bitwidth(774))) uint774;
typedef unsigned int __attribute__ ((bitwidth(775))) uint775;
typedef unsigned int __attribute__ ((bitwidth(776))) uint776;
typedef unsigned int __attribute__ ((bitwidth(777))) uint777;
typedef unsigned int __attribute__ ((bitwidth(778))) uint778;
typedef unsigned int __attribute__ ((bitwidth(779))) uint779;
typedef unsigned int __attribute__ ((bitwidth(780))) uint780;
typedef unsigned int __attribute__ ((bitwidth(781))) uint781;
typedef unsigned int __attribute__ ((bitwidth(782))) uint782;
typedef unsigned int __attribute__ ((bitwidth(783))) uint783;
typedef unsigned int __attribute__ ((bitwidth(784))) uint784;
typedef unsigned int __attribute__ ((bitwidth(785))) uint785;
typedef unsigned int __attribute__ ((bitwidth(786))) uint786;
typedef unsigned int __attribute__ ((bitwidth(787))) uint787;
typedef unsigned int __attribute__ ((bitwidth(788))) uint788;
typedef unsigned int __attribute__ ((bitwidth(789))) uint789;
typedef unsigned int __attribute__ ((bitwidth(790))) uint790;
typedef unsigned int __attribute__ ((bitwidth(791))) uint791;
typedef unsigned int __attribute__ ((bitwidth(792))) uint792;
typedef unsigned int __attribute__ ((bitwidth(793))) uint793;
typedef unsigned int __attribute__ ((bitwidth(794))) uint794;
typedef unsigned int __attribute__ ((bitwidth(795))) uint795;
typedef unsigned int __attribute__ ((bitwidth(796))) uint796;
typedef unsigned int __attribute__ ((bitwidth(797))) uint797;
typedef unsigned int __attribute__ ((bitwidth(798))) uint798;
typedef unsigned int __attribute__ ((bitwidth(799))) uint799;
typedef unsigned int __attribute__ ((bitwidth(800))) uint800;
typedef unsigned int __attribute__ ((bitwidth(801))) uint801;
typedef unsigned int __attribute__ ((bitwidth(802))) uint802;
typedef unsigned int __attribute__ ((bitwidth(803))) uint803;
typedef unsigned int __attribute__ ((bitwidth(804))) uint804;
typedef unsigned int __attribute__ ((bitwidth(805))) uint805;
typedef unsigned int __attribute__ ((bitwidth(806))) uint806;
typedef unsigned int __attribute__ ((bitwidth(807))) uint807;
typedef unsigned int __attribute__ ((bitwidth(808))) uint808;
typedef unsigned int __attribute__ ((bitwidth(809))) uint809;
typedef unsigned int __attribute__ ((bitwidth(810))) uint810;
typedef unsigned int __attribute__ ((bitwidth(811))) uint811;
typedef unsigned int __attribute__ ((bitwidth(812))) uint812;
typedef unsigned int __attribute__ ((bitwidth(813))) uint813;
typedef unsigned int __attribute__ ((bitwidth(814))) uint814;
typedef unsigned int __attribute__ ((bitwidth(815))) uint815;
typedef unsigned int __attribute__ ((bitwidth(816))) uint816;
typedef unsigned int __attribute__ ((bitwidth(817))) uint817;
typedef unsigned int __attribute__ ((bitwidth(818))) uint818;
typedef unsigned int __attribute__ ((bitwidth(819))) uint819;
typedef unsigned int __attribute__ ((bitwidth(820))) uint820;
typedef unsigned int __attribute__ ((bitwidth(821))) uint821;
typedef unsigned int __attribute__ ((bitwidth(822))) uint822;
typedef unsigned int __attribute__ ((bitwidth(823))) uint823;
typedef unsigned int __attribute__ ((bitwidth(824))) uint824;
typedef unsigned int __attribute__ ((bitwidth(825))) uint825;
typedef unsigned int __attribute__ ((bitwidth(826))) uint826;
typedef unsigned int __attribute__ ((bitwidth(827))) uint827;
typedef unsigned int __attribute__ ((bitwidth(828))) uint828;
typedef unsigned int __attribute__ ((bitwidth(829))) uint829;
typedef unsigned int __attribute__ ((bitwidth(830))) uint830;
typedef unsigned int __attribute__ ((bitwidth(831))) uint831;
typedef unsigned int __attribute__ ((bitwidth(832))) uint832;
typedef unsigned int __attribute__ ((bitwidth(833))) uint833;
typedef unsigned int __attribute__ ((bitwidth(834))) uint834;
typedef unsigned int __attribute__ ((bitwidth(835))) uint835;
typedef unsigned int __attribute__ ((bitwidth(836))) uint836;
typedef unsigned int __attribute__ ((bitwidth(837))) uint837;
typedef unsigned int __attribute__ ((bitwidth(838))) uint838;
typedef unsigned int __attribute__ ((bitwidth(839))) uint839;
typedef unsigned int __attribute__ ((bitwidth(840))) uint840;
typedef unsigned int __attribute__ ((bitwidth(841))) uint841;
typedef unsigned int __attribute__ ((bitwidth(842))) uint842;
typedef unsigned int __attribute__ ((bitwidth(843))) uint843;
typedef unsigned int __attribute__ ((bitwidth(844))) uint844;
typedef unsigned int __attribute__ ((bitwidth(845))) uint845;
typedef unsigned int __attribute__ ((bitwidth(846))) uint846;
typedef unsigned int __attribute__ ((bitwidth(847))) uint847;
typedef unsigned int __attribute__ ((bitwidth(848))) uint848;
typedef unsigned int __attribute__ ((bitwidth(849))) uint849;
typedef unsigned int __attribute__ ((bitwidth(850))) uint850;
typedef unsigned int __attribute__ ((bitwidth(851))) uint851;
typedef unsigned int __attribute__ ((bitwidth(852))) uint852;
typedef unsigned int __attribute__ ((bitwidth(853))) uint853;
typedef unsigned int __attribute__ ((bitwidth(854))) uint854;
typedef unsigned int __attribute__ ((bitwidth(855))) uint855;
typedef unsigned int __attribute__ ((bitwidth(856))) uint856;
typedef unsigned int __attribute__ ((bitwidth(857))) uint857;
typedef unsigned int __attribute__ ((bitwidth(858))) uint858;
typedef unsigned int __attribute__ ((bitwidth(859))) uint859;
typedef unsigned int __attribute__ ((bitwidth(860))) uint860;
typedef unsigned int __attribute__ ((bitwidth(861))) uint861;
typedef unsigned int __attribute__ ((bitwidth(862))) uint862;
typedef unsigned int __attribute__ ((bitwidth(863))) uint863;
typedef unsigned int __attribute__ ((bitwidth(864))) uint864;
typedef unsigned int __attribute__ ((bitwidth(865))) uint865;
typedef unsigned int __attribute__ ((bitwidth(866))) uint866;
typedef unsigned int __attribute__ ((bitwidth(867))) uint867;
typedef unsigned int __attribute__ ((bitwidth(868))) uint868;
typedef unsigned int __attribute__ ((bitwidth(869))) uint869;
typedef unsigned int __attribute__ ((bitwidth(870))) uint870;
typedef unsigned int __attribute__ ((bitwidth(871))) uint871;
typedef unsigned int __attribute__ ((bitwidth(872))) uint872;
typedef unsigned int __attribute__ ((bitwidth(873))) uint873;
typedef unsigned int __attribute__ ((bitwidth(874))) uint874;
typedef unsigned int __attribute__ ((bitwidth(875))) uint875;
typedef unsigned int __attribute__ ((bitwidth(876))) uint876;
typedef unsigned int __attribute__ ((bitwidth(877))) uint877;
typedef unsigned int __attribute__ ((bitwidth(878))) uint878;
typedef unsigned int __attribute__ ((bitwidth(879))) uint879;
typedef unsigned int __attribute__ ((bitwidth(880))) uint880;
typedef unsigned int __attribute__ ((bitwidth(881))) uint881;
typedef unsigned int __attribute__ ((bitwidth(882))) uint882;
typedef unsigned int __attribute__ ((bitwidth(883))) uint883;
typedef unsigned int __attribute__ ((bitwidth(884))) uint884;
typedef unsigned int __attribute__ ((bitwidth(885))) uint885;
typedef unsigned int __attribute__ ((bitwidth(886))) uint886;
typedef unsigned int __attribute__ ((bitwidth(887))) uint887;
typedef unsigned int __attribute__ ((bitwidth(888))) uint888;
typedef unsigned int __attribute__ ((bitwidth(889))) uint889;
typedef unsigned int __attribute__ ((bitwidth(890))) uint890;
typedef unsigned int __attribute__ ((bitwidth(891))) uint891;
typedef unsigned int __attribute__ ((bitwidth(892))) uint892;
typedef unsigned int __attribute__ ((bitwidth(893))) uint893;
typedef unsigned int __attribute__ ((bitwidth(894))) uint894;
typedef unsigned int __attribute__ ((bitwidth(895))) uint895;
typedef unsigned int __attribute__ ((bitwidth(896))) uint896;
typedef unsigned int __attribute__ ((bitwidth(897))) uint897;
typedef unsigned int __attribute__ ((bitwidth(898))) uint898;
typedef unsigned int __attribute__ ((bitwidth(899))) uint899;
typedef unsigned int __attribute__ ((bitwidth(900))) uint900;
typedef unsigned int __attribute__ ((bitwidth(901))) uint901;
typedef unsigned int __attribute__ ((bitwidth(902))) uint902;
typedef unsigned int __attribute__ ((bitwidth(903))) uint903;
typedef unsigned int __attribute__ ((bitwidth(904))) uint904;
typedef unsigned int __attribute__ ((bitwidth(905))) uint905;
typedef unsigned int __attribute__ ((bitwidth(906))) uint906;
typedef unsigned int __attribute__ ((bitwidth(907))) uint907;
typedef unsigned int __attribute__ ((bitwidth(908))) uint908;
typedef unsigned int __attribute__ ((bitwidth(909))) uint909;
typedef unsigned int __attribute__ ((bitwidth(910))) uint910;
typedef unsigned int __attribute__ ((bitwidth(911))) uint911;
typedef unsigned int __attribute__ ((bitwidth(912))) uint912;
typedef unsigned int __attribute__ ((bitwidth(913))) uint913;
typedef unsigned int __attribute__ ((bitwidth(914))) uint914;
typedef unsigned int __attribute__ ((bitwidth(915))) uint915;
typedef unsigned int __attribute__ ((bitwidth(916))) uint916;
typedef unsigned int __attribute__ ((bitwidth(917))) uint917;
typedef unsigned int __attribute__ ((bitwidth(918))) uint918;
typedef unsigned int __attribute__ ((bitwidth(919))) uint919;
typedef unsigned int __attribute__ ((bitwidth(920))) uint920;
typedef unsigned int __attribute__ ((bitwidth(921))) uint921;
typedef unsigned int __attribute__ ((bitwidth(922))) uint922;
typedef unsigned int __attribute__ ((bitwidth(923))) uint923;
typedef unsigned int __attribute__ ((bitwidth(924))) uint924;
typedef unsigned int __attribute__ ((bitwidth(925))) uint925;
typedef unsigned int __attribute__ ((bitwidth(926))) uint926;
typedef unsigned int __attribute__ ((bitwidth(927))) uint927;
typedef unsigned int __attribute__ ((bitwidth(928))) uint928;
typedef unsigned int __attribute__ ((bitwidth(929))) uint929;
typedef unsigned int __attribute__ ((bitwidth(930))) uint930;
typedef unsigned int __attribute__ ((bitwidth(931))) uint931;
typedef unsigned int __attribute__ ((bitwidth(932))) uint932;
typedef unsigned int __attribute__ ((bitwidth(933))) uint933;
typedef unsigned int __attribute__ ((bitwidth(934))) uint934;
typedef unsigned int __attribute__ ((bitwidth(935))) uint935;
typedef unsigned int __attribute__ ((bitwidth(936))) uint936;
typedef unsigned int __attribute__ ((bitwidth(937))) uint937;
typedef unsigned int __attribute__ ((bitwidth(938))) uint938;
typedef unsigned int __attribute__ ((bitwidth(939))) uint939;
typedef unsigned int __attribute__ ((bitwidth(940))) uint940;
typedef unsigned int __attribute__ ((bitwidth(941))) uint941;
typedef unsigned int __attribute__ ((bitwidth(942))) uint942;
typedef unsigned int __attribute__ ((bitwidth(943))) uint943;
typedef unsigned int __attribute__ ((bitwidth(944))) uint944;
typedef unsigned int __attribute__ ((bitwidth(945))) uint945;
typedef unsigned int __attribute__ ((bitwidth(946))) uint946;
typedef unsigned int __attribute__ ((bitwidth(947))) uint947;
typedef unsigned int __attribute__ ((bitwidth(948))) uint948;
typedef unsigned int __attribute__ ((bitwidth(949))) uint949;
typedef unsigned int __attribute__ ((bitwidth(950))) uint950;
typedef unsigned int __attribute__ ((bitwidth(951))) uint951;
typedef unsigned int __attribute__ ((bitwidth(952))) uint952;
typedef unsigned int __attribute__ ((bitwidth(953))) uint953;
typedef unsigned int __attribute__ ((bitwidth(954))) uint954;
typedef unsigned int __attribute__ ((bitwidth(955))) uint955;
typedef unsigned int __attribute__ ((bitwidth(956))) uint956;
typedef unsigned int __attribute__ ((bitwidth(957))) uint957;
typedef unsigned int __attribute__ ((bitwidth(958))) uint958;
typedef unsigned int __attribute__ ((bitwidth(959))) uint959;
typedef unsigned int __attribute__ ((bitwidth(960))) uint960;
typedef unsigned int __attribute__ ((bitwidth(961))) uint961;
typedef unsigned int __attribute__ ((bitwidth(962))) uint962;
typedef unsigned int __attribute__ ((bitwidth(963))) uint963;
typedef unsigned int __attribute__ ((bitwidth(964))) uint964;
typedef unsigned int __attribute__ ((bitwidth(965))) uint965;
typedef unsigned int __attribute__ ((bitwidth(966))) uint966;
typedef unsigned int __attribute__ ((bitwidth(967))) uint967;
typedef unsigned int __attribute__ ((bitwidth(968))) uint968;
typedef unsigned int __attribute__ ((bitwidth(969))) uint969;
typedef unsigned int __attribute__ ((bitwidth(970))) uint970;
typedef unsigned int __attribute__ ((bitwidth(971))) uint971;
typedef unsigned int __attribute__ ((bitwidth(972))) uint972;
typedef unsigned int __attribute__ ((bitwidth(973))) uint973;
typedef unsigned int __attribute__ ((bitwidth(974))) uint974;
typedef unsigned int __attribute__ ((bitwidth(975))) uint975;
typedef unsigned int __attribute__ ((bitwidth(976))) uint976;
typedef unsigned int __attribute__ ((bitwidth(977))) uint977;
typedef unsigned int __attribute__ ((bitwidth(978))) uint978;
typedef unsigned int __attribute__ ((bitwidth(979))) uint979;
typedef unsigned int __attribute__ ((bitwidth(980))) uint980;
typedef unsigned int __attribute__ ((bitwidth(981))) uint981;
typedef unsigned int __attribute__ ((bitwidth(982))) uint982;
typedef unsigned int __attribute__ ((bitwidth(983))) uint983;
typedef unsigned int __attribute__ ((bitwidth(984))) uint984;
typedef unsigned int __attribute__ ((bitwidth(985))) uint985;
typedef unsigned int __attribute__ ((bitwidth(986))) uint986;
typedef unsigned int __attribute__ ((bitwidth(987))) uint987;
typedef unsigned int __attribute__ ((bitwidth(988))) uint988;
typedef unsigned int __attribute__ ((bitwidth(989))) uint989;
typedef unsigned int __attribute__ ((bitwidth(990))) uint990;
typedef unsigned int __attribute__ ((bitwidth(991))) uint991;
typedef unsigned int __attribute__ ((bitwidth(992))) uint992;
typedef unsigned int __attribute__ ((bitwidth(993))) uint993;
typedef unsigned int __attribute__ ((bitwidth(994))) uint994;
typedef unsigned int __attribute__ ((bitwidth(995))) uint995;
typedef unsigned int __attribute__ ((bitwidth(996))) uint996;
typedef unsigned int __attribute__ ((bitwidth(997))) uint997;
typedef unsigned int __attribute__ ((bitwidth(998))) uint998;
typedef unsigned int __attribute__ ((bitwidth(999))) uint999;
typedef unsigned int __attribute__ ((bitwidth(1000))) uint1000;
typedef unsigned int __attribute__ ((bitwidth(1001))) uint1001;
typedef unsigned int __attribute__ ((bitwidth(1002))) uint1002;
typedef unsigned int __attribute__ ((bitwidth(1003))) uint1003;
typedef unsigned int __attribute__ ((bitwidth(1004))) uint1004;
typedef unsigned int __attribute__ ((bitwidth(1005))) uint1005;
typedef unsigned int __attribute__ ((bitwidth(1006))) uint1006;
typedef unsigned int __attribute__ ((bitwidth(1007))) uint1007;
typedef unsigned int __attribute__ ((bitwidth(1008))) uint1008;
typedef unsigned int __attribute__ ((bitwidth(1009))) uint1009;
typedef unsigned int __attribute__ ((bitwidth(1010))) uint1010;
typedef unsigned int __attribute__ ((bitwidth(1011))) uint1011;
typedef unsigned int __attribute__ ((bitwidth(1012))) uint1012;
typedef unsigned int __attribute__ ((bitwidth(1013))) uint1013;
typedef unsigned int __attribute__ ((bitwidth(1014))) uint1014;
typedef unsigned int __attribute__ ((bitwidth(1015))) uint1015;
typedef unsigned int __attribute__ ((bitwidth(1016))) uint1016;
typedef unsigned int __attribute__ ((bitwidth(1017))) uint1017;
typedef unsigned int __attribute__ ((bitwidth(1018))) uint1018;
typedef unsigned int __attribute__ ((bitwidth(1019))) uint1019;
typedef unsigned int __attribute__ ((bitwidth(1020))) uint1020;
typedef unsigned int __attribute__ ((bitwidth(1021))) uint1021;
typedef unsigned int __attribute__ ((bitwidth(1022))) uint1022;
typedef unsigned int __attribute__ ((bitwidth(1023))) uint1023;
typedef unsigned int __attribute__ ((bitwidth(1024))) uint1024;
#pragma line 109 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h" 2
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt_ext.def" 1
#pragma empty_line
#pragma empty_line
typedef unsigned int __attribute__ ((bitwidth(1025))) uint1025;
typedef unsigned int __attribute__ ((bitwidth(1026))) uint1026;
typedef unsigned int __attribute__ ((bitwidth(1027))) uint1027;
typedef unsigned int __attribute__ ((bitwidth(1028))) uint1028;
typedef unsigned int __attribute__ ((bitwidth(1029))) uint1029;
typedef unsigned int __attribute__ ((bitwidth(1030))) uint1030;
typedef unsigned int __attribute__ ((bitwidth(1031))) uint1031;
typedef unsigned int __attribute__ ((bitwidth(1032))) uint1032;
typedef unsigned int __attribute__ ((bitwidth(1033))) uint1033;
typedef unsigned int __attribute__ ((bitwidth(1034))) uint1034;
typedef unsigned int __attribute__ ((bitwidth(1035))) uint1035;
typedef unsigned int __attribute__ ((bitwidth(1036))) uint1036;
typedef unsigned int __attribute__ ((bitwidth(1037))) uint1037;
typedef unsigned int __attribute__ ((bitwidth(1038))) uint1038;
typedef unsigned int __attribute__ ((bitwidth(1039))) uint1039;
typedef unsigned int __attribute__ ((bitwidth(1040))) uint1040;
typedef unsigned int __attribute__ ((bitwidth(1041))) uint1041;
typedef unsigned int __attribute__ ((bitwidth(1042))) uint1042;
typedef unsigned int __attribute__ ((bitwidth(1043))) uint1043;
typedef unsigned int __attribute__ ((bitwidth(1044))) uint1044;
typedef unsigned int __attribute__ ((bitwidth(1045))) uint1045;
typedef unsigned int __attribute__ ((bitwidth(1046))) uint1046;
typedef unsigned int __attribute__ ((bitwidth(1047))) uint1047;
typedef unsigned int __attribute__ ((bitwidth(1048))) uint1048;
typedef unsigned int __attribute__ ((bitwidth(1049))) uint1049;
typedef unsigned int __attribute__ ((bitwidth(1050))) uint1050;
typedef unsigned int __attribute__ ((bitwidth(1051))) uint1051;
typedef unsigned int __attribute__ ((bitwidth(1052))) uint1052;
typedef unsigned int __attribute__ ((bitwidth(1053))) uint1053;
typedef unsigned int __attribute__ ((bitwidth(1054))) uint1054;
typedef unsigned int __attribute__ ((bitwidth(1055))) uint1055;
typedef unsigned int __attribute__ ((bitwidth(1056))) uint1056;
typedef unsigned int __attribute__ ((bitwidth(1057))) uint1057;
typedef unsigned int __attribute__ ((bitwidth(1058))) uint1058;
typedef unsigned int __attribute__ ((bitwidth(1059))) uint1059;
typedef unsigned int __attribute__ ((bitwidth(1060))) uint1060;
typedef unsigned int __attribute__ ((bitwidth(1061))) uint1061;
typedef unsigned int __attribute__ ((bitwidth(1062))) uint1062;
typedef unsigned int __attribute__ ((bitwidth(1063))) uint1063;
typedef unsigned int __attribute__ ((bitwidth(1064))) uint1064;
typedef unsigned int __attribute__ ((bitwidth(1065))) uint1065;
typedef unsigned int __attribute__ ((bitwidth(1066))) uint1066;
typedef unsigned int __attribute__ ((bitwidth(1067))) uint1067;
typedef unsigned int __attribute__ ((bitwidth(1068))) uint1068;
typedef unsigned int __attribute__ ((bitwidth(1069))) uint1069;
typedef unsigned int __attribute__ ((bitwidth(1070))) uint1070;
typedef unsigned int __attribute__ ((bitwidth(1071))) uint1071;
typedef unsigned int __attribute__ ((bitwidth(1072))) uint1072;
typedef unsigned int __attribute__ ((bitwidth(1073))) uint1073;
typedef unsigned int __attribute__ ((bitwidth(1074))) uint1074;
typedef unsigned int __attribute__ ((bitwidth(1075))) uint1075;
typedef unsigned int __attribute__ ((bitwidth(1076))) uint1076;
typedef unsigned int __attribute__ ((bitwidth(1077))) uint1077;
typedef unsigned int __attribute__ ((bitwidth(1078))) uint1078;
typedef unsigned int __attribute__ ((bitwidth(1079))) uint1079;
typedef unsigned int __attribute__ ((bitwidth(1080))) uint1080;
typedef unsigned int __attribute__ ((bitwidth(1081))) uint1081;
typedef unsigned int __attribute__ ((bitwidth(1082))) uint1082;
typedef unsigned int __attribute__ ((bitwidth(1083))) uint1083;
typedef unsigned int __attribute__ ((bitwidth(1084))) uint1084;
typedef unsigned int __attribute__ ((bitwidth(1085))) uint1085;
typedef unsigned int __attribute__ ((bitwidth(1086))) uint1086;
typedef unsigned int __attribute__ ((bitwidth(1087))) uint1087;
typedef unsigned int __attribute__ ((bitwidth(1088))) uint1088;
typedef unsigned int __attribute__ ((bitwidth(1089))) uint1089;
typedef unsigned int __attribute__ ((bitwidth(1090))) uint1090;
typedef unsigned int __attribute__ ((bitwidth(1091))) uint1091;
typedef unsigned int __attribute__ ((bitwidth(1092))) uint1092;
typedef unsigned int __attribute__ ((bitwidth(1093))) uint1093;
typedef unsigned int __attribute__ ((bitwidth(1094))) uint1094;
typedef unsigned int __attribute__ ((bitwidth(1095))) uint1095;
typedef unsigned int __attribute__ ((bitwidth(1096))) uint1096;
typedef unsigned int __attribute__ ((bitwidth(1097))) uint1097;
typedef unsigned int __attribute__ ((bitwidth(1098))) uint1098;
typedef unsigned int __attribute__ ((bitwidth(1099))) uint1099;
typedef unsigned int __attribute__ ((bitwidth(1100))) uint1100;
typedef unsigned int __attribute__ ((bitwidth(1101))) uint1101;
typedef unsigned int __attribute__ ((bitwidth(1102))) uint1102;
typedef unsigned int __attribute__ ((bitwidth(1103))) uint1103;
typedef unsigned int __attribute__ ((bitwidth(1104))) uint1104;
typedef unsigned int __attribute__ ((bitwidth(1105))) uint1105;
typedef unsigned int __attribute__ ((bitwidth(1106))) uint1106;
typedef unsigned int __attribute__ ((bitwidth(1107))) uint1107;
typedef unsigned int __attribute__ ((bitwidth(1108))) uint1108;
typedef unsigned int __attribute__ ((bitwidth(1109))) uint1109;
typedef unsigned int __attribute__ ((bitwidth(1110))) uint1110;
typedef unsigned int __attribute__ ((bitwidth(1111))) uint1111;
typedef unsigned int __attribute__ ((bitwidth(1112))) uint1112;
typedef unsigned int __attribute__ ((bitwidth(1113))) uint1113;
typedef unsigned int __attribute__ ((bitwidth(1114))) uint1114;
typedef unsigned int __attribute__ ((bitwidth(1115))) uint1115;
typedef unsigned int __attribute__ ((bitwidth(1116))) uint1116;
typedef unsigned int __attribute__ ((bitwidth(1117))) uint1117;
typedef unsigned int __attribute__ ((bitwidth(1118))) uint1118;
typedef unsigned int __attribute__ ((bitwidth(1119))) uint1119;
typedef unsigned int __attribute__ ((bitwidth(1120))) uint1120;
typedef unsigned int __attribute__ ((bitwidth(1121))) uint1121;
typedef unsigned int __attribute__ ((bitwidth(1122))) uint1122;
typedef unsigned int __attribute__ ((bitwidth(1123))) uint1123;
typedef unsigned int __attribute__ ((bitwidth(1124))) uint1124;
typedef unsigned int __attribute__ ((bitwidth(1125))) uint1125;
typedef unsigned int __attribute__ ((bitwidth(1126))) uint1126;
typedef unsigned int __attribute__ ((bitwidth(1127))) uint1127;
typedef unsigned int __attribute__ ((bitwidth(1128))) uint1128;
typedef unsigned int __attribute__ ((bitwidth(1129))) uint1129;
typedef unsigned int __attribute__ ((bitwidth(1130))) uint1130;
typedef unsigned int __attribute__ ((bitwidth(1131))) uint1131;
typedef unsigned int __attribute__ ((bitwidth(1132))) uint1132;
typedef unsigned int __attribute__ ((bitwidth(1133))) uint1133;
typedef unsigned int __attribute__ ((bitwidth(1134))) uint1134;
typedef unsigned int __attribute__ ((bitwidth(1135))) uint1135;
typedef unsigned int __attribute__ ((bitwidth(1136))) uint1136;
typedef unsigned int __attribute__ ((bitwidth(1137))) uint1137;
typedef unsigned int __attribute__ ((bitwidth(1138))) uint1138;
typedef unsigned int __attribute__ ((bitwidth(1139))) uint1139;
typedef unsigned int __attribute__ ((bitwidth(1140))) uint1140;
typedef unsigned int __attribute__ ((bitwidth(1141))) uint1141;
typedef unsigned int __attribute__ ((bitwidth(1142))) uint1142;
typedef unsigned int __attribute__ ((bitwidth(1143))) uint1143;
typedef unsigned int __attribute__ ((bitwidth(1144))) uint1144;
typedef unsigned int __attribute__ ((bitwidth(1145))) uint1145;
typedef unsigned int __attribute__ ((bitwidth(1146))) uint1146;
typedef unsigned int __attribute__ ((bitwidth(1147))) uint1147;
typedef unsigned int __attribute__ ((bitwidth(1148))) uint1148;
typedef unsigned int __attribute__ ((bitwidth(1149))) uint1149;
typedef unsigned int __attribute__ ((bitwidth(1150))) uint1150;
typedef unsigned int __attribute__ ((bitwidth(1151))) uint1151;
typedef unsigned int __attribute__ ((bitwidth(1152))) uint1152;
typedef unsigned int __attribute__ ((bitwidth(1153))) uint1153;
typedef unsigned int __attribute__ ((bitwidth(1154))) uint1154;
typedef unsigned int __attribute__ ((bitwidth(1155))) uint1155;
typedef unsigned int __attribute__ ((bitwidth(1156))) uint1156;
typedef unsigned int __attribute__ ((bitwidth(1157))) uint1157;
typedef unsigned int __attribute__ ((bitwidth(1158))) uint1158;
typedef unsigned int __attribute__ ((bitwidth(1159))) uint1159;
typedef unsigned int __attribute__ ((bitwidth(1160))) uint1160;
typedef unsigned int __attribute__ ((bitwidth(1161))) uint1161;
typedef unsigned int __attribute__ ((bitwidth(1162))) uint1162;
typedef unsigned int __attribute__ ((bitwidth(1163))) uint1163;
typedef unsigned int __attribute__ ((bitwidth(1164))) uint1164;
typedef unsigned int __attribute__ ((bitwidth(1165))) uint1165;
typedef unsigned int __attribute__ ((bitwidth(1166))) uint1166;
typedef unsigned int __attribute__ ((bitwidth(1167))) uint1167;
typedef unsigned int __attribute__ ((bitwidth(1168))) uint1168;
typedef unsigned int __attribute__ ((bitwidth(1169))) uint1169;
typedef unsigned int __attribute__ ((bitwidth(1170))) uint1170;
typedef unsigned int __attribute__ ((bitwidth(1171))) uint1171;
typedef unsigned int __attribute__ ((bitwidth(1172))) uint1172;
typedef unsigned int __attribute__ ((bitwidth(1173))) uint1173;
typedef unsigned int __attribute__ ((bitwidth(1174))) uint1174;
typedef unsigned int __attribute__ ((bitwidth(1175))) uint1175;
typedef unsigned int __attribute__ ((bitwidth(1176))) uint1176;
typedef unsigned int __attribute__ ((bitwidth(1177))) uint1177;
typedef unsigned int __attribute__ ((bitwidth(1178))) uint1178;
typedef unsigned int __attribute__ ((bitwidth(1179))) uint1179;
typedef unsigned int __attribute__ ((bitwidth(1180))) uint1180;
typedef unsigned int __attribute__ ((bitwidth(1181))) uint1181;
typedef unsigned int __attribute__ ((bitwidth(1182))) uint1182;
typedef unsigned int __attribute__ ((bitwidth(1183))) uint1183;
typedef unsigned int __attribute__ ((bitwidth(1184))) uint1184;
typedef unsigned int __attribute__ ((bitwidth(1185))) uint1185;
typedef unsigned int __attribute__ ((bitwidth(1186))) uint1186;
typedef unsigned int __attribute__ ((bitwidth(1187))) uint1187;
typedef unsigned int __attribute__ ((bitwidth(1188))) uint1188;
typedef unsigned int __attribute__ ((bitwidth(1189))) uint1189;
typedef unsigned int __attribute__ ((bitwidth(1190))) uint1190;
typedef unsigned int __attribute__ ((bitwidth(1191))) uint1191;
typedef unsigned int __attribute__ ((bitwidth(1192))) uint1192;
typedef unsigned int __attribute__ ((bitwidth(1193))) uint1193;
typedef unsigned int __attribute__ ((bitwidth(1194))) uint1194;
typedef unsigned int __attribute__ ((bitwidth(1195))) uint1195;
typedef unsigned int __attribute__ ((bitwidth(1196))) uint1196;
typedef unsigned int __attribute__ ((bitwidth(1197))) uint1197;
typedef unsigned int __attribute__ ((bitwidth(1198))) uint1198;
typedef unsigned int __attribute__ ((bitwidth(1199))) uint1199;
typedef unsigned int __attribute__ ((bitwidth(1200))) uint1200;
typedef unsigned int __attribute__ ((bitwidth(1201))) uint1201;
typedef unsigned int __attribute__ ((bitwidth(1202))) uint1202;
typedef unsigned int __attribute__ ((bitwidth(1203))) uint1203;
typedef unsigned int __attribute__ ((bitwidth(1204))) uint1204;
typedef unsigned int __attribute__ ((bitwidth(1205))) uint1205;
typedef unsigned int __attribute__ ((bitwidth(1206))) uint1206;
typedef unsigned int __attribute__ ((bitwidth(1207))) uint1207;
typedef unsigned int __attribute__ ((bitwidth(1208))) uint1208;
typedef unsigned int __attribute__ ((bitwidth(1209))) uint1209;
typedef unsigned int __attribute__ ((bitwidth(1210))) uint1210;
typedef unsigned int __attribute__ ((bitwidth(1211))) uint1211;
typedef unsigned int __attribute__ ((bitwidth(1212))) uint1212;
typedef unsigned int __attribute__ ((bitwidth(1213))) uint1213;
typedef unsigned int __attribute__ ((bitwidth(1214))) uint1214;
typedef unsigned int __attribute__ ((bitwidth(1215))) uint1215;
typedef unsigned int __attribute__ ((bitwidth(1216))) uint1216;
typedef unsigned int __attribute__ ((bitwidth(1217))) uint1217;
typedef unsigned int __attribute__ ((bitwidth(1218))) uint1218;
typedef unsigned int __attribute__ ((bitwidth(1219))) uint1219;
typedef unsigned int __attribute__ ((bitwidth(1220))) uint1220;
typedef unsigned int __attribute__ ((bitwidth(1221))) uint1221;
typedef unsigned int __attribute__ ((bitwidth(1222))) uint1222;
typedef unsigned int __attribute__ ((bitwidth(1223))) uint1223;
typedef unsigned int __attribute__ ((bitwidth(1224))) uint1224;
typedef unsigned int __attribute__ ((bitwidth(1225))) uint1225;
typedef unsigned int __attribute__ ((bitwidth(1226))) uint1226;
typedef unsigned int __attribute__ ((bitwidth(1227))) uint1227;
typedef unsigned int __attribute__ ((bitwidth(1228))) uint1228;
typedef unsigned int __attribute__ ((bitwidth(1229))) uint1229;
typedef unsigned int __attribute__ ((bitwidth(1230))) uint1230;
typedef unsigned int __attribute__ ((bitwidth(1231))) uint1231;
typedef unsigned int __attribute__ ((bitwidth(1232))) uint1232;
typedef unsigned int __attribute__ ((bitwidth(1233))) uint1233;
typedef unsigned int __attribute__ ((bitwidth(1234))) uint1234;
typedef unsigned int __attribute__ ((bitwidth(1235))) uint1235;
typedef unsigned int __attribute__ ((bitwidth(1236))) uint1236;
typedef unsigned int __attribute__ ((bitwidth(1237))) uint1237;
typedef unsigned int __attribute__ ((bitwidth(1238))) uint1238;
typedef unsigned int __attribute__ ((bitwidth(1239))) uint1239;
typedef unsigned int __attribute__ ((bitwidth(1240))) uint1240;
typedef unsigned int __attribute__ ((bitwidth(1241))) uint1241;
typedef unsigned int __attribute__ ((bitwidth(1242))) uint1242;
typedef unsigned int __attribute__ ((bitwidth(1243))) uint1243;
typedef unsigned int __attribute__ ((bitwidth(1244))) uint1244;
typedef unsigned int __attribute__ ((bitwidth(1245))) uint1245;
typedef unsigned int __attribute__ ((bitwidth(1246))) uint1246;
typedef unsigned int __attribute__ ((bitwidth(1247))) uint1247;
typedef unsigned int __attribute__ ((bitwidth(1248))) uint1248;
typedef unsigned int __attribute__ ((bitwidth(1249))) uint1249;
typedef unsigned int __attribute__ ((bitwidth(1250))) uint1250;
typedef unsigned int __attribute__ ((bitwidth(1251))) uint1251;
typedef unsigned int __attribute__ ((bitwidth(1252))) uint1252;
typedef unsigned int __attribute__ ((bitwidth(1253))) uint1253;
typedef unsigned int __attribute__ ((bitwidth(1254))) uint1254;
typedef unsigned int __attribute__ ((bitwidth(1255))) uint1255;
typedef unsigned int __attribute__ ((bitwidth(1256))) uint1256;
typedef unsigned int __attribute__ ((bitwidth(1257))) uint1257;
typedef unsigned int __attribute__ ((bitwidth(1258))) uint1258;
typedef unsigned int __attribute__ ((bitwidth(1259))) uint1259;
typedef unsigned int __attribute__ ((bitwidth(1260))) uint1260;
typedef unsigned int __attribute__ ((bitwidth(1261))) uint1261;
typedef unsigned int __attribute__ ((bitwidth(1262))) uint1262;
typedef unsigned int __attribute__ ((bitwidth(1263))) uint1263;
typedef unsigned int __attribute__ ((bitwidth(1264))) uint1264;
typedef unsigned int __attribute__ ((bitwidth(1265))) uint1265;
typedef unsigned int __attribute__ ((bitwidth(1266))) uint1266;
typedef unsigned int __attribute__ ((bitwidth(1267))) uint1267;
typedef unsigned int __attribute__ ((bitwidth(1268))) uint1268;
typedef unsigned int __attribute__ ((bitwidth(1269))) uint1269;
typedef unsigned int __attribute__ ((bitwidth(1270))) uint1270;
typedef unsigned int __attribute__ ((bitwidth(1271))) uint1271;
typedef unsigned int __attribute__ ((bitwidth(1272))) uint1272;
typedef unsigned int __attribute__ ((bitwidth(1273))) uint1273;
typedef unsigned int __attribute__ ((bitwidth(1274))) uint1274;
typedef unsigned int __attribute__ ((bitwidth(1275))) uint1275;
typedef unsigned int __attribute__ ((bitwidth(1276))) uint1276;
typedef unsigned int __attribute__ ((bitwidth(1277))) uint1277;
typedef unsigned int __attribute__ ((bitwidth(1278))) uint1278;
typedef unsigned int __attribute__ ((bitwidth(1279))) uint1279;
typedef unsigned int __attribute__ ((bitwidth(1280))) uint1280;
typedef unsigned int __attribute__ ((bitwidth(1281))) uint1281;
typedef unsigned int __attribute__ ((bitwidth(1282))) uint1282;
typedef unsigned int __attribute__ ((bitwidth(1283))) uint1283;
typedef unsigned int __attribute__ ((bitwidth(1284))) uint1284;
typedef unsigned int __attribute__ ((bitwidth(1285))) uint1285;
typedef unsigned int __attribute__ ((bitwidth(1286))) uint1286;
typedef unsigned int __attribute__ ((bitwidth(1287))) uint1287;
typedef unsigned int __attribute__ ((bitwidth(1288))) uint1288;
typedef unsigned int __attribute__ ((bitwidth(1289))) uint1289;
typedef unsigned int __attribute__ ((bitwidth(1290))) uint1290;
typedef unsigned int __attribute__ ((bitwidth(1291))) uint1291;
typedef unsigned int __attribute__ ((bitwidth(1292))) uint1292;
typedef unsigned int __attribute__ ((bitwidth(1293))) uint1293;
typedef unsigned int __attribute__ ((bitwidth(1294))) uint1294;
typedef unsigned int __attribute__ ((bitwidth(1295))) uint1295;
typedef unsigned int __attribute__ ((bitwidth(1296))) uint1296;
typedef unsigned int __attribute__ ((bitwidth(1297))) uint1297;
typedef unsigned int __attribute__ ((bitwidth(1298))) uint1298;
typedef unsigned int __attribute__ ((bitwidth(1299))) uint1299;
typedef unsigned int __attribute__ ((bitwidth(1300))) uint1300;
typedef unsigned int __attribute__ ((bitwidth(1301))) uint1301;
typedef unsigned int __attribute__ ((bitwidth(1302))) uint1302;
typedef unsigned int __attribute__ ((bitwidth(1303))) uint1303;
typedef unsigned int __attribute__ ((bitwidth(1304))) uint1304;
typedef unsigned int __attribute__ ((bitwidth(1305))) uint1305;
typedef unsigned int __attribute__ ((bitwidth(1306))) uint1306;
typedef unsigned int __attribute__ ((bitwidth(1307))) uint1307;
typedef unsigned int __attribute__ ((bitwidth(1308))) uint1308;
typedef unsigned int __attribute__ ((bitwidth(1309))) uint1309;
typedef unsigned int __attribute__ ((bitwidth(1310))) uint1310;
typedef unsigned int __attribute__ ((bitwidth(1311))) uint1311;
typedef unsigned int __attribute__ ((bitwidth(1312))) uint1312;
typedef unsigned int __attribute__ ((bitwidth(1313))) uint1313;
typedef unsigned int __attribute__ ((bitwidth(1314))) uint1314;
typedef unsigned int __attribute__ ((bitwidth(1315))) uint1315;
typedef unsigned int __attribute__ ((bitwidth(1316))) uint1316;
typedef unsigned int __attribute__ ((bitwidth(1317))) uint1317;
typedef unsigned int __attribute__ ((bitwidth(1318))) uint1318;
typedef unsigned int __attribute__ ((bitwidth(1319))) uint1319;
typedef unsigned int __attribute__ ((bitwidth(1320))) uint1320;
typedef unsigned int __attribute__ ((bitwidth(1321))) uint1321;
typedef unsigned int __attribute__ ((bitwidth(1322))) uint1322;
typedef unsigned int __attribute__ ((bitwidth(1323))) uint1323;
typedef unsigned int __attribute__ ((bitwidth(1324))) uint1324;
typedef unsigned int __attribute__ ((bitwidth(1325))) uint1325;
typedef unsigned int __attribute__ ((bitwidth(1326))) uint1326;
typedef unsigned int __attribute__ ((bitwidth(1327))) uint1327;
typedef unsigned int __attribute__ ((bitwidth(1328))) uint1328;
typedef unsigned int __attribute__ ((bitwidth(1329))) uint1329;
typedef unsigned int __attribute__ ((bitwidth(1330))) uint1330;
typedef unsigned int __attribute__ ((bitwidth(1331))) uint1331;
typedef unsigned int __attribute__ ((bitwidth(1332))) uint1332;
typedef unsigned int __attribute__ ((bitwidth(1333))) uint1333;
typedef unsigned int __attribute__ ((bitwidth(1334))) uint1334;
typedef unsigned int __attribute__ ((bitwidth(1335))) uint1335;
typedef unsigned int __attribute__ ((bitwidth(1336))) uint1336;
typedef unsigned int __attribute__ ((bitwidth(1337))) uint1337;
typedef unsigned int __attribute__ ((bitwidth(1338))) uint1338;
typedef unsigned int __attribute__ ((bitwidth(1339))) uint1339;
typedef unsigned int __attribute__ ((bitwidth(1340))) uint1340;
typedef unsigned int __attribute__ ((bitwidth(1341))) uint1341;
typedef unsigned int __attribute__ ((bitwidth(1342))) uint1342;
typedef unsigned int __attribute__ ((bitwidth(1343))) uint1343;
typedef unsigned int __attribute__ ((bitwidth(1344))) uint1344;
typedef unsigned int __attribute__ ((bitwidth(1345))) uint1345;
typedef unsigned int __attribute__ ((bitwidth(1346))) uint1346;
typedef unsigned int __attribute__ ((bitwidth(1347))) uint1347;
typedef unsigned int __attribute__ ((bitwidth(1348))) uint1348;
typedef unsigned int __attribute__ ((bitwidth(1349))) uint1349;
typedef unsigned int __attribute__ ((bitwidth(1350))) uint1350;
typedef unsigned int __attribute__ ((bitwidth(1351))) uint1351;
typedef unsigned int __attribute__ ((bitwidth(1352))) uint1352;
typedef unsigned int __attribute__ ((bitwidth(1353))) uint1353;
typedef unsigned int __attribute__ ((bitwidth(1354))) uint1354;
typedef unsigned int __attribute__ ((bitwidth(1355))) uint1355;
typedef unsigned int __attribute__ ((bitwidth(1356))) uint1356;
typedef unsigned int __attribute__ ((bitwidth(1357))) uint1357;
typedef unsigned int __attribute__ ((bitwidth(1358))) uint1358;
typedef unsigned int __attribute__ ((bitwidth(1359))) uint1359;
typedef unsigned int __attribute__ ((bitwidth(1360))) uint1360;
typedef unsigned int __attribute__ ((bitwidth(1361))) uint1361;
typedef unsigned int __attribute__ ((bitwidth(1362))) uint1362;
typedef unsigned int __attribute__ ((bitwidth(1363))) uint1363;
typedef unsigned int __attribute__ ((bitwidth(1364))) uint1364;
typedef unsigned int __attribute__ ((bitwidth(1365))) uint1365;
typedef unsigned int __attribute__ ((bitwidth(1366))) uint1366;
typedef unsigned int __attribute__ ((bitwidth(1367))) uint1367;
typedef unsigned int __attribute__ ((bitwidth(1368))) uint1368;
typedef unsigned int __attribute__ ((bitwidth(1369))) uint1369;
typedef unsigned int __attribute__ ((bitwidth(1370))) uint1370;
typedef unsigned int __attribute__ ((bitwidth(1371))) uint1371;
typedef unsigned int __attribute__ ((bitwidth(1372))) uint1372;
typedef unsigned int __attribute__ ((bitwidth(1373))) uint1373;
typedef unsigned int __attribute__ ((bitwidth(1374))) uint1374;
typedef unsigned int __attribute__ ((bitwidth(1375))) uint1375;
typedef unsigned int __attribute__ ((bitwidth(1376))) uint1376;
typedef unsigned int __attribute__ ((bitwidth(1377))) uint1377;
typedef unsigned int __attribute__ ((bitwidth(1378))) uint1378;
typedef unsigned int __attribute__ ((bitwidth(1379))) uint1379;
typedef unsigned int __attribute__ ((bitwidth(1380))) uint1380;
typedef unsigned int __attribute__ ((bitwidth(1381))) uint1381;
typedef unsigned int __attribute__ ((bitwidth(1382))) uint1382;
typedef unsigned int __attribute__ ((bitwidth(1383))) uint1383;
typedef unsigned int __attribute__ ((bitwidth(1384))) uint1384;
typedef unsigned int __attribute__ ((bitwidth(1385))) uint1385;
typedef unsigned int __attribute__ ((bitwidth(1386))) uint1386;
typedef unsigned int __attribute__ ((bitwidth(1387))) uint1387;
typedef unsigned int __attribute__ ((bitwidth(1388))) uint1388;
typedef unsigned int __attribute__ ((bitwidth(1389))) uint1389;
typedef unsigned int __attribute__ ((bitwidth(1390))) uint1390;
typedef unsigned int __attribute__ ((bitwidth(1391))) uint1391;
typedef unsigned int __attribute__ ((bitwidth(1392))) uint1392;
typedef unsigned int __attribute__ ((bitwidth(1393))) uint1393;
typedef unsigned int __attribute__ ((bitwidth(1394))) uint1394;
typedef unsigned int __attribute__ ((bitwidth(1395))) uint1395;
typedef unsigned int __attribute__ ((bitwidth(1396))) uint1396;
typedef unsigned int __attribute__ ((bitwidth(1397))) uint1397;
typedef unsigned int __attribute__ ((bitwidth(1398))) uint1398;
typedef unsigned int __attribute__ ((bitwidth(1399))) uint1399;
typedef unsigned int __attribute__ ((bitwidth(1400))) uint1400;
typedef unsigned int __attribute__ ((bitwidth(1401))) uint1401;
typedef unsigned int __attribute__ ((bitwidth(1402))) uint1402;
typedef unsigned int __attribute__ ((bitwidth(1403))) uint1403;
typedef unsigned int __attribute__ ((bitwidth(1404))) uint1404;
typedef unsigned int __attribute__ ((bitwidth(1405))) uint1405;
typedef unsigned int __attribute__ ((bitwidth(1406))) uint1406;
typedef unsigned int __attribute__ ((bitwidth(1407))) uint1407;
typedef unsigned int __attribute__ ((bitwidth(1408))) uint1408;
typedef unsigned int __attribute__ ((bitwidth(1409))) uint1409;
typedef unsigned int __attribute__ ((bitwidth(1410))) uint1410;
typedef unsigned int __attribute__ ((bitwidth(1411))) uint1411;
typedef unsigned int __attribute__ ((bitwidth(1412))) uint1412;
typedef unsigned int __attribute__ ((bitwidth(1413))) uint1413;
typedef unsigned int __attribute__ ((bitwidth(1414))) uint1414;
typedef unsigned int __attribute__ ((bitwidth(1415))) uint1415;
typedef unsigned int __attribute__ ((bitwidth(1416))) uint1416;
typedef unsigned int __attribute__ ((bitwidth(1417))) uint1417;
typedef unsigned int __attribute__ ((bitwidth(1418))) uint1418;
typedef unsigned int __attribute__ ((bitwidth(1419))) uint1419;
typedef unsigned int __attribute__ ((bitwidth(1420))) uint1420;
typedef unsigned int __attribute__ ((bitwidth(1421))) uint1421;
typedef unsigned int __attribute__ ((bitwidth(1422))) uint1422;
typedef unsigned int __attribute__ ((bitwidth(1423))) uint1423;
typedef unsigned int __attribute__ ((bitwidth(1424))) uint1424;
typedef unsigned int __attribute__ ((bitwidth(1425))) uint1425;
typedef unsigned int __attribute__ ((bitwidth(1426))) uint1426;
typedef unsigned int __attribute__ ((bitwidth(1427))) uint1427;
typedef unsigned int __attribute__ ((bitwidth(1428))) uint1428;
typedef unsigned int __attribute__ ((bitwidth(1429))) uint1429;
typedef unsigned int __attribute__ ((bitwidth(1430))) uint1430;
typedef unsigned int __attribute__ ((bitwidth(1431))) uint1431;
typedef unsigned int __attribute__ ((bitwidth(1432))) uint1432;
typedef unsigned int __attribute__ ((bitwidth(1433))) uint1433;
typedef unsigned int __attribute__ ((bitwidth(1434))) uint1434;
typedef unsigned int __attribute__ ((bitwidth(1435))) uint1435;
typedef unsigned int __attribute__ ((bitwidth(1436))) uint1436;
typedef unsigned int __attribute__ ((bitwidth(1437))) uint1437;
typedef unsigned int __attribute__ ((bitwidth(1438))) uint1438;
typedef unsigned int __attribute__ ((bitwidth(1439))) uint1439;
typedef unsigned int __attribute__ ((bitwidth(1440))) uint1440;
typedef unsigned int __attribute__ ((bitwidth(1441))) uint1441;
typedef unsigned int __attribute__ ((bitwidth(1442))) uint1442;
typedef unsigned int __attribute__ ((bitwidth(1443))) uint1443;
typedef unsigned int __attribute__ ((bitwidth(1444))) uint1444;
typedef unsigned int __attribute__ ((bitwidth(1445))) uint1445;
typedef unsigned int __attribute__ ((bitwidth(1446))) uint1446;
typedef unsigned int __attribute__ ((bitwidth(1447))) uint1447;
typedef unsigned int __attribute__ ((bitwidth(1448))) uint1448;
typedef unsigned int __attribute__ ((bitwidth(1449))) uint1449;
typedef unsigned int __attribute__ ((bitwidth(1450))) uint1450;
typedef unsigned int __attribute__ ((bitwidth(1451))) uint1451;
typedef unsigned int __attribute__ ((bitwidth(1452))) uint1452;
typedef unsigned int __attribute__ ((bitwidth(1453))) uint1453;
typedef unsigned int __attribute__ ((bitwidth(1454))) uint1454;
typedef unsigned int __attribute__ ((bitwidth(1455))) uint1455;
typedef unsigned int __attribute__ ((bitwidth(1456))) uint1456;
typedef unsigned int __attribute__ ((bitwidth(1457))) uint1457;
typedef unsigned int __attribute__ ((bitwidth(1458))) uint1458;
typedef unsigned int __attribute__ ((bitwidth(1459))) uint1459;
typedef unsigned int __attribute__ ((bitwidth(1460))) uint1460;
typedef unsigned int __attribute__ ((bitwidth(1461))) uint1461;
typedef unsigned int __attribute__ ((bitwidth(1462))) uint1462;
typedef unsigned int __attribute__ ((bitwidth(1463))) uint1463;
typedef unsigned int __attribute__ ((bitwidth(1464))) uint1464;
typedef unsigned int __attribute__ ((bitwidth(1465))) uint1465;
typedef unsigned int __attribute__ ((bitwidth(1466))) uint1466;
typedef unsigned int __attribute__ ((bitwidth(1467))) uint1467;
typedef unsigned int __attribute__ ((bitwidth(1468))) uint1468;
typedef unsigned int __attribute__ ((bitwidth(1469))) uint1469;
typedef unsigned int __attribute__ ((bitwidth(1470))) uint1470;
typedef unsigned int __attribute__ ((bitwidth(1471))) uint1471;
typedef unsigned int __attribute__ ((bitwidth(1472))) uint1472;
typedef unsigned int __attribute__ ((bitwidth(1473))) uint1473;
typedef unsigned int __attribute__ ((bitwidth(1474))) uint1474;
typedef unsigned int __attribute__ ((bitwidth(1475))) uint1475;
typedef unsigned int __attribute__ ((bitwidth(1476))) uint1476;
typedef unsigned int __attribute__ ((bitwidth(1477))) uint1477;
typedef unsigned int __attribute__ ((bitwidth(1478))) uint1478;
typedef unsigned int __attribute__ ((bitwidth(1479))) uint1479;
typedef unsigned int __attribute__ ((bitwidth(1480))) uint1480;
typedef unsigned int __attribute__ ((bitwidth(1481))) uint1481;
typedef unsigned int __attribute__ ((bitwidth(1482))) uint1482;
typedef unsigned int __attribute__ ((bitwidth(1483))) uint1483;
typedef unsigned int __attribute__ ((bitwidth(1484))) uint1484;
typedef unsigned int __attribute__ ((bitwidth(1485))) uint1485;
typedef unsigned int __attribute__ ((bitwidth(1486))) uint1486;
typedef unsigned int __attribute__ ((bitwidth(1487))) uint1487;
typedef unsigned int __attribute__ ((bitwidth(1488))) uint1488;
typedef unsigned int __attribute__ ((bitwidth(1489))) uint1489;
typedef unsigned int __attribute__ ((bitwidth(1490))) uint1490;
typedef unsigned int __attribute__ ((bitwidth(1491))) uint1491;
typedef unsigned int __attribute__ ((bitwidth(1492))) uint1492;
typedef unsigned int __attribute__ ((bitwidth(1493))) uint1493;
typedef unsigned int __attribute__ ((bitwidth(1494))) uint1494;
typedef unsigned int __attribute__ ((bitwidth(1495))) uint1495;
typedef unsigned int __attribute__ ((bitwidth(1496))) uint1496;
typedef unsigned int __attribute__ ((bitwidth(1497))) uint1497;
typedef unsigned int __attribute__ ((bitwidth(1498))) uint1498;
typedef unsigned int __attribute__ ((bitwidth(1499))) uint1499;
typedef unsigned int __attribute__ ((bitwidth(1500))) uint1500;
typedef unsigned int __attribute__ ((bitwidth(1501))) uint1501;
typedef unsigned int __attribute__ ((bitwidth(1502))) uint1502;
typedef unsigned int __attribute__ ((bitwidth(1503))) uint1503;
typedef unsigned int __attribute__ ((bitwidth(1504))) uint1504;
typedef unsigned int __attribute__ ((bitwidth(1505))) uint1505;
typedef unsigned int __attribute__ ((bitwidth(1506))) uint1506;
typedef unsigned int __attribute__ ((bitwidth(1507))) uint1507;
typedef unsigned int __attribute__ ((bitwidth(1508))) uint1508;
typedef unsigned int __attribute__ ((bitwidth(1509))) uint1509;
typedef unsigned int __attribute__ ((bitwidth(1510))) uint1510;
typedef unsigned int __attribute__ ((bitwidth(1511))) uint1511;
typedef unsigned int __attribute__ ((bitwidth(1512))) uint1512;
typedef unsigned int __attribute__ ((bitwidth(1513))) uint1513;
typedef unsigned int __attribute__ ((bitwidth(1514))) uint1514;
typedef unsigned int __attribute__ ((bitwidth(1515))) uint1515;
typedef unsigned int __attribute__ ((bitwidth(1516))) uint1516;
typedef unsigned int __attribute__ ((bitwidth(1517))) uint1517;
typedef unsigned int __attribute__ ((bitwidth(1518))) uint1518;
typedef unsigned int __attribute__ ((bitwidth(1519))) uint1519;
typedef unsigned int __attribute__ ((bitwidth(1520))) uint1520;
typedef unsigned int __attribute__ ((bitwidth(1521))) uint1521;
typedef unsigned int __attribute__ ((bitwidth(1522))) uint1522;
typedef unsigned int __attribute__ ((bitwidth(1523))) uint1523;
typedef unsigned int __attribute__ ((bitwidth(1524))) uint1524;
typedef unsigned int __attribute__ ((bitwidth(1525))) uint1525;
typedef unsigned int __attribute__ ((bitwidth(1526))) uint1526;
typedef unsigned int __attribute__ ((bitwidth(1527))) uint1527;
typedef unsigned int __attribute__ ((bitwidth(1528))) uint1528;
typedef unsigned int __attribute__ ((bitwidth(1529))) uint1529;
typedef unsigned int __attribute__ ((bitwidth(1530))) uint1530;
typedef unsigned int __attribute__ ((bitwidth(1531))) uint1531;
typedef unsigned int __attribute__ ((bitwidth(1532))) uint1532;
typedef unsigned int __attribute__ ((bitwidth(1533))) uint1533;
typedef unsigned int __attribute__ ((bitwidth(1534))) uint1534;
typedef unsigned int __attribute__ ((bitwidth(1535))) uint1535;
typedef unsigned int __attribute__ ((bitwidth(1536))) uint1536;
typedef unsigned int __attribute__ ((bitwidth(1537))) uint1537;
typedef unsigned int __attribute__ ((bitwidth(1538))) uint1538;
typedef unsigned int __attribute__ ((bitwidth(1539))) uint1539;
typedef unsigned int __attribute__ ((bitwidth(1540))) uint1540;
typedef unsigned int __attribute__ ((bitwidth(1541))) uint1541;
typedef unsigned int __attribute__ ((bitwidth(1542))) uint1542;
typedef unsigned int __attribute__ ((bitwidth(1543))) uint1543;
typedef unsigned int __attribute__ ((bitwidth(1544))) uint1544;
typedef unsigned int __attribute__ ((bitwidth(1545))) uint1545;
typedef unsigned int __attribute__ ((bitwidth(1546))) uint1546;
typedef unsigned int __attribute__ ((bitwidth(1547))) uint1547;
typedef unsigned int __attribute__ ((bitwidth(1548))) uint1548;
typedef unsigned int __attribute__ ((bitwidth(1549))) uint1549;
typedef unsigned int __attribute__ ((bitwidth(1550))) uint1550;
typedef unsigned int __attribute__ ((bitwidth(1551))) uint1551;
typedef unsigned int __attribute__ ((bitwidth(1552))) uint1552;
typedef unsigned int __attribute__ ((bitwidth(1553))) uint1553;
typedef unsigned int __attribute__ ((bitwidth(1554))) uint1554;
typedef unsigned int __attribute__ ((bitwidth(1555))) uint1555;
typedef unsigned int __attribute__ ((bitwidth(1556))) uint1556;
typedef unsigned int __attribute__ ((bitwidth(1557))) uint1557;
typedef unsigned int __attribute__ ((bitwidth(1558))) uint1558;
typedef unsigned int __attribute__ ((bitwidth(1559))) uint1559;
typedef unsigned int __attribute__ ((bitwidth(1560))) uint1560;
typedef unsigned int __attribute__ ((bitwidth(1561))) uint1561;
typedef unsigned int __attribute__ ((bitwidth(1562))) uint1562;
typedef unsigned int __attribute__ ((bitwidth(1563))) uint1563;
typedef unsigned int __attribute__ ((bitwidth(1564))) uint1564;
typedef unsigned int __attribute__ ((bitwidth(1565))) uint1565;
typedef unsigned int __attribute__ ((bitwidth(1566))) uint1566;
typedef unsigned int __attribute__ ((bitwidth(1567))) uint1567;
typedef unsigned int __attribute__ ((bitwidth(1568))) uint1568;
typedef unsigned int __attribute__ ((bitwidth(1569))) uint1569;
typedef unsigned int __attribute__ ((bitwidth(1570))) uint1570;
typedef unsigned int __attribute__ ((bitwidth(1571))) uint1571;
typedef unsigned int __attribute__ ((bitwidth(1572))) uint1572;
typedef unsigned int __attribute__ ((bitwidth(1573))) uint1573;
typedef unsigned int __attribute__ ((bitwidth(1574))) uint1574;
typedef unsigned int __attribute__ ((bitwidth(1575))) uint1575;
typedef unsigned int __attribute__ ((bitwidth(1576))) uint1576;
typedef unsigned int __attribute__ ((bitwidth(1577))) uint1577;
typedef unsigned int __attribute__ ((bitwidth(1578))) uint1578;
typedef unsigned int __attribute__ ((bitwidth(1579))) uint1579;
typedef unsigned int __attribute__ ((bitwidth(1580))) uint1580;
typedef unsigned int __attribute__ ((bitwidth(1581))) uint1581;
typedef unsigned int __attribute__ ((bitwidth(1582))) uint1582;
typedef unsigned int __attribute__ ((bitwidth(1583))) uint1583;
typedef unsigned int __attribute__ ((bitwidth(1584))) uint1584;
typedef unsigned int __attribute__ ((bitwidth(1585))) uint1585;
typedef unsigned int __attribute__ ((bitwidth(1586))) uint1586;
typedef unsigned int __attribute__ ((bitwidth(1587))) uint1587;
typedef unsigned int __attribute__ ((bitwidth(1588))) uint1588;
typedef unsigned int __attribute__ ((bitwidth(1589))) uint1589;
typedef unsigned int __attribute__ ((bitwidth(1590))) uint1590;
typedef unsigned int __attribute__ ((bitwidth(1591))) uint1591;
typedef unsigned int __attribute__ ((bitwidth(1592))) uint1592;
typedef unsigned int __attribute__ ((bitwidth(1593))) uint1593;
typedef unsigned int __attribute__ ((bitwidth(1594))) uint1594;
typedef unsigned int __attribute__ ((bitwidth(1595))) uint1595;
typedef unsigned int __attribute__ ((bitwidth(1596))) uint1596;
typedef unsigned int __attribute__ ((bitwidth(1597))) uint1597;
typedef unsigned int __attribute__ ((bitwidth(1598))) uint1598;
typedef unsigned int __attribute__ ((bitwidth(1599))) uint1599;
typedef unsigned int __attribute__ ((bitwidth(1600))) uint1600;
typedef unsigned int __attribute__ ((bitwidth(1601))) uint1601;
typedef unsigned int __attribute__ ((bitwidth(1602))) uint1602;
typedef unsigned int __attribute__ ((bitwidth(1603))) uint1603;
typedef unsigned int __attribute__ ((bitwidth(1604))) uint1604;
typedef unsigned int __attribute__ ((bitwidth(1605))) uint1605;
typedef unsigned int __attribute__ ((bitwidth(1606))) uint1606;
typedef unsigned int __attribute__ ((bitwidth(1607))) uint1607;
typedef unsigned int __attribute__ ((bitwidth(1608))) uint1608;
typedef unsigned int __attribute__ ((bitwidth(1609))) uint1609;
typedef unsigned int __attribute__ ((bitwidth(1610))) uint1610;
typedef unsigned int __attribute__ ((bitwidth(1611))) uint1611;
typedef unsigned int __attribute__ ((bitwidth(1612))) uint1612;
typedef unsigned int __attribute__ ((bitwidth(1613))) uint1613;
typedef unsigned int __attribute__ ((bitwidth(1614))) uint1614;
typedef unsigned int __attribute__ ((bitwidth(1615))) uint1615;
typedef unsigned int __attribute__ ((bitwidth(1616))) uint1616;
typedef unsigned int __attribute__ ((bitwidth(1617))) uint1617;
typedef unsigned int __attribute__ ((bitwidth(1618))) uint1618;
typedef unsigned int __attribute__ ((bitwidth(1619))) uint1619;
typedef unsigned int __attribute__ ((bitwidth(1620))) uint1620;
typedef unsigned int __attribute__ ((bitwidth(1621))) uint1621;
typedef unsigned int __attribute__ ((bitwidth(1622))) uint1622;
typedef unsigned int __attribute__ ((bitwidth(1623))) uint1623;
typedef unsigned int __attribute__ ((bitwidth(1624))) uint1624;
typedef unsigned int __attribute__ ((bitwidth(1625))) uint1625;
typedef unsigned int __attribute__ ((bitwidth(1626))) uint1626;
typedef unsigned int __attribute__ ((bitwidth(1627))) uint1627;
typedef unsigned int __attribute__ ((bitwidth(1628))) uint1628;
typedef unsigned int __attribute__ ((bitwidth(1629))) uint1629;
typedef unsigned int __attribute__ ((bitwidth(1630))) uint1630;
typedef unsigned int __attribute__ ((bitwidth(1631))) uint1631;
typedef unsigned int __attribute__ ((bitwidth(1632))) uint1632;
typedef unsigned int __attribute__ ((bitwidth(1633))) uint1633;
typedef unsigned int __attribute__ ((bitwidth(1634))) uint1634;
typedef unsigned int __attribute__ ((bitwidth(1635))) uint1635;
typedef unsigned int __attribute__ ((bitwidth(1636))) uint1636;
typedef unsigned int __attribute__ ((bitwidth(1637))) uint1637;
typedef unsigned int __attribute__ ((bitwidth(1638))) uint1638;
typedef unsigned int __attribute__ ((bitwidth(1639))) uint1639;
typedef unsigned int __attribute__ ((bitwidth(1640))) uint1640;
typedef unsigned int __attribute__ ((bitwidth(1641))) uint1641;
typedef unsigned int __attribute__ ((bitwidth(1642))) uint1642;
typedef unsigned int __attribute__ ((bitwidth(1643))) uint1643;
typedef unsigned int __attribute__ ((bitwidth(1644))) uint1644;
typedef unsigned int __attribute__ ((bitwidth(1645))) uint1645;
typedef unsigned int __attribute__ ((bitwidth(1646))) uint1646;
typedef unsigned int __attribute__ ((bitwidth(1647))) uint1647;
typedef unsigned int __attribute__ ((bitwidth(1648))) uint1648;
typedef unsigned int __attribute__ ((bitwidth(1649))) uint1649;
typedef unsigned int __attribute__ ((bitwidth(1650))) uint1650;
typedef unsigned int __attribute__ ((bitwidth(1651))) uint1651;
typedef unsigned int __attribute__ ((bitwidth(1652))) uint1652;
typedef unsigned int __attribute__ ((bitwidth(1653))) uint1653;
typedef unsigned int __attribute__ ((bitwidth(1654))) uint1654;
typedef unsigned int __attribute__ ((bitwidth(1655))) uint1655;
typedef unsigned int __attribute__ ((bitwidth(1656))) uint1656;
typedef unsigned int __attribute__ ((bitwidth(1657))) uint1657;
typedef unsigned int __attribute__ ((bitwidth(1658))) uint1658;
typedef unsigned int __attribute__ ((bitwidth(1659))) uint1659;
typedef unsigned int __attribute__ ((bitwidth(1660))) uint1660;
typedef unsigned int __attribute__ ((bitwidth(1661))) uint1661;
typedef unsigned int __attribute__ ((bitwidth(1662))) uint1662;
typedef unsigned int __attribute__ ((bitwidth(1663))) uint1663;
typedef unsigned int __attribute__ ((bitwidth(1664))) uint1664;
typedef unsigned int __attribute__ ((bitwidth(1665))) uint1665;
typedef unsigned int __attribute__ ((bitwidth(1666))) uint1666;
typedef unsigned int __attribute__ ((bitwidth(1667))) uint1667;
typedef unsigned int __attribute__ ((bitwidth(1668))) uint1668;
typedef unsigned int __attribute__ ((bitwidth(1669))) uint1669;
typedef unsigned int __attribute__ ((bitwidth(1670))) uint1670;
typedef unsigned int __attribute__ ((bitwidth(1671))) uint1671;
typedef unsigned int __attribute__ ((bitwidth(1672))) uint1672;
typedef unsigned int __attribute__ ((bitwidth(1673))) uint1673;
typedef unsigned int __attribute__ ((bitwidth(1674))) uint1674;
typedef unsigned int __attribute__ ((bitwidth(1675))) uint1675;
typedef unsigned int __attribute__ ((bitwidth(1676))) uint1676;
typedef unsigned int __attribute__ ((bitwidth(1677))) uint1677;
typedef unsigned int __attribute__ ((bitwidth(1678))) uint1678;
typedef unsigned int __attribute__ ((bitwidth(1679))) uint1679;
typedef unsigned int __attribute__ ((bitwidth(1680))) uint1680;
typedef unsigned int __attribute__ ((bitwidth(1681))) uint1681;
typedef unsigned int __attribute__ ((bitwidth(1682))) uint1682;
typedef unsigned int __attribute__ ((bitwidth(1683))) uint1683;
typedef unsigned int __attribute__ ((bitwidth(1684))) uint1684;
typedef unsigned int __attribute__ ((bitwidth(1685))) uint1685;
typedef unsigned int __attribute__ ((bitwidth(1686))) uint1686;
typedef unsigned int __attribute__ ((bitwidth(1687))) uint1687;
typedef unsigned int __attribute__ ((bitwidth(1688))) uint1688;
typedef unsigned int __attribute__ ((bitwidth(1689))) uint1689;
typedef unsigned int __attribute__ ((bitwidth(1690))) uint1690;
typedef unsigned int __attribute__ ((bitwidth(1691))) uint1691;
typedef unsigned int __attribute__ ((bitwidth(1692))) uint1692;
typedef unsigned int __attribute__ ((bitwidth(1693))) uint1693;
typedef unsigned int __attribute__ ((bitwidth(1694))) uint1694;
typedef unsigned int __attribute__ ((bitwidth(1695))) uint1695;
typedef unsigned int __attribute__ ((bitwidth(1696))) uint1696;
typedef unsigned int __attribute__ ((bitwidth(1697))) uint1697;
typedef unsigned int __attribute__ ((bitwidth(1698))) uint1698;
typedef unsigned int __attribute__ ((bitwidth(1699))) uint1699;
typedef unsigned int __attribute__ ((bitwidth(1700))) uint1700;
typedef unsigned int __attribute__ ((bitwidth(1701))) uint1701;
typedef unsigned int __attribute__ ((bitwidth(1702))) uint1702;
typedef unsigned int __attribute__ ((bitwidth(1703))) uint1703;
typedef unsigned int __attribute__ ((bitwidth(1704))) uint1704;
typedef unsigned int __attribute__ ((bitwidth(1705))) uint1705;
typedef unsigned int __attribute__ ((bitwidth(1706))) uint1706;
typedef unsigned int __attribute__ ((bitwidth(1707))) uint1707;
typedef unsigned int __attribute__ ((bitwidth(1708))) uint1708;
typedef unsigned int __attribute__ ((bitwidth(1709))) uint1709;
typedef unsigned int __attribute__ ((bitwidth(1710))) uint1710;
typedef unsigned int __attribute__ ((bitwidth(1711))) uint1711;
typedef unsigned int __attribute__ ((bitwidth(1712))) uint1712;
typedef unsigned int __attribute__ ((bitwidth(1713))) uint1713;
typedef unsigned int __attribute__ ((bitwidth(1714))) uint1714;
typedef unsigned int __attribute__ ((bitwidth(1715))) uint1715;
typedef unsigned int __attribute__ ((bitwidth(1716))) uint1716;
typedef unsigned int __attribute__ ((bitwidth(1717))) uint1717;
typedef unsigned int __attribute__ ((bitwidth(1718))) uint1718;
typedef unsigned int __attribute__ ((bitwidth(1719))) uint1719;
typedef unsigned int __attribute__ ((bitwidth(1720))) uint1720;
typedef unsigned int __attribute__ ((bitwidth(1721))) uint1721;
typedef unsigned int __attribute__ ((bitwidth(1722))) uint1722;
typedef unsigned int __attribute__ ((bitwidth(1723))) uint1723;
typedef unsigned int __attribute__ ((bitwidth(1724))) uint1724;
typedef unsigned int __attribute__ ((bitwidth(1725))) uint1725;
typedef unsigned int __attribute__ ((bitwidth(1726))) uint1726;
typedef unsigned int __attribute__ ((bitwidth(1727))) uint1727;
typedef unsigned int __attribute__ ((bitwidth(1728))) uint1728;
typedef unsigned int __attribute__ ((bitwidth(1729))) uint1729;
typedef unsigned int __attribute__ ((bitwidth(1730))) uint1730;
typedef unsigned int __attribute__ ((bitwidth(1731))) uint1731;
typedef unsigned int __attribute__ ((bitwidth(1732))) uint1732;
typedef unsigned int __attribute__ ((bitwidth(1733))) uint1733;
typedef unsigned int __attribute__ ((bitwidth(1734))) uint1734;
typedef unsigned int __attribute__ ((bitwidth(1735))) uint1735;
typedef unsigned int __attribute__ ((bitwidth(1736))) uint1736;
typedef unsigned int __attribute__ ((bitwidth(1737))) uint1737;
typedef unsigned int __attribute__ ((bitwidth(1738))) uint1738;
typedef unsigned int __attribute__ ((bitwidth(1739))) uint1739;
typedef unsigned int __attribute__ ((bitwidth(1740))) uint1740;
typedef unsigned int __attribute__ ((bitwidth(1741))) uint1741;
typedef unsigned int __attribute__ ((bitwidth(1742))) uint1742;
typedef unsigned int __attribute__ ((bitwidth(1743))) uint1743;
typedef unsigned int __attribute__ ((bitwidth(1744))) uint1744;
typedef unsigned int __attribute__ ((bitwidth(1745))) uint1745;
typedef unsigned int __attribute__ ((bitwidth(1746))) uint1746;
typedef unsigned int __attribute__ ((bitwidth(1747))) uint1747;
typedef unsigned int __attribute__ ((bitwidth(1748))) uint1748;
typedef unsigned int __attribute__ ((bitwidth(1749))) uint1749;
typedef unsigned int __attribute__ ((bitwidth(1750))) uint1750;
typedef unsigned int __attribute__ ((bitwidth(1751))) uint1751;
typedef unsigned int __attribute__ ((bitwidth(1752))) uint1752;
typedef unsigned int __attribute__ ((bitwidth(1753))) uint1753;
typedef unsigned int __attribute__ ((bitwidth(1754))) uint1754;
typedef unsigned int __attribute__ ((bitwidth(1755))) uint1755;
typedef unsigned int __attribute__ ((bitwidth(1756))) uint1756;
typedef unsigned int __attribute__ ((bitwidth(1757))) uint1757;
typedef unsigned int __attribute__ ((bitwidth(1758))) uint1758;
typedef unsigned int __attribute__ ((bitwidth(1759))) uint1759;
typedef unsigned int __attribute__ ((bitwidth(1760))) uint1760;
typedef unsigned int __attribute__ ((bitwidth(1761))) uint1761;
typedef unsigned int __attribute__ ((bitwidth(1762))) uint1762;
typedef unsigned int __attribute__ ((bitwidth(1763))) uint1763;
typedef unsigned int __attribute__ ((bitwidth(1764))) uint1764;
typedef unsigned int __attribute__ ((bitwidth(1765))) uint1765;
typedef unsigned int __attribute__ ((bitwidth(1766))) uint1766;
typedef unsigned int __attribute__ ((bitwidth(1767))) uint1767;
typedef unsigned int __attribute__ ((bitwidth(1768))) uint1768;
typedef unsigned int __attribute__ ((bitwidth(1769))) uint1769;
typedef unsigned int __attribute__ ((bitwidth(1770))) uint1770;
typedef unsigned int __attribute__ ((bitwidth(1771))) uint1771;
typedef unsigned int __attribute__ ((bitwidth(1772))) uint1772;
typedef unsigned int __attribute__ ((bitwidth(1773))) uint1773;
typedef unsigned int __attribute__ ((bitwidth(1774))) uint1774;
typedef unsigned int __attribute__ ((bitwidth(1775))) uint1775;
typedef unsigned int __attribute__ ((bitwidth(1776))) uint1776;
typedef unsigned int __attribute__ ((bitwidth(1777))) uint1777;
typedef unsigned int __attribute__ ((bitwidth(1778))) uint1778;
typedef unsigned int __attribute__ ((bitwidth(1779))) uint1779;
typedef unsigned int __attribute__ ((bitwidth(1780))) uint1780;
typedef unsigned int __attribute__ ((bitwidth(1781))) uint1781;
typedef unsigned int __attribute__ ((bitwidth(1782))) uint1782;
typedef unsigned int __attribute__ ((bitwidth(1783))) uint1783;
typedef unsigned int __attribute__ ((bitwidth(1784))) uint1784;
typedef unsigned int __attribute__ ((bitwidth(1785))) uint1785;
typedef unsigned int __attribute__ ((bitwidth(1786))) uint1786;
typedef unsigned int __attribute__ ((bitwidth(1787))) uint1787;
typedef unsigned int __attribute__ ((bitwidth(1788))) uint1788;
typedef unsigned int __attribute__ ((bitwidth(1789))) uint1789;
typedef unsigned int __attribute__ ((bitwidth(1790))) uint1790;
typedef unsigned int __attribute__ ((bitwidth(1791))) uint1791;
typedef unsigned int __attribute__ ((bitwidth(1792))) uint1792;
typedef unsigned int __attribute__ ((bitwidth(1793))) uint1793;
typedef unsigned int __attribute__ ((bitwidth(1794))) uint1794;
typedef unsigned int __attribute__ ((bitwidth(1795))) uint1795;
typedef unsigned int __attribute__ ((bitwidth(1796))) uint1796;
typedef unsigned int __attribute__ ((bitwidth(1797))) uint1797;
typedef unsigned int __attribute__ ((bitwidth(1798))) uint1798;
typedef unsigned int __attribute__ ((bitwidth(1799))) uint1799;
typedef unsigned int __attribute__ ((bitwidth(1800))) uint1800;
typedef unsigned int __attribute__ ((bitwidth(1801))) uint1801;
typedef unsigned int __attribute__ ((bitwidth(1802))) uint1802;
typedef unsigned int __attribute__ ((bitwidth(1803))) uint1803;
typedef unsigned int __attribute__ ((bitwidth(1804))) uint1804;
typedef unsigned int __attribute__ ((bitwidth(1805))) uint1805;
typedef unsigned int __attribute__ ((bitwidth(1806))) uint1806;
typedef unsigned int __attribute__ ((bitwidth(1807))) uint1807;
typedef unsigned int __attribute__ ((bitwidth(1808))) uint1808;
typedef unsigned int __attribute__ ((bitwidth(1809))) uint1809;
typedef unsigned int __attribute__ ((bitwidth(1810))) uint1810;
typedef unsigned int __attribute__ ((bitwidth(1811))) uint1811;
typedef unsigned int __attribute__ ((bitwidth(1812))) uint1812;
typedef unsigned int __attribute__ ((bitwidth(1813))) uint1813;
typedef unsigned int __attribute__ ((bitwidth(1814))) uint1814;
typedef unsigned int __attribute__ ((bitwidth(1815))) uint1815;
typedef unsigned int __attribute__ ((bitwidth(1816))) uint1816;
typedef unsigned int __attribute__ ((bitwidth(1817))) uint1817;
typedef unsigned int __attribute__ ((bitwidth(1818))) uint1818;
typedef unsigned int __attribute__ ((bitwidth(1819))) uint1819;
typedef unsigned int __attribute__ ((bitwidth(1820))) uint1820;
typedef unsigned int __attribute__ ((bitwidth(1821))) uint1821;
typedef unsigned int __attribute__ ((bitwidth(1822))) uint1822;
typedef unsigned int __attribute__ ((bitwidth(1823))) uint1823;
typedef unsigned int __attribute__ ((bitwidth(1824))) uint1824;
typedef unsigned int __attribute__ ((bitwidth(1825))) uint1825;
typedef unsigned int __attribute__ ((bitwidth(1826))) uint1826;
typedef unsigned int __attribute__ ((bitwidth(1827))) uint1827;
typedef unsigned int __attribute__ ((bitwidth(1828))) uint1828;
typedef unsigned int __attribute__ ((bitwidth(1829))) uint1829;
typedef unsigned int __attribute__ ((bitwidth(1830))) uint1830;
typedef unsigned int __attribute__ ((bitwidth(1831))) uint1831;
typedef unsigned int __attribute__ ((bitwidth(1832))) uint1832;
typedef unsigned int __attribute__ ((bitwidth(1833))) uint1833;
typedef unsigned int __attribute__ ((bitwidth(1834))) uint1834;
typedef unsigned int __attribute__ ((bitwidth(1835))) uint1835;
typedef unsigned int __attribute__ ((bitwidth(1836))) uint1836;
typedef unsigned int __attribute__ ((bitwidth(1837))) uint1837;
typedef unsigned int __attribute__ ((bitwidth(1838))) uint1838;
typedef unsigned int __attribute__ ((bitwidth(1839))) uint1839;
typedef unsigned int __attribute__ ((bitwidth(1840))) uint1840;
typedef unsigned int __attribute__ ((bitwidth(1841))) uint1841;
typedef unsigned int __attribute__ ((bitwidth(1842))) uint1842;
typedef unsigned int __attribute__ ((bitwidth(1843))) uint1843;
typedef unsigned int __attribute__ ((bitwidth(1844))) uint1844;
typedef unsigned int __attribute__ ((bitwidth(1845))) uint1845;
typedef unsigned int __attribute__ ((bitwidth(1846))) uint1846;
typedef unsigned int __attribute__ ((bitwidth(1847))) uint1847;
typedef unsigned int __attribute__ ((bitwidth(1848))) uint1848;
typedef unsigned int __attribute__ ((bitwidth(1849))) uint1849;
typedef unsigned int __attribute__ ((bitwidth(1850))) uint1850;
typedef unsigned int __attribute__ ((bitwidth(1851))) uint1851;
typedef unsigned int __attribute__ ((bitwidth(1852))) uint1852;
typedef unsigned int __attribute__ ((bitwidth(1853))) uint1853;
typedef unsigned int __attribute__ ((bitwidth(1854))) uint1854;
typedef unsigned int __attribute__ ((bitwidth(1855))) uint1855;
typedef unsigned int __attribute__ ((bitwidth(1856))) uint1856;
typedef unsigned int __attribute__ ((bitwidth(1857))) uint1857;
typedef unsigned int __attribute__ ((bitwidth(1858))) uint1858;
typedef unsigned int __attribute__ ((bitwidth(1859))) uint1859;
typedef unsigned int __attribute__ ((bitwidth(1860))) uint1860;
typedef unsigned int __attribute__ ((bitwidth(1861))) uint1861;
typedef unsigned int __attribute__ ((bitwidth(1862))) uint1862;
typedef unsigned int __attribute__ ((bitwidth(1863))) uint1863;
typedef unsigned int __attribute__ ((bitwidth(1864))) uint1864;
typedef unsigned int __attribute__ ((bitwidth(1865))) uint1865;
typedef unsigned int __attribute__ ((bitwidth(1866))) uint1866;
typedef unsigned int __attribute__ ((bitwidth(1867))) uint1867;
typedef unsigned int __attribute__ ((bitwidth(1868))) uint1868;
typedef unsigned int __attribute__ ((bitwidth(1869))) uint1869;
typedef unsigned int __attribute__ ((bitwidth(1870))) uint1870;
typedef unsigned int __attribute__ ((bitwidth(1871))) uint1871;
typedef unsigned int __attribute__ ((bitwidth(1872))) uint1872;
typedef unsigned int __attribute__ ((bitwidth(1873))) uint1873;
typedef unsigned int __attribute__ ((bitwidth(1874))) uint1874;
typedef unsigned int __attribute__ ((bitwidth(1875))) uint1875;
typedef unsigned int __attribute__ ((bitwidth(1876))) uint1876;
typedef unsigned int __attribute__ ((bitwidth(1877))) uint1877;
typedef unsigned int __attribute__ ((bitwidth(1878))) uint1878;
typedef unsigned int __attribute__ ((bitwidth(1879))) uint1879;
typedef unsigned int __attribute__ ((bitwidth(1880))) uint1880;
typedef unsigned int __attribute__ ((bitwidth(1881))) uint1881;
typedef unsigned int __attribute__ ((bitwidth(1882))) uint1882;
typedef unsigned int __attribute__ ((bitwidth(1883))) uint1883;
typedef unsigned int __attribute__ ((bitwidth(1884))) uint1884;
typedef unsigned int __attribute__ ((bitwidth(1885))) uint1885;
typedef unsigned int __attribute__ ((bitwidth(1886))) uint1886;
typedef unsigned int __attribute__ ((bitwidth(1887))) uint1887;
typedef unsigned int __attribute__ ((bitwidth(1888))) uint1888;
typedef unsigned int __attribute__ ((bitwidth(1889))) uint1889;
typedef unsigned int __attribute__ ((bitwidth(1890))) uint1890;
typedef unsigned int __attribute__ ((bitwidth(1891))) uint1891;
typedef unsigned int __attribute__ ((bitwidth(1892))) uint1892;
typedef unsigned int __attribute__ ((bitwidth(1893))) uint1893;
typedef unsigned int __attribute__ ((bitwidth(1894))) uint1894;
typedef unsigned int __attribute__ ((bitwidth(1895))) uint1895;
typedef unsigned int __attribute__ ((bitwidth(1896))) uint1896;
typedef unsigned int __attribute__ ((bitwidth(1897))) uint1897;
typedef unsigned int __attribute__ ((bitwidth(1898))) uint1898;
typedef unsigned int __attribute__ ((bitwidth(1899))) uint1899;
typedef unsigned int __attribute__ ((bitwidth(1900))) uint1900;
typedef unsigned int __attribute__ ((bitwidth(1901))) uint1901;
typedef unsigned int __attribute__ ((bitwidth(1902))) uint1902;
typedef unsigned int __attribute__ ((bitwidth(1903))) uint1903;
typedef unsigned int __attribute__ ((bitwidth(1904))) uint1904;
typedef unsigned int __attribute__ ((bitwidth(1905))) uint1905;
typedef unsigned int __attribute__ ((bitwidth(1906))) uint1906;
typedef unsigned int __attribute__ ((bitwidth(1907))) uint1907;
typedef unsigned int __attribute__ ((bitwidth(1908))) uint1908;
typedef unsigned int __attribute__ ((bitwidth(1909))) uint1909;
typedef unsigned int __attribute__ ((bitwidth(1910))) uint1910;
typedef unsigned int __attribute__ ((bitwidth(1911))) uint1911;
typedef unsigned int __attribute__ ((bitwidth(1912))) uint1912;
typedef unsigned int __attribute__ ((bitwidth(1913))) uint1913;
typedef unsigned int __attribute__ ((bitwidth(1914))) uint1914;
typedef unsigned int __attribute__ ((bitwidth(1915))) uint1915;
typedef unsigned int __attribute__ ((bitwidth(1916))) uint1916;
typedef unsigned int __attribute__ ((bitwidth(1917))) uint1917;
typedef unsigned int __attribute__ ((bitwidth(1918))) uint1918;
typedef unsigned int __attribute__ ((bitwidth(1919))) uint1919;
typedef unsigned int __attribute__ ((bitwidth(1920))) uint1920;
typedef unsigned int __attribute__ ((bitwidth(1921))) uint1921;
typedef unsigned int __attribute__ ((bitwidth(1922))) uint1922;
typedef unsigned int __attribute__ ((bitwidth(1923))) uint1923;
typedef unsigned int __attribute__ ((bitwidth(1924))) uint1924;
typedef unsigned int __attribute__ ((bitwidth(1925))) uint1925;
typedef unsigned int __attribute__ ((bitwidth(1926))) uint1926;
typedef unsigned int __attribute__ ((bitwidth(1927))) uint1927;
typedef unsigned int __attribute__ ((bitwidth(1928))) uint1928;
typedef unsigned int __attribute__ ((bitwidth(1929))) uint1929;
typedef unsigned int __attribute__ ((bitwidth(1930))) uint1930;
typedef unsigned int __attribute__ ((bitwidth(1931))) uint1931;
typedef unsigned int __attribute__ ((bitwidth(1932))) uint1932;
typedef unsigned int __attribute__ ((bitwidth(1933))) uint1933;
typedef unsigned int __attribute__ ((bitwidth(1934))) uint1934;
typedef unsigned int __attribute__ ((bitwidth(1935))) uint1935;
typedef unsigned int __attribute__ ((bitwidth(1936))) uint1936;
typedef unsigned int __attribute__ ((bitwidth(1937))) uint1937;
typedef unsigned int __attribute__ ((bitwidth(1938))) uint1938;
typedef unsigned int __attribute__ ((bitwidth(1939))) uint1939;
typedef unsigned int __attribute__ ((bitwidth(1940))) uint1940;
typedef unsigned int __attribute__ ((bitwidth(1941))) uint1941;
typedef unsigned int __attribute__ ((bitwidth(1942))) uint1942;
typedef unsigned int __attribute__ ((bitwidth(1943))) uint1943;
typedef unsigned int __attribute__ ((bitwidth(1944))) uint1944;
typedef unsigned int __attribute__ ((bitwidth(1945))) uint1945;
typedef unsigned int __attribute__ ((bitwidth(1946))) uint1946;
typedef unsigned int __attribute__ ((bitwidth(1947))) uint1947;
typedef unsigned int __attribute__ ((bitwidth(1948))) uint1948;
typedef unsigned int __attribute__ ((bitwidth(1949))) uint1949;
typedef unsigned int __attribute__ ((bitwidth(1950))) uint1950;
typedef unsigned int __attribute__ ((bitwidth(1951))) uint1951;
typedef unsigned int __attribute__ ((bitwidth(1952))) uint1952;
typedef unsigned int __attribute__ ((bitwidth(1953))) uint1953;
typedef unsigned int __attribute__ ((bitwidth(1954))) uint1954;
typedef unsigned int __attribute__ ((bitwidth(1955))) uint1955;
typedef unsigned int __attribute__ ((bitwidth(1956))) uint1956;
typedef unsigned int __attribute__ ((bitwidth(1957))) uint1957;
typedef unsigned int __attribute__ ((bitwidth(1958))) uint1958;
typedef unsigned int __attribute__ ((bitwidth(1959))) uint1959;
typedef unsigned int __attribute__ ((bitwidth(1960))) uint1960;
typedef unsigned int __attribute__ ((bitwidth(1961))) uint1961;
typedef unsigned int __attribute__ ((bitwidth(1962))) uint1962;
typedef unsigned int __attribute__ ((bitwidth(1963))) uint1963;
typedef unsigned int __attribute__ ((bitwidth(1964))) uint1964;
typedef unsigned int __attribute__ ((bitwidth(1965))) uint1965;
typedef unsigned int __attribute__ ((bitwidth(1966))) uint1966;
typedef unsigned int __attribute__ ((bitwidth(1967))) uint1967;
typedef unsigned int __attribute__ ((bitwidth(1968))) uint1968;
typedef unsigned int __attribute__ ((bitwidth(1969))) uint1969;
typedef unsigned int __attribute__ ((bitwidth(1970))) uint1970;
typedef unsigned int __attribute__ ((bitwidth(1971))) uint1971;
typedef unsigned int __attribute__ ((bitwidth(1972))) uint1972;
typedef unsigned int __attribute__ ((bitwidth(1973))) uint1973;
typedef unsigned int __attribute__ ((bitwidth(1974))) uint1974;
typedef unsigned int __attribute__ ((bitwidth(1975))) uint1975;
typedef unsigned int __attribute__ ((bitwidth(1976))) uint1976;
typedef unsigned int __attribute__ ((bitwidth(1977))) uint1977;
typedef unsigned int __attribute__ ((bitwidth(1978))) uint1978;
typedef unsigned int __attribute__ ((bitwidth(1979))) uint1979;
typedef unsigned int __attribute__ ((bitwidth(1980))) uint1980;
typedef unsigned int __attribute__ ((bitwidth(1981))) uint1981;
typedef unsigned int __attribute__ ((bitwidth(1982))) uint1982;
typedef unsigned int __attribute__ ((bitwidth(1983))) uint1983;
typedef unsigned int __attribute__ ((bitwidth(1984))) uint1984;
typedef unsigned int __attribute__ ((bitwidth(1985))) uint1985;
typedef unsigned int __attribute__ ((bitwidth(1986))) uint1986;
typedef unsigned int __attribute__ ((bitwidth(1987))) uint1987;
typedef unsigned int __attribute__ ((bitwidth(1988))) uint1988;
typedef unsigned int __attribute__ ((bitwidth(1989))) uint1989;
typedef unsigned int __attribute__ ((bitwidth(1990))) uint1990;
typedef unsigned int __attribute__ ((bitwidth(1991))) uint1991;
typedef unsigned int __attribute__ ((bitwidth(1992))) uint1992;
typedef unsigned int __attribute__ ((bitwidth(1993))) uint1993;
typedef unsigned int __attribute__ ((bitwidth(1994))) uint1994;
typedef unsigned int __attribute__ ((bitwidth(1995))) uint1995;
typedef unsigned int __attribute__ ((bitwidth(1996))) uint1996;
typedef unsigned int __attribute__ ((bitwidth(1997))) uint1997;
typedef unsigned int __attribute__ ((bitwidth(1998))) uint1998;
typedef unsigned int __attribute__ ((bitwidth(1999))) uint1999;
typedef unsigned int __attribute__ ((bitwidth(2000))) uint2000;
typedef unsigned int __attribute__ ((bitwidth(2001))) uint2001;
typedef unsigned int __attribute__ ((bitwidth(2002))) uint2002;
typedef unsigned int __attribute__ ((bitwidth(2003))) uint2003;
typedef unsigned int __attribute__ ((bitwidth(2004))) uint2004;
typedef unsigned int __attribute__ ((bitwidth(2005))) uint2005;
typedef unsigned int __attribute__ ((bitwidth(2006))) uint2006;
typedef unsigned int __attribute__ ((bitwidth(2007))) uint2007;
typedef unsigned int __attribute__ ((bitwidth(2008))) uint2008;
typedef unsigned int __attribute__ ((bitwidth(2009))) uint2009;
typedef unsigned int __attribute__ ((bitwidth(2010))) uint2010;
typedef unsigned int __attribute__ ((bitwidth(2011))) uint2011;
typedef unsigned int __attribute__ ((bitwidth(2012))) uint2012;
typedef unsigned int __attribute__ ((bitwidth(2013))) uint2013;
typedef unsigned int __attribute__ ((bitwidth(2014))) uint2014;
typedef unsigned int __attribute__ ((bitwidth(2015))) uint2015;
typedef unsigned int __attribute__ ((bitwidth(2016))) uint2016;
typedef unsigned int __attribute__ ((bitwidth(2017))) uint2017;
typedef unsigned int __attribute__ ((bitwidth(2018))) uint2018;
typedef unsigned int __attribute__ ((bitwidth(2019))) uint2019;
typedef unsigned int __attribute__ ((bitwidth(2020))) uint2020;
typedef unsigned int __attribute__ ((bitwidth(2021))) uint2021;
typedef unsigned int __attribute__ ((bitwidth(2022))) uint2022;
typedef unsigned int __attribute__ ((bitwidth(2023))) uint2023;
typedef unsigned int __attribute__ ((bitwidth(2024))) uint2024;
typedef unsigned int __attribute__ ((bitwidth(2025))) uint2025;
typedef unsigned int __attribute__ ((bitwidth(2026))) uint2026;
typedef unsigned int __attribute__ ((bitwidth(2027))) uint2027;
typedef unsigned int __attribute__ ((bitwidth(2028))) uint2028;
typedef unsigned int __attribute__ ((bitwidth(2029))) uint2029;
typedef unsigned int __attribute__ ((bitwidth(2030))) uint2030;
typedef unsigned int __attribute__ ((bitwidth(2031))) uint2031;
typedef unsigned int __attribute__ ((bitwidth(2032))) uint2032;
typedef unsigned int __attribute__ ((bitwidth(2033))) uint2033;
typedef unsigned int __attribute__ ((bitwidth(2034))) uint2034;
typedef unsigned int __attribute__ ((bitwidth(2035))) uint2035;
typedef unsigned int __attribute__ ((bitwidth(2036))) uint2036;
typedef unsigned int __attribute__ ((bitwidth(2037))) uint2037;
typedef unsigned int __attribute__ ((bitwidth(2038))) uint2038;
typedef unsigned int __attribute__ ((bitwidth(2039))) uint2039;
typedef unsigned int __attribute__ ((bitwidth(2040))) uint2040;
typedef unsigned int __attribute__ ((bitwidth(2041))) uint2041;
typedef unsigned int __attribute__ ((bitwidth(2042))) uint2042;
typedef unsigned int __attribute__ ((bitwidth(2043))) uint2043;
typedef unsigned int __attribute__ ((bitwidth(2044))) uint2044;
typedef unsigned int __attribute__ ((bitwidth(2045))) uint2045;
typedef unsigned int __attribute__ ((bitwidth(2046))) uint2046;
typedef unsigned int __attribute__ ((bitwidth(2047))) uint2047;
typedef unsigned int __attribute__ ((bitwidth(2048))) uint2048;
#pragma line 110 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h" 2
#pragma line 131 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_dt.h"
typedef int __attribute__ ((bitwidth(64))) int64;
typedef unsigned int __attribute__ ((bitwidth(64))) uint64;
#pragma line 58 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_apint.h" 2
#pragma line 1 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_ssdm_bits.h" 1
#pragma line 64 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_ssdm_bits.h"
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/assert.h" 1 3
#pragma line 38 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/assert.h" 3
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _assert (const char*, const char*, int) __attribute__ ((__noreturn__));
#pragma line 65 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_ssdm_bits.h" 2
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 1 3
#pragma line 21 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
#pragma line 1 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/include/stddef.h" 1 3 4
#pragma line 22 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 2 3
#pragma line 71 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern int _argc;
extern char** _argv;
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
extern int* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p___argc(void);
extern char*** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p___argv(void);
extern wchar_t*** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p___wargv(void);
#pragma line 112 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern __attribute__ ((__dllimport__)) int __mb_cur_max;
#pragma line 137 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
int* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _errno(void);
#pragma empty_line
#pragma empty_line
int* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __doserrno(void);
#pragma line 149 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern char *** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p__environ(void);
extern wchar_t *** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p__wenviron(void);
#pragma line 172 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern __attribute__ ((__dllimport__)) int _sys_nerr;
#pragma line 196 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern __attribute__ ((__dllimport__)) char* _sys_errlist[];
#pragma line 209 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern unsigned __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) int* __p__osver(void);
extern unsigned __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) int* __p__winver(void);
extern unsigned __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) int* __p__winmajor(void);
extern unsigned __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) int* __p__winminor(void);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
extern __attribute__ ((__dllimport__)) unsigned int _osver;
extern __attribute__ ((__dllimport__)) unsigned int _winver;
extern __attribute__ ((__dllimport__)) unsigned int _winmajor;
extern __attribute__ ((__dllimport__)) unsigned int _winminor;
#pragma line 260 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
char** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p__pgmptr(void);
#pragma empty_line
wchar_t** __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __p__wpgmptr(void);
#pragma line 293 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
extern __attribute__ ((__dllimport__)) int _fmode;
#pragma line 303 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) atof (const char*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) atoi (const char*);
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) atol (const char*);
#pragma empty_line
double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtof (const wchar_t *);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtoi (const wchar_t *);
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtol (const wchar_t *);
#pragma empty_line
#pragma empty_line
double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) __strtod (const char*, char**);
extern double __attribute__((__cdecl__)) __attribute__ ((__nothrow__))
strtod (const char* __restrict__ __nptr, char** __restrict__ __endptr);
float __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtof (const char * __restrict__, char ** __restrict__);
long double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtold (const char * __restrict__, char ** __restrict__);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtol (const char*, char**, int);
unsigned long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtoul (const char*, char**, int);
#pragma empty_line
#pragma empty_line
#pragma empty_line
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstol (const wchar_t*, wchar_t**, int);
unsigned long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstoul (const wchar_t*, wchar_t**, int);
double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstod (const wchar_t*, wchar_t**);
#pragma empty_line
float __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstof( const wchar_t * __restrict__, wchar_t ** __restrict__);
long double __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstold (const wchar_t * __restrict__, wchar_t ** __restrict__);
#pragma empty_line
#pragma empty_line
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wgetenv(const wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wputenv(const wchar_t*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wsearchenv(const wchar_t*, const wchar_t*, wchar_t*);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wsystem(const wchar_t*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wmakepath(wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*, const wchar_t*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wsplitpath (const wchar_t*, wchar_t*, wchar_t*, wchar_t*, wchar_t*);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wfullpath (wchar_t*, const wchar_t*, size_t);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wcstombs (char*, const wchar_t*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wctomb (char*, wchar_t);
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) mblen (const char*, size_t);
size_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) mbstowcs (wchar_t*, const char*, size_t);
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) mbtowc (wchar_t*, const char*, size_t);
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) rand (void);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) srand (unsigned int);
#pragma empty_line
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) calloc (size_t, size_t) __attribute__ ((__malloc__));
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) malloc (size_t) __attribute__ ((__malloc__));
void* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) realloc (void*, size_t);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) free (void*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) abort (void) __attribute__ ((__noreturn__));
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) exit (int) __attribute__ ((__noreturn__));
#pragma empty_line
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) atexit (void (*)(void));
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) system (const char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) getenv (const char*);
#pragma empty_line
#pragma empty_line
void* __attribute__((__cdecl__)) bsearch (const void*, const void*, size_t, size_t,
int (*)(const void*, const void*));
void __attribute__((__cdecl__)) qsort(void*, size_t, size_t,
int (*)(const void*, const void*));
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) abs (int) __attribute__ ((__const__));
long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) labs (long) __attribute__ ((__const__));
#pragma line 385 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;
#pragma empty_line
div_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) div (int, int) __attribute__ ((__const__));
ldiv_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ldiv (long, long) __attribute__ ((__const__));
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _beep (unsigned int, unsigned int) __attribute__ ((__deprecated__));
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _seterrormode (int) __attribute__ ((__deprecated__));
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _sleep (unsigned long) __attribute__ ((__deprecated__));
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _exit (int) __attribute__ ((__noreturn__));
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int (* _onexit_t)(void);
_onexit_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _onexit( _onexit_t );
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _putenv (const char*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _searchenv (const char*, const char*, char*);
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ecvt (double, int, int*, int*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fcvt (double, int, int*, int*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _gcvt (double, int, char*);
#pragma empty_line
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _makepath (char*, const char*, const char*, const char*, const char*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _splitpath (const char*, char*, char*, char*, char*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _fullpath (char*, const char*, size_t);
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _itoa (int, char*, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ltoa (long, char*, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ultoa(unsigned long, char*, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _itow (int, wchar_t*, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ltow (long, wchar_t*, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ultow (unsigned long, wchar_t*, int);
#pragma empty_line
#pragma empty_line
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _atoi64(const char *);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _i64toa(long long, char *, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ui64toa(unsigned long long, char *, int);
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _wtoi64(const wchar_t *);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _i64tow(long long, wchar_t *, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _ui64tow(unsigned long long, wchar_t *, int);
#pragma empty_line
unsigned int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) (_rotl)(unsigned int, int) __attribute__ ((__const__));
unsigned int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) (_rotr)(unsigned int, int) __attribute__ ((__const__));
unsigned long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) (_lrotl)(unsigned long, int) __attribute__ ((__const__));
unsigned long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) (_lrotr)(unsigned long, int) __attribute__ ((__const__));
#pragma empty_line
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _set_error_mode (int);
#pragma line 477 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
int __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) putenv (const char*);
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) searchenv (const char*, const char*, char*);
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) itoa (int, char*, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ltoa (long, char*, int);
#pragma empty_line
#pragma empty_line
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ecvt (double, int, int*, int*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) fcvt (double, int, int*, int*);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) gcvt (double, int, char*);
#pragma line 497 "c:\\opt\\winprog\\xilinx\\vivado_hls\\2015.2\\msys\\bin\\../lib/gcc/mingw32/4.6.2/../../../../include/stdlib.h" 3
void __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) _Exit(int) __attribute__ ((__noreturn__));
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef struct { long long quot, rem; } lldiv_t;
#pragma empty_line
lldiv_t __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) lldiv (long long, long long) __attribute__ ((__const__));
#pragma empty_line
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) llabs(long long);
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
#pragma empty_line
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtoll (const char* __restrict__, char** __restrict, int);
unsigned long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) strtoull (const char* __restrict__, char** __restrict__, int);
#pragma empty_line
#pragma empty_line
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) atoll (const char *);
#pragma empty_line
#pragma empty_line
long long __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) wtoll (const wchar_t *);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) lltoa (long long, char *, int);
char* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ulltoa (unsigned long long , char *, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) lltow (long long, wchar_t *, int);
wchar_t* __attribute__((__cdecl__)) __attribute__ ((__nothrow__)) ulltow (unsigned long long, wchar_t *, int);
#pragma line 73 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_ssdm_bits.h" 2
#pragma line 59 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/etc/autopilot_apint.h" 2
#pragma line 78 "C:/opt/winprog/Xilinx/Vivado_HLS/2015.2/include/ap_cint.h" 2
#pragma line 4 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/duc.h" 2
#pragma line 40 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/duc.h"
typedef uint16 acc_t;
typedef uint5 phi_t;
typedef int16 dds_t;
typedef uint11 rnd_t;
#pragma empty_line
#pragma empty_line
#pragma empty_line
typedef int18 srrc_data_t;
typedef int18 srrc_coef_t;
typedef int38 srrc_acc_t;
#pragma empty_line
#pragma empty_line
typedef int18 imf1_data_t;
typedef int18 imf1_coef_t;
typedef int38 imf1_acc_t;
#pragma empty_line
#pragma empty_line
typedef int18 imf2_data_t;
typedef int18 imf2_coef_t;
typedef int38 imf2_acc_t;
#pragma empty_line
#pragma empty_line
typedef int18 imf3_data_t;
typedef int18 imf3_coef_t;
typedef int38 imf3_acc_t;
#pragma empty_line
typedef int18 mix_data_t;
#pragma empty_line
void duc (
srrc_data_t din_i,
acc_t freq,
mix_data_t *dout_i,
mix_data_t *dout_q
);
#pragma empty_line
int37 mult (
int18 c,
int19 d
);
#pragma empty_line
int37 symtap (
int18 a,
int18 b,
int18 c
);
#pragma empty_line
srrc_acc_t srrc_mac (
int18 c,
int18 d,
int40 s
);
#pragma empty_line
imf1_acc_t mac1 (
imf1_coef_t c,
imf1_data_t d,
imf1_acc_t s
);
#pragma empty_line
imf2_acc_t mac2 (
imf2_coef_t c,
imf2_data_t d,
imf2_acc_t s
);
#pragma empty_line
int48 mac (
int18 c,
int18 d,
int48 s
);
#pragma empty_line
void srrc (
srrc_data_t *y,
srrc_data_t x
);
#pragma empty_line
void imf1 (
imf1_data_t *y,
imf1_data_t x
);
#pragma empty_line
void imf2 (
imf2_data_t *y,
imf2_data_t x
);
#pragma empty_line
void imf3 (
imf2_data_t *y,
imf2_data_t x
);
#pragma empty_line
void mixer (
acc_t freq,
mix_data_t Din,
mix_data_t *Dout_I,
mix_data_t *Dout_Q
);
#pragma empty_line
void dds (
acc_t freq,
dds_t *sin,
dds_t *cosine
);
#pragma empty_line
rnd_t rnd();
#pragma line 2 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/srrc.c" 2
#pragma empty_line
void srrc (
srrc_data_t *y,
srrc_data_t x
) {
const srrc_coef_t c[48]={
#pragma line 1 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/srrc_coef.h" 1
25,
-56,
121,
-155,
84,
176,
-680,
1415,
-2283,
3116,
-3719,
69475,
-3719,
3116,
-2283,
1415,
-680,
176,
84,
-155,
121,
-56,
25,
0,
46,
-16,
-78,
226,
-347,
268,
288,
-1727,
4751,
-11484,
40865,
40865,
-11484,
4751,
-1727,
288,
268,
-347,
226,
-78,
-16,
46,
0,
0
#pragma line 9 "D:/opt/source/Vivado/Vivado_HLS_Tutorial/RTL_Verification/lab1/srrc.c" 2
};
static srrc_acc_t shift_reg_p[48][2];
static srrc_data_t in = 0;
static uint1 init = 1;
static uint1 ch = 0;
static uint6 i = 0;
#pragma empty_line
srrc_acc_t acc;
#pragma empty_line
L1:
#pragma empty_line
if (i==0) in = x;
uint6 inc = i+1;
#pragma empty_line
acc = srrc_mac(c[i], in, (init || i==23 || i==47) ? 0 : shift_reg_p[inc][ch]);
#pragma empty_line
shift_reg_p[i][ch] = acc;
if (i==47) {
if (ch) init = 0;
ch = !ch;
}
#pragma empty_line
#pragma empty_line
if (i==0 || i==24) {
*y = acc >> 17;
}
i = (i==47) ? 0 : inc;
}
|
the_stack_data/90766476.c
|
/* ヘッダファイルのインクルード */
#include <stdio.h> /* 標準入出力 */
#include <string.h> /* 文字列処理 */
#include <unistd.h> /* UNIX標準 */
#include <sys/types.h> /* 派生型 */
#include <sys/stat.h> /* ファイル状態 */
#include <sys/ioctl.h> /* 入出力制御 */
#include <fcntl.h> /* ファイル制御 */
#include <termios.h> /* 端末入出力 */
/* main関数 */
int main(void){
/* 変数の宣言 */
char buf[256]; /* バッファbuf(長さ256) */
int fd; /* ファイルディスクリプタfd */
struct termios tty; /* 端末情報tty */
struct termios old; /* 古い端末情報old */
int len; /* 読み込んだ長さlen. */
/* シリアルポートを開く. */
fd = open("/dev/ttyAMA0", O_RDWR); /* openで"/dev/ttyAMA0"を開く. */
if (fd < 0){ /* 負の値なら失敗. */
perror("open error"); /* perrorで"open error"と出力. */
return -1; /* 異常終了 */
}
/* シリアル通信設定 */
memset(&old, 0, sizeof(struct termios)); /* memsetでoldを初期化. */
ioctl(fd, TCGETS, &old); /* oldに古い端末情報を格納. */
memset(&tty, 0, sizeof(struct termios)); /* memsetでttyを初期化. */
tty.c_cflag |= CREAD; /* 受信の有効 */
tty.c_cflag |= CLOCAL; /* モデム制御の無視 */
tty.c_cflag |= CS8; /* データビットは8bit. */
cfsetospeed(&tty, B115200); /* 出力スピード115200 */
cfsetispeed(&tty, B115200); /* 入力スピード115200 */
tcsetattr(fd, TCSANOW, &tty); /* 即時に変更が有効となる. */
ioctl(fd, TCSETS, &tty); /* 設定の反映 */
/* 受信ループ */
while (1){ /* 無限ループ */
len = read(fd, buf, sizeof(buf)); /* 読み込んでbufに格納. */
if (len > 0){ /* 0より大きい. */
printf("buf = [%s]\n", buf); /* bufを出力. */
if (strcmp(buf, "q") == 0){ /* "q"が来たら. */
break;
}
}
}
/* シリアルポートを閉じる. */
ioctl(fd, TCSETS, &old); /* 古い端末情報に戻す. */
close(fd); /* closeでfdを閉じる. */
/* プログラムの終了 */
return 0; /* 正常終了 */
}
|
the_stack_data/31388623.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: evgenkarlson <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/14 12:33:14 by evgenkarlson #+# #+# */
/* Updated: 2020/10/10 15:35:01 by evgenkarlson ### ########.fr */
/* */
/* ************************************************************************** */
/* ************************************************************************** */
/* команда для компиляции и одновременного запуска */
/* */
/* gcc -Wall -Werror -Wextra test.c && chmod +x ./a.out && ./a.out */
/* ************************************************************************** */
#include <unistd.h>
/* ************************************************************************** */
/* ************************************************************************** */
void ft_putchar(char c) /* функция вывода символа */
{
write(1, &c, 1);
}
/* ************************************************************************** */
/* ************************************************************************** */
void ft_putnbr(int nb)
{
int temp;
int size;
size = 1;
if (nb < 0)
{
ft_putchar('-');
nb = -nb;
}
temp = nb;
while ((temp /= 10) > 0)
size *= 10;
temp = nb;
while (size)
{
ft_putchar((char)((temp / size)) + 48);
temp %= size;
size /= 10;
}
}
/* ************************************************************************** */
/* ************************************************************************** */
int ft_fibonacci(int index)
{
if (index < 0)
return (-1);
else if (index == 0)
return (0);
else if (index == 1)
return (1);
else
return (ft_fibonacci(index - 1) + ft_fibonacci(index - 2));
}
/* ************************************************************************** */
/* ************************************************************************** */
int main(void)
{
int r;
r = ft_fibonacci(15);
ft_putnbr(r);
return (0);
}
|
the_stack_data/173579282.c
|
int main(void)
{
int t[5] = {123, 345, 241, 11, 991};
int y = 6271;
int *p;
p = &t[3];
*p /= t[4] * y;
*p += 10;
y = -20;
*p = *p + y;
y = y / *p;
return y;
}
|
the_stack_data/32949713.c
|
#include <stdio.h>
int is_int(char *s)
{
goto S0;
S0:
if (*s == '+' || *s == '-') {
s++;
goto S1;
} else if ('0' <= *s && *s <= '9') {
s++;
goto S2;
} else {
goto S4;
}
S1:
S2:
S3:
return 1;
S4:
return 0;
}
int main(void)
{
struct {
char *s;
int b;
} tests[] = {
{ "", 0 },
{ " ", 0 },
{ "+", 0 },
{ "-", 0 },
{ "++", 0 },
{ "--", 0 },
{ "+0+", 0 },
{ "-0-", 0 },
{ "+0123456789", 1 },
{ "-0123456789", 1 },
{ "0123456789", 1 }
};
int i;
for (i = 0; i < sizeof(tests)/sizeof(*tests); i++) {
printf("%s\t'%s'\n", tests[i].b == is_int(tests[i].s) ? "OK" : "NG", tests[i].s);
}
return 0;
}
|
the_stack_data/28751.c
|
/* Example code for Think OS.
Copyright 2014 Allen Downey
License: GNU GPLv3
*/
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#define NUM_CHILDREN 30000
/*
When running with 30000 children, the counter increments to the right amount
(30000), but sometimes this will happen:
counter = 29960
counter = 29961
counter = 29961
counter = 29963
Here, two threads have printed the same number, then both incremented, adding +2
to the next number. This means that the threads are definitely running
concurrently, as otherwise the counter would print numbers incrementing by
+1 every time with no exceptions.
*/
/* Print an error message and exit.
*/
void perror_exit(char *s)
{
perror(s);
exit(-1);
}
/* Call malloc and exit if it fails.
*/
void *check_malloc(int size)
{
void *p = malloc(size);
if (p == NULL) {
perror_exit("malloc failed");
}
return p;
}
/* Structure that contains variables shared between threads.
*/
typedef struct {
int counter;
} Shared;
/* Allocate the shared structure.
*/
Shared *make_shared()
{
Shared *shared = check_malloc(sizeof(Shared));
shared->counter = 0;
return shared;
}
/* Create a child thread.
*/
pthread_t make_thread(void *(*entry)(void *), Shared *shared)
{
int ret;
pthread_t thread;
ret = pthread_create(&thread, NULL, entry, (void *) shared);
if (ret != 0) {
perror_exit("pthread_create failed");
}
return thread;
}
/* Wait for a child thread.
*/
void join_thread(pthread_t thread)
{
int ret = pthread_join(thread, NULL);
if (ret == -1) {
perror_exit("pthread_join failed");
}
}
/* Code run by the child threads.
*/
void child_code(Shared *shared)
{
printf("counter = %d\n", shared->counter);
shared->counter++;
}
/* Entry point for the child threads.
*/
void *entry(void *arg)
{
Shared *shared = (Shared *) arg;
child_code(shared);
pthread_exit(NULL);
}
int main()
{
int i;
pthread_t child[NUM_CHILDREN];
Shared *shared = make_shared();
for (i=0; i<NUM_CHILDREN; i++) {
child[i] = make_thread(entry, shared);
}
for (i=0; i<NUM_CHILDREN; i++) {
join_thread(child[i]);
}
printf("Final value of counter is %d\n", shared->counter);
return 0;
}
|
the_stack_data/309978.c
|
/*
* Copyright (c) 2016 Cesanta Software Limited
* All rights reserved
*/
#if MG_ENABLE_SSL
/*
* This example starts an SSL web server on https://localhost:8443/
*
* Please note that the certificate used is a self-signed one and will not be
* recognised as valid. You should expect an SSL error and will need to
* explicitly allow the browser to proceed.
*/
#include "mongoose.h"
static const char *s_http_port = "8443";
static const char *s_ssl_cert = "server.pem";
static const char *s_ssl_key = "server.key";
static struct mg_serve_http_opts s_http_server_opts;
static void ev_handler(struct mg_connection *nc, int ev, void *p) {
if (ev == MG_EV_HTTP_REQUEST) {
mg_serve_http(nc, (struct http_message *) p, s_http_server_opts);
}
}
int main(void) {
struct mg_mgr mgr;
struct mg_connection *nc;
struct mg_bind_opts bind_opts;
const char *err;
mg_mgr_init(&mgr, NULL);
memset(&bind_opts, 0, sizeof(bind_opts));
bind_opts.ssl_cert = s_ssl_cert;
bind_opts.ssl_key = s_ssl_key;
bind_opts.error_string = &err;
printf("Starting SSL server on port %s, cert from %s, key from %s\n",
s_http_port, bind_opts.ssl_cert, bind_opts.ssl_key);
nc = mg_bind_opt(&mgr, s_http_port, ev_handler, bind_opts);
if (nc == NULL) {
printf("Failed to create listener: %s\n", err);
return 1;
}
// Set up HTTP server parameters
mg_set_protocol_http_websocket(nc);
s_http_server_opts.document_root = "."; // Serve current directory
s_http_server_opts.enable_directory_listing = "yes";
for (;;) {
mg_mgr_poll(&mgr, 1000);
}
mg_mgr_free(&mgr);
return 0;
}
#else
int main(void) {
return 0;
}
#endif /* MG_ENABLE_SSL */
|
the_stack_data/421935.c
|
/******************************************************************************
* Intel Management Engine Interface (Intel MEI) Linux driver
* Intel MEI Interface Header
*
* This file is provided under a dual BSD/GPLv2 license. When using or
* redistributing this file, you may do so under either license.
*
* GPL LICENSE SUMMARY
*
* Copyright(c) 2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
* USA
*
* The full GNU General Public License is included in this distribution
* in the file called LICENSE.GPL.
*
* Contact Information:
* Intel Corporation.
* [email protected]
* http://www.intel.com
*
* BSD LICENSE
*
* Copyright(c) 2003 - 2012 Intel Corporation. All rights reserved.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
* * Neither the name Intel Corporation nor the names of its
* contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <errno.h>
#include <stdint.h>
#include <stdbool.h>
#include <bits/wordsize.h>
#include <linux/mei.h>
/*****************************************************************************
* Intel Management Engine Interface
*****************************************************************************/
#define mei_msg(_me, fmt, ARGS...) do { \
if (_me->verbose) \
fprintf(stderr, fmt, ##ARGS); \
} while (0)
#define mei_err(_me, fmt, ARGS...) do { \
fprintf(stderr, "Error: " fmt, ##ARGS); \
} while (0)
struct mei {
uuid_le guid;
bool initialized;
bool verbose;
unsigned int buf_size;
unsigned char prot_ver;
int fd;
};
static void mei_deinit(struct mei *cl)
{
if (cl->fd != -1)
close(cl->fd);
cl->fd = -1;
cl->buf_size = 0;
cl->prot_ver = 0;
cl->initialized = false;
}
static bool mei_init(struct mei *me, const uuid_le *guid,
unsigned char req_protocol_version, bool verbose)
{
int result;
struct mei_client *cl;
struct mei_connect_client_data data;
me->verbose = verbose;
me->fd = open("/dev/mei", O_RDWR);
if (me->fd == -1) {
mei_err(me, "Cannot establish a handle to the Intel MEI driver\n");
goto err;
}
memcpy(&me->guid, guid, sizeof(*guid));
memset(&data, 0, sizeof(data));
me->initialized = true;
memcpy(&data.in_client_uuid, &me->guid, sizeof(me->guid));
result = ioctl(me->fd, IOCTL_MEI_CONNECT_CLIENT, &data);
if (result) {
mei_err(me, "IOCTL_MEI_CONNECT_CLIENT receive message. err=%d\n", result);
goto err;
}
cl = &data.out_client_properties;
mei_msg(me, "max_message_length %d\n", cl->max_msg_length);
mei_msg(me, "protocol_version %d\n", cl->protocol_version);
if ((req_protocol_version > 0) &&
(cl->protocol_version != req_protocol_version)) {
mei_err(me, "Intel MEI protocol version not supported\n");
goto err;
}
me->buf_size = cl->max_msg_length;
me->prot_ver = cl->protocol_version;
return true;
err:
mei_deinit(me);
return false;
}
static ssize_t mei_recv_msg(struct mei *me, unsigned char *buffer,
ssize_t len, unsigned long timeout)
{
ssize_t rc;
mei_msg(me, "call read length = %zd\n", len);
rc = read(me->fd, buffer, len);
if (rc < 0) {
mei_err(me, "read failed with status %zd %s\n",
rc, strerror(errno));
mei_deinit(me);
} else {
mei_msg(me, "read succeeded with result %zd\n", rc);
}
return rc;
}
static ssize_t mei_send_msg(struct mei *me, const unsigned char *buffer,
ssize_t len, unsigned long timeout)
{
struct timeval tv;
ssize_t written;
ssize_t rc;
fd_set set;
tv.tv_sec = timeout / 1000;
tv.tv_usec = (timeout % 1000) * 1000000;
mei_msg(me, "call write length = %zd\n", len);
written = write(me->fd, buffer, len);
if (written < 0) {
rc = -errno;
mei_err(me, "write failed with status %zd %s\n",
written, strerror(errno));
goto out;
}
FD_ZERO(&set);
FD_SET(me->fd, &set);
rc = select(me->fd + 1 , &set, NULL, NULL, &tv);
if (rc > 0 && FD_ISSET(me->fd, &set)) {
mei_msg(me, "write success\n");
} else if (rc == 0) {
mei_err(me, "write failed on timeout with status\n");
goto out;
} else { /* rc < 0 */
mei_err(me, "write failed on select with status %zd\n", rc);
goto out;
}
rc = written;
out:
if (rc < 0)
mei_deinit(me);
return rc;
}
/***************************************************************************
* Intel Advanced Management Technology ME Client
***************************************************************************/
#define AMT_MAJOR_VERSION 1
#define AMT_MINOR_VERSION 1
#define AMT_STATUS_SUCCESS 0x0
#define AMT_STATUS_INTERNAL_ERROR 0x1
#define AMT_STATUS_NOT_READY 0x2
#define AMT_STATUS_INVALID_AMT_MODE 0x3
#define AMT_STATUS_INVALID_MESSAGE_LENGTH 0x4
#define AMT_STATUS_HOST_IF_EMPTY_RESPONSE 0x4000
#define AMT_STATUS_SDK_RESOURCES 0x1004
#define AMT_BIOS_VERSION_LEN 65
#define AMT_VERSIONS_NUMBER 50
#define AMT_UNICODE_STRING_LEN 20
struct amt_unicode_string {
uint16_t length;
char string[AMT_UNICODE_STRING_LEN];
} __attribute__((packed));
struct amt_version_type {
struct amt_unicode_string description;
struct amt_unicode_string version;
} __attribute__((packed));
struct amt_version {
uint8_t major;
uint8_t minor;
} __attribute__((packed));
struct amt_code_versions {
uint8_t bios[AMT_BIOS_VERSION_LEN];
uint32_t count;
struct amt_version_type versions[AMT_VERSIONS_NUMBER];
} __attribute__((packed));
/***************************************************************************
* Intel Advanced Management Technology Host Interface
***************************************************************************/
struct amt_host_if_msg_header {
struct amt_version version;
uint16_t _reserved;
uint32_t command;
uint32_t length;
} __attribute__((packed));
struct amt_host_if_resp_header {
struct amt_host_if_msg_header header;
uint32_t status;
unsigned char data[0];
} __attribute__((packed));
const uuid_le MEI_IAMTHIF = UUID_LE(0x12f80028, 0xb4b7, 0x4b2d, \
0xac, 0xa8, 0x46, 0xe0, 0xff, 0x65, 0x81, 0x4c);
#define AMT_HOST_IF_CODE_VERSIONS_REQUEST 0x0400001A
#define AMT_HOST_IF_CODE_VERSIONS_RESPONSE 0x0480001A
const struct amt_host_if_msg_header CODE_VERSION_REQ = {
.version = {AMT_MAJOR_VERSION, AMT_MINOR_VERSION},
._reserved = 0,
.command = AMT_HOST_IF_CODE_VERSIONS_REQUEST,
.length = 0
};
struct amt_host_if {
struct mei mei_cl;
unsigned long send_timeout;
bool initialized;
};
static bool amt_host_if_init(struct amt_host_if *acmd,
unsigned long send_timeout, bool verbose)
{
acmd->send_timeout = (send_timeout) ? send_timeout : 20000;
acmd->initialized = mei_init(&acmd->mei_cl, &MEI_IAMTHIF, 0, verbose);
return acmd->initialized;
}
static void amt_host_if_deinit(struct amt_host_if *acmd)
{
mei_deinit(&acmd->mei_cl);
acmd->initialized = false;
}
static uint32_t amt_verify_code_versions(const struct amt_host_if_resp_header *resp)
{
uint32_t status = AMT_STATUS_SUCCESS;
struct amt_code_versions *code_ver;
size_t code_ver_len;
uint32_t ver_type_cnt;
uint32_t len;
uint32_t i;
code_ver = (struct amt_code_versions *)resp->data;
/* length - sizeof(status) */
code_ver_len = resp->header.length - sizeof(uint32_t);
ver_type_cnt = code_ver_len -
sizeof(code_ver->bios) -
sizeof(code_ver->count);
if (code_ver->count != ver_type_cnt / sizeof(struct amt_version_type)) {
status = AMT_STATUS_INTERNAL_ERROR;
goto out;
}
for (i = 0; i < code_ver->count; i++) {
len = code_ver->versions[i].description.length;
if (len > AMT_UNICODE_STRING_LEN) {
status = AMT_STATUS_INTERNAL_ERROR;
goto out;
}
len = code_ver->versions[i].version.length;
if (code_ver->versions[i].version.string[len] != '\0' ||
len != strlen(code_ver->versions[i].version.string)) {
status = AMT_STATUS_INTERNAL_ERROR;
goto out;
}
}
out:
return status;
}
static uint32_t amt_verify_response_header(uint32_t command,
const struct amt_host_if_msg_header *resp_hdr,
uint32_t response_size)
{
if (response_size < sizeof(struct amt_host_if_resp_header)) {
return AMT_STATUS_INTERNAL_ERROR;
} else if (response_size != (resp_hdr->length +
sizeof(struct amt_host_if_msg_header))) {
return AMT_STATUS_INTERNAL_ERROR;
} else if (resp_hdr->command != command) {
return AMT_STATUS_INTERNAL_ERROR;
} else if (resp_hdr->_reserved != 0) {
return AMT_STATUS_INTERNAL_ERROR;
} else if (resp_hdr->version.major != AMT_MAJOR_VERSION ||
resp_hdr->version.minor < AMT_MINOR_VERSION) {
return AMT_STATUS_INTERNAL_ERROR;
}
return AMT_STATUS_SUCCESS;
}
static uint32_t amt_host_if_call(struct amt_host_if *acmd,
const unsigned char *command, ssize_t command_sz,
uint8_t **read_buf, uint32_t rcmd,
unsigned int expected_sz)
{
uint32_t in_buf_sz;
ssize_t out_buf_sz;
ssize_t written;
uint32_t status;
struct amt_host_if_resp_header *msg_hdr;
in_buf_sz = acmd->mei_cl.buf_size;
*read_buf = (uint8_t *)malloc(sizeof(uint8_t) * in_buf_sz);
if (*read_buf == NULL)
return AMT_STATUS_SDK_RESOURCES;
memset(*read_buf, 0, in_buf_sz);
msg_hdr = (struct amt_host_if_resp_header *)*read_buf;
written = mei_send_msg(&acmd->mei_cl,
command, command_sz, acmd->send_timeout);
if (written != command_sz)
return AMT_STATUS_INTERNAL_ERROR;
out_buf_sz = mei_recv_msg(&acmd->mei_cl, *read_buf, in_buf_sz, 2000);
if (out_buf_sz <= 0)
return AMT_STATUS_HOST_IF_EMPTY_RESPONSE;
status = msg_hdr->status;
if (status != AMT_STATUS_SUCCESS)
return status;
status = amt_verify_response_header(rcmd,
&msg_hdr->header, out_buf_sz);
if (status != AMT_STATUS_SUCCESS)
return status;
if (expected_sz && expected_sz != out_buf_sz)
return AMT_STATUS_INTERNAL_ERROR;
return AMT_STATUS_SUCCESS;
}
static uint32_t amt_get_code_versions(struct amt_host_if *cmd,
struct amt_code_versions *versions)
{
struct amt_host_if_resp_header *response = NULL;
uint32_t status;
status = amt_host_if_call(cmd,
(const unsigned char *)&CODE_VERSION_REQ,
sizeof(CODE_VERSION_REQ),
(uint8_t **)&response,
AMT_HOST_IF_CODE_VERSIONS_RESPONSE, 0);
if (status != AMT_STATUS_SUCCESS)
goto out;
status = amt_verify_code_versions(response);
if (status != AMT_STATUS_SUCCESS)
goto out;
memcpy(versions, response->data, sizeof(struct amt_code_versions));
out:
if (response != NULL)
free(response);
return status;
}
/************************** end of amt_host_if_command ***********************/
int main(int argc, char **argv)
{
struct amt_code_versions ver;
struct amt_host_if acmd;
unsigned int i;
uint32_t status;
int ret;
bool verbose;
verbose = (argc > 1 && strcmp(argv[1], "-v") == 0);
if (!amt_host_if_init(&acmd, 5000, verbose)) {
ret = 1;
goto out;
}
status = amt_get_code_versions(&acmd, &ver);
amt_host_if_deinit(&acmd);
switch (status) {
case AMT_STATUS_HOST_IF_EMPTY_RESPONSE:
printf("Intel AMT: DISABLED\n");
ret = 0;
break;
case AMT_STATUS_SUCCESS:
printf("Intel AMT: ENABLED\n");
for (i = 0; i < ver.count; i++) {
printf("%s:\t%s\n", ver.versions[i].description.string,
ver.versions[i].version.string);
}
ret = 0;
break;
default:
printf("An error has occurred\n");
ret = 1;
break;
}
out:
return ret;
}
|
the_stack_data/65706.c
|
/*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus/)
* Copyright (c) 2015 Liviu Ionescu.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose is hereby granted, under the terms of the MIT license.
*
* If a copy of the license was not distributed with this file, it can
* be obtained from https://opensource.org/licenses/MIT/.
*/
#if (!(defined(__APPLE__) || defined(__linux__) || defined(__unix__))) \
|| defined(__DOXYGEN__)
// ----------------------------------------------------------------------------
#if defined(MICRO_OS_PLUS_INCLUDE_CONFIG_H)
#include <micro-os-plus/config.h>
#endif // MICRO_OS_PLUS_INCLUDE_CONFIG_H
// ----------------------------------------------------------------------------
// Empty initialisations. Normally should not be used, but if so,
// they must be used as a pair, and the startup code and linker
// script must be updated.
// ----------------------------------------------------------------------------
void
_init (void);
void
_fini (void);
// ----------------------------------------------------------------------------
void __attribute__ ((weak)) _init (void)
{
}
void __attribute__ ((weak)) _fini (void)
{
}
// ----------------------------------------------------------------------------
#endif // !Unix
// ----------------------------------------------------------------------------
|
the_stack_data/42040.c
|
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
/* Time stamp entry types */
#define TS_GLOBAL 0x01 /* not restricted by tty or ppid */
#define TS_TTY 0x02 /* restricted by tty */
#define TS_PPID 0x03 /* restricted by ppid */
#define TS_LOCKEXCL 0x04 /* special lock record */
/* Time stamp flags */
#define TS_DISABLED 0x01 /* entry disabled */
#define TS_ANYUID 0x02 /* ignore uid, only valid in key */
struct timestamp_entry {
unsigned short version; /* version number */
unsigned short size; /* entry size */
unsigned short type; /* TS_GLOBAL, TS_TTY, TS_PPID */
unsigned short flags; /* TS_DISABLED, TS_ANYUID */
uid_t auth_uid; /* uid to authenticate as */
pid_t sid; /* session ID associated with tty/ppid */
struct timespec start_time; /* session/ppid start time */
struct timespec ts; /* time stamp (CLOCK_MONOTONIC) */
union {
dev_t ttydev; /* tty device number */
pid_t ppid; /* parent pid */
} u;
} sudo ;
int main() {
printf("version, flags, uid, sid, starttime_sec, starttime_nsec\n");
while (sizeof(sudo) == read(0, &sudo, sizeof(sudo))) {
printf("%d, %d, %d, %d, %d, %d\n",
sudo.version,
sudo.flags,
sudo.auth_uid,
sudo.sid,
sudo.start_time.tv_sec,
sudo.start_time.tv_nsec);
/* printf("version = %d, ", sudo.version); */
/* printf("flags %d, ", sudo.flags); */
/* printf("auth_uid %d, ", sudo.auth_uid); */
/* printf("sid %d, ", sudo.sid); */
/* printf("pid start_time %d sec %d nsec\n", */
/* sudo.start_time.tv_sec, */
/* sudo.start_time.tv_nsec); */
}
return 0;
}
|
the_stack_data/107954239.c
|
// SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
/*
* BTF-to-C dumper test for majority of C syntax quirks.
*
* Copyright (c) 2019 Facebook
*/
/* ----- START-EXPECTED-OUTPUT ----- */
enum e1 {
A = 0,
B = 1,
};
enum e2 {
C = 100,
D = 4294967295,
E = 0,
};
typedef enum e2 e2_t;
typedef enum {
F = 0,
G = 1,
H = 2,
} e3_t;
typedef int int_t;
typedef volatile const int * volatile const crazy_ptr_t;
typedef int *****we_need_to_go_deeper_ptr_t;
typedef volatile const we_need_to_go_deeper_ptr_t * restrict * volatile * const * restrict volatile * restrict const * volatile const * restrict volatile const how_about_this_ptr_t;
typedef int *ptr_arr_t[10];
typedef void (*fn_ptr1_t)(int);
typedef void (*printf_fn_t)(const char *, ...);
/* ------ END-EXPECTED-OUTPUT ------ */
/*
* While previous function pointers are pretty trivial (C-syntax-level
* trivial), the following are deciphered here for future generations:
*
* - `fn_ptr2_t`: function, taking anonymous struct as a first arg and pointer
* to a function, that takes int and returns int, as a second arg; returning
* a pointer to a const pointer to a char. Equivalent to:
* typedef struct { int a; } s_t;
* typedef int (*fn_t)(int);
* typedef char * const * (*fn_ptr2_t)(s_t, fn_t);
*
* - `fn_complext_t`: pointer to a function returning struct and accepting
* union and struct. All structs and enum are anonymous and defined inline.
*
* - `signal_t: pointer to a function accepting a pointer to a function as an
* argument and returning pointer to a function as a result. Sane equivalent:
* typedef void (*signal_handler_t)(int);
* typedef signal_handler_t (*signal_ptr_t)(int, signal_handler_t);
*
* - fn_ptr_arr1_t: array of pointers to a function accepting pointer to
* a pointer to an int and returning pointer to a char. Easy.
*
* - fn_ptr_arr2_t: array of const pointers to a function taking no arguments
* and returning a const pointer to a function, that takes pointer to a
* `int -> char *` function and returns pointer to a char. Equivalent:
* typedef char * (*fn_input_t)(int);
* typedef char * (*fn_output_outer_t)(fn_input_t);
* typedef const fn_output_outer_t (* fn_output_inner_t)();
* typedef const fn_output_inner_t fn_ptr_arr2_t[5];
*/
/* ----- START-EXPECTED-OUTPUT ----- */
typedef char * const * (*fn_ptr2_t)(struct {
int a;
}, int (*)(int));
typedef struct {
int a;
void (*b)(int, struct {
int c;
}, union {
char d;
int e[5];
});
} (*fn_complex_t)(union {
void *f;
char g[16];
}, struct {
int h;
});
typedef void (* (*signal_t)(int, void (*)(int)))(int);
typedef char * (*fn_ptr_arr1_t[10])(int **);
typedef char * (* const (* const fn_ptr_arr2_t[5])())(char * (*)(int));
struct struct_w_typedefs {
int_t a;
crazy_ptr_t b;
we_need_to_go_deeper_ptr_t c;
how_about_this_ptr_t d;
ptr_arr_t e;
fn_ptr1_t f;
printf_fn_t g;
fn_ptr2_t h;
fn_complex_t i;
signal_t j;
fn_ptr_arr1_t k;
fn_ptr_arr2_t l;
};
typedef struct {
int x;
int y;
int z;
} anon_struct_t;
struct struct_fwd;
typedef struct struct_fwd struct_fwd_t;
typedef struct struct_fwd *struct_fwd_ptr_t;
union union_fwd;
typedef union union_fwd union_fwd_t;
typedef union union_fwd *union_fwd_ptr_t;
struct struct_empty {};
struct struct_simple {
int a;
char b;
const int_t *p;
struct struct_empty s;
enum e2 e;
enum {
ANON_VAL1 = 1,
ANON_VAL2 = 2,
} f;
int arr1[13];
enum e2 arr2[5];
};
union union_empty {};
union union_simple {
void *ptr;
int num;
int_t num2;
union union_empty u;
};
struct struct_in_struct {
struct struct_simple simple;
union union_simple also_simple;
struct {
int a;
} not_so_hard_as_well;
union {
int b;
int c;
} anon_union_is_good;
struct {
int d;
int e;
};
union {
int f;
int g;
};
};
struct struct_in_array {};
struct struct_in_array_typed {};
typedef struct struct_in_array_typed struct_in_array_t[2];
struct struct_with_embedded_stuff {
int a;
struct {
int b;
struct {
struct struct_with_embedded_stuff *c;
const char *d;
} e;
union {
volatile long int f;
void * restrict g;
};
};
union {
const int_t *h;
void (*i)(char, int, void *);
} j;
enum {
K = 100,
L = 200,
} m;
char n[16];
struct {
char o;
int p;
void (*q)(int);
} r[5];
struct struct_in_struct s[10];
int t[11];
struct struct_in_array (*u)[2];
struct_in_array_t *v;
};
struct root_struct {
enum e1 _1;
enum e2 _2;
e2_t _2_1;
e3_t _2_2;
struct struct_w_typedefs _3;
anon_struct_t _7;
struct struct_fwd *_8;
struct_fwd_t *_9;
struct_fwd_ptr_t _10;
union union_fwd *_11;
union_fwd_t *_12;
union_fwd_ptr_t _13;
struct struct_with_embedded_stuff _14;
};
/* ------ END-EXPECTED-OUTPUT ------ */
int f(struct root_struct *s)
{
return 0;
}
|
the_stack_data/90764925.c
|
/**/
#include <stdio.h>
int main() {
int a, b, c, m;
printf("Please enter 3 numbers separated by spaces > ");
scanf("%d %d %d", &a, &b, &c);
if ( a==b || a==c)
m = a;
else if ( b==c || b==a )
m = b;
else if ( c==a || c==b )
m = c;
else {
if ((a>=b && a<=c) || (a>=c && a<=b))
m = b;
else if ((b>=a && b<=c) || (b>=c && b<=a))
m = b;
else if ((c>=a && c<=b) || (c>=b && c<=a))
m = c;
}
printf("%d is the median\n", m);
return 0;
}
|
the_stack_data/85240.c
|
/* MESSAGE QUEUE FOR READER PROCESS */
#include <stdio.h>
#include <sys/ipc.h>
#include <sys/msg.h>
// structure for message queue
struct mesg_buffer {
long mesg_type;
char mesg_text[100];
} message;
int main() {
key_t key;
int msgid;
// ftok to generate unique key
key = ftok("progfile", 65);
// msgget creates a message queue
// and returns identifier
msgid = msgget(key, 0666 | IPC_CREAT);
// msgrcv to receive message
msgrcv(msgid, &message, sizeof(message), 1, 0);
// display the message
printf("Data Received is : %s \n",
message.mesg_text);
// to destroy the message queue
msgctl(msgid, IPC_RMID, NULL);
return 0;
}
/*
Note: Execute the two programs simultaneously
OUTPUT:
Writer side process:
Write data : CMRTC HYDERABAD
Data send is : CMRTC HYDERABAD
Reader side Process:
Data received is : CMRTC HYDERABAD
*/
|
the_stack_data/423466.c
|
/*
* Copyright (C) 2006 KPIT Cummins
* Copyright (C) 2009 Conny Marco Menebröcker
* All rights reserved.
*
* Redistribution and use in source and binary forms is permitted
* provided that the above copyright notice and following paragraph are
* duplicated in all such forms.
*
* This file is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include<sys/stat.h>
#include<sys/types.h>
/*volatile int creatsys(char *name,int perms)
{
#ifndef __xc16xL__
asm volatile("push r10\n"
" mov r10,r9 \n"
" mov r9,#0x300 \n"
);
#endif
asm volatile("trap #7");
#ifndef __xc16xL__
asm volatile("pop r10");
#endif
}
*/
volatile int _creat(char *name,int perms)
{
int temp;
temp=creatsys(name,perms);
// putchar((char)temp);
//printf("%d\n",temp);
return temp;
}
|
the_stack_data/43888625.c
|
/*
Author : Arnob Mahmud
mail : [email protected]
*/
#include <stdio.h>
int main(int argc, char const *argv[])
{
int num1, num2, num3;
printf("Enter first number :\n");
scanf("%d", &num1);
printf("Enter second number :\n");
scanf("%d", &num2);
printf("Enter third number :\n");
scanf("%d", &num3);
if (num1 < num2 && num1 < num3)
{
printf("%d is the smallest number.\n", num1);
}
else if (num2 < num1 && num2 < num3)
{
printf("%d is the samllest number.\n", num2);
}
else
{
printf("%d is the smallest number.\n", num3);
}
return 0;
}
|
the_stack_data/68886580.c
|
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
int main()
{
pid_t pids[10];
for (int i = 0; i < 10; i++)
{
if ((pids[i] = fork()) < 0)
{
fprintf(stderr, "fork");
abort();
}
else if (!pids[i])
{
for (int j = 0; j < 10; j++)
{
printf("%d\n", i);
sleep(1);
}
exit(0);
}
}
}
|
the_stack_data/252816.c
|
#include <stdio.h>
int minPubNum(int a, int b, int c) {
int i;
for (i = a; i < 22000; i++) {
if (i % a == 0 && i % b == 0 && i % c == 0)
return i;
}
return 0;
}
int main() {
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
int r = minPubNum(a, b, c);
printf("%d", r);
return 0;
}
|
the_stack_data/4383.c
|
int __VERIFIER_nondet_int();
int main(){
int a, x, y;
x = __VERIFIER_nondet_int();
y = __VERIFIER_nondet_int();
while (x > 0 && y > 0){
if (x > y){
y = ~x;
} else {
x = x-1;
}
}
return 0;
}
|
the_stack_data/333221.c
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#ifdef _WIN32
/* GetNamedPipeServerProcessId requires Windows Vista+ */
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x600
#include <windows.h>
#include <Lmcons.h>
#include <process.h>
#ifndef STDIN_FILENO
#define STDIN_FILENO 0
#endif
#ifndef STDOUT_FILENO
#define STDOUT_FILENO 1
#endif
#ifndef STDERR_FILENO
#define STDERR_FILENO 2
#endif
#ifdef _MSC_VER
typedef SSIZE_T ssize_t;
#define PATH_MAX MAX_PATH
#ifndef _UCRT
#define snprintf _snprintf
#endif
#endif
#else
#include <unistd.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <libgen.h>
#endif
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <limits.h>
#if defined(__linux)
#include <sys/param.h>
#elif defined(__APPLE__)
#include <sys/syslimits.h>
#elif defined(__OpenBSD__)
#include <sys/param.h>
#endif
/** Portability information **/
/* Determine OS, http://stackoverflow.com/questions/6649936
__linux__ Defined on Linux
__sun Defined on Solaris
__FreeBSD__ Defined on FreeBSD
__NetBSD__ Defined on NetBSD
__OpenBSD__ Defined on OpenBSD
__APPLE__ Defined on Mac OS X
__hpux Defined on HP-UX
__osf__ Defined on Tru64 UNIX (formerly DEC OSF1)
__sgi Defined on Irix
_AIX Defined on AIX
*/
/* Compute executable path, http://stackoverflow.com/questions/1023306
Mac OS X _NSGetExecutablePath() (man 3 dyld)
Linux readlink /proc/self/exe
Solaris getexecname()
FreeBSD sysctl CTL_KERN KERN_PROC KERN_PROC_PATHNAME -1
NetBSD readlink /proc/curproc/exe
DragonFly BSD readlink /proc/curproc/file
Windows GetModuleFileName() with hModule = NULL
*/
#define NO_EINTR(var, command) \
do { (var) = command; } while ((var) == -1 && errno == EINTR)
static void dumpinfo(void);
static void failwith_perror(const char *msg)
{
perror(msg);
dumpinfo();
exit(EXIT_FAILURE);
}
static void failwith(const char *msg)
{
fprintf(stderr, "%s\n", msg);
dumpinfo();
exit(EXIT_FAILURE);
}
#define PATHSZ (PATH_MAX+1)
#define BEGIN_PROTECTCWD \
{ char previous_cwd[PATHSZ]; \
if (!getcwd(previous_cwd, PATHSZ)) previous_cwd[0] = '\0';
#define END_PROTECTCWD \
if (previous_cwd[0] != '\0') chdir(previous_cwd); }
static const char *path_socketdir(void)
{
static const char *tmpdir = NULL;
if (tmpdir == NULL)
tmpdir = getenv("TMPDIR");
if (tmpdir == NULL)
tmpdir = "/tmp";
return tmpdir;
}
#ifdef _WIN32
/** Deal with Windows IPC **/
static void ipc_send(HANDLE hPipe, unsigned char *buffer, size_t len, HANDLE fds[3])
{
DWORD dwNumberOfBytesWritten;
if (!WriteFile(hPipe, fds, 3 * sizeof(HANDLE), &dwNumberOfBytesWritten, NULL) || dwNumberOfBytesWritten != 3 * sizeof(HANDLE))
failwith_perror("sendmsg");
if (!WriteFile(hPipe, buffer, len, &dwNumberOfBytesWritten, NULL) || dwNumberOfBytesWritten != len)
failwith_perror("send");
}
#else
/** Deal with UNIX IPC **/
static void ipc_send(int fd, unsigned char *buffer, size_t len, int fds[3])
{
char msg_control[CMSG_SPACE(3 * sizeof(int))];
struct iovec iov = { .iov_base = buffer, .iov_len = len };
struct msghdr msg = {
.msg_iov = &iov, .msg_iovlen = 1,
.msg_controllen = CMSG_SPACE(3 * sizeof(int)),
};
msg.msg_control = &msg_control;
memset(msg.msg_control, 0, msg.msg_controllen);
struct cmsghdr *cm = CMSG_FIRSTHDR(&msg);
cm->cmsg_level = SOL_SOCKET;
cm->cmsg_type = SCM_RIGHTS;
cm->cmsg_len = CMSG_LEN(3 * sizeof(int));
int *fds0 = (int*)CMSG_DATA(cm);
fds0[0] = fds[0];
fds0[1] = fds[1];
fds0[2] = fds[2];
ssize_t sent;
NO_EINTR(sent, sendmsg(fd, &msg, 0));
if (sent == -1)
failwith_perror("sendmsg");
while (sent < len)
{
ssize_t sent_;
NO_EINTR(sent_, send(fd, buffer + sent, len - sent, 0));
if (sent_ == -1)
failwith_perror("sent");
sent += sent_;
}
}
#endif
/* Serialize arguments */
#define byte(x,n) ((unsigned)((x) >> (n * 8)) & 0xFF)
static void append_argument(unsigned char *buffer, size_t len, ssize_t *pos, const char *p)
{
ssize_t j = *pos;
while (*p && j < len)
{
buffer[j] = *p;
j += 1;
p += 1;
}
if (j >= len)
failwith("maximum number of arguments exceeded");
buffer[j] = 0;
j += 1;
*pos = j;
}
#ifdef _MSC_VER
extern __declspec(dllimport) char **environ;
#else
extern char **environ;
#endif
static ssize_t prepare_args(unsigned char *buffer, size_t len, int argc, char **argv)
{
int i = 0;
ssize_t j = 4;
/* First put the current working directory */
char cwd[PATHSZ];
if (!getcwd(cwd, PATHSZ)) cwd[0] = '\0';
append_argument(buffer, len, &j, cwd);
/* Then append environ */
for (i = 0; environ[i] != NULL; ++i)
{
const char *v = environ[i];
if (v[0] == '\0') continue;
append_argument(buffer, len, &j, environ[i]);
}
/* Env var delimiter */
append_argument(buffer, len, &j, "");
/* Append arguments */
for (i = 0; i < argc && j < len; ++i)
{
append_argument(buffer, len, &j, argv[i]);
}
/* Put size at the beginning */
buffer[0] = byte(j,0);
buffer[1] = byte(j,1);
buffer[2] = byte(j,2);
buffer[3] = byte(j,3);
return j;
}
#ifdef _WIN32
#define IPC_SOCKET_TYPE HANDLE
static HANDLE connect_socket(const char *socketname, int fail)
{
HANDLE hPipe;
hPipe = CreateFile(socketname, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, 0);
if (hPipe == INVALID_HANDLE_VALUE)
if (fail) failwith_perror("connect");
return hPipe;
}
#else
#define IPC_SOCKET_TYPE int
#define INVALID_HANDLE_VALUE -1
static int connect_socket(const char *socketname, int fail)
{
int sock = socket(PF_UNIX, SOCK_STREAM, 0);
if (sock == -1) failwith_perror("socket");
int err;
BEGIN_PROTECTCWD
struct sockaddr_un address;
int address_len;
chdir(path_socketdir());
address.sun_family = AF_UNIX;
snprintf(address.sun_path, 104, "./%s", socketname);
address_len = strlen(address.sun_path) + sizeof(address.sun_family) + 1;
NO_EINTR(err, connect(sock, (struct sockaddr*)&address, address_len));
END_PROTECTCWD
if (err == -1)
{
if (fail) failwith_perror("connect");
close(sock);
return -1;
}
return sock;
}
#endif
#ifdef _WIN32
static void start_server(const char *socketname, const char* eventname, const char *exec_path)
{
char buf[PATHSZ];
PROCESS_INFORMATION pi;
STARTUPINFO si;
HANDLE hEvent = CreateEvent(NULL, FALSE, FALSE, eventname);
DWORD dwResult;
sprintf(buf, "%s server %s %s", exec_path, socketname, eventname);
ZeroMemory(&si, sizeof(si));
si.cb = sizeof(si);
ZeroMemory(&pi, sizeof(pi));
/* Note that DETACHED_PROCESS means that the process does not appear in Task Manager
but the server can still be stopped with ocamlmerlin server stop-server */
if (!CreateProcess(exec_path, buf, NULL, NULL, FALSE, DETACHED_PROCESS, NULL, NULL, &si, &pi))
failwith_perror("fork");
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
if (WaitForSingleObject(hEvent, 5000) != WAIT_OBJECT_0)
failwith_perror("execlp");
}
#else
static void make_daemon(int sock)
{
/* On success: The child process becomes session leader */
if (setsid() < 0)
failwith_perror("setsid");
/* Close all open file descriptors */
close(0);
if (open("/dev/null", O_RDWR, 0) != 0)
failwith_perror("open");
dup2(0,1);
dup2(0,2);
/* Change directory to root, so that process still works if directory
* is delete. */
if (chdir("/") != 0)
failwith_perror("chdir");
//int x;
//for (x = sysconf(_SC_OPEN_MAX); x>2; x--)
//{
// if (x != sock)
// close(x);
//}
pid_t child = fork();
signal(SIGHUP, SIG_IGN);
/* An error occurred */
if (child < 0)
failwith_perror("fork");
/* Success: Let the parent terminate */
if (child > 0)
exit(EXIT_SUCCESS);
}
static void start_server(const char *socketname, const char* ignored, const char *exec_path)
{
int sock = socket(PF_UNIX, SOCK_STREAM, 0);
if (sock == -1)
failwith_perror("socket");
int err;
BEGIN_PROTECTCWD
struct sockaddr_un address;
int address_len;
chdir(path_socketdir());
address.sun_family = AF_UNIX;
snprintf(address.sun_path, 104, "./%s", socketname);
address_len = strlen(address.sun_path) + sizeof(address.sun_family) + 1;
unlink(address.sun_path);
NO_EINTR(err, bind(sock, (struct sockaddr*)&address, address_len));
END_PROTECTCWD
if (err == -1)
failwith_perror("bind");
if (listen(sock, 5) == -1)
failwith_perror("listen");
pid_t child = fork();
if (child == -1)
failwith_perror("fork");
if (child == 0)
{
make_daemon(sock);
char socket_fd[50], socket_path[PATHSZ];
sprintf(socket_fd, "%d", sock);
snprintf(socket_path, PATHSZ, "%s/%s", path_socketdir(), socketname);
//execlp("nohup", "nohup", exec_path, "server", socket_path, socket_fd, NULL);
execlp(exec_path, exec_path, "server", socket_path, socket_fd, NULL);
failwith_perror("execlp");
}
close(sock);
wait(NULL);
}
#endif
static IPC_SOCKET_TYPE connect_and_serve(const char *socket_path, const char* event_path, const char *exec_path)
{
IPC_SOCKET_TYPE sock = connect_socket(socket_path, 0);
if (sock == INVALID_HANDLE_VALUE)
{
start_server(socket_path, event_path, exec_path);
sock = connect_socket(socket_path, 1);
}
if (sock == INVALID_HANDLE_VALUE)
abort();
return sock;
}
/* OCaml merlin path */
static const char *search_in_path(const char *PATH, const char *argv0, char *merlin_path)
{
static char binary_path[PATHSZ];
#ifdef _WIN32
char *result = NULL;
DWORD dwResult;
#endif
if (PATH == NULL || argv0 == NULL) return NULL;
while (*PATH)
{
int i = 0;
// Copy one path from PATH
while (i < PATHSZ-1 && *PATH && *PATH != ':')
{
binary_path[i] = *PATH;
i += 1;
PATH += 1;
}
// Append filename
{
const char *file = argv0;
binary_path[i] = '/';
i += 1;
while (i < PATHSZ-1 && *file)
{
binary_path[i] = *file;
i += 1;
file += 1;
}
binary_path[i] = 0;
i += 1;
}
// Check path
#ifdef _WIN32
dwResult = GetFullPathName(binary_path, PATHSZ, merlin_path, NULL);
if (dwResult && dwResult < PATHSZ)
if (GetLongPathName(binary_path, NULL, 0))
result = binary_path;
#else
char *result = realpath(binary_path, merlin_path);
#endif
if (result != NULL)
return result;
// Seek next path in PATH
while (*PATH && *PATH != ':')
PATH += 1;
while (*PATH == ':')
PATH += 1;
}
return NULL;
}
static void prune_binary_name(char * buffer) {
size_t strsz = strlen(buffer);
while (strsz > 0 && buffer[strsz-1] != '/' && buffer[strsz-1] != '\\')
strsz -= 1;
buffer[strsz] = 0;
}
#ifdef _WIN32
static char ocamlmerlin_server[] = "ocamlmerlin-server.exe";
#else
static char ocamlmerlin_server[] = "ocamlmerlin-server";
#endif
static void compute_merlinpath(char merlin_path[PATHSZ], const char *argv0, struct stat *st)
{
char argv0_dirname[PATHSZ];
size_t strsz;
strcpy(argv0_dirname, argv0);
prune_binary_name(argv0_dirname);
// Check if we were called with a path or not
if (strlen(argv0_dirname) == 0) {
if (search_in_path(getenv("PATH"), argv0, merlin_path) == NULL)
failwith("cannot resolve path to ocamlmerlin");
} else {
#ifdef _WIN32
// GetFullPathName does not resolve symbolic links, which realpath does.
// @@DRA GetLongPathName ensures that the file exists (better way?!).
// Not sure if this matters.
DWORD dwResult = GetFullPathName(argv0, PATHSZ, merlin_path, NULL);
if (!dwResult || dwResult >= PATHSZ || !GetLongPathName(merlin_path, NULL, 0))
#else
if (realpath(argv0, merlin_path) == NULL)
#endif
failwith("argv0 does not point to a valid file");
}
prune_binary_name(merlin_path);
strsz = strlen(merlin_path);
// Append ocamlmerlin-server
if (strsz + sizeof(ocamlmerlin_server) + 8 > PATHSZ)
failwith("path is too long");
strcpy(merlin_path + strsz, ocamlmerlin_server);
if (stat(merlin_path, st) != 0)
{
strcpy(merlin_path + strsz, "ocamlmerlin_server.exe");
if (stat(merlin_path, st) != 0)
{
strcpy(merlin_path + strsz, ocamlmerlin_server);
failwith_perror("stat(ocamlmerlin-server, also tried ocamlmerlin_server.exe)");
}
}
}
#ifdef _WIN32
static void compute_socketname(char socketname[PATHSZ], char eventname[PATHSZ], const char merlin_path[PATHSZ])
#else
static void compute_socketname(char socketname[PATHSZ], struct stat *st)
#endif
{
#ifdef _WIN32
CHAR user[UNLEN + 1];
DWORD dwBufSize = UNLEN;
BY_HANDLE_FILE_INFORMATION info;
HANDLE hFile = CreateFile(merlin_path, FILE_READ_ATTRIBUTES, FILE_SHARE_DELETE | FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, NULL);
if (hFile == INVALID_HANDLE_VALUE || !GetFileInformationByHandle(hFile, &info))
failwith_perror("stat (cannot find ocamlmerlin binary)");
CloseHandle(hFile);
if (!GetUserName(user, &dwBufSize))
user[0] = '\0';
// @@DRA Need to use Windows API functions to get meaningful values for st_dev and st_ino
snprintf(eventname, PATHSZ,
"ocamlmerlin_%s_%lx_%llx",
user,
info.dwVolumeSerialNumber,
((__int64)info.nFileIndexHigh) << 32 | ((__int64)info.nFileIndexLow));
snprintf(socketname, PATHSZ,
"\\\\.\\pipe\\%s", eventname);
#else
snprintf(socketname, PATHSZ,
"ocamlmerlin_%llu_%llu_%llu.socket",
(unsigned long long)getuid(),
(unsigned long long)st->st_dev,
(unsigned long long)st->st_ino);
#endif
}
/* Main */
static char
merlin_path[PATHSZ] = "<not computed yet>",
socketname[PATHSZ] = "<not computed yet>",
eventname[PATHSZ] = "<not computed yet>";
static unsigned char argbuffer[262144];
static void dumpinfo(void)
{
fprintf(stderr,
"merlin path: %s\nsocket path: %s/%s\n", merlin_path, path_socketdir(), socketname);
}
static void unexpected_termination(int argc, char **argv)
{
int sexp = 0;
int i;
for (i = 1; i < argc - 1; ++i)
{
if (strcmp(argv[i], "-protocol") == 0 &&
strcmp(argv[i+1], "sexp") == 0)
sexp = 1;
}
puts(sexp
? "((assoc) (class . \"failure\") (value . \"abnormal termination\") (notifications))"
: "{\"class\": \"failure\", \"value\": \"abnormal termination\", \"notifications\": [] }"
);
failwith("abnormal termination");
}
int main(int argc, char **argv)
{
char result = 0;
int err = 0;
struct stat st;
#ifdef _WIN32
HANDLE fds[3];
ULONG pid;
HANDLE hProcess, hServerProcess;
DWORD dwNumberOfBytesRead;
CHAR argv0[PATHSZ];
GetModuleFileName(NULL, argv0, PATHSZ);
compute_merlinpath(merlin_path, argv0, &st);
#else
compute_merlinpath(merlin_path, argv[0], &st);
#endif
if (argc >= 2 && strcmp(argv[1], "server") == 0)
{
IPC_SOCKET_TYPE sock;
ssize_t len;
#ifdef _WIN32
compute_socketname(socketname, eventname, merlin_path);
#else
compute_socketname(socketname, &st);
#endif
sock = connect_and_serve(socketname, eventname, merlin_path);
len = prepare_args(argbuffer, sizeof(argbuffer), argc-2, argv+2);
#ifdef _WIN32
hProcess = GetCurrentProcess();
if (!GetNamedPipeServerProcessId(sock, &pid))
failwith_perror("GetNamedPipeServerProcessId");
hServerProcess = OpenProcess(PROCESS_DUP_HANDLE, FALSE, pid);
if (hServerProcess == INVALID_HANDLE_VALUE)
failwith_perror("OpenProcess");
if (!DuplicateHandle(hProcess, GetStdHandle(STD_INPUT_HANDLE), hServerProcess, &fds[0], 0, FALSE, DUPLICATE_SAME_ACCESS))
failwith_perror("DuplicateHandle(stdin)");
if (!DuplicateHandle(hProcess, GetStdHandle(STD_OUTPUT_HANDLE), hServerProcess, &fds[1], 0, FALSE, DUPLICATE_SAME_ACCESS))
failwith_perror("DuplicateHandle(stdout)");
CloseHandle(GetStdHandle(STD_OUTPUT_HANDLE));
if (!DuplicateHandle(hProcess, GetStdHandle(STD_ERROR_HANDLE), hServerProcess, &fds[2], 0, FALSE, DUPLICATE_SAME_ACCESS))
failwith_perror("DuplicateHandle(stderr)");
#else
int fds[3] = { STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO };
#endif
ipc_send(sock, argbuffer, len, fds);
#ifdef _WIN32
if (ReadFile(sock, &result, 1, &dwNumberOfBytesRead, NULL) && dwNumberOfBytesRead == 1)
err = 1;
#else
NO_EINTR(err, read(sock, &result, 1));
#endif
if (err == 1)
exit(result);
unexpected_termination(argc, argv);
}
else
{
argv[0] = ocamlmerlin_server;
execvp(merlin_path, argv);
failwith_perror("execvp(ocamlmerlin-server)");
}
}
|
the_stack_data/154735.c
|
/* dlaebz.f -- translated by f2c (version 20061008) */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include <assert.h>
#define imax(a,b) ( (a) > (b) ? (a) : (b) )
#define imin(a,b) ( (a) < (b) ? (a) : (b) )
/* Subroutine */
int odebz(int *ijob, int *nitmax, int *n,
int *mmax, int *minp, int *nbmin, double *abstol,
double *reltol, double *pivmin, double *d__, double *
e, double *e2, int *nval, double *ab, double *c__,
int *mout, int *nab, double *work, int *iwork,
int *info)
{
/* System generated locals */
int nab_dim1, nab_offset, ab_dim1, ab_offset, i__1, i__2, i__3, i__4,
i__5, i__6;
double d__1, d__2, d__3, d__4;
/* Local variables */
int j, kf, ji, kl, jp, jit;
double tmp1, tmp2;
int itmp1, itmp2, kfnew, klnew;
/* -- LAPACK auxiliary routine (version 3.2) -- */
/* Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd.. */
/* November 2006 */
/* .. Scalar Arguments .. */
/* .. */
/* .. Array Arguments .. */
/* .. */
/* Purpose */
/* ======= */
/* ODEBZ contains the iteration loops which compute and use the */
/* function N(w), which is the count of eigenvalues of a symmetric */
/* tridiagonal matrix T less than or equal to its argument w. It */
/* performs a choice of two types of loops: */
/* IJOB=1, followed by */
/* IJOB=2: It takes as input a list of intervals and returns a list of */
/* sufficiently small intervals whose union contains the same */
/* eigenvalues as the union of the original intervals. */
/* The input intervals are (AB(j,1),AB(j,2)], j=1,...,MINP. */
/* The output interval (AB(j,1),AB(j,2)] will contain */
/* eigenvalues NAB(j,1)+1,...,NAB(j,2), where 1 <= j <= MOUT. */
/* IJOB=3: It performs a binary search in each input interval */
/* (AB(j,1),AB(j,2)] for a point w(j) such that */
/* N(w(j))=NVAL(j), and uses C(j) as the starting point of */
/* the search. If such a w(j) is found, then on output */
/* AB(j,1)=AB(j,2)=w. If no such w(j) is found, then on output */
/* (AB(j,1),AB(j,2)] will be a small interval containing the */
/* point where N(w) jumps through NVAL(j), unless that point */
/* lies outside the initial interval. */
/* Note that the intervals are in all cases half-open intervals, */
/* i.e., of the form (a,b] , which includes b but not a . */
/* To avoid underflow, the matrix should be scaled so that its largest */
/* element is no greater than overflow**(1/2) * underflow**(1/4) */
/* in absolute value. To assure the most accurate computation */
/* of small eigenvalues, the matrix should be scaled to be */
/* not much smaller than that, either. */
/* See W. Kahan "Accurate Eigenvalues of a Symmetric Tridiagonal */
/* Matrix", Report CS41, Computer Science Dept., Stanford */
/* University, July 21, 1966 */
/* Note: the arguments are, in general, *not* checked for unreasonable */
/* values. */
/* Arguments */
/* ========= */
/* IJOB (input) INT */
/* Specifies what is to be done: */
/* = 1: Compute NAB for the initial intervals. */
/* = 2: Perform bisection iteration to find eigenvalues of T. */
/* = 3: Perform bisection iteration to invert N(w), i.e., */
/* to find a point which has a specified number of */
/* eigenvalues of T to its left. */
/* Other values will cause ODEBZ to return with INFO=-1. */
/* NITMAX (input) INT */
/* The maximum number of "levels" of bisection to be */
/* performed, i.e., an interval of width W will not be made */
/* smaller than 2^(-NITMAX) * W. If not all intervals */
/* have converged after NITMAX iterations, then INFO is set */
/* to the number of non-converged intervals. */
/* N (input) INT */
/* The dimension n of the tridiagonal matrix T. It must be at */
/* least 1. */
/* MMAX (input) INT */
/* The maximum number of intervals. If more than MMAX intervals */
/* are generated, then ODEBZ will quit with INFO=MMAX+1. */
/* MINP (input) INT */
/* The initial number of intervals. It may not be greater than */
/* MMAX. */
/* NBMIN (input) INT */
/* The smallest number of intervals that should be processed */
/* using a vector loop. If zero, then only the scalar loop */
/* will be used. */
/* ABSTOL (input) DOUBLE PRECISION */
/* The minimum (absolute) width of an interval. When an */
/* interval is narrower than ABSTOL, or than RELTOL times the */
/* larger (in magnitude) endpoint, then it is considered to be */
/* sufficiently small, i.e., converged. This must be at least */
/* zero. */
/* RELTOL (input) DOUBLE PRECISION */
/* The minimum relative width of an interval. When an interval */
/* is narrower than ABSTOL, or than RELTOL times the larger (in */
/* magnitude) endpoint, then it is considered to be */
/* sufficiently small, i.e., converged. Note: this should */
/* always be at least radix*machine epsilon. */
/* PIVMIN (input) DOUBLE PRECISION */
/* The minimum absolute value of a "pivot" in the Sturm */
/* sequence loop. This *must* be at least max |e(j)**2| * */
/* safe_min and at least safe_min, where safe_min is at least */
/* the smallest number that can divide one without overflow. */
/* D (input) DOUBLE PRECISION array, dimension (N) */
/* The diagonal elements of the tridiagonal matrix T. */
/* E (input) DOUBLE PRECISION array, dimension (N) */
/* The offdiagonal elements of the tridiagonal matrix T in */
/* positions 1 through N-1. E(N) is arbitrary. */
/* E2 (input) DOUBLE PRECISION array, dimension (N) */
/* The squares of the offdiagonal elements of the tridiagonal */
/* matrix T. E2(N) is ignored. */
/* NVAL (input/output) INT array, dimension (MINP) */
/* If IJOB=1 or 2, not referenced. */
/* If IJOB=3, the desired values of N(w). The elements of NVAL */
/* will be reordered to correspond with the intervals in AB. */
/* Thus, NVAL(j) on output will not, in general be the same as */
/* NVAL(j) on input, but it will correspond with the interval */
/* (AB(j,1),AB(j,2)] on output. */
/* AB (input/output) DOUBLE PRECISION array, dimension (MMAX,2) */
/* The endpoints of the intervals. AB(j,1) is a(j), the left */
/* endpoint of the j-th interval, and AB(j,2) is b(j), the */
/* right endpoint of the j-th interval. The input intervals */
/* will, in general, be modified, split, and reordered by the */
/* calculation. */
/* C (input/output) DOUBLE PRECISION array, dimension (MMAX) */
/* If IJOB=1, ignored. */
/* If IJOB=2, workspace. */
/* If IJOB=3, then on input C(j) should be initialized to the */
/* first search point in the binary search. */
/* MOUT (output) INT */
/* If IJOB=1, the number of eigenvalues in the intervals. */
/* If IJOB=2 or 3, the number of intervals output. */
/* If IJOB=3, MOUT will equal MINP. */
/* NAB (input/output) INT array, dimension (MMAX,2) */
/* If IJOB=1, then on output NAB(i,j) will be set to N(AB(i,j)). */
/* If IJOB=2, then on input, NAB(i,j) should be set. It must */
/* satisfy the condition: */
/* N(AB(i,1)) <= NAB(i,1) <= NAB(i,2) <= N(AB(i,2)), */
/* which means that in interval i only eigenvalues */
/* NAB(i,1)+1,...,NAB(i,2) will be considered. Usually, */
/* NAB(i,j)=N(AB(i,j)), from a previous call to ODEBZ with */
/* IJOB=1. */
/* On output, NAB(i,j) will contain */
/* max(na(k),min(nb(k),N(AB(i,j)))), where k is the index of */
/* the input interval that the output interval */
/* (AB(j,1),AB(j,2)] came from, and na(k) and nb(k) are the */
/* the input values of NAB(k,1) and NAB(k,2). */
/* If IJOB=3, then on output, NAB(i,j) contains N(AB(i,j)), */
/* unless N(w) > NVAL(i) for all search points w , in which */
/* case NAB(i,1) will not be modified, i.e., the output */
/* value will be the same as the input value (modulo */
/* reorderings -- see NVAL and AB), or unless N(w) < NVAL(i) */
/* for all search points w , in which case NAB(i,2) will */
/* not be modified. Normally, NAB should be set to some */
/* distinctive value(s) before ODEBZ is called. */
/* WORK (workspace) DOUBLE PRECISION array, dimension (MMAX) */
/* Workspace. */
/* IWORK (workspace) INT array, dimension (MMAX) */
/* Workspace. */
/* INFO (output) INT */
/* = 0: All intervals converged. */
/* = 1--MMAX: The last INFO intervals did not converge. */
/* = MMAX+1: More than MMAX intervals were generated. */
/* Further Details */
/* =============== */
/* This routine is intended to be called only by other LAPACK */
/* routines, thus the interface is less user-friendly. It is intended */
/* for two purposes: */
/* (a) finding eigenvalues. In this case, ODEBZ should have one or */
/* more initial intervals set up in AB, and ODEBZ should be called */
/* with IJOB=1. This sets up NAB, and also counts the eigenvalues. */
/* Intervals with no eigenvalues would usually be thrown out at */
/* this point. Also, if not all the eigenvalues in an interval i */
/* are desired, NAB(i,1) can be increased or NAB(i,2) decreased. */
/* For example, set NAB(i,1)=NAB(i,2)-1 to get the largest */
/* eigenvalue. ODEBZ is then called with IJOB=2 and MMAX */
/* no smaller than the value of MOUT returned by the call with */
/* IJOB=1. After this (IJOB=2) call, eigenvalues NAB(i,1)+1 */
/* through NAB(i,2) are approximately AB(i,1) (or AB(i,2)) to the */
/* tolerance specified by ABSTOL and RELTOL. */
/* (b) finding an interval (a',b'] containing eigenvalues w(f),...,w(l). */
/* In this case, start with a Gershgorin interval (a,b). Set up */
/* AB to contain 2 search intervals, both initially (a,b). One */
/* NVAL element should contain f-1 and the other should contain l */
/* , while C should contain a and b, resp. NAB(i,1) should be -1 */
/* and NAB(i,2) should be N+1, to flag an error if the desired */
/* interval does not lie in (a,b). ODEBZ is then called with */
/* IJOB=3. On exit, if w(f-1) < w(f), then one of the intervals -- */
/* j -- will have AB(j,1)=AB(j,2) and NAB(j,1)=NAB(j,2)=f-1, while */
/* if, to the specified tolerance, w(f-k)=...=w(f+r), k > 0 and r */
/* >= 0, then the interval will have N(AB(j,1))=NAB(j,1)=f-k and */
/* N(AB(j,2))=NAB(j,2)=f+r. The cases w(l) < w(l+1) and */
/* w(l-r)=...=w(l+k) are handled similarly. */
/* ===================================================================== */
/* .. Parameters .. */
/* .. */
/* .. Local Scalars .. */
/* .. */
/* .. Intrinsic Functions .. */
/* .. */
/* .. Executable Statements .. */
/* Check for Errors */
/* Parameter adjustments */
nab_dim1 = *mmax;
nab_offset = 1 + nab_dim1;
nab -= nab_offset;
ab_dim1 = *mmax;
ab_offset = 1 + ab_dim1;
ab -= ab_offset;
--d__;
--e;
--e2;
--nval;
--c__;
--work;
--iwork;
/* Function Body */
*info = 0;
if (*ijob < 1 || *ijob > 3) {
*info = -1;
return 0;
}
/* Initialize NAB */
if (*ijob == 1) {
/* Compute the number of eigenvalues in the initial intervals. */
*mout = 0;
i__1 = *minp;
for (ji = 1; ji <= i__1; ++ji) {
for (jp = 1; jp <= 2; ++jp) {
tmp1 = d__[1] - ab[ji + jp * ab_dim1];
if (fabs(tmp1) < *pivmin) {
tmp1 = -(*pivmin);
}
nab[ji + jp * nab_dim1] = 0;
if (tmp1 <= 0.) {
nab[ji + jp * nab_dim1] = 1;
}
i__2 = *n;
for (j = 2; j <= i__2; ++j) {
tmp1 = d__[j] - e2[j - 1] / tmp1 - ab[ji + jp * ab_dim1];
if (fabs(tmp1) < *pivmin) {
tmp1 = -(*pivmin);
}
if (tmp1 <= 0.) {
++nab[ji + jp * nab_dim1];
}
/* L10: */
}
/* L20: */
}
*mout = *mout + nab[ji + (nab_dim1 << 1)] - nab[ji + nab_dim1];
/* L30: */
}
return 0;
}
/* Initialize for loop */
/* KF and KL have the following meaning: */
/* Intervals 1,...,KF-1 have converged. */
/* Intervals KF,...,KL still need to be refined. */
kf = 1;
kl = *minp;
/* If IJOB=2, initialize C. */
/* If IJOB=3, use the user-supplied starting point. */
if (*ijob == 2) {
i__1 = *minp;
for (ji = 1; ji <= i__1; ++ji) {
c__[ji] = (ab[ji + ab_dim1] + ab[ji + (ab_dim1 << 1)]) * .5;
/* L40: */
}
}
/* Iteration loop */
i__1 = *nitmax;
for (jit = 1; jit <= i__1; ++jit) {
/* Loop over intervals */
if (kl - kf + 1 >= *nbmin && *nbmin > 0) {
/* Begin of Parallel Version of the loop */
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
/* Compute N(c), the number of eigenvalues less than c */
work[ji] = d__[1] - c__[ji];
iwork[ji] = 0;
if (work[ji] <= *pivmin) {
iwork[ji] = 1;
/* Computing MIN */
d__1 = work[ji], d__2 = -(*pivmin);
work[ji] = fmin(d__1,d__2);
}
i__3 = *n;
for (j = 2; j <= i__3; ++j) {
work[ji] = d__[j] - e2[j - 1] / work[ji] - c__[ji];
if (work[ji] <= *pivmin) {
++iwork[ji];
/* Computing MIN */
d__1 = work[ji], d__2 = -(*pivmin);
work[ji] = fmin(d__1,d__2);
}
/* L50: */
}
/* L60: */
}
if (*ijob <= 2) {
/* IJOB=2: Choose all intervals containing eigenvalues. */
klnew = kl;
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
/* Insure that N(w) is monotone */
/* Computing MIN */
/* Computing MAX */
i__5 = nab[ji + nab_dim1], i__6 = iwork[ji];
i__3 = nab[ji + (nab_dim1 << 1)], i__4 = imax(i__5,i__6);
iwork[ji] = imin(i__3,i__4);
/* Update the Queue -- add intervals if both halves */
/* contain eigenvalues. */
if (iwork[ji] == nab[ji + (nab_dim1 << 1)]) {
/* No eigenvalue in the upper interval: */
/* just use the lower interval. */
ab[ji + (ab_dim1 << 1)] = c__[ji];
} else if (iwork[ji] == nab[ji + nab_dim1]) {
/* No eigenvalue in the lower interval: */
/* just use the upper interval. */
ab[ji + ab_dim1] = c__[ji];
} else {
++klnew;
if (klnew <= *mmax) {
/* Eigenvalue in both intervals -- add upper to */
/* queue. */
ab[klnew + (ab_dim1 << 1)] = ab[ji + (ab_dim1 <<
1)];
nab[klnew + (nab_dim1 << 1)] = nab[ji + (nab_dim1
<< 1)];
ab[klnew + ab_dim1] = c__[ji];
nab[klnew + nab_dim1] = iwork[ji];
ab[ji + (ab_dim1 << 1)] = c__[ji];
nab[ji + (nab_dim1 << 1)] = iwork[ji];
} else {
*info = *mmax + 1;
}
}
/* L70: */
}
if (*info != 0) {
return 0;
}
kl = klnew;
} else {
/* IJOB=3: Binary search. Keep only the interval containing */
/* w s.t. N(w) = NVAL */
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
if (iwork[ji] <= nval[ji]) {
ab[ji + ab_dim1] = c__[ji];
nab[ji + nab_dim1] = iwork[ji];
}
if (iwork[ji] >= nval[ji]) {
ab[ji + (ab_dim1 << 1)] = c__[ji];
nab[ji + (nab_dim1 << 1)] = iwork[ji];
}
/* L80: */
}
}
} else {
/* End of Parallel Version of the loop */
/* Begin of Serial Version of the loop */
klnew = kl;
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
/* Compute N(w), the number of eigenvalues less than w */
tmp1 = c__[ji];
tmp2 = d__[1] - tmp1;
itmp1 = 0;
if (tmp2 <= *pivmin) {
itmp1 = 1;
/* Computing MIN */
d__1 = tmp2, d__2 = -(*pivmin);
tmp2 = fmin(d__1,d__2);
}
i__3 = *n;
for (j = 2; j <= i__3; ++j) {
tmp2 = d__[j] - e2[j - 1] / tmp2 - tmp1;
if (tmp2 <= *pivmin) {
++itmp1;
/* Computing MIN */
d__1 = tmp2, d__2 = -(*pivmin);
tmp2 = fmin(d__1,d__2);
}
/* L90: */
}
if (*ijob <= 2) {
/* IJOB=2: Choose all intervals containing eigenvalues. */
/* Insure that N(w) is monotone */
/* Computing MIN */
/* Computing MAX */
i__5 = nab[ji + nab_dim1];
i__3 = nab[ji + (nab_dim1 << 1)], i__4 = imax(i__5,itmp1);
itmp1 = imin(i__3,i__4);
/* Update the Queue -- add intervals if both halves */
/* contain eigenvalues. */
if (itmp1 == nab[ji + (nab_dim1 << 1)]) {
/* No eigenvalue in the upper interval: */
/* just use the lower interval. */
ab[ji + (ab_dim1 << 1)] = tmp1;
} else if (itmp1 == nab[ji + nab_dim1]) {
/* No eigenvalue in the lower interval: */
/* just use the upper interval. */
ab[ji + ab_dim1] = tmp1;
} else if (klnew < *mmax) {
/* Eigenvalue in both intervals -- add upper to queue. */
++klnew;
ab[klnew + (ab_dim1 << 1)] = ab[ji + (ab_dim1 << 1)];
nab[klnew + (nab_dim1 << 1)] = nab[ji + (nab_dim1 <<
1)];
ab[klnew + ab_dim1] = tmp1;
nab[klnew + nab_dim1] = itmp1;
ab[ji + (ab_dim1 << 1)] = tmp1;
nab[ji + (nab_dim1 << 1)] = itmp1;
} else {
*info = *mmax + 1;
return 0;
}
} else {
/* IJOB=3: Binary search. Keep only the interval */
/* containing w s.t. N(w) = NVAL */
if (itmp1 <= nval[ji]) {
ab[ji + ab_dim1] = tmp1;
nab[ji + nab_dim1] = itmp1;
}
if (itmp1 >= nval[ji]) {
ab[ji + (ab_dim1 << 1)] = tmp1;
nab[ji + (nab_dim1 << 1)] = itmp1;
}
}
/* L100: */
}
kl = klnew;
/* End of Serial Version of the loop */
}
/* Check for convergence */
kfnew = kf;
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
tmp1 = (d__1 = ab[ji + (ab_dim1 << 1)] - ab[ji + ab_dim1], fabs(
d__1));
/* Computing MAX */
d__3 = (d__1 = ab[ji + (ab_dim1 << 1)], fabs(d__1)), d__4 = (d__2 =
ab[ji + ab_dim1], fabs(d__2));
tmp2 = fmax(d__3,d__4);
/* Computing MAX */
d__1 = fmax(*abstol,*pivmin), d__2 = *reltol * tmp2;
if (tmp1 < fmax(d__1,d__2) || nab[ji + nab_dim1] >= nab[ji + (
nab_dim1 << 1)]) {
/* Converged -- Swap with position KFNEW, */
/* then increment KFNEW */
if (ji > kfnew) {
tmp1 = ab[ji + ab_dim1];
tmp2 = ab[ji + (ab_dim1 << 1)];
itmp1 = nab[ji + nab_dim1];
itmp2 = nab[ji + (nab_dim1 << 1)];
ab[ji + ab_dim1] = ab[kfnew + ab_dim1];
ab[ji + (ab_dim1 << 1)] = ab[kfnew + (ab_dim1 << 1)];
nab[ji + nab_dim1] = nab[kfnew + nab_dim1];
nab[ji + (nab_dim1 << 1)] = nab[kfnew + (nab_dim1 << 1)];
ab[kfnew + ab_dim1] = tmp1;
ab[kfnew + (ab_dim1 << 1)] = tmp2;
nab[kfnew + nab_dim1] = itmp1;
nab[kfnew + (nab_dim1 << 1)] = itmp2;
if (*ijob == 3) {
itmp1 = nval[ji];
nval[ji] = nval[kfnew];
nval[kfnew] = itmp1;
}
}
++kfnew;
}
/* L110: */
}
kf = kfnew;
/* Choose Midpoints */
i__2 = kl;
for (ji = kf; ji <= i__2; ++ji) {
c__[ji] = (ab[ji + ab_dim1] + ab[ji + (ab_dim1 << 1)]) * .5;
/* L120: */
}
/* If no more intervals to refine, quit. */
if (kf > kl) {
goto L140;
}
/* L130: */
}
/* Converged */
L140:
/* Computing MAX */
i__1 = kl + 1 - kf;
*info = imax(i__1,0);
*mout = kl;
return 0;
/* End of ODEBZ */
} /* odebz_ */
|
the_stack_data/68887608.c
|
/*Program to determine tomorrow's date*/
#include <stdio.h>
#include <stdbool.h>
//Global structure definition for storing date, and structure variable declaration
struct date
{
int day ;
int month ;
int year ;
} tomorrow ;
int main ( void )
{
//Function declaration
struct date dateUpdate ( struct date today ) ;
//Declaring structure variables
struct date today ;
//Getting user input for today's date
printf ( "Enter today's date (mm dd yyyy) : " ) ;
scanf ( "%i %i %i", &today.month, &today.day, &today.year ) ;
//Calling function to update date
tomorrow = dateUpdate ( today ) ;
//Printing tomorrow's date
printf ( "Tomorrow's date is %i/%i/%.2i\n", tomorrow.month, tomorrow.day, tomorrow.year % 100 ) ;
return 0 ;
}
//Function to update date by one day
struct date dateUpdate ( struct date today )
{
//Function decalaration
int numberOfDays ( struct date d ) ;
//Calculating tomorrow's date
//Not the last day of the month
if ( today.day != numberOfDays ( today ) )
tomorrow = ( struct date ) { .day = today.day + 1, .year = today.year, .month = today.month } ;
//Last day of the year
else if ( today.month == 12 )
tomorrow = ( struct date ) { 1, 1, today.year + 1 } ;
//Last day of the month
else
tomorrow = ( struct date ) { 1, today.month + 1, today.year } ;
return tomorrow ;
}
//Function to determine last day of the month
int numberOfDays ( struct date d )
{
//Function decalaration
bool isLeapYear ( struct date d ) ;
//Array containing last date of the 12 months
const int last_date [ 12 ] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } ;
//If it's a leap year and the argument month is Feb
if ( isLeapYear ( d ) && d.month == 2 )
{
int feb = 29 ;
return feb ;
}
//The month is not Feb
else
return last_date [ d.month - 1 ] ;
}
//Function to check for a leap year
bool isLeapYear ( struct date d )
{
bool flag ;
if ( d.year % 400 == 0 || d.year % 4 == 0 && d.year % 100 != 0 )
flag = true ;
else
flag = false ;
return flag ;
}
|
the_stack_data/242330377.c
|
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main()
{
int x[200],y[200],xx[200],yy[200],n,k,dif,dif1,i,max;
char tip[200][5];
scanf("%d%d %s",&x[0],&y[0],tip[0]);
scanf("%d",&n);
for(i=1;i<n+1;i++)
{
scanf("%d %d %s",&x[i],&y[i],tip[i]);
}
k=0;
max=10000;
for(i=1;i<n+1;i++)
{
if(strcmp(tip[0],tip[i])==0)
{
dif=abs(x[i]-x[0]);
dif1=abs(y[i]-y[0]);
if(dif+dif1<max)
{
max=dif+dif1;
}
}
}
for(i=1;i<n+1;i++)
{
if(strcmp(tip[0],tip[i])==0)
{
dif=x[i]-x[0];
if(dif<0)
{
dif=dif*-1;
}
dif1=y[i]-y[0];
if(dif1<0)
{
dif1=dif1*-1;
}
if(dif+dif1==max)
{
yy[k]=y[i];
xx[k]=x[i];
k++;
}
}
}
if(k==0)
{
printf("Nenhum\n");
}
else
{
printf("%d %d %s %d\n",xx[0],yy[0],tip[0],(xx[0]-x[0])*(xx[0]-x[0]) + (yy[0]-y[0])*(yy[0]-y[0]));
}
return 0;
}
|
the_stack_data/10010.c
|
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
int count=0;
int num=965;
pthread_mutex_t loc;
void *fun()
{
pthread_mutex_lock(&loc);
int arr[100];
int n = num * 2 + (rand()%100);
int t = n;
int k,j,m=0;
printf("\nThread %d has started.\n",count);
count++;
printf("\nThread %d has started.\n",count);
while(n!=0)
{
if(n%2==0)
arr[j] = 0;
else
arr[j] = 1;
j++;
n = n/2;
}
printf("\nThe binary value of %d is : ",t);
for(k=0,m=j-1;k<j;k++,m--)
printf("%d",arr[m]);
printf("\nThread %d has finished.\n\n",count);
pthread_mutex_unlock(&loc);
}
void main()
{
pthread_t t1,t2,t3;
pthread_create(&t1,NULL,fun,NULL);
pthread_create(&t2,NULL,fun,NULL);
pthread_create(&t3,NULL,fun,NULL);
pthread_join(t1,NULL);
pthread_join(t2,NULL);
pthread_join(t3,NULL);
}
|
the_stack_data/37756.c
|
// [예제 2-2] 파일 생성
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
int main(void) {
// 파일 디스크립터는 정수형이다.
int fd;
mode_t mode;
// 모드를 살펴보면 사용자, 그룹, 기타 묶음으로
// 나뉘어져 있으며 3개의 비트 조합으로 이루어짐
// READ: 읽기, Write: 쓰기, Execute: 실행
mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH;
// OFLAG
// O_CREATE: 파일이 없다면 새로운 파일 생성
// O_EXCL: 파일이 있다면 오류 없다면 새롭게 생성
fd = open("unix.txt", O_CREAT | O_EXCL, mode);
if (fd == -1) {
perror("Creat");
exit(1);
}
// fd를 닫지 않고 계속 열어두면
// 파일디스크립터가 쌓이며
// 최대값이 존재하기 때문에
// 오류 발생 가능선 높음!
close(fd);
return 0;
}
|
the_stack_data/140764554.c
|
/* libc/posix/usleep.c - usleep function */
/* Written 2002 by Jeff Johnston */
#ifdef HAVE_NANOSLEEP
#include <errno.h>
#include <time.h>
#include <unistd.h>
int usleep(useconds_t useconds)
{
struct timespec ts;
ts.tv_sec = (long int)useconds / 1000000;
ts.tv_nsec = ((long int)useconds % 1000000) * 1000;
if (!nanosleep(&ts,&ts)) return 0;
if (errno == EINTR) return ts.tv_sec;
return -1;
}
#endif
|
the_stack_data/3263903.c
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
void Merge(int *a1,int n1,int *a2,int n2,int *r)
{int i1,i2,i;
for(i1=0,i2=0,i=0;i1<n1&&i2<n2;)
if(a1[i1]<a2[i2])
r[i++]=a1[i1++];
else
r[i++]=a2[i2++];
while(i1<n1)r[i++]=a1[i1++];
while(i2<n2)r[i++]=a2[i2++];
}
void MSort(int *m,int n,int *t)
{int n1,n2;
if(n<=1)return;
n1=n/2;n2=n-n1;
MSort(m,n1,t);
MSort(m+n1,n2,t);
Merge(m,n1,m+n1,n2,t);
memcpy(m,t,n*sizeof(int));
}
#define SWAP(a,b) {tt=(a); (a)=(b); (b)=tt;}
void BSort(int *m,int n)
{int i,j,tt;
for(i=n-1;i>0;i--)
for(j=0;j<i;j++)
if(m[j]>m[j+1])SWAP(m[j],m[j+1]);
}
void MSort2(int *m,int n,int *t)
{int i,k,k2,tt;
k=1;
{//m+i,k,m+i+k,k
for(i=0,k2=k;i+1<n;i+=2)
if(m[i]>m[i+1])SWAP(m[i],m[i+1]);
}
for(k=2;k<n;k*=2)
{//m+i,k,m+i+k,k
for(i=0,k2=k;i+k<n;i+=2*k)
{
if(n-i-k<k2)k2=n-i-k;
Merge(m+i,k,m+i+k,k2,t);
memcpy(m+i,t,(k+k2)*sizeof(int));
}
}
}
void MSortX(int *m,int n,int *t)
{int n1,n2,n3,n4;
if(n<=1)return;
n1=n/2;n3=n-n1;
n2=n1/2;n1=n1-n2;
n4=n3/2;n3=n3-n4;
#pragma omp parallel sections
{
#pragma omp section
{MSort(m,n1,t);}
#pragma omp section
{MSort(m+n1,n2,t+n1);}
#pragma omp section
{MSort(m+n1+n2,n3,t+n1+n2);}
#pragma omp section
{MSort(m+n1+n2+n3,n4,t+n1+n2+n3);}
}
#pragma omp parallel sections
{
#pragma omp section
{Merge(m,n1,m+n1,n2,t);memcpy(m,t,(n1+n2)*sizeof(int));}
#pragma omp section
{Merge(m+n1+n2,n3,m+n1+n2+n3,n4,t+n1+n2);memcpy(m+n1+n2,t+n1+n2,(n3+n4)*sizeof(int));}
}
Merge(m,n1+n2,m+n1+n2,n3+n4,t);
memcpy(m,t,n*sizeof(int));
}
void MSort2X(int *m,int n,int *t)
{int i,k,k2,tt;
k=1;
{//m+i,k,m+i+k,k
#pragma omp parallel for private(tt)
for(i=0;i<n-1;i+=2)
if(m[i]>m[i+1])SWAP(m[i],m[i+1]);
}
for(k=2;k<n;k*=2)
{//m+i,k,m+i+k,k
#pragma omp parallel for private(k2)
for(i=0;i<n-k;i+=2*k)
{
k2=k;
if(n-i-k<k2)k2=n-i-k;
Merge(m+i,k,m+i+k,k2,t+i);
memcpy(m+i,t+i,(k+k2)*sizeof(int));
}
}
}
#undef SWAP
#define SWAP(a,b,tt) {tt=(a); (a)=(b); (b)=tt;}
void QSort1(int *m,int p,int q)
{int i,j,tt;
if(p>=q)return;
i=p;j=q;//M=m[j], [p,i-1]<=M<=[j,q]
while(1)
{
while(m[i]<m[j])i++;//M=m[j], [p,i-1]<=M<=[j,q]
SWAP(m[i],m[j],tt);//M=m[i], [p,i]<=M<=[j,q]
j--;//M=m[i], [p,i]<=M<=[j+1,q]
if(i>=j)
{
//i==j:
// [p,j]<=M<=[j+1,q] OSTAVITb
//i==j+1: [p,j]<=M<=[j+1,q]
QSort1(m,p,j);QSort1(m,j+1,q);return;
}
while(m[i]<m[j])j--;//M=m[i], [p,i]<=M<=[j+1,q]
SWAP(m[i],m[j],tt);//M=m[j], [p,i]<=M<=[j,q]
i++;//M=m[j], [p,i-1]<=M<=[j,q]
if(i>=j)
{
//i==j (M=m[i]): [p,j]<=M<=[j+1,q]
//i==j+1:
//[p,j]<=M<=[j+1,q] OSTAVITb
QSort1(m,p,j);QSort1(m,j+1,q);return;
}
}
}
int QSort1_(int *m,int p,int q)
{int i,j,tt;
if(p>=q)return p;
i=p;j=q;//M=m[j], [p,i-1]<=M<=[j,q]
while(1)
{
while(m[i]<m[j])i++;//M=m[j], [p,i-1]<=M<=[j,q]
SWAP(m[i],m[j],tt);//M=m[i], [p,i]<=M<=[j,q]
j--;//M=m[i], [p,i]<=M<=[j+1,q]
if(i>=j)
{
//i==j:
// [p,j]<=M<=[j+1,q] OSTAVITb
//i==j+1: [p,j]<=M<=[j+1,q]
return j;
}
while(m[i]<m[j])j--;//M=m[i], [p,i]<=M<=[j+1,q]
SWAP(m[i],m[j],tt);//M=m[j], [p,i]<=M<=[j,q]
i++;//M=m[j], [p,i-1]<=M<=[j,q]
if(i>=j)
{
//i==j (M=m[i]): [p,j]<=M<=[j+1,q]
//i==j+1:
//[p,j]<=M<=[j+1,q] OSTAVITb
return j;
}
}
}
void QSort1X(int *m,int n)
{int j[9]={-1,0,0,0,0,0,0,0,n-1},i;//{j[k]+1,j[k]}
j[4]=QSort1_(m,0,n-1);
#pragma omp parallel sections
{
#pragma omp section
{j[2]=QSort1_(m,0,j[4]);}
#pragma omp section
{j[6]=QSort1_(m,j[4]+1,j[8]);}
}
#pragma omp parallel sections
{
#pragma omp section
{j[1]=QSort1_(m,0,j[2]);}
#pragma omp section
{j[3]=QSort1_(m,j[2]+1,j[4]);}
#pragma omp section
{j[5]=QSort1_(m,j[4]+1,j[6]);}
#pragma omp section
{j[7]=QSort1_(m,j[6]+1,j[8]);}
}
#pragma omp parallel for
for(i=0;i<8;i++)
QSort1(m,j[i]+1,j[i+1]);
}
void QSort2(int *m,int p,int q)
{int i,j,M,tt;
l1:
if(p>=q)return;
if(q-p>20)
{
i=p+rand()%(q-p+1);
SWAP(m[p],m[i],tt);
}
i=p;j=q;M=m[i];//[p,i-1]<=M<=[j+1,q]
while(1)
{
while(m[i]<M)i++;//[p,i-1]<=M<=[j+1,q]
while(M<m[j])j--;//[p,i-1]<=M<=[j+1,q]
if(i>=j)
{
//i==j (M=m[i]): [p,j]<=[j+1,q]
//i==j+1:
//[p,j]<=[j+1,q] OSTAVITb
if(q-j>j-p)
{
QSort2(m,p,j);
p=j+1;
goto l1;
}
else
{
QSort2(m,j+1,q);
q=j;
goto l1;
}
//return;
}
SWAP(m[i],m[j],tt);//[p,i]<=M<=[j,q]
i++;j--;//[p,i-1]<=M<=[j+1,q]
}
}
void QSort2X(int *m,int n)
{int j[9]={-1,0,0,0,0,0,0,0,n-1},i;//{j[k]+1,j[k]}
j[4]=QSort1_(m,0,n-1);
#pragma omp parallel sections
{
#pragma omp section
{j[2]=QSort1_(m,0,j[4]);}
#pragma omp section
{j[6]=QSort1_(m,j[4]+1,j[8]);}
}
#pragma omp parallel sections
{
#pragma omp section
{j[1]=QSort1_(m,0,j[2]);}
#pragma omp section
{j[3]=QSort1_(m,j[2]+1,j[4]);}
#pragma omp section
{j[5]=QSort1_(m,j[4]+1,j[6]);}
#pragma omp section
{j[7]=QSort1_(m,j[6]+1,j[8]);}
}
#pragma omp parallel for
for(i=0;i<8;i++)
QSort2(m,j[i]+1,j[i+1]);
}
#define c m[i]
#define l m[2*i+1]
#define r m[2*i+2]
#define HasR (2*i+2<n)
#define HasL (2*i+1<n)
void Heapify(int *m,int i,int n)
{int tt;
while(HasR)
{
if(c>=l&&c>=r)return;
if(l>r){SWAP(c,l,tt);i=2*i+1;}
else{SWAP(c,r,tt);i=2*i+2;}
}
if(HasL&&l>c)SWAP(l,c,tt);
}
#undef c
#undef l
#undef r
#undef HasR
#undef HasL
void HSort(int *m,int n)
{int i,tt;
for(i=n-1;i>=0;i--)Heapify(m,i,n);//
for(n--;n>0;n--){SWAP(m[0],m[n],tt);Heapify(m,0,n);}//
}
void CSort(int *m,int n,int *b,int B,int *r)
{int i;
memset(b,0,(B+1)*sizeof(int));
for(i=0;i<n;i++)b[m[i]]++;
for(i=1;i<=B;i++)b[i]+=b[i-1];
for(i=n-1;i>=0;i--)r[--b[m[i]]]=m[i];
}
void DSort(int *m_,int n,int *b,int B,int *r)
{int i;typedef union US2I_ {unsigned int i;unsigned short int s[2];}US2I;
US2I*m=(US2I*)m_;
memset(b,0,(B+1)*sizeof(int));
for(i=0;i<n;i++)b[m[i].s[0]]++;
for(i=1;i<=B;i++)b[i]+=b[i-1];
for(i=n-1;i>=0;i--)r[--b[m[i].s[0]]]=m[i].i;
//
memcpy(m,r,n*sizeof(int));
//
memset(b,0,(B+1)*sizeof(int));
for(i=0;i<n;i++)b[m[i].s[1]]++;
for(i=1;i<=B;i++)b[i]+=b[i-1];
for(i=n-1;i>=0;i--)r[--b[m[i].s[1]]]=m[i].i;
}
int main(void)
{int *a0=NULL,*a=NULL,*b=NULL,*t=NULL,*b_=NULL,n=1000*1000*10,N=1,i;time_t t0,t1;
a0=(int*)malloc(n*sizeof(int));
a=(int*)malloc(n*sizeof(int));
b=(int*)malloc(n*sizeof(int));
b_=(int*)malloc(n*sizeof(int));
t=(int*)malloc(n*sizeof(int));
for(i=0;i<n;i++)a0[i]=((rand()+(rand()<<15))%n)&(~(1<<31));//0...RAND_MAX
//--
if(0)
{
time(&t0);
for(i=0;i<N;i++)
{
memcpy(a,a0,n*sizeof(int));
BSort(a,n);
}
time(&t1);
printf("BSort:dtime=%d\n",(int)(t1-t0));
for(i=1;i<n;i++)if(a[i-1]>a[i])printf("Error1: i=%d\n",i);
}
//--
time(&t0);
for(i=0;i<N;i++)
{
memcpy(a,a0,n*sizeof(int));
MSort(a,n,t);
}
time(&t1);
printf("MSort:dtime=%d\n",(int)(t1-t0));
for(i=1;i<n;i++)if(a[i-1]>a[i])printf("Error1: i=%d\n",i);
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
MSort2(b,n,t);
}
time(&t1);
printf("MSort2:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("Error2: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
MSortX(b,n,t);
}
time(&t1);
printf("MSortX:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("ErrorX: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
MSort2X(b,n,t);
}
time(&t1);
printf("MSort2X:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("Error2X: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
QSort1(b,0,n-1);
}
time(&t1);
printf("QSort1:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("ErrorQ1: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
QSort1X(b,n);
}
time(&t1);
printf("QSort1X:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("ErrorQ1X: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
QSort2(b,0,n-1);
}
time(&t1);
printf("QSort2:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("ErrorQ2: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
QSort2X(b,n);
}
time(&t1);
printf("QSort2X:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("ErrorQ2X: i=%d\n",i);
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b,a0,n*sizeof(int));
HSort(b,n);
}
time(&t1);
printf("HSort:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i])printf("HSort: i=%d\n",i);
}
//--
if(0){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b_,a0,n*sizeof(int));
CSort(b_,n,t,1<<16,b);
}
time(&t1);
printf("CSort:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i]){printf("CSort: i=%d\n",i);break;}
}
//--
if(1){
time(&t0);
for(i=0;i<N;i++)
{
memcpy(b_,a0,n*sizeof(int));
DSort(b_,n,t,1<<16,b);
}
time(&t1);
printf("DSort:dtime=%d\n",(int)(t1-t0));
for(i=0;i<n;i++)if(b[i]!=a[i]){printf("DSort: i=%d\n",i);break;}
}
//--
free(a);a=NULL;free(a0);a0=NULL;free(b);b=NULL;free(t);t=NULL;free(b_);b_=NULL;
printf("done\n");
return 0;
}
|
the_stack_data/119629.c
|
#include <stdio.h>
int main ()
{
long long int a,b;
scanf("%lld %lld",&a,&b);
printf("%lld\n",a+b);
printf("%lld\n",a-b);
printf("%lld\n",a*b);
printf("%lld\n",a/b);
printf("%lld\n",a%b);
printf("%.2f\n",(float)a/b);
return 0;
}
|
the_stack_data/11398.c
|
//@ ltl invariant negative: ( ([] ( (<> ( ( AP((gate_l1 != 0)) && (! AP((gate_l0 != 0)))) && ( (X AP((gate_l1 != 0))) && (X AP((gate_l0 != 0)))))) || (! ( ( (! AP((gate_l0 != 0))) && (! AP((gate_l1 != 0)))) && ( (! (X AP((gate_l1 != 0)))) && (X AP((gate_l0 != 0)))))))) || (! ([] (<> AP((1.0 <= _diverge_delta))))));
extern float __VERIFIER_nondet_float(void);
extern int __VERIFIER_nondet_int(void);
char __VERIFIER_nondet_bool(void) {
return __VERIFIER_nondet_int() != 0;
}
float _diverge_delta, _x__diverge_delta;
char t27_evt1, _x_t27_evt1;
char t27_evt0, _x_t27_evt0;
float t27_x, _x_t27_x;
char t26_evt1, _x_t26_evt1;
char t26_evt0, _x_t26_evt0;
float t26_x, _x_t26_x;
char t25_evt1, _x_t25_evt1;
char t25_evt0, _x_t25_evt0;
float t25_x, _x_t25_x;
char t24_l1, _x_t24_l1;
char t24_evt1, _x_t24_evt1;
char t24_evt0, _x_t24_evt0;
float t24_x, _x_t24_x;
char t22_l1, _x_t22_l1;
char t8_l1, _x_t8_l1;
char t8_l0, _x_t8_l0;
float t9_x, _x_t9_x;
char controller_evt0, _x_controller_evt0;
char t8_evt0, _x_t8_evt0;
char t6_l0, _x_t6_l0;
char t6_evt0, _x_t6_evt0;
char t5_l1, _x_t5_l1;
char t5_l0, _x_t5_l0;
float t6_x, _x_t6_x;
char t5_evt0, _x_t5_evt0;
char t4_l1, _x_t4_l1;
char t4_l0, _x_t4_l0;
float t5_x, _x_t5_x;
char t4_evt0, _x_t4_evt0;
char t3_l1, _x_t3_l1;
char t3_l0, _x_t3_l0;
float t4_x, _x_t4_x;
char t7_l1, _x_t7_l1;
char controller_evt2, _x_controller_evt2;
char t2_l1, _x_t2_l1;
char t7_evt0, _x_t7_evt0;
char t23_evt1, _x_t23_evt1;
char gate_evt1, _x_gate_evt1;
float t14_x, _x_t14_x;
char t26_l1, _x_t26_l1;
float t1_x, _x_t1_x;
char t22_evt0, _x_t22_evt0;
char t7_l0, _x_t7_l0;
char controller_evt1, _x_controller_evt1;
char t2_l0, _x_t2_l0;
char t2_evt0, _x_t2_evt0;
char t1_l1, _x_t1_l1;
float t7_x, _x_t7_x;
char t1_l0, _x_t1_l0;
char t23_evt0, _x_t23_evt0;
char gate_evt0, _x_gate_evt0;
char t19_evt1, _x_t19_evt1;
char t0_evt0, _x_t0_evt0;
float t8_x, _x_t8_x;
char controller_l1, _x_controller_l1;
char t24_l0, _x_t24_l0;
char t9_evt1, _x_t9_evt1;
float t23_x, _x_t23_x;
float gate_y, _x_gate_y;
char t12_l0, _x_t12_l0;
char t23_l1, _x_t23_l1;
char gate_l1, _x_gate_l1;
char t14_evt0, _x_t14_evt0;
char t6_l1, _x_t6_l1;
char controller_l0, _x_controller_l0;
char t9_evt0, _x_t9_evt0;
char t23_l0, _x_t23_l0;
char t8_evt1, _x_t8_evt1;
char gate_l0, _x_gate_l0;
char t19_l1, _x_t19_l1;
char t0_l0, _x_t0_l0;
char t25_l1, _x_t25_l1;
float t0_x, _x_t0_x;
float delta, _x_delta;
float t15_x, _x_t15_x;
char t0_l1, _x_t0_l1;
char t7_evt1, _x_t7_evt1;
char t22_l0, _x_t22_l0;
char t1_evt0, _x_t1_evt0;
char t27_l1, _x_t27_l1;
float t2_x, _x_t2_x;
char t3_evt0, _x_t3_evt0;
float t3_x, _x_t3_x;
char t9_l0, _x_t9_l0;
char t9_l1, _x_t9_l1;
float t10_x, _x_t10_x;
char t10_evt0, _x_t10_evt0;
char t25_l0, _x_t25_l0;
char t10_evt1, _x_t10_evt1;
char t10_l0, _x_t10_l0;
char t10_l1, _x_t10_l1;
float t11_x, _x_t11_x;
char t11_evt0, _x_t11_evt0;
char t26_l0, _x_t26_l0;
char t11_evt1, _x_t11_evt1;
char t11_l0, _x_t11_l0;
char t11_l1, _x_t11_l1;
float t12_x, _x_t12_x;
char t12_evt0, _x_t12_evt0;
char t27_l0, _x_t27_l0;
char t12_evt1, _x_t12_evt1;
char t12_l1, _x_t12_l1;
float t13_x, _x_t13_x;
char t13_evt0, _x_t13_evt0;
char t13_evt1, _x_t13_evt1;
char t13_l0, _x_t13_l0;
char t13_l1, _x_t13_l1;
char t14_evt1, _x_t14_evt1;
char t14_l0, _x_t14_l0;
char t14_l1, _x_t14_l1;
char t15_evt0, _x_t15_evt0;
char t15_evt1, _x_t15_evt1;
char t0_evt1, _x_t0_evt1;
char t15_l0, _x_t15_l0;
char t15_l1, _x_t15_l1;
float t16_x, _x_t16_x;
char t16_evt0, _x_t16_evt0;
char t16_evt1, _x_t16_evt1;
char t1_evt1, _x_t1_evt1;
char t16_l0, _x_t16_l0;
char t16_l1, _x_t16_l1;
float t17_x, _x_t17_x;
float controller_z, _x_controller_z;
char t17_evt0, _x_t17_evt0;
int controller_cnt, _x_controller_cnt;
char t17_evt1, _x_t17_evt1;
char t2_evt1, _x_t2_evt1;
char t17_l0, _x_t17_l0;
char t17_l1, _x_t17_l1;
float t18_x, _x_t18_x;
char t18_evt0, _x_t18_evt0;
char t18_evt1, _x_t18_evt1;
char t3_evt1, _x_t3_evt1;
char t18_l0, _x_t18_l0;
char t18_l1, _x_t18_l1;
float t19_x, _x_t19_x;
char t19_evt0, _x_t19_evt0;
char t4_evt1, _x_t4_evt1;
char t19_l0, _x_t19_l0;
float t20_x, _x_t20_x;
char t20_evt0, _x_t20_evt0;
char t20_evt1, _x_t20_evt1;
char t5_evt1, _x_t5_evt1;
char t20_l0, _x_t20_l0;
char t20_l1, _x_t20_l1;
float t21_x, _x_t21_x;
char t21_evt0, _x_t21_evt0;
char t21_evt1, _x_t21_evt1;
char t6_evt1, _x_t6_evt1;
char t21_l0, _x_t21_l0;
char t21_l1, _x_t21_l1;
float t22_x, _x_t22_x;
char t22_evt1, _x_t22_evt1;
int main()
{
_diverge_delta = __VERIFIER_nondet_float();
t27_evt1 = __VERIFIER_nondet_bool();
t27_evt0 = __VERIFIER_nondet_bool();
t27_x = __VERIFIER_nondet_float();
t26_evt1 = __VERIFIER_nondet_bool();
t26_evt0 = __VERIFIER_nondet_bool();
t26_x = __VERIFIER_nondet_float();
t25_evt1 = __VERIFIER_nondet_bool();
t25_evt0 = __VERIFIER_nondet_bool();
t25_x = __VERIFIER_nondet_float();
t24_l1 = __VERIFIER_nondet_bool();
t24_evt1 = __VERIFIER_nondet_bool();
t24_evt0 = __VERIFIER_nondet_bool();
t24_x = __VERIFIER_nondet_float();
t22_l1 = __VERIFIER_nondet_bool();
t8_l1 = __VERIFIER_nondet_bool();
t8_l0 = __VERIFIER_nondet_bool();
t9_x = __VERIFIER_nondet_float();
controller_evt0 = __VERIFIER_nondet_bool();
t8_evt0 = __VERIFIER_nondet_bool();
t6_l0 = __VERIFIER_nondet_bool();
t6_evt0 = __VERIFIER_nondet_bool();
t5_l1 = __VERIFIER_nondet_bool();
t5_l0 = __VERIFIER_nondet_bool();
t6_x = __VERIFIER_nondet_float();
t5_evt0 = __VERIFIER_nondet_bool();
t4_l1 = __VERIFIER_nondet_bool();
t4_l0 = __VERIFIER_nondet_bool();
t5_x = __VERIFIER_nondet_float();
t4_evt0 = __VERIFIER_nondet_bool();
t3_l1 = __VERIFIER_nondet_bool();
t3_l0 = __VERIFIER_nondet_bool();
t4_x = __VERIFIER_nondet_float();
t7_l1 = __VERIFIER_nondet_bool();
controller_evt2 = __VERIFIER_nondet_bool();
t2_l1 = __VERIFIER_nondet_bool();
t7_evt0 = __VERIFIER_nondet_bool();
t23_evt1 = __VERIFIER_nondet_bool();
gate_evt1 = __VERIFIER_nondet_bool();
t14_x = __VERIFIER_nondet_float();
t26_l1 = __VERIFIER_nondet_bool();
t1_x = __VERIFIER_nondet_float();
t22_evt0 = __VERIFIER_nondet_bool();
t7_l0 = __VERIFIER_nondet_bool();
controller_evt1 = __VERIFIER_nondet_bool();
t2_l0 = __VERIFIER_nondet_bool();
t2_evt0 = __VERIFIER_nondet_bool();
t1_l1 = __VERIFIER_nondet_bool();
t7_x = __VERIFIER_nondet_float();
t1_l0 = __VERIFIER_nondet_bool();
t23_evt0 = __VERIFIER_nondet_bool();
gate_evt0 = __VERIFIER_nondet_bool();
t19_evt1 = __VERIFIER_nondet_bool();
t0_evt0 = __VERIFIER_nondet_bool();
t8_x = __VERIFIER_nondet_float();
controller_l1 = __VERIFIER_nondet_bool();
t24_l0 = __VERIFIER_nondet_bool();
t9_evt1 = __VERIFIER_nondet_bool();
t23_x = __VERIFIER_nondet_float();
gate_y = __VERIFIER_nondet_float();
t12_l0 = __VERIFIER_nondet_bool();
t23_l1 = __VERIFIER_nondet_bool();
gate_l1 = __VERIFIER_nondet_bool();
t14_evt0 = __VERIFIER_nondet_bool();
t6_l1 = __VERIFIER_nondet_bool();
controller_l0 = __VERIFIER_nondet_bool();
t9_evt0 = __VERIFIER_nondet_bool();
t23_l0 = __VERIFIER_nondet_bool();
t8_evt1 = __VERIFIER_nondet_bool();
gate_l0 = __VERIFIER_nondet_bool();
t19_l1 = __VERIFIER_nondet_bool();
t0_l0 = __VERIFIER_nondet_bool();
t25_l1 = __VERIFIER_nondet_bool();
t0_x = __VERIFIER_nondet_float();
delta = __VERIFIER_nondet_float();
t15_x = __VERIFIER_nondet_float();
t0_l1 = __VERIFIER_nondet_bool();
t7_evt1 = __VERIFIER_nondet_bool();
t22_l0 = __VERIFIER_nondet_bool();
t1_evt0 = __VERIFIER_nondet_bool();
t27_l1 = __VERIFIER_nondet_bool();
t2_x = __VERIFIER_nondet_float();
t3_evt0 = __VERIFIER_nondet_bool();
t3_x = __VERIFIER_nondet_float();
t9_l0 = __VERIFIER_nondet_bool();
t9_l1 = __VERIFIER_nondet_bool();
t10_x = __VERIFIER_nondet_float();
t10_evt0 = __VERIFIER_nondet_bool();
t25_l0 = __VERIFIER_nondet_bool();
t10_evt1 = __VERIFIER_nondet_bool();
t10_l0 = __VERIFIER_nondet_bool();
t10_l1 = __VERIFIER_nondet_bool();
t11_x = __VERIFIER_nondet_float();
t11_evt0 = __VERIFIER_nondet_bool();
t26_l0 = __VERIFIER_nondet_bool();
t11_evt1 = __VERIFIER_nondet_bool();
t11_l0 = __VERIFIER_nondet_bool();
t11_l1 = __VERIFIER_nondet_bool();
t12_x = __VERIFIER_nondet_float();
t12_evt0 = __VERIFIER_nondet_bool();
t27_l0 = __VERIFIER_nondet_bool();
t12_evt1 = __VERIFIER_nondet_bool();
t12_l1 = __VERIFIER_nondet_bool();
t13_x = __VERIFIER_nondet_float();
t13_evt0 = __VERIFIER_nondet_bool();
t13_evt1 = __VERIFIER_nondet_bool();
t13_l0 = __VERIFIER_nondet_bool();
t13_l1 = __VERIFIER_nondet_bool();
t14_evt1 = __VERIFIER_nondet_bool();
t14_l0 = __VERIFIER_nondet_bool();
t14_l1 = __VERIFIER_nondet_bool();
t15_evt0 = __VERIFIER_nondet_bool();
t15_evt1 = __VERIFIER_nondet_bool();
t0_evt1 = __VERIFIER_nondet_bool();
t15_l0 = __VERIFIER_nondet_bool();
t15_l1 = __VERIFIER_nondet_bool();
t16_x = __VERIFIER_nondet_float();
t16_evt0 = __VERIFIER_nondet_bool();
t16_evt1 = __VERIFIER_nondet_bool();
t1_evt1 = __VERIFIER_nondet_bool();
t16_l0 = __VERIFIER_nondet_bool();
t16_l1 = __VERIFIER_nondet_bool();
t17_x = __VERIFIER_nondet_float();
controller_z = __VERIFIER_nondet_float();
t17_evt0 = __VERIFIER_nondet_bool();
controller_cnt = __VERIFIER_nondet_int();
t17_evt1 = __VERIFIER_nondet_bool();
t2_evt1 = __VERIFIER_nondet_bool();
t17_l0 = __VERIFIER_nondet_bool();
t17_l1 = __VERIFIER_nondet_bool();
t18_x = __VERIFIER_nondet_float();
t18_evt0 = __VERIFIER_nondet_bool();
t18_evt1 = __VERIFIER_nondet_bool();
t3_evt1 = __VERIFIER_nondet_bool();
t18_l0 = __VERIFIER_nondet_bool();
t18_l1 = __VERIFIER_nondet_bool();
t19_x = __VERIFIER_nondet_float();
t19_evt0 = __VERIFIER_nondet_bool();
t4_evt1 = __VERIFIER_nondet_bool();
t19_l0 = __VERIFIER_nondet_bool();
t20_x = __VERIFIER_nondet_float();
t20_evt0 = __VERIFIER_nondet_bool();
t20_evt1 = __VERIFIER_nondet_bool();
t5_evt1 = __VERIFIER_nondet_bool();
t20_l0 = __VERIFIER_nondet_bool();
t20_l1 = __VERIFIER_nondet_bool();
t21_x = __VERIFIER_nondet_float();
t21_evt0 = __VERIFIER_nondet_bool();
t21_evt1 = __VERIFIER_nondet_bool();
t6_evt1 = __VERIFIER_nondet_bool();
t21_l0 = __VERIFIER_nondet_bool();
t21_l1 = __VERIFIER_nondet_bool();
t22_x = __VERIFIER_nondet_float();
t22_evt1 = __VERIFIER_nondet_bool();
int __ok = (((((((( !(t27_l0 != 0)) && ( !(t27_l1 != 0))) && (t27_x == 0.0)) && (((( !(t27_l0 != 0)) && ( !(t27_l1 != 0))) || ((t27_l0 != 0) && ( !(t27_l1 != 0)))) || (((t27_l1 != 0) && ( !(t27_l0 != 0))) || ((t27_l0 != 0) && (t27_l1 != 0))))) && (((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ((t27_evt0 != 0) && ( !(t27_evt1 != 0)))) || (((t27_evt1 != 0) && ( !(t27_evt0 != 0))) || ((t27_evt0 != 0) && (t27_evt1 != 0))))) && ((( !(t27_l0 != 0)) && ( !(t27_l1 != 0))) || (t27_x <= 5.0))) && ((((((( !(t26_l0 != 0)) && ( !(t26_l1 != 0))) && (t26_x == 0.0)) && (((( !(t26_l0 != 0)) && ( !(t26_l1 != 0))) || ((t26_l0 != 0) && ( !(t26_l1 != 0)))) || (((t26_l1 != 0) && ( !(t26_l0 != 0))) || ((t26_l0 != 0) && (t26_l1 != 0))))) && (((( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))) || ((t26_evt0 != 0) && ( !(t26_evt1 != 0)))) || (((t26_evt1 != 0) && ( !(t26_evt0 != 0))) || ((t26_evt0 != 0) && (t26_evt1 != 0))))) && ((( !(t26_l0 != 0)) && ( !(t26_l1 != 0))) || (t26_x <= 5.0))) && ((((((( !(t25_l0 != 0)) && ( !(t25_l1 != 0))) && (t25_x == 0.0)) && (((( !(t25_l0 != 0)) && ( !(t25_l1 != 0))) || ((t25_l0 != 0) && ( !(t25_l1 != 0)))) || (((t25_l1 != 0) && ( !(t25_l0 != 0))) || ((t25_l0 != 0) && (t25_l1 != 0))))) && (((( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))) || ((t25_evt0 != 0) && ( !(t25_evt1 != 0)))) || (((t25_evt1 != 0) && ( !(t25_evt0 != 0))) || ((t25_evt0 != 0) && (t25_evt1 != 0))))) && ((( !(t25_l0 != 0)) && ( !(t25_l1 != 0))) || (t25_x <= 5.0))) && ((((((( !(t24_l0 != 0)) && ( !(t24_l1 != 0))) && (t24_x == 0.0)) && (((( !(t24_l0 != 0)) && ( !(t24_l1 != 0))) || ((t24_l0 != 0) && ( !(t24_l1 != 0)))) || (((t24_l1 != 0) && ( !(t24_l0 != 0))) || ((t24_l0 != 0) && (t24_l1 != 0))))) && (((( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))) || ((t24_evt0 != 0) && ( !(t24_evt1 != 0)))) || (((t24_evt1 != 0) && ( !(t24_evt0 != 0))) || ((t24_evt0 != 0) && (t24_evt1 != 0))))) && ((( !(t24_l0 != 0)) && ( !(t24_l1 != 0))) || (t24_x <= 5.0))) && ((((((( !(t23_l0 != 0)) && ( !(t23_l1 != 0))) && (t23_x == 0.0)) && (((( !(t23_l0 != 0)) && ( !(t23_l1 != 0))) || ((t23_l0 != 0) && ( !(t23_l1 != 0)))) || (((t23_l1 != 0) && ( !(t23_l0 != 0))) || ((t23_l0 != 0) && (t23_l1 != 0))))) && (((( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))) || ((t23_evt0 != 0) && ( !(t23_evt1 != 0)))) || (((t23_evt1 != 0) && ( !(t23_evt0 != 0))) || ((t23_evt0 != 0) && (t23_evt1 != 0))))) && ((( !(t23_l0 != 0)) && ( !(t23_l1 != 0))) || (t23_x <= 5.0))) && ((((((( !(t22_l0 != 0)) && ( !(t22_l1 != 0))) && (t22_x == 0.0)) && (((( !(t22_l0 != 0)) && ( !(t22_l1 != 0))) || ((t22_l0 != 0) && ( !(t22_l1 != 0)))) || (((t22_l1 != 0) && ( !(t22_l0 != 0))) || ((t22_l0 != 0) && (t22_l1 != 0))))) && (((( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))) || ((t22_evt0 != 0) && ( !(t22_evt1 != 0)))) || (((t22_evt1 != 0) && ( !(t22_evt0 != 0))) || ((t22_evt0 != 0) && (t22_evt1 != 0))))) && ((( !(t22_l0 != 0)) && ( !(t22_l1 != 0))) || (t22_x <= 5.0))) && ((((((( !(t21_l0 != 0)) && ( !(t21_l1 != 0))) && (t21_x == 0.0)) && (((( !(t21_l0 != 0)) && ( !(t21_l1 != 0))) || ((t21_l0 != 0) && ( !(t21_l1 != 0)))) || (((t21_l1 != 0) && ( !(t21_l0 != 0))) || ((t21_l0 != 0) && (t21_l1 != 0))))) && (((( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))) || ((t21_evt0 != 0) && ( !(t21_evt1 != 0)))) || (((t21_evt1 != 0) && ( !(t21_evt0 != 0))) || ((t21_evt0 != 0) && (t21_evt1 != 0))))) && ((( !(t21_l0 != 0)) && ( !(t21_l1 != 0))) || (t21_x <= 5.0))) && ((((((( !(t20_l0 != 0)) && ( !(t20_l1 != 0))) && (t20_x == 0.0)) && (((( !(t20_l0 != 0)) && ( !(t20_l1 != 0))) || ((t20_l0 != 0) && ( !(t20_l1 != 0)))) || (((t20_l1 != 0) && ( !(t20_l0 != 0))) || ((t20_l0 != 0) && (t20_l1 != 0))))) && (((( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))) || ((t20_evt0 != 0) && ( !(t20_evt1 != 0)))) || (((t20_evt1 != 0) && ( !(t20_evt0 != 0))) || ((t20_evt0 != 0) && (t20_evt1 != 0))))) && ((( !(t20_l0 != 0)) && ( !(t20_l1 != 0))) || (t20_x <= 5.0))) && ((((((( !(t19_l0 != 0)) && ( !(t19_l1 != 0))) && (t19_x == 0.0)) && (((( !(t19_l0 != 0)) && ( !(t19_l1 != 0))) || ((t19_l0 != 0) && ( !(t19_l1 != 0)))) || (((t19_l1 != 0) && ( !(t19_l0 != 0))) || ((t19_l0 != 0) && (t19_l1 != 0))))) && (((( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))) || ((t19_evt0 != 0) && ( !(t19_evt1 != 0)))) || (((t19_evt1 != 0) && ( !(t19_evt0 != 0))) || ((t19_evt0 != 0) && (t19_evt1 != 0))))) && ((( !(t19_l0 != 0)) && ( !(t19_l1 != 0))) || (t19_x <= 5.0))) && ((((((( !(t18_l0 != 0)) && ( !(t18_l1 != 0))) && (t18_x == 0.0)) && (((( !(t18_l0 != 0)) && ( !(t18_l1 != 0))) || ((t18_l0 != 0) && ( !(t18_l1 != 0)))) || (((t18_l1 != 0) && ( !(t18_l0 != 0))) || ((t18_l0 != 0) && (t18_l1 != 0))))) && (((( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))) || ((t18_evt0 != 0) && ( !(t18_evt1 != 0)))) || (((t18_evt1 != 0) && ( !(t18_evt0 != 0))) || ((t18_evt0 != 0) && (t18_evt1 != 0))))) && ((( !(t18_l0 != 0)) && ( !(t18_l1 != 0))) || (t18_x <= 5.0))) && ((((((( !(t17_l0 != 0)) && ( !(t17_l1 != 0))) && (t17_x == 0.0)) && (((( !(t17_l0 != 0)) && ( !(t17_l1 != 0))) || ((t17_l0 != 0) && ( !(t17_l1 != 0)))) || (((t17_l1 != 0) && ( !(t17_l0 != 0))) || ((t17_l0 != 0) && (t17_l1 != 0))))) && (((( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))) || ((t17_evt0 != 0) && ( !(t17_evt1 != 0)))) || (((t17_evt1 != 0) && ( !(t17_evt0 != 0))) || ((t17_evt0 != 0) && (t17_evt1 != 0))))) && ((( !(t17_l0 != 0)) && ( !(t17_l1 != 0))) || (t17_x <= 5.0))) && ((((((( !(t16_l0 != 0)) && ( !(t16_l1 != 0))) && (t16_x == 0.0)) && (((( !(t16_l0 != 0)) && ( !(t16_l1 != 0))) || ((t16_l0 != 0) && ( !(t16_l1 != 0)))) || (((t16_l1 != 0) && ( !(t16_l0 != 0))) || ((t16_l0 != 0) && (t16_l1 != 0))))) && (((( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))) || ((t16_evt0 != 0) && ( !(t16_evt1 != 0)))) || (((t16_evt1 != 0) && ( !(t16_evt0 != 0))) || ((t16_evt0 != 0) && (t16_evt1 != 0))))) && ((( !(t16_l0 != 0)) && ( !(t16_l1 != 0))) || (t16_x <= 5.0))) && ((((((( !(t15_l0 != 0)) && ( !(t15_l1 != 0))) && (t15_x == 0.0)) && (((( !(t15_l0 != 0)) && ( !(t15_l1 != 0))) || ((t15_l0 != 0) && ( !(t15_l1 != 0)))) || (((t15_l1 != 0) && ( !(t15_l0 != 0))) || ((t15_l0 != 0) && (t15_l1 != 0))))) && (((( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))) || ((t15_evt0 != 0) && ( !(t15_evt1 != 0)))) || (((t15_evt1 != 0) && ( !(t15_evt0 != 0))) || ((t15_evt0 != 0) && (t15_evt1 != 0))))) && ((( !(t15_l0 != 0)) && ( !(t15_l1 != 0))) || (t15_x <= 5.0))) && ((((((( !(t14_l0 != 0)) && ( !(t14_l1 != 0))) && (t14_x == 0.0)) && (((( !(t14_l0 != 0)) && ( !(t14_l1 != 0))) || ((t14_l0 != 0) && ( !(t14_l1 != 0)))) || (((t14_l1 != 0) && ( !(t14_l0 != 0))) || ((t14_l0 != 0) && (t14_l1 != 0))))) && (((( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))) || ((t14_evt0 != 0) && ( !(t14_evt1 != 0)))) || (((t14_evt1 != 0) && ( !(t14_evt0 != 0))) || ((t14_evt0 != 0) && (t14_evt1 != 0))))) && ((( !(t14_l0 != 0)) && ( !(t14_l1 != 0))) || (t14_x <= 5.0))) && ((((((( !(t13_l0 != 0)) && ( !(t13_l1 != 0))) && (t13_x == 0.0)) && (((( !(t13_l0 != 0)) && ( !(t13_l1 != 0))) || ((t13_l0 != 0) && ( !(t13_l1 != 0)))) || (((t13_l1 != 0) && ( !(t13_l0 != 0))) || ((t13_l0 != 0) && (t13_l1 != 0))))) && (((( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))) || ((t13_evt0 != 0) && ( !(t13_evt1 != 0)))) || (((t13_evt1 != 0) && ( !(t13_evt0 != 0))) || ((t13_evt0 != 0) && (t13_evt1 != 0))))) && ((( !(t13_l0 != 0)) && ( !(t13_l1 != 0))) || (t13_x <= 5.0))) && ((((((( !(t12_l0 != 0)) && ( !(t12_l1 != 0))) && (t12_x == 0.0)) && (((( !(t12_l0 != 0)) && ( !(t12_l1 != 0))) || ((t12_l0 != 0) && ( !(t12_l1 != 0)))) || (((t12_l1 != 0) && ( !(t12_l0 != 0))) || ((t12_l0 != 0) && (t12_l1 != 0))))) && (((( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))) || ((t12_evt0 != 0) && ( !(t12_evt1 != 0)))) || (((t12_evt1 != 0) && ( !(t12_evt0 != 0))) || ((t12_evt0 != 0) && (t12_evt1 != 0))))) && ((( !(t12_l0 != 0)) && ( !(t12_l1 != 0))) || (t12_x <= 5.0))) && ((((((( !(t11_l0 != 0)) && ( !(t11_l1 != 0))) && (t11_x == 0.0)) && (((( !(t11_l0 != 0)) && ( !(t11_l1 != 0))) || ((t11_l0 != 0) && ( !(t11_l1 != 0)))) || (((t11_l1 != 0) && ( !(t11_l0 != 0))) || ((t11_l0 != 0) && (t11_l1 != 0))))) && (((( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))) || ((t11_evt0 != 0) && ( !(t11_evt1 != 0)))) || (((t11_evt1 != 0) && ( !(t11_evt0 != 0))) || ((t11_evt0 != 0) && (t11_evt1 != 0))))) && ((( !(t11_l0 != 0)) && ( !(t11_l1 != 0))) || (t11_x <= 5.0))) && ((((((( !(t10_l0 != 0)) && ( !(t10_l1 != 0))) && (t10_x == 0.0)) && (((( !(t10_l0 != 0)) && ( !(t10_l1 != 0))) || ((t10_l0 != 0) && ( !(t10_l1 != 0)))) || (((t10_l1 != 0) && ( !(t10_l0 != 0))) || ((t10_l0 != 0) && (t10_l1 != 0))))) && (((( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))) || ((t10_evt0 != 0) && ( !(t10_evt1 != 0)))) || (((t10_evt1 != 0) && ( !(t10_evt0 != 0))) || ((t10_evt0 != 0) && (t10_evt1 != 0))))) && ((( !(t10_l0 != 0)) && ( !(t10_l1 != 0))) || (t10_x <= 5.0))) && ((((((( !(t9_l0 != 0)) && ( !(t9_l1 != 0))) && (t9_x == 0.0)) && (((( !(t9_l0 != 0)) && ( !(t9_l1 != 0))) || ((t9_l0 != 0) && ( !(t9_l1 != 0)))) || (((t9_l1 != 0) && ( !(t9_l0 != 0))) || ((t9_l0 != 0) && (t9_l1 != 0))))) && (((( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))) || ((t9_evt0 != 0) && ( !(t9_evt1 != 0)))) || (((t9_evt1 != 0) && ( !(t9_evt0 != 0))) || ((t9_evt0 != 0) && (t9_evt1 != 0))))) && ((( !(t9_l0 != 0)) && ( !(t9_l1 != 0))) || (t9_x <= 5.0))) && ((((((( !(t8_l0 != 0)) && ( !(t8_l1 != 0))) && (t8_x == 0.0)) && (((( !(t8_l0 != 0)) && ( !(t8_l1 != 0))) || ((t8_l0 != 0) && ( !(t8_l1 != 0)))) || (((t8_l1 != 0) && ( !(t8_l0 != 0))) || ((t8_l0 != 0) && (t8_l1 != 0))))) && (((( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))) || ((t8_evt0 != 0) && ( !(t8_evt1 != 0)))) || (((t8_evt1 != 0) && ( !(t8_evt0 != 0))) || ((t8_evt0 != 0) && (t8_evt1 != 0))))) && ((( !(t8_l0 != 0)) && ( !(t8_l1 != 0))) || (t8_x <= 5.0))) && ((((((( !(t7_l0 != 0)) && ( !(t7_l1 != 0))) && (t7_x == 0.0)) && (((( !(t7_l0 != 0)) && ( !(t7_l1 != 0))) || ((t7_l0 != 0) && ( !(t7_l1 != 0)))) || (((t7_l1 != 0) && ( !(t7_l0 != 0))) || ((t7_l0 != 0) && (t7_l1 != 0))))) && (((( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))) || ((t7_evt0 != 0) && ( !(t7_evt1 != 0)))) || (((t7_evt1 != 0) && ( !(t7_evt0 != 0))) || ((t7_evt0 != 0) && (t7_evt1 != 0))))) && ((( !(t7_l0 != 0)) && ( !(t7_l1 != 0))) || (t7_x <= 5.0))) && ((((((( !(t6_l0 != 0)) && ( !(t6_l1 != 0))) && (t6_x == 0.0)) && (((( !(t6_l0 != 0)) && ( !(t6_l1 != 0))) || ((t6_l0 != 0) && ( !(t6_l1 != 0)))) || (((t6_l1 != 0) && ( !(t6_l0 != 0))) || ((t6_l0 != 0) && (t6_l1 != 0))))) && (((( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))) || ((t6_evt0 != 0) && ( !(t6_evt1 != 0)))) || (((t6_evt1 != 0) && ( !(t6_evt0 != 0))) || ((t6_evt0 != 0) && (t6_evt1 != 0))))) && ((( !(t6_l0 != 0)) && ( !(t6_l1 != 0))) || (t6_x <= 5.0))) && ((((((( !(t5_l0 != 0)) && ( !(t5_l1 != 0))) && (t5_x == 0.0)) && (((( !(t5_l0 != 0)) && ( !(t5_l1 != 0))) || ((t5_l0 != 0) && ( !(t5_l1 != 0)))) || (((t5_l1 != 0) && ( !(t5_l0 != 0))) || ((t5_l0 != 0) && (t5_l1 != 0))))) && (((( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))) || ((t5_evt0 != 0) && ( !(t5_evt1 != 0)))) || (((t5_evt1 != 0) && ( !(t5_evt0 != 0))) || ((t5_evt0 != 0) && (t5_evt1 != 0))))) && ((( !(t5_l0 != 0)) && ( !(t5_l1 != 0))) || (t5_x <= 5.0))) && ((((((( !(t4_l0 != 0)) && ( !(t4_l1 != 0))) && (t4_x == 0.0)) && (((( !(t4_l0 != 0)) && ( !(t4_l1 != 0))) || ((t4_l0 != 0) && ( !(t4_l1 != 0)))) || (((t4_l1 != 0) && ( !(t4_l0 != 0))) || ((t4_l0 != 0) && (t4_l1 != 0))))) && (((( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))) || ((t4_evt0 != 0) && ( !(t4_evt1 != 0)))) || (((t4_evt1 != 0) && ( !(t4_evt0 != 0))) || ((t4_evt0 != 0) && (t4_evt1 != 0))))) && ((( !(t4_l0 != 0)) && ( !(t4_l1 != 0))) || (t4_x <= 5.0))) && ((((((( !(t3_l0 != 0)) && ( !(t3_l1 != 0))) && (t3_x == 0.0)) && (((( !(t3_l0 != 0)) && ( !(t3_l1 != 0))) || ((t3_l0 != 0) && ( !(t3_l1 != 0)))) || (((t3_l1 != 0) && ( !(t3_l0 != 0))) || ((t3_l0 != 0) && (t3_l1 != 0))))) && (((( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))) || ((t3_evt0 != 0) && ( !(t3_evt1 != 0)))) || (((t3_evt1 != 0) && ( !(t3_evt0 != 0))) || ((t3_evt0 != 0) && (t3_evt1 != 0))))) && ((( !(t3_l0 != 0)) && ( !(t3_l1 != 0))) || (t3_x <= 5.0))) && ((((((( !(t2_l0 != 0)) && ( !(t2_l1 != 0))) && (t2_x == 0.0)) && (((( !(t2_l0 != 0)) && ( !(t2_l1 != 0))) || ((t2_l0 != 0) && ( !(t2_l1 != 0)))) || (((t2_l1 != 0) && ( !(t2_l0 != 0))) || ((t2_l0 != 0) && (t2_l1 != 0))))) && (((( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))) || ((t2_evt0 != 0) && ( !(t2_evt1 != 0)))) || (((t2_evt1 != 0) && ( !(t2_evt0 != 0))) || ((t2_evt0 != 0) && (t2_evt1 != 0))))) && ((( !(t2_l0 != 0)) && ( !(t2_l1 != 0))) || (t2_x <= 5.0))) && ((((((( !(t1_l0 != 0)) && ( !(t1_l1 != 0))) && (t1_x == 0.0)) && (((( !(t1_l0 != 0)) && ( !(t1_l1 != 0))) || ((t1_l0 != 0) && ( !(t1_l1 != 0)))) || (((t1_l1 != 0) && ( !(t1_l0 != 0))) || ((t1_l0 != 0) && (t1_l1 != 0))))) && (((( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))) || ((t1_evt0 != 0) && ( !(t1_evt1 != 0)))) || (((t1_evt1 != 0) && ( !(t1_evt0 != 0))) || ((t1_evt0 != 0) && (t1_evt1 != 0))))) && ((( !(t1_l0 != 0)) && ( !(t1_l1 != 0))) || (t1_x <= 5.0))) && ((((((( !(t0_l0 != 0)) && ( !(t0_l1 != 0))) && (t0_x == 0.0)) && (((( !(t0_l0 != 0)) && ( !(t0_l1 != 0))) || ((t0_l0 != 0) && ( !(t0_l1 != 0)))) || (((t0_l1 != 0) && ( !(t0_l0 != 0))) || ((t0_l0 != 0) && (t0_l1 != 0))))) && (((( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))) || ((t0_evt0 != 0) && ( !(t0_evt1 != 0)))) || (((t0_evt1 != 0) && ( !(t0_evt0 != 0))) || ((t0_evt0 != 0) && (t0_evt1 != 0))))) && ((( !(t0_l0 != 0)) && ( !(t0_l1 != 0))) || (t0_x <= 5.0))) && (((((((( !(controller_l0 != 0)) && ( !(controller_l1 != 0))) && (controller_z == 0.0)) && (((( !(controller_l0 != 0)) && ( !(controller_l1 != 0))) || ((controller_l0 != 0) && ( !(controller_l1 != 0)))) || (((controller_l1 != 0) && ( !(controller_l0 != 0))) || ((controller_l0 != 0) && (controller_l1 != 0))))) && (((( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))) || (( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0))))) || ((( !(controller_evt2 != 0)) && ((controller_evt1 != 0) && ( !(controller_evt0 != 0)))) || ((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && (controller_evt1 != 0))) || ((controller_evt2 != 0) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))) && ((((((((((((((((((((((((((((((controller_cnt == 0) || (controller_cnt == 1)) || (controller_cnt == 2)) || (controller_cnt == 3)) || (controller_cnt == 4)) || (controller_cnt == 5)) || (controller_cnt == 6)) || (controller_cnt == 7)) || (controller_cnt == 8)) || (controller_cnt == 9)) || (controller_cnt == 10)) || (controller_cnt == 11)) || (controller_cnt == 12)) || (controller_cnt == 13)) || (controller_cnt == 14)) || (controller_cnt == 15)) || (controller_cnt == 16)) || (controller_cnt == 17)) || (controller_cnt == 18)) || (controller_cnt == 19)) || (controller_cnt == 20)) || (controller_cnt == 21)) || (controller_cnt == 22)) || (controller_cnt == 23)) || (controller_cnt == 24)) || (controller_cnt == 25)) || (controller_cnt == 26)) || (controller_cnt == 27)) || (controller_cnt == 28)) || (controller_cnt == 29))) && ((controller_z <= 1.0) || ( !(((controller_l0 != 0) && ( !(controller_l1 != 0))) || ((controller_l0 != 0) && (controller_l1 != 0)))))) && (((((((( !(gate_l0 != 0)) && ( !(gate_l1 != 0))) && (gate_y == 0.0)) && (((( !(gate_l0 != 0)) && ( !(gate_l1 != 0))) || ((gate_l0 != 0) && ( !(gate_l1 != 0)))) || (((gate_l1 != 0) && ( !(gate_l0 != 0))) || ((gate_l0 != 0) && (gate_l1 != 0))))) && (((( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))) || ((gate_evt0 != 0) && ( !(gate_evt1 != 0)))) || (((gate_evt1 != 0) && ( !(gate_evt0 != 0))) || ((gate_evt0 != 0) && (gate_evt1 != 0))))) && ((gate_y <= 1.0) || ( !((gate_l0 != 0) && ( !(gate_l1 != 0)))))) && ((gate_y <= 2.0) || ( !((gate_l0 != 0) && (gate_l1 != 0))))) && (0.0 <= delta))))))))))))))))))))))))))))))) && (delta == _diverge_delta));
while (__ok) {
_x__diverge_delta = __VERIFIER_nondet_float();
_x_t27_evt1 = __VERIFIER_nondet_bool();
_x_t27_evt0 = __VERIFIER_nondet_bool();
_x_t27_x = __VERIFIER_nondet_float();
_x_t26_evt1 = __VERIFIER_nondet_bool();
_x_t26_evt0 = __VERIFIER_nondet_bool();
_x_t26_x = __VERIFIER_nondet_float();
_x_t25_evt1 = __VERIFIER_nondet_bool();
_x_t25_evt0 = __VERIFIER_nondet_bool();
_x_t25_x = __VERIFIER_nondet_float();
_x_t24_l1 = __VERIFIER_nondet_bool();
_x_t24_evt1 = __VERIFIER_nondet_bool();
_x_t24_evt0 = __VERIFIER_nondet_bool();
_x_t24_x = __VERIFIER_nondet_float();
_x_t22_l1 = __VERIFIER_nondet_bool();
_x_t8_l1 = __VERIFIER_nondet_bool();
_x_t8_l0 = __VERIFIER_nondet_bool();
_x_t9_x = __VERIFIER_nondet_float();
_x_controller_evt0 = __VERIFIER_nondet_bool();
_x_t8_evt0 = __VERIFIER_nondet_bool();
_x_t6_l0 = __VERIFIER_nondet_bool();
_x_t6_evt0 = __VERIFIER_nondet_bool();
_x_t5_l1 = __VERIFIER_nondet_bool();
_x_t5_l0 = __VERIFIER_nondet_bool();
_x_t6_x = __VERIFIER_nondet_float();
_x_t5_evt0 = __VERIFIER_nondet_bool();
_x_t4_l1 = __VERIFIER_nondet_bool();
_x_t4_l0 = __VERIFIER_nondet_bool();
_x_t5_x = __VERIFIER_nondet_float();
_x_t4_evt0 = __VERIFIER_nondet_bool();
_x_t3_l1 = __VERIFIER_nondet_bool();
_x_t3_l0 = __VERIFIER_nondet_bool();
_x_t4_x = __VERIFIER_nondet_float();
_x_t7_l1 = __VERIFIER_nondet_bool();
_x_controller_evt2 = __VERIFIER_nondet_bool();
_x_t2_l1 = __VERIFIER_nondet_bool();
_x_t7_evt0 = __VERIFIER_nondet_bool();
_x_t23_evt1 = __VERIFIER_nondet_bool();
_x_gate_evt1 = __VERIFIER_nondet_bool();
_x_t14_x = __VERIFIER_nondet_float();
_x_t26_l1 = __VERIFIER_nondet_bool();
_x_t1_x = __VERIFIER_nondet_float();
_x_t22_evt0 = __VERIFIER_nondet_bool();
_x_t7_l0 = __VERIFIER_nondet_bool();
_x_controller_evt1 = __VERIFIER_nondet_bool();
_x_t2_l0 = __VERIFIER_nondet_bool();
_x_t2_evt0 = __VERIFIER_nondet_bool();
_x_t1_l1 = __VERIFIER_nondet_bool();
_x_t7_x = __VERIFIER_nondet_float();
_x_t1_l0 = __VERIFIER_nondet_bool();
_x_t23_evt0 = __VERIFIER_nondet_bool();
_x_gate_evt0 = __VERIFIER_nondet_bool();
_x_t19_evt1 = __VERIFIER_nondet_bool();
_x_t0_evt0 = __VERIFIER_nondet_bool();
_x_t8_x = __VERIFIER_nondet_float();
_x_controller_l1 = __VERIFIER_nondet_bool();
_x_t24_l0 = __VERIFIER_nondet_bool();
_x_t9_evt1 = __VERIFIER_nondet_bool();
_x_t23_x = __VERIFIER_nondet_float();
_x_gate_y = __VERIFIER_nondet_float();
_x_t12_l0 = __VERIFIER_nondet_bool();
_x_t23_l1 = __VERIFIER_nondet_bool();
_x_gate_l1 = __VERIFIER_nondet_bool();
_x_t14_evt0 = __VERIFIER_nondet_bool();
_x_t6_l1 = __VERIFIER_nondet_bool();
_x_controller_l0 = __VERIFIER_nondet_bool();
_x_t9_evt0 = __VERIFIER_nondet_bool();
_x_t23_l0 = __VERIFIER_nondet_bool();
_x_t8_evt1 = __VERIFIER_nondet_bool();
_x_gate_l0 = __VERIFIER_nondet_bool();
_x_t19_l1 = __VERIFIER_nondet_bool();
_x_t0_l0 = __VERIFIER_nondet_bool();
_x_t25_l1 = __VERIFIER_nondet_bool();
_x_t0_x = __VERIFIER_nondet_float();
_x_delta = __VERIFIER_nondet_float();
_x_t15_x = __VERIFIER_nondet_float();
_x_t0_l1 = __VERIFIER_nondet_bool();
_x_t7_evt1 = __VERIFIER_nondet_bool();
_x_t22_l0 = __VERIFIER_nondet_bool();
_x_t1_evt0 = __VERIFIER_nondet_bool();
_x_t27_l1 = __VERIFIER_nondet_bool();
_x_t2_x = __VERIFIER_nondet_float();
_x_t3_evt0 = __VERIFIER_nondet_bool();
_x_t3_x = __VERIFIER_nondet_float();
_x_t9_l0 = __VERIFIER_nondet_bool();
_x_t9_l1 = __VERIFIER_nondet_bool();
_x_t10_x = __VERIFIER_nondet_float();
_x_t10_evt0 = __VERIFIER_nondet_bool();
_x_t25_l0 = __VERIFIER_nondet_bool();
_x_t10_evt1 = __VERIFIER_nondet_bool();
_x_t10_l0 = __VERIFIER_nondet_bool();
_x_t10_l1 = __VERIFIER_nondet_bool();
_x_t11_x = __VERIFIER_nondet_float();
_x_t11_evt0 = __VERIFIER_nondet_bool();
_x_t26_l0 = __VERIFIER_nondet_bool();
_x_t11_evt1 = __VERIFIER_nondet_bool();
_x_t11_l0 = __VERIFIER_nondet_bool();
_x_t11_l1 = __VERIFIER_nondet_bool();
_x_t12_x = __VERIFIER_nondet_float();
_x_t12_evt0 = __VERIFIER_nondet_bool();
_x_t27_l0 = __VERIFIER_nondet_bool();
_x_t12_evt1 = __VERIFIER_nondet_bool();
_x_t12_l1 = __VERIFIER_nondet_bool();
_x_t13_x = __VERIFIER_nondet_float();
_x_t13_evt0 = __VERIFIER_nondet_bool();
_x_t13_evt1 = __VERIFIER_nondet_bool();
_x_t13_l0 = __VERIFIER_nondet_bool();
_x_t13_l1 = __VERIFIER_nondet_bool();
_x_t14_evt1 = __VERIFIER_nondet_bool();
_x_t14_l0 = __VERIFIER_nondet_bool();
_x_t14_l1 = __VERIFIER_nondet_bool();
_x_t15_evt0 = __VERIFIER_nondet_bool();
_x_t15_evt1 = __VERIFIER_nondet_bool();
_x_t0_evt1 = __VERIFIER_nondet_bool();
_x_t15_l0 = __VERIFIER_nondet_bool();
_x_t15_l1 = __VERIFIER_nondet_bool();
_x_t16_x = __VERIFIER_nondet_float();
_x_t16_evt0 = __VERIFIER_nondet_bool();
_x_t16_evt1 = __VERIFIER_nondet_bool();
_x_t1_evt1 = __VERIFIER_nondet_bool();
_x_t16_l0 = __VERIFIER_nondet_bool();
_x_t16_l1 = __VERIFIER_nondet_bool();
_x_t17_x = __VERIFIER_nondet_float();
_x_controller_z = __VERIFIER_nondet_float();
_x_t17_evt0 = __VERIFIER_nondet_bool();
_x_controller_cnt = __VERIFIER_nondet_int();
_x_t17_evt1 = __VERIFIER_nondet_bool();
_x_t2_evt1 = __VERIFIER_nondet_bool();
_x_t17_l0 = __VERIFIER_nondet_bool();
_x_t17_l1 = __VERIFIER_nondet_bool();
_x_t18_x = __VERIFIER_nondet_float();
_x_t18_evt0 = __VERIFIER_nondet_bool();
_x_t18_evt1 = __VERIFIER_nondet_bool();
_x_t3_evt1 = __VERIFIER_nondet_bool();
_x_t18_l0 = __VERIFIER_nondet_bool();
_x_t18_l1 = __VERIFIER_nondet_bool();
_x_t19_x = __VERIFIER_nondet_float();
_x_t19_evt0 = __VERIFIER_nondet_bool();
_x_t4_evt1 = __VERIFIER_nondet_bool();
_x_t19_l0 = __VERIFIER_nondet_bool();
_x_t20_x = __VERIFIER_nondet_float();
_x_t20_evt0 = __VERIFIER_nondet_bool();
_x_t20_evt1 = __VERIFIER_nondet_bool();
_x_t5_evt1 = __VERIFIER_nondet_bool();
_x_t20_l0 = __VERIFIER_nondet_bool();
_x_t20_l1 = __VERIFIER_nondet_bool();
_x_t21_x = __VERIFIER_nondet_float();
_x_t21_evt0 = __VERIFIER_nondet_bool();
_x_t21_evt1 = __VERIFIER_nondet_bool();
_x_t6_evt1 = __VERIFIER_nondet_bool();
_x_t21_l0 = __VERIFIER_nondet_bool();
_x_t21_l1 = __VERIFIER_nondet_bool();
_x_t22_x = __VERIFIER_nondet_float();
_x_t22_evt1 = __VERIFIER_nondet_bool();
__ok = ((((((((((((((((((((((((((((((((((((((((((((( !(_x_t27_l0 != 0)) && ( !(_x_t27_l1 != 0))) || ((_x_t27_l0 != 0) && ( !(_x_t27_l1 != 0)))) || (((_x_t27_l1 != 0) && ( !(_x_t27_l0 != 0))) || ((_x_t27_l0 != 0) && (_x_t27_l1 != 0)))) && (((( !(_x_t27_evt0 != 0)) && ( !(_x_t27_evt1 != 0))) || ((_x_t27_evt0 != 0) && ( !(_x_t27_evt1 != 0)))) || (((_x_t27_evt1 != 0) && ( !(_x_t27_evt0 != 0))) || ((_x_t27_evt0 != 0) && (_x_t27_evt1 != 0))))) && ((( !(_x_t27_l0 != 0)) && ( !(_x_t27_l1 != 0))) || (_x_t27_x <= 5.0))) && (((((t27_l0 != 0) == (_x_t27_l0 != 0)) && ((t27_l1 != 0) == (_x_t27_l1 != 0))) && ((delta + (t27_x + (-1.0 * _x_t27_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))))))) && (((((_x_t27_l0 != 0) && ( !(_x_t27_l1 != 0))) && ((t27_evt0 != 0) && ( !(t27_evt1 != 0)))) && (_x_t27_x == 0.0)) || ( !((( !(t27_l0 != 0)) && ( !(t27_l1 != 0))) && ((delta == 0.0) && ( !(( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))))))))) && (((((_x_t27_l1 != 0) && ( !(_x_t27_l0 != 0))) && ( !(t27_x <= 2.0))) && (((t27_evt0 != 0) && (t27_evt1 != 0)) && (t27_x == _x_t27_x))) || ( !(((t27_l0 != 0) && ( !(t27_l1 != 0))) && ((delta == 0.0) && ( !(( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))))))))) && (((t27_x == _x_t27_x) && (((_x_t27_l0 != 0) && (_x_t27_l1 != 0)) && ((t27_evt0 != 0) && (t27_evt1 != 0)))) || ( !(((t27_l1 != 0) && ( !(t27_l0 != 0))) && ((delta == 0.0) && ( !(( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))))))))) && ((((( !(_x_t27_l0 != 0)) && ( !(_x_t27_l1 != 0))) && (t27_x <= 5.0)) && (((t27_evt1 != 0) && ( !(t27_evt0 != 0))) && (t27_x == _x_t27_x))) || ( !(((t27_l0 != 0) && (t27_l1 != 0)) && ((delta == 0.0) && ( !(( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))))))))) && (((((((((((( !(_x_t26_l0 != 0)) && ( !(_x_t26_l1 != 0))) || ((_x_t26_l0 != 0) && ( !(_x_t26_l1 != 0)))) || (((_x_t26_l1 != 0) && ( !(_x_t26_l0 != 0))) || ((_x_t26_l0 != 0) && (_x_t26_l1 != 0)))) && (((( !(_x_t26_evt0 != 0)) && ( !(_x_t26_evt1 != 0))) || ((_x_t26_evt0 != 0) && ( !(_x_t26_evt1 != 0)))) || (((_x_t26_evt1 != 0) && ( !(_x_t26_evt0 != 0))) || ((_x_t26_evt0 != 0) && (_x_t26_evt1 != 0))))) && ((( !(_x_t26_l0 != 0)) && ( !(_x_t26_l1 != 0))) || (_x_t26_x <= 5.0))) && (((((t26_l0 != 0) == (_x_t26_l0 != 0)) && ((t26_l1 != 0) == (_x_t26_l1 != 0))) && ((delta + (t26_x + (-1.0 * _x_t26_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))))))) && (((((_x_t26_l0 != 0) && ( !(_x_t26_l1 != 0))) && ((t26_evt0 != 0) && ( !(t26_evt1 != 0)))) && (_x_t26_x == 0.0)) || ( !((( !(t26_l0 != 0)) && ( !(t26_l1 != 0))) && ((delta == 0.0) && ( !(( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))))))))) && (((((_x_t26_l1 != 0) && ( !(_x_t26_l0 != 0))) && ( !(t26_x <= 2.0))) && (((t26_evt0 != 0) && (t26_evt1 != 0)) && (t26_x == _x_t26_x))) || ( !(((t26_l0 != 0) && ( !(t26_l1 != 0))) && ((delta == 0.0) && ( !(( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))))))))) && (((t26_x == _x_t26_x) && (((_x_t26_l0 != 0) && (_x_t26_l1 != 0)) && ((t26_evt0 != 0) && (t26_evt1 != 0)))) || ( !(((t26_l1 != 0) && ( !(t26_l0 != 0))) && ((delta == 0.0) && ( !(( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))))))))) && ((((( !(_x_t26_l0 != 0)) && ( !(_x_t26_l1 != 0))) && (t26_x <= 5.0)) && (((t26_evt1 != 0) && ( !(t26_evt0 != 0))) && (t26_x == _x_t26_x))) || ( !(((t26_l0 != 0) && (t26_l1 != 0)) && ((delta == 0.0) && ( !(( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))))))))) && (((((((((((( !(_x_t25_l0 != 0)) && ( !(_x_t25_l1 != 0))) || ((_x_t25_l0 != 0) && ( !(_x_t25_l1 != 0)))) || (((_x_t25_l1 != 0) && ( !(_x_t25_l0 != 0))) || ((_x_t25_l0 != 0) && (_x_t25_l1 != 0)))) && (((( !(_x_t25_evt0 != 0)) && ( !(_x_t25_evt1 != 0))) || ((_x_t25_evt0 != 0) && ( !(_x_t25_evt1 != 0)))) || (((_x_t25_evt1 != 0) && ( !(_x_t25_evt0 != 0))) || ((_x_t25_evt0 != 0) && (_x_t25_evt1 != 0))))) && ((( !(_x_t25_l0 != 0)) && ( !(_x_t25_l1 != 0))) || (_x_t25_x <= 5.0))) && (((((t25_l0 != 0) == (_x_t25_l0 != 0)) && ((t25_l1 != 0) == (_x_t25_l1 != 0))) && ((delta + (t25_x + (-1.0 * _x_t25_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))))))) && (((((_x_t25_l0 != 0) && ( !(_x_t25_l1 != 0))) && ((t25_evt0 != 0) && ( !(t25_evt1 != 0)))) && (_x_t25_x == 0.0)) || ( !((( !(t25_l0 != 0)) && ( !(t25_l1 != 0))) && ((delta == 0.0) && ( !(( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))))))))) && (((((_x_t25_l1 != 0) && ( !(_x_t25_l0 != 0))) && ( !(t25_x <= 2.0))) && (((t25_evt0 != 0) && (t25_evt1 != 0)) && (t25_x == _x_t25_x))) || ( !(((t25_l0 != 0) && ( !(t25_l1 != 0))) && ((delta == 0.0) && ( !(( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))))))))) && (((t25_x == _x_t25_x) && (((_x_t25_l0 != 0) && (_x_t25_l1 != 0)) && ((t25_evt0 != 0) && (t25_evt1 != 0)))) || ( !(((t25_l1 != 0) && ( !(t25_l0 != 0))) && ((delta == 0.0) && ( !(( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))))))))) && ((((( !(_x_t25_l0 != 0)) && ( !(_x_t25_l1 != 0))) && (t25_x <= 5.0)) && (((t25_evt1 != 0) && ( !(t25_evt0 != 0))) && (t25_x == _x_t25_x))) || ( !(((t25_l0 != 0) && (t25_l1 != 0)) && ((delta == 0.0) && ( !(( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0))))))))) && (((((((((((( !(_x_t24_l0 != 0)) && ( !(_x_t24_l1 != 0))) || ((_x_t24_l0 != 0) && ( !(_x_t24_l1 != 0)))) || (((_x_t24_l1 != 0) && ( !(_x_t24_l0 != 0))) || ((_x_t24_l0 != 0) && (_x_t24_l1 != 0)))) && (((( !(_x_t24_evt0 != 0)) && ( !(_x_t24_evt1 != 0))) || ((_x_t24_evt0 != 0) && ( !(_x_t24_evt1 != 0)))) || (((_x_t24_evt1 != 0) && ( !(_x_t24_evt0 != 0))) || ((_x_t24_evt0 != 0) && (_x_t24_evt1 != 0))))) && ((( !(_x_t24_l0 != 0)) && ( !(_x_t24_l1 != 0))) || (_x_t24_x <= 5.0))) && (((((t24_l0 != 0) == (_x_t24_l0 != 0)) && ((t24_l1 != 0) == (_x_t24_l1 != 0))) && ((delta + (t24_x + (-1.0 * _x_t24_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))))))) && (((((_x_t24_l0 != 0) && ( !(_x_t24_l1 != 0))) && ((t24_evt0 != 0) && ( !(t24_evt1 != 0)))) && (_x_t24_x == 0.0)) || ( !((( !(t24_l0 != 0)) && ( !(t24_l1 != 0))) && ((delta == 0.0) && ( !(( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))))))))) && (((((_x_t24_l1 != 0) && ( !(_x_t24_l0 != 0))) && ( !(t24_x <= 2.0))) && (((t24_evt0 != 0) && (t24_evt1 != 0)) && (t24_x == _x_t24_x))) || ( !(((t24_l0 != 0) && ( !(t24_l1 != 0))) && ((delta == 0.0) && ( !(( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))))))))) && (((t24_x == _x_t24_x) && (((_x_t24_l0 != 0) && (_x_t24_l1 != 0)) && ((t24_evt0 != 0) && (t24_evt1 != 0)))) || ( !(((t24_l1 != 0) && ( !(t24_l0 != 0))) && ((delta == 0.0) && ( !(( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))))))))) && ((((( !(_x_t24_l0 != 0)) && ( !(_x_t24_l1 != 0))) && (t24_x <= 5.0)) && (((t24_evt1 != 0) && ( !(t24_evt0 != 0))) && (t24_x == _x_t24_x))) || ( !(((t24_l0 != 0) && (t24_l1 != 0)) && ((delta == 0.0) && ( !(( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0))))))))) && (((((((((((( !(_x_t23_l0 != 0)) && ( !(_x_t23_l1 != 0))) || ((_x_t23_l0 != 0) && ( !(_x_t23_l1 != 0)))) || (((_x_t23_l1 != 0) && ( !(_x_t23_l0 != 0))) || ((_x_t23_l0 != 0) && (_x_t23_l1 != 0)))) && (((( !(_x_t23_evt0 != 0)) && ( !(_x_t23_evt1 != 0))) || ((_x_t23_evt0 != 0) && ( !(_x_t23_evt1 != 0)))) || (((_x_t23_evt1 != 0) && ( !(_x_t23_evt0 != 0))) || ((_x_t23_evt0 != 0) && (_x_t23_evt1 != 0))))) && ((( !(_x_t23_l0 != 0)) && ( !(_x_t23_l1 != 0))) || (_x_t23_x <= 5.0))) && (((((t23_l0 != 0) == (_x_t23_l0 != 0)) && ((t23_l1 != 0) == (_x_t23_l1 != 0))) && ((delta + (t23_x + (-1.0 * _x_t23_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))))))) && (((((_x_t23_l0 != 0) && ( !(_x_t23_l1 != 0))) && ((t23_evt0 != 0) && ( !(t23_evt1 != 0)))) && (_x_t23_x == 0.0)) || ( !((( !(t23_l0 != 0)) && ( !(t23_l1 != 0))) && ((delta == 0.0) && ( !(( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))))))))) && (((((_x_t23_l1 != 0) && ( !(_x_t23_l0 != 0))) && ( !(t23_x <= 2.0))) && (((t23_evt0 != 0) && (t23_evt1 != 0)) && (t23_x == _x_t23_x))) || ( !(((t23_l0 != 0) && ( !(t23_l1 != 0))) && ((delta == 0.0) && ( !(( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))))))))) && (((t23_x == _x_t23_x) && (((_x_t23_l0 != 0) && (_x_t23_l1 != 0)) && ((t23_evt0 != 0) && (t23_evt1 != 0)))) || ( !(((t23_l1 != 0) && ( !(t23_l0 != 0))) && ((delta == 0.0) && ( !(( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))))))))) && ((((( !(_x_t23_l0 != 0)) && ( !(_x_t23_l1 != 0))) && (t23_x <= 5.0)) && (((t23_evt1 != 0) && ( !(t23_evt0 != 0))) && (t23_x == _x_t23_x))) || ( !(((t23_l0 != 0) && (t23_l1 != 0)) && ((delta == 0.0) && ( !(( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0))))))))) && (((((((((((( !(_x_t22_l0 != 0)) && ( !(_x_t22_l1 != 0))) || ((_x_t22_l0 != 0) && ( !(_x_t22_l1 != 0)))) || (((_x_t22_l1 != 0) && ( !(_x_t22_l0 != 0))) || ((_x_t22_l0 != 0) && (_x_t22_l1 != 0)))) && (((( !(_x_t22_evt0 != 0)) && ( !(_x_t22_evt1 != 0))) || ((_x_t22_evt0 != 0) && ( !(_x_t22_evt1 != 0)))) || (((_x_t22_evt1 != 0) && ( !(_x_t22_evt0 != 0))) || ((_x_t22_evt0 != 0) && (_x_t22_evt1 != 0))))) && ((( !(_x_t22_l0 != 0)) && ( !(_x_t22_l1 != 0))) || (_x_t22_x <= 5.0))) && (((((t22_l0 != 0) == (_x_t22_l0 != 0)) && ((t22_l1 != 0) == (_x_t22_l1 != 0))) && ((delta + (t22_x + (-1.0 * _x_t22_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))))))) && (((((_x_t22_l0 != 0) && ( !(_x_t22_l1 != 0))) && ((t22_evt0 != 0) && ( !(t22_evt1 != 0)))) && (_x_t22_x == 0.0)) || ( !((( !(t22_l0 != 0)) && ( !(t22_l1 != 0))) && ((delta == 0.0) && ( !(( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))))))))) && (((((_x_t22_l1 != 0) && ( !(_x_t22_l0 != 0))) && ( !(t22_x <= 2.0))) && (((t22_evt0 != 0) && (t22_evt1 != 0)) && (t22_x == _x_t22_x))) || ( !(((t22_l0 != 0) && ( !(t22_l1 != 0))) && ((delta == 0.0) && ( !(( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))))))))) && (((t22_x == _x_t22_x) && (((_x_t22_l0 != 0) && (_x_t22_l1 != 0)) && ((t22_evt0 != 0) && (t22_evt1 != 0)))) || ( !(((t22_l1 != 0) && ( !(t22_l0 != 0))) && ((delta == 0.0) && ( !(( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))))))))) && ((((( !(_x_t22_l0 != 0)) && ( !(_x_t22_l1 != 0))) && (t22_x <= 5.0)) && (((t22_evt1 != 0) && ( !(t22_evt0 != 0))) && (t22_x == _x_t22_x))) || ( !(((t22_l0 != 0) && (t22_l1 != 0)) && ((delta == 0.0) && ( !(( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0))))))))) && (((((((((((( !(_x_t21_l0 != 0)) && ( !(_x_t21_l1 != 0))) || ((_x_t21_l0 != 0) && ( !(_x_t21_l1 != 0)))) || (((_x_t21_l1 != 0) && ( !(_x_t21_l0 != 0))) || ((_x_t21_l0 != 0) && (_x_t21_l1 != 0)))) && (((( !(_x_t21_evt0 != 0)) && ( !(_x_t21_evt1 != 0))) || ((_x_t21_evt0 != 0) && ( !(_x_t21_evt1 != 0)))) || (((_x_t21_evt1 != 0) && ( !(_x_t21_evt0 != 0))) || ((_x_t21_evt0 != 0) && (_x_t21_evt1 != 0))))) && ((( !(_x_t21_l0 != 0)) && ( !(_x_t21_l1 != 0))) || (_x_t21_x <= 5.0))) && (((((t21_l0 != 0) == (_x_t21_l0 != 0)) && ((t21_l1 != 0) == (_x_t21_l1 != 0))) && ((delta + (t21_x + (-1.0 * _x_t21_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))))))) && (((((_x_t21_l0 != 0) && ( !(_x_t21_l1 != 0))) && ((t21_evt0 != 0) && ( !(t21_evt1 != 0)))) && (_x_t21_x == 0.0)) || ( !((( !(t21_l0 != 0)) && ( !(t21_l1 != 0))) && ((delta == 0.0) && ( !(( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))))))))) && (((((_x_t21_l1 != 0) && ( !(_x_t21_l0 != 0))) && ( !(t21_x <= 2.0))) && (((t21_evt0 != 0) && (t21_evt1 != 0)) && (t21_x == _x_t21_x))) || ( !(((t21_l0 != 0) && ( !(t21_l1 != 0))) && ((delta == 0.0) && ( !(( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))))))))) && (((t21_x == _x_t21_x) && (((_x_t21_l0 != 0) && (_x_t21_l1 != 0)) && ((t21_evt0 != 0) && (t21_evt1 != 0)))) || ( !(((t21_l1 != 0) && ( !(t21_l0 != 0))) && ((delta == 0.0) && ( !(( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))))))))) && ((((( !(_x_t21_l0 != 0)) && ( !(_x_t21_l1 != 0))) && (t21_x <= 5.0)) && (((t21_evt1 != 0) && ( !(t21_evt0 != 0))) && (t21_x == _x_t21_x))) || ( !(((t21_l0 != 0) && (t21_l1 != 0)) && ((delta == 0.0) && ( !(( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0))))))))) && (((((((((((( !(_x_t20_l0 != 0)) && ( !(_x_t20_l1 != 0))) || ((_x_t20_l0 != 0) && ( !(_x_t20_l1 != 0)))) || (((_x_t20_l1 != 0) && ( !(_x_t20_l0 != 0))) || ((_x_t20_l0 != 0) && (_x_t20_l1 != 0)))) && (((( !(_x_t20_evt0 != 0)) && ( !(_x_t20_evt1 != 0))) || ((_x_t20_evt0 != 0) && ( !(_x_t20_evt1 != 0)))) || (((_x_t20_evt1 != 0) && ( !(_x_t20_evt0 != 0))) || ((_x_t20_evt0 != 0) && (_x_t20_evt1 != 0))))) && ((( !(_x_t20_l0 != 0)) && ( !(_x_t20_l1 != 0))) || (_x_t20_x <= 5.0))) && (((((t20_l0 != 0) == (_x_t20_l0 != 0)) && ((t20_l1 != 0) == (_x_t20_l1 != 0))) && ((delta + (t20_x + (-1.0 * _x_t20_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))))))) && (((((_x_t20_l0 != 0) && ( !(_x_t20_l1 != 0))) && ((t20_evt0 != 0) && ( !(t20_evt1 != 0)))) && (_x_t20_x == 0.0)) || ( !((( !(t20_l0 != 0)) && ( !(t20_l1 != 0))) && ((delta == 0.0) && ( !(( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))))))))) && (((((_x_t20_l1 != 0) && ( !(_x_t20_l0 != 0))) && ( !(t20_x <= 2.0))) && (((t20_evt0 != 0) && (t20_evt1 != 0)) && (t20_x == _x_t20_x))) || ( !(((t20_l0 != 0) && ( !(t20_l1 != 0))) && ((delta == 0.0) && ( !(( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))))))))) && (((t20_x == _x_t20_x) && (((_x_t20_l0 != 0) && (_x_t20_l1 != 0)) && ((t20_evt0 != 0) && (t20_evt1 != 0)))) || ( !(((t20_l1 != 0) && ( !(t20_l0 != 0))) && ((delta == 0.0) && ( !(( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))))))))) && ((((( !(_x_t20_l0 != 0)) && ( !(_x_t20_l1 != 0))) && (t20_x <= 5.0)) && (((t20_evt1 != 0) && ( !(t20_evt0 != 0))) && (t20_x == _x_t20_x))) || ( !(((t20_l0 != 0) && (t20_l1 != 0)) && ((delta == 0.0) && ( !(( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0))))))))) && (((((((((((( !(_x_t19_l0 != 0)) && ( !(_x_t19_l1 != 0))) || ((_x_t19_l0 != 0) && ( !(_x_t19_l1 != 0)))) || (((_x_t19_l1 != 0) && ( !(_x_t19_l0 != 0))) || ((_x_t19_l0 != 0) && (_x_t19_l1 != 0)))) && (((( !(_x_t19_evt0 != 0)) && ( !(_x_t19_evt1 != 0))) || ((_x_t19_evt0 != 0) && ( !(_x_t19_evt1 != 0)))) || (((_x_t19_evt1 != 0) && ( !(_x_t19_evt0 != 0))) || ((_x_t19_evt0 != 0) && (_x_t19_evt1 != 0))))) && ((( !(_x_t19_l0 != 0)) && ( !(_x_t19_l1 != 0))) || (_x_t19_x <= 5.0))) && (((((t19_l0 != 0) == (_x_t19_l0 != 0)) && ((t19_l1 != 0) == (_x_t19_l1 != 0))) && ((delta + (t19_x + (-1.0 * _x_t19_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))))))) && (((((_x_t19_l0 != 0) && ( !(_x_t19_l1 != 0))) && ((t19_evt0 != 0) && ( !(t19_evt1 != 0)))) && (_x_t19_x == 0.0)) || ( !((( !(t19_l0 != 0)) && ( !(t19_l1 != 0))) && ((delta == 0.0) && ( !(( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))))))))) && (((((_x_t19_l1 != 0) && ( !(_x_t19_l0 != 0))) && ( !(t19_x <= 2.0))) && (((t19_evt0 != 0) && (t19_evt1 != 0)) && (t19_x == _x_t19_x))) || ( !(((t19_l0 != 0) && ( !(t19_l1 != 0))) && ((delta == 0.0) && ( !(( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))))))))) && (((t19_x == _x_t19_x) && (((_x_t19_l0 != 0) && (_x_t19_l1 != 0)) && ((t19_evt0 != 0) && (t19_evt1 != 0)))) || ( !(((t19_l1 != 0) && ( !(t19_l0 != 0))) && ((delta == 0.0) && ( !(( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))))))))) && ((((( !(_x_t19_l0 != 0)) && ( !(_x_t19_l1 != 0))) && (t19_x <= 5.0)) && (((t19_evt1 != 0) && ( !(t19_evt0 != 0))) && (t19_x == _x_t19_x))) || ( !(((t19_l0 != 0) && (t19_l1 != 0)) && ((delta == 0.0) && ( !(( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0))))))))) && (((((((((((( !(_x_t18_l0 != 0)) && ( !(_x_t18_l1 != 0))) || ((_x_t18_l0 != 0) && ( !(_x_t18_l1 != 0)))) || (((_x_t18_l1 != 0) && ( !(_x_t18_l0 != 0))) || ((_x_t18_l0 != 0) && (_x_t18_l1 != 0)))) && (((( !(_x_t18_evt0 != 0)) && ( !(_x_t18_evt1 != 0))) || ((_x_t18_evt0 != 0) && ( !(_x_t18_evt1 != 0)))) || (((_x_t18_evt1 != 0) && ( !(_x_t18_evt0 != 0))) || ((_x_t18_evt0 != 0) && (_x_t18_evt1 != 0))))) && ((( !(_x_t18_l0 != 0)) && ( !(_x_t18_l1 != 0))) || (_x_t18_x <= 5.0))) && (((((t18_l0 != 0) == (_x_t18_l0 != 0)) && ((t18_l1 != 0) == (_x_t18_l1 != 0))) && ((delta + (t18_x + (-1.0 * _x_t18_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))))))) && (((((_x_t18_l0 != 0) && ( !(_x_t18_l1 != 0))) && ((t18_evt0 != 0) && ( !(t18_evt1 != 0)))) && (_x_t18_x == 0.0)) || ( !((( !(t18_l0 != 0)) && ( !(t18_l1 != 0))) && ((delta == 0.0) && ( !(( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))))))))) && (((((_x_t18_l1 != 0) && ( !(_x_t18_l0 != 0))) && ( !(t18_x <= 2.0))) && (((t18_evt0 != 0) && (t18_evt1 != 0)) && (t18_x == _x_t18_x))) || ( !(((t18_l0 != 0) && ( !(t18_l1 != 0))) && ((delta == 0.0) && ( !(( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))))))))) && (((t18_x == _x_t18_x) && (((_x_t18_l0 != 0) && (_x_t18_l1 != 0)) && ((t18_evt0 != 0) && (t18_evt1 != 0)))) || ( !(((t18_l1 != 0) && ( !(t18_l0 != 0))) && ((delta == 0.0) && ( !(( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))))))))) && ((((( !(_x_t18_l0 != 0)) && ( !(_x_t18_l1 != 0))) && (t18_x <= 5.0)) && (((t18_evt1 != 0) && ( !(t18_evt0 != 0))) && (t18_x == _x_t18_x))) || ( !(((t18_l0 != 0) && (t18_l1 != 0)) && ((delta == 0.0) && ( !(( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0))))))))) && (((((((((((( !(_x_t17_l0 != 0)) && ( !(_x_t17_l1 != 0))) || ((_x_t17_l0 != 0) && ( !(_x_t17_l1 != 0)))) || (((_x_t17_l1 != 0) && ( !(_x_t17_l0 != 0))) || ((_x_t17_l0 != 0) && (_x_t17_l1 != 0)))) && (((( !(_x_t17_evt0 != 0)) && ( !(_x_t17_evt1 != 0))) || ((_x_t17_evt0 != 0) && ( !(_x_t17_evt1 != 0)))) || (((_x_t17_evt1 != 0) && ( !(_x_t17_evt0 != 0))) || ((_x_t17_evt0 != 0) && (_x_t17_evt1 != 0))))) && ((( !(_x_t17_l0 != 0)) && ( !(_x_t17_l1 != 0))) || (_x_t17_x <= 5.0))) && (((((t17_l0 != 0) == (_x_t17_l0 != 0)) && ((t17_l1 != 0) == (_x_t17_l1 != 0))) && ((delta + (t17_x + (-1.0 * _x_t17_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))))))) && (((((_x_t17_l0 != 0) && ( !(_x_t17_l1 != 0))) && ((t17_evt0 != 0) && ( !(t17_evt1 != 0)))) && (_x_t17_x == 0.0)) || ( !((( !(t17_l0 != 0)) && ( !(t17_l1 != 0))) && ((delta == 0.0) && ( !(( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))))))))) && (((((_x_t17_l1 != 0) && ( !(_x_t17_l0 != 0))) && ( !(t17_x <= 2.0))) && (((t17_evt0 != 0) && (t17_evt1 != 0)) && (t17_x == _x_t17_x))) || ( !(((t17_l0 != 0) && ( !(t17_l1 != 0))) && ((delta == 0.0) && ( !(( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))))))))) && (((t17_x == _x_t17_x) && (((_x_t17_l0 != 0) && (_x_t17_l1 != 0)) && ((t17_evt0 != 0) && (t17_evt1 != 0)))) || ( !(((t17_l1 != 0) && ( !(t17_l0 != 0))) && ((delta == 0.0) && ( !(( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))))))))) && ((((( !(_x_t17_l0 != 0)) && ( !(_x_t17_l1 != 0))) && (t17_x <= 5.0)) && (((t17_evt1 != 0) && ( !(t17_evt0 != 0))) && (t17_x == _x_t17_x))) || ( !(((t17_l0 != 0) && (t17_l1 != 0)) && ((delta == 0.0) && ( !(( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0))))))))) && (((((((((((( !(_x_t16_l0 != 0)) && ( !(_x_t16_l1 != 0))) || ((_x_t16_l0 != 0) && ( !(_x_t16_l1 != 0)))) || (((_x_t16_l1 != 0) && ( !(_x_t16_l0 != 0))) || ((_x_t16_l0 != 0) && (_x_t16_l1 != 0)))) && (((( !(_x_t16_evt0 != 0)) && ( !(_x_t16_evt1 != 0))) || ((_x_t16_evt0 != 0) && ( !(_x_t16_evt1 != 0)))) || (((_x_t16_evt1 != 0) && ( !(_x_t16_evt0 != 0))) || ((_x_t16_evt0 != 0) && (_x_t16_evt1 != 0))))) && ((( !(_x_t16_l0 != 0)) && ( !(_x_t16_l1 != 0))) || (_x_t16_x <= 5.0))) && (((((t16_l0 != 0) == (_x_t16_l0 != 0)) && ((t16_l1 != 0) == (_x_t16_l1 != 0))) && ((delta + (t16_x + (-1.0 * _x_t16_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))))))) && (((((_x_t16_l0 != 0) && ( !(_x_t16_l1 != 0))) && ((t16_evt0 != 0) && ( !(t16_evt1 != 0)))) && (_x_t16_x == 0.0)) || ( !((( !(t16_l0 != 0)) && ( !(t16_l1 != 0))) && ((delta == 0.0) && ( !(( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))))))))) && (((((_x_t16_l1 != 0) && ( !(_x_t16_l0 != 0))) && ( !(t16_x <= 2.0))) && (((t16_evt0 != 0) && (t16_evt1 != 0)) && (t16_x == _x_t16_x))) || ( !(((t16_l0 != 0) && ( !(t16_l1 != 0))) && ((delta == 0.0) && ( !(( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))))))))) && (((t16_x == _x_t16_x) && (((_x_t16_l0 != 0) && (_x_t16_l1 != 0)) && ((t16_evt0 != 0) && (t16_evt1 != 0)))) || ( !(((t16_l1 != 0) && ( !(t16_l0 != 0))) && ((delta == 0.0) && ( !(( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))))))))) && ((((( !(_x_t16_l0 != 0)) && ( !(_x_t16_l1 != 0))) && (t16_x <= 5.0)) && (((t16_evt1 != 0) && ( !(t16_evt0 != 0))) && (t16_x == _x_t16_x))) || ( !(((t16_l0 != 0) && (t16_l1 != 0)) && ((delta == 0.0) && ( !(( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0))))))))) && (((((((((((( !(_x_t15_l0 != 0)) && ( !(_x_t15_l1 != 0))) || ((_x_t15_l0 != 0) && ( !(_x_t15_l1 != 0)))) || (((_x_t15_l1 != 0) && ( !(_x_t15_l0 != 0))) || ((_x_t15_l0 != 0) && (_x_t15_l1 != 0)))) && (((( !(_x_t15_evt0 != 0)) && ( !(_x_t15_evt1 != 0))) || ((_x_t15_evt0 != 0) && ( !(_x_t15_evt1 != 0)))) || (((_x_t15_evt1 != 0) && ( !(_x_t15_evt0 != 0))) || ((_x_t15_evt0 != 0) && (_x_t15_evt1 != 0))))) && ((( !(_x_t15_l0 != 0)) && ( !(_x_t15_l1 != 0))) || (_x_t15_x <= 5.0))) && (((((t15_l0 != 0) == (_x_t15_l0 != 0)) && ((t15_l1 != 0) == (_x_t15_l1 != 0))) && ((delta + (t15_x + (-1.0 * _x_t15_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))))))) && (((((_x_t15_l0 != 0) && ( !(_x_t15_l1 != 0))) && ((t15_evt0 != 0) && ( !(t15_evt1 != 0)))) && (_x_t15_x == 0.0)) || ( !((( !(t15_l0 != 0)) && ( !(t15_l1 != 0))) && ((delta == 0.0) && ( !(( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))))))))) && (((((_x_t15_l1 != 0) && ( !(_x_t15_l0 != 0))) && ( !(t15_x <= 2.0))) && (((t15_evt0 != 0) && (t15_evt1 != 0)) && (t15_x == _x_t15_x))) || ( !(((t15_l0 != 0) && ( !(t15_l1 != 0))) && ((delta == 0.0) && ( !(( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))))))))) && (((t15_x == _x_t15_x) && (((_x_t15_l0 != 0) && (_x_t15_l1 != 0)) && ((t15_evt0 != 0) && (t15_evt1 != 0)))) || ( !(((t15_l1 != 0) && ( !(t15_l0 != 0))) && ((delta == 0.0) && ( !(( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))))))))) && ((((( !(_x_t15_l0 != 0)) && ( !(_x_t15_l1 != 0))) && (t15_x <= 5.0)) && (((t15_evt1 != 0) && ( !(t15_evt0 != 0))) && (t15_x == _x_t15_x))) || ( !(((t15_l0 != 0) && (t15_l1 != 0)) && ((delta == 0.0) && ( !(( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0))))))))) && (((((((((((( !(_x_t14_l0 != 0)) && ( !(_x_t14_l1 != 0))) || ((_x_t14_l0 != 0) && ( !(_x_t14_l1 != 0)))) || (((_x_t14_l1 != 0) && ( !(_x_t14_l0 != 0))) || ((_x_t14_l0 != 0) && (_x_t14_l1 != 0)))) && (((( !(_x_t14_evt0 != 0)) && ( !(_x_t14_evt1 != 0))) || ((_x_t14_evt0 != 0) && ( !(_x_t14_evt1 != 0)))) || (((_x_t14_evt1 != 0) && ( !(_x_t14_evt0 != 0))) || ((_x_t14_evt0 != 0) && (_x_t14_evt1 != 0))))) && ((( !(_x_t14_l0 != 0)) && ( !(_x_t14_l1 != 0))) || (_x_t14_x <= 5.0))) && (((((t14_l0 != 0) == (_x_t14_l0 != 0)) && ((t14_l1 != 0) == (_x_t14_l1 != 0))) && ((delta + (t14_x + (-1.0 * _x_t14_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))))))) && (((((_x_t14_l0 != 0) && ( !(_x_t14_l1 != 0))) && ((t14_evt0 != 0) && ( !(t14_evt1 != 0)))) && (_x_t14_x == 0.0)) || ( !((( !(t14_l0 != 0)) && ( !(t14_l1 != 0))) && ((delta == 0.0) && ( !(( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))))))))) && (((((_x_t14_l1 != 0) && ( !(_x_t14_l0 != 0))) && ( !(t14_x <= 2.0))) && (((t14_evt0 != 0) && (t14_evt1 != 0)) && (t14_x == _x_t14_x))) || ( !(((t14_l0 != 0) && ( !(t14_l1 != 0))) && ((delta == 0.0) && ( !(( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))))))))) && (((t14_x == _x_t14_x) && (((_x_t14_l0 != 0) && (_x_t14_l1 != 0)) && ((t14_evt0 != 0) && (t14_evt1 != 0)))) || ( !(((t14_l1 != 0) && ( !(t14_l0 != 0))) && ((delta == 0.0) && ( !(( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))))))))) && ((((( !(_x_t14_l0 != 0)) && ( !(_x_t14_l1 != 0))) && (t14_x <= 5.0)) && (((t14_evt1 != 0) && ( !(t14_evt0 != 0))) && (t14_x == _x_t14_x))) || ( !(((t14_l0 != 0) && (t14_l1 != 0)) && ((delta == 0.0) && ( !(( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0))))))))) && (((((((((((( !(_x_t13_l0 != 0)) && ( !(_x_t13_l1 != 0))) || ((_x_t13_l0 != 0) && ( !(_x_t13_l1 != 0)))) || (((_x_t13_l1 != 0) && ( !(_x_t13_l0 != 0))) || ((_x_t13_l0 != 0) && (_x_t13_l1 != 0)))) && (((( !(_x_t13_evt0 != 0)) && ( !(_x_t13_evt1 != 0))) || ((_x_t13_evt0 != 0) && ( !(_x_t13_evt1 != 0)))) || (((_x_t13_evt1 != 0) && ( !(_x_t13_evt0 != 0))) || ((_x_t13_evt0 != 0) && (_x_t13_evt1 != 0))))) && ((( !(_x_t13_l0 != 0)) && ( !(_x_t13_l1 != 0))) || (_x_t13_x <= 5.0))) && (((((t13_l0 != 0) == (_x_t13_l0 != 0)) && ((t13_l1 != 0) == (_x_t13_l1 != 0))) && ((delta + (t13_x + (-1.0 * _x_t13_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))))))) && (((((_x_t13_l0 != 0) && ( !(_x_t13_l1 != 0))) && ((t13_evt0 != 0) && ( !(t13_evt1 != 0)))) && (_x_t13_x == 0.0)) || ( !((( !(t13_l0 != 0)) && ( !(t13_l1 != 0))) && ((delta == 0.0) && ( !(( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))))))))) && (((((_x_t13_l1 != 0) && ( !(_x_t13_l0 != 0))) && ( !(t13_x <= 2.0))) && (((t13_evt0 != 0) && (t13_evt1 != 0)) && (t13_x == _x_t13_x))) || ( !(((t13_l0 != 0) && ( !(t13_l1 != 0))) && ((delta == 0.0) && ( !(( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))))))))) && (((t13_x == _x_t13_x) && (((_x_t13_l0 != 0) && (_x_t13_l1 != 0)) && ((t13_evt0 != 0) && (t13_evt1 != 0)))) || ( !(((t13_l1 != 0) && ( !(t13_l0 != 0))) && ((delta == 0.0) && ( !(( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))))))))) && ((((( !(_x_t13_l0 != 0)) && ( !(_x_t13_l1 != 0))) && (t13_x <= 5.0)) && (((t13_evt1 != 0) && ( !(t13_evt0 != 0))) && (t13_x == _x_t13_x))) || ( !(((t13_l0 != 0) && (t13_l1 != 0)) && ((delta == 0.0) && ( !(( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0))))))))) && (((((((((((( !(_x_t12_l0 != 0)) && ( !(_x_t12_l1 != 0))) || ((_x_t12_l0 != 0) && ( !(_x_t12_l1 != 0)))) || (((_x_t12_l1 != 0) && ( !(_x_t12_l0 != 0))) || ((_x_t12_l0 != 0) && (_x_t12_l1 != 0)))) && (((( !(_x_t12_evt0 != 0)) && ( !(_x_t12_evt1 != 0))) || ((_x_t12_evt0 != 0) && ( !(_x_t12_evt1 != 0)))) || (((_x_t12_evt1 != 0) && ( !(_x_t12_evt0 != 0))) || ((_x_t12_evt0 != 0) && (_x_t12_evt1 != 0))))) && ((( !(_x_t12_l0 != 0)) && ( !(_x_t12_l1 != 0))) || (_x_t12_x <= 5.0))) && (((((t12_l0 != 0) == (_x_t12_l0 != 0)) && ((t12_l1 != 0) == (_x_t12_l1 != 0))) && ((delta + (t12_x + (-1.0 * _x_t12_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))))))) && (((((_x_t12_l0 != 0) && ( !(_x_t12_l1 != 0))) && ((t12_evt0 != 0) && ( !(t12_evt1 != 0)))) && (_x_t12_x == 0.0)) || ( !((( !(t12_l0 != 0)) && ( !(t12_l1 != 0))) && ((delta == 0.0) && ( !(( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))))))))) && (((((_x_t12_l1 != 0) && ( !(_x_t12_l0 != 0))) && ( !(t12_x <= 2.0))) && (((t12_evt0 != 0) && (t12_evt1 != 0)) && (t12_x == _x_t12_x))) || ( !(((t12_l0 != 0) && ( !(t12_l1 != 0))) && ((delta == 0.0) && ( !(( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))))))))) && (((t12_x == _x_t12_x) && (((_x_t12_l0 != 0) && (_x_t12_l1 != 0)) && ((t12_evt0 != 0) && (t12_evt1 != 0)))) || ( !(((t12_l1 != 0) && ( !(t12_l0 != 0))) && ((delta == 0.0) && ( !(( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))))))))) && ((((( !(_x_t12_l0 != 0)) && ( !(_x_t12_l1 != 0))) && (t12_x <= 5.0)) && (((t12_evt1 != 0) && ( !(t12_evt0 != 0))) && (t12_x == _x_t12_x))) || ( !(((t12_l0 != 0) && (t12_l1 != 0)) && ((delta == 0.0) && ( !(( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0))))))))) && (((((((((((( !(_x_t11_l0 != 0)) && ( !(_x_t11_l1 != 0))) || ((_x_t11_l0 != 0) && ( !(_x_t11_l1 != 0)))) || (((_x_t11_l1 != 0) && ( !(_x_t11_l0 != 0))) || ((_x_t11_l0 != 0) && (_x_t11_l1 != 0)))) && (((( !(_x_t11_evt0 != 0)) && ( !(_x_t11_evt1 != 0))) || ((_x_t11_evt0 != 0) && ( !(_x_t11_evt1 != 0)))) || (((_x_t11_evt1 != 0) && ( !(_x_t11_evt0 != 0))) || ((_x_t11_evt0 != 0) && (_x_t11_evt1 != 0))))) && ((( !(_x_t11_l0 != 0)) && ( !(_x_t11_l1 != 0))) || (_x_t11_x <= 5.0))) && (((((t11_l0 != 0) == (_x_t11_l0 != 0)) && ((t11_l1 != 0) == (_x_t11_l1 != 0))) && ((delta + (t11_x + (-1.0 * _x_t11_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))))))) && (((((_x_t11_l0 != 0) && ( !(_x_t11_l1 != 0))) && ((t11_evt0 != 0) && ( !(t11_evt1 != 0)))) && (_x_t11_x == 0.0)) || ( !((( !(t11_l0 != 0)) && ( !(t11_l1 != 0))) && ((delta == 0.0) && ( !(( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))))))))) && (((((_x_t11_l1 != 0) && ( !(_x_t11_l0 != 0))) && ( !(t11_x <= 2.0))) && (((t11_evt0 != 0) && (t11_evt1 != 0)) && (t11_x == _x_t11_x))) || ( !(((t11_l0 != 0) && ( !(t11_l1 != 0))) && ((delta == 0.0) && ( !(( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))))))))) && (((t11_x == _x_t11_x) && (((_x_t11_l0 != 0) && (_x_t11_l1 != 0)) && ((t11_evt0 != 0) && (t11_evt1 != 0)))) || ( !(((t11_l1 != 0) && ( !(t11_l0 != 0))) && ((delta == 0.0) && ( !(( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))))))))) && ((((( !(_x_t11_l0 != 0)) && ( !(_x_t11_l1 != 0))) && (t11_x <= 5.0)) && (((t11_evt1 != 0) && ( !(t11_evt0 != 0))) && (t11_x == _x_t11_x))) || ( !(((t11_l0 != 0) && (t11_l1 != 0)) && ((delta == 0.0) && ( !(( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0))))))))) && (((((((((((( !(_x_t10_l0 != 0)) && ( !(_x_t10_l1 != 0))) || ((_x_t10_l0 != 0) && ( !(_x_t10_l1 != 0)))) || (((_x_t10_l1 != 0) && ( !(_x_t10_l0 != 0))) || ((_x_t10_l0 != 0) && (_x_t10_l1 != 0)))) && (((( !(_x_t10_evt0 != 0)) && ( !(_x_t10_evt1 != 0))) || ((_x_t10_evt0 != 0) && ( !(_x_t10_evt1 != 0)))) || (((_x_t10_evt1 != 0) && ( !(_x_t10_evt0 != 0))) || ((_x_t10_evt0 != 0) && (_x_t10_evt1 != 0))))) && ((( !(_x_t10_l0 != 0)) && ( !(_x_t10_l1 != 0))) || (_x_t10_x <= 5.0))) && (((((t10_l0 != 0) == (_x_t10_l0 != 0)) && ((t10_l1 != 0) == (_x_t10_l1 != 0))) && ((delta + (t10_x + (-1.0 * _x_t10_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))))))) && (((((_x_t10_l0 != 0) && ( !(_x_t10_l1 != 0))) && ((t10_evt0 != 0) && ( !(t10_evt1 != 0)))) && (_x_t10_x == 0.0)) || ( !((( !(t10_l0 != 0)) && ( !(t10_l1 != 0))) && ((delta == 0.0) && ( !(( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))))))))) && (((((_x_t10_l1 != 0) && ( !(_x_t10_l0 != 0))) && ( !(t10_x <= 2.0))) && (((t10_evt0 != 0) && (t10_evt1 != 0)) && (t10_x == _x_t10_x))) || ( !(((t10_l0 != 0) && ( !(t10_l1 != 0))) && ((delta == 0.0) && ( !(( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))))))))) && (((t10_x == _x_t10_x) && (((_x_t10_l0 != 0) && (_x_t10_l1 != 0)) && ((t10_evt0 != 0) && (t10_evt1 != 0)))) || ( !(((t10_l1 != 0) && ( !(t10_l0 != 0))) && ((delta == 0.0) && ( !(( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))))))))) && ((((( !(_x_t10_l0 != 0)) && ( !(_x_t10_l1 != 0))) && (t10_x <= 5.0)) && (((t10_evt1 != 0) && ( !(t10_evt0 != 0))) && (t10_x == _x_t10_x))) || ( !(((t10_l0 != 0) && (t10_l1 != 0)) && ((delta == 0.0) && ( !(( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0))))))))) && (((((((((((( !(_x_t9_l0 != 0)) && ( !(_x_t9_l1 != 0))) || ((_x_t9_l0 != 0) && ( !(_x_t9_l1 != 0)))) || (((_x_t9_l1 != 0) && ( !(_x_t9_l0 != 0))) || ((_x_t9_l0 != 0) && (_x_t9_l1 != 0)))) && (((( !(_x_t9_evt0 != 0)) && ( !(_x_t9_evt1 != 0))) || ((_x_t9_evt0 != 0) && ( !(_x_t9_evt1 != 0)))) || (((_x_t9_evt1 != 0) && ( !(_x_t9_evt0 != 0))) || ((_x_t9_evt0 != 0) && (_x_t9_evt1 != 0))))) && ((( !(_x_t9_l0 != 0)) && ( !(_x_t9_l1 != 0))) || (_x_t9_x <= 5.0))) && (((((t9_l0 != 0) == (_x_t9_l0 != 0)) && ((t9_l1 != 0) == (_x_t9_l1 != 0))) && ((delta + (t9_x + (-1.0 * _x_t9_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))))))) && (((((_x_t9_l0 != 0) && ( !(_x_t9_l1 != 0))) && ((t9_evt0 != 0) && ( !(t9_evt1 != 0)))) && (_x_t9_x == 0.0)) || ( !((( !(t9_l0 != 0)) && ( !(t9_l1 != 0))) && ((delta == 0.0) && ( !(( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))))))))) && (((((_x_t9_l1 != 0) && ( !(_x_t9_l0 != 0))) && ( !(t9_x <= 2.0))) && (((t9_evt0 != 0) && (t9_evt1 != 0)) && (t9_x == _x_t9_x))) || ( !(((t9_l0 != 0) && ( !(t9_l1 != 0))) && ((delta == 0.0) && ( !(( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))))))))) && (((t9_x == _x_t9_x) && (((_x_t9_l0 != 0) && (_x_t9_l1 != 0)) && ((t9_evt0 != 0) && (t9_evt1 != 0)))) || ( !(((t9_l1 != 0) && ( !(t9_l0 != 0))) && ((delta == 0.0) && ( !(( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))))))))) && ((((( !(_x_t9_l0 != 0)) && ( !(_x_t9_l1 != 0))) && (t9_x <= 5.0)) && (((t9_evt1 != 0) && ( !(t9_evt0 != 0))) && (t9_x == _x_t9_x))) || ( !(((t9_l0 != 0) && (t9_l1 != 0)) && ((delta == 0.0) && ( !(( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0))))))))) && (((((((((((( !(_x_t8_l0 != 0)) && ( !(_x_t8_l1 != 0))) || ((_x_t8_l0 != 0) && ( !(_x_t8_l1 != 0)))) || (((_x_t8_l1 != 0) && ( !(_x_t8_l0 != 0))) || ((_x_t8_l0 != 0) && (_x_t8_l1 != 0)))) && (((( !(_x_t8_evt0 != 0)) && ( !(_x_t8_evt1 != 0))) || ((_x_t8_evt0 != 0) && ( !(_x_t8_evt1 != 0)))) || (((_x_t8_evt1 != 0) && ( !(_x_t8_evt0 != 0))) || ((_x_t8_evt0 != 0) && (_x_t8_evt1 != 0))))) && ((( !(_x_t8_l0 != 0)) && ( !(_x_t8_l1 != 0))) || (_x_t8_x <= 5.0))) && (((((t8_l0 != 0) == (_x_t8_l0 != 0)) && ((t8_l1 != 0) == (_x_t8_l1 != 0))) && ((delta + (t8_x + (-1.0 * _x_t8_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))))))) && (((((_x_t8_l0 != 0) && ( !(_x_t8_l1 != 0))) && ((t8_evt0 != 0) && ( !(t8_evt1 != 0)))) && (_x_t8_x == 0.0)) || ( !((( !(t8_l0 != 0)) && ( !(t8_l1 != 0))) && ((delta == 0.0) && ( !(( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))))))))) && (((((_x_t8_l1 != 0) && ( !(_x_t8_l0 != 0))) && ( !(t8_x <= 2.0))) && (((t8_evt0 != 0) && (t8_evt1 != 0)) && (t8_x == _x_t8_x))) || ( !(((t8_l0 != 0) && ( !(t8_l1 != 0))) && ((delta == 0.0) && ( !(( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))))))))) && (((t8_x == _x_t8_x) && (((_x_t8_l0 != 0) && (_x_t8_l1 != 0)) && ((t8_evt0 != 0) && (t8_evt1 != 0)))) || ( !(((t8_l1 != 0) && ( !(t8_l0 != 0))) && ((delta == 0.0) && ( !(( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))))))))) && ((((( !(_x_t8_l0 != 0)) && ( !(_x_t8_l1 != 0))) && (t8_x <= 5.0)) && (((t8_evt1 != 0) && ( !(t8_evt0 != 0))) && (t8_x == _x_t8_x))) || ( !(((t8_l0 != 0) && (t8_l1 != 0)) && ((delta == 0.0) && ( !(( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0))))))))) && (((((((((((( !(_x_t7_l0 != 0)) && ( !(_x_t7_l1 != 0))) || ((_x_t7_l0 != 0) && ( !(_x_t7_l1 != 0)))) || (((_x_t7_l1 != 0) && ( !(_x_t7_l0 != 0))) || ((_x_t7_l0 != 0) && (_x_t7_l1 != 0)))) && (((( !(_x_t7_evt0 != 0)) && ( !(_x_t7_evt1 != 0))) || ((_x_t7_evt0 != 0) && ( !(_x_t7_evt1 != 0)))) || (((_x_t7_evt1 != 0) && ( !(_x_t7_evt0 != 0))) || ((_x_t7_evt0 != 0) && (_x_t7_evt1 != 0))))) && ((( !(_x_t7_l0 != 0)) && ( !(_x_t7_l1 != 0))) || (_x_t7_x <= 5.0))) && (((((t7_l0 != 0) == (_x_t7_l0 != 0)) && ((t7_l1 != 0) == (_x_t7_l1 != 0))) && ((delta + (t7_x + (-1.0 * _x_t7_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))))))) && (((((_x_t7_l0 != 0) && ( !(_x_t7_l1 != 0))) && ((t7_evt0 != 0) && ( !(t7_evt1 != 0)))) && (_x_t7_x == 0.0)) || ( !((( !(t7_l0 != 0)) && ( !(t7_l1 != 0))) && ((delta == 0.0) && ( !(( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))))))))) && (((((_x_t7_l1 != 0) && ( !(_x_t7_l0 != 0))) && ( !(t7_x <= 2.0))) && (((t7_evt0 != 0) && (t7_evt1 != 0)) && (t7_x == _x_t7_x))) || ( !(((t7_l0 != 0) && ( !(t7_l1 != 0))) && ((delta == 0.0) && ( !(( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))))))))) && (((t7_x == _x_t7_x) && (((_x_t7_l0 != 0) && (_x_t7_l1 != 0)) && ((t7_evt0 != 0) && (t7_evt1 != 0)))) || ( !(((t7_l1 != 0) && ( !(t7_l0 != 0))) && ((delta == 0.0) && ( !(( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))))))))) && ((((( !(_x_t7_l0 != 0)) && ( !(_x_t7_l1 != 0))) && (t7_x <= 5.0)) && (((t7_evt1 != 0) && ( !(t7_evt0 != 0))) && (t7_x == _x_t7_x))) || ( !(((t7_l0 != 0) && (t7_l1 != 0)) && ((delta == 0.0) && ( !(( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0))))))))) && (((((((((((( !(_x_t6_l0 != 0)) && ( !(_x_t6_l1 != 0))) || ((_x_t6_l0 != 0) && ( !(_x_t6_l1 != 0)))) || (((_x_t6_l1 != 0) && ( !(_x_t6_l0 != 0))) || ((_x_t6_l0 != 0) && (_x_t6_l1 != 0)))) && (((( !(_x_t6_evt0 != 0)) && ( !(_x_t6_evt1 != 0))) || ((_x_t6_evt0 != 0) && ( !(_x_t6_evt1 != 0)))) || (((_x_t6_evt1 != 0) && ( !(_x_t6_evt0 != 0))) || ((_x_t6_evt0 != 0) && (_x_t6_evt1 != 0))))) && ((( !(_x_t6_l0 != 0)) && ( !(_x_t6_l1 != 0))) || (_x_t6_x <= 5.0))) && (((((t6_l0 != 0) == (_x_t6_l0 != 0)) && ((t6_l1 != 0) == (_x_t6_l1 != 0))) && ((delta + (t6_x + (-1.0 * _x_t6_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))))))) && (((((_x_t6_l0 != 0) && ( !(_x_t6_l1 != 0))) && ((t6_evt0 != 0) && ( !(t6_evt1 != 0)))) && (_x_t6_x == 0.0)) || ( !((( !(t6_l0 != 0)) && ( !(t6_l1 != 0))) && ((delta == 0.0) && ( !(( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))))))))) && (((((_x_t6_l1 != 0) && ( !(_x_t6_l0 != 0))) && ( !(t6_x <= 2.0))) && (((t6_evt0 != 0) && (t6_evt1 != 0)) && (t6_x == _x_t6_x))) || ( !(((t6_l0 != 0) && ( !(t6_l1 != 0))) && ((delta == 0.0) && ( !(( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))))))))) && (((t6_x == _x_t6_x) && (((_x_t6_l0 != 0) && (_x_t6_l1 != 0)) && ((t6_evt0 != 0) && (t6_evt1 != 0)))) || ( !(((t6_l1 != 0) && ( !(t6_l0 != 0))) && ((delta == 0.0) && ( !(( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))))))))) && ((((( !(_x_t6_l0 != 0)) && ( !(_x_t6_l1 != 0))) && (t6_x <= 5.0)) && (((t6_evt1 != 0) && ( !(t6_evt0 != 0))) && (t6_x == _x_t6_x))) || ( !(((t6_l0 != 0) && (t6_l1 != 0)) && ((delta == 0.0) && ( !(( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0))))))))) && (((((((((((( !(_x_t5_l0 != 0)) && ( !(_x_t5_l1 != 0))) || ((_x_t5_l0 != 0) && ( !(_x_t5_l1 != 0)))) || (((_x_t5_l1 != 0) && ( !(_x_t5_l0 != 0))) || ((_x_t5_l0 != 0) && (_x_t5_l1 != 0)))) && (((( !(_x_t5_evt0 != 0)) && ( !(_x_t5_evt1 != 0))) || ((_x_t5_evt0 != 0) && ( !(_x_t5_evt1 != 0)))) || (((_x_t5_evt1 != 0) && ( !(_x_t5_evt0 != 0))) || ((_x_t5_evt0 != 0) && (_x_t5_evt1 != 0))))) && ((( !(_x_t5_l0 != 0)) && ( !(_x_t5_l1 != 0))) || (_x_t5_x <= 5.0))) && (((((t5_l0 != 0) == (_x_t5_l0 != 0)) && ((t5_l1 != 0) == (_x_t5_l1 != 0))) && ((delta + (t5_x + (-1.0 * _x_t5_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))))))) && (((((_x_t5_l0 != 0) && ( !(_x_t5_l1 != 0))) && ((t5_evt0 != 0) && ( !(t5_evt1 != 0)))) && (_x_t5_x == 0.0)) || ( !((( !(t5_l0 != 0)) && ( !(t5_l1 != 0))) && ((delta == 0.0) && ( !(( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))))))))) && (((((_x_t5_l1 != 0) && ( !(_x_t5_l0 != 0))) && ( !(t5_x <= 2.0))) && (((t5_evt0 != 0) && (t5_evt1 != 0)) && (t5_x == _x_t5_x))) || ( !(((t5_l0 != 0) && ( !(t5_l1 != 0))) && ((delta == 0.0) && ( !(( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))))))))) && (((t5_x == _x_t5_x) && (((_x_t5_l0 != 0) && (_x_t5_l1 != 0)) && ((t5_evt0 != 0) && (t5_evt1 != 0)))) || ( !(((t5_l1 != 0) && ( !(t5_l0 != 0))) && ((delta == 0.0) && ( !(( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))))))))) && ((((( !(_x_t5_l0 != 0)) && ( !(_x_t5_l1 != 0))) && (t5_x <= 5.0)) && (((t5_evt1 != 0) && ( !(t5_evt0 != 0))) && (t5_x == _x_t5_x))) || ( !(((t5_l0 != 0) && (t5_l1 != 0)) && ((delta == 0.0) && ( !(( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0))))))))) && (((((((((((( !(_x_t4_l0 != 0)) && ( !(_x_t4_l1 != 0))) || ((_x_t4_l0 != 0) && ( !(_x_t4_l1 != 0)))) || (((_x_t4_l1 != 0) && ( !(_x_t4_l0 != 0))) || ((_x_t4_l0 != 0) && (_x_t4_l1 != 0)))) && (((( !(_x_t4_evt0 != 0)) && ( !(_x_t4_evt1 != 0))) || ((_x_t4_evt0 != 0) && ( !(_x_t4_evt1 != 0)))) || (((_x_t4_evt1 != 0) && ( !(_x_t4_evt0 != 0))) || ((_x_t4_evt0 != 0) && (_x_t4_evt1 != 0))))) && ((( !(_x_t4_l0 != 0)) && ( !(_x_t4_l1 != 0))) || (_x_t4_x <= 5.0))) && (((((t4_l0 != 0) == (_x_t4_l0 != 0)) && ((t4_l1 != 0) == (_x_t4_l1 != 0))) && ((delta + (t4_x + (-1.0 * _x_t4_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))))))) && (((((_x_t4_l0 != 0) && ( !(_x_t4_l1 != 0))) && ((t4_evt0 != 0) && ( !(t4_evt1 != 0)))) && (_x_t4_x == 0.0)) || ( !((( !(t4_l0 != 0)) && ( !(t4_l1 != 0))) && ((delta == 0.0) && ( !(( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))))))))) && (((((_x_t4_l1 != 0) && ( !(_x_t4_l0 != 0))) && ( !(t4_x <= 2.0))) && (((t4_evt0 != 0) && (t4_evt1 != 0)) && (t4_x == _x_t4_x))) || ( !(((t4_l0 != 0) && ( !(t4_l1 != 0))) && ((delta == 0.0) && ( !(( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))))))))) && (((t4_x == _x_t4_x) && (((_x_t4_l0 != 0) && (_x_t4_l1 != 0)) && ((t4_evt0 != 0) && (t4_evt1 != 0)))) || ( !(((t4_l1 != 0) && ( !(t4_l0 != 0))) && ((delta == 0.0) && ( !(( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))))))))) && ((((( !(_x_t4_l0 != 0)) && ( !(_x_t4_l1 != 0))) && (t4_x <= 5.0)) && (((t4_evt1 != 0) && ( !(t4_evt0 != 0))) && (t4_x == _x_t4_x))) || ( !(((t4_l0 != 0) && (t4_l1 != 0)) && ((delta == 0.0) && ( !(( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0))))))))) && (((((((((((( !(_x_t3_l0 != 0)) && ( !(_x_t3_l1 != 0))) || ((_x_t3_l0 != 0) && ( !(_x_t3_l1 != 0)))) || (((_x_t3_l1 != 0) && ( !(_x_t3_l0 != 0))) || ((_x_t3_l0 != 0) && (_x_t3_l1 != 0)))) && (((( !(_x_t3_evt0 != 0)) && ( !(_x_t3_evt1 != 0))) || ((_x_t3_evt0 != 0) && ( !(_x_t3_evt1 != 0)))) || (((_x_t3_evt1 != 0) && ( !(_x_t3_evt0 != 0))) || ((_x_t3_evt0 != 0) && (_x_t3_evt1 != 0))))) && ((( !(_x_t3_l0 != 0)) && ( !(_x_t3_l1 != 0))) || (_x_t3_x <= 5.0))) && (((((t3_l0 != 0) == (_x_t3_l0 != 0)) && ((t3_l1 != 0) == (_x_t3_l1 != 0))) && ((delta + (t3_x + (-1.0 * _x_t3_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))))))) && (((((_x_t3_l0 != 0) && ( !(_x_t3_l1 != 0))) && ((t3_evt0 != 0) && ( !(t3_evt1 != 0)))) && (_x_t3_x == 0.0)) || ( !((( !(t3_l0 != 0)) && ( !(t3_l1 != 0))) && ((delta == 0.0) && ( !(( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))))))))) && (((((_x_t3_l1 != 0) && ( !(_x_t3_l0 != 0))) && ( !(t3_x <= 2.0))) && (((t3_evt0 != 0) && (t3_evt1 != 0)) && (t3_x == _x_t3_x))) || ( !(((t3_l0 != 0) && ( !(t3_l1 != 0))) && ((delta == 0.0) && ( !(( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))))))))) && (((t3_x == _x_t3_x) && (((_x_t3_l0 != 0) && (_x_t3_l1 != 0)) && ((t3_evt0 != 0) && (t3_evt1 != 0)))) || ( !(((t3_l1 != 0) && ( !(t3_l0 != 0))) && ((delta == 0.0) && ( !(( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))))))))) && ((((( !(_x_t3_l0 != 0)) && ( !(_x_t3_l1 != 0))) && (t3_x <= 5.0)) && (((t3_evt1 != 0) && ( !(t3_evt0 != 0))) && (t3_x == _x_t3_x))) || ( !(((t3_l0 != 0) && (t3_l1 != 0)) && ((delta == 0.0) && ( !(( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0))))))))) && (((((((((((( !(_x_t2_l0 != 0)) && ( !(_x_t2_l1 != 0))) || ((_x_t2_l0 != 0) && ( !(_x_t2_l1 != 0)))) || (((_x_t2_l1 != 0) && ( !(_x_t2_l0 != 0))) || ((_x_t2_l0 != 0) && (_x_t2_l1 != 0)))) && (((( !(_x_t2_evt0 != 0)) && ( !(_x_t2_evt1 != 0))) || ((_x_t2_evt0 != 0) && ( !(_x_t2_evt1 != 0)))) || (((_x_t2_evt1 != 0) && ( !(_x_t2_evt0 != 0))) || ((_x_t2_evt0 != 0) && (_x_t2_evt1 != 0))))) && ((( !(_x_t2_l0 != 0)) && ( !(_x_t2_l1 != 0))) || (_x_t2_x <= 5.0))) && (((((t2_l0 != 0) == (_x_t2_l0 != 0)) && ((t2_l1 != 0) == (_x_t2_l1 != 0))) && ((delta + (t2_x + (-1.0 * _x_t2_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))))))) && (((((_x_t2_l0 != 0) && ( !(_x_t2_l1 != 0))) && ((t2_evt0 != 0) && ( !(t2_evt1 != 0)))) && (_x_t2_x == 0.0)) || ( !((( !(t2_l0 != 0)) && ( !(t2_l1 != 0))) && ((delta == 0.0) && ( !(( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))))))))) && (((((_x_t2_l1 != 0) && ( !(_x_t2_l0 != 0))) && ( !(t2_x <= 2.0))) && (((t2_evt0 != 0) && (t2_evt1 != 0)) && (t2_x == _x_t2_x))) || ( !(((t2_l0 != 0) && ( !(t2_l1 != 0))) && ((delta == 0.0) && ( !(( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))))))))) && (((t2_x == _x_t2_x) && (((_x_t2_l0 != 0) && (_x_t2_l1 != 0)) && ((t2_evt0 != 0) && (t2_evt1 != 0)))) || ( !(((t2_l1 != 0) && ( !(t2_l0 != 0))) && ((delta == 0.0) && ( !(( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))))))))) && ((((( !(_x_t2_l0 != 0)) && ( !(_x_t2_l1 != 0))) && (t2_x <= 5.0)) && (((t2_evt1 != 0) && ( !(t2_evt0 != 0))) && (t2_x == _x_t2_x))) || ( !(((t2_l0 != 0) && (t2_l1 != 0)) && ((delta == 0.0) && ( !(( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0))))))))) && (((((((((((( !(_x_t1_l0 != 0)) && ( !(_x_t1_l1 != 0))) || ((_x_t1_l0 != 0) && ( !(_x_t1_l1 != 0)))) || (((_x_t1_l1 != 0) && ( !(_x_t1_l0 != 0))) || ((_x_t1_l0 != 0) && (_x_t1_l1 != 0)))) && (((( !(_x_t1_evt0 != 0)) && ( !(_x_t1_evt1 != 0))) || ((_x_t1_evt0 != 0) && ( !(_x_t1_evt1 != 0)))) || (((_x_t1_evt1 != 0) && ( !(_x_t1_evt0 != 0))) || ((_x_t1_evt0 != 0) && (_x_t1_evt1 != 0))))) && ((( !(_x_t1_l0 != 0)) && ( !(_x_t1_l1 != 0))) || (_x_t1_x <= 5.0))) && (((((t1_l0 != 0) == (_x_t1_l0 != 0)) && ((t1_l1 != 0) == (_x_t1_l1 != 0))) && ((delta + (t1_x + (-1.0 * _x_t1_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))))))) && (((((_x_t1_l0 != 0) && ( !(_x_t1_l1 != 0))) && ((t1_evt0 != 0) && ( !(t1_evt1 != 0)))) && (_x_t1_x == 0.0)) || ( !((( !(t1_l0 != 0)) && ( !(t1_l1 != 0))) && ((delta == 0.0) && ( !(( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))))))))) && (((((_x_t1_l1 != 0) && ( !(_x_t1_l0 != 0))) && ( !(t1_x <= 2.0))) && (((t1_evt0 != 0) && (t1_evt1 != 0)) && (t1_x == _x_t1_x))) || ( !(((t1_l0 != 0) && ( !(t1_l1 != 0))) && ((delta == 0.0) && ( !(( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))))))))) && (((t1_x == _x_t1_x) && (((_x_t1_l0 != 0) && (_x_t1_l1 != 0)) && ((t1_evt0 != 0) && (t1_evt1 != 0)))) || ( !(((t1_l1 != 0) && ( !(t1_l0 != 0))) && ((delta == 0.0) && ( !(( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))))))))) && ((((( !(_x_t1_l0 != 0)) && ( !(_x_t1_l1 != 0))) && (t1_x <= 5.0)) && (((t1_evt1 != 0) && ( !(t1_evt0 != 0))) && (t1_x == _x_t1_x))) || ( !(((t1_l0 != 0) && (t1_l1 != 0)) && ((delta == 0.0) && ( !(( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0))))))))) && (((((((((((( !(_x_t0_l0 != 0)) && ( !(_x_t0_l1 != 0))) || ((_x_t0_l0 != 0) && ( !(_x_t0_l1 != 0)))) || (((_x_t0_l1 != 0) && ( !(_x_t0_l0 != 0))) || ((_x_t0_l0 != 0) && (_x_t0_l1 != 0)))) && (((( !(_x_t0_evt0 != 0)) && ( !(_x_t0_evt1 != 0))) || ((_x_t0_evt0 != 0) && ( !(_x_t0_evt1 != 0)))) || (((_x_t0_evt1 != 0) && ( !(_x_t0_evt0 != 0))) || ((_x_t0_evt0 != 0) && (_x_t0_evt1 != 0))))) && ((( !(_x_t0_l0 != 0)) && ( !(_x_t0_l1 != 0))) || (_x_t0_x <= 5.0))) && (((((t0_l0 != 0) == (_x_t0_l0 != 0)) && ((t0_l1 != 0) == (_x_t0_l1 != 0))) && ((delta + (t0_x + (-1.0 * _x_t0_x))) == 0.0)) || ( !(( !(delta <= 0.0)) || (( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))))))) && (((((_x_t0_l0 != 0) && ( !(_x_t0_l1 != 0))) && ((t0_evt0 != 0) && ( !(t0_evt1 != 0)))) && (_x_t0_x == 0.0)) || ( !((( !(t0_l0 != 0)) && ( !(t0_l1 != 0))) && ((delta == 0.0) && ( !(( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))))))))) && (((((_x_t0_l1 != 0) && ( !(_x_t0_l0 != 0))) && ( !(t0_x <= 2.0))) && (((t0_evt0 != 0) && (t0_evt1 != 0)) && (t0_x == _x_t0_x))) || ( !(((t0_l0 != 0) && ( !(t0_l1 != 0))) && ((delta == 0.0) && ( !(( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))))))))) && (((t0_x == _x_t0_x) && (((_x_t0_l0 != 0) && (_x_t0_l1 != 0)) && ((t0_evt0 != 0) && (t0_evt1 != 0)))) || ( !(((t0_l1 != 0) && ( !(t0_l0 != 0))) && ((delta == 0.0) && ( !(( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))))))))) && ((((( !(_x_t0_l0 != 0)) && ( !(_x_t0_l1 != 0))) && (t0_x <= 5.0)) && (((t0_evt1 != 0) && ( !(t0_evt0 != 0))) && (t0_x == _x_t0_x))) || ( !(((t0_l0 != 0) && (t0_l1 != 0)) && ((delta == 0.0) && ( !(( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0))))))))) && (((((((((((((((((( !(_x_controller_l0 != 0)) && ( !(_x_controller_l1 != 0))) || ((_x_controller_l0 != 0) && ( !(_x_controller_l1 != 0)))) || (((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0))) || ((_x_controller_l0 != 0) && (_x_controller_l1 != 0)))) && (((( !(_x_controller_evt2 != 0)) && (( !(_x_controller_evt0 != 0)) && ( !(_x_controller_evt1 != 0)))) || (( !(_x_controller_evt2 != 0)) && ((_x_controller_evt0 != 0) && ( !(_x_controller_evt1 != 0))))) || ((( !(_x_controller_evt2 != 0)) && ((_x_controller_evt1 != 0) && ( !(_x_controller_evt0 != 0)))) || ((( !(_x_controller_evt2 != 0)) && ((_x_controller_evt0 != 0) && (_x_controller_evt1 != 0))) || ((_x_controller_evt2 != 0) && (( !(_x_controller_evt0 != 0)) && ( !(_x_controller_evt1 != 0)))))))) && ((((((((((((((((((((((((((((((_x_controller_cnt == 0) || (_x_controller_cnt == 1)) || (_x_controller_cnt == 2)) || (_x_controller_cnt == 3)) || (_x_controller_cnt == 4)) || (_x_controller_cnt == 5)) || (_x_controller_cnt == 6)) || (_x_controller_cnt == 7)) || (_x_controller_cnt == 8)) || (_x_controller_cnt == 9)) || (_x_controller_cnt == 10)) || (_x_controller_cnt == 11)) || (_x_controller_cnt == 12)) || (_x_controller_cnt == 13)) || (_x_controller_cnt == 14)) || (_x_controller_cnt == 15)) || (_x_controller_cnt == 16)) || (_x_controller_cnt == 17)) || (_x_controller_cnt == 18)) || (_x_controller_cnt == 19)) || (_x_controller_cnt == 20)) || (_x_controller_cnt == 21)) || (_x_controller_cnt == 22)) || (_x_controller_cnt == 23)) || (_x_controller_cnt == 24)) || (_x_controller_cnt == 25)) || (_x_controller_cnt == 26)) || (_x_controller_cnt == 27)) || (_x_controller_cnt == 28)) || (_x_controller_cnt == 29))) && ((_x_controller_z <= 1.0) || ( !(((_x_controller_l0 != 0) && ( !(_x_controller_l1 != 0))) || ((_x_controller_l0 != 0) && (_x_controller_l1 != 0)))))) && ((((((controller_l0 != 0) == (_x_controller_l0 != 0)) && ((controller_l1 != 0) == (_x_controller_l1 != 0))) && ((delta + (controller_z + (-1.0 * _x_controller_z))) == 0.0)) && (controller_cnt == _x_controller_cnt)) || ( !(( !(delta <= 0.0)) || (( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))) && (((((_x_controller_l0 != 0) && ( !(_x_controller_l1 != 0))) && (( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0))))) && ((_x_controller_cnt == 1) && (_x_controller_z == 0.0))) || ( !((( !(controller_l0 != 0)) && ( !(controller_l1 != 0))) && ((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))))) && (((controller_z == _x_controller_z) && (((_x_controller_l0 != 0) && ( !(_x_controller_l1 != 0))) || ((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0))))) || ( !(((controller_l0 != 0) && ( !(controller_l1 != 0))) && ((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))))) && ((((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0)))) && ((controller_cnt + (-1 * _x_controller_cnt)) == -1)) || ((( !(controller_evt2 != 0)) && ((controller_evt1 != 0) && ( !(controller_evt0 != 0)))) && ((controller_cnt + (-1 * _x_controller_cnt)) == 1))) || ( !(((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))) && (((controller_l0 != 0) && ( !(controller_l1 != 0))) && ((_x_controller_l0 != 0) && ( !(_x_controller_l1 != 0)))))))) && (((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && (controller_evt1 != 0))) && ((controller_cnt == _x_controller_cnt) && (controller_z == 1.0))) || ( !(((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))) && (((controller_l0 != 0) && ( !(controller_l1 != 0))) && ((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0)))))))) && ((((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0))) || ((_x_controller_l0 != 0) && (_x_controller_l1 != 0))) || ( !(((controller_l1 != 0) && ( !(controller_l0 != 0))) && ((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))))) && (((controller_z == _x_controller_z) && (((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0)))) && ((controller_cnt + (-1 * _x_controller_cnt)) == -1)) || (((( !(controller_evt2 != 0)) && ((controller_evt1 != 0) && ( !(controller_evt0 != 0)))) && ((controller_cnt + (-1 * _x_controller_cnt)) == 1)) && ( !(controller_cnt <= 1))))) || ( !(((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))) && (((controller_l1 != 0) && ( !(controller_l0 != 0))) && ((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0)))))))) && ((((( !(controller_evt2 != 0)) && ((controller_evt1 != 0) && ( !(controller_evt0 != 0)))) && (controller_cnt == 1)) && ((_x_controller_cnt == 0) && (_x_controller_z == 0.0))) || ( !(((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))) && (((controller_l1 != 0) && ( !(controller_l0 != 0))) && ((_x_controller_l0 != 0) && (_x_controller_l1 != 0))))))) && (((controller_z == _x_controller_z) && ((( !(_x_controller_l0 != 0)) && ( !(_x_controller_l1 != 0))) || ((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0))))) || ( !(((controller_l0 != 0) && (controller_l1 != 0)) && ((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))))))) && ((((controller_cnt + (-1 * _x_controller_cnt)) == -1) && ((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0)))) && (controller_z <= 1.0))) || ( !(((delta == 0.0) && ( !(( !(controller_evt2 != 0)) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0)))))) && (((_x_controller_l1 != 0) && ( !(_x_controller_l0 != 0))) && ((controller_l0 != 0) && (controller_l1 != 0))))))) && ((((((((((((( !(_x_gate_l0 != 0)) && ( !(_x_gate_l1 != 0))) || ((_x_gate_l0 != 0) && ( !(_x_gate_l1 != 0)))) || (((_x_gate_l1 != 0) && ( !(_x_gate_l0 != 0))) || ((_x_gate_l0 != 0) && (_x_gate_l1 != 0)))) && (((( !(_x_gate_evt0 != 0)) && ( !(_x_gate_evt1 != 0))) || ((_x_gate_evt0 != 0) && ( !(_x_gate_evt1 != 0)))) || (((_x_gate_evt1 != 0) && ( !(_x_gate_evt0 != 0))) || ((_x_gate_evt0 != 0) && (_x_gate_evt1 != 0))))) && ((_x_gate_y <= 1.0) || ( !((_x_gate_l0 != 0) && ( !(_x_gate_l1 != 0)))))) && ((_x_gate_y <= 2.0) || ( !((_x_gate_l0 != 0) && (_x_gate_l1 != 0))))) && (((((gate_l0 != 0) == (_x_gate_l0 != 0)) && ((gate_l1 != 0) == (_x_gate_l1 != 0))) && ((delta + (gate_y + (-1.0 * _x_gate_y))) == 0.0)) || ( !((( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))) || ( !(delta <= 0.0)))))) && (((((_x_gate_l0 != 0) && ( !(_x_gate_l1 != 0))) && ((gate_evt0 != 0) && ( !(gate_evt1 != 0)))) && (_x_gate_y == 0.0)) || ( !((( !(gate_l0 != 0)) && ( !(gate_l1 != 0))) && ((delta == 0.0) && ( !(( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))))))))) && (((((_x_gate_l1 != 0) && ( !(_x_gate_l0 != 0))) && ((gate_evt0 != 0) && (gate_evt1 != 0))) && ((gate_y <= 1.0) && (gate_y == _x_gate_y))) || ( !(((gate_l0 != 0) && ( !(gate_l1 != 0))) && ((delta == 0.0) && ( !(( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))))))))) && (((_x_gate_y == 0.0) && (((_x_gate_l0 != 0) && (_x_gate_l1 != 0)) && ((gate_evt1 != 0) && ( !(gate_evt0 != 0))))) || ( !(((gate_l1 != 0) && ( !(gate_l0 != 0))) && ((delta == 0.0) && ( !(( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))))))))) && (((gate_y == _x_gate_y) && (((( !(_x_gate_l0 != 0)) && ( !(_x_gate_l1 != 0))) && (1.0 <= gate_y)) && (((gate_evt0 != 0) && (gate_evt1 != 0)) && (gate_y <= 2.0)))) || ( !(((gate_l0 != 0) && (gate_l1 != 0)) && ((delta == 0.0) && ( !(( !(gate_evt0 != 0)) && ( !(gate_evt1 != 0))))))))) && (0.0 <= _x_delta))))))))))))))))))))))))))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t0_evt0 != 0)) && ( !(t0_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t1_evt0 != 0)) && ( !(t1_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t2_evt0 != 0)) && ( !(t2_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t3_evt0 != 0)) && ( !(t3_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t4_evt0 != 0)) && ( !(t4_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t5_evt0 != 0)) && ( !(t5_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t6_evt0 != 0)) && ( !(t6_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t7_evt0 != 0)) && ( !(t7_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t8_evt0 != 0)) && ( !(t8_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t9_evt0 != 0)) && ( !(t9_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t10_evt0 != 0)) && ( !(t10_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t11_evt0 != 0)) && ( !(t11_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t12_evt0 != 0)) && ( !(t12_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t13_evt0 != 0)) && ( !(t13_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t14_evt0 != 0)) && ( !(t14_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t15_evt0 != 0)) && ( !(t15_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t16_evt0 != 0)) && ( !(t16_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t17_evt0 != 0)) && ( !(t17_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t18_evt0 != 0)) && ( !(t18_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t19_evt0 != 0)) && ( !(t19_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t20_evt0 != 0)) && ( !(t20_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t21_evt0 != 0)) && ( !(t21_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t22_evt0 != 0)) && ( !(t22_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t23_evt0 != 0)) && ( !(t23_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t24_evt0 != 0)) && ( !(t24_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t25_evt0 != 0)) && ( !(t25_evt1 != 0)))))))) && ((( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0)))))))) && ((( !(t26_evt0 != 0)) && ( !(t26_evt1 != 0))) || ( !((delta == 0.0) && ( !(( !(t27_evt0 != 0)) && ( !(t27_evt1 != 0)))))))) && ((((gate_evt0 != 0) && ( !(gate_evt1 != 0))) == (( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && (controller_evt1 != 0)))) || ( !(delta == 0.0)))) && (( !(delta == 0.0)) || (((gate_evt1 != 0) && ( !(gate_evt0 != 0))) == ((controller_evt2 != 0) && (( !(controller_evt0 != 0)) && ( !(controller_evt1 != 0))))))) && (( !(delta == 0.0)) || ((( !(controller_evt2 != 0)) && ((controller_evt0 != 0) && ( !(controller_evt1 != 0)))) == (((t27_evt0 != 0) && ( !(t27_evt1 != 0))) || (((t26_evt0 != 0) && ( !(t26_evt1 != 0))) || (((t25_evt0 != 0) && ( !(t25_evt1 != 0))) || (((t24_evt0 != 0) && ( !(t24_evt1 != 0))) || (((t23_evt0 != 0) && ( !(t23_evt1 != 0))) || (((t22_evt0 != 0) && ( !(t22_evt1 != 0))) || (((t21_evt0 != 0) && ( !(t21_evt1 != 0))) || (((t20_evt0 != 0) && ( !(t20_evt1 != 0))) || (((t19_evt0 != 0) && ( !(t19_evt1 != 0))) || (((t18_evt0 != 0) && ( !(t18_evt1 != 0))) || (((t17_evt0 != 0) && ( !(t17_evt1 != 0))) || (((t16_evt0 != 0) && ( !(t16_evt1 != 0))) || (((t15_evt0 != 0) && ( !(t15_evt1 != 0))) || (((t14_evt0 != 0) && ( !(t14_evt1 != 0))) || (((t13_evt0 != 0) && ( !(t13_evt1 != 0))) || (((t12_evt0 != 0) && ( !(t12_evt1 != 0))) || (((t11_evt0 != 0) && ( !(t11_evt1 != 0))) || (((t10_evt0 != 0) && ( !(t10_evt1 != 0))) || (((t9_evt0 != 0) && ( !(t9_evt1 != 0))) || (((t8_evt0 != 0) && ( !(t8_evt1 != 0))) || (((t7_evt0 != 0) && ( !(t7_evt1 != 0))) || (((t6_evt0 != 0) && ( !(t6_evt1 != 0))) || (((t5_evt0 != 0) && ( !(t5_evt1 != 0))) || (((t4_evt0 != 0) && ( !(t4_evt1 != 0))) || (((t3_evt0 != 0) && ( !(t3_evt1 != 0))) || (((t2_evt0 != 0) && ( !(t2_evt1 != 0))) || (((t0_evt0 != 0) && ( !(t0_evt1 != 0))) || ((t1_evt0 != 0) && ( !(t1_evt1 != 0))))))))))))))))))))))))))))))))) && (( !(delta == 0.0)) || ((( !(controller_evt2 != 0)) && ((controller_evt1 != 0) && ( !(controller_evt0 != 0)))) == (((t27_evt1 != 0) && ( !(t27_evt0 != 0))) || (((t26_evt1 != 0) && ( !(t26_evt0 != 0))) || (((t25_evt1 != 0) && ( !(t25_evt0 != 0))) || (((t24_evt1 != 0) && ( !(t24_evt0 != 0))) || (((t23_evt1 != 0) && ( !(t23_evt0 != 0))) || (((t22_evt1 != 0) && ( !(t22_evt0 != 0))) || (((t21_evt1 != 0) && ( !(t21_evt0 != 0))) || (((t20_evt1 != 0) && ( !(t20_evt0 != 0))) || (((t19_evt1 != 0) && ( !(t19_evt0 != 0))) || (((t18_evt1 != 0) && ( !(t18_evt0 != 0))) || (((t17_evt1 != 0) && ( !(t17_evt0 != 0))) || (((t16_evt1 != 0) && ( !(t16_evt0 != 0))) || (((t15_evt1 != 0) && ( !(t15_evt0 != 0))) || (((t14_evt1 != 0) && ( !(t14_evt0 != 0))) || (((t13_evt1 != 0) && ( !(t13_evt0 != 0))) || (((t12_evt1 != 0) && ( !(t12_evt0 != 0))) || (((t11_evt1 != 0) && ( !(t11_evt0 != 0))) || (((t10_evt1 != 0) && ( !(t10_evt0 != 0))) || (((t9_evt1 != 0) && ( !(t9_evt0 != 0))) || (((t8_evt1 != 0) && ( !(t8_evt0 != 0))) || (((t7_evt1 != 0) && ( !(t7_evt0 != 0))) || (((t6_evt1 != 0) && ( !(t6_evt0 != 0))) || (((t5_evt1 != 0) && ( !(t5_evt0 != 0))) || (((t4_evt1 != 0) && ( !(t4_evt0 != 0))) || (((t3_evt1 != 0) && ( !(t3_evt0 != 0))) || (((t2_evt1 != 0) && ( !(t2_evt0 != 0))) || (((t0_evt1 != 0) && ( !(t0_evt0 != 0))) || ((t1_evt1 != 0) && ( !(t1_evt0 != 0))))))))))))))))))))))))))))))))) && (((delta == _x__diverge_delta) || ( !(1.0 <= _diverge_delta))) && ((1.0 <= _diverge_delta) || ((delta + (_diverge_delta + (-1.0 * _x__diverge_delta))) == 0.0))));
_diverge_delta = _x__diverge_delta;
t27_evt1 = _x_t27_evt1;
t27_evt0 = _x_t27_evt0;
t27_x = _x_t27_x;
t26_evt1 = _x_t26_evt1;
t26_evt0 = _x_t26_evt0;
t26_x = _x_t26_x;
t25_evt1 = _x_t25_evt1;
t25_evt0 = _x_t25_evt0;
t25_x = _x_t25_x;
t24_l1 = _x_t24_l1;
t24_evt1 = _x_t24_evt1;
t24_evt0 = _x_t24_evt0;
t24_x = _x_t24_x;
t22_l1 = _x_t22_l1;
t8_l1 = _x_t8_l1;
t8_l0 = _x_t8_l0;
t9_x = _x_t9_x;
controller_evt0 = _x_controller_evt0;
t8_evt0 = _x_t8_evt0;
t6_l0 = _x_t6_l0;
t6_evt0 = _x_t6_evt0;
t5_l1 = _x_t5_l1;
t5_l0 = _x_t5_l0;
t6_x = _x_t6_x;
t5_evt0 = _x_t5_evt0;
t4_l1 = _x_t4_l1;
t4_l0 = _x_t4_l0;
t5_x = _x_t5_x;
t4_evt0 = _x_t4_evt0;
t3_l1 = _x_t3_l1;
t3_l0 = _x_t3_l0;
t4_x = _x_t4_x;
t7_l1 = _x_t7_l1;
controller_evt2 = _x_controller_evt2;
t2_l1 = _x_t2_l1;
t7_evt0 = _x_t7_evt0;
t23_evt1 = _x_t23_evt1;
gate_evt1 = _x_gate_evt1;
t14_x = _x_t14_x;
t26_l1 = _x_t26_l1;
t1_x = _x_t1_x;
t22_evt0 = _x_t22_evt0;
t7_l0 = _x_t7_l0;
controller_evt1 = _x_controller_evt1;
t2_l0 = _x_t2_l0;
t2_evt0 = _x_t2_evt0;
t1_l1 = _x_t1_l1;
t7_x = _x_t7_x;
t1_l0 = _x_t1_l0;
t23_evt0 = _x_t23_evt0;
gate_evt0 = _x_gate_evt0;
t19_evt1 = _x_t19_evt1;
t0_evt0 = _x_t0_evt0;
t8_x = _x_t8_x;
controller_l1 = _x_controller_l1;
t24_l0 = _x_t24_l0;
t9_evt1 = _x_t9_evt1;
t23_x = _x_t23_x;
gate_y = _x_gate_y;
t12_l0 = _x_t12_l0;
t23_l1 = _x_t23_l1;
gate_l1 = _x_gate_l1;
t14_evt0 = _x_t14_evt0;
t6_l1 = _x_t6_l1;
controller_l0 = _x_controller_l0;
t9_evt0 = _x_t9_evt0;
t23_l0 = _x_t23_l0;
t8_evt1 = _x_t8_evt1;
gate_l0 = _x_gate_l0;
t19_l1 = _x_t19_l1;
t0_l0 = _x_t0_l0;
t25_l1 = _x_t25_l1;
t0_x = _x_t0_x;
delta = _x_delta;
t15_x = _x_t15_x;
t0_l1 = _x_t0_l1;
t7_evt1 = _x_t7_evt1;
t22_l0 = _x_t22_l0;
t1_evt0 = _x_t1_evt0;
t27_l1 = _x_t27_l1;
t2_x = _x_t2_x;
t3_evt0 = _x_t3_evt0;
t3_x = _x_t3_x;
t9_l0 = _x_t9_l0;
t9_l1 = _x_t9_l1;
t10_x = _x_t10_x;
t10_evt0 = _x_t10_evt0;
t25_l0 = _x_t25_l0;
t10_evt1 = _x_t10_evt1;
t10_l0 = _x_t10_l0;
t10_l1 = _x_t10_l1;
t11_x = _x_t11_x;
t11_evt0 = _x_t11_evt0;
t26_l0 = _x_t26_l0;
t11_evt1 = _x_t11_evt1;
t11_l0 = _x_t11_l0;
t11_l1 = _x_t11_l1;
t12_x = _x_t12_x;
t12_evt0 = _x_t12_evt0;
t27_l0 = _x_t27_l0;
t12_evt1 = _x_t12_evt1;
t12_l1 = _x_t12_l1;
t13_x = _x_t13_x;
t13_evt0 = _x_t13_evt0;
t13_evt1 = _x_t13_evt1;
t13_l0 = _x_t13_l0;
t13_l1 = _x_t13_l1;
t14_evt1 = _x_t14_evt1;
t14_l0 = _x_t14_l0;
t14_l1 = _x_t14_l1;
t15_evt0 = _x_t15_evt0;
t15_evt1 = _x_t15_evt1;
t0_evt1 = _x_t0_evt1;
t15_l0 = _x_t15_l0;
t15_l1 = _x_t15_l1;
t16_x = _x_t16_x;
t16_evt0 = _x_t16_evt0;
t16_evt1 = _x_t16_evt1;
t1_evt1 = _x_t1_evt1;
t16_l0 = _x_t16_l0;
t16_l1 = _x_t16_l1;
t17_x = _x_t17_x;
controller_z = _x_controller_z;
t17_evt0 = _x_t17_evt0;
controller_cnt = _x_controller_cnt;
t17_evt1 = _x_t17_evt1;
t2_evt1 = _x_t2_evt1;
t17_l0 = _x_t17_l0;
t17_l1 = _x_t17_l1;
t18_x = _x_t18_x;
t18_evt0 = _x_t18_evt0;
t18_evt1 = _x_t18_evt1;
t3_evt1 = _x_t3_evt1;
t18_l0 = _x_t18_l0;
t18_l1 = _x_t18_l1;
t19_x = _x_t19_x;
t19_evt0 = _x_t19_evt0;
t4_evt1 = _x_t4_evt1;
t19_l0 = _x_t19_l0;
t20_x = _x_t20_x;
t20_evt0 = _x_t20_evt0;
t20_evt1 = _x_t20_evt1;
t5_evt1 = _x_t5_evt1;
t20_l0 = _x_t20_l0;
t20_l1 = _x_t20_l1;
t21_x = _x_t21_x;
t21_evt0 = _x_t21_evt0;
t21_evt1 = _x_t21_evt1;
t6_evt1 = _x_t6_evt1;
t21_l0 = _x_t21_l0;
t21_l1 = _x_t21_l1;
t22_x = _x_t22_x;
t22_evt1 = _x_t22_evt1;
}
}
|
the_stack_data/97013793.c
|
/* original parser id follows */
/* yysccsid[] = "@(#)yaccpar 1.9 (Berkeley) 02/21/93" */
/* (use YYMAJOR/YYMINOR for ifdefs dependent on parser version) */
#define YYBYACC 1
#define YYMAJOR 2
#define YYMINOR 0
#define YYCHECK "yyyymmdd"
#define YYEMPTY (-1)
#define yyclearin (yychar = YYEMPTY)
#define yyerrok (yyerrflag = 0)
#define YYRECOVERING() (yyerrflag != 0)
#define YYENOMEM (-2)
#define YYEOF 0
#ifndef yyparse
#define yyparse quote_calc2_parse
#endif /* yyparse */
#ifndef yylex
#define yylex quote_calc2_lex
#endif /* yylex */
#ifndef yyerror
#define yyerror quote_calc2_error
#endif /* yyerror */
#ifndef yychar
#define yychar quote_calc2_char
#endif /* yychar */
#ifndef yyval
#define yyval quote_calc2_val
#endif /* yyval */
#ifndef yylval
#define yylval quote_calc2_lval
#endif /* yylval */
#ifndef yydebug
#define yydebug quote_calc2_debug
#endif /* yydebug */
#ifndef yynerrs
#define yynerrs quote_calc2_nerrs
#endif /* yynerrs */
#ifndef yyerrflag
#define yyerrflag quote_calc2_errflag
#endif /* yyerrflag */
#ifndef yylhs
#define yylhs quote_calc2_lhs
#endif /* yylhs */
#ifndef yylen
#define yylen quote_calc2_len
#endif /* yylen */
#ifndef yydefred
#define yydefred quote_calc2_defred
#endif /* yydefred */
#ifndef yydgoto
#define yydgoto quote_calc2_dgoto
#endif /* yydgoto */
#ifndef yysindex
#define yysindex quote_calc2_sindex
#endif /* yysindex */
#ifndef yyrindex
#define yyrindex quote_calc2_rindex
#endif /* yyrindex */
#ifndef yygindex
#define yygindex quote_calc2_gindex
#endif /* yygindex */
#ifndef yytable
#define yytable quote_calc2_table
#endif /* yytable */
#ifndef yycheck
#define yycheck quote_calc2_check
#endif /* yycheck */
#ifndef yyname
#define yyname quote_calc2_name
#endif /* yyname */
#ifndef yyrule
#define yyrule quote_calc2_rule
#endif /* yyrule */
#define YYPREFIX "quote_calc2_"
#define YYPURE 0
#line 2 "quote_calc2.y"
# include <stdio.h>
# include <ctype.h>
int regs[26];
int base;
int yylex(void);
static void yyerror(const char *s);
#line 111 "quote_calc2.tab.c"
#if ! defined(YYSTYPE) && ! defined(YYSTYPE_IS_DECLARED)
/* Default: YYSTYPE is the semantic value type. */
typedef int YYSTYPE;
# define YYSTYPE_IS_DECLARED 1
#endif
/* compatibility with bison */
#ifdef YYPARSE_PARAM
/* compatibility with FreeBSD */
# ifdef YYPARSE_PARAM_TYPE
# define YYPARSE_DECL() yyparse(YYPARSE_PARAM_TYPE YYPARSE_PARAM)
# else
# define YYPARSE_DECL() yyparse(void *YYPARSE_PARAM)
# endif
#else
# define YYPARSE_DECL() yyparse(void)
#endif
/* Parameters sent to lex. */
#ifdef YYLEX_PARAM
# define YYLEX_DECL() yylex(void *YYLEX_PARAM)
# define YYLEX yylex(YYLEX_PARAM)
#else
# define YYLEX_DECL() yylex(void)
# define YYLEX yylex()
#endif
/* Parameters sent to yyerror. */
#ifndef YYERROR_DECL
#define YYERROR_DECL() yyerror(const char *s)
#endif
#ifndef YYERROR_CALL
#define YYERROR_CALL(msg) yyerror(msg)
#endif
extern int YYPARSE_DECL();
#define OP_ADD 257
#define ADD 258
#define OP_SUB 259
#define SUB 260
#define OP_MUL 261
#define MUL 262
#define OP_DIV 263
#define DIV 264
#define OP_MOD 265
#define MOD 266
#define OP_AND 267
#define AND 268
#define DIGIT 269
#define LETTER 270
#define UMINUS 271
#define YYERRCODE 256
typedef int YYINT;
static const YYINT quote_calc2_lhs[] = { -1,
0, 0, 0, 1, 1, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3,
};
static const YYINT quote_calc2_len[] = { 2,
0, 3, 3, 1, 3, 3, 3, 3, 3, 3,
3, 3, 3, 2, 1, 1, 1, 2,
};
static const YYINT quote_calc2_defred[] = { 1,
0, 0, 0, 17, 0, 0, 0, 0, 0, 3,
15, 0, 0, 0, 2, 0, 0, 0, 0, 0,
0, 0, 18, 0, 6, 0, 0, 0, 0, 0,
0, 0,
};
static const YYINT quote_calc2_dgoto[] = { 1,
7, 8, 9,
};
static const YYINT quote_calc2_sindex[] = { 0,
-38, 4, -36, 0, -51, -36, 6, -121, -249, 0,
0, -243, -36, -23, 0, -36, -36, -36, -36, -36,
-36, -36, 0, -121, 0, -121, -121, -121, -121, -121,
-121, -243,
};
static const YYINT quote_calc2_rindex[] = { 0,
0, 0, 0, 0, -9, 0, 0, 12, -10, 0,
0, -5, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 14, 0, -3, -2, -1, 1, 2,
3, -4,
};
static const YYINT quote_calc2_gindex[] = { 0,
0, 42, 0,
};
#define YYTABLESIZE 259
static const YYINT quote_calc2_table[] = { 16,
15, 6, 22, 6, 14, 13, 7, 8, 9, 13,
10, 11, 12, 10, 16, 15, 17, 25, 18, 23,
19, 4, 20, 5, 21, 0, 0, 0, 0, 0,
16, 0, 0, 0, 0, 14, 13, 7, 8, 9,
0, 10, 11, 12, 12, 0, 0, 14, 0, 0,
0, 0, 0, 0, 24, 0, 0, 26, 27, 28,
29, 30, 31, 32, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
22, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 16, 15, 0, 0, 0, 14, 13,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 16, 0, 17, 0,
18, 0, 19, 0, 20, 0, 21, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 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, 0, 0,
0, 3, 0, 3, 0, 0, 0, 0, 0, 0,
4, 5, 4, 11, 16, 0, 17, 0, 18, 0,
19, 0, 20, 0, 21, 0, 0, 16, 15, 16,
15, 16, 15, 16, 15, 16, 15, 16, 15,
};
static const YYINT quote_calc2_check[] = { 10,
10, 40, 124, 40, 10, 10, 10, 10, 10, 61,
10, 10, 10, 10, 258, 10, 260, 41, 262, 269,
264, 10, 266, 10, 268, -1, -1, -1, -1, -1,
41, -1, -1, -1, -1, 41, 41, 41, 41, 41,
-1, 41, 41, 41, 3, -1, -1, 6, -1, -1,
-1, -1, -1, -1, 13, -1, -1, 16, 17, 18,
19, 20, 21, 22, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
124, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 124, 124, -1, -1, -1, 124, 124,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 258, -1, 260, -1,
262, -1, 264, -1, 266, -1, 268, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 256, -1, -1,
-1, 260, -1, 260, -1, -1, -1, -1, -1, -1,
269, 270, 269, 270, 258, -1, 260, -1, 262, -1,
264, -1, 266, -1, 268, -1, -1, 258, 258, 260,
260, 262, 262, 264, 264, 266, 266, 268, 268,
};
#define YYFINAL 1
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
#define YYMAXTOKEN 271
#define YYUNDFTOKEN 277
#define YYTRANSLATE(a) ((a) > YYMAXTOKEN ? YYUNDFTOKEN : (a))
#if YYDEBUG
static const char *const quote_calc2_name[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,"'\\n'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,"'%'","'&'",0,"'('","')'","'*'","'+'",0,"'-'",0,"'/'",0,0,0,0,0,0,0,
0,0,0,0,0,0,"'='",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'|'",0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,"OP_ADD","\"ADD\"","OP_SUB","\"SUB\"","OP_MUL","\"MUL\"","OP_DIV",
"\"DIV\"","OP_MOD","\"MOD\"","OP_AND","\"AND\"","DIGIT","LETTER","UMINUS",0,0,0,
0,0,"illegal-symbol",
};
static const char *const quote_calc2_rule[] = {
"$accept : list",
"list :",
"list : list stat '\\n'",
"list : list error '\\n'",
"stat : expr",
"stat : LETTER '=' expr",
"expr : '(' expr ')'",
"expr : expr \"ADD\" expr",
"expr : expr \"SUB\" expr",
"expr : expr \"MUL\" expr",
"expr : expr \"DIV\" expr",
"expr : expr \"MOD\" expr",
"expr : expr \"AND\" expr",
"expr : expr '|' expr",
"expr : \"SUB\" expr",
"expr : LETTER",
"expr : number",
"number : DIGIT",
"number : number DIGIT",
};
#endif
#if YYDEBUG
int yydebug;
#endif
int yyerrflag;
int yychar;
YYSTYPE yyval;
YYSTYPE yylval;
int yynerrs;
/* define the initial stack-sizes */
#ifdef YYSTACKSIZE
#undef YYMAXDEPTH
#define YYMAXDEPTH YYSTACKSIZE
#else
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 10000
#define YYMAXDEPTH 10000
#endif
#endif
#define YYINITSTACKSIZE 200
typedef struct {
unsigned stacksize;
YYINT *s_base;
YYINT *s_mark;
YYINT *s_last;
YYSTYPE *l_base;
YYSTYPE *l_mark;
} YYSTACKDATA;
/* variables for the parser stack */
static YYSTACKDATA yystack;
#line 73 "quote_calc2.y"
/* start of programs */
int
main (void)
{
while(!feof(stdin)) {
yyparse();
}
return 0;
}
static void
yyerror(const char *s)
{
fprintf(stderr, "%s\n", s);
}
int
yylex(void) {
/* lexical analysis routine */
/* returns LETTER for a lower case letter, yylval = 0 through 25 */
/* return DIGIT for a digit, yylval = 0 through 9 */
/* all other characters are returned immediately */
int c;
while( (c=getchar()) == ' ' ) { /* skip blanks */ }
/* c is now nonblank */
if( islower( c )) {
yylval = c - 'a';
return ( LETTER );
}
if( isdigit( c )) {
yylval = c - '0';
return ( DIGIT );
}
return( c );
}
#line 377 "quote_calc2.tab.c"
#if YYDEBUG
#include <stdio.h> /* needed for printf */
#endif
#include <stdlib.h> /* needed for malloc, etc */
#include <string.h> /* needed for memset */
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
static int yygrowstack(YYSTACKDATA *data)
{
int i;
unsigned newsize;
YYINT *newss;
YYSTYPE *newvs;
if ((newsize = data->stacksize) == 0)
newsize = YYINITSTACKSIZE;
else if (newsize >= YYMAXDEPTH)
return YYENOMEM;
else if ((newsize *= 2) > YYMAXDEPTH)
newsize = YYMAXDEPTH;
i = (int) (data->s_mark - data->s_base);
newss = (YYINT *)realloc(data->s_base, newsize * sizeof(*newss));
if (newss == 0)
return YYENOMEM;
data->s_base = newss;
data->s_mark = newss + i;
newvs = (YYSTYPE *)realloc(data->l_base, newsize * sizeof(*newvs));
if (newvs == 0)
return YYENOMEM;
data->l_base = newvs;
data->l_mark = newvs + i;
data->stacksize = newsize;
data->s_last = data->s_base + newsize - 1;
return 0;
}
#if YYPURE || defined(YY_NO_LEAKS)
static void yyfreestack(YYSTACKDATA *data)
{
free(data->s_base);
free(data->l_base);
memset(data, 0, sizeof(*data));
}
#else
#define yyfreestack(data) /* nothing */
#endif
#define YYABORT goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
int
YYPARSE_DECL()
{
int yym, yyn, yystate;
#if YYDEBUG
const char *yys;
if ((yys = getenv("YYDEBUG")) != 0)
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
yydebug = yyn - '0';
}
#endif
/* yym is set below */
/* yyn is set below */
yynerrs = 0;
yyerrflag = 0;
yychar = YYEMPTY;
yystate = 0;
#if YYPURE
memset(&yystack, 0, sizeof(yystack));
#endif
if (yystack.s_base == NULL && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
yystack.s_mark = yystack.s_base;
yystack.l_mark = yystack.l_base;
yystate = 0;
*yystack.s_mark = 0;
yyloop:
if ((yyn = yydefred[yystate]) != 0) goto yyreduce;
if (yychar < 0)
{
yychar = YYLEX;
if (yychar < 0) yychar = YYEOF;
#if YYDEBUG
if (yydebug)
{
if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
}
if (((yyn = yysindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, shifting to state %d\n",
YYPREFIX, yystate, yytable[yyn]);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
yystate = yytable[yyn];
*++yystack.s_mark = yytable[yyn];
*++yystack.l_mark = yylval;
yychar = YYEMPTY;
if (yyerrflag > 0) --yyerrflag;
goto yyloop;
}
if (((yyn = yyrindex[yystate]) != 0) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yychar)
{
yyn = yytable[yyn];
goto yyreduce;
}
if (yyerrflag != 0) goto yyinrecovery;
YYERROR_CALL("syntax error");
goto yyerrlab; /* redundant goto avoids 'unused label' warning */
yyerrlab:
++yynerrs;
yyinrecovery:
if (yyerrflag < 3)
{
yyerrflag = 3;
for (;;)
{
if (((yyn = yysindex[*yystack.s_mark]) != 0) && (yyn += YYERRCODE) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) YYERRCODE)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, error recovery shifting\
to state %d\n", YYPREFIX, *yystack.s_mark, yytable[yyn]);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
yystate = yytable[yyn];
*++yystack.s_mark = yytable[yyn];
*++yystack.l_mark = yylval;
goto yyloop;
}
else
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: error recovery discarding state %d\n",
YYPREFIX, *yystack.s_mark);
#endif
if (yystack.s_mark <= yystack.s_base) goto yyabort;
--yystack.s_mark;
--yystack.l_mark;
}
}
}
else
{
if (yychar == YYEOF) goto yyabort;
#if YYDEBUG
if (yydebug)
{
if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
yychar = YYEMPTY;
goto yyloop;
}
yyreduce:
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, reducing by rule %d (%s)\n",
YYPREFIX, yystate, yyn, yyrule[yyn]);
#endif
yym = yylen[yyn];
if (yym > 0)
yyval = yystack.l_mark[1-yym];
else
memset(&yyval, 0, sizeof yyval);
switch (yyn)
{
case 3:
#line 35 "quote_calc2.y"
{ yyerrok ; }
#line 579 "quote_calc2.tab.c"
break;
case 4:
#line 39 "quote_calc2.y"
{ printf("%d\n",yystack.l_mark[0]);}
#line 584 "quote_calc2.tab.c"
break;
case 5:
#line 41 "quote_calc2.y"
{ regs[yystack.l_mark[-2]] = yystack.l_mark[0]; }
#line 589 "quote_calc2.tab.c"
break;
case 6:
#line 45 "quote_calc2.y"
{ yyval = yystack.l_mark[-1]; }
#line 594 "quote_calc2.tab.c"
break;
case 7:
#line 47 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] + yystack.l_mark[0]; }
#line 599 "quote_calc2.tab.c"
break;
case 8:
#line 49 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] - yystack.l_mark[0]; }
#line 604 "quote_calc2.tab.c"
break;
case 9:
#line 51 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] * yystack.l_mark[0]; }
#line 609 "quote_calc2.tab.c"
break;
case 10:
#line 53 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] / yystack.l_mark[0]; }
#line 614 "quote_calc2.tab.c"
break;
case 11:
#line 55 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] % yystack.l_mark[0]; }
#line 619 "quote_calc2.tab.c"
break;
case 12:
#line 57 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] & yystack.l_mark[0]; }
#line 624 "quote_calc2.tab.c"
break;
case 13:
#line 59 "quote_calc2.y"
{ yyval = yystack.l_mark[-2] | yystack.l_mark[0]; }
#line 629 "quote_calc2.tab.c"
break;
case 14:
#line 61 "quote_calc2.y"
{ yyval = - yystack.l_mark[0]; }
#line 634 "quote_calc2.tab.c"
break;
case 15:
#line 63 "quote_calc2.y"
{ yyval = regs[yystack.l_mark[0]]; }
#line 639 "quote_calc2.tab.c"
break;
case 17:
#line 68 "quote_calc2.y"
{ yyval = yystack.l_mark[0]; base = (yystack.l_mark[0]==0) ? 8 : 10; }
#line 644 "quote_calc2.tab.c"
break;
case 18:
#line 70 "quote_calc2.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
#line 649 "quote_calc2.tab.c"
break;
#line 651 "quote_calc2.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;
yystack.l_mark -= yym;
yym = yylhs[yyn];
if (yystate == 0 && yym == 0)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state 0 to\
state %d\n", YYPREFIX, YYFINAL);
#endif
yystate = YYFINAL;
*++yystack.s_mark = YYFINAL;
*++yystack.l_mark = yyval;
if (yychar < 0)
{
yychar = YYLEX;
if (yychar < 0) yychar = YYEOF;
#if YYDEBUG
if (yydebug)
{
if ((yys = yyname[YYTRANSLATE(yychar)]) == NULL) yys = yyname[YYUNDFTOKEN];
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, YYFINAL, yychar, yys);
}
#endif
}
if (yychar == YYEOF) goto yyaccept;
goto yyloop;
}
if (((yyn = yygindex[yym]) != 0) && (yyn += yystate) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == (YYINT) yystate)
yystate = yytable[yyn];
else
yystate = yydgoto[yym];
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state %d \
to state %d\n", YYPREFIX, *yystack.s_mark, yystate);
#endif
if (yystack.s_mark >= yystack.s_last && yygrowstack(&yystack) == YYENOMEM) goto yyoverflow;
*++yystack.s_mark = (YYINT) yystate;
*++yystack.l_mark = yyval;
goto yyloop;
yyoverflow:
YYERROR_CALL("yacc stack overflow");
yyabort:
yyfreestack(&yystack);
return (1);
yyaccept:
yyfreestack(&yystack);
return (0);
}
|
the_stack_data/456370.c
|
#include <stdbool.h>
bool win(char **board, char c)
{
int i;
for (i = 0; i < 3; ++i)
{
int j = 0;
for (j = 0; j < 3; ++j)
if (board[i][j] != c)
break;
if (j == 3)
return true;
for (j = 0; j < 3; ++j)
if (board[j][i] != c)
break;
if (j == 3)
return true;
}
for (i = 0; i < 3; ++i)
{
if (board[i][i] != c)
break;
}
if (i == 3)
return true;
for (i = 0; i < 3; ++i)
{
if (board[i][2 - i] != c)
break;
}
return i == 3;
}
bool validTicTacToe(char **board, int boardSize)
{
int x = 0, o = 0;
for (int i = 0; i < 3; ++i)
for (int j = 0; j < 3; ++j)
{
if (board[i][j] == 'X')
++x;
else if (board[i][j] == 'O')
++o;
}
if (x == o)
return !win(board, 'X');
if (x - o == 1)
return !win(board, 'O');
return false;
}
|
the_stack_data/277348.c
|
//http://www.cs.tau.ac.il/~eddiea/samples/IOMultiplexing/TCP-client.c.html
/***************************************************************************/
/* */
/* Client program which gets as parameter the server name or */
/* address and tries to send the data into non-blocking server. */
/* */
/* The message is sent after 5 seconds of wait */
/* */
/* */
/* based on Beej's program - look in the simple TCp client for further doc.*/
/* */
/* */
/***************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <netdb.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h> /* Added for the nonblocking socket */
#define PORT 3490 /* the port client will be connecting to */
#define MAXDATASIZE 1024 /* max number of bytes we can get at once */
//./client 127.0.0.1
int main(int argc, char *argv[])
{
int sockfd, numbytes;
char buf[MAXDATASIZE];
struct hostent *he;
struct sockaddr_in their_addr; /* connector's address information */
if (argc != 2) {
fprintf(stderr,"usage: client hostname\n");
exit(1);
}
if ((he=gethostbyname(argv[1])) == NULL) { /* get the host info */
herror("gethostbyname");
exit(1);
}
if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {
perror("socket");
exit(1);
}
their_addr.sin_family = AF_INET; /* host byte order */
their_addr.sin_port = htons(PORT); /* short, network byte order */
their_addr.sin_addr = *((struct in_addr *)he->h_addr);
bzero(&(their_addr.sin_zero), 8); /* zero the rest of the struct */
if (connect(sockfd, (struct sockaddr *)&their_addr, \
sizeof(struct sockaddr)) == -1) {
perror("connect");
exit(1);
}
while (1)
{
char sendBuffer[] = "Hello, world!";
int sendSize =send(sockfd, sendBuffer, sizeof(sendBuffer), 0);
if (sendSize == -1)
{
printf(" send failed \n");
perror("send");
exit (1);
}
printf("sockfd =%d, send sendSize=%d ,data=%s\n",sockfd,sendSize,sendBuffer);
sleep(2);
//对方一直不发数据,阻塞等待,这程序完蛋了
//recvv将会阻塞,直到缓冲区里有至少一个字节才返回,当没有数据到来时,recv会一直阻塞或者直到超时,不会返回
//fcntl(sockfd, F_SETFL, O_NONBLOCK); /* Change the socket into non-blocking state */
if ((numbytes=recv(sockfd, buf, MAXDATASIZE, 0)) == -1) {
printf(" recv failed \n");
perror("recv");
exit(1);
}
buf[numbytes] = '\0';
printf("Received in pid=%d, text=: %s \n",getpid(), buf);
sleep(1);
printf("----------- \n");
}
close(sockfd);
return 0;
}
//https://www.geeksforgeeks.org/tcp-server-client-implementation-in-c/
|
the_stack_data/1208311.c
|
#include <stdio.h>
#include <stdbool.h>
bool changeBool(bool *change, int set){
if (!set) change = false;
if (set) change = true;
}
int main(){
bool testBool = false;
printf("Value of test is %s\n", testBool ? "true" : "false");
changeBool(&testBool, 1);
printf("Value of test is %s\n", testBool ? "true" : "false");
return 0;
}
|
the_stack_data/243893820.c
|
#ifdef WITH_CONNECTION_LIBCOAP
#include <libpull_network/coap/async_libcoap.h>
#include <coap/coap.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
#include "platform_headers.h"
/* This is a blocking function, it will return when the
* message has been received or the timeout is exceeded */
void loop_once(conn_ctx* ctx, uint32_t timeout) {
int ret = coap_run_once(ctx->coap_ctx, timeout);
if (ret > timeout) {
log_debug("Timeout received %d %d\n", ret, timeout);
return;
}
}
void loop(conn_ctx* ctx, uint32_t timeout) {
ctx->loop = 1;
do {
int ret = coap_run_once(ctx->coap_ctx, timeout);
if (ret > timeout) {
log_debug("Timeout received %d %d\n", ret, timeout);
return;
}
} while(ctx->loop);
log_debug("Loop end\n");
}
void break_loop(conn_ctx* ctx) {
ctx->loop = 0;
}
#endif /* WITH_CONNECTION_LIBCOAP */
|
the_stack_data/66896.c
|
//===-- fixdfsivfp_test.c - Test __fixdfsivfp -----------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file tests __fixdfsivfp for the compiler_rt library.
//
//===----------------------------------------------------------------------===//
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
extern int __fixdfsivfp(double a);
#if __arm__
int test__fixdfsivfp(double a)
{
int actual = __fixdfsivfp(a);
int expected = a;
if (actual != expected)
printf("error in test__fixdfsivfp(%f) = %d, expected %d\n",
a, actual, expected);
return actual != expected;
}
#endif
int main()
{
#if __arm__
if (test__fixdfsivfp(0.0))
return 1;
if (test__fixdfsivfp(1.0))
return 1;
if (test__fixdfsivfp(-1.0))
return 1;
if (test__fixdfsivfp(2147483647))
return 1;
if (test__fixdfsivfp(-2147483648.0))
return 1;
#endif
return 0;
}
|
the_stack_data/25138680.c
|
void __VERIFIER_assert(int cond) {
if (!(cond)) {
ERROR: goto ERROR;
}
return;
}
/* Complex lvalue assignment
*/
#include <assert.h>
typedef struct Toplev {
int a;
struct Inner {
int b;
struct Innermost{
int c;
} *y;
} *x;
} Stuff;
int main()
{
struct Innermost im = {3};
struct Inner inner = {2, &im};
struct Toplev good = { 1, &inner};
good.x->y->c = 4;
__VERIFIER_assert (good.x->y->c == 4);
return 0;
}
|
the_stack_data/173578041.c
|
// code: 0
int i = 1;
int main() {
switch(i) {
case 1: break;
case 2: return 2;
}
}
|
the_stack_data/9512964.c
|
/*
* Bitcount, an example function found in K&R's ANSI C 2nd Edition
* Page 50.
* This is meant to be made more efficient in ex209.c (exercise 2-9)
*/
#include <stdio.h>
#include <stdlib.h>
int bitcount(unsigned int x);
int main ()
{
unsigned int x, count;
x = ~0; /* might as well give us as many 1-bits as possible */
count = bitcount(x);
printf("Total 1-bits in %u:\t%u\n",x,count);
return 0;
}
int bitcount(unsigned int x)
{
int b;
for (b = 0; x != 0; x >>= 1)
{
if (x & 01)
{
b++;
}
}
return b;
}
|
the_stack_data/76699615.c
|
int nearly_nothing() {
test_int_no1(1, 2);
}
|
the_stack_data/168893996.c
|
#include <stdio.h>
#include <string.h>
int main()
{
char str[1000],str1[1000];
int i,k,j,n,m,l,T;
scanf("%d",&T);
getchar();
while(T--) {
gets(str);
k = strlen(str);
for(i=0;i<k;i++)
{
if((str[i]>='A' && str[i]<='Z') || (str[i]>='a'&& str[i]<='z'))
str[i] = str[i] + 3;
}
n=0;
for(j=k-1;j>=0;j--)
{
str1[n] = str[j];
n++;
}
str1[n] = '\0';
l = k/2;
for(i=l;i<k;i++)
{
str1[i] = str1[i] - 1;
}
printf("%s\n",str1);
}
}
|
the_stack_data/32949658.c
|
/*
UTS Kode : A
Membuat segitiga dengan looping for seperti ini :
1
1 4
1 4 9 16
1 4 9 16 25
*/
#include <stdio.h>
void main(){
// Deklarasi variabel
int a, b;
for(a = 1; a <= 5; a++){
for(b = 1; b <= a; b++){
printf("%i ", b*b);
}
printf("\n");
}
}
|
the_stack_data/82950164.c
|
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
// Stack type
struct Stack {
int top;
unsigned capacity;
int* array;
};
// Stack Operations
struct Stack* createStack( unsigned capacity) {
struct Stack* stack = (struct Stack*) malloc(sizeof(struct Stack));
if(!stack)
return NULL;
stack->top = -1;
stack->capacity = capacity;
stack->array = (int*) malloc(stack->capacity * sizeof(int));
return stack;
}
int isEmpty(struct Stack* stack) {
return stack->top == -1 ;
}
char peek(struct Stack* stack) {
return stack->array[stack->top];
}
char pop(struct Stack* stack) {
if(!isEmpty(stack))
return stack->array[stack->top--] ;
return '$';
}
void push(struct Stack* stack, char op) {
stack->array[++stack->top] = op;
}
// A utility function to check if the given character is operand.
int isOperand(char ch) {
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z');
}
// A utility function to return precedence of a given operator.
// Higher returned value means higher precedence.
int Prec(char ch) {
switch(ch) {
case '+':
case '-':
return 1;
case '*':
case '/':
return 2;
case '^':
return 3;
}
return -1;
}
// The main function that converts given infix expression
// to postfix expression.
int infixToPostfix(char* exp) {
int i, k;
// Create a stack of capacity equal to expression size.
struct Stack* stack = createStack(strlen(exp));
if(!stack) // See if stack was created successfully.
return -1 ;
for(i = 0, k = -1; exp[i]; ++i) {
// If the scanned character is an operand, add it to output.
if (isOperand(exp[i]))
exp[++k] = exp[i];
// If the scanned character is an ‘(‘, push it to the stack.
else if(exp[i] == '(')
push(stack, exp[i]);
// If the scanned character is an ‘)’,
// pop and output from the stack until an ‘(‘ is encountered.
else if(exp[i] == ')') {
while(!isEmpty(stack) && peek(stack) != '(')
exp[++k] = pop(stack);
if(!isEmpty(stack) && peek(stack) != '(')
return -1; // invalid expression
else
pop(stack);
}
// an operator is encountered
else {
while(!isEmpty(stack) && Prec(exp[i]) <= Prec(peek(stack)))
exp[++k] = pop(stack);
push(stack, exp[i]);
}
}
// pop all the operators from the stack
while(!isEmpty(stack))
exp[++k] = pop(stack);
exp[++k] = '\0';
printf( "%s \n", exp );
return 0;
}
// Driver program to test above functions.
int main() {
char exp[] = "a+b*(c^d-e)^(f+g*h)-i";
infixToPostfix(exp);
return 0;
}
|
the_stack_data/29592.c
|
/*
* Copyright (c) 2017, 2018, Oracle and/or its affiliates.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of
* conditions and the following disclaimer in the documentation and/or other materials provided
* with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors may be used to
* endorse or promote products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
* COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
int a = 2;
int func1() {
return a--;
}
int main() {
return func1() && func1() && func1();
}
|
the_stack_data/31388768.c
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ecerquei <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/21 21:09:37 by ecerquei #+# #+# */
/* Updated: 2020/01/24 22:12:10 by ecerquei ### ########.fr */
/* */
/* ************************************************************************** */
int ft_islower(int c)
{
return (c >= 'a' && c <= 'z');
}
|
the_stack_data/106765.c
|
/* REQUIRED_ARGS: -fPIC
* DISABLED: win32 win64
*/
// https://issues.dlang.org/show_bug.cgi?id=22923
static int xs;
int printf(char *, ...);
int main()
{
printf("%p\n", &xs); // prints 0x1
int x = xs; // segfaults
return 0;
}
static int xs = 1;
|
the_stack_data/121023.c
|
#include<stdio.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<string.h>
int main()
{ int ss,sb;
ss=socket(AF_INET,SOCK_DGRAM,0);
struct sockaddr_in servaddr;
servaddr.sin_family=AF_INET;
servaddr.sin_port=ntohs(6011);
servaddr.sin_addr.s_addr=inet_addr("127.0.0.1");
bind(ss,(struct sockaddr *)&servaddr,sizeof(struct sockaddr));
printf("Recieving Message . . . . . \n");
struct sockaddr_in tempsendaddr;
int buf[100];
int len=sizeof(struct sockaddr);
recvfrom(ss,buf,100,0,(struct sockaddr *)&tempsendaddr,&len);
printf("Received from Client: ");
int i=1;
int size=buf[0];
buf[size+1]=buf[1];
while(i <= size){
printf(" %d",buf[i]);
if(buf[size+1] < buf[i]){
buf[size+1]=buf[i];
}
i++;
}
printf("\n");
printf("Sending Message . . . . . \n");
struct sockaddr_in client;
client.sin_family=AF_INET;
client.sin_port=ntohs(6009);
client.sin_addr.s_addr=inet_addr("127.0.0.1");
sendto(ss,buf,sizeof(buf),0,(struct sockaddr *) &client,sizeof(struct sockaddr));
printf("Message Sent.\n");
close (ss);
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.