#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 float_to_unsigned(void) {
  unsigned char float_char_of = (unsigned char)289.0f,
                float_char_uf = (unsigned char)-41.0f,
                double_char_of = (unsigned char)289.0,
                double_char_uf = (unsigned char)-41.0;
  unsigned short float_short_of = (unsigned short)2234589.0f,
                 float_short_uf = (unsigned short)-41.0f,
                 double_short_of = (unsigned short)2234589.0,
                 double_short_uf = (unsigned short)-41.0;
  unsigned int float_int_of = (unsigned int)5678134124.1f,
               float_int_uf = (unsigned int)-41.0f,
               double_int_of = (unsigned int)5678134124.1,
               double_int_uf = (unsigned int)-41.0;
  unsigned long float_long_of = (unsigned long)4.1e24f,
                float_long_uf = (unsigned long)-41.0f,
                double_long_of = (unsigned long)4.1e24,
                double_long_uf = (unsigned long)-41.0;
  assert(float_char_of == 33);
  assert(float_char_uf == 215);
  assert(double_char_of == 33);
  assert(double_char_uf == 215);
  assert(float_short_of == 6365);
  assert(float_short_uf == 65495);
  assert(double_short_of == 6365);
  assert(double_short_uf == 65495);
  assert(float_int_of == 1383166976);
  assert(float_int_uf == 4294967255);
  assert(double_int_of == 1383166828);
  assert(double_int_uf == 4294967255);
  assert(float_long_of == 0);
  assert(float_long_uf == 18446744073709551575ul);
  assert(double_long_of == 0);
  assert(double_long_uf == 18446744073709551575ul);
  return 0;
}


x86 assembly (clang, -O0):
<float_to_unsigned>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %al,-0x1(%rbp)
mov    %al,-0x2(%rbp)
mov    %al,-0x3(%rbp)
mov    %al,-0x4(%rbp)
mov    %ax,-0x6(%rbp)
mov    %ax,-0x8(%rbp)
mov    %ax,-0xa(%rbp)
mov    %ax,-0xc(%rbp)
mov    %eax,-0x10(%rbp)
mov    %eax,-0x14(%rbp)
mov    %eax,-0x18(%rbp)
mov    %eax,-0x1c(%rbp)
mov    %rax,-0x28(%rbp)
mov    %rax,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    %rax,-0x40(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x21,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzbl -0x2(%rbp),%eax
cmp    $0xd7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzbl -0x3(%rbp),%eax
cmp    $0x21,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzbl -0x4(%rbp),%eax
cmp    $0xd7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzwl -0x6(%rbp),%eax
cmp    $0x18dd,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzwl -0x8(%rbp),%eax
cmp    $0xffd7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzwl -0xa(%rbp),%eax
cmp    $0x18dd,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
movzwl -0xc(%rbp),%eax
cmp    $0xffd7,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x52717400,-0x10(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x14(%rbp),%eax
mov    $0xffffffd7,%ecx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpl   $0x5271736c,-0x18(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x1c(%rbp),%eax
mov    $0xffffffd7,%ecx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0x0,-0x28(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0xffffffffffffffd7,-0x30(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0x0,-0x38(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
cmpq   $0xffffffffffffffd7,-0x40(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<float_to_unsigned>:
push   %rax
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @float_to_unsigned() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8
%4 = alloca i8
%5 = alloca i16
%6 = alloca i16
%7 = alloca i16
%8 = alloca i16
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i64
store i8 poison, i8* %1
store i8 poison, i8* %2
store i8 poison, i8* %3
store i8 poison, i8* %4
store i16 poison, i16* %5
store i16 poison, i16* %6
store i16 poison, i16* %7
store i16 poison, i16* %8
store i32 poison, i32* %9
store i32 poison, i32* %10
store i32 poison, i32* %11
store i32 poison, i32* %12
store i64 poison, i64* %13
store i64 poison, i64* %14
store i64 poison, i64* %15
store i64 poison, i64* %16
%17 = load i8, i8* %1
%18 = zext i8 %17 to i32
%19 = icmp eq i32 %18, 33
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = load i8, i8* %2
%23 = zext i8 %22 to i32
%24 = icmp eq i32 %23, 215
%25 = zext i1 %24 to i32
%26 = call i32 @assert(i32 %25)
%27 = load i8, i8* %3
%28 = zext i8 %27 to i32
%29 = icmp eq i32 %28, 33
%30 = zext i1 %29 to i32
%31 = call i32 @assert(i32 %30)
%32 = load i8, i8* %4
%33 = zext i8 %32 to i32
%34 = icmp eq i32 %33, 215
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = load i16, i16* %5
%38 = zext i16 %37 to i32
%39 = icmp eq i32 %38, 6365
%40 = zext i1 %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = load i16, i16* %6
%43 = zext i16 %42 to i32
%44 = icmp eq i32 %43, 65495
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = load i16, i16* %7
%48 = zext i16 %47 to i32
%49 = icmp eq i32 %48, 6365
%50 = zext i1 %49 to i32
%51 = call i32 @assert(i32 %50)
%52 = load i16, i16* %8
%53 = zext i16 %52 to i32
%54 = icmp eq i32 %53, 65495
%55 = zext i1 %54 to i32
%56 = call i32 @assert(i32 %55)
%57 = load i32, i32* %9
%58 = icmp eq i32 %57, 1383166976
%59 = zext i1 %58 to i32
%60 = call i32 @assert(i32 %59)
%61 = load i32, i32* %10
%62 = zext i32 %61 to i64
%63 = icmp eq i64 %62, 4294967255
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i32, i32* %11
%67 = icmp eq i32 %66, 1383166828
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = load i32, i32* %12
%71 = zext i32 %70 to i64
%72 = icmp eq i64 %71, 4294967255
%73 = zext i1 %72 to i32
%74 = call i32 @assert(i32 %73)
%75 = load i64, i64* %13
%76 = icmp eq i64 %75, 0
%77 = zext i1 %76 to i32
%78 = call i32 @assert(i32 %77)
%79 = load i64, i64* %14
%80 = icmp eq i64 %79, -41
%81 = zext i1 %80 to i32
%82 = call i32 @assert(i32 %81)
%83 = load i64, i64* %15
%84 = icmp eq i64 %83, 0
%85 = zext i1 %84 to i32
%86 = call i32 @assert(i32 %85)
%87 = load i64, i64* %16
%88 = icmp eq i64 %87, -41
%89 = zext i1 %88 to i32
%90 = call i32 @assert(i32 %89)
ret i32 0
}

LLVM IR (-O2):
define i32 @float_to_unsigned() {
%1 = tail call i32 @assert(i32 poison)
%2 = tail call i32 @assert(i32 poison)
%3 = tail call i32 @assert(i32 poison)
%4 = tail call i32 @assert(i32 poison)
%5 = tail call i32 @assert(i32 poison)
%6 = tail call i32 @assert(i32 poison)
%7 = tail call i32 @assert(i32 poison)
%8 = tail call i32 @assert(i32 poison)
%9 = tail call i32 @assert(i32 poison)
%10 = tail call i32 @assert(i32 poison)
%11 = tail call i32 @assert(i32 poison)
%12 = tail call i32 @assert(i32 poison)
%13 = tail call i32 @assert(i32 poison)
%14 = tail call i32 @assert(i32 poison)
%15 = tail call i32 @assert(i32 poison)
%16 = tail call i32 @assert(i32 poison)
ret i32 0
}