#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 main() {
  float fahr, celsius, step;
  int lower, upper;
  lower = -30;
  upper = 30;
  step = 4.7;
  celsius = lower;
  printf("%6s%6s\n", "Celsius", "Fahr");
  while (celsius <= upper) {
    fahr = celsius * 9 / 5 + 32;
    printf("%6.1f %6.1f\n", celsius, fahr);
    celsius = celsius + step;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffe2,-0x14(%rbp)
movl   $0x1e,-0x18(%rbp)
movss  0xecb(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
cvtsi2ssl -0x14(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
lea    0xec5(%rip),%rdi
lea    0xec6(%rip),%rsi
lea    0xec7(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm1
cvtsi2ssl -0x18(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11d1 <main+0xc1>
movss  0xe91(%rip),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  0xe80(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe70(%rip),%xmm1
addss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe6f(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0xc(%rbp),%xmm0
addss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1160 <main+0x50>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xfb8(%rip),%rdi
lea    0xfb9(%rip),%rsi
lea    0xfba(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xfb1(%rip),%rbx
movsd  0xec4(%rip),%xmm0
movsd  0xec4(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xeba(%rip),%xmm0
movsd  0xeba(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xeb0(%rip),%xmm0
movsd  0xeb0(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xea6(%rip),%xmm0
movsd  0xea6(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe9c(%rip),%xmm0
movsd  0xe9c(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe92(%rip),%xmm0
movsd  0xe92(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe88(%rip),%xmm0
movsd  0xe88(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe7e(%rip),%xmm0
movsd  0xe7e(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe74(%rip),%xmm0
movsd  0xe74(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe6a(%rip),%xmm0
movsd  0xe6a(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe60(%rip),%xmm0
movsd  0xe60(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe56(%rip),%xmm0
movsd  0xe56(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movsd  0xe4c(%rip),%xmm0
movsd  0xe4c(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%6s%6s\0A\00"
@.str.1 = [8 x i8] c"Celsius\00"
@.str.2 = [5 x i8] c"Fahr\00"
@.str.3 = [13 x i8] c"%6.1f %6.1f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 -30, i32* %5
store i32 30, i32* %6
store float 0x4012CCCCC0000000, float* %4
%7 = load i32, i32* %5
%8 = sitofp i32 %7 to float
store float %8, float* %3
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %10
10: ; preds = %15, %0
%11 = load float, float* %3
%12 = load i32, i32* %6
%13 = sitofp i32 %12 to float
%14 = fcmp ole float %11, %13
br i1 %14, label %15, label %28
15: ; preds = %10
%16 = load float, float* %3
%17 = fmul float %16, 9.000000e+00
%18 = fdiv float %17, 5.000000e+00
%19 = fadd float %18, 3.200000e+01
store float %19, float* %2
%20 = load float, float* %3
%21 = fpext float %20 to double
%22 = load float, float* %2
%23 = fpext float %22 to double
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %21, double %23)
%25 = load float, float* %3
%26 = load float, float* %4
%27 = fadd float %25, %26
store float %27, float* %3
br label %10
28: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%6s%6s\0A\00"
@.str.1 = [8 x i8] c"Celsius\00"
@.str.2 = [5 x i8] c"Fahr\00"
@.str.3 = [13 x i8] c"%6.1f %6.1f\0A\00"
define i32 @main() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double -3.000000e+01, double -2.200000e+01)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xC0394CCCC0000000, double 0xC02B147B00000000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xC034999980000000, double 0xC01451EB00000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xC02FCCCCA0000000, double 0x400B0A3E00000000)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xC026666640000000, double 0x4027AE14C0000000)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xC019FFFFC0000000, double 0x40344CCCE0000000)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0xBFFCCCCC00000000, double 0x403CC28F80000000)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0x4007333380000000, double 0x40429C2900000000)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0x401E666680000000, double 0x4046D70A40000000)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0x40289999A0000000, double 0x404B11EB80000000)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.700000e+01, double 0x404F4CCCC0000000)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0x4035B33340000000, double 0x4051C3D700000000)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0x403A666680000000, double 0x4053E147C0000000)
ret i32 0
}