#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 */
double atof(char *);
int /*<<< orphan*/ printf(char *, char *, double);
int main(void) {
  char t1[5] = "30";
  char t2[5] = "30.";
  char t3[5] = "0.30";
  char t4[5] = ".30";
  char t5[5] = "3e1";
  char t6[6] = "3.0e1";
  char t7[5] = "e1";
  char t8[5] = "3e-1";
  char t9[5] = "-3e3";
  printf("1In: %s\tOut:%f\n", t1, atof(t1));
  printf("2In: %s\tOut:%f\n", t2, atof(t2));
  printf("3In: %s\tOut:%f\n", t3, atof(t3));
  printf("4In: %s\tOut:%f\n", t4, atof(t4));
  printf("5In: %s\tOut:%f\n", t5, atof(t5));
  printf("6In: %s\tOut:%f\n", t6, atof(t6));
  printf("7In: %s\tOut:%f\n", t7, atof(t7));
  printf("8In: %s\tOut:%f\n", t8, atof(t8));
  printf("9In: %s\tOut:%f\n", t9, atof(t9));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0xecf(%rip),%eax
mov    %eax,-0x5(%rbp)
mov    0xeca(%rip),%al
mov    %al,-0x1(%rbp)
mov    0xec2(%rip),%eax
mov    %eax,-0xa(%rbp)
mov    0xebd(%rip),%al
mov    %al,-0x6(%rbp)
mov    0xec4(%rip),%eax
mov    %eax,-0xf(%rbp)
mov    0xebf(%rip),%al
mov    %al,-0xb(%rbp)
mov    0xea3(%rip),%eax
mov    %eax,-0x14(%rbp)
mov    0xe9e(%rip),%al
mov    %al,-0x10(%rbp)
mov    0xe96(%rip),%eax
mov    %eax,-0x19(%rbp)
mov    0xe91(%rip),%al
mov    %al,-0x15(%rbp)
mov    0xe93(%rip),%eax
mov    %eax,-0x1f(%rbp)
mov    0xe8d(%rip),%ax
mov    %ax,-0x1b(%rbp)
mov    0xe75(%rip),%eax
mov    %eax,-0x24(%rbp)
mov    0xe70(%rip),%al
mov    %al,-0x20(%rbp)
mov    0xe73(%rip),%eax
mov    %eax,-0x29(%rbp)
mov    0xe6e(%rip),%al
mov    %al,-0x25(%rbp)
mov    0xe66(%rip),%eax
mov    %eax,-0x2e(%rbp)
mov    0xe61(%rip),%al
mov    %al,-0x2a(%rbp)
lea    -0x5(%rbp),%rax
mov    %rax,-0x78(%rbp)
lea    -0x5(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x78(%rbp),%rsi
lea    0xe43(%rip),%rdi
call   1040 <printf@plt>
lea    -0xa(%rbp),%rax
mov    %rax,-0x70(%rbp)
lea    -0xa(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x70(%rbp),%rsi
lea    0xe32(%rip),%rdi
call   1040 <printf@plt>
lea    -0xf(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0xf(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x68(%rbp),%rsi
lea    0xe21(%rip),%rdi
call   1040 <printf@plt>
lea    -0x14(%rbp),%rax
mov    %rax,-0x60(%rbp)
lea    -0x14(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x60(%rbp),%rsi
lea    0xe10(%rip),%rdi
call   1040 <printf@plt>
lea    -0x19(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x19(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x58(%rbp),%rsi
lea    0xdff(%rip),%rdi
call   1040 <printf@plt>
lea    -0x1f(%rbp),%rax
mov    %rax,-0x50(%rbp)
lea    -0x1f(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x50(%rbp),%rsi
lea    0xdee(%rip),%rdi
call   1040 <printf@plt>
lea    -0x24(%rbp),%rax
mov    %rax,-0x48(%rbp)
lea    -0x24(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x48(%rbp),%rsi
lea    0xddd(%rip),%rdi
call   1040 <printf@plt>
lea    -0x29(%rbp),%rax
mov    %rax,-0x40(%rbp)
lea    -0x29(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x40(%rbp),%rsi
lea    0xdcc(%rip),%rdi
call   1040 <printf@plt>
lea    -0x2e(%rbp),%rax
mov    %rax,-0x38(%rbp)
lea    -0x2e(%rbp),%rdi
call   1030 <atof@plt>
mov    -0x38(%rbp),%rsi
lea    0xdbb(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
movb   $0x0,0x44(%rsp)
movl   $0x3033,0x40(%rsp)
movb   $0x0,0x3c(%rsp)
movl   $0x2e3033,0x38(%rsp)
movb   $0x0,0x34(%rsp)
movl   $0x30332e30,0x30(%rsp)
30
movb   $0x0,0x2c(%rsp)
movl   $0x30332e,0x28(%rsp)
movb   $0x0,0x24(%rsp)
movl   $0x316533,0x20(%rsp)
movw   $0x31,0x4c(%rsp)
movl   $0x65302e33,0x48(%rsp)
65
movb   $0x0,0x1c(%rsp)
movl   $0x3165,0x18(%rsp)
movb   $0x0,0x14(%rsp)
movl   $0x312d6533,0x10(%rsp)
31
movb   $0x0,0xc(%rsp)
movl   $0x3365332d,0x8(%rsp)
33
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe7e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x38(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe72(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x30(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe66(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe5a(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe4e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x48(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe42(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe36(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe2a(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <atof@plt>
lea    0xe1e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.t1 = [5 x i8] c"30\00\00\00"
@__const.main.t2 = [5 x i8] c"30.\00\00"
@__const.main.t3 = [5 x i8] c"0.30\00"
@__const.main.t4 = [5 x i8] c".30\00\00"
@__const.main.t5 = [5 x i8] c"3e1\00\00"
@__const.main.t6 = [6 x i8] c"3.0e1\00"
@__const.main.t7 = [5 x i8] c"e1\00\00\00"
@__const.main.t8 = [5 x i8] c"3e-1\00"
@__const.main.t9 = [5 x i8] c"-3e3\00"
@.str = [16 x i8] c"1In: %s\09Out:%f\0A\00"
@.str.1 = [16 x i8] c"2In: %s\09Out:%f\0A\00"
@.str.2 = [16 x i8] c"3In: %s\09Out:%f\0A\00"
@.str.3 = [16 x i8] c"4In: %s\09Out:%f\0A\00"
@.str.4 = [16 x i8] c"5In: %s\09Out:%f\0A\00"
@.str.5 = [16 x i8] c"6In: %s\09Out:%f\0A\00"
@.str.6 = [16 x i8] c"7In: %s\09Out:%f\0A\00"
@.str.7 = [16 x i8] c"8In: %s\09Out:%f\0A\00"
@.str.8 = [16 x i8] c"9In: %s\09Out:%f\0A\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = alloca [5 x i8]
%3 = alloca [5 x i8]
%4 = alloca [5 x i8]
%5 = alloca [5 x i8]
%6 = alloca [6 x i8]
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = bitcast [5 x i8]* %1 to i8*
%11 = bitcast [5 x i8]* %2 to i8*
%12 = bitcast [5 x i8]* %3 to i8*
%13 = bitcast [5 x i8]* %4 to i8*
%14 = bitcast [5 x i8]* %5 to i8*
%15 = bitcast [6 x i8]* %6 to i8*
%16 = bitcast [5 x i8]* %7 to i8*
%17 = bitcast [5 x i8]* %8 to i8*
%18 = bitcast [5 x i8]* %9 to i8*
%19 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%20 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%21 = call double @atof(i8* %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %19, double %21)
%23 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%24 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%25 = call double @atof(i8* %24)
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %23, double %25)
%27 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%28 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%29 = call double @atof(i8* %28)
%30 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %27, double %29)
%31 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%32 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%33 = call double @atof(i8* %32)
%34 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %31, double %33)
%35 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%36 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%37 = call double @atof(i8* %36)
%38 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %35, double %37)
%39 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 0
%40 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 0
%41 = call double @atof(i8* %40)
%42 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %39, double %41)
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%44 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%45 = call double @atof(i8* %44)
%46 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* %43, double %45)
%47 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%48 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%49 = call double @atof(i8* %48)
%50 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %47, double %49)
%51 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%52 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%53 = call double @atof(i8* %52)
%54 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %51, double %53)
ret i32 0
}

LLVM IR (-O2):
@__const.main.t1 = [5 x i8] c"30\00\00\00"
@__const.main.t2 = [5 x i8] c"30.\00\00"
@__const.main.t3 = [5 x i8] c"0.30\00"
@__const.main.t4 = [5 x i8] c".30\00\00"
@__const.main.t5 = [5 x i8] c"3e1\00\00"
@__const.main.t6 = [6 x i8] c"3.0e1\00"
@__const.main.t7 = [5 x i8] c"e1\00\00\00"
@__const.main.t8 = [5 x i8] c"3e-1\00"
@__const.main.t9 = [5 x i8] c"-3e3\00"
@.str = [16 x i8] c"1In: %s\09Out:%f\0A\00"
@.str.1 = [16 x i8] c"2In: %s\09Out:%f\0A\00"
@.str.2 = [16 x i8] c"3In: %s\09Out:%f\0A\00"
@.str.3 = [16 x i8] c"4In: %s\09Out:%f\0A\00"
@.str.4 = [16 x i8] c"5In: %s\09Out:%f\0A\00"
@.str.5 = [16 x i8] c"6In: %s\09Out:%f\0A\00"
@.str.6 = [16 x i8] c"7In: %s\09Out:%f\0A\00"
@.str.7 = [16 x i8] c"8In: %s\09Out:%f\0A\00"
@.str.8 = [16 x i8] c"9In: %s\09Out:%f\0A\00"
define i32 @main() {
%1 = alloca [5 x i8]
%2 = alloca [5 x i8]
%3 = alloca [5 x i8]
%4 = alloca [5 x i8]
%5 = alloca [5 x i8]
%6 = alloca [6 x i8]
%7 = alloca [5 x i8]
%8 = alloca [5 x i8]
%9 = alloca [5 x i8]
%10 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%11 = getelementptr inbounds [5 x i8], [5 x i8]* %2, i64 0, i64 0
%12 = getelementptr inbounds [5 x i8], [5 x i8]* %3, i64 0, i64 0
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%14 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%15 = getelementptr inbounds [6 x i8], [6 x i8]* %6, i64 0, i64 0
%16 = getelementptr inbounds [5 x i8], [5 x i8]* %7, i64 0, i64 0
%17 = getelementptr inbounds [5 x i8], [5 x i8]* %8, i64 0, i64 0
%18 = getelementptr inbounds [5 x i8], [5 x i8]* %9, i64 0, i64 0
%19 = call double @atof(i8* %10)
%20 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %10, double %19)
%21 = call double @atof(i8* %11)
%22 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* %11, double %21)
%23 = call double @atof(i8* %12)
%24 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* %12, double %23)
%25 = call double @atof(i8* %13)
%26 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* %13, double %25)
%27 = call double @atof(i8* %14)
%28 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* %14, double %27)
%29 = call double @atof(i8* %15)
%30 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i8* %15, double %29)
%31 = call double @atof(i8* %16)
%32 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* %16, double %31)
%33 = call double @atof(i8* %17)
%34 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* %17, double %33)
%35 = call double @atof(i8* %18)
%36 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0), i8* %18, double %35)
ret i32 0
}