#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*/ write(int, unsigned char *, int);
void gds_write_float(int fd, float x) {
  int isNegative;
  int i;
  float real;
  unsigned char exponent, b;
  float G_epsilon;
  b = 0;
  G_epsilon = 0.000001;
  isNegative = 0;
  x = x;
  if (x < 0.0) {
    isNegative = 1;
    x = 0 - x;
  }
  exponent = 0;
  while (x >= 1.0) {
    exponent++;
    x = (x / 16.0);
  }
  if (x != 0) {
    while (x < 0.0625) {
      exponent--;
      x = (x * 16.0);
    }
  }
  if (isNegative) {
    exponent += 192;
  } else {
    exponent += 64;
  }
  write(fd, &exponent, 1);
  for (i = 1; i <= 7; i++) {
    if (x >= 0) {
      b = (int)(x * 256.0) + G_epsilon;
    } else {
      b = (int)(x * 256.0) - G_epsilon;
    }
    write(fd, &b, 1);
    x = x * 256.0 - (b + 0.0);
  }
}


x86 assembly (clang, -O0):
<gds_write_float>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
movb   $0x0,-0x16(%rbp)
movss  0xed4(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movl   $0x0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    116c <gds_write_float+0x5c>
movl   $0x1,-0xc(%rbp)
xorps  %xmm0,%xmm0
subss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movb   $0x0,-0x15(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe87(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11b6 <gds_write_float+0xa6>
mov    -0x15(%rbp),%al
add    $0x1,%al
mov    %al,-0x15(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe7c(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    1170 <gds_write_float+0x60>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    11d2 <gds_write_float+0xc2>
jp     11d2 <gds_write_float+0xc2>
jmp    1222 <gds_write_float+0x112>
jmp    11d7 <gds_write_float+0xc7>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe28(%rip),%xmm0
ucomisd %xmm1,%xmm0
jbe    121d <gds_write_float+0x10d>
mov    -0x15(%rbp),%al
add    $0xff,%al
mov    %al,-0x15(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe15(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
jmp    11d7 <gds_write_float+0xc7>
jmp    1222 <gds_write_float+0x112>
cmpl   $0x0,-0xc(%rbp)
je     123d <gds_write_float+0x12d>
movzbl -0x15(%rbp),%eax
add    $0xc0,%eax
mov    %al,-0x15(%rbp)
jmp    1247 <gds_write_float+0x137>
movzbl -0x15(%rbp),%eax
add    $0x40,%eax
mov    %al,-0x15(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x15(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movl   $0x1,-0x10(%rbp)
cmpl   $0x7,-0x10(%rbp)
jg     133e <gds_write_float+0x22e>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12ab <gds_write_float+0x19b>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd8d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttpd2dq %xmm0,%xmm0
cvtdq2ps %xmm0,%xmm0
movss  -0x1c(%rbp),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %al,-0x16(%rbp)
jmp    12d7 <gds_write_float+0x1c7>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd5c(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvttpd2dq %xmm0,%xmm0
cvtdq2ps %xmm0,%xmm0
movss  -0x1c(%rbp),%xmm1
subss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %al,-0x16(%rbp)
mov    -0x4(%rbp),%edi
lea    -0x16(%rbp),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movzbl -0x16(%rbp),%eax
cvtsi2sd %eax,%xmm1
xorps  %xmm2,%xmm2
addsd  %xmm2,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  0xcf9(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    125f <gds_write_float+0x14f>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gds_write_float>:
push   %rbp
push   %r14
push   %rbx
sub    $0x30,%rsp
mov    %edi,%ebx
xorps  %xmm1,%xmm1
xorps  %xmm2,%xmm2
subss  %xmm0,%xmm2
movaps %xmm0,%xmm4
cmpltss %xmm1,%xmm4
andps  %xmm4,%xmm2
andnps %xmm0,%xmm4
orps   %xmm2,%xmm4
xor    %eax,%eax
ucomiss 0xec2(%rip),%xmm4
jb     115b <gds_write_float+0x4b>
movss  0xebc(%rip),%xmm2
movss  0xeb0(%rip),%xmm3
add    $0x1,%al
mulss  %xmm2,%xmm4
ucomiss %xmm3,%xmm4
jae    1150 <gds_write_float+0x40>
ucomiss %xmm1,%xmm4
jne    1162 <gds_write_float+0x52>
jnp    118b <gds_write_float+0x7b>
movss  0xe9a(%rip),%xmm1
ucomiss %xmm4,%xmm1
jbe    118b <gds_write_float+0x7b>
movss  0xe91(%rip),%xmm2
nopw   0x0(%rax,%rax,1)
add    $0xff,%al
mulss  %xmm2,%xmm4
ucomiss %xmm4,%xmm1
ja     1180 <gds_write_float+0x70>
movaps %xmm4,0x20(%rsp)
xorps  %xmm1,%xmm1
ucomiss %xmm0,%xmm1
setbe  %cl
shl    $0x7,%cl
add    %al,%cl
add    $0xc0,%cl
mov    %cl,0xf(%rsp)
lea    0xf(%rsp),%rsi
mov    %ebx,%edi
mov    $0x1,%edx
call   1030 <write@plt>
movaps 0x20(%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtss2sd %xmm2,%xmm0
mulsd  0xe4e(%rip),%xmm0
movapd %xmm0,0x10(%rsp)
cvttpd2dq %xmm0,%xmm0
cvtdq2ps %xmm0,%xmm0
xorps  %xmm1,%xmm1
cmpnless %xmm2,%xmm1
movss  0xe25(%rip),%xmm3
movaps %xmm1,%xmm2
andps  %xmm3,%xmm2
movss  0xe1b(%rip),%xmm3
andnps %xmm3,%xmm1
orps   %xmm2,%xmm1
addss  %xmm0,%xmm1
cvttss2si %xmm1,%ebp
mov    %bpl,0xe(%rsp)
lea    0xe(%rsp),%r14
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xdd1(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movaps %xmm2,%xmm0
movss  0xda5(%rip),%xmm3
andps  %xmm3,%xmm0
movss  0xd9e(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%ebp
mov    %bpl,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xd59(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movaps %xmm2,%xmm0
movss  0xd2d(%rip),%xmm3
andps  %xmm3,%xmm0
movss  0xd26(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%ebp
mov    %bpl,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xce1(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movaps %xmm2,%xmm0
movss  0xcb5(%rip),%xmm3
andps  %xmm3,%xmm0
movss  0xcae(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%ebp
mov    %bpl,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xc69(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movaps %xmm2,%xmm0
movss  0xc3d(%rip),%xmm3
andps  %xmm3,%xmm0
movss  0xc36(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%ebp
mov    %bpl,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xbf1(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movaps %xmm2,%xmm0
movss  0xbc5(%rip),%xmm3
andps  %xmm3,%xmm0
movss  0xbbe(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%ebp
mov    %bpl,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
movzbl %bpl,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
xorps  %xmm1,%xmm1
cvtss2sd %xmm0,%xmm1
mulsd  0xb79(%rip),%xmm1
cvttpd2dq %xmm1,%xmm1
cvtdq2ps %xmm1,%xmm1
xorps  %xmm2,%xmm2
cmpnless %xmm0,%xmm2
movss  0xb56(%rip),%xmm0
andps  %xmm2,%xmm0
movss  0xb4f(%rip),%xmm3
andnps %xmm3,%xmm2
orps   %xmm0,%xmm2
addss  %xmm1,%xmm2
cvttss2si %xmm2,%eax
mov    %al,0xe(%rsp)
mov    %ebx,%edi
mov    %r14,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define void @gds_write_float(i32 %0, float %1) {
%3 = alloca i32
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
%7 = alloca float
%8 = alloca i8
%9 = alloca i8
%10 = alloca float
store i32 %0, i32* %3
store float %1, float* %4
store i8 0, i8* %9
store float 0x3EB0C6F7A0000000, float* %10
store i32 0, i32* %5
%11 = load float, float* %4
store float %11, float* %4
%12 = load float, float* %4
%13 = fpext float %12 to double
%14 = fcmp olt double %13, 0.000000e+00
br i1 %14, label %15, label %18
15: ; preds = %2
store i32 1, i32* %5
%16 = load float, float* %4
%17 = fsub float 0.000000e+00, %16
store float %17, float* %4
br label %18
18: ; preds = %15, %2
store i8 0, i8* %8
br label %19
19: ; preds = %23, %18
%20 = load float, float* %4
%21 = fpext float %20 to double
%22 = fcmp oge double %21, 1.000000e+00
br i1 %22, label %23, label %30
23: ; preds = %19
%24 = load i8, i8* %8
%25 = add i8 %24, 1
store i8 %25, i8* %8
%26 = load float, float* %4
%27 = fpext float %26 to double
%28 = fdiv double %27, 1.600000e+01
%29 = fptrunc double %28 to float
store float %29, float* %4
br label %19
30: ; preds = %19
%31 = load float, float* %4
%32 = fcmp une float %31, 0.000000e+00
br i1 %32, label %33, label %46
33: ; preds = %30
br label %34
34: ; preds = %38, %33
%35 = load float, float* %4
%36 = fpext float %35 to double
%37 = fcmp olt double %36, 6.250000e-02
br i1 %37, label %38, label %45
38: ; preds = %34
%39 = load i8, i8* %8
%40 = add i8 %39, -1
store i8 %40, i8* %8
%41 = load float, float* %4
%42 = fpext float %41 to double
%43 = fmul double %42, 1.600000e+01
%44 = fptrunc double %43 to float
store float %44, float* %4
br label %34
45: ; preds = %34
br label %46
46: ; preds = %45, %30
%47 = load i32, i32* %5
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = load i8, i8* %8
%51 = zext i8 %50 to i32
%52 = add nsw i32 %51, 192
%53 = trunc i32 %52 to i8
store i8 %53, i8* %8
br label %59
54: ; preds = %46
%55 = load i8, i8* %8
%56 = zext i8 %55 to i32
%57 = add nsw i32 %56, 64
%58 = trunc i32 %57 to i8
store i8 %58, i8* %8
br label %59
59: ; preds = %54, %49
%60 = load i32, i32* %3
%61 = call i32 @write(i32 %60, i8* %8, i32 1)
store i32 1, i32* %6
br label %62
62: ; preds = %98, %59
%63 = load i32, i32* %6
%64 = icmp sle i32 %63, 7
br i1 %64, label %65, label %101
65: ; preds = %62
%66 = load float, float* %4
%67 = fcmp oge float %66, 0.000000e+00
br i1 %67, label %68, label %77
68: ; preds = %65
%69 = load float, float* %4
%70 = fpext float %69 to double
%71 = fmul double %70, 2.560000e+02
%72 = fptosi double %71 to i32
%73 = sitofp i32 %72 to float
%74 = load float, float* %10
%75 = fadd float %73, %74
%76 = fptoui float %75 to i8
store i8 %76, i8* %9
br label %86
77: ; preds = %65
%78 = load float, float* %4
%79 = fpext float %78 to double
%80 = fmul double %79, 2.560000e+02
%81 = fptosi double %80 to i32
%82 = sitofp i32 %81 to float
%83 = load float, float* %10
%84 = fsub float %82, %83
%85 = fptoui float %84 to i8
store i8 %85, i8* %9
br label %86
86: ; preds = %77, %68
%87 = load i32, i32* %3
%88 = call i32 @write(i32 %87, i8* %9, i32 1)
%89 = load float, float* %4
%90 = fpext float %89 to double
%91 = load i8, i8* %9
%92 = zext i8 %91 to i32
%93 = sitofp i32 %92 to double
%94 = fadd double %93, 0.000000e+00
%95 = fneg double %94
%96 = call double @llvm.fmuladd.f64(double %90, double 2.560000e+02, double %95)
%97 = fptrunc double %96 to float
store float %97, float* %4
br label %98
98: ; preds = %86
%99 = load i32, i32* %6
%100 = add nsw i32 %99, 1
store i32 %100, i32* %6
br label %62
101: ; preds = %62
ret void
}

LLVM IR (-O2):
define void @gds_write_float(i32 %0, float %1) {
%3 = alloca i8
%4 = alloca i8
%5 = fcmp olt float %1, 0.000000e+00
%6 = fsub float 0.000000e+00, %1
%7 = select i1 %5, float %6, float %1
%8 = fcmp ult float %7, 1.000000e+00
br i1 %8, label %15, label %9
9: ; preds = %2, %9
%10 = phi float [ %13, %9 ], [ %7, %2 ]
%11 = phi i8 [ %12, %9 ], [ 0, %2 ]
%12 = add i8 %11, 1
%13 = fmul float %10, 6.250000e-02
%14 = fcmp ult float %13, 1.000000e+00
br i1 %14, label %15, label %9
15: ; preds = %9, %2
%16 = phi i8 [ 0, %2 ], [ %12, %9 ]
%17 = phi float [ %7, %2 ], [ %13, %9 ]
%18 = fcmp une float %17, 0.000000e+00
%19 = fcmp olt float %17, 6.250000e-02
%20 = and i1 %18, %19
br i1 %20, label %21, label %27
21: ; preds = %15, %21
%22 = phi float [ %25, %21 ], [ %17, %15 ]
%23 = phi i8 [ %24, %21 ], [ %16, %15 ]
%24 = add i8 %23, -1
%25 = fmul float %22, 1.600000e+01
%26 = fcmp olt float %25, 6.250000e-02
br i1 %26, label %21, label %27
27: ; preds = %21, %15
%28 = phi i8 [ %16, %15 ], [ %24, %21 ]
%29 = phi float [ %17, %15 ], [ %25, %21 ]
%30 = select i1 %5, i8 -64, i8 64
%31 = add i8 %28, %30
store i8 %31, i8* %3
%32 = call i32 @write(i32 %0, i8* %3, i32 1)
%33 = fcmp ult float %29, 0.000000e+00
%34 = fpext float %29 to double
%35 = fmul double %34, 2.560000e+02
%36 = fptosi double %35 to i32
%37 = sitofp i32 %36 to float
%38 = select i1 %33, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%39 = fadd float %38, %37
%40 = fptoui float %39 to i8
store i8 %40, i8* %4
%41 = call i32 @write(i32 %0, i8* %4, i32 1)
%42 = uitofp i8 %40 to double
%43 = fneg double %42
%44 = tail call double @llvm.fmuladd.f64(double %34, double 2.560000e+02, double %43)
%45 = fptrunc double %44 to float
%46 = fcmp ult float %45, 0.000000e+00
%47 = fpext float %45 to double
%48 = fmul double %47, 2.560000e+02
%49 = fptosi double %48 to i32
%50 = sitofp i32 %49 to float
%51 = select i1 %46, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%52 = fadd float %51, %50
%53 = fptoui float %52 to i8
store i8 %53, i8* %4
%54 = call i32 @write(i32 %0, i8* %4, i32 1)
%55 = uitofp i8 %53 to double
%56 = fneg double %55
%57 = tail call double @llvm.fmuladd.f64(double %47, double 2.560000e+02, double %56)
%58 = fptrunc double %57 to float
%59 = fcmp ult float %58, 0.000000e+00
%60 = fpext float %58 to double
%61 = fmul double %60, 2.560000e+02
%62 = fptosi double %61 to i32
%63 = sitofp i32 %62 to float
%64 = select i1 %59, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%65 = fadd float %64, %63
%66 = fptoui float %65 to i8
store i8 %66, i8* %4
%67 = call i32 @write(i32 %0, i8* %4, i32 1)
%68 = uitofp i8 %66 to double
%69 = fneg double %68
%70 = tail call double @llvm.fmuladd.f64(double %60, double 2.560000e+02, double %69)
%71 = fptrunc double %70 to float
%72 = fcmp ult float %71, 0.000000e+00
%73 = fpext float %71 to double
%74 = fmul double %73, 2.560000e+02
%75 = fptosi double %74 to i32
%76 = sitofp i32 %75 to float
%77 = select i1 %72, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%78 = fadd float %77, %76
%79 = fptoui float %78 to i8
store i8 %79, i8* %4
%80 = call i32 @write(i32 %0, i8* %4, i32 1)
%81 = uitofp i8 %79 to double
%82 = fneg double %81
%83 = tail call double @llvm.fmuladd.f64(double %73, double 2.560000e+02, double %82)
%84 = fptrunc double %83 to float
%85 = fcmp ult float %84, 0.000000e+00
%86 = fpext float %84 to double
%87 = fmul double %86, 2.560000e+02
%88 = fptosi double %87 to i32
%89 = sitofp i32 %88 to float
%90 = select i1 %85, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%91 = fadd float %90, %89
%92 = fptoui float %91 to i8
store i8 %92, i8* %4
%93 = call i32 @write(i32 %0, i8* %4, i32 1)
%94 = uitofp i8 %92 to double
%95 = fneg double %94
%96 = tail call double @llvm.fmuladd.f64(double %86, double 2.560000e+02, double %95)
%97 = fptrunc double %96 to float
%98 = fcmp ult float %97, 0.000000e+00
%99 = fpext float %97 to double
%100 = fmul double %99, 2.560000e+02
%101 = fptosi double %100 to i32
%102 = sitofp i32 %101 to float
%103 = select i1 %98, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%104 = fadd float %103, %102
%105 = fptoui float %104 to i8
store i8 %105, i8* %4
%106 = call i32 @write(i32 %0, i8* %4, i32 1)
%107 = uitofp i8 %105 to double
%108 = fneg double %107
%109 = tail call double @llvm.fmuladd.f64(double %99, double 2.560000e+02, double %108)
%110 = fptrunc double %109 to float
%111 = fcmp ult float %110, 0.000000e+00
%112 = fpext float %110 to double
%113 = fmul double %112, 2.560000e+02
%114 = fptosi double %113 to i32
%115 = sitofp i32 %114 to float
%116 = select i1 %111, float 0xBEB0C6F7A0000000, float 0x3EB0C6F7A0000000
%117 = fadd float %116, %115
%118 = fptoui float %117 to i8
store i8 %118, i8* %4
%119 = call i32 @write(i32 %0, i8* %4, i32 1)
ret void
}