#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*/ printf(char *, int, ...);
int main() {
  int i1 = 1, i2 = 2;
  float f1 = 1.0, f2 = 2.0;
  int s_a, s_b, s_c;
  s_a = s_b = s_c = 0;
  printf("i1 = %d;\ni2 = %d;\ni1 + i2 = %d;\ni1 - i2 = %d;\ni1 * i2 = %d;\ni1 "
         "/ i2 = %d;\nf1 / f2 = %f;\n",
         i1, i2, i1 + i2, i1 - i2, i1 * i2, i1 / i2, f1 / f2);
  printf("11 %% 3 = %d;\n", (11 % 3));
  3 == 2;
  3 != 2;
  3 > 2;
  3 < 2;
  2 <= 2;
  2 >= 2;
  int c_a = 1;
  int between_0_and_2 = 0;
  between_0_and_2 = 0 < c_a < 2;
  between_0_and_2 = 0 < c_a && c_a < 2;
  !3;
  !0;
  1 && 1;
  0 && 1;
  0 || 1;
  0 || 0;
  int i_a = 5;
  int i_b = 10;
  int z;
  z = (i_a > i_b) ? i_a : i_b;
  char *s = "iLoveC";
  int j = 0;
  s[j++];
  j = 0;
  s[++j];
  ~0x0F;
  0x0F & 0xF0;
  0x0F | 0xF0;
  0x04 ^ 0x0F;
  0x01 << 1;
  0x02 >> 1;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
movl   $0x2,-0xc(%rbp)
movss  0xecf(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xebe(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
mov    -0x8(%rbp),%r8d
sub    -0xc(%rbp),%r8d
mov    -0x8(%rbp),%r9d
imul   -0xc(%rbp),%r9d
mov    -0x8(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    -0x4c(%rbp),%edx
movss  -0x10(%rbp),%xmm0
divss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe6d(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
xor    %eax,%eax
cmp    -0x24(%rbp),%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x2,%eax
setl   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x28(%rbp)
xor    %eax,%eax
xor    %ecx,%ecx
cmp    -0x24(%rbp),%ecx
mov    %al,-0x45(%rbp)
jge    11fb <main+0xeb>
cmpl   $0x2,-0x24(%rbp)
setl   %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x28(%rbp)
movl   $0x5,-0x2c(%rbp)
movl   $0xa,-0x30(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jle    122b <main+0x11b>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x50(%rbp)
jmp    1231 <main+0x121>
mov    -0x30(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
mov    %eax,-0x34(%rbp)
lea    0xe32(%rip),%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x0,(%rsp)
lea    0xee9(%rip),%rdi
movsd  0xed9(%rip),%xmm0
mov    $0x1,%esi
mov    $0x2,%edx
mov    $0x3,%ecx
mov    $0xffffffff,%r8d
mov    $0x2,%r9d
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xf11(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [89 x i8] c"i1 = %d;\0Ai2 = %d;\0Ai1 + i2 = %d;\0Ai1 - i2 = %d;\0Ai1 * i2 = %d;\0Ai1 / i2 = %d;\0Af1 / f2 = %f;\0A\00"
@.str.1 = [15 x i8] c"11 %% 3 = %d;\0A\00"
@.str.2 = [7 x i8] c"iLoveC\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca float
%5 = alloca float
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
store i32 2, i32* %3
store float 1.000000e+00, float* %4
store float 2.000000e+00, float* %5
store i32 0, i32* %8
store i32 0, i32* %7
store i32 0, i32* %6
%16 = load i32, i32* %2
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = load i32, i32* %3
%20 = add nsw i32 %18, %19
%21 = load i32, i32* %2
%22 = load i32, i32* %3
%23 = sub nsw i32 %21, %22
%24 = load i32, i32* %2
%25 = load i32, i32* %3
%26 = mul nsw i32 %24, %25
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = sdiv i32 %27, %28
%30 = load float, float* %4
%31 = load float, float* %5
%32 = fdiv float %30, %31
%33 = fpext float %32 to double
%34 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17, i32 %20, i32 %23, i32 %26, i32 %29, double %33)
%35 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 2)
store i32 1, i32* %9
store i32 0, i32* %10
%36 = load i32, i32* %9
%37 = icmp slt i32 0, %36
%38 = zext i1 %37 to i32
%39 = icmp slt i32 %38, 2
%40 = zext i1 %39 to i32
store i32 %40, i32* %10
%41 = load i32, i32* %9
%42 = icmp slt i32 0, %41
br i1 %42, label %43, label %46
43: ; preds = %0
%44 = load i32, i32* %9
%45 = icmp slt i32 %44, 2
br label %46
46: ; preds = %43, %0
%47 = phi i1 [ false, %0 ], [ %45, %43 ]
%48 = zext i1 %47 to i32
store i32 %48, i32* %10
store i32 5, i32* %11
store i32 10, i32* %12
%49 = load i32, i32* %11
%50 = load i32, i32* %12
%51 = icmp sgt i32 %49, %50
br i1 %51, label %52, label %54
52: ; preds = %46
%53 = load i32, i32* %11
br label %56
54: ; preds = %46
%55 = load i32, i32* %12
br label %56
56: ; preds = %54, %52
%57 = phi i32 [ %53, %52 ], [ %55, %54 ]
store i32 %57, i32* %13
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8** %14
store i32 0, i32* %15
%58 = load i8*, i8** %14
%59 = load i32, i32* %15
%60 = add nsw i32 %59, 1
store i32 %60, i32* %15
%61 = sext i32 %59 to i64
%62 = getelementptr inbounds i8, i8* %58, i64 %61
%63 = load i8, i8* %62
store i32 0, i32* %15
%64 = load i8*, i8** %14
%65 = load i32, i32* %15
%66 = add nsw i32 %65, 1
store i32 %66, i32* %15
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds i8, i8* %64, i64 %67
%69 = load i8, i8* %68
ret i32 0
}

LLVM IR (-O2):
@.str = [89 x i8] c"i1 = %d;\0Ai2 = %d;\0Ai1 + i2 = %d;\0Ai1 - i2 = %d;\0Ai1 * i2 = %d;\0Ai1 / i2 = %d;\0Af1 / f2 = %f;\0A\00"
@.str.1 = [15 x i8] c"11 %% 3 = %d;\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str, i64 0, i64 0), i32 1, i32 2, i32 3, i32 -1, i32 2, i32 0, double 5.000000e-01)
%2 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 2)
ret i32 0
}