#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*/ assert(int);
int isNan(float);
int main() {
  struct blub {
    float f;
  } s;
  float fs[3];
  float top;
  assert(top == top);
  assert(s.f == s.f);
  assert(fs[1] == fs[1]);
  int r = isNan(top);
  if (r) {
    assert(1);
  } else {
    assert(1);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movss  -0x18(%rbp),%xmm0
ucomiss -0x18(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movss  -0x8(%rbp),%xmm0
ucomiss -0x8(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0x10(%rbp),%xmm0
sete   %al
setnp  %cl
and    %cl,%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
movss  -0x18(%rbp),%xmm0
call   1030 <isNan@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     11a6 <main+0x86>
mov    $0x1,%edi
call   1040 <assert@plt>
jmp    11b0 <main+0x90>
mov    $0x1,%edi
call   1040 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
xor    %edi,%edi
call   1040 <assert@plt>
call   1030 <isNan@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.blub = type { float }
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.blub
%3 = alloca [3 x float]
%4 = alloca float
%5 = alloca i32
store i32 0, i32* %1
%6 = load float, float* %4
%7 = load float, float* %4
%8 = fcmp oeq float %6, %7
%9 = zext i1 %8 to i32
%10 = call i32 @assert(i32 %9)
%11 = getelementptr inbounds %struct.blub, %struct.blub* %2, i32 0, i32 0
%12 = load float, float* %11
%13 = getelementptr inbounds %struct.blub, %struct.blub* %2, i32 0, i32 0
%14 = load float, float* %13
%15 = fcmp oeq float %12, %14
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 1
%19 = load float, float* %18
%20 = getelementptr inbounds [3 x float], [3 x float]* %3, i64 0, i64 1
%21 = load float, float* %20
%22 = fcmp oeq float %19, %21
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = load float, float* %4
%26 = call i32 @isNan(float %25)
store i32 %26, i32* %5
%27 = load i32, i32* %5
%28 = icmp ne i32 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %0
%30 = call i32 @assert(i32 1)
br label %33
31: ; preds = %0
%32 = call i32 @assert(i32 1)
br label %33
33: ; preds = %31, %29
%34 = load i32, i32* %1
ret i32 %34
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @assert(i32 0)
%2 = tail call i32 @assert(i32 0)
%3 = tail call i32 @assert(i32 0)
%4 = tail call i32 @isNan(float undef)
%5 = tail call i32 @assert(i32 1)
ret i32 0
}