#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 */
float __randf();
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *);
int main(void) {
  int i = 0;
  for (i = 5; i--;) {
    float r = __randf();
    assert(r <= 1.0f && r >= 0.0f);
    printf(". ");
  }
  assert(1 == 1);
  printf(" Passed\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x5,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x8(%rbp)
cmp    $0x0,%eax
je     11b3 <main+0x83>
mov    $0x0,%al
call   1040 <__randf@plt>
movss  %xmm0,-0xc(%rbp)
xor    %eax,%eax
movss  0xe89(%rip),%xmm0
ucomiss -0xc(%rbp),%xmm0
mov    %al,-0xd(%rbp)
jb     1195 <main+0x65>
movss  -0xc(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
setae  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe5b(%rip),%rdi
call   1030 <printf@plt>
jmp    114d <main+0x1d>
mov    $0x1,%edi
call   1050 <assert@plt>
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1050 <__randf@plt>
movss  0xeb0(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %al
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1060 <assert@plt>
lea    0xe98(%rip),%rbx
mov    %rbx,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <__randf@plt>
movss  0xe79(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %al
ucomiss 0xe70(%rip),%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <__randf@plt>
movss  0xe48(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %al
ucomiss 0xe3f(%rip),%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <__randf@plt>
movss  0xe17(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %al
ucomiss 0xe0e(%rip),%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <__randf@plt>
movss  0xde6(%rip),%xmm1
ucomiss %xmm0,%xmm1
setae  %al
ucomiss 0xddd(%rip),%xmm0
setae  %cl
and    %al,%cl
movzbl %cl,%edi
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    $0x1,%edi
call   1060 <assert@plt>
lea    0xdbe(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c". \00"
@.str.1 = [9 x i8] c" Passed\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca float
store i32 0, i32* %1
store i32 0, i32* %2
store i32 5, i32* %2
br label %4
4: ; preds = %15, %0
%5 = load i32, i32* %2
%6 = add nsw i32 %5, -1
store i32 %6, i32* %2
%7 = icmp ne i32 %5, 0
br i1 %7, label %8, label %20
8: ; preds = %4
%9 = call float (...) @__randf()
store float %9, float* %3
%10 = load float, float* %3
%11 = fcmp ole float %10, 1.000000e+00
br i1 %11, label %12, label %15
12: ; preds = %8
%13 = load float, float* %3
%14 = fcmp oge float %13, 0.000000e+00
br label %15
15: ; preds = %12, %8
%16 = phi i1 [ false, %8 ], [ %14, %12 ]
%17 = zext i1 %16 to i32
%18 = call i32 @assert(i32 %17)
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %4
20: ; preds = %4
%21 = call i32 @assert(i32 1)
%22 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c". \00"
@str = [8 x i8] c" Passed\00"
define i32 @main() {
%1 = tail call float (...) @__randf()
%2 = fcmp ole float %1, 1.000000e+00
%3 = fcmp oge float %1, 0.000000e+00
%4 = and i1 %2, %3
%5 = zext i1 %4 to i32
%6 = tail call i32 @assert(i32 %5)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = tail call float (...) @__randf()
%9 = fcmp ole float %8, 1.000000e+00
%10 = fcmp oge float %8, 0.000000e+00
%11 = and i1 %9, %10
%12 = zext i1 %11 to i32
%13 = tail call i32 @assert(i32 %12)
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = tail call float (...) @__randf()
%16 = fcmp ole float %15, 1.000000e+00
%17 = fcmp oge float %15, 0.000000e+00
%18 = and i1 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%22 = tail call float (...) @__randf()
%23 = fcmp ole float %22, 1.000000e+00
%24 = fcmp oge float %22, 0.000000e+00
%25 = and i1 %23, %24
%26 = zext i1 %25 to i32
%27 = tail call i32 @assert(i32 %26)
%28 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%29 = tail call float (...) @__randf()
%30 = fcmp ole float %29, 1.000000e+00
%31 = fcmp oge float %29, 0.000000e+00
%32 = and i1 %30, %31
%33 = zext i1 %32 to i32
%34 = tail call i32 @assert(i32 %33)
%35 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%36 = tail call i32 @assert(i32 1)
%37 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
ret i32 0
}