#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*/ printf(char *, ...);
int rand();
int /*<<< orphan*/ scanf(char *, int *, int *);
int main() {
  int psz[5], bsz, ort, prm = 0, i, r;
  for (i = 0; i < 5; i++) {
    r = rand() % 10;
    psz[i] = r * 6;
  }
  for (i = 0; i < 5; i++)
    printf("\nEnter the packet size[%d]:%d\n", i, psz[i]);
  printf("\nEnter the output rate/buffer\n:");
  scanf("%d %d", &ort, &bsz);
  for (i = 0; i < 5; i++) {
    if ((psz[i] + prm) > bsz) {
      printf("Bucket size is not enough\n");
    } else {
      prm = prm + psz[i];
      printf("\nPsize %d\n", psz[i]);
      printf("Transmission %d\n", prm);
      while (1) {
        if (prm) {
          if (prm < ort) {
            printf("\nTransmission done\n");
            prm = 0;
            break;
          } else {
            printf("Size of packet %d transmitted\n", ort);
            prm -= ort;
            printf("Remaining size:%d", prm);
          }
        } else {
          printf("No packets remaining\n");
          break;
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x5,-0x30(%rbp)
jge    1183 <main+0x53>
mov    $0x0,%al
call   1050 <rand@plt>
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x34(%rbp)
imul   $0x6,-0x34(%rbp),%ecx
movslq -0x30(%rbp),%rax
mov    %ecx,-0x20(%rbp,%rax,4)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    114d <main+0x1d>
movl   $0x0,-0x30(%rbp)
cmpl   $0x5,-0x30(%rbp)
jge    11bb <main+0x8b>
mov    -0x30(%rbp),%esi
movslq -0x30(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%edx
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    118a <main+0x5a>
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6f(%rip),%rdi
lea    -0x28(%rbp),%rsi
lea    -0x24(%rbp),%rdx
call   1040 <scanf@plt>
movl   $0x0,-0x30(%rbp)
cmpl   $0x5,-0x30(%rbp)
jge    12dc <main+0x1ac>
movslq -0x30(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
add    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    1215 <main+0xe5>
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c9 <main+0x199>
mov    -0x2c(%rbp),%eax
movslq -0x30(%rbp),%rcx
add    -0x20(%rbp,%rcx,4),%eax
mov    %eax,-0x2c(%rbp)
movslq -0x30(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%esi
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x2c(%rbp)
je     12ac <main+0x17c>
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    127a <main+0x14a>
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x2c(%rbp)
jmp    12c4 <main+0x194>
mov    -0x28(%rbp),%esi
lea    0xe0c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%ecx
mov    -0x2c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%esi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12bf <main+0x18f>
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c4 <main+0x194>
jmp    124a <main+0x11a>
jmp    12c9 <main+0x199>
jmp    12ce <main+0x19e>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11e4 <main+0xb4>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
xor    %eax,%eax
call   1060 <rand@plt>
movslq %eax,%rdx
imul   $0x66666667,%rdx,%rax
mov    %rax,%rcx
shr    $0x3f,%rcx
sar    $0x22,%rax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%edx
mov    %rdx,0x30(%rsp)
lea    (%rdx,%rdx,1),%eax
lea    (%rax,%rax,2),%ebp
mov    %ebp,0x10(%rsp)
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,2),%r14d
mov    %r14d,0x14(%rsp)
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,2),%r15d
mov    %r15d,0x18(%rsp)
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,2),%r12d
mov    %r12d,0x1c(%rsp)
xor    %eax,%eax
call   1060 <rand@plt>
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,2),%r13d
mov    %r13d,0x20(%rsp)
lea    0xdbb(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %r14d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %r13d,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd7d(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd8f(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0xc(%rsp),%rdx
call   1050 <scanf@plt>
lea    0xdf4(%rip),%r14
mov    %r14,%r15
cmp    0xc(%rsp),%ebp
jg     1344 <main+0x204>
lea    0xd6f(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd6a(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd9c(%rip),%r15
cmpl   $0x0,0x30(%rsp)
je     1344 <main+0x204>
lea    0xd5d(%rip),%r12
lea    0xd75(%rip),%rbx
nopl   0x0(%rax,%rax,1)
mov    0x8(%rsp),%esi
cmp    %esi,%ebp
jl     133d <main+0x1fd>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%r13d
mov    %ebp,%esi
sub    %r13d,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %r13d,%ebp
jne    1310 <main+0x1d0>
jmp    1344 <main+0x204>
lea    0xd63(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
mov    0x14(%rsp),%ebp
mov    %r14,%r15
cmp    0xc(%rsp),%ebp
jg     13d4 <main+0x294>
lea    0xce5(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xce0(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd12(%rip),%r15
test   %ebp,%ebp
je     13d4 <main+0x294>
lea    0xcd6(%rip),%r12
lea    0xcee(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%rsp),%esi
cmp    %esi,%ebp
jl     13cd <main+0x28d>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%r13d
mov    %ebp,%esi
sub    %r13d,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %r13d,%ebp
jne    13a0 <main+0x260>
jmp    13d4 <main+0x294>
lea    0xcd3(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
mov    0x18(%rsp),%ebp
mov    %r14,%r15
cmp    0xc(%rsp),%ebp
jg     1464 <main+0x324>
lea    0xc55(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc50(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc82(%rip),%r15
test   %ebp,%ebp
je     1464 <main+0x324>
lea    0xc46(%rip),%r12
lea    0xc5e(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%rsp),%esi
cmp    %esi,%ebp
jl     145d <main+0x31d>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%r13d
mov    %ebp,%esi
sub    %r13d,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %r13d,%ebp
jne    1430 <main+0x2f0>
jmp    1464 <main+0x324>
lea    0xc43(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
mov    0x1c(%rsp),%ebp
mov    %r14,%r15
cmp    0xc(%rsp),%ebp
jg     14f4 <main+0x3b4>
lea    0xbc5(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbc0(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbf2(%rip),%r15
test   %ebp,%ebp
je     14f4 <main+0x3b4>
lea    0xbb6(%rip),%r12
lea    0xbce(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%rsp),%esi
cmp    %esi,%ebp
jl     14ed <main+0x3ad>
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%r13d
mov    %ebp,%esi
sub    %r13d,%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %r13d,%ebp
jne    14c0 <main+0x380>
jmp    14f4 <main+0x3b4>
lea    0xbb3(%rip),%r15
mov    %r15,%rdi
call   1030 <puts@plt>
mov    0x20(%rsp),%ebp
cmp    0xc(%rsp),%ebp
jg     157d <main+0x43d>
lea    0xb38(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb33(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb65(%rip),%r14
test   %ebp,%ebp
je     157d <main+0x43d>
lea    0xb6f(%rip),%r12
lea    0xb22(%rip),%r15
lea    0xb3a(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
mov    0x8(%rsp),%esi
cmp    %esi,%ebp
jl     157a <main+0x43a>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x8(%rsp),%ebx
mov    %ebp,%esi
sub    %ebx,%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
sub    %ebx,%ebp
jne    1550 <main+0x410>
jmp    157d <main+0x43d>
mov    %r12,%r14
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0AEnter the packet size[%d]:%d\0A\00"
@.str.1 = [32 x i8] c"\0AEnter the output rate/buffer\0A:\00"
@.str.2 = [6 x i8] c"%d %d\00"
@.str.3 = [27 x i8] c"Bucket size is not enough\0A\00"
@.str.4 = [11 x i8] c"\0APsize %d\0A\00"
@.str.5 = [17 x i8] c"Transmission %d\0A\00"
@.str.6 = [20 x i8] c"\0ATransmission done\0A\00"
@.str.7 = [31 x i8] c"Size of packet %d transmitted\0A\00"
@.str.8 = [18 x i8] c"Remaining size:%d\00"
@.str.9 = [22 x i8] c"No packets remaining\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [5 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
store i32 0, i32* %6
br label %8
8: ; preds = %19, %0
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 5
br i1 %10, label %11, label %22
11: ; preds = %8
%12 = call i32 (...) @rand()
%13 = srem i32 %12, 10
store i32 %13, i32* %7
%14 = load i32, i32* %7
%15 = mul nsw i32 %14, 6
%16 = load i32, i32* %6
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %17
store i32 %15, i32* %18
br label %19
19: ; preds = %11
%20 = load i32, i32* %6
%21 = add nsw i32 %20, 1
store i32 %21, i32* %6
br label %8
22: ; preds = %8
store i32 0, i32* %6
br label %23
23: ; preds = %33, %22
%24 = load i32, i32* %6
%25 = icmp slt i32 %24, 5
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = load i32, i32* %6
%28 = load i32, i32* %6
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 %27, i32 %31)
br label %33
33: ; preds = %26
%34 = load i32, i32* %6
%35 = add nsw i32 %34, 1
store i32 %35, i32* %6
br label %23
36: ; preds = %23
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %4, i32* %3)
store i32 0, i32* %6
br label %39
39: ; preds = %90, %36
%40 = load i32, i32* %6
%41 = icmp slt i32 %40, 5
br i1 %41, label %42, label %93
42: ; preds = %39
%43 = load i32, i32* %6
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = load i32, i32* %5
%48 = add nsw i32 %46, %47
%49 = load i32, i32* %3
%50 = icmp sgt i32 %48, %49
br i1 %50, label %51, label %53
51: ; preds = %42
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %89
53: ; preds = %42
%54 = load i32, i32* %5
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %56
%58 = load i32, i32* %57
%59 = add nsw i32 %54, %58
store i32 %59, i32* %5
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %63)
%65 = load i32, i32* %5
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %65)
br label %67
67: ; preds = %53, %87
%68 = load i32, i32* %5
%69 = icmp ne i32 %68, 0
br i1 %69, label %70, label %85
70: ; preds = %67
%71 = load i32, i32* %5
%72 = load i32, i32* %4
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %76
74: ; preds = %70
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %5
br label %88
76: ; preds = %70
%77 = load i32, i32* %4
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %77)
%79 = load i32, i32* %4
%80 = load i32, i32* %5
%81 = sub nsw i32 %80, %79
store i32 %81, i32* %5
%82 = load i32, i32* %5
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %82)
br label %84
84: ; preds = %76
br label %87
85: ; preds = %67
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
br label %88
87: ; preds = %84
br label %67
88: ; preds = %85, %74
br label %89
89: ; preds = %88, %51
br label %90
90: ; preds = %89
%91 = load i32, i32* %6
%92 = add nsw i32 %91, 1
store i32 %92, i32* %6
br label %39
93: ; preds = %39
ret i32 0
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0AEnter the packet size[%d]:%d\0A\00"
@.str.1 = [32 x i8] c"\0AEnter the output rate/buffer\0A:\00"
@.str.2 = [6 x i8] c"%d %d\00"
@.str.4 = [11 x i8] c"\0APsize %d\0A\00"
@.str.5 = [17 x i8] c"Transmission %d\0A\00"
@.str.7 = [31 x i8] c"Size of packet %d transmitted\0A\00"
@.str.8 = [18 x i8] c"Remaining size:%d\00"
@str = [21 x i8] c"No packets remaining\00"
@str.10 = [19 x i8] c"\0ATransmission done\00"
@str.11 = [26 x i8] c"Bucket size is not enough\00"
define i32 @main() {
%1 = alloca [5 x i32]
%2 = alloca i32
%3 = alloca i32
%4 = bitcast [5 x i32]* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 (...) @rand()
%8 = srem i32 %7, 10
%9 = mul nsw i32 %8, 6
%10 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
store i32 %9, i32* %10
%11 = tail call i32 (...) @rand()
%12 = srem i32 %11, 10
%13 = mul nsw i32 %12, 6
%14 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
store i32 %13, i32* %14
%15 = tail call i32 (...) @rand()
%16 = srem i32 %15, 10
%17 = mul nsw i32 %16, 6
%18 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
store i32 %17, i32* %18
%19 = tail call i32 (...) @rand()
%20 = srem i32 %19, 10
%21 = mul nsw i32 %20, 6
%22 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
store i32 %21, i32* %22
%23 = tail call i32 (...) @rand()
%24 = srem i32 %23, 10
%25 = mul nsw i32 %24, 6
%26 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
store i32 %25, i32* %26
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 0, i32 %9)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 1, i32 %13)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 2, i32 %17)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 3, i32 %21)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0), i32 4, i32 %25)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32* %3, i32* %2)
%34 = load i32, i32* %2
%35 = icmp sgt i32 %9, %34
br i1 %35, label %50, label %36
36: ; preds = %0
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %9)
%39 = icmp eq i32 %8, 0
br i1 %39, label %50, label %40
40: ; preds = %36, %44
%41 = phi i32 [ %47, %44 ], [ %9, %36 ]
%42 = load i32, i32* %3
%43 = icmp slt i32 %41, %42
br i1 %43, label %50, label %44
44: ; preds = %40
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %42)
%46 = load i32, i32* %3
%47 = sub nsw i32 %41, %46
%48 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %47)
%49 = icmp eq i32 %47, 0
br i1 %49, label %50, label %40
50: ; preds = %44, %40, %36, %0
%51 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0), %0 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %36 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.10, i64 0, i64 0), %40 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %44 ]
%52 = call i32 @puts(i8* dereferenceable(1) %51)
%53 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 1
%54 = load i32, i32* %53
%55 = load i32, i32* %2
%56 = icmp sgt i32 %54, %55
br i1 %56, label %71, label %57
57: ; preds = %50
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %54)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %54)
%60 = icmp eq i32 %54, 0
br i1 %60, label %71, label %61
61: ; preds = %57, %65
%62 = phi i32 [ %68, %65 ], [ %54, %57 ]
%63 = load i32, i32* %3
%64 = icmp slt i32 %62, %63
br i1 %64, label %71, label %65
65: ; preds = %61
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %63)
%67 = load i32, i32* %3
%68 = sub nsw i32 %62, %67
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %68)
%70 = icmp eq i32 %68, 0
br i1 %70, label %71, label %61
71: ; preds = %61, %65, %57, %50
%72 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0), %50 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %57 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.10, i64 0, i64 0), %61 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %65 ]
%73 = call i32 @puts(i8* dereferenceable(1) %72)
%74 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 2
%75 = load i32, i32* %74
%76 = load i32, i32* %2
%77 = icmp sgt i32 %75, %76
br i1 %77, label %92, label %78
78: ; preds = %71
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %75)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %75)
%81 = icmp eq i32 %75, 0
br i1 %81, label %92, label %82
82: ; preds = %78, %86
%83 = phi i32 [ %89, %86 ], [ %75, %78 ]
%84 = load i32, i32* %3
%85 = icmp slt i32 %83, %84
br i1 %85, label %92, label %86
86: ; preds = %82
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %84)
%88 = load i32, i32* %3
%89 = sub nsw i32 %83, %88
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %89)
%91 = icmp eq i32 %89, 0
br i1 %91, label %92, label %82
92: ; preds = %82, %86, %78, %71
%93 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0), %71 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %78 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.10, i64 0, i64 0), %82 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %86 ]
%94 = call i32 @puts(i8* dereferenceable(1) %93)
%95 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 3
%96 = load i32, i32* %95
%97 = load i32, i32* %2
%98 = icmp sgt i32 %96, %97
br i1 %98, label %113, label %99
99: ; preds = %92
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %96)
%101 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %96)
%102 = icmp eq i32 %96, 0
br i1 %102, label %113, label %103
103: ; preds = %99, %107
%104 = phi i32 [ %110, %107 ], [ %96, %99 ]
%105 = load i32, i32* %3
%106 = icmp slt i32 %104, %105
br i1 %106, label %113, label %107
107: ; preds = %103
%108 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %105)
%109 = load i32, i32* %3
%110 = sub nsw i32 %104, %109
%111 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %110)
%112 = icmp eq i32 %110, 0
br i1 %112, label %113, label %103
113: ; preds = %103, %107, %99, %92
%114 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0), %92 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %99 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.10, i64 0, i64 0), %103 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %107 ]
%115 = call i32 @puts(i8* dereferenceable(1) %114)
%116 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 4
%117 = load i32, i32* %116
%118 = load i32, i32* %2
%119 = icmp sgt i32 %117, %118
br i1 %119, label %134, label %120
120: ; preds = %113
%121 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %117)
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0), i32 %117)
%123 = icmp eq i32 %117, 0
br i1 %123, label %134, label %124
124: ; preds = %120, %128
%125 = phi i32 [ %131, %128 ], [ %117, %120 ]
%126 = load i32, i32* %3
%127 = icmp slt i32 %125, %126
br i1 %127, label %134, label %128
128: ; preds = %124
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.7, i64 0, i64 0), i32 %126)
%130 = load i32, i32* %3
%131 = sub nsw i32 %125, %130
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i32 %131)
%133 = icmp eq i32 %131, 0
br i1 %133, label %134, label %124
134: ; preds = %124, %128, %120, %113
%135 = phi i8* [ getelementptr inbounds ([26 x i8], [26 x i8]* @str.11, i64 0, i64 0), %113 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %120 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @str.10, i64 0, i64 0), %124 ], [ getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0), %128 ]
%136 = call i32 @puts(i8* dereferenceable(1) %135)
ret i32 0
}