#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 scalar_t__ pid_t;

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ MAP_SHARED;
int /*<<< orphan*/ O_RDWR;
int PROT_READ;
int PROT_WRITE;
int /*<<< orphan*/ close(int const);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ init_client(int *);
int /*<<< orphan*/ init_server();
scalar_t__ mmap(int /*<<< orphan*/, int, int, int /*<<< orphan*/, int const,
                int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ wait(int *);
int main(int argc, char **argv) {
  const int fd = open("/dev/zero", O_RDWR);
  int *result = (int *)mmap(0, 10000000 * sizeof(int), PROT_READ | PROT_WRITE,
                            MAP_SHARED, fd, 0);
  close(fd);
  const pid_t server_pid = fork();
  if (server_pid == 0) {
    init_server();
  }
  for (int i = 0; i < 10; ++i) {
    const pid_t pid = fork();
    if (pid < 0) {
      perror("fork");
      exit(EXIT_FAILURE);
    } else if (pid == 0) {
      init_client(result);
    }
  }
  for (int i = 0; i < 10 + 1; ++i) {
    int status;
    wait(&status);
  }
  int count = 0;
  for (int i = 2; i < 10000000; ++i) {
    if (result[i - 1] == result[i]) {
      ++count;
    }
  }
  printf("%d\n", count);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e1b(%rip),%rax
mov    (%rax),%esi
lea    0xe3a(%rip),%rdi
call   1070 <open@plt>
mov    %eax,-0x14(%rbp)
mov    0x2e23(%rip),%rax
mov    (%rax),%edx
mov    0x2de2(%rip),%rax
or     (%rax),%edx
mov    0x2e01(%rip),%rax
mov    (%rax),%ecx
mov    -0x14(%rbp),%r8d
xor    %r9d,%r9d
mov    $0x2625a00,%esi
mov    %r9d,%edi
call   1030 <mmap@plt>
mov    %rax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
call   1050 <close@plt>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1226 <main+0x86>
mov    $0x0,%al
call   1060 <init_server@plt>
movl   $0x0,-0x2c(%rbp)
cmpl   $0xa,-0x2c(%rbp)
jge    1293 <main+0xf3>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jge    1267 <main+0xc7>
lea    0xdb6(%rip),%rdi
call   1080 <perror@plt>
mov    0x2d68(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x38(%rbp)
jne    127b <main+0xdb>
mov    -0x20(%rbp),%rdi
call   10a0 <init_client@plt>
jmp    1280 <main+0xe0>
jmp    1285 <main+0xe5>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    122d <main+0x8d>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xb,-0x3c(%rbp)
jge    12bb <main+0x11b>
lea    -0x40(%rbp),%rdi
call   10b0 <wait@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    129a <main+0xfa>
movl   $0x0,-0x44(%rbp)
movl   $0x2,-0x48(%rbp)
cmpl   $0x989680,-0x48(%rbp)
jge    1313 <main+0x173>
mov    -0x20(%rbp),%rax
mov    -0x48(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x20(%rbp),%rcx
movslq -0x48(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jne    1300 <main+0x160>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1305 <main+0x165>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    12c9 <main+0x129>
mov    -0x44(%rbp),%esi
lea    0xcf2(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    0x2e29(%rip),%rax
mov    (%rax),%esi
lea    0xe48(%rip),%rdi
call   1070 <open@plt>
mov    %eax,%ebp
mov    0x2e32(%rip),%rax
mov    0x2df3(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    0x2e10(%rip),%rax
mov    (%rax),%ecx
xor    %edi,%edi
mov    $0x2625a00,%esi
mov    %ebp,%r8d
xor    %r9d,%r9d
call   1030 <mmap@plt>
mov    %rax,%rbx
mov    %ebp,%edi
call   1050 <close@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
jne    1209 <main+0x69>
xor    %eax,%eax
call   1060 <init_server@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    1223 <main+0x83>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    123d <main+0x9d>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    1257 <main+0xb7>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    1271 <main+0xd1>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    128b <main+0xeb>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    12a5 <main+0x105>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    12bf <main+0x11f>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    12d9 <main+0x139>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    12f3 <main+0x153>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %rax,%rax
js     145a <main+0x2ba>
jne    130d <main+0x16d>
mov    %rbx,%rdi
call   10a0 <init_client@plt>
lea    0xc(%rsp),%r14
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
mov    %r14,%rdi
call   10b0 <wait@plt>
movd   0x4(%rbx),%xmm0
pshufd $0x0,%xmm0,%xmm2
pxor   %xmm0,%xmm0
mov    $0x6,%eax
pxor   %xmm1,%xmm1
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movups -0x10(%rbx,%rax,4),%xmm3
shufps $0x3,%xmm3,%xmm2
shufps $0x98,%xmm3,%xmm2
pcmpeqd %xmm3,%xmm2
psubd  %xmm2,%xmm0
movups (%rbx,%rax,4),%xmm2
shufps $0x3,%xmm2,%xmm3
shufps $0x98,%xmm2,%xmm3
pcmpeqd %xmm2,%xmm3
psubd  %xmm3,%xmm1
add    $0x8,%rax
cmp    $0x98967e,%rax
jne    1390 <main+0x1f0>
pshufd $0xff,%xmm2,%xmm2
movd   %xmm2,%eax
paddd  %xmm0,%xmm1
pshufd $0xee,%xmm1,%xmm0
paddd  %xmm1,%xmm0
pshufd $0x55,%xmm0,%xmm1
paddd  %xmm0,%xmm1
movd   %xmm1,%ecx
mov    0x26259e8(%rbx),%edx
mov    0x26259ec(%rbx),%esi
xor    %edi,%edi
cmp    %edx,%eax
sete   %dil
add    %ecx,%edi
xor    %eax,%eax
cmp    %esi,%edx
sete   %al
add    %edi,%eax
mov    0x26259f0(%rbx),%ecx
xor    %edx,%edx
cmp    %ecx,%esi
sete   %dl
add    %eax,%edx
mov    0x26259f4(%rbx),%eax
xor    %esi,%esi
cmp    %eax,%ecx
sete   %sil
add    %edx,%esi
mov    0x26259f8(%rbx),%ecx
xor    %edx,%edx
cmp    %ecx,%eax
sete   %dl
add    %esi,%edx
xor    %esi,%esi
cmp    0x26259fc(%rbx),%ecx
sete   %sil
add    %edx,%esi
lea    0xbc5(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xba9(%rip),%rdi
call   1080 <perror@plt>
mov    0x2b5b(%rip),%rax
mov    (%rax),%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"/dev/zero\00"
@O_RDWR = global i32 0
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [4 x i8] c"%d\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 i64
%9 = alloca i32
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* @O_RDWR
%16 = call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %15)
store i32 %16, i32* %6
%17 = load i32, i32* @PROT_READ
%18 = load i32, i32* @PROT_WRITE
%19 = or i32 %17, %18
%20 = load i32, i32* @MAP_SHARED
%21 = load i32, i32* %6
%22 = call i64 @mmap(i32 0, i32 40000000, i32 %19, i32 %20, i32 %21, i32 0)
%23 = inttoptr i64 %22 to i32*
store i32* %23, i32** %7
%24 = load i32, i32* %6
%25 = call i32 @close(i32 %24)
%26 = call i64 (...) @fork()
store i64 %26, i64* %8
%27 = load i64, i64* %8
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %2
%30 = call i32 (...) @init_server()
br label %31
31: ; preds = %29, %2
store i32 0, i32* %9
br label %32
32: ; preds = %51, %31
%33 = load i32, i32* %9
%34 = icmp slt i32 %33, 10
br i1 %34, label %35, label %54
35: ; preds = %32
%36 = call i64 (...) @fork()
store i64 %36, i64* %10
%37 = load i64, i64* %10
%38 = icmp slt i64 %37, 0
br i1 %38, label %39, label %43
39: ; preds = %35
%40 = call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%41 = load i32, i32* @EXIT_FAILURE
%42 = call i32 @exit(i32 %41)
unreachable
43: ; preds = %35
%44 = load i64, i64* %10
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %49
46: ; preds = %43
%47 = load i32*, i32** %7
%48 = call i32 @init_client(i32* %47)
br label %49
49: ; preds = %46, %43
br label %50
50: ; preds = %49
br label %51
51: ; preds = %50
%52 = load i32, i32* %9
%53 = add nsw i32 %52, 1
store i32 %53, i32* %9
br label %32
54: ; preds = %32
store i32 0, i32* %11
br label %55
55: ; preds = %60, %54
%56 = load i32, i32* %11
%57 = icmp slt i32 %56, 11
br i1 %57, label %58, label %63
58: ; preds = %55
%59 = call i32 @wait(i32* %12)
br label %60
60: ; preds = %58
%61 = load i32, i32* %11
%62 = add nsw i32 %61, 1
store i32 %62, i32* %11
br label %55
63: ; preds = %55
store i32 0, i32* %13
store i32 2, i32* %14
br label %64
64: ; preds = %84, %63
%65 = load i32, i32* %14
%66 = icmp slt i32 %65, 10000000
br i1 %66, label %67, label %87
67: ; preds = %64
%68 = load i32*, i32** %7
%69 = load i32, i32* %14
%70 = sub nsw i32 %69, 1
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i32, i32* %68, i64 %71
%73 = load i32, i32* %72
%74 = load i32*, i32** %7
%75 = load i32, i32* %14
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i32, i32* %74, i64 %76
%78 = load i32, i32* %77
%79 = icmp eq i32 %73, %78
br i1 %79, label %80, label %83
80: ; preds = %67
%81 = load i32, i32* %13
%82 = add nsw i32 %81, 1
store i32 %82, i32* %13
br label %83
83: ; preds = %80, %67
br label %84
84: ; preds = %83
%85 = load i32, i32* %14
%86 = add nsw i32 %85, 1
store i32 %86, i32* %14
br label %64
87: ; preds = %64
%88 = load i32, i32* %13
%89 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %88)
%90 = load i32, i32* %3
ret i32 %90
}

LLVM IR (-O2):
@.str = [10 x i8] c"/dev/zero\00"
@O_RDWR = global i32 0
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@.str.1 = [5 x i8] c"fork\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = load i32, i32* @O_RDWR
%5 = tail call i32 @open(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @PROT_READ
%7 = load i32, i32* @PROT_WRITE
%8 = or i32 %7, %6
%9 = load i32, i32* @MAP_SHARED
%10 = tail call i64 @mmap(i32 0, i32 40000000, i32 %8, i32 %9, i32 %5, i32 0)
%11 = inttoptr i64 %10 to i32*
%12 = tail call i32 @close(i32 %5)
%13 = tail call i64 (...) @fork()
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %2
%16 = tail call i32 (...) @init_server()
br label %17
17: ; preds = %15, %2
%18 = tail call i64 (...) @fork()
%19 = icmp slt i64 %18, 0
br i1 %19, label %20, label %24
20: ; preds = %84, %77, %70, %63, %56, %49, %42, %35, %28, %17
%21 = tail call i32 @perror(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @exit(i32 %22)
unreachable
24: ; preds = %17
%25 = icmp eq i64 %18, 0
br i1 %25, label %26, label %28
26: ; preds = %24
%27 = tail call i32 @init_client(i32* %11)
br label %28
28: ; preds = %24, %26
%29 = tail call i64 (...) @fork()
%30 = icmp slt i64 %29, 0
br i1 %30, label %20, label %31
31: ; preds = %28
%32 = icmp eq i64 %29, 0
br i1 %32, label %33, label %35
33: ; preds = %31
%34 = tail call i32 @init_client(i32* %11)
br label %35
35: ; preds = %33, %31
%36 = tail call i64 (...) @fork()
%37 = icmp slt i64 %36, 0
br i1 %37, label %20, label %38
38: ; preds = %35
%39 = icmp eq i64 %36, 0
br i1 %39, label %40, label %42
40: ; preds = %38
%41 = tail call i32 @init_client(i32* %11)
br label %42
42: ; preds = %40, %38
%43 = tail call i64 (...) @fork()
%44 = icmp slt i64 %43, 0
br i1 %44, label %20, label %45
45: ; preds = %42
%46 = icmp eq i64 %43, 0
br i1 %46, label %47, label %49
47: ; preds = %45
%48 = tail call i32 @init_client(i32* %11)
br label %49
49: ; preds = %47, %45
%50 = tail call i64 (...) @fork()
%51 = icmp slt i64 %50, 0
br i1 %51, label %20, label %52
52: ; preds = %49
%53 = icmp eq i64 %50, 0
br i1 %53, label %54, label %56
54: ; preds = %52
%55 = tail call i32 @init_client(i32* %11)
br label %56
56: ; preds = %54, %52
%57 = tail call i64 (...) @fork()
%58 = icmp slt i64 %57, 0
br i1 %58, label %20, label %59
59: ; preds = %56
%60 = icmp eq i64 %57, 0
br i1 %60, label %61, label %63
61: ; preds = %59
%62 = tail call i32 @init_client(i32* %11)
br label %63
63: ; preds = %61, %59
%64 = tail call i64 (...) @fork()
%65 = icmp slt i64 %64, 0
br i1 %65, label %20, label %66
66: ; preds = %63
%67 = icmp eq i64 %64, 0
br i1 %67, label %68, label %70
68: ; preds = %66
%69 = tail call i32 @init_client(i32* %11)
br label %70
70: ; preds = %68, %66
%71 = tail call i64 (...) @fork()
%72 = icmp slt i64 %71, 0
br i1 %72, label %20, label %73
73: ; preds = %70
%74 = icmp eq i64 %71, 0
br i1 %74, label %75, label %77
75: ; preds = %73
%76 = tail call i32 @init_client(i32* %11)
br label %77
77: ; preds = %75, %73
%78 = tail call i64 (...) @fork()
%79 = icmp slt i64 %78, 0
br i1 %79, label %20, label %80
80: ; preds = %77
%81 = icmp eq i64 %78, 0
br i1 %81, label %82, label %84
82: ; preds = %80
%83 = tail call i32 @init_client(i32* %11)
br label %84
84: ; preds = %82, %80
%85 = tail call i64 (...) @fork()
%86 = icmp slt i64 %85, 0
br i1 %86, label %20, label %87
87: ; preds = %84
%88 = icmp eq i64 %85, 0
br i1 %88, label %89, label %91
89: ; preds = %87
%90 = tail call i32 @init_client(i32* %11)
br label %91
91: ; preds = %89, %87
%92 = bitcast i32* %3 to i8*
%93 = call i32 @wait(i32* %3)
%94 = call i32 @wait(i32* %3)
%95 = call i32 @wait(i32* %3)
%96 = call i32 @wait(i32* %3)
%97 = call i32 @wait(i32* %3)
%98 = call i32 @wait(i32* %3)
%99 = call i32 @wait(i32* %3)
%100 = call i32 @wait(i32* %3)
%101 = call i32 @wait(i32* %3)
%102 = call i32 @wait(i32* %3)
%103 = call i32 @wait(i32* %3)
%104 = getelementptr inbounds i32, i32* %11, i64 1
%105 = load i32, i32* %104
%106 = insertelement <4 x i32> poison, i32 %105, i64 3
br label %107
107: ; preds = %107, %91
%108 = phi i64 [ 0, %91 ], [ %127, %107 ]
%109 = phi <4 x i32> [ %106, %91 ], [ %118, %107 ]
%110 = phi <4 x i32> [ zeroinitializer, %91 ], [ %125, %107 ]
%111 = phi <4 x i32> [ zeroinitializer, %91 ], [ %126, %107 ]
%112 = or i64 %108, 2
%113 = getelementptr inbounds i32, i32* %11, i64 %112
%114 = bitcast i32* %113 to <4 x i32>*
%115 = load <4 x i32>, <4 x i32>* %114
%116 = getelementptr inbounds i32, i32* %113, i64 4
%117 = bitcast i32* %116 to <4 x i32>*
%118 = load <4 x i32>, <4 x i32>* %117
%119 = shufflevector <4 x i32> %109, <4 x i32> %115, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%120 = shufflevector <4 x i32> %115, <4 x i32> %118, <4 x i32> <i32 3, i32 4, i32 5, i32 6>
%121 = icmp eq <4 x i32> %119, %115
%122 = icmp eq <4 x i32> %120, %118
%123 = zext <4 x i1> %121 to <4 x i32>
%124 = zext <4 x i1> %122 to <4 x i32>
%125 = add <4 x i32> %110, %123
%126 = add <4 x i32> %111, %124
%127 = add nuw i64 %108, 8
%128 = icmp eq i64 %127, 9999992
br i1 %128, label %129, label %107
129: ; preds = %107
%130 = extractelement <4 x i32> %118, i64 3
%131 = add <4 x i32> %126, %125
%132 = call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %131)
%133 = getelementptr inbounds i32, i32* %11, i64 9999994
%134 = load i32, i32* %133
%135 = icmp eq i32 %130, %134
%136 = zext i1 %135 to i32
%137 = add nuw nsw i32 %132, %136
%138 = getelementptr inbounds i32, i32* %11, i64 9999995
%139 = load i32, i32* %138
%140 = icmp eq i32 %134, %139
%141 = zext i1 %140 to i32
%142 = add nuw nsw i32 %137, %141
%143 = getelementptr inbounds i32, i32* %11, i64 9999996
%144 = load i32, i32* %143
%145 = icmp eq i32 %139, %144
%146 = zext i1 %145 to i32
%147 = add nuw nsw i32 %142, %146
%148 = getelementptr inbounds i32, i32* %11, i64 9999997
%149 = load i32, i32* %148
%150 = icmp eq i32 %144, %149
%151 = zext i1 %150 to i32
%152 = add nuw nsw i32 %147, %151
%153 = getelementptr inbounds i32, i32* %11, i64 9999998
%154 = load i32, i32* %153
%155 = icmp eq i32 %149, %154
%156 = zext i1 %155 to i32
%157 = add nuw nsw i32 %152, %156
%158 = getelementptr inbounds i32, i32* %11, i64 9999999
%159 = load i32, i32* %158
%160 = icmp eq i32 %154, %159
%161 = zext i1 %160 to i32
%162 = add nuw nsw i32 %157, %161
%163 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %162)
ret i32 0
}