#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*/ assertEq(int, int);
int /*<<< orphan*/ assertEqc(char, char);
int /*<<< orphan*/ assertEqf(float, double);
int /*<<< orphan*/ endTest();
int main() {
  int i, j = 10;
  i = i + j + 10;
  assertEq(i, 20);
  assertEq(j, 10);
  float x, y = 10.0;
  x = x + y + 10.0;
  assertEqf(x, 20.0);
  assertEqf(y, 10.0);
  char c;
  assertEqc(c, (char)0);
  endTest();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0xa,-0x8(%rbp)
mov    -0x4(%rbp),%eax
add    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%edi
mov    $0x14,%esi
call   1050 <assertEq@plt>
mov    -0x8(%rbp),%edi
mov    $0xa,%esi
call   1050 <assertEq@plt>
movss  0xe93(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe68(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
movsd  0xe56(%rip),%xmm1
call   1060 <assertEqf@plt>
movss  -0x10(%rbp),%xmm0
movsd  0xe3c(%rip),%xmm1
call   1060 <assertEqf@plt>
xor    %esi,%esi
movsbl -0x11(%rbp),%edi
call   1040 <assertEqc@plt>
mov    $0x0,%al
call   1030 <endTest@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x14,%esi
call   1050 <assertEq@plt>
mov    $0xa,%edi
mov    $0xa,%esi
call   1050 <assertEq@plt>
movss  0xe9e(%rip),%xmm0
movsd  0xe9e(%rip),%xmm1
call   1060 <assertEqf@plt>
movss  0xe8d(%rip),%xmm0
movsd  0xe91(%rip),%xmm1
call   1060 <assertEqf@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1040 <assertEqc@plt>
xor    %eax,%eax
call   1030 <endTest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
%4 = alloca float
%5 = alloca i8
store i32 10, i32* %2
%6 = load i32, i32* %1
%7 = load i32, i32* %2
%8 = add nsw i32 %6, %7
%9 = add nsw i32 %8, 10
store i32 %9, i32* %1
%10 = load i32, i32* %1
%11 = call i32 @assertEq(i32 %10, i32 20)
%12 = load i32, i32* %2
%13 = call i32 @assertEq(i32 %12, i32 10)
store float 1.000000e+01, float* %4
%14 = load float, float* %3
%15 = load float, float* %4
%16 = fadd float %14, %15
%17 = fpext float %16 to double
%18 = fadd double %17, 1.000000e+01
%19 = fptrunc double %18 to float
store float %19, float* %3
%20 = load float, float* %3
%21 = call i32 @assertEqf(float %20, double 2.000000e+01)
%22 = load float, float* %4
%23 = call i32 @assertEqf(float %22, double 1.000000e+01)
%24 = load i8, i8* %5
%25 = call i32 @assertEqc(i8 signext %24, i8 signext 0)
%26 = call i32 (...) @endTest()
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assertEq(i32 undef, i32 20)
%2 = tail call i32 @assertEq(i32 10, i32 10)
%3 = tail call i32 @assertEqf(float 0x7FF8000000000000, double 2.000000e+01)
%4 = tail call i32 @assertEqf(float 1.000000e+01, double 1.000000e+01)
%5 = tail call i32 @assertEqc(i8 signext undef, i8 signext 0)
%6 = tail call i32 (...) @endTest()
ret i32 0
}