#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*/ values;
typedef int /*<<< orphan*/ key;

/* Variables and functions */
int /*<<< orphan*/ BPF_ANY;
int /*<<< orphan*/ BPF_MAP_TYPE_PERCPU_ARRAY;
int /*<<< orphan*/ _SC_NPROCESSORS_CONF;
int /*<<< orphan*/ assert(int);
int bpf_create_map(int /*<<< orphan*/, int, int, unsigned int,
                   int /*<<< orphan*/);
scalar_t__ bpf_lookup_elem(int, int *, long *);
scalar_t__ bpf_update_elem(int, int *, long *, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ printf(char *, char *);
char *strerror(int /*<<< orphan*/);
unsigned int sysconf(int /*<<< orphan*/);
void test_percpu_arraymap_many_keys(void) {
  unsigned nr_cpus = sysconf(_SC_NPROCESSORS_CONF);
  unsigned nr_keys = 20000;
  long values[nr_cpus];
  int key, map_fd, i;
  map_fd = bpf_create_map(BPF_MAP_TYPE_PERCPU_ARRAY, sizeof(key),
                          sizeof(values[0]), nr_keys, 0);
  if (map_fd < 0) {
    printf("failed to create per-cpu arraymap '%s'\n", strerror(errno));
    exit(1);
  }
  for (i = 0; i < nr_cpus; i++)
    values[i] = i + 10;
  for (key = 0; key < nr_keys; key++)
    assert(bpf_update_elem(map_fd, &key, values, BPF_ANY) == 0);
  for (key = 0; key < nr_keys; key++) {
    for (i = 0; i < nr_cpus; i++)
      values[i] = 0;
    assert(bpf_lookup_elem(map_fd, &key, values) == 0);
    for (i = 0; i < nr_cpus; i++)
      assert(values[i] == i + 10);
  }
  close(map_fd);
}


x86 assembly (clang, -O0):
<test_percpu_arraymap_many_keys>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x2e29(%rip),%rax
mov    (%rax),%edi
call   1090 <sysconf@plt>
mov    %eax,-0x4(%rbp)
movl   $0x4e20,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
mov    0x2df2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%ecx
mov    $0x4,%esi
mov    $0x8,%edx
xor    %r8d,%r8d
call   1060 <bpf_create_map@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
jge    1229 <test_percpu_arraymap_many_keys+0x99>
mov    0x2dcf(%rip),%rax
mov    (%rax),%edi
call   10b0 <strerror@plt>
mov    %rax,%rsi
lea    0xde6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    125f <test_percpu_arraymap_many_keys+0xcf>
mov    -0x30(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0xa,%ecx
movslq %ecx,%rdx
movslq -0x24(%rbp),%rcx
mov    %rdx,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1230 <test_percpu_arraymap_many_keys+0xa0>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    12aa <test_percpu_arraymap_many_keys+0x11a>
mov    -0x30(%rbp),%rdx
mov    -0x20(%rbp),%edi
mov    0x2d60(%rip),%rax
mov    (%rax),%ecx
lea    -0x1c(%rbp),%rsi
call   1070 <bpf_update_elem@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1266 <test_percpu_arraymap_many_keys+0xd6>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1368 <test_percpu_arraymap_many_keys+0x1d8>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    12ee <test_percpu_arraymap_many_keys+0x15e>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
movq   $0x0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12c4 <test_percpu_arraymap_many_keys+0x134>
mov    -0x30(%rbp),%rdx
mov    -0x20(%rbp),%edi
lea    -0x1c(%rbp),%rsi
call   1080 <bpf_lookup_elem@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    1355 <test_percpu_arraymap_many_keys+0x1c5>
mov    -0x30(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0xa,%ecx
movslq %ecx,%rcx
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1316 <test_percpu_arraymap_many_keys+0x186>
jmp    135a <test_percpu_arraymap_many_keys+0x1ca>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b1 <test_percpu_arraymap_many_keys+0x121>
mov    -0x20(%rbp),%edi
call   1040 <close@plt>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_percpu_arraymap_many_keys>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
call   10a0 <sysconf@plt>
mov    %eax,%r13d
mov    %rsp,%rbx
lea    0xf(,%r13,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x2df2(%rip),%rax
mov    (%rax),%edi
mov    $0x4,%esi
mov    $0x8,%edx
mov    $0x4e20,%ecx
xor    %r8d,%r8d
call   1070 <bpf_create_map@plt>
test   %eax,%eax
js     14bb <test_percpu_arraymap_many_keys+0x31b>
mov    %eax,%r14d
test   %r13,%r13
je     13a7 <test_percpu_arraymap_many_keys+0x207>
cmp    $0x4,%r13d
jae    1218 <test_percpu_arraymap_many_keys+0x78>
xor    %eax,%eax
jmp    137d <test_percpu_arraymap_many_keys+0x1dd>
mov    %r13d,%eax
and    $0xfffffffc,%eax
lea    -0x4(%rax),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0xc,%rsi
jae    1247 <test_percpu_arraymap_many_keys+0xa7>
movdqa 0xdc0(%rip),%xmm0
xor    %esi,%esi
jmp    1319 <test_percpu_arraymap_many_keys+0x179>
and    $0xfffffffffffffffc,%rdx
movdqa 0xdad(%rip),%xmm6
xor    %esi,%esi
movdqa 0xdb2(%rip),%xmm8
movdqa 0xdb9(%rip),%xmm9
movdqa 0xdc0(%rip),%xmm10
movdqa 0xdc7(%rip),%xmm11
movdqa 0xdcf(%rip),%xmm5
movdqa 0xdd7(%rip),%xmm7
movdqa 0xddf(%rip),%xmm1
movdqa 0xde7(%rip),%xmm2
movdqa %xmm6,%xmm0
nopl   (%rax)
movdqa %xmm6,%xmm3
paddq  %xmm8,%xmm3
movdqa %xmm6,%xmm4
paddq  %xmm9,%xmm4
movdqa %xmm3,(%rbx,%rsi,8)
movdqa %xmm4,0x10(%rbx,%rsi,8)
movdqa %xmm6,%xmm3
paddq  %xmm10,%xmm3
paddq  %xmm11,%xmm0
movdqa %xmm3,0x20(%rbx,%rsi,8)
movdqa %xmm0,0x30(%rbx,%rsi,8)
movdqa %xmm6,%xmm3
paddq  %xmm5,%xmm3
movdqa %xmm6,%xmm4
paddq  %xmm7,%xmm4
movdqa %xmm3,0x40(%rbx,%rsi,8)
movdqa %xmm4,0x50(%rbx,%rsi,8)
movdqa %xmm6,%xmm3
paddq  %xmm1,%xmm3
paddq  %xmm2,%xmm6
movdqa %xmm3,0x60(%rbx,%rsi,8)
movdqa %xmm6,0x70(%rbx,%rsi,8)
add    $0x10,%rsi
movdqa %xmm0,%xmm6
add    $0xfffffffffffffffc,%rdx
jne    12a0 <test_percpu_arraymap_many_keys+0x100>
test   %rcx,%rcx
je     1378 <test_percpu_arraymap_many_keys+0x1d8>
lea    (%rbx,%rsi,8),%rdx
add    $0x10,%rdx
shl    $0x5,%rcx
xor    %esi,%esi
movdqa 0xcdc(%rip),%xmm1
movdqa 0xce4(%rip),%xmm2
movdqa 0xd4c(%rip),%xmm3
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movdqa %xmm0,%xmm4
paddq  %xmm1,%xmm4
movdqa %xmm0,%xmm5
paddq  %xmm2,%xmm5
movdqa %xmm4,-0x10(%rdx,%rsi,1)
movdqa %xmm5,(%rdx,%rsi,1)
paddq  %xmm3,%xmm0
add    $0x20,%rsi
cmp    %rsi,%rcx
jne    1350 <test_percpu_arraymap_many_keys+0x1b0>
cmp    %r13,%rax
je     13a7 <test_percpu_arraymap_many_keys+0x207>
add    $0xa,%rax
mov    %r13,%rcx
neg    %rcx
nopw   0x0(%rax,%rax,1)
mov    %rax,-0x50(%rbx,%rax,8)
lea    (%rcx,%rax,1),%rdx
add    $0x1,%rdx
add    $0x1,%rax
cmp    $0xa,%rdx
jne    1390 <test_percpu_arraymap_many_keys+0x1f0>
movl   $0x0,-0x2c(%rbp)
mov    0x2c2b(%rip),%r12
lea    -0x2c(%rbp),%r15
nopl   0x0(%rax)
mov    (%r12),%ecx
mov    %r14d,%edi
mov    %r15,%rsi
mov    %rbx,%rdx
call   1080 <bpf_update_elem@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmp    $0x4e20,%eax
jb     13c0 <test_percpu_arraymap_many_keys+0x220>
movl   $0x0,-0x2c(%rbp)
lea    0x0(,%r13,8),%rax
mov    %rax,-0x38(%rbp)
mov    %r13,%r15
neg    %r13
jmp    143d <test_percpu_arraymap_many_keys+0x29d>
nopl   0x0(%rax,%rax,1)
mov    %r14d,%edi
lea    -0x2c(%rbp),%rsi
mov    %rbx,%rdx
call   1090 <bpf_lookup_elem@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
cmp    $0x4e20,%eax
jae    14a4 <test_percpu_arraymap_many_keys+0x304>
test   %r15,%r15
je     1410 <test_percpu_arraymap_many_keys+0x270>
mov    %rbx,%rdi
xor    %esi,%esi
mov    -0x38(%rbp),%rdx
call   1040 <memset@plt>
mov    %r14d,%edi
lea    -0x2c(%rbp),%rsi
mov    %rbx,%rdx
call   1090 <bpf_lookup_elem@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    $0xa,%r12d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %edi,%edi
cmp    -0x50(%rbx,%r12,8),%r12
sete   %dil
call   1060 <assert@plt>
lea    (%r12,%r13,1),%rax
add    $0x1,%rax
add    $0x1,%r12
cmp    $0xa,%rax
jne    1480 <test_percpu_arraymap_many_keys+0x2e0>
jmp    142d <test_percpu_arraymap_many_keys+0x28d>
mov    %r14d,%edi
call   1050 <close@plt>
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2b16(%rip),%rax
mov    (%rax),%edi
call   10c0 <strerror@plt>
lea    0xbd0(%rip),%rdi
mov    %rax,%rsi
call   1030 <printf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@_SC_NPROCESSORS_CONF = global i32 0
@BPF_MAP_TYPE_PERCPU_ARRAY = global i32 0
@.str = [40 x i8] c"failed to create per-cpu arraymap '%s'\0A\00"
@errno = global i32 0
@BPF_ANY = global i32 0
define void @test_percpu_arraymap_many_keys() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = load i32, i32* @_SC_NPROCESSORS_CONF
%9 = call i32 @sysconf(i32 %8)
store i32 %9, i32* %1
store i32 20000, i32* %2
%10 = load i32, i32* %1
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %3
%13 = alloca i64, i64 %11
store i64 %11, i64* %4
%14 = load i32, i32* @BPF_MAP_TYPE_PERCPU_ARRAY
%15 = load i32, i32* %2
%16 = call i32 @bpf_create_map(i32 %14, i32 4, i32 8, i32 %15, i32 0)
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = icmp slt i32 %17, 0
br i1 %18, label %19, label %24
19: ; preds = %0
%20 = load i32, i32* @errno
%21 = call i8* @strerror(i32 %20)
%22 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %0
store i32 0, i32* %7
br label %25
25: ; preds = %36, %24
%26 = load i32, i32* %7
%27 = load i32, i32* %1
%28 = icmp ult i32 %26, %27
br i1 %28, label %29, label %39
29: ; preds = %25
%30 = load i32, i32* %7
%31 = add nsw i32 %30, 10
%32 = sext i32 %31 to i64
%33 = load i32, i32* %7
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds i64, i64* %13, i64 %34
store i64 %32, i64* %35
br label %36
36: ; preds = %29
%37 = load i32, i32* %7
%38 = add nsw i32 %37, 1
store i32 %38, i32* %7
br label %25
39: ; preds = %25
store i32 0, i32* %5
br label %40
40: ; preds = %51, %39
%41 = load i32, i32* %5
%42 = load i32, i32* %2
%43 = icmp ult i32 %41, %42
br i1 %43, label %44, label %54
44: ; preds = %40
%45 = load i32, i32* %6
%46 = load i32, i32* @BPF_ANY
%47 = call i64 @bpf_update_elem(i32 %45, i32* %5, i64* %13, i32 %46)
%48 = icmp eq i64 %47, 0
%49 = zext i1 %48 to i32
%50 = call i32 @assert(i32 %49)
br label %51
51: ; preds = %44
%52 = load i32, i32* %5
%53 = add nsw i32 %52, 1
store i32 %53, i32* %5
br label %40
54: ; preds = %40
store i32 0, i32* %5
br label %55
55: ; preds = %96, %54
%56 = load i32, i32* %5
%57 = load i32, i32* %2
%58 = icmp ult i32 %56, %57
br i1 %58, label %59, label %99
59: ; preds = %55
store i32 0, i32* %7
br label %60
60: ; preds = %68, %59
%61 = load i32, i32* %7
%62 = load i32, i32* %1
%63 = icmp ult i32 %61, %62
br i1 %63, label %64, label %71
64: ; preds = %60
%65 = load i32, i32* %7
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i64, i64* %13, i64 %66
store i64 0, i64* %67
br label %68
68: ; preds = %64
%69 = load i32, i32* %7
%70 = add nsw i32 %69, 1
store i32 %70, i32* %7
br label %60
71: ; preds = %60
%72 = load i32, i32* %6
%73 = call i64 @bpf_lookup_elem(i32 %72, i32* %5, i64* %13)
%74 = icmp eq i64 %73, 0
%75 = zext i1 %74 to i32
%76 = call i32 @assert(i32 %75)
store i32 0, i32* %7
br label %77
77: ; preds = %92, %71
%78 = load i32, i32* %7
%79 = load i32, i32* %1
%80 = icmp ult i32 %78, %79
br i1 %80, label %81, label %95
81: ; preds = %77
%82 = load i32, i32* %7
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i64, i64* %13, i64 %83
%85 = load i64, i64* %84
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 10
%88 = sext i32 %87 to i64
%89 = icmp eq i64 %85, %88
%90 = zext i1 %89 to i32
%91 = call i32 @assert(i32 %90)
br label %92
92: ; preds = %81
%93 = load i32, i32* %7
%94 = add nsw i32 %93, 1
store i32 %94, i32* %7
br label %77
95: ; preds = %77
br label %96
96: ; preds = %95
%97 = load i32, i32* %5
%98 = add nsw i32 %97, 1
store i32 %98, i32* %5
br label %55
99: ; preds = %55
%100 = load i32, i32* %6
%101 = call i32 @close(i32 %100)
%102 = load i8*, i8** %3
ret void
}

LLVM IR (-O2):
@_SC_NPROCESSORS_CONF = global i32 0
@BPF_MAP_TYPE_PERCPU_ARRAY = global i32 0
@.str = [40 x i8] c"failed to create per-cpu arraymap '%s'\0A\00"
@errno = global i32 0
@BPF_ANY = global i32 0
define void @test_percpu_arraymap_many_keys() {
%1 = alloca i32
%2 = load i32, i32* @_SC_NPROCESSORS_CONF
%3 = tail call i32 @sysconf(i32 %2)
%4 = zext i32 %3 to i64
%5 = alloca i64, i64 %4
%6 = bitcast i64* %5 to i8*
%7 = bitcast i32* %1 to i8*
%8 = load i32, i32* @BPF_MAP_TYPE_PERCPU_ARRAY
%9 = tail call i32 @bpf_create_map(i32 %8, i32 4, i32 8, i32 20000, i32 0)
%10 = icmp slt i32 %9, 0
br i1 %10, label %81, label %11
11: ; preds = %0
%12 = icmp eq i32 %3, 0
br i1 %12, label %86, label %13
13: ; preds = %11
%14 = icmp ult i32 %3, 4
br i1 %14, label %79, label %15
15: ; preds = %13
%16 = and i64 %4, 4294967292
%17 = add nsw i64 %16, -4
%18 = lshr exact i64 %17, 2
%19 = add nuw nsw i64 %18, 1
%20 = and i64 %19, 3
%21 = icmp ult i64 %17, 12
br i1 %21, label %59, label %22
22: ; preds = %15
%23 = and i64 %19, 9223372036854775804
br label %24
24: ; preds = %24, %22
%25 = phi i64 [ 0, %22 ], [ %55, %24 ]
%26 = phi <2 x i64> [ <i64 0, i64 1>, %22 ], [ %56, %24 ]
%27 = phi i64 [ 0, %22 ], [ %57, %24 ]
%28 = add nuw nsw <2 x i64> %26, <i64 10, i64 10>
%29 = add <2 x i64> %26, <i64 12, i64 12>
%30 = getelementptr inbounds i64, i64* %5, i64 %25
%31 = bitcast i64* %30 to <2 x i64>*
store <2 x i64> %28, <2 x i64>* %31
%32 = getelementptr inbounds i64, i64* %30, i64 2
%33 = bitcast i64* %32 to <2 x i64>*
store <2 x i64> %29, <2 x i64>* %33
%34 = or i64 %25, 4
%35 = add <2 x i64> %26, <i64 14, i64 14>
%36 = add <2 x i64> %26, <i64 16, i64 16>
%37 = getelementptr inbounds i64, i64* %5, i64 %34
%38 = bitcast i64* %37 to <2 x i64>*
store <2 x i64> %35, <2 x i64>* %38
%39 = getelementptr inbounds i64, i64* %37, i64 2
%40 = bitcast i64* %39 to <2 x i64>*
store <2 x i64> %36, <2 x i64>* %40
%41 = or i64 %25, 8
%42 = add <2 x i64> %26, <i64 18, i64 18>
%43 = add <2 x i64> %26, <i64 20, i64 20>
%44 = getelementptr inbounds i64, i64* %5, i64 %41
%45 = bitcast i64* %44 to <2 x i64>*
store <2 x i64> %42, <2 x i64>* %45
%46 = getelementptr inbounds i64, i64* %44, i64 2
%47 = bitcast i64* %46 to <2 x i64>*
store <2 x i64> %43, <2 x i64>* %47
%48 = or i64 %25, 12
%49 = add <2 x i64> %26, <i64 22, i64 22>
%50 = add <2 x i64> %26, <i64 24, i64 24>
%51 = getelementptr inbounds i64, i64* %5, i64 %48
%52 = bitcast i64* %51 to <2 x i64>*
store <2 x i64> %49, <2 x i64>* %52
%53 = getelementptr inbounds i64, i64* %51, i64 2
%54 = bitcast i64* %53 to <2 x i64>*
store <2 x i64> %50, <2 x i64>* %54
%55 = add nuw i64 %25, 16
%56 = add <2 x i64> %26, <i64 16, i64 16>
%57 = add nuw i64 %27, 4
%58 = icmp eq i64 %57, %23
br i1 %58, label %59, label %24
59: ; preds = %24, %15
%60 = phi i64 [ 0, %15 ], [ %55, %24 ]
%61 = phi <2 x i64> [ <i64 0, i64 1>, %15 ], [ %56, %24 ]
%62 = icmp eq i64 %20, 0
br i1 %62, label %77, label %63
63: ; preds = %59, %63
%64 = phi i64 [ %73, %63 ], [ %60, %59 ]
%65 = phi <2 x i64> [ %74, %63 ], [ %61, %59 ]
%66 = phi i64 [ %75, %63 ], [ 0, %59 ]
%67 = add nuw nsw <2 x i64> %65, <i64 10, i64 10>
%68 = add <2 x i64> %65, <i64 12, i64 12>
%69 = getelementptr inbounds i64, i64* %5, i64 %64
%70 = bitcast i64* %69 to <2 x i64>*
store <2 x i64> %67, <2 x i64>* %70
%71 = getelementptr inbounds i64, i64* %69, i64 2
%72 = bitcast i64* %71 to <2 x i64>*
store <2 x i64> %68, <2 x i64>* %72
%73 = add nuw i64 %64, 4
%74 = add <2 x i64> %65, <i64 4, i64 4>
%75 = add i64 %66, 1
%76 = icmp eq i64 %75, %20
br i1 %76, label %77, label %63
77: ; preds = %63, %59
%78 = icmp eq i64 %16, %4
br i1 %78, label %86, label %79
79: ; preds = %13, %77
%80 = phi i64 [ 0, %13 ], [ %16, %77 ]
br label %87
81: ; preds = %0
%82 = load i32, i32* @errno
%83 = tail call i8* @strerror(i32 %82)
%84 = tail call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* %83)
%85 = tail call i32 @exit(i32 1)
unreachable
86: ; preds = %87, %77, %11
store i32 0, i32* %1
br label %95
87: ; preds = %79, %87
%88 = phi i64 [ %91, %87 ], [ %80, %79 ]
%89 = add nuw nsw i64 %88, 10
%90 = getelementptr inbounds i64, i64* %5, i64 %88
store i64 %89, i64* %90
%91 = add nuw nsw i64 %88, 1
%92 = icmp eq i64 %91, %4
br i1 %92, label %86, label %87
93: ; preds = %95
store i32 0, i32* %1
%94 = shl nuw nsw i64 %4, 3
br label %104
95: ; preds = %86, %95
%96 = load i32, i32* @BPF_ANY
%97 = call i64 @bpf_update_elem(i32 %9, i32* %1, i64* %5, i32 %96)
%98 = icmp eq i64 %97, 0
%99 = zext i1 %98 to i32
%100 = call i32 @assert(i32 %99)
%101 = load i32, i32* %1
%102 = add nsw i32 %101, 1
store i32 %102, i32* %1
%103 = icmp ult i32 %102, 20000
br i1 %103, label %95, label %93
104: ; preds = %93, %125
br i1 %12, label %120, label %105
105: ; preds = %104
%106 = call i64 @bpf_lookup_elem(i32 %9, i32* %1, i64* %5)
%107 = icmp eq i64 %106, 0
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
br label %110
110: ; preds = %105, %110
%111 = phi i64 [ %118, %110 ], [ 0, %105 ]
%112 = getelementptr inbounds i64, i64* %5, i64 %111
%113 = load i64, i64* %112
%114 = add nuw nsw i64 %111, 10
%115 = icmp eq i64 %113, %114
%116 = zext i1 %115 to i32
%117 = call i32 @assert(i32 %116)
%118 = add nuw nsw i64 %111, 1
%119 = icmp eq i64 %118, %4
br i1 %119, label %125, label %110
120: ; preds = %104
%121 = call i64 @bpf_lookup_elem(i32 %9, i32* %1, i64* %5)
%122 = icmp eq i64 %121, 0
%123 = zext i1 %122 to i32
%124 = call i32 @assert(i32 %123)
br label %125
125: ; preds = %110, %120
%126 = load i32, i32* %1
%127 = add nsw i32 %126, 1
store i32 %127, i32* %1
%128 = icmp ult i32 %127, 20000
br i1 %128, label %104, label %129
129: ; preds = %125
%130 = call i32 @close(i32 %9)
ret void
}