#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 chown(char *, int, int);
int errno;
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sprintf(char *, char *, ...);
scalar_t__ strchr(char *, char);
char *strerror(int);
int strlen(char *);
void *strtol(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
long time(int /*<<< orphan*/);
int /*<<< orphan*/ usage(char *);
int main(int argc, char **argv) {
  int i, rc = 0, mask = 0;
  char format[4096], *fmt;
  char filename[4096];
  long start, last;
  long begin = 0, count;
  if (argc < 4 || argc > 5) {
    usage(argv[0]);
    return 1;
  }
  mask = strtol(argv[1], NULL, 0);
  if (strlen(argv[2]) > 4080) {
    printf("name too long\n");
    return 1;
  }
  start = last = time(0);
  if (argc == 4) {
    count = strtol(argv[3], NULL, 0);
    if (count < 1) {
      printf("count must be at least one\n");
      return 1;
    }
  } else {
    begin = strtol(argv[3], NULL, 0);
    count = strtol(argv[4], NULL, 0);
  }
  if (strchr(argv[2], '%')) {
    fmt = argv[2];
  } else {
    sprintf(format, "%s%%d", argv[2]);
    fmt = format;
  }
  for (i = 0; i < count; i++, begin++) {
    sprintf(filename, fmt, begin);
    rc = chown(filename, mask, -1);
    if (rc) {
      printf("chown (%s) error: %s\n", filename, strerror(errno));
      rc = errno;
      break;
    }
    if ((i % 10000) == 0) {
      printf(" - chowned %d (time %ld ; total %ld ; last "
             "%ld)\n",
             i, time(0), time(0) - start, time(0) - last);
      last = time(0);
    }
  }
  printf("total: %d chowns in %ld seconds: %f chowns/second\n", i,
         time(0) - start, ((float)i / (time(0) - start)));
  return rc;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2080,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x2048(%rbp)
cmpl   $0x4,-0x8(%rbp)
jl     11d6 <main+0x46>
cmpl   $0x5,-0x8(%rbp)
jle    11ee <main+0x5e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <usage@plt>
movl   $0x1,-0x4(%rbp)
jmp    14da <main+0x34a>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1060 <strtol@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <strlen@plt>
cmp    $0xff0,%eax
jle    1236 <main+0xa6>
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    14da <main+0x34a>
xor    %edi,%edi
call   1070 <time@plt>
mov    %rax,-0x2040(%rbp)
mov    %rax,-0x2038(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    129c <main+0x10c>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1060 <strtol@plt>
mov    %rax,-0x2050(%rbp)
cmpq   $0x1,-0x2050(%rbp)
01
jge    1297 <main+0x107>
lea    0xd8b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    14da <main+0x34a>
jmp    12d0 <main+0x140>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1060 <strtol@plt>
mov    %rax,-0x2048(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1060 <strtol@plt>
mov    %rax,-0x2050(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    $0x25,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
je     1300 <main+0x170>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x1028(%rbp)
jmp    132b <main+0x19b>
lea    -0x1020(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xd15(%rip),%rsi
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x1020(%rbp),%rax
mov    %rax,-0x1028(%rbp)
movl   $0x0,-0x14(%rbp)
movslq -0x14(%rbp),%rax
cmp    -0x2050(%rbp),%rax
jge    146b <main+0x2db>
lea    -0x2030(%rbp),%rdi
mov    -0x1028(%rbp),%rsi
mov    -0x2048(%rbp),%rdx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x2030(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    $0xffffffff,%edx
call   1080 <chown@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     13c5 <main+0x235>
lea    -0x2030(%rbp),%rax
mov    %rax,-0x2058(%rbp)
mov    0x2c4b(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    -0x2058(%rbp),%rsi
mov    %rax,%rdx
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2c25(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x18(%rbp)
jmp    146b <main+0x2db>
mov    -0x14(%rbp),%eax
mov    $0x2710,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1446 <main+0x2b6>
mov    -0x14(%rbp),%eax
mov    %eax,-0x206c(%rbp)
xor    %edi,%edi
call   1070 <time@plt>
mov    %rax,-0x2068(%rbp)
xor    %edi,%edi
call   1070 <time@plt>
sub    -0x2038(%rbp),%rax
mov    %rax,-0x2060(%rbp)
xor    %edi,%edi
call   1070 <time@plt>
mov    -0x206c(%rbp),%esi
mov    -0x2068(%rbp),%rdx
mov    -0x2060(%rbp),%rcx
mov    %rax,%r8
sub    -0x2040(%rbp),%r8
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   1070 <time@plt>
mov    %rax,-0x2040(%rbp)
jmp    144b <main+0x2bb>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x2048(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2048(%rbp)
jmp    1332 <main+0x1a2>
mov    -0x14(%rbp),%eax
mov    %eax,-0x207c(%rbp)
xor    %edi,%edi
call   1070 <time@plt>
sub    -0x2038(%rbp),%rax
mov    %rax,-0x2078(%rbp)
cvtsi2ssl -0x14(%rbp),%xmm0
movss  %xmm0,-0x2080(%rbp)
ff
xor    %edi,%edi
call   1070 <time@plt>
movss  -0x2080(%rbp),%xmm0
ff
mov    -0x207c(%rbp),%esi
mov    -0x2078(%rbp),%rdx
sub    -0x2038(%rbp),%rax
cvtsi2ss %rax,%xmm1
divss  %xmm1,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbab(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2080,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2028,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
lea    -0x6(%rbp),%eax
cmp    $0xfffffffd,%eax
ja     11d0 <main+0x30>
mov    (%rbx),%rdi
call   10a0 <usage@plt>
mov    $0x1,%ebp
jmp    13f0 <main+0x250>
mov    0x8(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtol@plt>
mov    %rax,%r14
mov    0x10(%rbx),%rdi
call   1040 <strlen@plt>
cmp    $0xff1,%eax
jl     1206 <main+0x66>
lea    0xea4(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%ebp
jmp    13f0 <main+0x250>
mov    %r14,0x18(%rsp)
xor    %edi,%edi
call   1080 <time@plt>
mov    %rax,0x10(%rsp)
mov    0x18(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtol@plt>
mov    %rax,%r15
cmp    $0x4,%ebp
jne    123a <main+0x9a>
test   %r15,%r15
jg     1251 <main+0xb1>
lea    0xe48(%rip),%rdi
jmp    11f7 <main+0x57>
mov    0x20(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtol@plt>
mov    %r15,0x8(%rsp)
mov    %rax,%r15
jmp    1258 <main+0xb8>
xor    %eax,%eax
mov    %rax,0x8(%rsp)
mov    0x10(%rbx),%rdi
mov    $0x25,%esi
call   1050 <strchr@plt>
mov    0x10(%rbx),%r12
test   %rax,%rax
jne    128e <main+0xee>
lea    0x1020(%rsp),%rbx
lea    0xd82(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %rbx,%r12
xor    %ebx,%ebx
mov    $0x0,%ebp
test   %r15,%r15
jle    13a0 <main+0x200>
cmp    $0x2,%r15
mov    $0x1,%r14d
cmovge %r15,%r14
lea    0x20(%rsp),%r13
xor    %ebx,%ebx
mov    0x10(%rsp),%rax
mov    %rax,(%rsp)
mov    0x18(%rsp),%rbp
mov    0x8(%rsp),%r15
jmp    12dd <main+0x13d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    %rbx,%r14
je     139b <main+0x1fb>
lea    (%r15,%rbx,1),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10b0 <sprintf@plt>
mov    %r13,%rdi
mov    %ebp,%esi
mov    $0xffffffff,%edx
call   1090 <chown@plt>
test   %eax,%eax
jne    1371 <main+0x1d1>
mov    %ebx,%eax
mov    $0xd1b71759,%ecx
imul   %rcx,%rax
shr    $0x2d,%rax
imul   $0xffffd8f0,%eax,%eax
add    %ebx,%eax
jne    12d0 <main+0x130>
xor    %edi,%edi
call   1080 <time@plt>
mov    %rax,%rbp
xor    %edi,%edi
call   1080 <time@plt>
mov    %rax,%r15
sub    0x10(%rsp),%r15
xor    %edi,%edi
call   1080 <time@plt>
sub    (%rsp),%rax
lea    0xcd7(%rip),%rdi
mov    %ebx,%esi
mov    %rbp,%rdx
mov    %r15,%rcx
mov    0x8(%rsp),%r15
mov    0x18(%rsp),%rbp
mov    %rax,%r8
xor    %eax,%eax
call   1060 <printf@plt>
xor    %edi,%edi
call   1080 <time@plt>
mov    %rax,(%rsp)
jmp    12d0 <main+0x130>
mov    0x2c68(%rip),%rbp
mov    0x0(%rbp),%edi
call   10c0 <strerror@plt>
lea    0xc7f(%rip),%rdi
lea    0x20(%rsp),%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x0(%rbp),%ebp
jmp    13a0 <main+0x200>
xor    %ebp,%ebp
mov    %r14d,%ebx
xor    %edi,%edi
call   1080 <time@plt>
mov    %rax,%r14
mov    0x10(%rsp),%r15
sub    %r15,%r14
cvtsi2ss %ebx,%xmm0
movss  %xmm0,(%rsp)
xor    %edi,%edi
call   1080 <time@plt>
sub    %r15,%rax
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
movss  (%rsp),%xmm1
divss  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtss2sd %xmm1,%xmm0
lea    0xc69(%rip),%rdi
mov    %ebx,%esi
mov    %r14,%rdx
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebp,%eax
add    $0x2028,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"name too long\0A\00"
@.str.1 = [28 x i8] c"count must be at least one\0A\00"
@.str.2 = [6 x i8] c"%s%%d\00"
@.str.3 = [22 x i8] c"chown (%s) error: %s\0A\00"
@errno = global i32 0
@.str.4 = [49 x i8] c" - chowned %d (time %ld ; total %ld ; last %ld)\0A\00"
@.str.5 = [51 x i8] c"total: %d chowns in %ld seconds: %f chowns/second\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [4096 x i8]
%10 = alloca i8*
%11 = alloca [4096 x i8]
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i64 0, i64* %14
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 4
br i1 %17, label %21, label %18
18: ; preds = %2
%19 = load i32, i32* %4
%20 = icmp sgt i32 %19, 5
br i1 %20, label %21, label %26
21: ; preds = %18, %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i32 @usage(i8* %24)
store i32 1, i32* %3
br label %140
26: ; preds = %18
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 1
%29 = load i8*, i8** %28
%30 = call i8* @strtol(i8* %29, i32* null, i32 0)
%31 = ptrtoint i8* %30 to i32
store i32 %31, i32* %8
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 2
%34 = load i8*, i8** %33
%35 = call i32 @strlen(i8* %34)
%36 = icmp sgt i32 %35, 4080
br i1 %36, label %37, label %39
37: ; preds = %26
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %140
39: ; preds = %26
%40 = call i64 @time(i32 0)
store i64 %40, i64* %13
store i64 %40, i64* %12
%41 = load i32, i32* %4
%42 = icmp eq i32 %41, 4
br i1 %42, label %43, label %54
43: ; preds = %39
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 3
%46 = load i8*, i8** %45
%47 = call i8* @strtol(i8* %46, i32* null, i32 0)
%48 = ptrtoint i8* %47 to i64
store i64 %48, i64* %15
%49 = load i64, i64* %15
%50 = icmp slt i64 %49, 1
br i1 %50, label %51, label %53
51: ; preds = %43
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %3
br label %140
53: ; preds = %43
br label %65
54: ; preds = %39
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 3
%57 = load i8*, i8** %56
%58 = call i8* @strtol(i8* %57, i32* null, i32 0)
%59 = ptrtoint i8* %58 to i64
store i64 %59, i64* %14
%60 = load i8**, i8*** %5
%61 = getelementptr inbounds i8*, i8** %60, i64 4
%62 = load i8*, i8** %61
%63 = call i8* @strtol(i8* %62, i32* null, i32 0)
%64 = ptrtoint i8* %63 to i64
store i64 %64, i64* %15
br label %65
65: ; preds = %54, %53
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 2
%68 = load i8*, i8** %67
%69 = call i64 @strchr(i8* %68, i8 signext 37)
%70 = icmp ne i64 %69, 0
br i1 %70, label %71, label %75
71: ; preds = %65
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 2
%74 = load i8*, i8** %73
store i8* %74, i8** %10
br label %82
75: ; preds = %65
%76 = getelementptr inbounds [4096 x i8], [4096 x i8]* %9, i64 0, i64 0
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 2
%79 = load i8*, i8** %78
%80 = call i32 (i8*, i8*, ...) @sprintf(i8* %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %79)
%81 = getelementptr inbounds [4096 x i8], [4096 x i8]* %9, i64 0, i64 0
store i8* %81, i8** %10
br label %82
82: ; preds = %75, %71
store i32 0, i32* %6
br label %83
83: ; preds = %120, %82
%84 = load i32, i32* %6
%85 = sext i32 %84 to i64
%86 = load i64, i64* %15
%87 = icmp slt i64 %85, %86
br i1 %87, label %88, label %125
88: ; preds = %83
%89 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%90 = load i8*, i8** %10
%91 = load i64, i64* %14
%92 = call i32 (i8*, i8*, ...) @sprintf(i8* %89, i8* %90, i64 %91)
%93 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%94 = load i32, i32* %8
%95 = call i32 @chown(i8* %93, i32 %94, i32 -1)
store i32 %95, i32* %7
%96 = load i32, i32* %7
%97 = icmp ne i32 %96, 0
br i1 %97, label %98, label %104
98: ; preds = %88
%99 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%100 = load i32, i32* @errno
%101 = call i8* @strerror(i32 %100)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %99, i8* %101)
%103 = load i32, i32* @errno
store i32 %103, i32* %7
br label %125
104: ; preds = %88
%105 = load i32, i32* %6
%106 = srem i32 %105, 10000
%107 = icmp eq i32 %106, 0
br i1 %107, label %108, label %119
108: ; preds = %104
%109 = load i32, i32* %6
%110 = call i64 @time(i32 0)
%111 = call i64 @time(i32 0)
%112 = load i64, i64* %12
%113 = sub nsw i64 %111, %112
%114 = call i64 @time(i32 0)
%115 = load i64, i64* %13
%116 = sub nsw i64 %114, %115
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 %109, i64 %110, i64 %113, i64 %116)
%118 = call i64 @time(i32 0)
store i64 %118, i64* %13
br label %119
119: ; preds = %108, %104
br label %120
120: ; preds = %119
%121 = load i32, i32* %6
%122 = add nsw i32 %121, 1
store i32 %122, i32* %6
%123 = load i64, i64* %14
%124 = add nsw i64 %123, 1
store i64 %124, i64* %14
br label %83
125: ; preds = %98, %83
%126 = load i32, i32* %6
%127 = call i64 @time(i32 0)
%128 = load i64, i64* %12
%129 = sub nsw i64 %127, %128
%130 = load i32, i32* %6
%131 = sitofp i32 %130 to float
%132 = call i64 @time(i32 0)
%133 = load i64, i64* %12
%134 = sub nsw i64 %132, %133
%135 = sitofp i64 %134 to float
%136 = fdiv float %131, %135
%137 = fpext float %136 to double
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i32 %126, i64 %129, double %137)
%139 = load i32, i32* %7
store i32 %139, i32* %3
br label %140
140: ; preds = %125, %51, %37, %21
%141 = load i32, i32* %3
ret i32 %141
}

LLVM IR (-O2):
@.str.2 = [6 x i8] c"%s%%d\00"
@.str.3 = [22 x i8] c"chown (%s) error: %s\0A\00"
@errno = global i32 0
@.str.4 = [49 x i8] c" - chowned %d (time %ld ; total %ld ; last %ld)\0A\00"
@.str.5 = [51 x i8] c"total: %d chowns in %ld seconds: %f chowns/second\0A\00"
@str = [27 x i8] c"count must be at least one\00"
@str.6 = [14 x i8] c"name too long\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [4096 x i8]
%4 = alloca [4096 x i8]
%5 = getelementptr inbounds [4096 x i8], [4096 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [4096 x i8], [4096 x i8]* %4, i64 0, i64 0
%7 = add i32 %0, -6
%8 = icmp ult i32 %7, -2
br i1 %8, label %9, label %12
9: ; preds = %2
%10 = load i8*, i8** %1
%11 = tail call i32 @usage(i8* %10)
br label %98
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i8* @strtol(i8* nocapture %14, i32* null, i32 0)
%16 = ptrtoint i8* %15 to i64
%17 = trunc i64 %16 to i32
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = load i8*, i8** %18
%20 = tail call i32 @strlen(i8* %19)
%21 = icmp sgt i32 %20, 4080
br i1 %21, label %22, label %24
22: ; preds = %12
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str.6, i64 0, i64 0))
br label %98
24: ; preds = %12
%25 = tail call i64 @time(i32 0)
%26 = icmp eq i32 %0, 4
%27 = getelementptr inbounds i8*, i8** %1, i64 3
%28 = load i8*, i8** %27
%29 = tail call i8* @strtol(i8* nocapture %28, i32* null, i32 0)
br i1 %26, label %30, label %34
30: ; preds = %24
%31 = icmp slt i8* %29, inttoptr (i64 1 to i8*)
br i1 %31, label %32, label %39
32: ; preds = %30
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str, i64 0, i64 0))
br label %98
34: ; preds = %24
%35 = ptrtoint i8* %29 to i64
%36 = getelementptr inbounds i8*, i8** %1, i64 4
%37 = load i8*, i8** %36
%38 = tail call i8* @strtol(i8* nocapture %37, i32* null, i32 0)
br label %39
39: ; preds = %30, %34
%40 = phi i64 [ 0, %30 ], [ %35, %34 ]
%41 = phi i8* [ %29, %30 ], [ %38, %34 ]
%42 = ptrtoint i8* %41 to i64
%43 = load i8*, i8** %18
%44 = tail call i64 @strchr(i8* %43, i8 signext 37)
%45 = icmp eq i64 %44, 0
%46 = load i8*, i8** %18
br i1 %45, label %47, label %49
47: ; preds = %39
%48 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* %46)
br label %49
49: ; preds = %39, %47
%50 = phi i8* [ %5, %47 ], [ %46, %39 ]
%51 = icmp sgt i8* %41, null
br i1 %51, label %52, label %86
52: ; preds = %49
%53 = call i64 @llvm.smax.i64(i64 %42, i64 1)
br label %54
54: ; preds = %52, %79
%55 = phi i64 [ 0, %52 ], [ %81, %79 ]
%56 = phi i64 [ %40, %52 ], [ %82, %79 ]
%57 = phi i64 [ %25, %52 ], [ %80, %79 ]
%58 = call i32 (i8*, i8*, ...) @sprintf(i8* %6, i8* dereferenceable(1) %50, i64 %56)
%59 = call i32 @chown(i8* %6, i32 %17, i32 -1)
%60 = icmp eq i32 %59, 0
%61 = trunc i64 %55 to i32
br i1 %60, label %68, label %62
62: ; preds = %54
%63 = trunc i64 %55 to i32
%64 = load i32, i32* @errno
%65 = tail call i8* @strerror(i32 %64)
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %6, i8* %65)
%67 = load i32, i32* @errno
br label %86
68: ; preds = %54
%69 = urem i32 %61, 10000
%70 = icmp eq i32 %69, 0
br i1 %70, label %71, label %79
71: ; preds = %68
%72 = tail call i64 @time(i32 0)
%73 = tail call i64 @time(i32 0)
%74 = sub nsw i64 %73, %25
%75 = tail call i64 @time(i32 0)
%76 = sub nsw i64 %75, %57
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 %61, i64 %72, i64 %74, i64 %76)
%78 = tail call i64 @time(i32 0)
br label %79
79: ; preds = %68, %71
%80 = phi i64 [ %78, %71 ], [ %57, %68 ]
%81 = add nuw nsw i64 %55, 1
%82 = add nsw i64 %56, 1
%83 = icmp eq i64 %81, %53
br i1 %83, label %84, label %54
84: ; preds = %79
%85 = trunc i64 %53 to i32
br label %86
86: ; preds = %84, %49, %62
%87 = phi i32 [ %63, %62 ], [ 0, %49 ], [ %85, %84 ]
%88 = phi i32 [ %67, %62 ], [ 0, %49 ], [ 0, %84 ]
%89 = call i64 @time(i32 0)
%90 = sub nsw i64 %89, %25
%91 = sitofp i32 %87 to float
%92 = call i64 @time(i32 0)
%93 = sub nsw i64 %92, %25
%94 = sitofp i64 %93 to float
%95 = fdiv float %91, %94
%96 = fpext float %95 to double
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i32 %87, i64 %90, double %96)
br label %98
98: ; preds = %86, %32, %22, %9
%99 = phi i32 [ 1, %9 ], [ 1, %22 ], [ 1, %32 ], [ %88, %86 ]
ret i32 %99
}