dwarf-synthesis/testsuite/csmith/clang_O1/54.c

169 lines
6.4 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 11512749560084184500
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static volatile int32_t g_2 = 0xA5D6C05BL;/* VOLATILE GLOBAL g_2 */
static int32_t g_3 = (-1L);
static int32_t g_7 = 1L;
static volatile int32_t g_25 = 0x2D38CA8CL;/* VOLATILE GLOBAL g_25 */
static volatile int8_t g_26[1][6][10] = {{{(-1L),(-1L),0xA8L,(-6L),0xA8L,(-1L),(-1L),8L,2L,2L},{(-1L),2L,0x7DL,0L,0L,0x7DL,2L,(-1L),1L,8L},{0x7DL,2L,(-1L),1L,8L,1L,(-1L),2L,0x7DL,0L},{0xA8L,(-1L),(-1L),8L,2L,2L,8L,(-1L),(-1L),0xA8L},{(-1L),1L,0x7DL,8L,0L,0xA8L,(-6L),2L,0L,(-1L)},{1L,0L,0x7DL,(-1L),(-6L),(-1L),(-1L),(-6L),(-1L),0x7DL}}};
static volatile uint16_t g_27 = 0UL;/* VOLATILE GLOBAL g_27 */
static uint64_t g_32[4] = {0UL,0UL,0UL,0UL};
/* --- FORWARD DECLARATIONS --- */
uint8_t func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_3 g_27 g_32 g_7
* writes: g_3 g_27 g_32
*/
uint8_t func_1(void)
{ /* block id: 0 */
int32_t l_23 = 0xEF3B0639L;
int32_t l_24 = 0x7D6C5051L;
int32_t l_31 = (-1L);
for (g_3 = (-2); (g_3 > 25); g_3 = safe_add_func_uint32_t_u_u(g_3, 9))
{ /* block id: 3 */
int32_t *l_6 = &g_7;
int32_t *l_8 = (void*)0;
int32_t *l_9 = &g_7;
int32_t *l_10 = &g_7;
int32_t *l_11 = &g_7;
int32_t *l_12 = &g_7;
int32_t *l_13 = &g_7;
int32_t *l_14 = &g_7;
int32_t *l_15 = &g_7;
int32_t *l_16 = &g_7;
int32_t *l_17 = &g_7;
int32_t *l_18 = &g_7;
int32_t *l_19 = (void*)0;
int32_t *l_20 = &g_7;
int32_t *l_21 = &g_7;
int32_t *l_22[8][6][5] = {{{&g_3,&g_3,(void*)0,(void*)0,&g_3},{&g_7,&g_7,&g_3,(void*)0,&g_7},{(void*)0,&g_3,&g_3,&g_3,&g_3},{&g_7,&g_7,(void*)0,&g_3,&g_3},{&g_3,&g_3,&g_7,&g_3,&g_7},{&g_3,&g_7,&g_7,&g_7,(void*)0}},{{&g_7,&g_3,&g_7,&g_3,(void*)0},{(void*)0,&g_7,(void*)0,&g_7,(void*)0},{&g_7,&g_3,&g_3,&g_3,&g_7},{&g_7,&g_7,&g_3,&g_7,&g_3},{&g_3,&g_3,(void*)0,(void*)0,&g_3},{&g_7,&g_7,&g_3,(void*)0,&g_7}},{{(void*)0,&g_3,&g_3,&g_3,&g_3},{&g_7,&g_7,(void*)0,&g_3,&g_3},{&g_3,&g_3,&g_7,&g_3,&g_7},{&g_3,&g_7,&g_7,&g_7,(void*)0},{&g_7,&g_3,&g_7,&g_3,(void*)0},{(void*)0,&g_7,(void*)0,&g_7,(void*)0}},{{&g_7,&g_3,&g_3,&g_3,&g_7},{&g_7,&g_7,&g_3,&g_7,&g_3},{&g_3,&g_3,(void*)0,(void*)0,&g_3},{&g_7,&g_7,&g_3,(void*)0,&g_7},{(void*)0,&g_3,&g_3,&g_3,&g_3},{&g_7,&g_7,(void*)0,&g_3,&g_3}},{{&g_3,&g_3,&g_7,&g_3,&g_7},{&g_3,&g_7,&g_7,&g_7,(void*)0},{&g_7,&g_3,&g_7,&g_3,(void*)0},{(void*)0,&g_7,(void*)0,&g_7,(void*)0},{&g_7,&g_3,&g_3,&g_3,&g_7},{&g_7,&g_7,&g_3,&g_7,&g_3}},{{&g_3,&g_3,(void*)0,(void*)0,&g_3},{&g_7,&g_7,&g_3,(void*)0,&g_7},{(void*)0,&g_3,&g_3,&g_3,&g_3},{&g_7,&g_7,(void*)0,&g_3,&g_3},{&g_3,&g_3,&g_7,&g_7,&g_7},{&g_7,&g_7,&g_7,&g_7,&g_3}},{{&g_7,(void*)0,&g_3,&g_3,&g_7},{(void*)0,&g_7,&g_3,&g_7,(void*)0},{&g_3,(void*)0,&g_3,&g_7,&g_3},{&g_3,&g_7,(void*)0,(void*)0,(void*)0},{(void*)0,(void*)0,&g_7,&g_7,(void*)0},{&g_3,&g_7,&g_7,&g_3,&g_7}},{{&g_3,(void*)0,(void*)0,&g_7,&g_3},{(void*)0,&g_7,(void*)0,&g_3,&g_7},{&g_7,(void*)0,&g_7,&g_7,&g_7},{&g_7,&g_7,&g_7,&g_7,&g_3},{&g_7,(void*)0,&g_3,&g_3,&g_7},{(void*)0,&g_7,&g_3,&g_7,(void*)0}}};
int32_t l_30 = 3L;
int i, j, k;
g_27++;
++g_32[0];
}
return g_7;
}
/* ---------------------------------------- */
int main (int argc, char* argv[])
{
int i, j, k;
int print_hash_value = 0;
if (argc == 2 && strcmp(argv[1], "1") == 0) print_hash_value = 1;
platform_main_begin();
crc32_gentab();
func_1();
transparent_crc(g_2, "g_2", print_hash_value);
transparent_crc(g_3, "g_3", print_hash_value);
transparent_crc(g_7, "g_7", print_hash_value);
transparent_crc(g_25, "g_25", print_hash_value);
for (i = 0; i < 1; i++)
{
for (j = 0; j < 6; j++)
{
for (k = 0; k < 10; k++)
{
transparent_crc(g_26[i][j][k], "g_26[i][j][k]", print_hash_value);
if (print_hash_value) printf("index = [%d][%d][%d]\n", i, j, k);
}
}
}
transparent_crc(g_27, "g_27", print_hash_value);
for (i = 0; i < 4; i++)
{
transparent_crc(g_32[i], "g_32[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
XXX max struct depth: 0
breakdown:
depth: 0, occurrence: 8
XXX total union variables: 0
XXX non-zero bitfields defined in structs: 0
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 0
XXX volatile bitfields defined in structs: 0
XXX structs with bitfields in the program: 0
breakdown:
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 0
XXX times a bitfields struct on LHS: 0
XXX times a bitfields struct on RHS: 0
XXX times a single bitfield on LHS: 0
XXX times a single bitfield on RHS: 0
XXX max expression depth: 2
breakdown:
depth: 1, occurrence: 5
depth: 2, occurrence: 1
XXX total number of pointers: 16
XXX times a variable address is taken: 93
XXX times a pointer is dereferenced on RHS: 0
breakdown:
XXX times a pointer is dereferenced on LHS: 0
breakdown:
XXX times a pointer is compared with null: 0
XXX times a pointer is compared with address of another variable: 0
XXX times a pointer is compared with another pointer: 0
XXX times a pointer is qualified to be dereferenced: 164
XXX number of pointers point to pointers: 0
XXX number of pointers point to scalars: 16
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 18.8
XXX average alias set size: 1.12
XXX times a non-volatile is read: 2
XXX times a non-volatile is write: 2
XXX times a volatile is read: 0
XXX times read thru a pointer: 0
XXX times a volatile is write: 1
XXX times written thru a pointer: 0
XXX times a volatile is available for access: 10
XXX percentage of non-volatile access: 80
XXX forward jumps: 0
XXX backward jumps: 0
XXX stmts: 4
XXX max block depth: 1
breakdown:
depth: 0, occurrence: 2
depth: 1, occurrence: 2
XXX percentage a fresh-made variable is used: 40
XXX percentage an existing variable is used: 60
********************* end of statistics **********************/