#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*/ exit(int /*<<< orphan*/);
double fabs(double);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
scalar_t__ isalpha(char);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sscanf(char *, char *, ...);
int /*<<< orphan*/ stdin;
int strlen(char *);
main() {
  double num;
  char line[128], label[128];
  unsigned char byte[5];
  int expo, sign, i;
  unsigned long mant;
  label[0] = 0;
  printf("* These are the floating point constants.\n");
  printf("* They are generated by the program makeflot.c\n");
  while (fgets(line, 128, stdin)) {
    line[strlen(line) - 1] = 0;
    if (!line[0])
      continue;
    if (line[0] == '*') {
      printf("%s\n", line);
      continue;
    }
    if (isalpha(line[0])) {
      sscanf(line, "%s", label);
    } else {
      sscanf(line, "%lf", &num);
      if (num == 0) {
        sign = 0;
        expo = 0;
        mant = 0;
      } else {
        sign = 0x80 * (num < 0);
        num = fabs(num);
        expo = 0x9f;
        while (num < 2147483648.0) {
          num = num * 2;
          expo -= 1;
        }
        while (num >= 4294967296.0) {
          num = num / 2;
          expo += 1;
        }
        mant = num + 0.5;
      }
      byte[0] = expo;
      byte[1] = ((mant >> 24) & 0x7f) + sign;
      byte[2] = ((mant >> 16) & 0xff);
      byte[3] = ((mant >> 8) & 0xff);
      byte[4] = mant & 0xff;
      printf("%-16s fcb $%02x,$%02x,$%02x,$%02x,$%02x ;%s\n", label, byte[0],
             byte[1], byte[2], byte[3], byte[4], line);
      label[0] = 0;
    }
  }
  printf("* End of floating point constants.\n");
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
movb   $0x0,-0x110(%rbp)
lea    0xeb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
mov    0x2e45(%rip),%rax
mov    (%rax),%edx
mov    $0x80,%esi
call   1050 <fgets@plt>
cmp    $0x0,%rax
je     1452 <main+0x2f2>
lea    -0x90(%rbp),%rdi
call   1030 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0x90(%rbp,%rax,1)
cmpb   $0x0,-0x90(%rbp)
jne    11e4 <main+0x84>
jmp    1195 <main+0x35>
movsbl -0x90(%rbp),%eax
cmp    $0x2a,%eax
jne    120e <main+0xae>
lea    -0x90(%rbp),%rsi
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1195 <main+0x35>
movsbl -0x90(%rbp),%edi
call   1070 <isalpha@plt>
cmp    $0x0,%rax
je     1245 <main+0xe5>
lea    -0x90(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1060 <sscanf@plt>
jmp    144d <main+0x2ed>
lea    -0x90(%rbp),%rdi
lea    0xe43(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1060 <sscanf@plt>
movsd  -0x10(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    129a <main+0x13a>
jp     129a <main+0x13a>
movl   $0x0,-0x120(%rbp)
movl   $0x0,-0x11c(%rbp)
movq   $0x0,-0x130(%rbp)
jmp    138f <main+0x22f>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
seta   %al
and    $0x1,%al
movzbl %al,%eax
shl    $0x7,%eax
mov    %eax,-0x120(%rbp)
movsd  -0x10(%rbp),%xmm0
movaps 0xd41(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movl   $0x9f,-0x11c(%rbp)
movsd  0xd36(%rip),%xmm0
ucomisd -0x10(%rbp),%xmm0
jbe    130b <main+0x1ab>
movsd  0xd43(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x11c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    12d2 <main+0x172>
jmp    1310 <main+0x1b0>
movsd  -0x10(%rbp),%xmm0
movsd  0xcfb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1351 <main+0x1f1>
movsd  -0x10(%rbp),%xmm0
movsd  0xcfc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x11c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    1310 <main+0x1b0>
movsd  -0x10(%rbp),%xmm0
movsd  0xcc2(%rip),%xmm1
addsd  %xmm1,%xmm0
movaps %xmm0,%xmm1
cvttsd2si %xmm1,%rax
mov    %rax,%rdx
sar    $0x3f,%rdx
movsd  0xcaf(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rcx
and    %rdx,%rcx
or     %rcx,%rax
mov    %rax,-0x130(%rbp)
mov    -0x11c(%rbp),%eax
mov    %al,-0x115(%rbp)
mov    -0x130(%rbp),%rax
shr    $0x18,%rax
and    $0x7f,%rax
movslq -0x120(%rbp),%rcx
add    %rcx,%rax
mov    %al,-0x114(%rbp)
mov    -0x130(%rbp),%rax
shr    $0x10,%rax
and    $0xff,%rax
mov    %al,-0x113(%rbp)
mov    -0x130(%rbp),%rax
shr    $0x8,%rax
and    $0xff,%rax
mov    %al,-0x112(%rbp)
mov    -0x130(%rbp),%rax
and    $0xff,%rax
mov    %al,-0x111(%rbp)
lea    -0x110(%rbp),%rsi
movzbl -0x115(%rbp),%edx
movzbl -0x114(%rbp),%ecx
movzbl -0x113(%rbp),%r8d
ff
movzbl -0x112(%rbp),%r9d
ff
movzbl -0x111(%rbp),%r10d
ff
lea    -0x90(%rbp),%rax
lea    0xc64(%rip),%rdi
mov    %r10d,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
movb   $0x0,-0x110(%rbp)
jmp    1195 <main+0x35>
lea    0xc6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
movb   $0x0,0x10(%rsp)
lea    0xed7(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e43(%rip),%r14
mov    (%r14),%edx
lea    0x90(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x80,%esi
call   1060 <fgets@plt>
test   %rax,%rax
jne    11d5 <main+0x65>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1090 <exit@plt>
lea    0x10(%rsp),%r13
lea    0xe4f(%rip),%r12
jmp    120d <main+0x9d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    (%r14),%edx
mov    %rbx,%rdi
mov    $0x80,%esi
call   1060 <fgets@plt>
test   %rax,%rax
je     11c2 <main+0x52>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    0x90(%rsp),%al
test   %al,%al
je     11f8 <main+0x88>
cmp    $0x2a,%al
je     11f0 <main+0x80>
movsbl %al,%edi
call   1080 <isalpha@plt>
test   %rax,%rax
je     124a <main+0xda>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
jmp    11f8 <main+0x88>
xor    %r15d,%r15d
mov    %rbx,%rdi
lea    0xddc(%rip),%rsi
lea    0x8(%rsp),%rdx
xor    %eax,%eax
call   1070 <sscanf@plt>
movsd  0x8(%rsp),%xmm0
xorpd  %xmm1,%xmm1
xor    %ecx,%ecx
ucomisd %xmm1,%xmm0
jne    127e <main+0x10e>
jp     127e <main+0x10e>
xor    %eax,%eax
jmp    131d <main+0x1ad>
ucomisd %xmm0,%xmm1
seta   %al
andpd  0xd73(%rip),%xmm0
movlpd %xmm0,0x8(%rsp)
mov    $0x9f,%r15d
movsd  0xd6f(%rip),%xmm1
ucomisd %xmm0,%xmm1
jbe    12c4 <main+0x154>
mov    $0x9f,%r15d
nopl   (%rax)
addsd  %xmm0,%xmm0
add    $0xffffffff,%r15d
ucomisd %xmm0,%xmm1
ja     12b0 <main+0x140>
movsd  %xmm0,0x8(%rsp)
movsd  0xd4c(%rip),%xmm1
movsd  0xd4c(%rip),%xmm2
ucomisd %xmm1,%xmm0
jb     12f4 <main+0x184>
nopw   0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm0
add    $0x1,%r15d
ucomisd %xmm1,%xmm0
jae    12e0 <main+0x170>
movsd  %xmm0,0x8(%rsp)
mov    %al,%cl
shl    $0x7,%rcx
addsd  %xmm2,%xmm0
cvttsd2si %xmm0,%rdx
mov    %rdx,%rsi
sar    $0x3f,%rsi
subsd  0xd16(%rip),%xmm0
cvttsd2si %xmm0,%rax
and    %rsi,%rax
or     %rdx,%rax
mov    %eax,%edx
shr    $0x18,%edx
and    $0x7f,%edx
or     %edx,%ecx
mov    %eax,%esi
shr    $0x10,%esi
movzbl %r15b,%edx
movzbl %sil,%r8d
movzbl %ah,%ebp
movzbl %al,%r10d
lea    0xcf5(%rip),%rdi
mov    %r13,%rsi
mov    %ebp,%r9d
xor    %eax,%eax
push   %rbx
push   %r10
call   1050 <printf@plt>
add    $0x10,%rsp
movb   $0x0,0x10(%rsp)
jmp    11f8 <main+0x88>

LLVM IR (-O0):
@.str = [43 x i8] c"* These are the floating point constants.\0A\00"
@.str.1 = [48 x i8] c"* They are generated by the program makeflot.c\0A\00"
@stdin = global i32 0
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [45 x i8] c"%-16s fcb $%02x,$%02x,$%02x,$%02x,$%02x ;%s\0A\00"
@.str.6 = [36 x i8] c"* End of floating point constants.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca [128 x i8]
%4 = alloca [128 x i8]
%5 = alloca [5 x i8]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
store i32 0, i32* %1
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
store i8 0, i8* %10
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
br label %13
13: ; preds = %124, %33, %27, %0
%14 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%15 = load i32, i32* @stdin
%16 = call i64 @fgets(i8* %14, i32 128, i32 %15)
%17 = icmp ne i64 %16, 0
br i1 %17, label %18, label %125
18: ; preds = %13
%19 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%20 = call i32 @strlen(i8* %19)
%21 = sub nsw i32 %20, 1
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 %22
store i8 0, i8* %23
%24 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%25 = load i8, i8* %24
%26 = icmp ne i8 %25, 0
br i1 %26, label %28, label %27
27: ; preds = %18
br label %13
28: ; preds = %18
%29 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 42
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* %34)
br label %13
36: ; preds = %28
%37 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%38 = load i8, i8* %37
%39 = call i64 @isalpha(i8 signext %38)
%40 = icmp ne i64 %39, 0
br i1 %40, label %41, label %45
41: ; preds = %36
%42 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%43 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%44 = call i32 (i8*, i8*, ...) @sscanf(i8* %42, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %43)
br label %124
45: ; preds = %36
%46 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%47 = call i32 (i8*, i8*, ...) @sscanf(i8* %46, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %2)
%48 = load double, double* %2
%49 = fcmp oeq double %48, 0.000000e+00
br i1 %49, label %50, label %51
50: ; preds = %45
store i32 0, i32* %7
store i32 0, i32* %6
store i64 0, i64* %9
br label %79
51: ; preds = %45
%52 = load double, double* %2
%53 = fcmp olt double %52, 0.000000e+00
%54 = zext i1 %53 to i32
%55 = mul nsw i32 128, %54
store i32 %55, i32* %7
%56 = load double, double* %2
%57 = call double @llvm.fabs.f64(double %56)
store double %57, double* %2
store i32 159, i32* %6
br label %58
58: ; preds = %61, %51
%59 = load double, double* %2
%60 = fcmp olt double %59, 0x41E0000000000000
br i1 %60, label %61, label %66
61: ; preds = %58
%62 = load double, double* %2
%63 = fmul double %62, 2.000000e+00
store double %63, double* %2
%64 = load i32, i32* %6
%65 = sub nsw i32 %64, 1
store i32 %65, i32* %6
br label %58
66: ; preds = %58
br label %67
67: ; preds = %70, %66
%68 = load double, double* %2
%69 = fcmp oge double %68, 0x41F0000000000000
br i1 %69, label %70, label %75
70: ; preds = %67
%71 = load double, double* %2
%72 = fdiv double %71, 2.000000e+00
store double %72, double* %2
%73 = load i32, i32* %6
%74 = add nsw i32 %73, 1
store i32 %74, i32* %6
br label %67
75: ; preds = %67
%76 = load double, double* %2
%77 = fadd double %76, 5.000000e-01
%78 = fptoui double %77 to i64
store i64 %78, i64* %9
br label %79
79: ; preds = %75, %50
%80 = load i32, i32* %6
%81 = trunc i32 %80 to i8
%82 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
store i8 %81, i8* %82
%83 = load i64, i64* %9
%84 = lshr i64 %83, 24
%85 = and i64 %84, 127
%86 = load i32, i32* %7
%87 = sext i32 %86 to i64
%88 = add i64 %85, %87
%89 = trunc i64 %88 to i8
%90 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 1
store i8 %89, i8* %90
%91 = load i64, i64* %9
%92 = lshr i64 %91, 16
%93 = and i64 %92, 255
%94 = trunc i64 %93 to i8
%95 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 2
store i8 %94, i8* %95
%96 = load i64, i64* %9
%97 = lshr i64 %96, 8
%98 = and i64 %97, 255
%99 = trunc i64 %98 to i8
%100 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 3
store i8 %99, i8* %100
%101 = load i64, i64* %9
%102 = and i64 %101, 255
%103 = trunc i64 %102 to i8
%104 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 4
store i8 %103, i8* %104
%105 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
%106 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 0
%107 = load i8, i8* %106
%108 = zext i8 %107 to i32
%109 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 1
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 2
%113 = load i8, i8* %112
%114 = zext i8 %113 to i32
%115 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 3
%116 = load i8, i8* %115
%117 = zext i8 %116 to i32
%118 = getelementptr inbounds [5 x i8], [5 x i8]* %5, i64 0, i64 4
%119 = load i8, i8* %118
%120 = zext i8 %119 to i32
%121 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0), i8* %105, i32 %108, i32 %111, i32 %114, i32 %117, i32 %120, i8* %121)
%123 = getelementptr inbounds [128 x i8], [128 x i8]* %4, i64 0, i64 0
store i8 0, i8* %123
br label %124
124: ; preds = %79, %41
br label %13
125: ; preds = %13
%126 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0))
%127 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stdin = global i32 0
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [4 x i8] c"%lf\00"
@.str.5 = [45 x i8] c"%-16s fcb $%02x,$%02x,$%02x,$%02x,$%02x ;%s\0A\00"
@str = [42 x i8] c"* These are the floating point constants.\00"
@str.7 = [47 x i8] c"* They are generated by the program makeflot.c\00"
@str.8 = [35 x i8] c"* End of floating point constants.\00"
define i32 @main() {
%1 = alloca double
%2 = alloca [128 x i8]
%3 = alloca [128 x i8]
%4 = bitcast double* %1 to i8*
%5 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [128 x i8], [128 x i8]* %3, i64 0, i64 0
store i8 0, i8* %6
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.7, i64 0, i64 0))
%9 = load i32, i32* @stdin
%10 = call i64 @fgets(i8* %5, i32 128, i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %77, label %12
12: ; preds = %0, %20
%13 = call i32 @strlen(i8* %5)
%14 = add nsw i32 %13, -1
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [128 x i8], [128 x i8]* %2, i64 0, i64 %15
store i8 0, i8* %16
%17 = load i8, i8* %5
switch i8 %17, label %24 [
i8 0, label %20
i8 42, label %18
]
18: ; preds = %12
%19 = call i32 @puts(i8* %5)
br label %20
20: ; preds = %27, %61, %18, %12
%21 = load i32, i32* @stdin
%22 = call i64 @fgets(i8* %5, i32 128, i32 %21)
%23 = icmp eq i64 %22, 0
br i1 %23, label %77, label %12
24: ; preds = %12
%25 = call i64 @isalpha(i8 signext %17)
%26 = icmp eq i64 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %24
%28 = call i32 (i8*, i8*, ...) @sscanf(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %6)
br label %20
29: ; preds = %24
%30 = call i32 (i8*, i8*, ...) @sscanf(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %1)
%31 = load double, double* %1
%32 = fcmp oeq double %31, 0.000000e+00
br i1 %32, label %61, label %33
33: ; preds = %29
%34 = fcmp olt double %31, 0.000000e+00
%35 = select i1 %34, i64 128, i64 0
%36 = call double @llvm.fabs.f64(double %31)
store double %36, double* %1
%37 = fcmp olt double %36, 0x41E0000000000000
br i1 %37, label %38, label %45
38: ; preds = %33, %38
%39 = phi i32 [ %42, %38 ], [ 159, %33 ]
%40 = phi double [ %41, %38 ], [ %36, %33 ]
%41 = fmul double %40, 2.000000e+00
%42 = add nsw i32 %39, -1
%43 = fcmp olt double %41, 0x41E0000000000000
br i1 %43, label %38, label %44
44: ; preds = %38
store double %41, double* %1
br label %45
45: ; preds = %44, %33
%46 = phi double [ %41, %44 ], [ %36, %33 ]
%47 = phi i32 [ %42, %44 ], [ 159, %33 ]
%48 = fcmp ult double %46, 0x41F0000000000000
br i1 %48, label %56, label %49
49: ; preds = %45, %49
%50 = phi i32 [ %53, %49 ], [ %47, %45 ]
%51 = phi double [ %52, %49 ], [ %46, %45 ]
%52 = fmul double %51, 5.000000e-01
%53 = add nsw i32 %50, 1
%54 = fcmp ult double %52, 0x41F0000000000000
br i1 %54, label %55, label %49
55: ; preds = %49
store double %52, double* %1
br label %56
56: ; preds = %55, %45
%57 = phi double [ %52, %55 ], [ %46, %45 ]
%58 = phi i32 [ %53, %55 ], [ %47, %45 ]
%59 = fadd double %57, 5.000000e-01
%60 = fptoui double %59 to i64
br label %61
61: ; preds = %29, %56
%62 = phi i64 [ %35, %56 ], [ 0, %29 ]
%63 = phi i32 [ %58, %56 ], [ 0, %29 ]
%64 = phi i64 [ %60, %56 ], [ 0, %29 ]
%65 = lshr i64 %64, 24
%66 = and i64 %65, 127
%67 = or i64 %66, %62
%68 = trunc i64 %67 to i32
%69 = trunc i64 %64 to i32
%70 = lshr i32 %69, 16
%71 = lshr i32 %69, 8
%72 = and i32 %63, 255
%73 = and i32 %70, 255
%74 = and i32 %71, 255
%75 = and i32 %69, 255
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0), i8* %6, i32 %72, i32 %68, i32 %73, i32 %74, i32 %75, i8* %5)
store i8 0, i8* %6
br label %20
77: ; preds = %20, %0
%78 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.8, i64 0, i64 0))
%79 = call i32 @exit(i32 0)
unreachable
}