#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 test_strtod(char *);
int test_strtof(char *);
int test_strtold(char *);
int do_test(void) {
  int result = 0;
  result |= ({
    int result = 0;
    result |= test_strtof("NaN(blabla)something");
    result |= test_strtod("NaN(blabla)something");
    result |= test_strtold("NaN(blabla)something");
    result;
  });
  result |= ({
    int result = 0;
    result |= test_strtof("NaN(1234)something");
    result |= test_strtod("NaN(1234)something");
    result |= test_strtold("NaN(1234)something");
    result;
  });
  result |= ({
    int result = 0;
    result |= test_strtof("NaN(4294967295)something");
    result |= test_strtod("NaN(4294967295)something");
    result |= test_strtold("NaN(4294967295)something");
    result;
  });
  result |= ({
    int result = 0;
    result |= test_strtof("NaN(18446744073709551615)something");
    result |= test_strtod("NaN(18446744073709551615)something");
    result |= test_strtold("NaN(18446744073709551615)something");
    result;
  });
  result |= ({
    int result = 0;
    result |= test_strtof("NaN(0)something");
    result |= test_strtod("NaN(0)something");
    result |= test_strtold("NaN(0)something");
    result;
  });
  return result;
}


x86 assembly (clang, -O0):
<do_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xeb3(%rip),%rdi
call   1040 <test_strtof@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xea1(%rip),%rdi
call   1030 <test_strtod@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
lea    0xe8f(%rip),%rdi
call   1050 <test_strtold@plt>
or     -0x8(%rbp),%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x10(%rbp)
lea    0xe7c(%rip),%rdi
call   1040 <test_strtof@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
lea    0xe6a(%rip),%rdi
call   1030 <test_strtod@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
lea    0xe58(%rip),%rdi
call   1050 <test_strtold@plt>
or     -0x10(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xe43(%rip),%rdi
call   1040 <test_strtof@plt>
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
lea    0xe31(%rip),%rdi
call   1030 <test_strtod@plt>
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
lea    0xe1f(%rip),%rdi
call   1050 <test_strtold@plt>
or     -0x18(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xe10(%rip),%rdi
call   1040 <test_strtof@plt>
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    0xdfe(%rip),%rdi
call   1030 <test_strtod@plt>
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    0xdec(%rip),%rdi
call   1050 <test_strtold@plt>
or     -0x20(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
lea    0xde7(%rip),%rdi
call   1040 <test_strtof@plt>
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    0xdd5(%rip),%rdi
call   1030 <test_strtod@plt>
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
lea    0xdc3(%rip),%rdi
call   1050 <test_strtold@plt>
or     -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
or     -0x4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_test>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xebb(%rip),%rbx
mov    %rbx,%rdi
call   1040 <test_strtof@plt>
mov    %eax,0x24(%rsp)
mov    %rbx,%rdi
call   1030 <test_strtod@plt>
mov    %eax,%r12d
mov    %rbx,%rdi
call   1050 <test_strtold@plt>
mov    %eax,0x20(%rsp)
lea    0xea6(%rip),%rbp
mov    %rbp,%rdi
call   1040 <test_strtof@plt>
mov    %eax,%ebx
mov    %rbp,%rdi
call   1030 <test_strtod@plt>
mov    %eax,0x1c(%rsp)
mov    %rbp,%rdi
call   1050 <test_strtold@plt>
mov    %eax,%ebp
lea    0xe92(%rip),%r14
mov    %r14,%rdi
call   1040 <test_strtof@plt>
mov    %eax,0x18(%rsp)
mov    %r14,%rdi
call   1030 <test_strtod@plt>
mov    %eax,0x14(%rsp)
mov    %r14,%rdi
call   1050 <test_strtold@plt>
mov    %eax,%r14d
lea    0xe81(%rip),%r15
mov    %r15,%rdi
call   1040 <test_strtof@plt>
mov    %eax,0x10(%rsp)
mov    %r15,%rdi
call   1030 <test_strtod@plt>
mov    %eax,0xc(%rsp)
mov    %r15,%rdi
call   1050 <test_strtold@plt>
mov    %eax,0x8(%rsp)
lea    0xe79(%rip),%r15
mov    %r15,%rdi
call   1040 <test_strtof@plt>
mov    %eax,%r13d
mov    %r15,%rdi
call   1030 <test_strtod@plt>
mov    %eax,0x4(%rsp)
mov    %r15,%rdi
call   1050 <test_strtold@plt>
or     0x24(%rsp),%r12d
or     0x20(%rsp),%ebx
or     %r12d,%ebx
or     0x1c(%rsp),%ebp
or     0x18(%rsp),%ebp
or     %ebx,%ebp
or     0x14(%rsp),%r14d
or     0x10(%rsp),%r14d
or     0xc(%rsp),%r14d
or     %ebp,%r14d
or     0x8(%rsp),%r13d
or     0x4(%rsp),%r13d
or     %r13d,%eax
or     %r14d,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"NaN(blabla)something\00"
@.str.1 = [19 x i8] c"NaN(1234)something\00"
@.str.2 = [25 x i8] c"NaN(4294967295)something\00"
@.str.3 = [35 x i8] c"NaN(18446744073709551615)something\00"
@.str.4 = [16 x i8] c"NaN(0)something\00"
define i32 @do_test() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
%12 = call i32 @test_strtof(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %2
%14 = or i32 %13, %12
store i32 %14, i32* %2
%15 = call i32 @test_strtod(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%16 = load i32, i32* %2
%17 = or i32 %16, %15
store i32 %17, i32* %2
%18 = call i32 @test_strtold(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%19 = load i32, i32* %2
%20 = or i32 %19, %18
store i32 %20, i32* %2
%21 = load i32, i32* %2
store i32 %21, i32* %3
%22 = load i32, i32* %3
%23 = load i32, i32* %1
%24 = or i32 %23, %22
store i32 %24, i32* %1
store i32 0, i32* %4
%25 = call i32 @test_strtof(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%26 = load i32, i32* %4
%27 = or i32 %26, %25
store i32 %27, i32* %4
%28 = call i32 @test_strtod(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%29 = load i32, i32* %4
%30 = or i32 %29, %28
store i32 %30, i32* %4
%31 = call i32 @test_strtold(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%32 = load i32, i32* %4
%33 = or i32 %32, %31
store i32 %33, i32* %4
%34 = load i32, i32* %4
store i32 %34, i32* %5
%35 = load i32, i32* %5
%36 = load i32, i32* %1
%37 = or i32 %36, %35
store i32 %37, i32* %1
store i32 0, i32* %6
%38 = call i32 @test_strtof(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%39 = load i32, i32* %6
%40 = or i32 %39, %38
store i32 %40, i32* %6
%41 = call i32 @test_strtod(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* %6
%43 = or i32 %42, %41
store i32 %43, i32* %6
%44 = call i32 @test_strtold(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%45 = load i32, i32* %6
%46 = or i32 %45, %44
store i32 %46, i32* %6
%47 = load i32, i32* %6
store i32 %47, i32* %7
%48 = load i32, i32* %7
%49 = load i32, i32* %1
%50 = or i32 %49, %48
store i32 %50, i32* %1
store i32 0, i32* %8
%51 = call i32 @test_strtof(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%52 = load i32, i32* %8
%53 = or i32 %52, %51
store i32 %53, i32* %8
%54 = call i32 @test_strtod(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%55 = load i32, i32* %8
%56 = or i32 %55, %54
store i32 %56, i32* %8
%57 = call i32 @test_strtold(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%58 = load i32, i32* %8
%59 = or i32 %58, %57
store i32 %59, i32* %8
%60 = load i32, i32* %8
store i32 %60, i32* %9
%61 = load i32, i32* %9
%62 = load i32, i32* %1
%63 = or i32 %62, %61
store i32 %63, i32* %1
store i32 0, i32* %10
%64 = call i32 @test_strtof(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%65 = load i32, i32* %10
%66 = or i32 %65, %64
store i32 %66, i32* %10
%67 = call i32 @test_strtod(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%68 = load i32, i32* %10
%69 = or i32 %68, %67
store i32 %69, i32* %10
%70 = call i32 @test_strtold(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%71 = load i32, i32* %10
%72 = or i32 %71, %70
store i32 %72, i32* %10
%73 = load i32, i32* %10
store i32 %73, i32* %11
%74 = load i32, i32* %11
%75 = load i32, i32* %1
%76 = or i32 %75, %74
store i32 %76, i32* %1
%77 = load i32, i32* %1
ret i32 %77
}

LLVM IR (-O2):
@.str = [21 x i8] c"NaN(blabla)something\00"
@.str.1 = [19 x i8] c"NaN(1234)something\00"
@.str.2 = [25 x i8] c"NaN(4294967295)something\00"
@.str.3 = [35 x i8] c"NaN(18446744073709551615)something\00"
@.str.4 = [16 x i8] c"NaN(0)something\00"
define i32 @do_test() {
%1 = tail call i32 @test_strtof(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @test_strtod(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @test_strtold(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @test_strtof(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @test_strtod(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @test_strtold(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @test_strtof(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @test_strtod(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @test_strtold(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @test_strtof(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%11 = tail call i32 @test_strtod(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%12 = tail call i32 @test_strtold(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0))
%13 = tail call i32 @test_strtof(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%14 = tail call i32 @test_strtod(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%15 = tail call i32 @test_strtold(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0))
%16 = or i32 %2, %1
%17 = or i32 %16, %3
%18 = or i32 %17, %4
%19 = or i32 %18, %5
%20 = or i32 %19, %6
%21 = or i32 %20, %7
%22 = or i32 %21, %8
%23 = or i32 %22, %9
%24 = or i32 %23, %10
%25 = or i32 %24, %11
%26 = or i32 %25, %12
%27 = or i32 %26, %13
%28 = or i32 %27, %14
%29 = or i32 %28, %15
ret i32 %29
}