dwarf-synthesis/testsuite/csmith/gcc_O2/49.c

151 lines
4.4 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 15200118914622404664
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
union U1 {
int64_t f0;
const volatile int32_t f1;
volatile signed f2 : 16;
const volatile unsigned f3 : 7;
};
/* --- GLOBAL VARIABLES --- */
static union U1 g_3 = {0x24C00011151C3C39LL};/* VOLATILE GLOBAL g_3 */
static int32_t g_7 = 9L;
static int32_t * volatile g_6[7] = {&g_7,&g_7,&g_7,&g_7,&g_7,&g_7,&g_7};
static int32_t * volatile g_8 = &g_7;/* VOLATILE GLOBAL g_8 */
static int32_t ** volatile g_9 = (void*)0;/* VOLATILE GLOBAL g_9 */
static int32_t *g_11 = &g_7;
static int32_t ** volatile g_10[7][1][9] = {{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}},{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}},{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}},{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}},{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}},{{(void*)0,(void*)0,&g_11,(void*)0,(void*)0,&g_11,(void*)0,(void*)0,&g_11}},{{&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11,&g_11}}};
/* --- FORWARD DECLARATIONS --- */
uint8_t func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_8 g_7
* writes: g_7
*/
uint8_t func_1(void)
{ /* block id: 0 */
union U1 *l_2[1];
union U1 **l_4 = &l_2[0];
uint8_t l_5 = 0xD4L;
int32_t *l_12 = &g_7;
int i;
for (i = 0; i < 1; i++)
l_2[i] = &g_3;
(*l_4) = l_2[0];
(*g_8) = l_5;
l_12 = &g_7;
return (*l_12);
}
/* ---------------------------------------- */
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_3.f0, "g_3.f0", print_hash_value);
transparent_crc(g_3.f1, "g_3.f1", print_hash_value);
transparent_crc(g_3.f2, "g_3.f2", print_hash_value);
transparent_crc(g_3.f3, "g_3.f3", print_hash_value);
transparent_crc(g_7, "g_7", print_hash_value);
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
XXX max struct depth: 0
breakdown:
depth: 0, occurrence: 3
XXX total union variables: 0
XXX non-zero bitfields defined in structs: 2
XXX zero bitfields defined in structs: 0
XXX const bitfields defined in structs: 1
XXX volatile bitfields defined in structs: 2
XXX structs with bitfields in the program: 1
breakdown:
indirect level: 0, occurrence: 0
indirect level: 1, occurrence: 1
XXX full-bitfields structs in the program: 0
breakdown:
XXX times a bitfields struct's address is taken: 1
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: 1
breakdown:
depth: 1, occurrence: 7
XXX total number of pointers: 8
XXX times a variable address is taken: 12
XXX times a pointer is dereferenced on RHS: 1
breakdown:
depth: 1, occurrence: 1
XXX times a pointer is dereferenced on LHS: 2
breakdown:
depth: 1, occurrence: 2
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: 4
XXX max dereference level: 1
breakdown:
level: 0, occurrence: 0
level: 1, occurrence: 4
XXX number of pointers point to pointers: 3
XXX number of pointers point to scalars: 4
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 25
XXX average alias set size: 1.12
XXX times a non-volatile is read: 4
XXX times a non-volatile is write: 4
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: 12
XXX percentage of non-volatile access: 88.9
XXX forward jumps: 0
XXX backward jumps: 0
XXX stmts: 4
XXX max block depth: 0
breakdown:
depth: 0, occurrence: 4
XXX percentage a fresh-made variable is used: 60
XXX percentage an existing variable is used: 40
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/