#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 second() {
  for (float c = 300; c >= 0; c -= 20) {
    printf("____________\n");
    printf("|%3.0f|%6.1f|\n", c, (9.0 / 5.0) * (c + 32.0));
  }
  printf("____________\n");
}


x86 assembly (clang, -O0):
<second>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  0xee0(%rip),%xmm0
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     1197 <second+0x87>
lea    0xedb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x4(%rbp),%xmm1
cvtss2sd %xmm1,%xmm2
movsd  0xeb2(%rip),%xmm1
addsd  %xmm1,%xmm2
movsd  0xe9e(%rip),%xmm1
mulsd  %xmm2,%xmm1
lea    0xeb1(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x4(%rbp),%xmm0
movss  0xe7b(%rip),%xmm1
subss  %xmm1,%xmm0
movss  %xmm0,-0x4(%rbp)
jmp    1125 <second+0x15>
lea    0xe7a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<second>:
push   %r14
push   %rbx
push   %rax
lea    0xfdc(%rip),%rbx
mov    %rbx,%rdi
call   1030 <puts@plt>
lea    0xfbe(%rip),%r14
movsd  0xebe(%rip),%xmm0
movsd  0xebe(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xeac(%rip),%xmm0
movsd  0xeac(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe9a(%rip),%xmm0
movsd  0xe9a(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe88(%rip),%xmm0
movsd  0xe88(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe76(%rip),%xmm0
movsd  0xe76(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe64(%rip),%xmm0
movsd  0xe64(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe52(%rip),%xmm0
movsd  0xe52(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe40(%rip),%xmm0
movsd  0xe40(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe2e(%rip),%xmm0
movsd  0xe2e(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe1c(%rip),%xmm0
movsd  0xe1c(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xe0a(%rip),%xmm0
movsd  0xe0a(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xdf8(%rip),%xmm0
movsd  0xdf8(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xde6(%rip),%xmm0
movsd  0xde6(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xdd4(%rip),%xmm0
movsd  0xdd4(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xdc2(%rip),%xmm0
movsd  0xdc2(%rip),%xmm1
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
movsd  0xdb0(%rip),%xmm1
xorps  %xmm0,%xmm0
mov    %r14,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"____________\0A\00"
@.str.1 = [15 x i8] c"|%3.0f|%6.1f|\0A\00"
define void @second() {
%1 = alloca float
store float 3.000000e+02, float* %1
br label %2
2: ; preds = %14, %0
%3 = load float, float* %1
%4 = fcmp oge float %3, 0.000000e+00
br i1 %4, label %5, label %17
5: ; preds = %2
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%7 = load float, float* %1
%8 = fpext float %7 to double
%9 = load float, float* %1
%10 = fpext float %9 to double
%11 = fadd double %10, 3.200000e+01
%12 = fmul double 1.800000e+00, %11
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double %8, double %12)
br label %14
14: ; preds = %5
%15 = load float, float* %1
%16 = fsub float %15, 2.000000e+01
store float %16, float* %1
br label %2
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"|%3.0f|%6.1f|\0A\00"
@str.2 = [13 x i8] c"____________\00"
define void @second() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 3.000000e+02, double 5.976000e+02)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.800000e+02, double 5.616000e+02)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.600000e+02, double 5.256000e+02)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.400000e+02, double 4.896000e+02)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.200000e+02, double 4.536000e+02)
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+02, double 4.176000e+02)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 1.800000e+02, double 3.816000e+02)
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 1.600000e+02, double 3.456000e+02)
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 1.400000e+02, double 3.096000e+02)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 1.200000e+02, double 2.736000e+02)
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 1.000000e+02, double 2.376000e+02)
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 8.000000e+01, double 2.016000e+02)
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 6.000000e+01, double 1.656000e+02)
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 4.000000e+01, double 1.296000e+02)
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 2.000000e+01, double 0x4057666666666667)
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), double 0.000000e+00, double 5.760000e+01)
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.2, i64 0, i64 0))
ret void
}