#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 */
float convert(int);
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i = 0;
  float result;
  printf("    Temperature Conversion Chart\n");
  printf("Fahrenheit       Celsius\n");
  for (i = 0; i < 230; i = i + 10) {
    result = convert(i);
    printf("  %d             %5.2f\n", i, result);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
cmpl   $0xe6,-0x8(%rbp)
jge    119b <main+0x7b>
mov    -0x8(%rbp),%edi
call   1030 <convert@plt>
movss  %xmm0,-0xc(%rbp)
mov    -0x8(%rbp),%esi
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xeb6(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x8(%rbp)
jmp    1159 <main+0x39>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xee0(%rip),%rdi
call   1040 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <puts@plt>
xor    %edi,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
lea    0xea5(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xa,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x14,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x14,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x1e,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1e,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x28,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x28,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x32,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x32,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x3c,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x3c,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x46,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x46,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x50,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x50,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x5a,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x5a,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x64,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x64,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x6e,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x6e,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x78,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x78,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x82,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x82,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x8c,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x8c,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0x96,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x96,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa0,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xa0,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xaa,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xaa,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xb4,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xb4,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xbe,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xbe,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xc8,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xc8,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xd2,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xd2,%esi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xdc,%edi
call   1030 <convert@plt>
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0xdc,%esi
mov    $0x1,%al
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [34 x i8] c" Temperature Conversion Chart\0A\00"
@.str.1 = [26 x i8] c"Fahrenheit Celsius\0A\00"
@.str.2 = [24 x i8] c" %d %5.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %2
br label %6
6: ; preds = %16, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 230
br i1 %8, label %9, label %19
9: ; preds = %6
%10 = load i32, i32* %2
%11 = call float @convert(i32 %10)
store float %11, float* %3
%12 = load i32, i32* %2
%13 = load float, float* %3
%14 = fpext float %13 to double
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %12, double %14)
br label %16
16: ; preds = %9
%17 = load i32, i32* %2
%18 = add nsw i32 %17, 10
store i32 %18, i32* %2
br label %6
19: ; preds = %6
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [24 x i8] c" %d %5.2f\0A\00"
@str = [33 x i8] c" Temperature Conversion Chart\00"
@str.3 = [25 x i8] c"Fahrenheit Celsius\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.3, i64 0, i64 0))
%3 = tail call float @convert(i32 0)
%4 = fpext float %3 to double
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 0, double %4)
%6 = tail call float @convert(i32 10)
%7 = fpext float %6 to double
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 10, double %7)
%9 = tail call float @convert(i32 20)
%10 = fpext float %9 to double
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 20, double %10)
%12 = tail call float @convert(i32 30)
%13 = fpext float %12 to double
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 30, double %13)
%15 = tail call float @convert(i32 40)
%16 = fpext float %15 to double
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 40, double %16)
%18 = tail call float @convert(i32 50)
%19 = fpext float %18 to double
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 50, double %19)
%21 = tail call float @convert(i32 60)
%22 = fpext float %21 to double
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 60, double %22)
%24 = tail call float @convert(i32 70)
%25 = fpext float %24 to double
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 70, double %25)
%27 = tail call float @convert(i32 80)
%28 = fpext float %27 to double
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 80, double %28)
%30 = tail call float @convert(i32 90)
%31 = fpext float %30 to double
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 90, double %31)
%33 = tail call float @convert(i32 100)
%34 = fpext float %33 to double
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 100, double %34)
%36 = tail call float @convert(i32 110)
%37 = fpext float %36 to double
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 110, double %37)
%39 = tail call float @convert(i32 120)
%40 = fpext float %39 to double
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 120, double %40)
%42 = tail call float @convert(i32 130)
%43 = fpext float %42 to double
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 130, double %43)
%45 = tail call float @convert(i32 140)
%46 = fpext float %45 to double
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 140, double %46)
%48 = tail call float @convert(i32 150)
%49 = fpext float %48 to double
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 150, double %49)
%51 = tail call float @convert(i32 160)
%52 = fpext float %51 to double
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 160, double %52)
%54 = tail call float @convert(i32 170)
%55 = fpext float %54 to double
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 170, double %55)
%57 = tail call float @convert(i32 180)
%58 = fpext float %57 to double
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 180, double %58)
%60 = tail call float @convert(i32 190)
%61 = fpext float %60 to double
%62 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 190, double %61)
%63 = tail call float @convert(i32 200)
%64 = fpext float %63 to double
%65 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 200, double %64)
%66 = tail call float @convert(i32 210)
%67 = fpext float %66 to double
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 210, double %67)
%69 = tail call float @convert(i32 220)
%70 = fpext float %69 to double
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 220, double %70)
ret i32 0
}