#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 *, char *, int /*<<< orphan*/);
int /*<<< orphan*/ theLawOfBode(int);
int main(int argc, const char *argv[]) {
  printf("%-10s%.1lf AU\n", "Mercury", theLawOfBode(1));
  printf("%-10s%.1lf AU\n", "Venus", theLawOfBode(2));
  printf("%-10s%.1lf AU\n", "Earth", theLawOfBode(3));
  printf("%-10s%.1lf AU\n", "Mars", theLawOfBode(4));
  printf("%-10s%.1lf AU\n", "?", theLawOfBode(5));
  printf("%-10s%.1lf AU\n", "Jupiter", theLawOfBode(6));
  printf("%-10s%.1lf AU\n", "Saturn", theLawOfBode(7));
  printf("%-10s%.1lf AU\n", "Uranus", theLawOfBode(8));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x1,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xeb7(%rip),%rdi
lea    0xebf(%rip),%rsi
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xe98(%rip),%rdi
lea    0xea8(%rip),%rsi
call   1030 <printf@plt>
mov    $0x3,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xe79(%rip),%rdi
lea    0xe8f(%rip),%rsi
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xe5a(%rip),%rdi
lea    0xe76(%rip),%rsi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xe3b(%rip),%rdi
lea    0xe5c(%rip),%rsi
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xe1c(%rip),%rdi
lea    0xe3f(%rip),%rsi
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xdfd(%rip),%rdi
lea    0xe28(%rip),%rsi
call   1030 <printf@plt>
mov    $0x8,%edi
call   1040 <theLawOfBode@plt>
mov    %eax,%edx
lea    0xdde(%rip),%rdi
lea    0xe10(%rip),%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    $0x1,%edi
call   1040 <theLawOfBode@plt>
lea    0xece(%rip),%rbx
lea    0xed6(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x2,%edi
call   1040 <theLawOfBode@plt>
lea    0xec3(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x3,%edi
call   1040 <theLawOfBode@plt>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x4,%edi
call   1040 <theLawOfBode@plt>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x5,%edi
call   1040 <theLawOfBode@plt>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x6,%edi
call   1040 <theLawOfBode@plt>
lea    0xe6a(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x7,%edi
call   1040 <theLawOfBode@plt>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
mov    $0x8,%edi
call   1040 <theLawOfBode@plt>
lea    0xe43(%rip),%rsi
mov    %rbx,%rdi
mov    %eax,%edx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%-10s%.1lf AU\0A\00"
@.str.1 = [8 x i8] c"Mercury\00"
@.str.2 = [6 x i8] c"Venus\00"
@.str.3 = [6 x i8] c"Earth\00"
@.str.4 = [5 x i8] c"Mars\00"
@.str.5 = [2 x i8] c"?\00"
@.str.6 = [8 x i8] c"Jupiter\00"
@.str.7 = [7 x i8] c"Saturn\00"
@.str.8 = [7 x i8] c"Uranus\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i32 @theLawOfBode(i32 1)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = call i32 @theLawOfBode(i32 2)
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = call i32 @theLawOfBode(i32 3)
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = call i32 @theLawOfBode(i32 4)
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %12)
%14 = call i32 @theLawOfBode(i32 5)
%15 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 %14)
%16 = call i32 @theLawOfBode(i32 6)
%17 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %16)
%18 = call i32 @theLawOfBode(i32 7)
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %18)
%20 = call i32 @theLawOfBode(i32 8)
%21 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %20)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"%-10s%.1lf AU\0A\00"
@.str.1 = [8 x i8] c"Mercury\00"
@.str.2 = [6 x i8] c"Venus\00"
@.str.3 = [6 x i8] c"Earth\00"
@.str.4 = [5 x i8] c"Mars\00"
@.str.5 = [2 x i8] c"?\00"
@.str.6 = [8 x i8] c"Jupiter\00"
@.str.7 = [7 x i8] c"Saturn\00"
@.str.8 = [7 x i8] c"Uranus\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @theLawOfBode(i32 1)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @theLawOfBode(i32 2)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @theLawOfBode(i32 3)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 @theLawOfBode(i32 4)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = tail call i32 @theLawOfBode(i32 5)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 @theLawOfBode(i32 6)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = tail call i32 @theLawOfBode(i32 7)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = tail call i32 @theLawOfBode(i32 8)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i32 %17)
ret i32 0
}