#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef enum color { ____Placeholder_color } color;
typedef int /*<<< orphan*/ default_short_int;
typedef int /*<<< orphan*/ default_long_int;
typedef int /*<<< orphan*/ default_long_double;
typedef int /*<<< orphan*/ default_int;
typedef int /*<<< orphan*/ default_float;
typedef int /*<<< orphan*/ default_double;
typedef int /*<<< orphan*/ default_char;

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  char default_char;
  signed char signed_char;
  unsigned char unsigned_char;
  int default_int;
  signed int signed_int;
  unsigned int unsigned_int;
  short int default_short_int;
  signed short int signed_short_int;
  unsigned short int unsigned_short_int;
  long int default_long_int;
  signed long int signed_long_int;
  unsigned long int unsigned_long_int;
  float default_float;
  double default_double;
  long double default_long_double;
  enum color { blue = 1, red = 2 };
  enum color my_color = blue;
  typedef char *string;
  string name = "helloworld";
  struct Person {
    char *name;
    int age;
  };
  assert(sizeof(default_char) == 1);
  assert(sizeof(default_int) == 2 || sizeof(default_int) == 4);
  assert(sizeof(default_short_int) == 1 || sizeof(default_short_int) == 2);
  assert(sizeof(default_long_int) == 4 || sizeof(default_long_int) == 8);
  assert(sizeof(default_float) == 4 || sizeof(default_float) == 8);
  assert(sizeof(default_double) == 8 || sizeof(default_double) == 8);
  assert(sizeof(default_long_double) == 16);
  assert(my_color == 1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x1,-0x54(%rbp)
lea    0xeda(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
cmpl   $0x1,-0x54(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
mov    $0x1,%edi
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"helloworld\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i16
%8 = alloca i16
%9 = alloca i16
%10 = alloca i64
%11 = alloca i64
%12 = alloca i64
%13 = alloca float
%14 = alloca double
%15 = alloca x86_fp80
%16 = alloca i32
%17 = alloca i8*
store i32 1, i32* %16
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %17
%18 = call i32 @assert(i32 1)
%19 = call i32 @assert(i32 1)
%20 = call i32 @assert(i32 1)
%21 = call i32 @assert(i32 1)
%22 = call i32 @assert(i32 1)
%23 = call i32 @assert(i32 1)
%24 = call i32 @assert(i32 1)
%25 = load i32, i32* %16
%26 = icmp eq i32 %25, 1
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 1)
%2 = tail call i32 @assert(i32 1)
%3 = tail call i32 @assert(i32 1)
%4 = tail call i32 @assert(i32 1)
%5 = tail call i32 @assert(i32 1)
%6 = tail call i32 @assert(i32 1)
%7 = tail call i32 @assert(i32 1)
%8 = tail call i32 @assert(i32 1)
ret i32 0
}