#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 *, float, float);
int main(void) {
  float celsius, fahr;
  printf("%3c\t%3c\n-----------\n", 'C', 'F');
  celsius = 0;
  while (celsius <= 100) {
    fahr = (9.0 / 5.0) * celsius + 32;
    printf("%3.0f\t%3.0f\n", celsius, fahr);
    celsius += 10;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xefa(%rip),%rdi
movss  0xed2(%rip),%xmm0
movss  0xece(%rip),%xmm1
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  0xebd(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     11ac <main+0x9c>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xeaa(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xea6(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xea5(%rip),%rdi
call   1030 <printf@plt>
movss  0xe6f(%rip),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1143 <main+0x33>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf3c(%rip),%rdi
movss  0xee0(%rip),%xmm0
movss  0xedc(%rip),%xmm1
call   1030 <printf@plt>
lea    0xf35(%rip),%rbx
movss  0xecc(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xebd(%rip),%xmm0
movss  0xeb9(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xead(%rip),%xmm0
movss  0xea9(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe9d(%rip),%xmm0
movss  0xe99(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe8d(%rip),%xmm0
movss  0xe89(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe7d(%rip),%xmm1
mov    %rbx,%rdi
movss  0xe56(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe69(%rip),%xmm0
movss  0xe65(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe59(%rip),%xmm1
mov    %rbx,%rdi
movss  0xe1a(%rip),%xmm0
call   1030 <printf@plt>
movss  0xe45(%rip),%xmm0
movss  0xe41(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe35(%rip),%xmm0
movss  0xe31(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
movss  0xe25(%rip),%xmm0
movss  0xe21(%rip),%xmm1
mov    %rbx,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [21 x i8] c"%3c\09%3c\0A-----------\0A\00"
@.str.1 = [13 x i8] c"%3.0f\09%3.0f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
store i32 0, i32* %1
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), float 6.700000e+01, float 7.000000e+01)
store float 0.000000e+00, float* %2
br label %5
5: ; preds = %8, %0
%6 = load float, float* %2
%7 = fcmp ole float %6, 1.000000e+02
br i1 %7, label %8, label %18
8: ; preds = %5
%9 = load float, float* %2
%10 = fpext float %9 to double
%11 = call double @llvm.fmuladd.f64(double 1.800000e+00, double %10, double 3.200000e+01)
%12 = fptrunc double %11 to float
store float %12, float* %3
%13 = load float, float* %2
%14 = load float, float* %3
%15 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float %13, float %14)
%16 = load float, float* %2
%17 = fadd float %16, 1.000000e+01
store float %17, float* %2
br label %5
18: ; preds = %5
%19 = load i32, i32* %1
ret i32 %19
}

LLVM IR (-O2):
@.str = [21 x i8] c"%3c\09%3c\0A-----------\0A\00"
@.str.1 = [13 x i8] c"%3.0f\09%3.0f\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), float 6.700000e+01, float 7.000000e+01)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 0.000000e+00, float 3.200000e+01)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+01, float 5.000000e+01)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 2.000000e+01, float 6.800000e+01)
%5 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 3.000000e+01, float 8.600000e+01)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 4.000000e+01, float 1.040000e+02)
%7 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 5.000000e+01, float 1.220000e+02)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 6.000000e+01, float 1.400000e+02)
%9 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 7.000000e+01, float 1.580000e+02)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 8.000000e+01, float 1.760000e+02)
%11 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 9.000000e+01, float 1.940000e+02)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), float 1.000000e+02, float 2.120000e+02)
ret i32 0
}