#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*/ FahrenheitToCelsius(int);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, const char *argv[]) {
  printf("Fahrenheit to Celsius table.\n");
  printf("  F     C\n");
  for (int i = 32; i <= 100; i += 2) {
    printf("%3d   %4.1lf\n", i, FahrenheitToCelsius(i));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x20,-0x14(%rbp)
cmpl   $0x64,-0x14(%rbp)
jg     1192 <main+0x72>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
call   1040 <FahrenheitToCelsius@plt>
mov    -0x18(%rbp),%esi
mov    %eax,%edx
lea    0xeac(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x14(%rbp)
jmp    1159 <main+0x39>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xee4(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1e,%ebx
lea    0xea8(%rip),%r14
nopl   0x0(%rax,%rax,1)
add    $0x2,%ebx
mov    %ebx,%edi
call   1050 <FahrenheitToCelsius@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x63,%ebx
jb     1160 <main+0x30>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [30 x i8] c"Fahrenheit to Celsius table.\0A\00"
@.str.1 = [11 x i8] c" F C\0A\00"
@.str.2 = [14 x i8] c"%3d %4.1lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
store i32 32, i32* %6
br label %9
9: ; preds = %17, %2
%10 = load i32, i32* %6
%11 = icmp sle i32 %10, 100
br i1 %11, label %12, label %20
12: ; preds = %9
%13 = load i32, i32* %6
%14 = load i32, i32* %6
%15 = call i32 @FahrenheitToCelsius(i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %13, i32 %15)
br label %17
17: ; preds = %12
%18 = load i32, i32* %6
%19 = add nsw i32 %18, 2
store i32 %19, i32* %6
br label %9
20: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [14 x i8] c"%3d %4.1lf\0A\00"
@str = [29 x i8] c"Fahrenheit to Celsius table.\00"
@str.3 = [10 x i8] c" F C\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.3, i64 0, i64 0))
br label %6
5: ; preds = %6
ret i32 0
6: ; preds = %2, %6
%7 = phi i32 [ 32, %2 ], [ %10, %6 ]
%8 = tail call i32 @FahrenheitToCelsius(i32 %7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 %7, i32 %8)
%10 = add nuw nsw i32 %7, 2
%11 = icmp ult i32 %7, 99
br i1 %11, label %6, label %5
}