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

122 lines
3.1 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 12956665083026841612
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
/* --- GLOBAL VARIABLES --- */
static volatile int32_t g_2 = (-1L);/* VOLATILE GLOBAL g_2 */
static volatile int32_t g_3 = 0xC176B0F7L;/* VOLATILE GLOBAL g_3 */
static volatile int32_t g_4 = 0x8A1F9496L;/* VOLATILE GLOBAL g_4 */
static volatile int32_t g_5 = 0x3AA9AC70L;/* VOLATILE GLOBAL g_5 */
static int32_t g_6 = 0L;
static int32_t g_10 = 1L;
/* --- FORWARD DECLARATIONS --- */
int8_t func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_6 g_10 g_4
* writes: g_6 g_10
*/
int8_t func_1(void)
{ /* block id: 0 */
int64_t l_9[2];
int i;
for (i = 0; i < 2; i++)
l_9[i] = 0x811F07B4BC662A2BLL;
for (g_6 = (-19); (g_6 > 12); g_6 = safe_add_func_uint8_t_u_u(g_6, 2))
{ /* block id: 3 */
for (g_10 = 0; (g_10 <= 1); g_10 += 1)
{ /* block id: 6 */
int i;
return l_9[g_10];
}
}
return g_4;
}
/* ---------------------------------------- */
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_5, "g_5", print_hash_value);
transparent_crc(g_6, "g_6", print_hash_value);
transparent_crc(g_10, "g_10", print_hash_value);
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
XXX max struct depth: -1
breakdown:
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: 2
depth: 2, occurrence: 2
XXX total number of pointers: 0
XXX times a non-volatile is read: 3
XXX times a non-volatile is write: 2
XXX times a volatile is read: 1
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: 10
XXX percentage of non-volatile access: 83.3
XXX forward jumps: 0
XXX backward jumps: 0
XXX stmts: 4
XXX max block depth: 2
breakdown:
depth: 0, occurrence: 2
depth: 1, occurrence: 1
depth: 2, occurrence: 1
XXX percentage a fresh-made variable is used: 0
XXX percentage an existing variable is used: 100
********************* end of statistics **********************/