#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*/ fsc(double);
int /*<<< orphan*/ fss(double);
int /*<<< orphan*/ fuc(double);
int /*<<< orphan*/ fus(double);
void h2(void) {
  unsigned short int us;
  short int ss;
  unsigned char uc;
  signed char sc;
  fss(4294967294.0);
  ss = 4294967294.0;
  fss(-4294967294.0);
  ss = -4294967294.0;
  fus(4294967294.0);
  us = 4294967294.0;
  fus(-4294967294.0);
  us = -4294967294.0;
  fsc(500.0);
  sc = 500.0;
  fsc(-500.0);
  sc = -500.0;
  fuc(500.0);
  uc = 500.0;
  fuc(-500.0);
  uc = -500.0;
  fss(500.0);
  ss = 500.0;
  fss(-500.0);
  ss = -500.0;
  fus(500.0);
  us = 500.0;
  fus(-500.0);
  us = -500.0;
}


x86 assembly (clang, -O0):
<h2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movsd  0xec8(%rip),%xmm0
call   1030 <fss@plt>
mov    %ax,-0x4(%rbp)
movsd  0xeaf(%rip),%xmm0
call   1030 <fss@plt>
mov    %ax,-0x4(%rbp)
movsd  0xea6(%rip),%xmm0
call   1050 <fus@plt>
mov    %ax,-0x2(%rbp)
movsd  0xe8d(%rip),%xmm0
call   1050 <fus@plt>
mov    %ax,-0x2(%rbp)
movsd  0xe74(%rip),%xmm0
call   1040 <fsc@plt>
mov    %al,-0x6(%rbp)
movsd  0xe5c(%rip),%xmm0
call   1040 <fsc@plt>
mov    %al,-0x6(%rbp)
movsd  0xe54(%rip),%xmm0
call   1060 <fuc@plt>
mov    %al,-0x5(%rbp)
movsd  0xe3c(%rip),%xmm0
call   1060 <fuc@plt>
mov    %al,-0x5(%rbp)
movsd  0xe34(%rip),%xmm0
call   1030 <fss@plt>
movw   $0x1f4,-0x4(%rbp)
movsd  0xe19(%rip),%xmm0
call   1030 <fss@plt>
movw   $0xfe0c,-0x4(%rbp)
movsd  0xe0e(%rip),%xmm0
call   1050 <fus@plt>
movw   $0x1f4,-0x2(%rbp)
movsd  0xdf3(%rip),%xmm0
call   1050 <fus@plt>
mov    %ax,-0x2(%rbp)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<h2>:
push   %rax
movsd  0xeb7(%rip),%xmm0
call   1030 <fss@plt>
movsd  0xeb2(%rip),%xmm0
call   1030 <fss@plt>
movsd  0xe9d(%rip),%xmm0
call   1050 <fus@plt>
movsd  0xe98(%rip),%xmm0
call   1050 <fus@plt>
movsd  0xe93(%rip),%xmm0
call   1040 <fsc@plt>
movsd  0xe8e(%rip),%xmm0
call   1040 <fsc@plt>
movsd  0xe79(%rip),%xmm0
call   1060 <fuc@plt>
movsd  0xe74(%rip),%xmm0
call   1060 <fuc@plt>
movsd  0xe5f(%rip),%xmm0
call   1030 <fss@plt>
movsd  0xe5a(%rip),%xmm0
call   1030 <fss@plt>
movsd  0xe45(%rip),%xmm0
call   1050 <fus@plt>
movsd  0xe40(%rip),%xmm0
pop    %rax
jmp    1050 <fus@plt>

LLVM IR (-O0):
define void @h2() {
%1 = alloca i16
%2 = alloca i16
%3 = alloca i8
%4 = alloca i8
%5 = call i32 @fss(double 0x41EFFFFFFFC00000)
store i16 poison, i16* %2
%6 = call i32 @fss(double 0xC1EFFFFFFFC00000)
store i16 poison, i16* %2
%7 = call i32 @fus(double 0x41EFFFFFFFC00000)
store i16 poison, i16* %1
%8 = call i32 @fus(double 0xC1EFFFFFFFC00000)
store i16 poison, i16* %1
%9 = call i32 @fsc(double 5.000000e+02)
store i8 poison, i8* %4
%10 = call i32 @fsc(double -5.000000e+02)
store i8 poison, i8* %4
%11 = call i32 @fuc(double 5.000000e+02)
store i8 poison, i8* %3
%12 = call i32 @fuc(double -5.000000e+02)
store i8 poison, i8* %3
%13 = call i32 @fss(double 5.000000e+02)
store i16 500, i16* %2
%14 = call i32 @fss(double -5.000000e+02)
store i16 -500, i16* %2
%15 = call i32 @fus(double 5.000000e+02)
store i16 500, i16* %1
%16 = call i32 @fus(double -5.000000e+02)
store i16 poison, i16* %1
ret void
}

LLVM IR (-O2):
define void @h2() {
%1 = tail call i32 @fss(double 0x41EFFFFFFFC00000)
%2 = tail call i32 @fss(double 0xC1EFFFFFFFC00000)
%3 = tail call i32 @fus(double 0x41EFFFFFFFC00000)
%4 = tail call i32 @fus(double 0xC1EFFFFFFFC00000)
%5 = tail call i32 @fsc(double 5.000000e+02)
%6 = tail call i32 @fsc(double -5.000000e+02)
%7 = tail call i32 @fuc(double 5.000000e+02)
%8 = tail call i32 @fuc(double -5.000000e+02)
%9 = tail call i32 @fss(double 5.000000e+02)
%10 = tail call i32 @fss(double -5.000000e+02)
%11 = tail call i32 @fus(double 5.000000e+02)
%12 = tail call i32 @fus(double -5.000000e+02)
ret void
}