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

190 lines
5.5 KiB
C

/*
* This is a RANDOMLY GENERATED PROGRAM.
*
* Generator: csmith 2.3.0
* Git version: 30dccd7
* Options: (none)
* Seed: 5273245173267316660
*/
#include "csmith.h"
static long __undefined;
/* --- Struct/Union Declarations --- */
#pragma pack(push)
#pragma pack(1)
struct S5 {
uint8_t f0;
signed f1 : 10;
unsigned f2 : 6;
signed f3 : 11;
};
#pragma pack(pop)
struct S4 {
unsigned f0 : 20;
volatile signed f1 : 20;
signed f2 : 19;
};
#pragma pack(push)
#pragma pack(1)
struct S1 {
volatile unsigned f0 : 10;
const volatile signed f1 : 14;
volatile uint8_t f2;
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct S2 {
const signed f0 : 19;
volatile unsigned f1 : 22;
unsigned f2 : 25;
signed f3 : 13;
volatile signed f4 : 17;
const unsigned f5 : 4;
volatile signed f6 : 16;
const unsigned f7 : 6;
signed f8 : 15;
};
#pragma pack(pop)
#pragma pack(push)
#pragma pack(1)
struct S6 {
struct S5 f0;
volatile int64_t f1;
signed f2 : 18;
volatile struct S4 f3;
int16_t f4;
struct S1 f5;
volatile struct S2 f6;
volatile uint32_t f7;
int32_t f8;
const struct S2 f9;
};
#pragma pack(pop)
/* --- GLOBAL VARIABLES --- */
static struct S6 g_2 = {{0x52L,22,1,-33},0x535DD253D9751230LL,498,{255,6,356},0x418EL,{27,-0,0UL},{-358,739,1513,-37,-70,0,32,3,105},18446744073709551615UL,0xF8BA7967L,{-378,88,671,27,-25,0,202,1,155}};/* VOLATILE GLOBAL g_2 */
/* --- FORWARD DECLARATIONS --- */
struct S6 func_1(void);
/* --- FUNCTIONS --- */
/* ------------------------------------------ */
/*
* reads : g_2
* writes:
*/
struct S6 func_1(void)
{ /* block id: 0 */
return g_2;
}
/* ---------------------------------------- */
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.f0.f0, "g_2.f0.f0", print_hash_value);
transparent_crc(g_2.f0.f1, "g_2.f0.f1", print_hash_value);
transparent_crc(g_2.f0.f2, "g_2.f0.f2", print_hash_value);
transparent_crc(g_2.f0.f3, "g_2.f0.f3", print_hash_value);
transparent_crc(g_2.f1, "g_2.f1", print_hash_value);
transparent_crc(g_2.f2, "g_2.f2", print_hash_value);
transparent_crc(g_2.f3.f0, "g_2.f3.f0", print_hash_value);
transparent_crc(g_2.f3.f1, "g_2.f3.f1", print_hash_value);
transparent_crc(g_2.f3.f2, "g_2.f3.f2", print_hash_value);
transparent_crc(g_2.f4, "g_2.f4", print_hash_value);
transparent_crc(g_2.f5.f0, "g_2.f5.f0", print_hash_value);
transparent_crc(g_2.f5.f1, "g_2.f5.f1", print_hash_value);
transparent_crc(g_2.f5.f2, "g_2.f5.f2", print_hash_value);
transparent_crc(g_2.f6.f0, "g_2.f6.f0", print_hash_value);
transparent_crc(g_2.f6.f1, "g_2.f6.f1", print_hash_value);
transparent_crc(g_2.f6.f2, "g_2.f6.f2", print_hash_value);
transparent_crc(g_2.f6.f3, "g_2.f6.f3", print_hash_value);
transparent_crc(g_2.f6.f4, "g_2.f6.f4", print_hash_value);
transparent_crc(g_2.f6.f5, "g_2.f6.f5", print_hash_value);
transparent_crc(g_2.f6.f6, "g_2.f6.f6", print_hash_value);
transparent_crc(g_2.f6.f7, "g_2.f6.f7", print_hash_value);
transparent_crc(g_2.f6.f8, "g_2.f6.f8", print_hash_value);
transparent_crc(g_2.f7, "g_2.f7", print_hash_value);
transparent_crc(g_2.f8, "g_2.f8", print_hash_value);
transparent_crc(g_2.f9.f0, "g_2.f9.f0", print_hash_value);
transparent_crc(g_2.f9.f1, "g_2.f9.f1", print_hash_value);
transparent_crc(g_2.f9.f2, "g_2.f9.f2", print_hash_value);
transparent_crc(g_2.f9.f3, "g_2.f9.f3", print_hash_value);
transparent_crc(g_2.f9.f4, "g_2.f9.f4", print_hash_value);
transparent_crc(g_2.f9.f5, "g_2.f9.f5", print_hash_value);
transparent_crc(g_2.f9.f6, "g_2.f9.f6", print_hash_value);
transparent_crc(g_2.f9.f7, "g_2.f9.f7", print_hash_value);
transparent_crc(g_2.f9.f8, "g_2.f9.f8", print_hash_value);
platform_main_end(crc32_context ^ 0xFFFFFFFFUL, print_hash_value);
return 0;
}
/************************ statistics *************************
XXX max struct depth: 2
breakdown:
depth: 0, occurrence: 0
depth: 1, occurrence: 0
depth: 2, occurrence: 1
XXX total union variables: 0
XXX non-zero bitfields defined in structs: 1
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: 1
breakdown:
indirect level: 0, occurrence: 1
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: 1
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: 1
XXX total number of pointers: 0
XXX times a non-volatile is read: 1
XXX times a non-volatile is write: 0
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: 1
XXX max block depth: 0
breakdown:
depth: 0, occurrence: 1
XXX percentage a fresh-made variable is used: 100
XXX percentage an existing variable is used: 0
FYI: the random generator makes assumptions about the integer size. See platform.info for more details.
********************* end of statistics **********************/