#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 /*<<< orphan*/ exit(int /*<<< orphan*/);
int fork();
int /*<<< orphan*/ free(int *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ srand(unsigned int);
scalar_t__ time(int /*<<< orphan*/ *);
int /*<<< orphan*/ wait(int /*<<< orphan*/ *);
int main() {
  int A[10], *B, i, t, pid;
  srand((unsigned int)time(NULL));
  B = (int *)malloc(10 * sizeof(int));
  t = 1 + rand() % 5;
  if ((pid = fork())) {
    for (i = 0; i < 10; ++i)
      A[i] = B[9 - i] = 10 + i;
    printf("Parent process going to sleep for %d seconds\n", t);
    sleep(t);
    printf("Parent process: A = %p, B = %p\n", A, B);
  } else {
    for (i = 0; i < 10; ++i)
      A[i] = B[9 - i] = i;
    i = t;
    while (i == t)
      t = 1 + rand() % 5;
    printf("Child process going to sleep for %d seconds\n", t);
    sleep(t);
    printf("Child process: A = %p, B = %p\n", A, B);
  }
  printf("A[] =");
  for (i = 0; i < 10; ++i)
    printf(" %d", A[i]);
  printf("\n");
  printf("B[] =");
  for (i = 0; i < 10; ++i)
    printf(" %d", B[i]);
  printf("\n");
  free(B);
  if (pid)
    wait(NULL);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1060 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    $0x28,%edi
call   1070 <malloc@plt>
mov    %rax,-0x38(%rbp)
mov    $0x0,%al
call   10c0 <rand@plt>
mov    $0x5,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x40(%rbp)
mov    $0x0,%al
call   10b0 <fork@plt>
mov    %eax,-0x44(%rbp)
cmp    $0x0,%eax
je     1268 <main+0xc8>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    1234 <main+0x94>
mov    -0x3c(%rbp),%ecx
add    $0xa,%ecx
mov    -0x38(%rbp),%rax
mov    $0x9,%edx
sub    -0x3c(%rbp),%edx
movslq %edx,%rdx
mov    %ecx,(%rax,%rdx,4)
movslq -0x3c(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11fc <main+0x5c>
mov    -0x40(%rbp),%esi
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%edi
call   1090 <sleep@plt>
lea    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12ff <main+0x15f>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    12a4 <main+0x104>
mov    -0x3c(%rbp),%ecx
mov    -0x38(%rbp),%rax
mov    $0x9,%edx
sub    -0x3c(%rbp),%edx
movslq %edx,%rdx
mov    %ecx,(%rax,%rdx,4)
movslq -0x3c(%rbp),%rax
mov    %ecx,-0x30(%rbp,%rax,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    126f <main+0xcf>
mov    -0x40(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x40(%rbp),%eax
jne    12d0 <main+0x130>
mov    $0x0,%al
call   10c0 <rand@plt>
mov    $0x5,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x40(%rbp)
jmp    12aa <main+0x10a>
mov    -0x40(%rbp),%esi
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%edi
call   1090 <sleep@plt>
lea    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
lea    0xd83(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    1342 <main+0x1a2>
movslq -0x3c(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%esi
lea    0xd73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1314 <main+0x174>
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd4d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x3c(%rbp)
cmpl   $0xa,-0x3c(%rbp)
jge    1396 <main+0x1f6>
mov    -0x38(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1365 <main+0x1c5>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x44(%rbp)
je     13c0 <main+0x220>
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <wait@plt>
xor    %edi,%edi
call   1080 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x28,%rsp
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%edi
call   1060 <srand@plt>
mov    $0x28,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
xor    %eax,%eax
call   10d0 <rand@plt>
mov    %eax,%ebp
cltq
imul   $0x66666667,%rax,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
lea    (%rax,%rax,4),%ebx
xor    %eax,%eax
call   10c0 <fork@plt>
mov    %eax,%r14d
test   %eax,%eax
jne    12cd <main+0x11d>
sub    %ebx,%ebp
movq   $0x1,0x20(%r15)
movaps 0xe06(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x4,0x10(%rsp)
movaps 0xe03(%rip),%xmm0
movups %xmm0,0x10(%r15)
movl   $0x5,0x14(%rsp)
movl   $0x6,0xc(%r15)
movl   $0x6,0x18(%rsp)
movl   $0x7,0x8(%r15)
movl   $0x7,0x1c(%rsp)
movl   $0x8,0x4(%r15)
movl   $0x8,0x20(%rsp)
movl   $0x9,(%r15)
movl   $0x9,0x24(%rsp)
nopl   0x0(%rax)
xor    %eax,%eax
call   10d0 <rand@plt>
movslq %eax,%rbx
imul   $0x66666667,%rbx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x21,%rax
add    %ecx,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebx
cmp    %ebx,%ebp
je     1280 <main+0xd0>
add    $0x1,%ebx
lea    0xddd(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
call   10a0 <sleep@plt>
lea    0xdf3(%rip),%rdi
jmp    1366 <main+0x1b6>
neg    %ebx
add    %ebp,%ebx
add    $0x1,%ebx
movabs $0xa0000000b,%rax
mov    %rax,0x20(%r15)
movaps 0xd17(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0xe,0x10(%rsp)
movaps 0xd14(%rip),%xmm0
movups %xmm0,0x10(%r15)
movl   $0xf,0x14(%rsp)
movl   $0x10,0xc(%r15)
movl   $0x10,0x18(%rsp)
movl   $0x11,0x8(%r15)
movl   $0x11,0x1c(%rsp)
movl   $0x12,0x4(%r15)
movl   $0x12,0x20(%rsp)
movl   $0x13,(%r15)
movl   $0x13,0x24(%rsp)
lea    0xcf1(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %ebx,%edi
call   10a0 <sleep@plt>
lea    0xd08(%rip),%rdi
mov    %rsp,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%rsp),%esi
lea    0xd55(%rip),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xcc0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x4(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x10(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x18(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x1c(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x20(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x24(%r15),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
call   1030 <free@plt>
test   %r14d,%r14d
je     14d4 <main+0x324>
xor    %edi,%edi
call   10b0 <wait@plt>
xor    %edi,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [46 x i8] c"Parent process going to sleep for %d seconds\0A\00"
@.str.1 = [32 x i8] c"Parent process: A = %p, B = %p\0A\00"
@.str.2 = [45 x i8] c"Child process going to sleep for %d seconds\0A\00"
@.str.3 = [31 x i8] c"Child process: A = %p, B = %p\0A\00"
@.str.4 = [6 x i8] c"A[] =\00"
@.str.5 = [4 x i8] c" %d\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [6 x i8] c"B[] =\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i64 @time(i32* null)
%8 = trunc i64 %7 to i32
%9 = call i32 @srand(i32 %8)
%10 = call i64 @malloc(i32 40)
%11 = inttoptr i64 %10 to i32*
store i32* %11, i32** %3
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 5
%14 = add nsw i32 1, %13
store i32 %14, i32* %5
%15 = call i32 (...) @fork()
store i32 %15, i32* %6
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %43
17: ; preds = %0
store i32 0, i32* %4
br label %18
18: ; preds = %32, %17
%19 = load i32, i32* %4
%20 = icmp slt i32 %19, 10
br i1 %20, label %21, label %35
21: ; preds = %18
%22 = load i32, i32* %4
%23 = add nsw i32 10, %22
%24 = load i32*, i32** %3
%25 = load i32, i32* %4
%26 = sub nsw i32 9, %25
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %24, i64 %27
store i32 %23, i32* %28
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %30
store i32 %23, i32* %31
br label %32
32: ; preds = %21
%33 = load i32, i32* %4
%34 = add nsw i32 %33, 1
store i32 %34, i32* %4
br label %18
35: ; preds = %18
%36 = load i32, i32* %5
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %36)
%38 = load i32, i32* %5
%39 = call i32 @sleep(i32 %38)
%40 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%41 = load i32*, i32** %3
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32* %40, i32* %41)
br label %78
43: ; preds = %0
store i32 0, i32* %4
br label %44
44: ; preds = %57, %43
%45 = load i32, i32* %4
%46 = icmp slt i32 %45, 10
br i1 %46, label %47, label %60
47: ; preds = %44
%48 = load i32, i32* %4
%49 = load i32*, i32** %3
%50 = load i32, i32* %4
%51 = sub nsw i32 9, %50
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i32, i32* %49, i64 %52
store i32 %48, i32* %53
%54 = load i32, i32* %4
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %55
store i32 %48, i32* %56
br label %57
57: ; preds = %47
%58 = load i32, i32* %4
%59 = add nsw i32 %58, 1
store i32 %59, i32* %4
br label %44
60: ; preds = %44
%61 = load i32, i32* %5
store i32 %61, i32* %4
br label %62
62: ; preds = %66, %60
%63 = load i32, i32* %4
%64 = load i32, i32* %5
%65 = icmp eq i32 %63, %64
br i1 %65, label %66, label %70
66: ; preds = %62
%67 = call i32 (...) @rand()
%68 = srem i32 %67, 5
%69 = add nsw i32 1, %68
store i32 %69, i32* %5
br label %62
70: ; preds = %62
%71 = load i32, i32* %5
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i32 %71)
%73 = load i32, i32* %5
%74 = call i32 @sleep(i32 %73)
%75 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 0
%76 = load i32*, i32** %3
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32* %75, i32* %76)
br label %78
78: ; preds = %70, %35
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %4
br label %80
80: ; preds = %89, %78
%81 = load i32, i32* %4
%82 = icmp slt i32 %81, 10
br i1 %82, label %83, label %92
83: ; preds = %80
%84 = load i32, i32* %4
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %85
%87 = load i32, i32* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %83
%90 = load i32, i32* %4
%91 = add nsw i32 %90, 1
store i32 %91, i32* %4
br label %80
92: ; preds = %80
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
store i32 0, i32* %4
br label %95
95: ; preds = %105, %92
%96 = load i32, i32* %4
%97 = icmp slt i32 %96, 10
br i1 %97, label %98, label %108
98: ; preds = %95
%99 = load i32*, i32** %3
%100 = load i32, i32* %4
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %99, i64 %101
%103 = load i32, i32* %102
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %103)
br label %105
105: ; preds = %98
%106 = load i32, i32* %4
%107 = add nsw i32 %106, 1
store i32 %107, i32* %4
br label %95
108: ; preds = %95
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%110 = load i32*, i32** %3
%111 = call i32 @free(i32* %110)
%112 = load i32, i32* %6
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %108
%115 = call i32 @wait(i32* null)
br label %116
116: ; preds = %114, %108
%117 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [46 x i8] c"Parent process going to sleep for %d seconds\0A\00"
@.str.1 = [32 x i8] c"Parent process: A = %p, B = %p\0A\00"
@.str.2 = [45 x i8] c"Child process going to sleep for %d seconds\0A\00"
@.str.3 = [31 x i8] c"Child process: A = %p, B = %p\0A\00"
@.str.4 = [6 x i8] c"A[] =\00"
@.str.5 = [4 x i8] c" %d\00"
@.str.7 = [6 x i8] c"B[] =\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = bitcast [10 x i32]* %1 to i8*
%3 = tail call i64 @time(i32* null)
%4 = trunc i64 %3 to i32
%5 = tail call i32 @srand(i32 %4)
%6 = tail call i64 @malloc(i32 40)
%7 = inttoptr i64 %6 to i32*
%8 = tail call i32 (...) @rand()
%9 = srem i32 %8, 5
%10 = add nsw i32 %9, 1
%11 = tail call i32 (...) @fork()
%12 = icmp eq i32 %11, 0
%13 = getelementptr inbounds i32, i32* %7, i64 9
br i1 %12, label %32, label %14
14: ; preds = %0
store i32 10, i32* %13
%15 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%16 = getelementptr inbounds i32, i32* %7, i64 8
store i32 11, i32* %16
%17 = bitcast [10 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 10, i32 11, i32 12, i32 13>, <4 x i32>* %17
%18 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
store i32 14, i32* %18
%19 = getelementptr inbounds i32, i32* %7, i64 4
%20 = bitcast i32* %19 to <4 x i32>*
store <4 x i32> <i32 15, i32 14, i32 13, i32 12>, <4 x i32>* %20
%21 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
store i32 15, i32* %21
%22 = getelementptr inbounds i32, i32* %7, i64 3
store i32 16, i32* %22
%23 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
store i32 16, i32* %23
%24 = getelementptr inbounds i32, i32* %7, i64 2
store i32 17, i32* %24
%25 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
store i32 17, i32* %25
%26 = getelementptr inbounds i32, i32* %7, i64 1
store i32 18, i32* %26
%27 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
store i32 18, i32* %27
store i32 19, i32* %7
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
store i32 19, i32* %28
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0), i32 %10)
%30 = tail call i32 @sleep(i32 %10)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0), i32* %15, i32* %7)
br label %56
32: ; preds = %0
store i32 0, i32* %13
%33 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%34 = getelementptr inbounds i32, i32* %7, i64 8
store i32 1, i32* %34
%35 = bitcast [10 x i32]* %1 to <4 x i32>*
store <4 x i32> <i32 0, i32 1, i32 2, i32 3>, <4 x i32>* %35
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
store i32 4, i32* %36
%37 = getelementptr inbounds i32, i32* %7, i64 4
%38 = bitcast i32* %37 to <4 x i32>*
store <4 x i32> <i32 5, i32 4, i32 3, i32 2>, <4 x i32>* %38
%39 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
store i32 5, i32* %39
%40 = getelementptr inbounds i32, i32* %7, i64 3
store i32 6, i32* %40
%41 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
store i32 6, i32* %41
%42 = getelementptr inbounds i32, i32* %7, i64 2
store i32 7, i32* %42
%43 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
store i32 7, i32* %43
%44 = getelementptr inbounds i32, i32* %7, i64 1
store i32 8, i32* %44
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
store i32 8, i32* %45
store i32 9, i32* %7
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
store i32 9, i32* %46
br label %47
47: ; preds = %32, %47
%48 = tail call i32 (...) @rand()
%49 = srem i32 %48, 5
%50 = icmp eq i32 %9, %49
br i1 %50, label %47, label %51
51: ; preds = %47
%52 = add nsw i32 %49, 1
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i32 %52)
%54 = tail call i32 @sleep(i32 %52)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i32* %33, i32* %7)
br label %56
56: ; preds = %51, %14
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%58 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 0
%59 = load i32, i32* %58
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %59)
%61 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 1
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %62)
%64 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 2
%65 = load i32, i32* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %65)
%67 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 3
%68 = load i32, i32* %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %68)
%70 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 4
%71 = load i32, i32* %70
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %71)
%73 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 5
%74 = load i32, i32* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %74)
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 6
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %77)
%79 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 7
%80 = load i32, i32* %79
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %80)
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 8
%83 = load i32, i32* %82
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %83)
%85 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 9
%86 = load i32, i32* %85
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %86)
%88 = call i32 @putchar(i32 10)
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%90 = load i32, i32* %7
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %90)
%92 = getelementptr inbounds i32, i32* %7, i64 1
%93 = load i32, i32* %92
%94 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds i32, i32* %7, i64 2
%96 = load i32, i32* %95
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %96)
%98 = getelementptr inbounds i32, i32* %7, i64 3
%99 = load i32, i32* %98
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %99)
%101 = getelementptr inbounds i32, i32* %7, i64 4
%102 = load i32, i32* %101
%103 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %102)
%104 = getelementptr inbounds i32, i32* %7, i64 5
%105 = load i32, i32* %104
%106 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %105)
%107 = getelementptr inbounds i32, i32* %7, i64 6
%108 = load i32, i32* %107
%109 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %108)
%110 = getelementptr inbounds i32, i32* %7, i64 7
%111 = load i32, i32* %110
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %111)
%113 = getelementptr inbounds i32, i32* %7, i64 8
%114 = load i32, i32* %113
%115 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %114)
%116 = getelementptr inbounds i32, i32* %7, i64 9
%117 = load i32, i32* %116
%118 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %117)
%119 = call i32 @putchar(i32 10)
%120 = call i32 @free(i32* %7)
br i1 %12, label %123, label %121
121: ; preds = %56
%122 = call i32 @wait(i32* null)
br label %123
123: ; preds = %121, %56
%124 = call i32 @exit(i32 0)
unreachable
}