#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 omp_get_thread_num();
int /*<<< orphan*/ omp_set_num_threads(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main(void) {
  int iaArr1[10], iaArr2[10], iaSum[10], i, iNum;
  printf("\nEnter The number of elements");
  scanf("%d", &iNum);
  printf("\nEnter The element of 1st array");
  for (i = 0; i < iNum; i++)
    scanf("%d", &iaArr1[i]);
  printf("Enter The elements of 2nd array");
  for (i = 0; i < iNum; i++)
    scanf("%d", &iaArr2[i]);
  printf("\nThe contents of array A\n");
  for (i = 0; i < iNum; i++) {
    printf("\niaArr1[%d]=%d", i, iaArr1[i]);
  }
  printf("\nThe contents of array B\n");
  for (i = 0; i < iNum; i++) {
    printf("\niaArr2[%d]=%d", i, iaArr2[i]);
  }
  printf("\nComputing Sum........\n");
  omp_set_num_threads(5);
#pragma omp parallel for shared(iaSum) private(i)
  for (i = 0; i < iNum; i++) {
    iaSum[i] = iaArr1[i] + iaArr2[i];
    printf("\niaSum[%d]=%d,thread id=%d\n", i, iaSum[i], omp_get_thread_num());
  }
  printf("\nThe Resultant array is\n");
  for (i = 0; i < iNum; i++) {
    printf("\tiaSum[%d]=%d\n", i, iaSum[i]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf1d(%rip),%rdi
lea    -0x98(%rbp),%rsi
call   1060 <scanf@plt>
lea    0xea4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    11cf <main+0x8f>
movslq -0x94(%rbp),%rax
lea    -0x30(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xece(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    118b <main+0x4b>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    122b <main+0xeb>
movslq -0x94(%rbp),%rax
lea    -0x60(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe72(%rip),%rdi
call   1060 <scanf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    11e7 <main+0xa7>
lea    0xe2c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    1288 <main+0x148>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%edx
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1243 <main+0x103>
lea    0xdf8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    12e5 <main+0x1a5>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
mov    -0x60(%rbp,%rax,4),%edx
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    12a0 <main+0x160>
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x5,%edi
call   1050 <omp_set_num_threads@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    1394 <main+0x254>
movslq -0x94(%rbp),%rax
mov    -0x30(%rbp,%rax,4),%ecx
movslq -0x94(%rbp),%rax
add    -0x60(%rbp,%rax,4),%ecx
movslq -0x94(%rbp),%rax
mov    %ecx,-0x90(%rbp,%rax,4)
mov    -0x94(%rbp),%eax
mov    %eax,-0xa0(%rbp)
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%eax
mov    %eax,-0x9c(%rbp)
mov    $0x0,%al
call   1030 <omp_get_thread_num@plt>
mov    -0xa0(%rbp),%esi
mov    -0x9c(%rbp),%edx
mov    %eax,%ecx
lea    0xd4f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    1307 <main+0x1c7>
lea    0xd49(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x94(%rbp)
mov    -0x94(%rbp),%eax
cmp    -0x98(%rbp),%eax
jge    13f4 <main+0x2b4>
mov    -0x94(%rbp),%esi
movslq -0x94(%rbp),%rax
mov    -0x90(%rbp,%rax,4),%edx
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x94(%rbp)
jmp    13ac <main+0x26c>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0xa0,%rsp
lea    0xe9e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xefa(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
lea    0xe9d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0xc(%rsp)
jle    11bd <main+0x6d>
lea    0x40(%rsp),%rbx
xor    %ebp,%ebp
lea    0xecd(%rip),%r14
nopl   (%rax)
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     11a0 <main+0x50>
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0xc(%rsp)
jle    11fd <main+0xad>
lea    0x10(%rsp),%rbx
xor    %ebp,%ebp
lea    0xe8a(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
call   1070 <scanf@plt>
add    $0x1,%rbp
movslq 0xc(%rsp),%rax
add    $0x4,%rbx
cmp    %rax,%rbp
jl     11e0 <main+0x90>
lea    0xea3(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    123e <main+0xee>
lea    0xe47(%rip),%r14
xor    %ebx,%ebx
nopl   0x0(%rax)
mov    0x40(%rsp,%rbx,4),%edx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1220 <main+0xd0>
lea    0xe7b(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    127e <main+0x12e>
lea    0xe15(%rip),%r14
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    0x10(%rsp,%rbx,4),%edx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1260 <main+0x110>
lea    0xe54(%rip),%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
call   1060 <omp_set_num_threads@plt>
cmpl   $0x0,0xc(%rsp)
jle    12e1 <main+0x191>
lea    0xdda(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x10(%rsp,%rbx,4),%ebp
add    0x40(%rsp,%rbx,4),%ebp
mov    %ebp,0x70(%rsp,%rbx,4)
xor    %eax,%eax
call   1040 <omp_get_thread_num@plt>
mov    %r14,%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     12b0 <main+0x160>
lea    0xe08(%rip),%rdi
call   1030 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    131e <main+0x1ce>
lea    0xd9d(%rip),%r14
xor    %ebx,%ebx
nopl   (%rax)
mov    0x70(%rsp,%rbx,4),%edx
mov    %r14,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
movslq 0xc(%rsp),%rax
cmp    %rax,%rbx
jl     1300 <main+0x1b0>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [30 x i8] c"\0AEnter The number of elements\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"\0AEnter The element of 1st array\00"
@.str.3 = [32 x i8] c"Enter The elements of 2nd array\00"
@.str.4 = [26 x i8] c"\0AThe contents of array A\0A\00"
@.str.5 = [15 x i8] c"\0AiaArr1[%d]=%d\00"
@.str.6 = [26 x i8] c"\0AThe contents of array B\0A\00"
@.str.7 = [15 x i8] c"\0AiaArr2[%d]=%d\00"
@.str.8 = [24 x i8] c"\0AComputing Sum........\0A\00"
@.str.9 = [28 x i8] c"\0AiaSum[%d]=%d,thread id=%d\0A\00"
@.str.10 = [25 x i8] c"\0AThe Resultant array is\0A\00"
@.str.11 = [15 x i8] c"\09iaSum[%d]=%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i32]
%3 = alloca [10 x i32]
%4 = alloca [10 x i32]
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %6)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %5
br label %10
10: ; preds = %19, %0
%11 = load i32, i32* %5
%12 = load i32, i32* %6
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %22
14: ; preds = %10
%15 = load i32, i32* %5
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %16
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %17)
br label %19
19: ; preds = %14
%20 = load i32, i32* %5
%21 = add nsw i32 %20, 1
store i32 %21, i32* %5
br label %10
22: ; preds = %10
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %5
br label %24
24: ; preds = %33, %22
%25 = load i32, i32* %5
%26 = load i32, i32* %6
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %36
28: ; preds = %24
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %30
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %31)
br label %33
33: ; preds = %28
%34 = load i32, i32* %5
%35 = add nsw i32 %34, 1
store i32 %35, i32* %5
br label %24
36: ; preds = %24
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %5
br label %38
38: ; preds = %49, %36
%39 = load i32, i32* %5
%40 = load i32, i32* %6
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %52
42: ; preds = %38
%43 = load i32, i32* %5
%44 = load i32, i32* %5
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %45
%47 = load i32, i32* %46
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %43, i32 %47)
br label %49
49: ; preds = %42
%50 = load i32, i32* %5
%51 = add nsw i32 %50, 1
store i32 %51, i32* %5
br label %38
52: ; preds = %38
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %5
br label %54
54: ; preds = %65, %52
%55 = load i32, i32* %5
%56 = load i32, i32* %6
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %68
58: ; preds = %54
%59 = load i32, i32* %5
%60 = load i32, i32* %5
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %59, i32 %63)
br label %65
65: ; preds = %58
%66 = load i32, i32* %5
%67 = add nsw i32 %66, 1
store i32 %67, i32* %5
br label %54
68: ; preds = %54
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.8, i64 0, i64 0))
%70 = call i32 @omp_set_num_threads(i32 5)
store i32 0, i32* %5
br label %71
71: ; preds = %95, %68
%72 = load i32, i32* %5
%73 = load i32, i32* %6
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %98
75: ; preds = %71
%76 = load i32, i32* %5
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %77
%79 = load i32, i32* %78
%80 = load i32, i32* %5
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %81
%83 = load i32, i32* %82
%84 = add nsw i32 %79, %83
%85 = load i32, i32* %5
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %86
store i32 %84, i32* %87
%88 = load i32, i32* %5
%89 = load i32, i32* %5
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %90
%92 = load i32, i32* %91
%93 = call i32 (...) @omp_get_thread_num()
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %88, i32 %92, i32 %93)
br label %95
95: ; preds = %75
%96 = load i32, i32* %5
%97 = add nsw i32 %96, 1
store i32 %97, i32* %5
br label %71
98: ; preds = %71
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %5
br label %100
100: ; preds = %111, %98
%101 = load i32, i32* %5
%102 = load i32, i32* %6
%103 = icmp slt i32 %101, %102
br i1 %103, label %104, label %114
104: ; preds = %100
%105 = load i32, i32* %5
%106 = load i32, i32* %5
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [10 x i32], [10 x i32]* %4, i64 0, i64 %107
%109 = load i32, i32* %108
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 %105, i32 %109)
br label %111
111: ; preds = %104
%112 = load i32, i32* %5
%113 = add nsw i32 %112, 1
store i32 %113, i32* %5
br label %100
114: ; preds = %100
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c"\0AEnter The number of elements\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [32 x i8] c"\0AEnter The element of 1st array\00"
@.str.3 = [32 x i8] c"Enter The elements of 2nd array\00"
@.str.5 = [15 x i8] c"\0AiaArr1[%d]=%d\00"
@.str.7 = [15 x i8] c"\0AiaArr2[%d]=%d\00"
@.str.9 = [28 x i8] c"\0AiaSum[%d]=%d,thread id=%d\0A\00"
@.str.11 = [15 x i8] c"\09iaSum[%d]=%d\0A\00"
@str = [25 x i8] c"\0AThe contents of array A\00"
@str.12 = [25 x i8] c"\0AThe contents of array B\00"
@str.13 = [23 x i8] c"\0AComputing Sum........\00"
@str.14 = [24 x i8] c"\0AThe Resultant array is\00"
define i32 @main() {
%1 = alloca [10 x i32]
%2 = alloca [10 x i32]
%3 = alloca [10 x i32]
%4 = alloca i32
%5 = bitcast [10 x i32]* %1 to i8*
%6 = bitcast [10 x i32]* %2 to i8*
%7 = bitcast [10 x i32]* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %14, label %22
14: ; preds = %0, %14
%15 = phi i64 [ %18, %14 ], [ 0, %0 ]
%16 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %15
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %16)
%18 = add nuw nsw i64 %15, 1
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = icmp slt i64 %18, %20
br i1 %21, label %14, label %22
22: ; preds = %14, %0
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
%24 = load i32, i32* %4
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %34
26: ; preds = %22, %26
%27 = phi i64 [ %30, %26 ], [ 0, %22 ]
%28 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %27
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %28)
%30 = add nuw nsw i64 %27, 1
%31 = load i32, i32* %4
%32 = sext i32 %31 to i64
%33 = icmp slt i64 %30, %32
br i1 %33, label %26, label %34
34: ; preds = %26, %22
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%36 = load i32, i32* %4
%37 = icmp sgt i32 %36, 0
br i1 %37, label %38, label %48
38: ; preds = %34, %38
%39 = phi i64 [ %44, %38 ], [ 0, %34 ]
%40 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = trunc i64 %39 to i32
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 %42, i32 %41)
%44 = add nuw nsw i64 %39, 1
%45 = load i32, i32* %4
%46 = sext i32 %45 to i64
%47 = icmp slt i64 %44, %46
br i1 %47, label %38, label %48
48: ; preds = %38, %34
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.12, i64 0, i64 0))
%50 = load i32, i32* %4
%51 = icmp sgt i32 %50, 0
br i1 %51, label %52, label %62
52: ; preds = %48, %52
%53 = phi i64 [ %58, %52 ], [ 0, %48 ]
%54 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %53
%55 = load i32, i32* %54
%56 = trunc i64 %53 to i32
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i32 %56, i32 %55)
%58 = add nuw nsw i64 %53, 1
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = icmp slt i64 %58, %60
br i1 %61, label %52, label %62
62: ; preds = %52, %48
%63 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.13, i64 0, i64 0))
%64 = call i32 @omp_set_num_threads(i32 5)
%65 = load i32, i32* %4
%66 = icmp sgt i32 %65, 0
br i1 %66, label %67, label %82
67: ; preds = %62, %67
%68 = phi i64 [ %78, %67 ], [ 0, %62 ]
%69 = getelementptr inbounds [10 x i32], [10 x i32]* %1, i64 0, i64 %68
%70 = load i32, i32* %69
%71 = getelementptr inbounds [10 x i32], [10 x i32]* %2, i64 0, i64 %68
%72 = load i32, i32* %71
%73 = add nsw i32 %72, %70
%74 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %68
store i32 %73, i32* %74
%75 = call i32 (...) @omp_get_thread_num()
%76 = trunc i64 %68 to i32
%77 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %76, i32 %73, i32 %75)
%78 = add nuw nsw i64 %68, 1
%79 = load i32, i32* %4
%80 = sext i32 %79 to i64
%81 = icmp slt i64 %78, %80
br i1 %81, label %67, label %82
82: ; preds = %67, %62
%83 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.14, i64 0, i64 0))
%84 = load i32, i32* %4
%85 = icmp sgt i32 %84, 0
br i1 %85, label %86, label %96
86: ; preds = %82, %86
%87 = phi i64 [ %92, %86 ], [ 0, %82 ]
%88 = getelementptr inbounds [10 x i32], [10 x i32]* %3, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = trunc i64 %87 to i32
%91 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i32 %90, i32 %89)
%92 = add nuw nsw i64 %87, 1
%93 = load i32, i32* %4
%94 = sext i32 %93 to i64
%95 = icmp slt i64 %92, %94
br i1 %95, label %86, label %96
96: ; preds = %86, %82
ret i32 0
}