#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 EOF;
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int /*<<< orphan*/ delay_for(double);
int /*<<< orphan*/ emit(int /*<<< orphan*/ *, char const *, size_t);
int /*<<< orphan*/ err(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ errx(int /*<<< orphan*/, char *, char const *,
                        unsigned long);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ feof(int /*<<< orphan*/ *);
scalar_t__ ferror(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char const *, char *);
int fscanf(int /*<<< orphan*/ *, char *, double *, size_t *, char *);
int getnum(char *);
int /*<<< orphan*/ usage(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  FILE *tfile, *sfile;
  const char *sname, *tname;
  double divi;
  int c;
  unsigned long line;
  size_t oldblk = 0;
  ;
  ;
  ;
  ;
  if (argc < 2 && argc > 4)
    usage(EXIT_FAILURE);
  tname = argv[1];
  sname = argc > 2 ? argv[2] : "typescript";
  divi = argc == 4 ? getnum(argv[3]) : 1;
  tfile = fopen(tname, "r");
  if (!tfile)
    err(EXIT_FAILURE, ("cannot open timing file %s"), tname);
  sfile = fopen(sname, "r");
  if (!sfile)
    err(EXIT_FAILURE, ("cannot open typescript file %s"), sname);
  while ((c = fgetc(sfile)) != EOF && c != '\n')
    ;
  for (line = 0;; line++) {
    double delay;
    size_t blk;
    char nl;
    if ((fscanf(tfile, "%lf %zd%[\n]\n", &delay, &blk, &nl) != 3) ||
        (nl != '\n')) {
      if (feof(tfile))
        break;
      if (ferror(tfile))
        err(EXIT_FAILURE, ("failed to read timing file %s"), tname);
      errx(EXIT_FAILURE, ("timings file %s: %lu: unexpected format"), tname,
           line);
    }
    delay /= divi;
    if (delay > 0.0001)
      delay_for(delay);
    if (oldblk)
      emit(sfile, sname, oldblk);
    oldblk = blk;
  }
  fclose(sfile);
  fclose(tfile);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x50(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1213 <main+0x43>
cmpl   $0x4,-0x8(%rbp)
jle    1213 <main+0x43>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
call   10c0 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    123a <main+0x6a>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x70(%rbp)
jmp    124a <main+0x7a>
lea    0xdc7(%rip),%rax
mov    %rax,-0x70(%rbp)
jmp    124a <main+0x7a>
mov    -0x70(%rbp),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    1271 <main+0xa1>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1030 <getnum@plt>
mov    %eax,-0x74(%rbp)
jmp    127e <main+0xae>
mov    $0x1,%eax
mov    %eax,-0x74(%rbp)
jmp    127e <main+0xae>
mov    -0x74(%rbp),%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x30(%rbp),%rdi
lea    0xd7e(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    12c2 <main+0xf2>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0xd58(%rip),%rsi
call   10b0 <err@plt>
mov    -0x28(%rbp),%rdi
lea    0xd46(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12fa <main+0x12a>
mov    0x2cf0(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
lea    0xd3b(%rip),%rsi
call   10b0 <err@plt>
jmp    12ff <main+0x12f>
mov    -0x20(%rbp),%rdi
call   1080 <fgetc@plt>
mov    %eax,%ecx
mov    %ecx,-0x3c(%rbp)
xor    %eax,%eax
mov    0x2cd2(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x75(%rbp)
je     132b <main+0x15b>
cmpl   $0xa,-0x3c(%rbp)
setne  %al
mov    %al,-0x75(%rbp)
mov    -0x75(%rbp),%al
test   $0x1,%al
jne    133b <main+0x16b>
jmp    1340 <main+0x170>
jmp    12ff <main+0x12f>
movq   $0x0,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xcfc(%rip),%rsi
lea    -0x58(%rbp),%rdx
lea    -0x60(%rbp),%rcx
lea    -0x61(%rbp),%r8
call   1070 <fscanf@plt>
cmp    $0x3,%eax
jne    137a <main+0x1aa>
movsbl -0x61(%rbp),%eax
cmp    $0xa,%eax
je     13db <main+0x20b>
mov    -0x18(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%rax
je     1392 <main+0x1c2>
jmp    1444 <main+0x274>
mov    -0x18(%rbp),%rdi
call   1040 <ferror@plt>
cmp    $0x0,%rax
je     13be <main+0x1ee>
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
lea    0xca3(%rip),%rsi
call   10b0 <err@plt>
mov    0x2c13(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rdx
mov    -0x48(%rbp),%rcx
lea    0xca4(%rip),%rsi
call   1060 <errx@plt>
movsd  -0x38(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  0xc05(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    140f <main+0x23f>
movsd  -0x58(%rbp),%xmm0
call   1090 <delay_for@plt>
cmpq   $0x0,-0x50(%rbp)
je     142b <main+0x25b>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x50(%rbp),%rdx
call   10e0 <emit@plt>
mov    -0x60(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1348 <main+0x178>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x18(%rbp),%rdi
call   1050 <fclose@plt>
mov    0x2b73(%rip),%rax
mov    (%rax),%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    0x8(%rsi),%rbx
movsd  0xe26(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
cmp    $0x3,%edi
jl     120b <main+0x4b>
mov    0x10(%rsi),%rax
mov    %rax,0x8(%rsp)
cmp    $0x4,%edi
jne    1217 <main+0x57>
mov    0x18(%rsi),%rdi
call   1030 <getnum@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
jmp    1217 <main+0x57>
lea    0xdfe(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xdfd(%rip),%rsi
mov    %rbx,%rdi
call   10c0 <fopen@plt>
mov    %rax,%r13
test   %rax,%rax
jne    1246 <main+0x86>
mov    0x2da3(%rip),%rax
mov    (%rax),%edi
lea    0xddf(%rip),%rsi
mov    %rbx,%rdx
call   10b0 <err@plt>
mov    %rbx,0x28(%rsp)
lea    0xdc9(%rip),%rsi
mov    0x8(%rsp),%rdi
call   10c0 <fopen@plt>
mov    %rax,%r15
test   %rax,%rax
jne    127e <main+0xbe>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
lea    0xdc4(%rip),%rsi
mov    0x8(%rsp),%rdx
call   10b0 <err@plt>
mov    0x2d63(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r15,%rdi
call   1080 <fgetc@plt>
cmp    $0xa,%eax
je     12a1 <main+0xe1>
cmp    (%rbx),%eax
jne    1290 <main+0xd0>
xor    %r12d,%r12d
lea    0xdac(%rip),%rbp
lea    0x18(%rsp),%rbx
xor    %r14d,%r14d
mov    %r15,0x20(%rsp)
jmp    12c9 <main+0x109>
nopw   0x0(%rax,%rax,1)
mov    0x30(%rsp),%r14
add    $0x1,%r12
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
lea    0x30(%rsp),%rcx
lea    0x7(%rsp),%r8
call   1070 <fscanf@plt>
cmp    $0x3,%eax
jne    12ed <main+0x12d>
cmpb   $0xa,0x7(%rsp)
je     1348 <main+0x188>
mov    %r13,%rdi
call   10a0 <feof@plt>
test   %rax,%rax
jne    1387 <main+0x1c7>
mov    %r13,%rdi
call   1040 <ferror@plt>
test   %rax,%rax
mov    0x28(%rsp),%r15
mov    0x2cc3(%rip),%rax
je     132f <main+0x16f>
mov    (%rax),%edi
lea    0xd44(%rip),%rsi
mov    %r15,%rdx
call   10b0 <err@plt>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
lea    0xd4a(%rip),%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1060 <errx@plt>
mov    0x20(%rsp),%r15
movsd  0x18(%rsp),%xmm0
divsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
ucomisd 0xca6(%rip),%xmm0
jbe    1369 <main+0x1a9>
call   1090 <delay_for@plt>
test   %r14,%r14
je     12c0 <main+0x100>
mov    %r15,%rdi
mov    0x8(%rsp),%rsi
mov    %r14,%rdx
call   10d0 <emit@plt>
jmp    12c0 <main+0x100>
mov    %r15,%rdi
call   1050 <fclose@plt>
mov    %r13,%rdi
call   1050 <fclose@plt>
mov    0x2c32(%rip),%rax
mov    (%rax),%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@EXIT_FAILURE = global i32 0
@.str = [11 x i8] c"typescript\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [27 x i8] c"cannot open timing file %s\00"
@.str.3 = [31 x i8] c"cannot open typescript file %s\00"
@EOF = global i32 0
@.str.4 = [13 x i8] c"%lf %zd%[\0A]\0A\00"
@.str.5 = [30 x i8] c"failed to read timing file %s\00"
@.str.6 = [40 x i8] c"timings file %s: %lu: unexpected format\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca double
%11 = alloca i32
%12 = alloca i64
%13 = alloca i64
%14 = alloca double
%15 = alloca i64
%16 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 0, i64* %13
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %25
19: ; preds = %2
%20 = load i32, i32* %4
%21 = icmp sgt i32 %20, 4
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* @EXIT_FAILURE
%24 = call i32 @usage(i32 %23)
br label %25
25: ; preds = %22, %19, %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
store i8* %28, i8** %9
%29 = load i32, i32* %4
%30 = icmp sgt i32 %29, 2
br i1 %30, label %31, label %35
31: ; preds = %25
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
br label %36
35: ; preds = %25
br label %36
36: ; preds = %35, %31
%37 = phi i8* [ %34, %31 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %35 ]
store i8* %37, i8** %8
%38 = load i32, i32* %4
%39 = icmp eq i32 %38, 4
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = load i8**, i8*** %5
%42 = getelementptr inbounds i8*, i8** %41, i64 3
%43 = load i8*, i8** %42
%44 = call i32 @getnum(i8* %43)
br label %46
45: ; preds = %36
br label %46
46: ; preds = %45, %40
%47 = phi i32 [ %44, %40 ], [ 1, %45 ]
%48 = sitofp i32 %47 to double
store double %48, double* %10
%49 = load i8*, i8** %9
%50 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %50, i32** %6
%51 = load i32*, i32** %6
%52 = icmp ne i32* %51, null
br i1 %52, label %57, label %53
53: ; preds = %46
%54 = load i32, i32* @EXIT_FAILURE
%55 = load i8*, i8** %9
%56 = call i32 @err(i32 %54, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %55)
br label %57
57: ; preds = %53, %46
%58 = load i8*, i8** %8
%59 = call i32* @fopen(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %59, i32** %7
%60 = load i32*, i32** %7
%61 = icmp ne i32* %60, null
br i1 %61, label %66, label %62
62: ; preds = %57
%63 = load i32, i32* @EXIT_FAILURE
%64 = load i8*, i8** %8
%65 = call i32 @err(i32 %63, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %64)
br label %66
66: ; preds = %62, %57
br label %67
67: ; preds = %77, %66
%68 = load i32*, i32** %7
%69 = call i32 @fgetc(i32* %68)
store i32 %69, i32* %11
%70 = load i32, i32* @EOF
%71 = icmp ne i32 %69, %70
br i1 %71, label %72, label %75
72: ; preds = %67
%73 = load i32, i32* %11
%74 = icmp ne i32 %73, 10
br label %75
75: ; preds = %72, %67
%76 = phi i1 [ false, %67 ], [ %74, %72 ]
br i1 %76, label %77, label %78
77: ; preds = %75
br label %67
78: ; preds = %75
store i64 0, i64* %12
br label %79
79: ; preds = %124, %78
%80 = load i32*, i32** %6
%81 = call i32 @fscanf(i32* %80, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double* %14, i64* %15, i8* %16)
%82 = icmp ne i32 %81, 3
br i1 %82, label %87, label %83
83: ; preds = %79
%84 = load i8, i8* %16
%85 = sext i8 %84 to i32
%86 = icmp ne i32 %85, 10
br i1 %86, label %87, label %105
87: ; preds = %83, %79
%88 = load i32*, i32** %6
%89 = call i64 @feof(i32* %88)
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
br label %127
92: ; preds = %87
%93 = load i32*, i32** %6
%94 = call i64 @ferror(i32* %93)
%95 = icmp ne i64 %94, 0
br i1 %95, label %96, label %100
96: ; preds = %92
%97 = load i32, i32* @EXIT_FAILURE
%98 = load i8*, i8** %9
%99 = call i32 @err(i32 %97, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %98)
br label %100
100: ; preds = %96, %92
%101 = load i32, i32* @EXIT_FAILURE
%102 = load i8*, i8** %9
%103 = load i64, i64* %12
%104 = call i32 @errx(i32 %101, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %102, i64 %103)
br label %105
105: ; preds = %100, %83
%106 = load double, double* %10
%107 = load double, double* %14
%108 = fdiv double %107, %106
store double %108, double* %14
%109 = load double, double* %14
%110 = fcmp ogt double %109, 1.000000e-04
br i1 %110, label %111, label %114
111: ; preds = %105
%112 = load double, double* %14
%113 = call i32 @delay_for(double %112)
br label %114
114: ; preds = %111, %105
%115 = load i64, i64* %13
%116 = icmp ne i64 %115, 0
br i1 %116, label %117, label %122
117: ; preds = %114
%118 = load i32*, i32** %7
%119 = load i8*, i8** %8
%120 = load i64, i64* %13
%121 = call i32 @emit(i32* %118, i8* %119, i64 %120)
br label %122
122: ; preds = %117, %114
%123 = load i64, i64* %15
store i64 %123, i64* %13
br label %124
124: ; preds = %122
%125 = load i64, i64* %12
%126 = add i64 %125, 1
store i64 %126, i64* %12
br label %79
127: ; preds = %91
%128 = load i32*, i32** %7
%129 = call i32 @fclose(i32* %128)
%130 = load i32*, i32** %6
%131 = call i32 @fclose(i32* %130)
%132 = load i32, i32* @EXIT_SUCCESS
%133 = call i32 @exit(i32 %132)
unreachable
}

LLVM IR (-O2):
@EXIT_FAILURE = global i32 0
@.str = [11 x i8] c"typescript\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [27 x i8] c"cannot open timing file %s\00"
@.str.3 = [31 x i8] c"cannot open typescript file %s\00"
@EOF = global i32 0
@.str.4 = [13 x i8] c"%lf %zd%[\0A]\0A\00"
@.str.5 = [30 x i8] c"failed to read timing file %s\00"
@.str.6 = [40 x i8] c"timings file %s: %lu: unexpected format\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = alloca i64
%5 = alloca i8
%6 = getelementptr inbounds i8*, i8** %1, i64 1
%7 = load i8*, i8** %6
%8 = icmp sgt i32 %0, 2
br i1 %8, label %9, label %18
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 2
%11 = load i8*, i8** %10
%12 = icmp eq i32 %0, 4
br i1 %12, label %13, label %18
13: ; preds = %9
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @getnum(i8* %15)
%17 = sitofp i32 %16 to double
br label %18
18: ; preds = %2, %9, %13
%19 = phi i8* [ %11, %13 ], [ %11, %9 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), %2 ]
%20 = phi double [ %17, %13 ], [ 1.000000e+00, %9 ], [ 1.000000e+00, %2 ]
%21 = tail call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %26
23: ; preds = %18
%24 = load i32, i32* @EXIT_FAILURE
%25 = tail call i32 @err(i32 %24, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %7)
br label %26
26: ; preds = %23, %18
%27 = tail call i32* @fopen(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%28 = icmp eq i32* %27, null
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* @EXIT_FAILURE
%31 = tail call i32 @err(i32 %30, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %19)
br label %32
32: ; preds = %29, %26
br label %33
33: ; preds = %32, %33
%34 = tail call i32 @fgetc(i32* %27)
%35 = load i32, i32* @EOF
%36 = icmp ne i32 %34, %35
%37 = icmp ne i32 %34, 10
%38 = and i1 %37, %36
br i1 %38, label %33, label %39
39: ; preds = %33
%40 = bitcast double* %3 to i8*
%41 = bitcast i64* %4 to i8*
br label %42
42: ; preds = %39, %72
%43 = phi i64 [ %74, %72 ], [ 0, %39 ]
%44 = phi i64 [ %73, %72 ], [ 0, %39 ]
%45 = call i32 @fscanf(i32* %21, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), double* %3, i64* %4, i8* %5)
%46 = icmp ne i32 %45, 3
%47 = load i8, i8* %5
%48 = icmp ne i8 %47, 10
%49 = select i1 %46, i1 true, i1 %48
br i1 %49, label %50, label %62
50: ; preds = %42
%51 = call i64 @feof(i32* %21)
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %75
53: ; preds = %50
%54 = call i64 @ferror(i32* %21)
%55 = icmp eq i64 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = load i32, i32* @EXIT_FAILURE
%58 = call i32 @err(i32 %57, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i8* %7)
br label %59
59: ; preds = %56, %53
%60 = load i32, i32* @EXIT_FAILURE
%61 = call i32 @errx(i32 %60, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i8* %7, i64 %43)
br label %62
62: ; preds = %42, %59
%63 = load double, double* %3
%64 = fdiv double %63, %20
store double %64, double* %3
%65 = fcmp ogt double %64, 1.000000e-04
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 @delay_for(double %64)
br label %68
68: ; preds = %66, %62
%69 = icmp eq i64 %44, 0
br i1 %69, label %72, label %70
70: ; preds = %68
%71 = call i32 @emit(i32* %27, i8* %19, i64 %44)
br label %72
72: ; preds = %68, %70
%73 = load i64, i64* %4
%74 = add i64 %43, 1
br label %42
75: ; preds = %50
%76 = call i32 @fclose(i32* %27)
%77 = call i32 @fclose(i32* %21)
%78 = load i32, i32* @EXIT_SUCCESS
%79 = call i32 @exit(i32 %78)
unreachable
}