#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 uint16_t;
struct timeval {
  int tv_usec;
  int /*<<< orphan*/ tv_sec;
};

/* Variables and functions */
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ gettimeofday(struct timeval *, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdout;
void sendData(char *pszNetInfo, unsigned long *plSystem, unsigned long *plUser,
              unsigned long *plNice, unsigned long *plIdle) {
  int j;
  struct timeval tv;
  uint16_t i;
  gettimeofday(&tv, NULL);
  fprintf(stdout, "%s %lu%03lu %lu %lu %lu %lu\n", "130", tv.tv_sec,
          (tv.tv_usec / 1000), plSystem[0], plUser[0], plNice[0], plIdle[0]);
  fprintf(stdout, "\n");
  fprintf(stdout, "%s", pszNetInfo);
  if (plSystem[1] + plUser[1] + plNice[1] == 0) {
    plSystem[1] = plSystem[0];
    plUser[1] = plUser[0];
    plNice[1] = plNice[0];
    plIdle[1] = plIdle[0];
  }
  for (j = 0; j < 4 / 2; j++) {
    fprintf(stdout, "cpu%i:", j);
    for (i = 1; i <= 2; i++) {
      fprintf(stdout, " %ld",
              plSystem[2 * j + i] + plUser[2 * j + i] + plNice[2 * j + i]);
    }
    for (i = 3; i <= 8; i++) {
      fprintf(stdout, " 0");
    }
    for (i = 1; i <= 2; i++) {
      fprintf(stdout, " %ld", plIdle[2 * j + i]);
    }
    for (i = 3; i <= 8; i++) {
      fprintf(stdout, " 0");
    }
    fprintf(stdout, "\n");
  }
  fprintf(stdout, "#\n");
  fflush(stdout);
}


x86 assembly (clang, -O0):
<sendData>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0x38(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1030 <gettimeofday@plt>
mov    0x2e80(%rip),%rax
mov    (%rax),%edi
mov    -0x34(%rbp),%ecx
mov    -0x38(%rbp),%eax
mov    $0x3e8,%esi
cltd
idiv   %esi
mov    %eax,%r8d
mov    -0x10(%rbp),%rax
mov    (%rax),%r9
mov    -0x18(%rbp),%rax
mov    (%rax),%r11
mov    -0x20(%rbp),%rax
mov    (%rax),%r10
mov    -0x28(%rbp),%rax
mov    (%rax),%rax
lea    0xe6a(%rip),%rsi
lea    0xe80(%rip),%rdx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e27(%rip),%rax
mov    (%rax),%edi
lea    0xe72(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xe44(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    -0x18(%rbp),%rcx
add    0x8(%rcx),%rax
mov    -0x20(%rbp),%rcx
add    0x8(%rcx),%rax
cmp    $0x0,%rax
jne    1242 <sendData+0x112>
mov    -0x10(%rbp),%rax
mov    (%rax),%rcx
mov    -0x10(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%rcx
mov    -0x18(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,0x8(%rax)
mov    -0x28(%rbp),%rax
mov    (%rax),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,0x8(%rax)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x2,-0x2c(%rbp)
jge    13ba <sendData+0x28a>
mov    0x2d86(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
lea    0xdbe(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x2,-0x3c(%rbp)
jg     12df <sendData+0x1af>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
add    (%rax,%rcx,8),%rdx
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
add    (%rax,%rcx,8),%rdx
lea    0xd61(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1274 <sendData+0x144>
movl   $0x3,-0x3c(%rbp)
cmpl   $0x8,-0x3c(%rbp)
jg     1315 <sendData+0x1e5>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12e6 <sendData+0x1b6>
movl   $0x1,-0x3c(%rbp)
cmpl   $0x2,-0x3c(%rbp)
jg     135f <sendData+0x22f>
mov    0x2cb3(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rax
mov    -0x2c(%rbp),%ecx
shl    $0x1,%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xce1(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    131c <sendData+0x1ec>
movl   $0x3,-0x3c(%rbp)
cmpl   $0x8,-0x3c(%rbp)
jg     1395 <sendData+0x265>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
lea    0xcb0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1366 <sendData+0x236>
mov    0x2c44(%rip),%rax
mov    (%rax),%edi
lea    0xc8f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1249 <sendData+0x119>
mov    0x2c1f(%rip),%rax
mov    (%rax),%edi
lea    0xc69(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c08(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sendData>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r8,%r13
mov    %rcx,%r14
mov    %rdx,%rbp
mov    %rsi,%rbx
mov    %rdi,%r12
lea    0x10(%rsp),%rdi
xor    %esi,%esi
call   1030 <gettimeofday@plt>
mov    0x2e80(%rip),%r15
mov    (%r15),%edi
mov    0x14(%rsp),%ecx
movslq 0x10(%rsp),%rax
imul   $0x10624dd3,%rax,%r8
mov    %r8,%rax
shr    $0x3f,%rax
sar    $0x26,%r8
add    %eax,%r8d
mov    (%rbx),%r9
sub    $0x8,%rsp
lea    0xe71(%rip),%rsi
lea    0xe87(%rip),%rdx
xor    %eax,%eax
push   0x0(%r13)
push   (%r14)
push   0x0(%rbp)
call   1040 <fprintf@plt>
add    $0x20,%rsp
mov    (%r15),%edi
lea    0xe7f(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
lea    0xe5b(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x8(%rbp),%rax
add    0x8(%rbx),%rax
add    0x8(%r14),%rax
jne    11fc <sendData+0xcc>
mov    (%rbx),%rax
mov    %rax,0x8(%rbx)
mov    0x0(%rbp),%rax
mov    %rax,0x8(%rbp)
mov    (%r14),%rax
mov    %rax,0x8(%r14)
mov    0x0(%r13),%rax
mov    %rax,0x8(%r13)
mov    %rbp,0x30(%rsp)
mov    %rbx,0x28(%rsp)
mov    $0x1,%al
mov    %r14,0x20(%rsp)
mov    %r13,0x18(%rsp)
xor    %r14d,%r14d
lea    0xe14(%rip),%r13
mov    0x20(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,0xc(%rsp)
mov    (%r15),%edi
lea    0xde6(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
shl    $0x4,%r14
mov    0x30(%rsp),%rbx
mov    0x8(%rbx,%r14,1),%rdx
mov    0x28(%rsp),%rbp
add    0x8(%rbp,%r14,1),%rdx
add    0x8(%r12,%r14,1),%rdx
lea    0xdbc(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    0x10(%rbx,%r14,1),%rdx
add    0x10(%rbp,%r14,1),%rdx
add    0x10(%r12,%r14,1),%rdx
lea    0xd9c(%rip),%rbp
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    0x18(%rsp),%rbx
mov    0x8(%rbx,%r14,1),%rdx
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    0x10(%rbx,%r14,1),%rdx
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
mov    %r13,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
lea    0xccc(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x1,%r14d
testb  $0x1,0xc(%rsp)
mov    $0x0,%eax
jne    1230 <sendData+0x100>
mov    (%r15),%edi
lea    0xca4(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <fflush@plt>

LLVM IR (-O0):
%struct.timeval = type { i32, i32 }
@stdout = global i32 0
@.str = [29 x i8] c"%s %lu%03lu %lu %lu %lu %lu\0A\00"
@.str.1 = [4 x i8] c"130\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [7 x i8] c"cpu%i:\00"
@.str.5 = [5 x i8] c" %ld\00"
@.str.6 = [3 x i8] c" 0\00"
@.str.7 = [3 x i8] c"#\0A\00"
define void @sendData(i8* %0, i64* %1, i64* %2, i64* %3, i64* %4) {
%6 = alloca i8*
%7 = alloca i64*
%8 = alloca i64*
%9 = alloca i64*
%10 = alloca i64*
%11 = alloca i32
%12 = alloca %struct.timeval
%13 = alloca i32
store i8* %0, i8** %6
store i64* %1, i64** %7
store i64* %2, i64** %8
store i64* %3, i64** %9
store i64* %4, i64** %10
%14 = call i32 @gettimeofday(%struct.timeval* %12, i32* null)
%15 = load i32, i32* @stdout
%16 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 1
%17 = load i32, i32* %16
%18 = getelementptr inbounds %struct.timeval, %struct.timeval* %12, i32 0, i32 0
%19 = load i32, i32* %18
%20 = sdiv i32 %19, 1000
%21 = load i64*, i64** %7
%22 = getelementptr inbounds i64, i64* %21, i64 0
%23 = load i64, i64* %22
%24 = load i64*, i64** %8
%25 = getelementptr inbounds i64, i64* %24, i64 0
%26 = load i64, i64* %25
%27 = load i64*, i64** %9
%28 = getelementptr inbounds i64, i64* %27, i64 0
%29 = load i64, i64* %28
%30 = load i64*, i64** %10
%31 = getelementptr inbounds i64, i64* %30, i64 0
%32 = load i64, i64* %31
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %20, i64 %23, i64 %26, i64 %29, i64 %32)
%34 = load i32, i32* @stdout
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%36 = load i32, i32* @stdout
%37 = load i8*, i8** %6
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %37)
%39 = load i64*, i64** %7
%40 = getelementptr inbounds i64, i64* %39, i64 1
%41 = load i64, i64* %40
%42 = load i64*, i64** %8
%43 = getelementptr inbounds i64, i64* %42, i64 1
%44 = load i64, i64* %43
%45 = add i64 %41, %44
%46 = load i64*, i64** %9
%47 = getelementptr inbounds i64, i64* %46, i64 1
%48 = load i64, i64* %47
%49 = add i64 %45, %48
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %72
51: ; preds = %5
%52 = load i64*, i64** %7
%53 = getelementptr inbounds i64, i64* %52, i64 0
%54 = load i64, i64* %53
%55 = load i64*, i64** %7
%56 = getelementptr inbounds i64, i64* %55, i64 1
store i64 %54, i64* %56
%57 = load i64*, i64** %8
%58 = getelementptr inbounds i64, i64* %57, i64 0
%59 = load i64, i64* %58
%60 = load i64*, i64** %8
%61 = getelementptr inbounds i64, i64* %60, i64 1
store i64 %59, i64* %61
%62 = load i64*, i64** %9
%63 = getelementptr inbounds i64, i64* %62, i64 0
%64 = load i64, i64* %63
%65 = load i64*, i64** %9
%66 = getelementptr inbounds i64, i64* %65, i64 1
store i64 %64, i64* %66
%67 = load i64*, i64** %10
%68 = getelementptr inbounds i64, i64* %67, i64 0
%69 = load i64, i64* %68
%70 = load i64*, i64** %10
%71 = getelementptr inbounds i64, i64* %70, i64 1
store i64 %69, i64* %71
br label %72
72: ; preds = %51, %5
store i32 0, i32* %11
br label %73
73: ; preds = %156, %72
%74 = load i32, i32* %11
%75 = icmp slt i32 %74, 2
br i1 %75, label %76, label %159
76: ; preds = %73
%77 = load i32, i32* @stdout
%78 = load i32, i32* %11
%79 = call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %78)
store i32 1, i32* %13
br label %80
80: ; preds = %112, %76
%81 = load i32, i32* %13
%82 = icmp sle i32 %81, 2
br i1 %82, label %83, label %115
83: ; preds = %80
%84 = load i32, i32* @stdout
%85 = load i64*, i64** %7
%86 = load i32, i32* %11
%87 = mul nsw i32 2, %86
%88 = load i32, i32* %13
%89 = add nsw i32 %87, %88
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i64, i64* %85, i64 %90
%92 = load i64, i64* %91
%93 = load i64*, i64** %8
%94 = load i32, i32* %11
%95 = mul nsw i32 2, %94
%96 = load i32, i32* %13
%97 = add nsw i32 %95, %96
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds i64, i64* %93, i64 %98
%100 = load i64, i64* %99
%101 = add i64 %92, %100
%102 = load i64*, i64** %9
%103 = load i32, i32* %11
%104 = mul nsw i32 2, %103
%105 = load i32, i32* %13
%106 = add nsw i32 %104, %105
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds i64, i64* %102, i64 %107
%109 = load i64, i64* %108
%110 = add i64 %101, %109
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %110)
br label %112
112: ; preds = %83
%113 = load i32, i32* %13
%114 = add nsw i32 %113, 1
store i32 %114, i32* %13
br label %80
115: ; preds = %80
store i32 3, i32* %13
br label %116
116: ; preds = %122, %115
%117 = load i32, i32* %13
%118 = icmp sle i32 %117, 8
br i1 %118, label %119, label %125
119: ; preds = %116
%120 = load i32, i32* @stdout
%121 = call i32 (i32, i8*, ...) @fprintf(i32 %120, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %122
122: ; preds = %119
%123 = load i32, i32* %13
%124 = add nsw i32 %123, 1
store i32 %124, i32* %13
br label %116
125: ; preds = %116
store i32 1, i32* %13
br label %126
126: ; preds = %140, %125
%127 = load i32, i32* %13
%128 = icmp sle i32 %127, 2
br i1 %128, label %129, label %143
129: ; preds = %126
%130 = load i32, i32* @stdout
%131 = load i64*, i64** %10
%132 = load i32, i32* %11
%133 = mul nsw i32 2, %132
%134 = load i32, i32* %13
%135 = add nsw i32 %133, %134
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i64, i64* %131, i64 %136
%138 = load i64, i64* %137
%139 = call i32 (i32, i8*, ...) @fprintf(i32 %130, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %138)
br label %140
140: ; preds = %129
%141 = load i32, i32* %13
%142 = add nsw i32 %141, 1
store i32 %142, i32* %13
br label %126
143: ; preds = %126
store i32 3, i32* %13
br label %144
144: ; preds = %150, %143
%145 = load i32, i32* %13
%146 = icmp sle i32 %145, 8
br i1 %146, label %147, label %153
147: ; preds = %144
%148 = load i32, i32* @stdout
%149 = call i32 (i32, i8*, ...) @fprintf(i32 %148, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %150
150: ; preds = %147
%151 = load i32, i32* %13
%152 = add nsw i32 %151, 1
store i32 %152, i32* %13
br label %144
153: ; preds = %144
%154 = load i32, i32* @stdout
%155 = call i32 (i32, i8*, ...) @fprintf(i32 %154, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %156
156: ; preds = %153
%157 = load i32, i32* %11
%158 = add nsw i32 %157, 1
store i32 %158, i32* %11
br label %73
159: ; preds = %73
%160 = load i32, i32* @stdout
%161 = call i32 (i32, i8*, ...) @fprintf(i32 %160, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%162 = load i32, i32* @stdout
%163 = call i32 @fflush(i32 %162)
ret void
}

LLVM IR (-O2):
%struct.timeval = type { i32, i32 }
@stdout = global i32 0
@.str = [29 x i8] c"%s %lu%03lu %lu %lu %lu %lu\0A\00"
@.str.1 = [4 x i8] c"130\00"
@.str.2 = [2 x i8] c"\0A\00"
@.str.3 = [3 x i8] c"%s\00"
@.str.4 = [7 x i8] c"cpu%i:\00"
@.str.5 = [5 x i8] c" %ld\00"
@.str.6 = [3 x i8] c" 0\00"
@.str.7 = [3 x i8] c"#\0A\00"
define void @sendData(i8* %0, i64* nocapture %1, i64* nocapture %2, i64* nocapture %3, i64* nocapture %4) {
%6 = alloca %struct.timeval
%7 = bitcast %struct.timeval* %6 to i8*
%8 = call i32 @gettimeofday(%struct.timeval* %6, i32* null)
%9 = load i32, i32* @stdout
%10 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 1
%11 = load i32, i32* %10
%12 = getelementptr inbounds %struct.timeval, %struct.timeval* %6, i64 0, i32 0
%13 = load i32, i32* %12
%14 = sdiv i32 %13, 1000
%15 = load i64, i64* %1
%16 = load i64, i64* %2
%17 = load i64, i64* %3
%18 = load i64, i64* %4
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %11, i32 %14, i64 %15, i64 %16, i64 %17, i64 %18)
%20 = load i32, i32* @stdout
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%22 = load i32, i32* @stdout
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %0)
%24 = getelementptr inbounds i64, i64* %1, i64 1
%25 = load i64, i64* %24
%26 = getelementptr inbounds i64, i64* %2, i64 1
%27 = load i64, i64* %26
%28 = add i64 %27, %25
%29 = getelementptr inbounds i64, i64* %3, i64 1
%30 = load i64, i64* %29
%31 = sub i64 0, %30
%32 = icmp eq i64 %28, %31
br i1 %32, label %33, label %39
33: ; preds = %5
%34 = load i64, i64* %1
store i64 %34, i64* %24
%35 = load i64, i64* %2
store i64 %35, i64* %26
%36 = load i64, i64* %3
store i64 %36, i64* %29
%37 = load i64, i64* %4
%38 = getelementptr inbounds i64, i64* %4, i64 1
store i64 %37, i64* %38
br label %39
39: ; preds = %33, %5
br label %40
40: ; preds = %39, %40
%41 = phi i1 [ false, %40 ], [ true, %39 ]
%42 = phi i64 [ 1, %40 ], [ 0, %39 ]
%43 = load i32, i32* @stdout
%44 = trunc i64 %42 to i32
%45 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %44)
%46 = shl nuw nsw i64 %42, 1
%47 = load i32, i32* @stdout
%48 = or i64 %46, 1
%49 = getelementptr inbounds i64, i64* %1, i64 %48
%50 = load i64, i64* %49
%51 = getelementptr inbounds i64, i64* %2, i64 %48
%52 = load i64, i64* %51
%53 = add i64 %52, %50
%54 = getelementptr inbounds i64, i64* %3, i64 %48
%55 = load i64, i64* %54
%56 = add i64 %53, %55
%57 = tail call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %56)
%58 = load i32, i32* @stdout
%59 = add nuw nsw i64 %46, 2
%60 = getelementptr inbounds i64, i64* %1, i64 %59
%61 = load i64, i64* %60
%62 = getelementptr inbounds i64, i64* %2, i64 %59
%63 = load i64, i64* %62
%64 = add i64 %63, %61
%65 = getelementptr inbounds i64, i64* %3, i64 %59
%66 = load i64, i64* %65
%67 = add i64 %64, %66
%68 = tail call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %67)
%69 = load i32, i32* @stdout
%70 = tail call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%71 = load i32, i32* @stdout
%72 = tail call i32 (i32, i8*, ...) @fprintf(i32 %71, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%73 = load i32, i32* @stdout
%74 = tail call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%75 = load i32, i32* @stdout
%76 = tail call i32 (i32, i8*, ...) @fprintf(i32 %75, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%77 = load i32, i32* @stdout
%78 = tail call i32 (i32, i8*, ...) @fprintf(i32 %77, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%79 = load i32, i32* @stdout
%80 = tail call i32 (i32, i8*, ...) @fprintf(i32 %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%81 = load i32, i32* @stdout
%82 = getelementptr inbounds i64, i64* %4, i64 %48
%83 = load i64, i64* %82
%84 = tail call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %83)
%85 = load i32, i32* @stdout
%86 = getelementptr inbounds i64, i64* %4, i64 %59
%87 = load i64, i64* %86
%88 = tail call i32 (i32, i8*, ...) @fprintf(i32 %85, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %87)
%89 = load i32, i32* @stdout
%90 = tail call i32 (i32, i8*, ...) @fprintf(i32 %89, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%91 = load i32, i32* @stdout
%92 = tail call i32 (i32, i8*, ...) @fprintf(i32 %91, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%93 = load i32, i32* @stdout
%94 = tail call i32 (i32, i8*, ...) @fprintf(i32 %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%95 = load i32, i32* @stdout
%96 = tail call i32 (i32, i8*, ...) @fprintf(i32 %95, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%97 = load i32, i32* @stdout
%98 = tail call i32 (i32, i8*, ...) @fprintf(i32 %97, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%99 = load i32, i32* @stdout
%100 = tail call i32 (i32, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%101 = load i32, i32* @stdout
%102 = tail call i32 (i32, i8*, ...) @fprintf(i32 %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br i1 %41, label %40, label %103
103: ; preds = %40
%104 = load i32, i32* @stdout
%105 = tail call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%106 = load i32, i32* @stdout
%107 = tail call i32 @fflush(i32 %106)
ret void
}