#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 */
scalar_t__ calloc(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int N = 0, T = 0, i = 0, j = 0, li = 0, lo = 0, k = 0;
  int *width, *min;
  int tc[99998][2];
  printf("Welcome to Service Lane\n\n");
  printf("Enter the length or no segments of unit length : ");
  scanf("%d", &N);
  printf("Enter no of Test cases : ");
  scanf("%d", &T);
  width = (int *)calloc(N, sizeof(int));
  min = (int *)calloc(T, sizeof(int));
  for (i = 0; i < N; i++) {
    scanf("%d", &width[i]);
    if (!(width[i] > 0 && width[i] < 4)) {
      printf("Entered width of service lane is invalid. Please enter it "
             "between 1-3\n");
      i--;
    }
  }
  for (i = 0; i < T; i++) {
    printf("Entry Exit");
    scanf("%d", &tc[i][0]);
    scanf("%d", &tc[i][1]);
    min[i] = tc[i][0];
    for (j = tc[i][0]; j <= tc[i][1]; j++) {
      if (min[i] > width[j - 1])
        min[i] = width[j - 1];
    }
  }
  for (j = 0; j < T; j++)
    printf("%d", min[j]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc3520,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
lea    0xe86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb6(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    $0x4,%esi
call   1040 <calloc@plt>
mov    %rax,-0x28(%rbp)
mov    -0xc(%rbp),%edi
mov    $0x4,%esi
call   1040 <calloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    125b <main+0x12b>
mov    -0x28(%rbp),%rsi
movslq -0x10(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe44(%rip),%rdi
call   1050 <scanf@plt>
mov    -0x28(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
jle    1231 <main+0x101>
mov    -0x28(%rbp),%rax
movslq -0x10(%rbp),%rcx
cmpl   $0x4,(%rax,%rcx,4)
jl     1248 <main+0x118>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x10(%rbp)
jmp    124d <main+0x11d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11e6 <main+0xb6>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1356 <main+0x226>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x10(%rbp),%rax
lea    -0xc3520(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
lea    0xdb7(%rip),%rdi
call   1050 <scanf@plt>
movslq -0x10(%rbp),%rax
lea    -0xc3520(%rbp),%rsi
shl    $0x3,%rax
add    %rax,%rsi
add    $0x4,%rsi
lea    0xd95(%rip),%rdi
call   1050 <scanf@plt>
movslq -0x10(%rbp),%rax
mov    -0xc3520(%rbp,%rax,8),%edx
mov    -0x30(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
movslq -0x10(%rbp),%rax
mov    -0xc3520(%rbp,%rax,8),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
movslq -0x10(%rbp),%rcx
cmp    -0xc351c(%rbp,%rcx,8),%eax
jg     1343 <main+0x213>
mov    -0x30(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x28(%rbp),%rcx
mov    -0x14(%rbp),%edx
sub    $0x1,%edx
movslq %edx,%rdx
cmp    (%rcx,%rdx,4),%eax
jle    1330 <main+0x200>
mov    -0x28(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%edx
mov    -0x30(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1335 <main+0x205>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e0 <main+0x1b0>
jmp    1348 <main+0x218>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1262 <main+0x132>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1390 <main+0x260>
mov    -0x30(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xcd1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    135d <main+0x22d>
xor    %eax,%eax
add    $0xc3520,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc3508,%rsp
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
lea    0xef2(%rip),%rdi
call   1030 <puts@plt>
lea    0xe8c(%rip),%rdi
xor    %r13d,%r13d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xead(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xe9c(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    0xc(%rsp),%edi
mov    $0x4,%esi
call   1050 <calloc@plt>
mov    %rax,%rbx
mov    0x8(%rsp),%edi
mov    $0x4,%esi
call   1050 <calloc@plt>
mov    %rax,%r14
cmpl   $0x0,0xc(%rsp)
jle    1223 <main+0xe3>
lea    0xe55(%rip),%r15
lea    0xe8f(%rip),%r12
jmp    11fb <main+0xbb>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13d
cmp    0xc(%rsp),%r13d
jge    1223 <main+0xe3>
movslq %r13d,%rbp
lea    (%rbx,%rbp,4),%rsi
mov    %r15,%rdi
call   1060 <scanf@plt>
mov    (%rbx,%rbp,4),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
jb     11f0 <main+0xb0>
mov    %r12,%rdi
call   1030 <puts@plt>
add    $0xffffffff,%r13d
jmp    11f0 <main+0xb0>
cmpl   $0x0,0x8(%rsp)
jle    12ec <main+0x1ac>
lea    0xe1a(%rip),%r15
lea    0xdf6(%rip),%r12
xor    %ebp,%ebp
jmp    124e <main+0x10e>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jge    12bf <main+0x17f>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    (%rsp,%rbp,8),%rsi
add    $0x10,%rsi
mov    %r12,%rdi
call   1060 <scanf@plt>
lea    (%rsp,%rbp,8),%rsi
add    $0x14,%rsi
mov    %r12,%rdi
call   1060 <scanf@plt>
mov    0x10(%rsp,%rbp,8),%ecx
mov    %ecx,(%r14,%rbp,4)
movslq 0x10(%rsp,%rbp,8),%rax
mov    0x14(%rsp,%rbp,8),%edx
cmp    %edx,%eax
jg     1240 <main+0x100>
add    $0xffffffffffffffff,%rax
jmp    12ac <main+0x16c>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movslq %edx,%rsi
add    $0x1,%rax
cmp    %rsi,%rax
jge    1240 <main+0x100>
mov    (%rbx,%rax,4),%esi
cmp    %esi,%ecx
jle    12a0 <main+0x160>
mov    %esi,(%r14,%rbp,4)
mov    0x14(%rsp,%rbp,8),%edx
mov    %esi,%ecx
jmp    12a0 <main+0x160>
test   %eax,%eax
jle    12ec <main+0x1ac>
lea    0xd68(%rip),%rbx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    (%r14,%rbp,4),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%rbp
movslq 0x8(%rsp),%rax
cmp    %rax,%rbp
jl     12d0 <main+0x190>
xor    %eax,%eax
add    $0xc3508,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [26 x i8] c"Welcome to Service Lane\0A\0A\00"
@.str.1 = [50 x i8] c"Enter the length or no segments of unit length : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [26 x i8] c"Enter no of Test cases : \00"
@.str.4 = [71 x i8] c"Entered width of service lane is invalid. Please enter it between 1-3\0A\00"
@.str.5 = [11 x i8] c"Entry Exit\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca [99998 x [2 x i32]]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %8
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%17 = load i32, i32* %2
%18 = call i64 @calloc(i32 %17, i32 4)
%19 = inttoptr i64 %18 to i32*
store i32* %19, i32** %9
%20 = load i32, i32* %3
%21 = call i64 @calloc(i32 %20, i32 4)
%22 = inttoptr i64 %21 to i32*
store i32* %22, i32** %10
store i32 0, i32* %4
br label %23
23: ; preds = %51, %0
%24 = load i32, i32* %4
%25 = load i32, i32* %2
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %54
27: ; preds = %23
%28 = load i32*, i32** %9
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i32, i32* %28, i64 %30
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %31)
%33 = load i32*, i32** %9
%34 = load i32, i32* %4
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, i32* %33, i64 %35
%37 = load i32, i32* %36
%38 = icmp sgt i32 %37, 0
br i1 %38, label %39, label %46
39: ; preds = %27
%40 = load i32*, i32** %9
%41 = load i32, i32* %4
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds i32, i32* %40, i64 %42
%44 = load i32, i32* %43
%45 = icmp slt i32 %44, 4
br i1 %45, label %50, label %46
46: ; preds = %39, %27
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%48 = load i32, i32* %4
%49 = add nsw i32 %48, -1
store i32 %49, i32* %4
br label %50
50: ; preds = %46, %39
br label %51
51: ; preds = %50
%52 = load i32, i32* %4
%53 = add nsw i32 %52, 1
store i32 %53, i32* %4
br label %23
54: ; preds = %23
store i32 0, i32* %4
br label %55
55: ; preds = %122, %54
%56 = load i32, i32* %4
%57 = load i32, i32* %3
%58 = icmp slt i32 %56, %57
br i1 %58, label %59, label %125
59: ; preds = %55
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%61 = load i32, i32* %4
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %11, i64 0, i64 %62
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %63, i64 0, i64 0
%65 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %64)
%66 = load i32, i32* %4
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %11, i64 0, i64 %67
%69 = getelementptr inbounds [2 x i32], [2 x i32]* %68, i64 0, i64 1
%70 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %69)
%71 = load i32, i32* %4
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %11, i64 0, i64 %72
%74 = getelementptr inbounds [2 x i32], [2 x i32]* %73, i64 0, i64 0
%75 = load i32, i32* %74
%76 = load i32*, i32** %10
%77 = load i32, i32* %4
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, i32* %76, i64 %78
store i32 %75, i32* %79
%80 = load i32, i32* %4
%81 = sext i32 %80 to i64
%82 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %11, i64 0, i64 %81
%83 = getelementptr inbounds [2 x i32], [2 x i32]* %82, i64 0, i64 0
%84 = load i32, i32* %83
store i32 %84, i32* %5
br label %85
85: ; preds = %118, %59
%86 = load i32, i32* %5
%87 = load i32, i32* %4
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %11, i64 0, i64 %88
%90 = getelementptr inbounds [2 x i32], [2 x i32]* %89, i64 0, i64 1
%91 = load i32, i32* %90
%92 = icmp sle i32 %86, %91
br i1 %92, label %93, label %121
93: ; preds = %85
%94 = load i32*, i32** %10
%95 = load i32, i32* %4
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds i32, i32* %94, i64 %96
%98 = load i32, i32* %97
%99 = load i32*, i32** %9
%100 = load i32, i32* %5
%101 = sub nsw i32 %100, 1
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %99, i64 %102
%104 = load i32, i32* %103
%105 = icmp sgt i32 %98, %104
br i1 %105, label %106, label %117
106: ; preds = %93
%107 = load i32*, i32** %9
%108 = load i32, i32* %5
%109 = sub nsw i32 %108, 1
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds i32, i32* %107, i64 %110
%112 = load i32, i32* %111
%113 = load i32*, i32** %10
%114 = load i32, i32* %4
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i32, i32* %113, i64 %115
store i32 %112, i32* %116
br label %117
117: ; preds = %106, %93
br label %118
118: ; preds = %117
%119 = load i32, i32* %5
%120 = add nsw i32 %119, 1
store i32 %120, i32* %5
br label %85
121: ; preds = %85
br label %122
122: ; preds = %121
%123 = load i32, i32* %4
%124 = add nsw i32 %123, 1
store i32 %124, i32* %4
br label %55
125: ; preds = %55
store i32 0, i32* %5
br label %126
126: ; preds = %137, %125
%127 = load i32, i32* %5
%128 = load i32, i32* %3
%129 = icmp slt i32 %127, %128
br i1 %129, label %130, label %140
130: ; preds = %126
%131 = load i32*, i32** %10
%132 = load i32, i32* %5
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i32, i32* %131, i64 %133
%135 = load i32, i32* %134
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %135)
br label %137
137: ; preds = %130
%138 = load i32, i32* %5
%139 = add nsw i32 %138, 1
store i32 %139, i32* %5
br label %126
140: ; preds = %126
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [50 x i8] c"Enter the length or no segments of unit length : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [26 x i8] c"Enter no of Test cases : \00"
@.str.5 = [11 x i8] c"Entry Exit\00"
@str = [25 x i8] c"Welcome to Service Lane\0A\00"
@str.6 = [70 x i8] c"Entered width of service lane is invalid. Please enter it between 1-3\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [99998 x [2 x i32]]
%4 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%5 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%6 = bitcast [99998 x [2 x i32]]* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %2)
%12 = load i32, i32* %1
%13 = call i64 @calloc(i32 %12, i32 4)
%14 = inttoptr i64 %13 to i32*
%15 = load i32, i32* %2
%16 = call i64 @calloc(i32 %15, i32 4)
%17 = inttoptr i64 %16 to i32*
%18 = load i32, i32* %1
%19 = icmp sgt i32 %18, 0
br i1 %19, label %23, label %20
20: ; preds = %34, %0
%21 = load i32, i32* %2
%22 = icmp sgt i32 %21, 0
br i1 %22, label %41, label %85
23: ; preds = %0, %34
%24 = phi i32 [ %36, %34 ], [ 0, %0 ]
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %14, i64 %25
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %26)
%28 = load i32, i32* %26
%29 = add i32 %28, -1
%30 = icmp ult i32 %29, 3
br i1 %30, label %34, label %31
31: ; preds = %23
%32 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.6, i64 0, i64 0))
%33 = add nsw i32 %24, -1
br label %34
34: ; preds = %23, %31
%35 = phi i32 [ %33, %31 ], [ %24, %23 ]
%36 = add nsw i32 %35, 1
%37 = load i32, i32* %1
%38 = icmp slt i32 %36, %37
br i1 %38, label %23, label %20
39: ; preds = %71
%40 = icmp sgt i32 %73, 0
br i1 %40, label %76, label %85
41: ; preds = %20, %71
%42 = phi i64 [ %72, %71 ], [ 0, %20 ]
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%44 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %3, i64 0, i64 %42, i64 0
%45 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %44)
%46 = getelementptr inbounds [99998 x [2 x i32]], [99998 x [2 x i32]]* %3, i64 0, i64 %42, i64 1
%47 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %46)
%48 = load i32, i32* %44
%49 = getelementptr inbounds i32, i32* %17, i64 %42
store i32 %48, i32* %49
%50 = load i32, i32* %44
%51 = load i32, i32* %46
%52 = icmp sgt i32 %50, %51
br i1 %52, label %71, label %53
53: ; preds = %41
%54 = sext i32 %50 to i64
br label %55
55: ; preds = %53, %65
%56 = phi i32 [ %51, %53 ], [ %66, %65 ]
%57 = phi i32 [ %48, %53 ], [ %67, %65 ]
%58 = phi i64 [ %54, %53 ], [ %68, %65 ]
%59 = add nsw i64 %58, -1
%60 = getelementptr inbounds i32, i32* %14, i64 %59
%61 = load i32, i32* %60
%62 = icmp sgt i32 %57, %61
br i1 %62, label %63, label %65
63: ; preds = %55
store i32 %61, i32* %49
%64 = load i32, i32* %46
br label %65
65: ; preds = %55, %63
%66 = phi i32 [ %56, %55 ], [ %64, %63 ]
%67 = phi i32 [ %57, %55 ], [ %61, %63 ]
%68 = add nsw i64 %58, 1
%69 = sext i32 %66 to i64
%70 = icmp slt i64 %58, %69
br i1 %70, label %55, label %71
71: ; preds = %65, %41
%72 = add nuw nsw i64 %42, 1
%73 = load i32, i32* %2
%74 = sext i32 %73 to i64
%75 = icmp slt i64 %72, %74
br i1 %75, label %41, label %39
76: ; preds = %39, %76
%77 = phi i64 [ %81, %76 ], [ 0, %39 ]
%78 = getelementptr inbounds i32, i32* %17, i64 %77
%79 = load i32, i32* %78
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32 %79)
%81 = add nuw nsw i64 %77, 1
%82 = load i32, i32* %2
%83 = sext i32 %82 to i64
%84 = icmp slt i64 %81, %83
br i1 %84, label %76, label %85
85: ; preds = %76, %20, %39
ret i32 0
}