#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 *, ...);
void first() {
  float f, c;
  float lower, upper, step;
  lower = 0;
  upper = 300;
  step = 20;
  f = lower;
  printf("  F . C Table\n");
  while (f <= upper) {
    c = (5.0 / 9.0) * (f - 32.0);
    printf("%3.0f%6.1f\n", f, c);
    f += step;
  }
  c = lower;
  printf("  C . F Table\n");
  while (c <= upper) {
    f = (9.0 / 5.0) * (c + 32.0);
    printf("%3.0f%6.1f\n", c, f);
    c += step;
  }
}


x86 assembly (clang, -O0):
<first>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
xorps  %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  0xedc(%rip),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  0xecb(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11c3 <first+0xb3>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe9a(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe96(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x8(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe87(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
addss  -0x4(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1152 <first+0x42>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x8(%rbp),%xmm1
movss  -0x10(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     124c <first+0x13c>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe11(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xdfd(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xdfe(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x14(%rbp),%xmm0
addss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    11db <first+0xcb>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<first>:
push   %rbx
lea    0x1054(%rip),%rdi
call   1030 <puts@plt>
lea    0x103c(%rip),%rbx
movsd  0xec4(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xeb7(%rip),%xmm0
movsd  0xeb7(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xead(%rip),%xmm0
movsd  0xead(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xea3(%rip),%xmm0
movsd  0xea3(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe99(%rip),%xmm0
movsd  0xe99(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe8f(%rip),%xmm0
movsd  0xe8f(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe85(%rip),%xmm0
movsd  0xe85(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe7b(%rip),%xmm0
mov    %rbx,%rdi
movsd  0xe30(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe69(%rip),%xmm0
movsd  0xe69(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe5f(%rip),%xmm0
movsd  0xe5f(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe55(%rip),%xmm0
movsd  0xe55(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe4b(%rip),%xmm0
movsd  0xe4b(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe41(%rip),%xmm0
movsd  0xe41(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe37(%rip),%xmm0
movsd  0xe37(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe2d(%rip),%xmm0
movsd  0xe2d(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe23(%rip),%xmm0
movsd  0xe23(%rip),%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
call   1030 <puts@plt>
movsd  0xe0d(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xe00(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xd05(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xdee(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcfb(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xddc(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcf1(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xdca(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xce7(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xdb8(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcdd(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xda6(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcd3(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd94(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcc9(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd82(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcb7(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd70(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xcad(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd5e(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xca3(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd4c(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xc99(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd3a(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xc8f(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd28(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xc85(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd16(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xc7b(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
movsd  0xd04(%rip),%xmm1
mov    %rbx,%rdi
movsd  0xc71(%rip),%xmm0
mov    $0x2,%al
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [15 x i8] c" F . C Table\0A\00"
@.str.1 = [12 x i8] c"%3.0f%6.1f\0A\00"
@.str.2 = [15 x i8] c" C . F Table\0A\00"
define void @first() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
store float 0.000000e+00, float* %3
store float 3.000000e+02, float* %4
store float 2.000000e+01, float* %5
%6 = load float, float* %3
store float %6, float* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %8
8: ; preds = %12, %0
%9 = load float, float* %1
%10 = load float, float* %4
%11 = fcmp ole float %9, %10
br i1 %11, label %12, label %26
12: ; preds = %8
%13 = load float, float* %1
%14 = fpext float %13 to double
%15 = fsub double %14, 3.200000e+01
%16 = fmul double 0x3FE1C71C71C71C72, %15
%17 = fptrunc double %16 to float
store float %17, float* %2
%18 = load float, float* %1
%19 = fpext float %18 to double
%20 = load float, float* %2
%21 = fpext float %20 to double
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double %19, double %21)
%23 = load float, float* %5
%24 = load float, float* %1
%25 = fadd float %24, %23
store float %25, float* %1
br label %8
26: ; preds = %8
%27 = load float, float* %3
store float %27, float* %2
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
br label %29
29: ; preds = %33, %26
%30 = load float, float* %2
%31 = load float, float* %4
%32 = fcmp ole float %30, %31
br i1 %32, label %33, label %47
33: ; preds = %29
%34 = load float, float* %2
%35 = fpext float %34 to double
%36 = fadd double %35, 3.200000e+01
%37 = fmul double 1.800000e+00, %36
%38 = fptrunc double %37 to float
store float %38, float* %1
%39 = load float, float* %2
%40 = fpext float %39 to double
%41 = load float, float* %1
%42 = fpext float %41 to double
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double %40, double %42)
%44 = load float, float* %5
%45 = load float, float* %2
%46 = fadd float %45, %44
store float %46, float* %2
br label %29
47: ; preds = %29
ret void
}

LLVM IR (-O2):
@.str.1 = [12 x i8] c"%3.0f%6.1f\0A\00"
@str = [14 x i8] c" F . C Table\00"
@str.3 = [14 x i8] c" C . F Table\00"
define void @first() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, double 0xC031C71C80000000)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+01, double 0xC01AAAAAA0000000)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 4.000000e+01, double 0x4011C71C80000000)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 6.000000e+01, double 0x402F1C71C0000000)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 8.000000e+01, double 0x403AAAAAA0000000)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+02, double 0x4042E38E40000000)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.200000e+02, double 0x404871C720000000)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.400000e+02, double 6.000000e+01)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.600000e+02, double 0x4051C71C80000000)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.800000e+02, double 0x40548E38E0000000)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+02, double 0x4057555560000000)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.200000e+02, double 0x405A1C71C0000000)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.400000e+02, double 0x405CE38E40000000)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.600000e+02, double 0x405FAAAAA0000000)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.800000e+02, double 0x406138E380000000)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 3.000000e+02, double 0x40629C71C0000000)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.3, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, double 0x404CCCCCC0000000)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+01, double 0x4057666660000000)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 4.000000e+01, double 0x4060333340000000)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 6.000000e+01, double 0x4064B33340000000)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 8.000000e+01, double 0x4069333340000000)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+02, double 0x406DB33340000000)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.200000e+02, double 0x40711999A0000000)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.400000e+02, double 0x40735999A0000000)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.600000e+02, double 0x40759999A0000000)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 1.800000e+02, double 0x4077D999A0000000)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+02, double 0x407A1999A0000000)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.200000e+02, double 0x407C5999A0000000)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.400000e+02, double 0x407E9999A0000000)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.600000e+02, double 0x40806CCCC0000000)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 2.800000e+02, double 0x40818CCCC0000000)
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), double 3.000000e+02, double 0x4082ACCCC0000000)
ret void
}