/* * This is a RANDOMLY GENERATED PROGRAM. * * Generator: csmith 2.3.0 * Git version: 30dccd7 * Options: (none) * Seed: 2071812969915153517 */ #include "csmith.h" static long __undefined; /* --- Struct/Union Declarations --- */ union U0 { volatile uint16_t f0; uint64_t f1; int16_t f2; uint64_t f3; int8_t f4; }; /* --- GLOBAL VARIABLES --- */ static volatile int32_t g_2 = 0x708EF6B8L;/* VOLATILE GLOBAL g_2 */ static volatile int32_t g_3 = (-1L);/* VOLATILE GLOBAL g_3 */ static int32_t g_4 = 1L; static int32_t g_8 = (-1L); static union U0 g_10 = {0x6A37L};/* VOLATILE GLOBAL g_10 */ /* --- FORWARD DECLARATIONS --- */ const uint64_t func_1(void); /* --- FUNCTIONS --- */ /* ------------------------------------------ */ /* * reads : g_4 g_8 g_10.f4 g_10.f2 * writes: g_4 g_8 */ const uint64_t func_1(void) { /* block id: 0 */ union U0 *l_9 = &g_10; for (g_4 = 0; (g_4 < (-6)); g_4 = safe_sub_func_int16_t_s_s(g_4, 1)) { /* block id: 3 */ int32_t *l_7 = &g_8; union U0 **l_11 = &l_9; int32_t l_14[2][10] = {{(-2L),(-7L),0x9FE57F6CL,0x9FE57F6CL,(-7L),(-2L),(-7L),0x9FE57F6CL,0x9FE57F6CL,(-7L)},{(-2L),(-7L),0x9FE57F6CL,0x9FE57F6CL,(-7L),(-2L),(-7L),0x9FE57F6CL,0x9FE57F6CL,(-7L)}}; int i, j; (*l_7) = 0x836B16B4L; (*l_7) = g_8; (*l_11) = l_9; l_14[0][0] ^= (safe_add_func_int32_t_s_s((g_8 = ((*l_7) , g_8)), g_10.f4)); } return g_10.f2; } /* ---------------------------------------- */ int main (int argc, char* argv[]) { 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_4, "g_4", print_hash_value); transparent_crc(g_8, "g_8", print_hash_value); transparent_crc(g_10.f0, "g_10.f0", print_hash_value); transparent_crc(g_10.f2, "g_10.f2", print_hash_value); transparent_crc(g_10.f4, "g_10.f4", print_hash_value); platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value); return 0; } /************************ statistics ************************* XXX max struct depth: 0 breakdown: depth: 0, occurrence: 2 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: 4 breakdown: depth: 1, occurrence: 8 depth: 2, occurrence: 1 depth: 4, occurrence: 1 XXX total number of pointers: 3 XXX times a variable address is taken: 3 XXX times a pointer is dereferenced on RHS: 1 breakdown: depth: 1, occurrence: 1 XXX times a pointer is dereferenced on LHS: 3 breakdown: depth: 1, occurrence: 3 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: 5 XXX max dereference level: 1 breakdown: level: 0, occurrence: 0 level: 1, occurrence: 6 XXX number of pointers point to pointers: 1 XXX number of pointers point to scalars: 1 XXX number of pointers point to structs: 0 XXX percent of pointers has null in alias set: 0 XXX average alias set size: 1 XXX times a non-volatile is read: 8 XXX times a non-volatile is write: 9 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: 7 XXX percentage of non-volatile access: 100 XXX forward jumps: 0 XXX backward jumps: 0 XXX stmts: 6 XXX max block depth: 1 breakdown: depth: 0, occurrence: 2 depth: 1, occurrence: 4 XXX percentage a fresh-made variable is used: 22.2 XXX percentage an existing variable is used: 77.8 ********************* end of statistics **********************/