#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;
  int lower, upper, step;
  lower = atoi(argv[1]);
  upper;
  atoi(argv[2]);
  step = atoi(argv[3]);
  printf("lower = %d, upper = %d, step = %d\n", lower, upper, step);
  for (fahr = lower; fahr <= upper; fahr = fahr + step) {
    printf("%3d%6.1f\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    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1040 <atoi@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%esi
cvtsi2sdl -0x1c(%rbp),%xmm0
mov    -0x20(%rbp),%edx
lea    0xe93(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11c3 <main+0xa3>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%eax
sub    $0x20,%eax
cvtsi2sd %eax,%xmm1
movsd  0xe5d(%rip),%xmm0
mulsd  %xmm1,%xmm0
lea    0xe7d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    -0x20(%rbp),%eax
mov    %eax,-0x14(%rbp)
jmp    1182 <main+0x62>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
call   1040 <atoi@plt>
mov    %eax,%ebx
mov    0x18(%rbp),%rdi
call   1040 <atoi@plt>
mov    %eax,%ebp
lea    0xec4(%rip),%rdi
xorpd  %xmm0,%xmm0
mov    %ebx,%esi
mov    %ebp,%edx
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%r14
nopw   0x0(%rax,%rax,1)
lea    -0x20(%rbx),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe8e(%rip),%xmm0
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%al
call   1030 <printf@plt>
add    %ebp,%ebx
jmp    1160 <main+0x40>

LLVM IR (-O0):
@.str = [35 x i8] c"lower = %d, upper = %d, step = %d\0A\00"
@.str.1 = [10 x i8] c"%3d%6.1f\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 i32, i32* %8
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @atoi(i8* %17)
%19 = load i8**, i8*** %5
%20 = getelementptr inbounds i8*, i8** %19, i64 3
%21 = load i8*, i8** %20
%22 = call i32 @atoi(i8* %21)
store i32 %22, i32* %9
%23 = load i32, i32* %7
%24 = load i32, i32* %8
%25 = sitofp i32 %24 to double
%26 = load i32, i32* %9
%27 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %23, double %25, i32 %26)
%28 = load i32, i32* %7
store i32 %28, i32* %6
br label %29
29: ; preds = %40, %2
%30 = load i32, i32* %6
%31 = load i32, i32* %8
%32 = icmp sle i32 %30, %31
br i1 %32, label %33, label %44
33: ; preds = %29
%34 = load i32, i32* %6
%35 = load i32, i32* %6
%36 = sub nsw i32 %35, 32
%37 = sitofp i32 %36 to double
%38 = fmul double 0x3FE1C71C71C71C72, %37
%39 = call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %34, double %38)
br label %40
40: ; preds = %33
%41 = load i32, i32* %6
%42 = load i32, i32* %9
%43 = add nsw i32 %41, %42
store i32 %43, i32* %6
br label %29
44: ; preds = %29
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"lower = %d, upper = %d, step = %d\0A\00"
@.str.1 = [10 x i8] c"%3d%6.1f\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 3
%7 = load i8*, i8** %6
%8 = tail call i32 @atoi(i8* %7)
%9 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %5, double 0.000000e+00, i32 %8)
br label %10
10: ; preds = %10, %2
%11 = phi i32 [ %5, %2 ], [ %16, %10 ]
%12 = add nsw i32 %11, -32
%13 = sitofp i32 %12 to double
%14 = fmul double %13, 0x3FE1C71C71C71C72
%15 = tail call i32 (i8*, i32, double, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11, double %14)
%16 = add nsw i32 %11, %8
br label %10
}