#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 */
typedef int /*<<< orphan*/ buff;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ assert(int /*<<< orphan*/ *);
double atof(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strlen(char *);
int main(const int argc, const char **argv) {
  FILE *ifile = fopen(argv[1], "rb");
  char buff[90];
  char command[200];
  int i;
  assert(ifile);
  for (i = 0; i < 10; i++)
    if (fgets(buff, sizeof(buff), ifile)) {
      const double ival = atof(buff);
      switch (i) {
      case 2: {
        const int day = (int)ival;
        sprintf(buff, "%04d-%02d-%02d", day / 10000, (day / 100) % 100,
                day % 100);
        printf("Date : %s\n", buff);
        sprintf(command, "find_orb -oSpektrRG -v%sT", buff);
      } break;
      case 3: {
        const int millisec = (int)(ival * 1000.);
        sprintf(buff, "%02d:%02d:%02d.%03d", millisec / 10000000,
                (millisec / 100000) % 100, (millisec / 1000) % 100,
                millisec % 100);
        printf("Time : %s\n", buff);
        strcat(command, buff);
        strcat(command, "-3h");
      } break;
      case 4:
      case 5:
      case 6:
        printf("  Posn %f km\n", ival * 1000.);
        sprintf(command + strlen(command), ",%.2f", ival * 1000.);
        break;
      case 7:
      case 8:
      case 9:
        printf("  Vel  %f km/s\n", ival);
        sprintf(command + strlen(command), ",%.7f", ival);
        break;
        break;
      }
    }
  fclose(ifile);
  printf("%s,eq,geo,km,s\n", command);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x190,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe70(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1080 <assert@plt>
movl   $0x0,-0x154(%rbp)
cmpl   $0xa,-0x154(%rbp)
jge    146c <main+0x2dc>
lea    -0x80(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    $0x5a,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     1453 <main+0x2c3>
lea    -0x80(%rbp),%rdi
call   1030 <atof@plt>
movsd  %xmm0,-0x160(%rbp)
ff
mov    -0x154(%rbp),%eax
add    $0xfffffffe,%eax
mov    %eax,%ecx
mov    %rcx,-0x170(%rbp)
sub    $0x7,%eax
ja     144e <main+0x2be>
mov    -0x170(%rbp),%rax
lea    0xdd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
cvttsd2si -0x160(%rbp),%eax
ff
mov    %eax,-0x164(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x164(%rbp),%eax
mov    $0x2710,%ecx
cltd
idiv   %ecx
mov    %eax,-0x174(%rbp)
mov    -0x164(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0x164(%rbp),%eax
mov    $0x64,%esi
cltd
idiv   %esi
mov    %edx,%r8d
mov    -0x174(%rbp),%edx
lea    0xd8f(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x80(%rbp),%rsi
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x150(%rbp),%rdi
lea    -0x80(%rbp),%rdx
lea    0xd7e(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
jmp    144e <main+0x2be>
movsd  0xd25(%rip),%xmm0
mulsd  -0x160(%rbp),%xmm0
ff
cvttsd2si %xmm0,%eax
mov    %eax,-0x168(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x168(%rbp),%eax
mov    $0x989680,%ecx
cltd
idiv   %ecx
mov    %eax,-0x178(%rbp)
mov    -0x168(%rbp),%eax
mov    $0x186a0,%ecx
cltd
idiv   %ecx
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
mov    -0x168(%rbp),%eax
mov    $0x3e8,%esi
cltd
idiv   %esi
mov    $0x64,%esi
cltd
idiv   %esi
mov    %edx,%r8d
mov    -0x168(%rbp),%eax
mov    $0x64,%esi
cltd
idiv   %esi
mov    %edx,%r9d
mov    -0x178(%rbp),%edx
lea    0xd0b(%rip),%rsi
mov    $0x0,%al
call   10b0 <sprintf@plt>
lea    -0x80(%rbp),%rsi
lea    0xd0d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x150(%rbp),%rdi
lea    -0x80(%rbp),%rsi
call   10a0 <strcat@plt>
lea    -0x150(%rbp),%rdi
lea    0xcf3(%rip),%rsi
call   10a0 <strcat@plt>
jmp    144e <main+0x2be>
movsd  0xc63(%rip),%xmm0
mulsd  -0x160(%rbp),%xmm0
ff
lea    0xcd6(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0x150(%rbp),%rax
mov    %rax,-0x180(%rbp)
lea    -0x150(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x180(%rbp),%rdi
cltq
add    %rax,%rdi
movsd  0xc1f(%rip),%xmm0
mulsd  -0x160(%rbp),%xmm0
ff
lea    0xca0(%rip),%rsi
mov    $0x1,%al
call   10b0 <sprintf@plt>
jmp    144e <main+0x2be>
movsd  -0x160(%rbp),%xmm0
ff
lea    0xc8b(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
lea    -0x150(%rbp),%rax
mov    %rax,-0x188(%rbp)
lea    -0x150(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x188(%rbp),%rdi
cltq
add    %rax,%rdi
movsd  -0x160(%rbp),%xmm0
ff
lea    0xc5f(%rip),%rsi
mov    $0x1,%al
call   10b0 <sprintf@plt>
jmp    1453 <main+0x2c3>
jmp    1458 <main+0x2c8>
mov    -0x154(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x154(%rbp)
jmp    11d4 <main+0x44>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
lea    -0x150(%rbp),%rsi
lea    0xc29(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x190,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x148,%rsp
mov    0x8(%rsi),%rdi
lea    0xe7c(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
call   1080 <assert@plt>
lea    0xe0(%rsp),%r14
lea    0xe3d(%rip),%r12
lea    0x10(%rsp),%rbp
lea    0xecf(%rip),%r15
xor    %r13d,%r13d
jmp    1224 <main+0x94>
nopl   0x0(%rax)
lea    0xeaf(%rip),%rdi
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x10,%rdi
mov    %r15,%rsi
movsd  0x8(%rsp),%xmm0
mov    $0x1,%al
call   10b0 <sprintf@plt>
add    $0x1,%r13d
cmp    $0xa,%r13d
je     13f7 <main+0x267>
mov    %r14,%rdi
mov    $0x5a,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     1216 <main+0x86>
mov    %r14,%rdi
call   1030 <atof@plt>
lea    -0x2(%r13),%eax
cmp    $0x7,%eax
ja     1216 <main+0x86>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
mulsd  0xda5(%rip),%xmm0
lea    0xe20(%rip),%rdi
movsd  %xmm0,0x8(%rsp)
mov    $0x1,%al
call   1060 <printf@plt>
mov    %rbp,%rdi
call   1050 <strlen@plt>
cltq
lea    (%rsp,%rax,1),%rdi
add    $0x10,%rdi
lea    0xe08(%rip),%rsi
jmp    1209 <main+0x79>
cvttsd2si %xmm0,%eax
movslq %eax,%r8
imul   $0x68db8bad,%r8,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x2c,%rdx
add    %eax,%edx
imul   $0x51eb851f,%r8,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x25,%rax
add    %ecx,%eax
movslq %eax,%rcx
imul   $0x51eb851f,%rcx,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
sar    $0x25,%rax
add    %esi,%eax
imul   $0x64,%eax,%eax
imul   $0x64,%ecx,%esi
sub    %eax,%ecx
sub    %esi,%r8d
mov    %r14,%rdi
lea    0xd43(%rip),%rsi
xor    %eax,%eax
call   10b0 <sprintf@plt>
lea    0xd44(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
lea    0xd3b(%rip),%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   10b0 <sprintf@plt>
jmp    1216 <main+0x86>
mulsd  0xcdf(%rip),%xmm0
cvttsd2si %xmm0,%eax
movslq %eax,%r9
imul   $0x6b5fca6b,%r9,%rdx
mov    %rdx,%rax
shr    $0x3f,%rax
sar    $0x36,%rdx
add    %eax,%edx
imul   $0x14f8b589,%r9,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x2d,%rax
add    %ecx,%eax
movswl %ax,%ecx
imul   $0x147b,%ecx,%ecx
mov    %ecx,%esi
shr    $0x1f,%esi
sar    $0x13,%ecx
add    %esi,%ecx
imul   $0x64,%ecx,%ecx
sub    %ecx,%eax
movswl %ax,%ecx
imul   $0x10624dd3,%r9,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
sar    $0x26,%rax
add    %esi,%eax
movslq %eax,%r8
imul   $0x51eb851f,%r8,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
sar    $0x25,%rax
add    %esi,%eax
imul   $0x64,%eax,%eax
sub    %eax,%r8d
imul   $0x51eb851f,%r9,%rax
mov    %rax,%rsi
shr    $0x3f,%rsi
sar    $0x25,%rax
add    %esi,%eax
imul   $0x64,%eax,%eax
sub    %eax,%r9d
mov    %r14,%rdi
lea    0xc9f(%rip),%rsi
xor    %eax,%eax
call   10b0 <sprintf@plt>
lea    0xca5(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   10a0 <strcat@plt>
mov    %rbp,%rdi
lea    0xc91(%rip),%rsi
call   10a0 <strcat@plt>
jmp    1216 <main+0x86>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xca6(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x148,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"rb\00"
@.str.1 = [15 x i8] c"%04d-%02d-%02d\00"
@.str.2 = [11 x i8] c"Date : %s\0A\00"
@.str.3 = [26 x i8] c"find_orb -oSpektrRG -v%sT\00"
@.str.4 = [20 x i8] c"%02d:%02d:%02d.%03d\00"
@.str.5 = [11 x i8] c"Time : %s\0A\00"
@.str.6 = [4 x i8] c"-3h\00"
@.str.7 = [14 x i8] c" Posn %f km\0A\00"
@.str.8 = [6 x i8] c",%.2f\00"
@.str.9 = [16 x i8] c" Vel %f km/s\0A\00"
@.str.10 = [6 x i8] c",%.7f\00"
@.str.11 = [16 x i8] c"%s,eq,geo,km,s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [90 x i8]
%8 = alloca [200 x i8]
%9 = alloca i32
%10 = alloca double
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32* @fopen(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32* %16, i32** %6
%17 = load i32*, i32** %6
%18 = call i32 @assert(i32* %17)
store i32 0, i32* %9
br label %19
19: ; preds = %95, %2
%20 = load i32, i32* %9
%21 = icmp slt i32 %20, 10
br i1 %21, label %22, label %98
22: ; preds = %19
%23 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%24 = load i32*, i32** %6
%25 = call i64 @fgets(i8* %23, i32 90, i32* %24)
%26 = icmp ne i64 %25, 0
br i1 %26, label %27, label %94
27: ; preds = %22
%28 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%29 = call double @atof(i8* %28)
store double %29, double* %10
%30 = load i32, i32* %9
switch i32 %30, label %93 [
i32 2, label %31
i32 3, label %48
i32 4, label %71
i32 5, label %71
i32 6, label %71
i32 7, label %83
i32 8, label %83
i32 9, label %83
]
31: ; preds = %27
%32 = load double, double* %10
%33 = fptosi double %32 to i32
store i32 %33, i32* %11
%34 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%35 = load i32, i32* %11
%36 = sdiv i32 %35, 10000
%37 = load i32, i32* %11
%38 = sdiv i32 %37, 100
%39 = srem i32 %38, 100
%40 = load i32, i32* %11
%41 = srem i32 %40, 100
%42 = call i32 (i8*, i8*, ...) @sprintf(i8* %34, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %36, i32 %39, i32 %41)
%43 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%46 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%47 = call i32 (i8*, i8*, ...) @sprintf(i8* %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %46)
br label %93
48: ; preds = %27
%49 = load double, double* %10
%50 = fmul double %49, 1.000000e+03
%51 = fptosi double %50 to i32
store i32 %51, i32* %12
%52 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%53 = load i32, i32* %12
%54 = sdiv i32 %53, 10000000
%55 = load i32, i32* %12
%56 = sdiv i32 %55, 100000
%57 = srem i32 %56, 100
%58 = load i32, i32* %12
%59 = sdiv i32 %58, 1000
%60 = srem i32 %59, 100
%61 = load i32, i32* %12
%62 = srem i32 %61, 100
%63 = call i32 (i8*, i8*, ...) @sprintf(i8* %52, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %54, i32 %57, i32 %60, i32 %62)
%64 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%67 = getelementptr inbounds [90 x i8], [90 x i8]* %7, i64 0, i64 0
%68 = call i32 @strcat(i8* %66, i8* %67)
%69 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%70 = call i32 @strcat(i8* %69, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %93
71: ; preds = %27, %27, %27
%72 = load double, double* %10
%73 = fmul double %72, 1.000000e+03
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), double %73)
%75 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%76 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%77 = call i32 @strlen(i8* %76)
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i8, i8* %75, i64 %78
%80 = load double, double* %10
%81 = fmul double %80, 1.000000e+03
%82 = call i32 (i8*, i8*, ...) @sprintf(i8* %79, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), double %81)
br label %93
83: ; preds = %27, %27, %27
%84 = load double, double* %10
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), double %84)
%86 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%87 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%88 = call i32 @strlen(i8* %87)
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds i8, i8* %86, i64 %89
%91 = load double, double* %10
%92 = call i32 (i8*, i8*, ...) @sprintf(i8* %90, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %91)
br label %93
93: ; preds = %27, %83, %71, %48, %31
br label %94
94: ; preds = %93, %22
br label %95
95: ; preds = %94
%96 = load i32, i32* %9
%97 = add nsw i32 %96, 1
store i32 %97, i32* %9
br label %19
98: ; preds = %19
%99 = load i32*, i32** %6
%100 = call i32 @fclose(i32* %99)
%101 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %101)
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"rb\00"
@.str.1 = [15 x i8] c"%04d-%02d-%02d\00"
@.str.2 = [11 x i8] c"Date : %s\0A\00"
@.str.3 = [26 x i8] c"find_orb -oSpektrRG -v%sT\00"
@.str.4 = [20 x i8] c"%02d:%02d:%02d.%03d\00"
@.str.5 = [11 x i8] c"Time : %s\0A\00"
@.str.6 = [4 x i8] c"-3h\00"
@.str.7 = [14 x i8] c" Posn %f km\0A\00"
@.str.8 = [6 x i8] c",%.2f\00"
@.str.9 = [16 x i8] c" Vel %f km/s\0A\00"
@.str.10 = [6 x i8] c",%.7f\00"
@.str.11 = [16 x i8] c"%s,eq,geo,km,s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [90 x i8]
%4 = alloca [200 x i8]
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32* @fopen(i8* %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds [90 x i8], [90 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 0
%10 = tail call i32 @assert(i32* %7)
br label %11
11: ; preds = %2, %54
%12 = phi i32 [ 0, %2 ], [ %55, %54 ]
%13 = call i64 @fgets(i8* %8, i32 90, i32* %7)
%14 = icmp eq i64 %13, 0
br i1 %14, label %54, label %15
15: ; preds = %11
%16 = call double @atof(i8* %8)
switch i32 %12, label %54 [
i32 2, label %17
i32 3, label %26
i32 4, label %41
i32 5, label %41
i32 6, label %41
i32 7, label %48
i32 8, label %48
i32 9, label %48
]
17: ; preds = %15
%18 = fptosi double %16 to i32
%19 = sdiv i32 %18, 10000
%20 = sdiv i32 %18, 100
%21 = srem i32 %20, 100
%22 = srem i32 %18, 100
%23 = call i32 (i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %19, i32 %21, i32 %22)
%24 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%25 = call i32 (i8*, i8*, ...) @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %8)
br label %54
26: ; preds = %15
%27 = fmul double %16, 1.000000e+03
%28 = fptosi double %27 to i32
%29 = sdiv i32 %28, 10000000
%30 = sdiv i32 %28, 100000
%31 = trunc i32 %30 to i16
%32 = srem i16 %31, 100
%33 = sext i16 %32 to i32
%34 = sdiv i32 %28, 1000
%35 = srem i32 %34, 100
%36 = srem i32 %28, 100
%37 = call i32 (i8*, i8*, ...) @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %29, i32 %33, i32 %35, i32 %36)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %8)
%39 = call i32 @strcat(i8* %9, i8* %8)
%40 = call i32 @strcat(i8* %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %54
41: ; preds = %15, %15, %15
%42 = fmul double %16, 1.000000e+03
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), double %42)
%44 = call i32 @strlen(i8* %9)
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 %45
%47 = call i32 (i8*, i8*, ...) @sprintf(i8* %46, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), double %42)
br label %54
48: ; preds = %15, %15, %15
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), double %16)
%50 = call i32 @strlen(i8* %9)
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [200 x i8], [200 x i8]* %4, i64 0, i64 %51
%53 = call i32 (i8*, i8*, ...) @sprintf(i8* %52, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), double %16)
br label %54
54: ; preds = %17, %26, %41, %48, %15, %11
%55 = add nuw nsw i32 %12, 1
%56 = icmp eq i32 %55, 10
br i1 %56, label %57, label %11
57: ; preds = %54
%58 = call i32 @fclose(i32* %7)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %9)
ret i32 0
}