#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*/ print_f(int /*<<< orphan*/);
int /*<<< orphan*/ strtod(char *, int /*<<< orphan*/ *);
int main(void) {
  char *s1 = "   123435454pr435";
  char *s2 = " 243123.342423p2343233 32423";
  char *s3 = "  .12234243 e324";
  print_f(strtod(s1, NULL));
  print_f(strtod(s2, NULL));
  print_f(strtod(s3, NULL));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xed8(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xeea(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
mov    -0x10(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %esi,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
lea    0xed5(%rip),%rdi
xor    %esi,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
lea    0xedd(%rip),%rdi
xor    %esi,%esi
call   1030 <strtod@plt>
mov    %eax,%edi
call   1040 <print_f@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [18 x i8] c" 123435454pr435\00"
@.str.1 = [29 x i8] c" 243123.342423p2343233 32423\00"
@.str.2 = [17 x i8] c" .12234243 e324\00"
define i32 @main() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
store i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i8** %3
%4 = load i8*, i8** %1
%5 = call i32 @strtod(i8* %4, i32* null)
%6 = call i32 @print_f(i32 %5)
%7 = load i8*, i8** %2
%8 = call i32 @strtod(i8* %7, i32* null)
%9 = call i32 @print_f(i32 %8)
%10 = load i8*, i8** %3
%11 = call i32 @strtod(i8* %10, i32* null)
%12 = call i32 @print_f(i32 %11)
ret i32 0
}

LLVM IR (-O2):
@.str = [18 x i8] c" 123435454pr435\00"
@.str.1 = [29 x i8] c" 243123.342423p2343233 32423\00"
@.str.2 = [17 x i8] c" .12234243 e324\00"
define i32 @main() {
%1 = tail call i32 @strtod(i8* nocapture getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32* null)
%2 = tail call i32 @print_f(i32 %1)
%3 = tail call i32 @strtod(i8* nocapture getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0), i32* null)
%4 = tail call i32 @print_f(i32 %3)
%5 = tail call i32 @strtod(i8* nocapture getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32* null)
%6 = tail call i32 @print_f(i32 %5)
ret i32 0
}