#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 atoi(char *);
int /*<<< orphan*/ printf(char *, int, double);
int main(int argc, char *argv[]) {
  int fahr, lower, upper, step;
  lower = atoi(argv[1]);
  upper = atoi(argv[2]);
  step = atoi(argv[3]);
  for (fahr = lower; fahr <= upper; fahr = fahr + step)
    printf("%3d\t%5.3f\n", fahr, (5.0 / 9.0) * (fahr - 32));
  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)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11ab <main+0x8b>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
sub    $0x20,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe73(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    116c <main+0x4c>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
call   1040 <atoi@plt>
mov    %eax,%ebx
mov    0x10(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,%r14d
mov    0x18(%rbp),%rdi
call   1040 <atoi@plt>
cmp    %r14d,%ebx
jg     1183 <main+0x63>
mov    %eax,%ebp
lea    0xeb0(%rip),%r15
nopl   0x0(%rax,%rax,1)
lea    -0x20(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe8e(%rip),%xmm0
mov    %r15,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
add    %ebp,%ebx
cmp    %r14d,%ebx
jle    1160 <main+0x40>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"%3d\09%5.3f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 1
%12 = load i8*, i8** %11
%13 = call i32 @atoi(i8* %12)
store i32 %13, i32* %7
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 2
%16 = load i8*, i8** %15
%17 = call i32 @atoi(i8* %16)
store i32 %17, i32* %8
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 3
%20 = load i8*, i8** %19
%21 = call i32 @atoi(i8* %20)
store i32 %21, i32* %9
%22 = load i32, i32* %7
store i32 %22, i32* %6
br label %23
23: ; preds = %34, %2
%24 = load i32, i32* %6
%25 = load i32, i32* %8
%26 = icmp sle i32 %24, %25
br i1 %26, label %27, label %38
27: ; preds = %23
%28 = load i32, i32* %6
%29 = load i32, i32* %6
%30 = sub nsw i32 %29, 32
%31 = sitofp i32 %30 to double
%32 = fmul double 0x3FE1C71C71C71C72, %31
%33 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %28, double %32)
br label %34
34: ; preds = %27
%35 = load i32, i32* %6
%36 = load i32, i32* %9
%37 = add nsw i32 %35, %36
store i32 %37, i32* %6
br label %23
38: ; preds = %23
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"%3d\09%5.3f\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @atoi(i8* %4)
%6 = getelementptr inbounds i8*, i8** %1, i64 2
%7 = load i8*, i8** %6
%8 = tail call i32 @atoi(i8* %7)
%9 = getelementptr inbounds i8*, i8** %1, i64 3
%10 = load i8*, i8** %9
%11 = tail call i32 @atoi(i8* %10)
%12 = icmp sgt i32 %5, %8
br i1 %12, label %21, label %13
13: ; preds = %2, %13
%14 = phi i32 [ %19, %13 ], [ %5, %2 ]
%15 = add nsw i32 %14, -32
%16 = sitofp i32 %15 to double
%17 = fmul double %16, 0x3FE1C71C71C71C72
%18 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %14, double %17)
%19 = add nsw i32 %14, %11
%20 = icmp sgt i32 %19, %8
br i1 %20, label %21, label %13
21: ; preds = %13, %2
ret i32 0
}