#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*/ FILE;

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int fscanf(int /*<<< orphan*/ *, char *, ...);
scalar_t__ malloc(int);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ printUsage(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, char *);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int main(int argc, char **argv) {
  if (argc < 3) {
    printUsage(argv[0]);
    return 1;
  }
  FILE *statusPipe;
  char *command = (char *)malloc(
      (strlen("condor_userlog_job_counter   ") + strlen(argv[1])) *
      sizeof(char));
  char event[256];
  int j, k;
  int tjobs = atoi(argv[2]);
  sprintf(command, "condor_userlog_job_counter %s", argv[1]);
  statusPipe = popen(command, "r");
  if (statusPipe == NULL) {
    fprintf(stderr, "Popen failed!\n");
    return 1;
  }
  while (!feof(statusPipe)) {
    k = fscanf(statusPipe, " Log event: %s", event);
    if (k != 1) {
      k = fscanf(statusPipe, " outcome: %s", event);
      if (k != 1)
        printf("Failed string1: %s\n", event);
      else
        ;
    } else
      ;
    if (strcmp(event, "ULOG_NO_EVENT") != 0) {
      k = fscanf(statusPipe, " Queued Jobs: %d", &j);
      if (k != 1) {
        fscanf(statusPipe, "%s", event);
        printf("Failed string2: %s\n", event);
      } else {
        ;
      }
    } else
      break;
  }
  if (j < 0) {
    printf("Warning: %i more jobs have finished than started! (%.2f%% of total "
           "jobs)\n",
           -j, -100 * ((float)j / tjobs));
  } else {
    printf("%i (%.2f%%) jobs have not finished.\n", j,
           100 * ((float)j / tjobs));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11eb <main+0x3b>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10a0 <printUsage@plt>
movl   $0x1,-0x4(%rbp)
jmp    144f <main+0x29f>
lea    0xe16(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x130(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x130(%rbp),%eax
add    %ecx,%eax
cltq
shl    $0x0,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10c0 <atoi@plt>
mov    %eax,-0x12c(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xddb(%rip),%rsi
call   10d0 <sprintf@plt>
mov    -0x20(%rbp),%rdi
lea    0xde9(%rip),%rsi
call   10b0 <popen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1290 <main+0xe0>
mov    0x2d6a(%rip),%rax
mov    (%rax),%edi
lea    0xdc7(%rip),%rsi
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    144f <main+0x29f>
jmp    1295 <main+0xe5>
mov    -0x18(%rbp),%rdi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12b3 <main+0x103>
jmp    13c4 <main+0x214>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xd90(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    %eax,-0x128(%rbp)
cmpl   $0x1,-0x128(%rbp)
je     132f <main+0x17f>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xd73(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    %eax,-0x128(%rbp)
cmpl   $0x1,-0x128(%rbp)
je     1325 <main+0x175>
lea    -0x120(%rbp),%rsi
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    132a <main+0x17a>
jmp    132a <main+0x17a>
jmp    1334 <main+0x184>
jmp    1334 <main+0x184>
lea    -0x120(%rbp),%rdi
lea    0xd43(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
je     13ba <main+0x20a>
mov    -0x18(%rbp),%rdi
lea    0xd37(%rip),%rsi
lea    -0x124(%rbp),%rdx
mov    $0x0,%al
call   1050 <fscanf@plt>
mov    %eax,-0x128(%rbp)
cmpl   $0x1,-0x128(%rbp)
je     13b0 <main+0x200>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xcdf(%rip),%rsi
mov    $0x0,%al
call   1050 <fscanf@plt>
lea    -0x120(%rbp),%rsi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13b5 <main+0x205>
jmp    13b5 <main+0x205>
jmp    13bf <main+0x20f>
jmp    13c4 <main+0x214>
jmp    1295 <main+0xe5>
cmpl   $0x0,-0x124(%rbp)
jge    1410 <main+0x260>
xor    %esi,%esi
sub    -0x124(%rbp),%esi
cvtsi2ssl -0x124(%rbp),%xmm1
ff
cvtsi2ssl -0x12c(%rbp),%xmm0
ff
divss  %xmm0,%xmm1
movss  0xc0f(%rip),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcb4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
jmp    1448 <main+0x298>
mov    -0x124(%rbp),%esi
cvtsi2ssl -0x124(%rbp),%xmm1
ff
cvtsi2ssl -0x12c(%rbp),%xmm0
ff
divss  %xmm0,%xmm1
movss  0xbce(%rip),%xmm0
mulss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xcc1(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rsi,%rbx
cmp    $0x2,%edi
jg     11db <main+0x2b>
mov    (%rbx),%rdi
call   10a0 <printUsage@plt>
mov    $0x1,%eax
jmp    137d <main+0x1cd>
lea    0xe26(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
mov    0x8(%rbx),%rdi
call   1030 <strlen@plt>
add    %eax,%ebp
mov    %ebp,%edi
call   1090 <malloc@plt>
mov    %rax,%rbp
mov    0x10(%rbx),%rdi
call   10c0 <atoi@plt>
mov    %eax,%r14d
mov    0x8(%rbx),%rdx
lea    0xe11(%rip),%rsi
mov    %rbp,%rdi
call   10d0 <sprintf@plt>
lea    0xe20(%rip),%rsi
mov    %rbp,%rdi
call   10b0 <popen@plt>
test   %rax,%rax
je     1339 <main+0x189>
mov    %rax,%rbx
mov    %r14d,0x8(%rsp)
mov    %rax,%rdi
call   1080 <feof@plt>
lea    0xe09(%rip),%r15
lea    0x10(%rsp),%rbp
lea    0xe2d(%rip),%r12
lea    0xe34(%rip),%r13
lea    0xc(%rsp),%r14
jmp    1280 <main+0xd0>
cs nopw 0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %eax,%eax
jne    130e <main+0x15e>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     12bf <main+0x10f>
mov    %rbx,%rdi
lea    0xdc5(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     12bf <main+0x10f>
lea    0xdbc(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
je     130e <main+0x15e>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
cmp    $0x1,%eax
je     1270 <main+0xc0>
mov    %rbx,%rdi
lea    0xd80(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
lea    0xda5(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1270 <main+0xc0>
mov    0xc(%rsp),%esi
cvtsi2ss %esi,%xmm0
test   %esi,%esi
js     1355 <main+0x1a5>
cvtsi2ssl 0x8(%rsp),%xmm1
divss  %xmm1,%xmm0
mulss  0xcd4(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdcb(%rip),%rdi
jmp    1374 <main+0x1c4>
mov    0x2ca0(%rip),%rax
mov    (%rax),%edi
lea    0xcfd(%rip),%rsi
call   1070 <fprintf@plt>
mov    $0x1,%eax
jmp    137d <main+0x1cd>
neg    %esi
cvtsi2ssl 0x8(%rsp),%xmm1
divss  %xmm1,%xmm0
mulss  0xc9b(%rip),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd44(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"condor_userlog_job_counter \00"
@.str.1 = [30 x i8] c"condor_userlog_job_counter %s\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [15 x i8] c"Popen failed!\0A\00"
@.str.4 = [15 x i8] c" Log event: %s\00"
@.str.5 = [13 x i8] c" outcome: %s\00"
@.str.6 = [20 x i8] c"Failed string1: %s\0A\00"
@.str.7 = [14 x i8] c"ULOG_NO_EVENT\00"
@.str.8 = [17 x i8] c" Queued Jobs: %d\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [20 x i8] c"Failed string2: %s\0A\00"
@.str.11 = [74 x i8] c"Warning: %i more jobs have finished than started! (%.2f%% of total jobs)\0A\00"
@.str.12 = [37 x i8] c"%i (%.2f%%) jobs have not finished.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca [256 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%12 = load i32, i32* %4
%13 = icmp slt i32 %12, 3
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = call i32 @printUsage(i8* %17)
store i32 1, i32* %3
br label %115
19: ; preds = %2
%20 = call i32 @strlen(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32 @strlen(i8* %23)
%25 = add nsw i32 %20, %24
%26 = sext i32 %25 to i64
%27 = mul i64 %26, 1
%28 = trunc i64 %27 to i32
%29 = call i64 @malloc(i32 %28)
%30 = inttoptr i64 %29 to i8*
store i8* %30, i8** %7
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 2
%33 = load i8*, i8** %32
%34 = call i32 @atoi(i8* %33)
store i32 %34, i32* %11
%35 = load i8*, i8** %7
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 1
%38 = load i8*, i8** %37
%39 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = load i8*, i8** %7
%41 = call i32* @popen(i8* %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %41, i32** %6
%42 = load i32*, i32** %6
%43 = icmp eq i32* %42, null
br i1 %43, label %44, label %47
44: ; preds = %19
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %115
47: ; preds = %19
br label %48
48: ; preds = %89, %47
%49 = load i32*, i32** %6
%50 = call i32 @feof(i32* %49)
%51 = icmp ne i32 %50, 0
%52 = xor i1 %51, true
br i1 %52, label %53, label %90
53: ; preds = %48
%54 = load i32*, i32** %6
%55 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%56 = call i32 (i32*, i8*, ...) @fscanf(i32* %54, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %55)
store i32 %56, i32* %10
%57 = load i32, i32* %10
%58 = icmp ne i32 %57, 1
br i1 %58, label %59, label %70
59: ; preds = %53
%60 = load i32*, i32** %6
%61 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %60, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %61)
store i32 %62, i32* %10
%63 = load i32, i32* %10
%64 = icmp ne i32 %63, 1
br i1 %64, label %65, label %68
65: ; preds = %59
%66 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %66)
br label %69
68: ; preds = %59
br label %69
69: ; preds = %68, %65
br label %71
70: ; preds = %53
br label %71
71: ; preds = %70, %69
%72 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%73 = call i64 @strcmp(i8* %72, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%74 = icmp ne i64 %73, 0
br i1 %74, label %75, label %88
75: ; preds = %71
%76 = load i32*, i32** %6
%77 = call i32 (i32*, i8*, ...) @fscanf(i32* %76, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32* %9)
store i32 %77, i32* %10
%78 = load i32, i32* %10
%79 = icmp ne i32 %78, 1
br i1 %79, label %80, label %86
80: ; preds = %75
%81 = load i32*, i32** %6
%82 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%83 = call i32 (i32*, i8*, ...) @fscanf(i32* %81, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %82)
%84 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %84)
br label %87
86: ; preds = %75
br label %87
87: ; preds = %86, %80
br label %89
88: ; preds = %71
br label %90
89: ; preds = %87
br label %48
90: ; preds = %88, %48
%91 = load i32, i32* %9
%92 = icmp slt i32 %91, 0
br i1 %92, label %93, label %104
93: ; preds = %90
%94 = load i32, i32* %9
%95 = sub nsw i32 0, %94
%96 = load i32, i32* %9
%97 = sitofp i32 %96 to float
%98 = load i32, i32* %11
%99 = sitofp i32 %98 to float
%100 = fdiv float %97, %99
%101 = fmul float -1.000000e+02, %100
%102 = fpext float %101 to double
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0), i32 %95, double %102)
br label %114
104: ; preds = %90
%105 = load i32, i32* %9
%106 = load i32, i32* %9
%107 = sitofp i32 %106 to float
%108 = load i32, i32* %11
%109 = sitofp i32 %108 to float
%110 = fdiv float %107, %109
%111 = fmul float 1.000000e+02, %110
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 %105, double %112)
br label %114
114: ; preds = %104, %93
store i32 0, i32* %3
br label %115
115: ; preds = %114, %44, %14
%116 = load i32, i32* %3
ret i32 %116
}

LLVM IR (-O2):
@.str = [30 x i8] c"condor_userlog_job_counter \00"
@.str.1 = [30 x i8] c"condor_userlog_job_counter %s\00"
@.str.2 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.3 = [15 x i8] c"Popen failed!\0A\00"
@.str.4 = [15 x i8] c" Log event: %s\00"
@.str.5 = [13 x i8] c" outcome: %s\00"
@.str.6 = [20 x i8] c"Failed string1: %s\0A\00"
@.str.7 = [14 x i8] c"ULOG_NO_EVENT\00"
@.str.8 = [17 x i8] c" Queued Jobs: %d\00"
@.str.9 = [3 x i8] c"%s\00"
@.str.10 = [20 x i8] c"Failed string2: %s\0A\00"
@.str.11 = [74 x i8] c"Warning: %i more jobs have finished than started! (%.2f%% of total jobs)\0A\00"
@.str.12 = [37 x i8] c"%i (%.2f%%) jobs have not finished.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca i32
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %9
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 @printUsage(i8* %7)
br label %72
9: ; preds = %2
%10 = tail call i32 @strlen(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32 @strlen(i8* %12)
%14 = add nsw i32 %13, %10
%15 = tail call i64 @malloc(i32 %14)
%16 = inttoptr i64 %15 to i8*
%17 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%18 = bitcast i32* %4 to i8*
%19 = getelementptr inbounds i8*, i8** %1, i64 2
%20 = load i8*, i8** %19
%21 = tail call i32 @atoi(i8* %20)
%22 = load i8*, i8** %11
%23 = tail call i32 @sprintf(i8* dereferenceable(1) %16, i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %22)
%24 = tail call i32* @popen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp eq i32* %24, null
br i1 %25, label %29, label %26
26: ; preds = %9
%27 = call i32 @feof(i32* %24)
%28 = icmp eq i32 %27, 0
br label %32
29: ; preds = %9
%30 = load i32, i32* @stderr
%31 = tail call i32 @fprintf(i32 %30, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %70
32: ; preds = %26, %49
%33 = call i32 (i32*, i8*, ...) @fscanf(i32* %24, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %17)
%34 = icmp eq i32 %33, 1
br i1 %34, label %40, label %35
35: ; preds = %32
%36 = call i32 (i32*, i8*, ...) @fscanf(i32* %24, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* %17)
%37 = icmp eq i32 %36, 1
br i1 %37, label %40, label %38
38: ; preds = %35
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* %17)
br label %40
40: ; preds = %32, %38, %35
%41 = call i64 @strcmp(i8* %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %52, label %43
43: ; preds = %40
%44 = call i32 (i32*, i8*, ...) @fscanf(i32* %24, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i32* %4)
%45 = icmp eq i32 %44, 1
br i1 %45, label %49, label %46
46: ; preds = %43
%47 = call i32 (i32*, i8*, ...) @fscanf(i32* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* %17)
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %17)
br label %49
49: ; preds = %46, %43
%50 = call i32 @feof(i32* %24)
%51 = icmp eq i32 %50, 0
br i1 %51, label %32, label %52
52: ; preds = %49, %40
%53 = load i32, i32* %4
%54 = icmp slt i32 %53, 0
br i1 %54, label %55, label %63
55: ; preds = %52
%56 = sub nsw i32 0, %53
%57 = sitofp i32 %53 to float
%58 = sitofp i32 %21 to float
%59 = fdiv float %57, %58
%60 = fmul float %59, -1.000000e+02
%61 = fpext float %60 to double
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.11, i64 0, i64 0), i32 %56, double %61)
br label %70
63: ; preds = %52
%64 = sitofp i32 %53 to float
%65 = sitofp i32 %21 to float
%66 = fdiv float %64, %65
%67 = fmul float %66, 1.000000e+02
%68 = fpext float %67 to double
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.12, i64 0, i64 0), i32 %53, double %68)
br label %70
70: ; preds = %55, %63, %29
%71 = phi i32 [ 1, %29 ], [ 0, %63 ], [ 0, %55 ]
br label %72
72: ; preds = %70, %6
%73 = phi i32 [ 1, %6 ], [ %71, %70 ]
ret i32 %73
}