#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 */
struct OutputStream {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ PrintCh(char, struct OutputStream *);
int /*<<< orphan*/ PrintInt(int, int /*<<< orphan*/, int /*<<< orphan*/,
                            int /*<<< orphan*/, struct OutputStream *);
double log10(double);
double pow(double, int);
void PrintFP(double Num, struct OutputStream *Stream) {
  int Exponent = 0;
  int MaxDecimal;
  if (Num < 0) {
    PrintCh('-', Stream);
    Num = -Num;
  }
  if (Num >= 1e7)
    Exponent = log10(Num);
  else if (Num <= 1e-7 && Num != 0.0)
    Exponent = log10(Num) - 0.999999999;
  Num /= pow(10.0, Exponent);
  PrintInt((long)Num, 0, 0, 0, Stream);
  PrintCh('.', Stream);
  Num = (Num - (long)Num) * 10;
  if ((((Num) < 0) ? (-(Num)) : (Num)) >= 1e-7) {
    for (MaxDecimal = 6;
         MaxDecimal > 0 && (((Num) < 0) ? (-(Num)) : (Num)) >= 1e-7;
         Num = (Num - (long)(Num + 1e-7)) * 10, MaxDecimal--)
      PrintCh('0' + (long)(Num + 1e-7), Stream);
  } else
    PrintCh('0', Stream);
  if (Exponent != 0) {
    PrintCh('e', Stream);
    PrintInt(Exponent, 0, 0, 0, Stream);
  }
}


x86 assembly (clang, -O0):
<PrintFP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    1195 <PrintFP+0x55>
mov    -0x10(%rbp),%rsi
mov    $0x2d,%edi
call   1030 <PrintCh@plt>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe5e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11c2 <PrintFP+0x82>
movsd  -0x8(%rbp),%xmm0
call   1060 <log10@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
jmp    1214 <PrintFP+0xd4>
movsd  0xe3e(%rip),%xmm0
ucomisd -0x8(%rbp),%xmm0
jb     120f <PrintFP+0xcf>
movsd  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11f2 <PrintFP+0xb2>
jp     11f2 <PrintFP+0xb2>
jmp    120f <PrintFP+0xcf>
movsd  -0x8(%rbp),%xmm0
call   1060 <log10@plt>
movsd  0xe0c(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
jmp    1214 <PrintFP+0xd4>
mov    -0x14(%rbp),%edi
movsd  0xdf9(%rip),%xmm0
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x8(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
cvttsd2si -0x8(%rbp),%rax
mov    %eax,%edi
mov    -0x10(%rbp),%r8
xor    %ecx,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <PrintInt@plt>
mov    -0x10(%rbp),%rsi
mov    $0x2e,%edi
call   1030 <PrintCh@plt>
movsd  -0x8(%rbp),%xmm0
cvttsd2si -0x8(%rbp),%rax
cvtsi2sd %rax,%xmm1
subsd  %xmm1,%xmm0
movsd  0xda2(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    12b3 <PrintFP+0x173>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    12bd <PrintFP+0x17d>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xd3e(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13b5 <PrintFP+0x275>
movl   $0x6,-0x18(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x21(%rbp)
jle    133f <PrintFP+0x1ff>
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    131e <PrintFP+0x1de>
movsd  -0x8(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x30(%rbp)
jmp    1328 <PrintFP+0x1e8>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xcd3(%rip),%xmm1
ucomisd %xmm1,%xmm0
setae  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    134f <PrintFP+0x20f>
jmp    13b0 <PrintFP+0x270>
movsd  0xcb1(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%rax
add    $0x30,%rax
mov    -0x10(%rbp),%rsi
movsbl %al,%edi
call   1030 <PrintCh@plt>
movsd  -0x8(%rbp),%xmm0
movsd  0xc8a(%rip),%xmm1
addsd  -0x8(%rbp),%xmm1
cvttsd2si %xmm1,%rax
cvtsi2sd %rax,%xmm1
subsd  %xmm1,%xmm0
movsd  0xc7f(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x8(%rbp)
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    12db <PrintFP+0x19b>
jmp    13c3 <PrintFP+0x283>
mov    -0x10(%rbp),%rsi
mov    $0x30,%edi
call   1030 <PrintCh@plt>
cmpl   $0x0,-0x14(%rbp)
je     13ed <PrintFP+0x2ad>
mov    -0x10(%rbp),%rsi
mov    $0x65,%edi
call   1030 <PrintCh@plt>
mov    -0x14(%rbp),%edi
mov    -0x10(%rbp),%r8
xor    %ecx,%ecx
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <PrintInt@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<PrintFP>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%rbx
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
jbe    1174 <PrintFP+0x34>
mov    $0x2d,%edi
mov    %rbx,%rsi
movapd %xmm0,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm0
xorpd  0xe8c(%rip),%xmm0
ucomisd 0xe94(%rip),%xmm0
movapd %xmm0,(%rsp)
jae    11b4 <PrintFP+0x74>
xor    %r14d,%r14d
movsd  0xe8a(%rip),%xmm1
ucomisd %xmm0,%xmm1
jb     11be <PrintFP+0x7e>
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11a0 <PrintFP+0x60>
jnp    11be <PrintFP+0x7e>
movapd (%rsp),%xmm0
call   1060 <log10@plt>
addsd  0xe6e(%rip),%xmm0
jmp    11b9 <PrintFP+0x79>
call   1060 <log10@plt>
cvttsd2si %xmm0,%r14d
movsd  0xe62(%rip),%xmm0
mov    %r14d,%edi
call   1050 <pow@plt>
movapd (%rsp),%xmm1
divsd  %xmm0,%xmm1
movapd %xmm1,(%rsp)
cvttsd2si %xmm1,%rbp
mov    %ebp,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %rbx,%r8
call   1040 <PrintInt@plt>
mov    $0x2e,%edi
mov    %rbx,%rsi
call   1030 <PrintCh@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
movapd (%rsp),%xmm3
subsd  %xmm0,%xmm3
mulsd  0xe11(%rip),%xmm3
movapd 0xde1(%rip),%xmm0
xorpd  %xmm3,%xmm0
xorpd  %xmm2,%xmm2
movapd %xmm3,%xmm1
cmpltsd %xmm2,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm3,%xmm1
orpd   %xmm0,%xmm1
mov    $0x30,%al
ucomisd 0xdd2(%rip),%xmm1
jae    1258 <PrintFP+0x118>
movsbl %al,%edi
mov    %rbx,%rsi
call   1030 <PrintCh@plt>
jmp    1490 <PrintFP+0x350>
movapd %xmm3,%xmm0
addsd  0xdb4(%rip),%xmm0
cvttsd2si %xmm0,%rbp
lea    0x30(%rbp),%eax
movsbl %al,%edi
mov    %rbx,%rsi
movapd %xmm3,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xd93(%rip),%xmm2
movapd 0xd63(%rip),%xmm0
xorpd  %xmm2,%xmm0
movapd %xmm2,%xmm1
cmpltsd 0xd82(%rip),%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
ucomisd 0xd56(%rip),%xmm1
jb     1490 <PrintFP+0x350>
movapd %xmm2,%xmm0
movsd  0xd44(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rbp
lea    0x30(%rbp),%eax
movsbl %al,%edi
mov    %rbx,%rsi
movapd %xmm2,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xd1f(%rip),%xmm2
movapd 0xcef(%rip),%xmm0
xorpd  %xmm2,%xmm0
xorpd  %xmm3,%xmm3
movapd %xmm2,%xmm1
cmpltsd %xmm3,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
ucomisd 0xce2(%rip),%xmm1
jb     1490 <PrintFP+0x350>
movapd %xmm2,%xmm0
movsd  0xcd0(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rbp
lea    0x30(%rbp),%eax
movsbl %al,%edi
mov    %rbx,%rsi
movapd %xmm2,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xcab(%rip),%xmm2
movapd 0xc7b(%rip),%xmm0
xorpd  %xmm2,%xmm0
movapd %xmm2,%xmm1
cmpltsd 0xc9a(%rip),%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
ucomisd 0xc6e(%rip),%xmm1
jb     1490 <PrintFP+0x350>
movapd %xmm2,%xmm0
movsd  0xc5c(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rbp
lea    0x30(%rbp),%eax
movsbl %al,%edi
mov    %rbx,%rsi
movapd %xmm2,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xc37(%rip),%xmm2
movapd 0xc07(%rip),%xmm0
xorpd  %xmm2,%xmm0
xorpd  %xmm3,%xmm3
movapd %xmm2,%xmm1
cmpltsd %xmm3,%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
ucomisd 0xbfa(%rip),%xmm1
jb     1490 <PrintFP+0x350>
movapd %xmm2,%xmm0
movsd  0xbec(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rbp
lea    0x30(%rbp),%eax
movsbl %al,%edi
mov    %rbx,%rsi
movapd %xmm2,(%rsp)
call   1030 <PrintCh@plt>
movapd (%rsp),%xmm2
xorps  %xmm0,%xmm0
cvtsi2sd %rbp,%xmm0
subsd  %xmm0,%xmm2
mulsd  0xbc7(%rip),%xmm2
movapd 0xb97(%rip),%xmm0
xorpd  %xmm2,%xmm0
movapd %xmm2,%xmm1
cmpltsd 0xbb6(%rip),%xmm1
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
ucomisd 0xb8a(%rip),%xmm1
jae    14c4 <PrintFP+0x384>
test   %r14d,%r14d
je     14bb <PrintFP+0x37b>
mov    $0x65,%edi
mov    %rbx,%rsi
call   1030 <PrintCh@plt>
mov    %r14d,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %ecx,%ecx
mov    %rbx,%r8
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
jmp    1040 <PrintInt@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
addsd  0xb4c(%rip),%xmm2
cvttsd2si %xmm2,%rax
add    $0x30,%al
jmp    1248 <PrintFP+0x108>

LLVM IR (-O0):
%struct.OutputStream = type { i32 }
define void @PrintFP(double %0, %struct.OutputStream* %1) {
%3 = alloca double
%4 = alloca %struct.OutputStream*
%5 = alloca i32
%6 = alloca i32
store double %0, double* %3
store %struct.OutputStream* %1, %struct.OutputStream** %4
store i32 0, i32* %5
%7 = load double, double* %3
%8 = fcmp olt double %7, 0.000000e+00
br i1 %8, label %9, label %14
9: ; preds = %2
%10 = load %struct.OutputStream*, %struct.OutputStream** %4
%11 = call i32 @PrintCh(i8 signext 45, %struct.OutputStream* %10)
%12 = load double, double* %3
%13 = fneg double %12
store double %13, double* %3
br label %14
14: ; preds = %9, %2
%15 = load double, double* %3
%16 = fcmp oge double %15, 1.000000e+07
br i1 %16, label %17, label %21
17: ; preds = %14
%18 = load double, double* %3
%19 = call double @log10(double %18)
%20 = fptosi double %19 to i32
store i32 %20, i32* %5
br label %33
21: ; preds = %14
%22 = load double, double* %3
%23 = fcmp ole double %22, 0x3E7AD7F29ABCAF48
br i1 %23, label %24, label %32
24: ; preds = %21
%25 = load double, double* %3
%26 = fcmp une double %25, 0.000000e+00
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = load double, double* %3
%29 = call double @log10(double %28)
%30 = fsub double %29, 0x3FEFFFFFFF768FA1
%31 = fptosi double %30 to i32
store i32 %31, i32* %5
br label %32
32: ; preds = %27, %24, %21
br label %33
33: ; preds = %32, %17
%34 = load i32, i32* %5
%35 = call double @pow(double 1.000000e+01, i32 %34)
%36 = load double, double* %3
%37 = fdiv double %36, %35
store double %37, double* %3
%38 = load double, double* %3
%39 = fptosi double %38 to i64
%40 = trunc i64 %39 to i32
%41 = load %struct.OutputStream*, %struct.OutputStream** %4
%42 = call i32 @PrintInt(i32 %40, i32 0, i32 0, i32 0, %struct.OutputStream* %41)
%43 = load %struct.OutputStream*, %struct.OutputStream** %4
%44 = call i32 @PrintCh(i8 signext 46, %struct.OutputStream* %43)
%45 = load double, double* %3
%46 = load double, double* %3
%47 = fptosi double %46 to i64
%48 = sitofp i64 %47 to double
%49 = fsub double %45, %48
%50 = fmul double %49, 1.000000e+01
store double %50, double* %3
%51 = load double, double* %3
%52 = fcmp olt double %51, 0.000000e+00
br i1 %52, label %53, label %56
53: ; preds = %33
%54 = load double, double* %3
%55 = fneg double %54
br label %58
56: ; preds = %33
%57 = load double, double* %3
br label %58
58: ; preds = %56, %53
%59 = phi double [ %55, %53 ], [ %57, %56 ]
%60 = fcmp oge double %59, 0x3E7AD7F29ABCAF48
br i1 %60, label %61, label %97
61: ; preds = %58
store i32 6, i32* %6
br label %62
62: ; preds = %86, %61
%63 = load i32, i32* %6
%64 = icmp sgt i32 %63, 0
br i1 %64, label %65, label %76
65: ; preds = %62
%66 = load double, double* %3
%67 = fcmp olt double %66, 0.000000e+00
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = load double, double* %3
%70 = fneg double %69
br label %73
71: ; preds = %65
%72 = load double, double* %3
br label %73
73: ; preds = %71, %68
%74 = phi double [ %70, %68 ], [ %72, %71 ]
%75 = fcmp oge double %74, 0x3E7AD7F29ABCAF48
br label %76
76: ; preds = %73, %62
%77 = phi i1 [ false, %62 ], [ %75, %73 ]
br i1 %77, label %78, label %96
78: ; preds = %76
%79 = load double, double* %3
%80 = fadd double %79, 0x3E7AD7F29ABCAF48
%81 = fptosi double %80 to i64
%82 = add nsw i64 48, %81
%83 = trunc i64 %82 to i8
%84 = load %struct.OutputStream*, %struct.OutputStream** %4
%85 = call i32 @PrintCh(i8 signext %83, %struct.OutputStream* %84)
br label %86
86: ; preds = %78
%87 = load double, double* %3
%88 = load double, double* %3
%89 = fadd double %88, 0x3E7AD7F29ABCAF48
%90 = fptosi double %89 to i64
%91 = sitofp i64 %90 to double
%92 = fsub double %87, %91
%93 = fmul double %92, 1.000000e+01
store double %93, double* %3
%94 = load i32, i32* %6
%95 = add nsw i32 %94, -1
store i32 %95, i32* %6
br label %62
96: ; preds = %76
br label %100
97: ; preds = %58
%98 = load %struct.OutputStream*, %struct.OutputStream** %4
%99 = call i32 @PrintCh(i8 signext 48, %struct.OutputStream* %98)
br label %100
100: ; preds = %97, %96
%101 = load i32, i32* %5
%102 = icmp ne i32 %101, 0
br i1 %102, label %103, label %109
103: ; preds = %100
%104 = load %struct.OutputStream*, %struct.OutputStream** %4
%105 = call i32 @PrintCh(i8 signext 101, %struct.OutputStream* %104)
%106 = load i32, i32* %5
%107 = load %struct.OutputStream*, %struct.OutputStream** %4
%108 = call i32 @PrintInt(i32 %106, i32 0, i32 0, i32 0, %struct.OutputStream* %107)
br label %109
109: ; preds = %103, %100
ret void
}

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