#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 */
double f2c(float);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  float f = 0.0f;
  float L = 0.0f;
  float U = 300.0f;
  float dT = 20.0f;
  printf("%3s %6s\n", "F^o", "C^o");
  for (f = L; f <= U; f += dT)
    printf("%3.0f %6.1f\n", f, f2c(f));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  0xeb6(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xea5(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
lea    0xea1(%rip),%rdi
lea    0xea3(%rip),%rsi
lea    0xea0(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x18(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
movss  -0x14(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jb     11db <main+0xbb>
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
movss  -0x14(%rbp),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
lea    0xe59(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x20(%rbp),%xmm0
addss  -0x14(%rbp),%xmm0
movss  %xmm0,-0x14(%rbp)
jmp    1186 <main+0x66>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xf90(%rip),%rdi
lea    0xf92(%rip),%rsi
lea    0xf8f(%rip),%rdx
xor    %eax,%eax
call   1030 <printf@plt>
xorps  %xmm0,%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
lea    0xf7a(%rip),%rbx
xorps  %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe9c(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xecc(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe7e(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xeb2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe60(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe98(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe42(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe7e(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe24(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe64(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xe06(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe4a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xde8(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe30(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xdca(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xe16(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xdac(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xdfc(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd8e(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xde2(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd70(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xdc8(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd52(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xdae(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd34(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xd94(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xd16(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xd7a(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xcf8(%rip),%xmm0
call   1040 <f2c@plt>
movaps %xmm0,%xmm1
movsd  0xd60(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%3s %6s\0A\00"
@.str.1 = [4 x i8] c"F^o\00"
@.str.2 = [4 x i8] c"C^o\00"
@.str.3 = [13 x i8] c"%3.0f %6.1f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 0.000000e+00, float* %6
store float 0.000000e+00, float* %7
store float 3.000000e+02, float* %8
store float 2.000000e+01, float* %9
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%11 = load float, float* %7
store float %11, float* %6
br label %12
12: ; preds = %22, %2
%13 = load float, float* %6
%14 = load float, float* %8
%15 = fcmp ole float %13, %14
br i1 %15, label %16, label %26
16: ; preds = %12
%17 = load float, float* %6
%18 = fpext float %17 to double
%19 = load float, float* %6
%20 = call double @f2c(float %19)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double %18, double %20)
br label %22
22: ; preds = %16
%23 = load float, float* %9
%24 = load float, float* %6
%25 = fadd float %24, %23
store float %25, float* %6
br label %12
26: ; preds = %12
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%3s %6s\0A\00"
@.str.1 = [4 x i8] c"F^o\00"
@.str.2 = [4 x i8] c"C^o\00"
@.str.3 = [13 x i8] c"%3.0f %6.1f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call double @f2c(float 0.000000e+00)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 0.000000e+00, double %4)
%6 = tail call double @f2c(float 2.000000e+01)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.000000e+01, double %6)
%8 = tail call double @f2c(float 4.000000e+01)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 4.000000e+01, double %8)
%10 = tail call double @f2c(float 6.000000e+01)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 6.000000e+01, double %10)
%12 = tail call double @f2c(float 8.000000e+01)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 8.000000e+01, double %12)
%14 = tail call double @f2c(float 1.000000e+02)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.000000e+02, double %14)
%16 = tail call double @f2c(float 1.200000e+02)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.200000e+02, double %16)
%18 = tail call double @f2c(float 1.400000e+02)
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.400000e+02, double %18)
%20 = tail call double @f2c(float 1.600000e+02)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.600000e+02, double %20)
%22 = tail call double @f2c(float 1.800000e+02)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 1.800000e+02, double %22)
%24 = tail call double @f2c(float 2.000000e+02)
%25 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.000000e+02, double %24)
%26 = tail call double @f2c(float 2.200000e+02)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.200000e+02, double %26)
%28 = tail call double @f2c(float 2.400000e+02)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.400000e+02, double %28)
%30 = tail call double @f2c(float 2.600000e+02)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.600000e+02, double %30)
%32 = tail call double @f2c(float 2.800000e+02)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), double 2.800000e+02, double %32)
%34 = tail call double @f2c(float 3.000000e+02)
%35 = 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+02, double %34)
ret i32 0
}