dwarf-synthesis/testsuite/csmith/clang_O0/06.c

161 lines
7.7 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 7069041391684651990
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static int32_t g_2 = 0x91E29EA4L;
static int32_t g_6[10][9] = {{(-2L),(-6L),1L,1L,(-6L),(-2L),(-6L),1L,1L},{0x6D238E48L,0x38330377L,0x969A22DBL,0x8EC32687L,0x969A22DBL,0x38330377L,0x6D238E48L,0x9226C312L,0xD4E70302L},{0x85B6478CL,(-6L),0x85B6478CL,(-2L),(-2L),0x85B6478CL,(-6L),0x85B6478CL,(-2L)},{0x8CAFA32FL,0x9226C312L,0x969A22DBL,0x12E1DFE0L,0xF82D83D7L,0x12E1DFE0L,0x969A22DBL,0x9226C312L,0x8CAFA32FL},{1L,(-2L),1L,(-2L),1L,1L,(-2L),1L,(-2L)},{0x969A22DBL,0x38330377L,0xF82D83D7L,2L,0x6D238E48L,0x12E1DFE0L,0x6D238E48L,2L,0xF82D83D7L},{(-2L),(-2L),0x85B6478CL,(-6L),0x85B6478CL,(-2L),(-2L),0x85B6478CL,(-6L)},{0xD4E70302L,0x38330377L,0xD4E70302L,0x12E1DFE0L,0x8CAFA32FL,0x8EC32687L,0x6D238E48L,0x8EC32687L,0x8CAFA32FL},{1L,0x85B6478CL,0x85B6478CL,1L,1L,1L,0x85B6478CL,0x85B6478CL,1L},{0x969A22DBL,0x12E1DFE0L,0xF82D83D7L,0x12E1DFE0L,0x969A22DBL,0x9226C312L,0x8CAFA32FL,2L,0x8CAFA32FL}};
static uint8_t g_23 = 0x52L;
/* --- FORWARD DECLARATIONS --- */
uint16_t func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_2 g_23 g_6
* writes: g_2 g_23
*/
uint16_t func_1(void)
{ /* block id: 0 */
int16_t l_11 = 0x5DE2L;
int32_t l_12 = 3L;
int32_t l_13 = 5L;
int32_t l_15 = 1L;
uint32_t l_16[7][10][3] = {{{18446744073709551610UL,0x1D5E8E05L,0x569FAA33L},{0xD8D46D8DL,18446744073709551615UL,0x5B7DFF93L},{0x1D5E8E05L,0x1D5E8E05L,0x5AE7BE98L},{0x92E414E4L,0x384C83B0L,1UL},{6UL,9UL,18446744073709551615UL},{0xE686B7DEL,0xDA2DD443L,0x384C83B0L},{18446744073709551615UL,6UL,18446744073709551615UL},{0UL,0x91F28F68L,1UL},{0x60280E44L,0x47BFE1A2L,0x5AE7BE98L},{0xDA2DD443L,0x92E414E4L,0x5B7DFF93L}},{{18446744073709551615UL,0x569FAA33L,0x569FAA33L},{0xDA2DD443L,0x8EB8A80AL,0xE686B7DEL},{0x60280E44L,0xAB159BBCL,0x1D5E8E05L},{0UL,0xE686B7DEL,0xDA2DD443L},{18446744073709551615UL,0x5AE7BE98L,1UL},{0xE686B7DEL,0xE686B7DEL,18446744073709551615UL},{6UL,0xAB159BBCL,0x72882C65L},{0x92E414E4L,0x8EB8A80AL,0xD8D46D8DL},{0x1D5E8E05L,0x569FAA33L,0xAB159BBCL},{0xD8D46D8DL,0x92E414E4L,0xD8D46D8DL}},{{18446744073709551610UL,0x47BFE1A2L,0x72882C65L},{0x15FA727FL,0x91F28F68L,18446744073709551615UL},{0x569FAA33L,6UL,1UL},{0x8F52837BL,0xDA2DD443L,0xDA2DD443L},{0x569FAA33L,9UL,0x1D5E8E05L},{0x15FA727FL,0x384C83B0L,0xE686B7DEL},{18446744073709551610UL,0x1D5E8E05L,0x569FAA33L},{0xD8D46D8DL,18446744073709551615UL,0x5B7DFF93L},{0x1D5E8E05L,0x1D5E8E05L,0x5AE7BE98L},{0x92E414E4L,0x384C83B0L,1UL}},{{6UL,9UL,18446744073709551615UL},{0xE686B7DEL,0xDA2DD443L,0x384C83B0L},{18446744073709551615UL,6UL,18446744073709551615UL},{0UL,0x91F28F68L,1UL},{0x60280E44L,0x47BFE1A2L,0x5AE7BE98L},{0xDA2DD443L,0x92E414E4L,0x5B7DFF93L},{18446744073709551615UL,0x569FAA33L,0x569FAA33L},{0xDA2DD443L,0x8EB8A80AL,0xE686B7DEL},{0x60280E44L,0xAB159BBCL,0x1D5E8E05L},{0UL,0xE686B7DEL,0xDA2DD443L}},{{18446744073709551615UL,0x5AE7BE98L,1UL},{0xE686B7DEL,0xE686B7DEL,18446744073709551615UL},{6UL,0xAB159BBCL,0x72882C65L},{0x92E414E4L,0x8EB8A80AL,0xD8D46D8DL},{0x1D5E8E05L,0x569FAA33L,0xAB159BBCL},{0xD8D46D8DL,0x92E414E4L,0xD8D46D8DL},{18446744073709551610UL,0x47BFE1A2L,0x72882C65L},{0x15FA727FL,0x91F28F68L,18446744073709551615UL},{0x569FAA33L,6UL,1UL},{0xE686B7DEL,0x8F52837BL,0x8F52837BL}},{{18446744073709551615UL,0x72882C65L,0x5AE7BE98L},{0xD8D46D8DL,0xDA2DD443L,18446744073709551615UL},{0x47BFE1A2L,0x5AE7BE98L,18446744073709551615UL},{0x384C83B0L,0x92E414E4L,0x15FA727FL},{0x5AE7BE98L,0x5AE7BE98L,6UL},{0UL,0xDA2DD443L,0x5B7DFF93L},{18446744073709551610UL,0x72882C65L,0xAB159BBCL},{18446744073709551615UL,0x8F52837BL,0xDA2DD443L},{0xAB159BBCL,18446744073709551610UL,0xAB159BBCL},{0x91F28F68L,0x8EB8A80AL,0x5B7DFF93L}},{{18446744073709551615UL,9UL,6UL},{0x8F52837BL,0UL,0x15FA727FL},{0x1D5E8E05L,18446744073709551615UL,18446744073709551615UL},{0x8F52837BL,1UL,18446744073709551615UL},{18446744073709551615UL,0x569FAA33L,0x5AE7BE98L},{0x91F28F68L,18446744073709551615UL,0x8F52837BL},{0xAB159BBCL,6UL,0x60280E44L},{18446744073709551615UL,18446744073709551615UL,0x92E414E4L},{18446744073709551610UL,0x569FAA33L,1UL},{0UL,1UL,0x384C83B0L}}};
int32_t *l_19 = &g_6[6][4];
int32_t *l_20 = &g_6[6][4];
int32_t *l_21[6];
int64_t l_22 = 1L;
int i, j, k;
for (i = 0; i < 6; i++)
l_21[i] = &l_13;
for (g_2 = 0; (g_2 == (-22)); g_2 = safe_sub_func_uint8_t_u_u(g_2, 1))
{ /* block id: 3 */
int32_t *l_5 = &g_6[6][4];
int32_t *l_7 = &g_6[4][2];
int32_t *l_8 = &g_6[3][5];
int32_t *l_9 = (void*)0;
int32_t *l_10[3];
int64_t l_14 = 0L;
int i;
for (i = 0; i < 3; i++)
l_10[i] = (void*)0;
++l_16[4][8][2];
}
++g_23;
return (*l_20);
}
/* ---------------------------------------- */
int main (int argc, char* argv[])
{
int i, j;
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);
for (i = 0; i < 10; i++)
{
for (j = 0; j < 9; j++)
{
transparent_crc(g_6[i][j], "g_6[i][j]", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_23, "g_23", print_hash_value);
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: 8
XXX times a variable address is taken: 6
XXX times a pointer is dereferenced on RHS: 1
breakdown:
depth: 1, occurrence: 1
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: 591
XXX max dereference level: 1
breakdown:
level: 0, occurrence: 0
level: 1, occurrence: 2
XXX number of pointers point to pointers: 0
XXX number of pointers point to scalars: 8
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 25
XXX average alias set size: 1
XXX times a non-volatile is read: 3
XXX times a non-volatile is write: 3
XXX times a volatile is read: 0
XXX times read thru a pointer: 0
XXX times a volatile is write: 0
XXX times written thru a pointer: 0
XXX times a volatile is available for access: 0
XXX percentage of non-volatile access: 100
XXX forward jumps: 0
XXX backward jumps: 0
XXX stmts: 4
XXX max block depth: 1
breakdown:
depth: 0, occurrence: 3
depth: 1, occurrence: 1
XXX percentage a fresh-made variable is used: 5.84
XXX percentage an existing variable is used: 94.2
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/