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

163 lines
5.1 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 12856648613514209884
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
union U2 {
volatile int64_t f0;
int8_t f1;
volatile uint16_t f2;
};
/* --- GLOBAL VARIABLES --- */
static union U2 g_2[10][6] = {{{-1L},{0xF0EBF90350D8AF87LL},{-5L},{-1L},{9L},{0L}},{{0xF6B3E713E19F23E5LL},{-5L},{-1L},{-1L},{-1L},{-1L}},{{-1L},{6L},{6L},{-1L},{0x38591B68DEE21AFALL},{0x6AA1654207647F1ALL}},{{-9L},{0xF6B3E713E19F23E5LL},{0L},{0xB1B055CC25BFC88ELL},{-1L},{0x5158018D9DCEE34ELL}},{{0L},{-1L},{-1L},{0xB3847D228D5FEAF8LL},{-1L},{0xF0EBF90350D8AF87LL}},{{0x38591B68DEE21AFALL},{0xF6B3E713E19F23E5LL},{-1L},{0xF6B3E713E19F23E5LL},{0x38591B68DEE21AFALL},{0xB3847D228D5FEAF8LL}},{{-1L},{6L},{0x509E71B35D56974ELL},{0x6AA1654207647F1ALL},{-1L},{0L}},{{0x509E71B35D56974ELL},{-5L},{0x38591B68DEE21AFALL},{6L},{0x6AA1654207647F1ALL},{0xFDA7EF5D870A3267LL}},{{-1L},{-1L},{-1L},{-1L},{-1L},{-1L}},{{0x6AA1654207647F1ALL},{-5L},{-9L},{0x509E71B35D56974ELL},{0L},{-1L}}};
static volatile int32_t g_3 = 0x2B058EFAL;/* VOLATILE GLOBAL g_3 */
static int32_t g_4[9] = {0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L,0x51EF9953L};
static volatile uint32_t g_11 = 18446744073709551606UL;/* VOLATILE GLOBAL g_11 */
/* --- FORWARD DECLARATIONS --- */
int16_t func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_4 g_11
* writes: g_4 g_11
*/
int16_t func_1(void)
{ /* block id: 0 */
int32_t l_5 = 0L;
int32_t *l_6 = &g_4[0];
int32_t *l_7 = (void*)0;
int32_t *l_8 = &l_5;
int32_t *l_9 = &l_5;
int32_t *l_10 = &g_4[0];
for (g_4[0] = 0; (g_4[0] <= 5); g_4[0] += 1)
{ /* block id: 3 */
return g_4[0];
}
(*l_8) = (l_5 , ((*l_6) = 0x7F4A7D2AL));
g_11--;
return g_11;
}
/* ---------------------------------------- */
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();
for (i = 0; i < 10; i++)
{
for (j = 0; j < 6; j++)
{
transparent_crc(g_2[i][j].f0, "g_2[i][j].f0", print_hash_value);
transparent_crc(g_2[i][j].f1, "g_2[i][j].f1", print_hash_value);
transparent_crc(g_2[i][j].f2, "g_2[i][j].f2", print_hash_value);
if (print_hash_value) printf("index = [%d][%d]\n", i, j);
}
}
transparent_crc(g_3, "g_3", print_hash_value);
for (i = 0; i < 9; i++)
{
transparent_crc(g_4[i], "g_4[i]", print_hash_value);
if (print_hash_value) printf("index = [%d]\n", i);
}
transparent_crc(g_11, "g_11", 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: 3
breakdown:
depth: 1, occurrence: 5
depth: 2, occurrence: 1
depth: 3, occurrence: 1
XXX total number of pointers: 5
XXX times a variable address is taken: 4
XXX times a pointer is dereferenced on RHS: 0
breakdown:
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: 12
XXX max dereference level: 1
breakdown:
level: 0, occurrence: 0
level: 1, occurrence: 3
XXX number of pointers point to pointers: 0
XXX number of pointers point to scalars: 5
XXX number of pointers point to structs: 0
XXX percent of pointers has null in alias set: 20
XXX average alias set size: 1
XXX times a non-volatile is read: 3
XXX times a non-volatile is write: 5
XXX times a volatile is read: 1
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: 4
XXX percentage of non-volatile access: 80
XXX forward jumps: 0
XXX backward jumps: 0
XXX stmts: 5
XXX max block depth: 1
breakdown:
depth: 0, occurrence: 4
depth: 1, occurrence: 1
XXX percentage a fresh-made variable is used: 28.6
XXX percentage an existing variable is used: 71.4
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/