#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 */

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int main() {
  char string[] = "helloworld";
  char char_a = 'a';
  int helper = 0, zero = 0, ten = 2;
  float dec = 3.012;
  double dou = 3.34534534534534534;
  if (char_a)
    helper++;
  assert(helper == 1);
  if (zero)
    helper++;
  assert(helper == 1);
  if (ten)
    helper++;
  assert(helper == 2);
  if (dec)
    helper++;
  assert(helper == 3);
  if (dou)
    helper++;
  assert(helper == 4);
  if (1)
    helper++;
  assert(helper == 5);
  if (0)
    helper++;
  assert(helper == 5);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xee6(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xee3(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xedb(%rip),%al
mov    %al,-0x5(%rbp)
movb   $0x61,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x2,-0x1c(%rbp)
movss  0xea9(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movsd  0xe94(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpb   $0x0,-0x10(%rbp)
je     1184 <main+0x74>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x18(%rbp)
je     11a8 <main+0x98>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x1,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x0,-0x1c(%rbp)
je     11cc <main+0xbc>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movss  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11f9 <main+0xe9>
jp     11f9 <main+0xe9>
jmp    1202 <main+0xf2>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x3,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1230 <main+0x120>
jp     1230 <main+0x120>
jmp    1239 <main+0x129>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x4,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x5,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x5,-0x14(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%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>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@__const.main.string = [11 x i8] c"helloworld\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca i8
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca double
store i32 0, i32* %1
%9 = bitcast [11 x i8]* %2 to i8*
store i8 97, i8* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 2, i32* %6
store float 0x4008189380000000, float* %7
store double 0x400AC3446BA0AC34, double* %8
%10 = load i8, i8* %3
%11 = icmp ne i8 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %0
%13 = load i32, i32* %4
%14 = add nsw i32 %13, 1
store i32 %14, i32* %4
br label %15
15: ; preds = %12, %0
%16 = load i32, i32* %4
%17 = icmp eq i32 %16, 1
%18 = zext i1 %17 to i32
%19 = call i32 @assert(i32 %18)
%20 = load i32, i32* %5
%21 = icmp ne i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %15
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
br label %25
25: ; preds = %22, %15
%26 = load i32, i32* %4
%27 = icmp eq i32 %26, 1
%28 = zext i1 %27 to i32
%29 = call i32 @assert(i32 %28)
%30 = load i32, i32* %6
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %25
%33 = load i32, i32* %4
%34 = add nsw i32 %33, 1
store i32 %34, i32* %4
br label %35
35: ; preds = %32, %25
%36 = load i32, i32* %4
%37 = icmp eq i32 %36, 2
%38 = zext i1 %37 to i32
%39 = call i32 @assert(i32 %38)
%40 = load float, float* %7
%41 = fcmp une float %40, 0.000000e+00
br i1 %41, label %42, label %45
42: ; preds = %35
%43 = load i32, i32* %4
%44 = add nsw i32 %43, 1
store i32 %44, i32* %4
br label %45
45: ; preds = %42, %35
%46 = load i32, i32* %4
%47 = icmp eq i32 %46, 3
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = load double, double* %8
%51 = fcmp une double %50, 0.000000e+00
br i1 %51, label %52, label %55
52: ; preds = %45
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
store i32 %54, i32* %4
br label %55
55: ; preds = %52, %45
%56 = load i32, i32* %4
%57 = icmp eq i32 %56, 4
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
%60 = load i32, i32* %4
%61 = add nsw i32 %60, 1
store i32 %61, i32* %4
%62 = load i32, i32* %4
%63 = icmp eq i32 %62, 5
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i32, i32* %4
%67 = icmp eq i32 %66, 5
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = load i32, i32* %1
ret i32 %70
}

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)
ret i32 0
}