#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, cels;
  for (int i = 0; i < 181; i++) {
    fahr = 212 - (float)i;
    cels = (fahr - 32) * 5 / 9;
    if (fahr > 31) {
      printf("%.0f F 일때 %6.2f C 이다", fahr, cels);
    }
    if (i < 101) {
      printf("%8.0f C 일때 %6.2f F 이다", (float)i, (float)9 / 5 * i + 32);
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
cmpl   $0xb5,-0x10(%rbp)
jge    120b <main+0xfb>
cvtsi2ssl -0x10(%rbp),%xmm1
movss  0xed0(%rip),%xmm0
subss  %xmm1,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xeb6(%rip),%xmm1
subss  %xmm1,%xmm0
movss  0xea6(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe96(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  0xe7c(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11ad <main+0x9d>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe72(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
cmpl   $0x65,-0x10(%rbp)
jge    11ef <main+0xdf>
cvtsi2ssl -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
cvtsi2ssl -0x10(%rbp),%xmm1
movss  0xe47(%rip),%xmm2
mulss  %xmm2,%xmm1
movss  0xe33(%rip),%xmm2
addss  %xmm2,%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xe4d(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1126 <main+0x16>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
xor    %ebp,%ebp
lea    0xeeb(%rip),%r14
lea    0xf01(%rip),%rbx
jmp    1159 <main+0x39>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    $0xb5,%ebp
je     11e0 <main+0xc0>
xorps  %xmm2,%xmm2
cvtsi2ss %ebp,%xmm2
movss  0xe98(%rip),%xmm1
subss  %xmm2,%xmm1
ucomiss 0xe91(%rip),%xmm1
jbe    11ae <main+0x8e>
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
addss  0xe84(%rip),%xmm1
mulss  0xe80(%rip),%xmm1
divss  0xe7c(%rip),%xmm1
cvtss2sd %xmm1,%xmm1
mov    %r14,%rdi
mov    $0x2,%al
movss  %xmm2,0xc(%rsp)
call   1040 <printf@plt>
movss  0xc(%rsp),%xmm2
cmp    $0x64,%ebp
ja     1140 <main+0x20>
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulss  0xe52(%rip),%xmm2
addss  0xe4e(%rip),%xmm2
xorps  %xmm1,%xmm1
cvtss2sd %xmm2,%xmm1
mov    %rbx,%rdi
mov    $0x2,%al
call   1040 <printf@plt>
jmp    1140 <main+0x20>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [29 x i8] c"%.0f F \EC\9D\BC\EB\95\8C %6.2f C \EC\9D\B4\EB\8B\A4\00"
@.str.1 = [30 x i8] c"%8.0f C \EC\9D\BC\EB\95\8C %6.2f F \EC\9D\B4\EB\8B\A4\00"
@.str.2 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %4
br label %5
5: ; preds = %38, %0
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 181
br i1 %7, label %8, label %41
8: ; preds = %5
%9 = load i32, i32* %4
%10 = sitofp i32 %9 to float
%11 = fsub float 2.120000e+02, %10
store float %11, float* %2
%12 = load float, float* %2
%13 = fsub float %12, 3.200000e+01
%14 = fmul float %13, 5.000000e+00
%15 = fdiv float %14, 9.000000e+00
store float %15, float* %3
%16 = load float, float* %2
%17 = fcmp ogt float %16, 3.100000e+01
br i1 %17, label %18, label %24
18: ; preds = %8
%19 = load float, float* %2
%20 = fpext float %19 to double
%21 = load float, float* %3
%22 = fpext float %21 to double
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), double %20, double %22)
br label %24
24: ; preds = %18, %8
%25 = load i32, i32* %4
%26 = icmp slt i32 %25, 101
br i1 %26, label %27, label %36
27: ; preds = %24
%28 = load i32, i32* %4
%29 = sitofp i32 %28 to float
%30 = fpext float %29 to double
%31 = load i32, i32* %4
%32 = sitofp i32 %31 to float
%33 = call float @llvm.fmuladd.f32(float 0x3FFCCCCCC0000000, float %32, float 3.200000e+01)
%34 = fpext float %33 to double
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), double %30, double %34)
br label %36
36: ; preds = %27, %24
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %36
%39 = load i32, i32* %4
%40 = add nsw i32 %39, 1
store i32 %40, i32* %4
br label %5
41: ; preds = %5
%42 = load i32, i32* %1
ret i32 %42
}

LLVM IR (-O2):
@.str = [29 x i8] c"%.0f F \EC\9D\BC\EB\95\8C %6.2f C \EC\9D\B4\EB\8B\A4\00"
@.str.1 = [30 x i8] c"%8.0f C \EC\9D\BC\EB\95\8C %6.2f F \EC\9D\B4\EB\8B\A4\00"
define i32 @main() {
br label %2
1: ; preds = %21
ret i32 0
2: ; preds = %0, %21
%3 = phi i32 [ 0, %0 ], [ %23, %21 ]
%4 = sitofp i32 %3 to float
%5 = fsub float 2.120000e+02, %4
%6 = fcmp ogt float %5, 3.100000e+01
br i1 %6, label %7, label %14
7: ; preds = %2
%8 = fadd float %5, -3.200000e+01
%9 = fmul float %8, 5.000000e+00
%10 = fdiv float %9, 9.000000e+00
%11 = fpext float %5 to double
%12 = fpext float %10 to double
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), double %11, double %12)
br label %14
14: ; preds = %7, %2
%15 = icmp ult i32 %3, 101
br i1 %15, label %16, label %21
16: ; preds = %14
%17 = fpext float %4 to double
%18 = tail call float @llvm.fmuladd.f32(float %4, float 0x3FFCCCCCC0000000, float 3.200000e+01)
%19 = fpext float %18 to double
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), double %17, double %19)
br label %21
21: ; preds = %16, %14
%22 = tail call i32 @putchar(i32 10)
%23 = add nuw nsw i32 %3, 1
%24 = icmp eq i32 %23, 181
br i1 %24, label %1, label %2
}