#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 dequeue();
int enqueue(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int input[100];
  int output[100];
  int select;
  int i_count = 0;
  int o_count = 0;
  int loop = 1;
  int i, temp;
  while (loop) {
    printf("[1]输入 [2]输出 [3]列出全部内容 ==>");
    scanf("%d", &select);
    switch (select) {
    case 1:
      printf("请输入存入队列的值(%d) ==>", i_count + 1);
      scanf("%d", &temp);
      if (enqueue(temp) == -1)
        printf("队列全满.\n");
      else
        input[i_count++] = temp;
      break;
    case 2:
      if ((temp == dequeue()) == -1)
        printf("队列是空的.\n");
      else {
        printf("取出队列元素：%d\n", temp);
        output[o_count++] = temp;
      }
      break;
    case 3:
      loop = 0;
      break;
    }
    printf("输入队列的元素：");
    for (i = 0; i < i_count; i++) {
      printf("[%d]", input[i]);
    }
    printf("\n取出队列的元素：");
    for (i = 0; i < o_count; i++) {
      printf("[%d]", output[i]);
    }
    printf("\n剩下队列的元素：");
    while ((temp = dequeue()) != -1)
      printf("[%d]", temp);
    printf("\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x350,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x338(%rbp)
movl   $0x0,-0x33c(%rbp)
movl   $0x1,-0x340(%rbp)
cmpl   $0x0,-0x340(%rbp)
je     13de <main+0x29e>
lea    0xe7c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
lea    -0x334(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x334(%rbp),%eax
mov    %eax,-0x34c(%rbp)
sub    $0x1,%eax
je     11e0 <main+0xa0>
jmp    11b8 <main+0x78>
mov    -0x34c(%rbp),%eax
sub    $0x2,%eax
je     1256 <main+0x116>
jmp    11cc <main+0x8c>
mov    -0x34c(%rbp),%eax
sub    $0x3,%eax
je     12d0 <main+0x190>
jmp    12da <main+0x19a>
mov    -0x338(%rbp),%esi
add    $0x1,%esi
lea    0xe41(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe30(%rip),%rdi
lea    -0x348(%rbp),%rsi
call   1050 <scanf@plt>
mov    -0x348(%rbp),%edi
call   1060 <enqueue@plt>
cmp    $0xffffffff,%eax
jne    1231 <main+0xf1>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1251 <main+0x111>
mov    -0x348(%rbp),%ecx
mov    -0x338(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x338(%rbp)
cltq
mov    %ecx,-0x1a0(%rbp,%rax,4)
jmp    12da <main+0x19a>
mov    -0x348(%rbp),%eax
mov    %eax,-0x350(%rbp)
mov    $0x0,%al
call   1040 <dequeue@plt>
mov    %eax,%ecx
mov    -0x350(%rbp),%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
cmp    $0xffffffff,%eax
jne    1297 <main+0x157>
lea    0xdd9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12cb <main+0x18b>
mov    -0x348(%rbp),%esi
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x348(%rbp),%ecx
mov    -0x33c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x33c(%rbp)
cltq
mov    %ecx,-0x330(%rbp,%rax,4)
jmp    12da <main+0x19a>
movl   $0x0,-0x340(%rbp)
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x344(%rbp)
mov    -0x344(%rbp),%eax
cmp    -0x338(%rbp),%eax
jge    1334 <main+0x1f4>
movslq -0x344(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%esi
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x344(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x344(%rbp)
jmp    12f2 <main+0x1b2>
lea    0xd72(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x344(%rbp)
mov    -0x344(%rbp),%eax
cmp    -0x33c(%rbp),%eax
jge    138e <main+0x24e>
movslq -0x344(%rbp),%rax
mov    -0x330(%rbp,%rax,4),%esi
lea    0xd35(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x344(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x344(%rbp)
jmp    134c <main+0x20c>
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <dequeue@plt>
mov    %eax,-0x348(%rbp)
cmp    $0xffffffff,%eax
je     13cb <main+0x28b>
mov    -0x348(%rbp),%esi
lea    0xce9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    139c <main+0x25c>
lea    0xca2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1170 <main+0x30>
xor    %eax,%eax
add    $0x350,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
lea    0xf0f(%rip),%r13
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    1196 <main+0x36>
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
test   %r14b,%r14b
mov    %r15,%rbp
jne    1322 <main+0x1c2>
xor    %r14d,%r14d
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe80(%rip),%rdi
lea    0xc(%rsp),%rsi
call   1070 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x3,%eax
je     1250 <main+0xf0>
cmp    $0x2,%eax
je     1220 <main+0xc0>
cmp    $0x1,%eax
jne    1270 <main+0x110>
lea    0x1(%rbp),%r15d
lea    0xe53(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe3f(%rip),%rdi
lea    0x8(%rsp),%rsi
call   1070 <scanf@plt>
mov    0x8(%rsp),%edi
call   1080 <enqueue@plt>
cmp    $0xffffffff,%eax
je     1255 <main+0xf5>
mov    0x8(%rsp),%eax
movslq %ebp,%rcx
mov    %eax,0x1a0(%rsp,%rcx,4)
xor    %r14d,%r14d
mov    %r15d,%ebp
jmp    1270 <main+0x110>
nopl   (%rax)
xor    %r14d,%r14d
xor    %eax,%eax
call   1060 <dequeue@plt>
mov    0x8(%rsp),%esi
lea    0xe20(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%eax
movslq %r12d,%rcx
add    $0x1,%r12d
mov    %eax,0x10(%rsp,%rcx,4)
jmp    1270 <main+0x110>
nopl   (%rax)
mov    $0x1,%r14b
jmp    1270 <main+0x110>
lea    0xe64(%rip),%rdi
call   1040 <puts@plt>
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xdf7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbp,%r15
test   %ebp,%ebp
jle    12aa <main+0x14a>
mov    %r15d,%ebp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    0x1a0(%rsp,%rbx,4),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1290 <main+0x130>
lea    0xddb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   %r12d,%r12d
jle    12e7 <main+0x187>
mov    %r12d,%ebp
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x10(%rsp,%rbx,4),%esi
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    12d0 <main+0x170>
lea    0xdb8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1060 <dequeue@plt>
mov    %eax,0x8(%rsp)
cmp    $0xffffffff,%eax
je     1180 <main+0x20>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1300 <main+0x1a0>
xor    %eax,%eax
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [46 x i8] c"[1]\E8\BE\93\E5\85\A5 [2]\E8\BE\93\E5\87\BA [3]\E5\88\97\E5\87\BA\E5\85\A8\E9\83\A8\E5\86\85\E5\AE\B9 ==>\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [36 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\AD\98\E5\85\A5\E9\98\9F\E5\88\97\E7\9A\84\E5\80\BC(%d) ==>\00"
@.str.3 = [15 x i8] c"\E9\98\9F\E5\88\97\E5\85\A8\E6\BB\A1.\0A\00"
@.str.4 = [18 x i8] c"\E9\98\9F\E5\88\97\E6\98\AF\E7\A9\BA\E7\9A\84.\0A\00"
@.str.5 = [25 x i8] c"\E5\8F\96\E5\87\BA\E9\98\9F\E5\88\97\E5\85\83\E7\B4\A0\EF\BC\9A%d\0A\00"
@.str.6 = [25 x i8] c"\E8\BE\93\E5\85\A5\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@.str.7 = [5 x i8] c"[%d]\00"
@.str.8 = [26 x i8] c"\0A\E5\8F\96\E5\87\BA\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@.str.9 = [26 x i8] c"\0A\E5\89\A9\E4\B8\8B\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@.str.10 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca [100 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %5
store i32 0, i32* %6
store i32 1, i32* %7
br label %10
10: ; preds = %90, %0
%11 = load i32, i32* %7
%12 = icmp ne i32 %11, 0
br i1 %12, label %13, label %92
13: ; preds = %10
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%16 = load i32, i32* %4
switch i32 %16, label %52 [
i32 1, label %17
i32 2, label %34
i32 3, label %51
]
17: ; preds = %13
%18 = load i32, i32* %5
%19 = add nsw i32 %18, 1
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%21 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %9)
%22 = load i32, i32* %9
%23 = call i32 @enqueue(i32 %22)
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %27
25: ; preds = %17
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
br label %33
27: ; preds = %17
%28 = load i32, i32* %9
%29 = load i32, i32* %5
%30 = add nsw i32 %29, 1
store i32 %30, i32* %5
%31 = sext i32 %29 to i64
%32 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %31
store i32 %28, i32* %32
br label %33
33: ; preds = %27, %25
br label %52
34: ; preds = %13
%35 = load i32, i32* %9
%36 = call i32 (...) @dequeue()
%37 = icmp eq i32 %35, %36
%38 = zext i1 %37 to i32
%39 = icmp eq i32 %38, -1
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
br label %50
42: ; preds = %34
%43 = load i32, i32* %9
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %43)
%45 = load i32, i32* %9
%46 = load i32, i32* %6
%47 = add nsw i32 %46, 1
store i32 %47, i32* %6
%48 = sext i32 %46 to i64
%49 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %48
store i32 %45, i32* %49
br label %50
50: ; preds = %42, %40
br label %52
51: ; preds = %13
store i32 0, i32* %7
br label %52
52: ; preds = %13, %51, %50, %33
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %8
br label %54
54: ; preds = %64, %52
%55 = load i32, i32* %8
%56 = load i32, i32* %5
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %67
58: ; preds = %54
%59 = load i32, i32* %8
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %60
%62 = load i32, i32* %61
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %58
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
br label %54
67: ; preds = %54
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %8
br label %69
69: ; preds = %79, %67
%70 = load i32, i32* %8
%71 = load i32, i32* %6
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %82
73: ; preds = %69
%74 = load i32, i32* %8
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [100 x i32], [100 x i32]* %3, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %77)
br label %79
79: ; preds = %73
%80 = load i32, i32* %8
%81 = add nsw i32 %80, 1
store i32 %81, i32* %8
br label %69
82: ; preds = %69
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
br label %84
84: ; preds = %87, %82
%85 = call i32 (...) @dequeue()
store i32 %85, i32* %9
%86 = icmp ne i32 %85, -1
br i1 %86, label %87, label %90
87: ; preds = %84
%88 = load i32, i32* %9
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %88)
br label %84
90: ; preds = %84
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %10
92: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [46 x i8] c"[1]\E8\BE\93\E5\85\A5 [2]\E8\BE\93\E5\87\BA [3]\E5\88\97\E5\87\BA\E5\85\A8\E9\83\A8\E5\86\85\E5\AE\B9 ==>\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [36 x i8] c"\E8\AF\B7\E8\BE\93\E5\85\A5\E5\AD\98\E5\85\A5\E9\98\9F\E5\88\97\E7\9A\84\E5\80\BC(%d) ==>\00"
@.str.5 = [25 x i8] c"\E5\8F\96\E5\87\BA\E9\98\9F\E5\88\97\E5\85\83\E7\B4\A0\EF\BC\9A%d\0A\00"
@.str.6 = [25 x i8] c"\E8\BE\93\E5\85\A5\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@.str.7 = [5 x i8] c"[%d]\00"
@.str.8 = [26 x i8] c"\0A\E5\8F\96\E5\87\BA\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@.str.9 = [26 x i8] c"\0A\E5\89\A9\E4\B8\8B\E9\98\9F\E5\88\97\E7\9A\84\E5\85\83\E7\B4\A0\EF\BC\9A\00"
@str = [14 x i8] c"\E9\98\9F\E5\88\97\E5\85\A8\E6\BB\A1.\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = bitcast [100 x i32]* %1 to i8*
%6 = bitcast [100 x i32]* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
br label %9
9: ; preds = %0, %73
%10 = phi i32 [ 0, %0 ], [ %39, %73 ]
%11 = phi i32 [ 0, %0 ], [ %38, %73 ]
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%14 = load i32, i32* %3
switch i32 %14, label %37 [
i32 1, label %15
i32 2, label %28
i32 3, label %36
]
15: ; preds = %9
%16 = add nsw i32 %11, 1
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %4)
%19 = load i32, i32* %4
%20 = call i32 @enqueue(i32 %19)
%21 = icmp eq i32 %20, -1
br i1 %21, label %22, label %24
22: ; preds = %15
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
br label %37
24: ; preds = %15
%25 = load i32, i32* %4
%26 = sext i32 %11 to i64
%27 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %26
store i32 %25, i32* %27
br label %37
28: ; preds = %9
%29 = call i32 (...) @dequeue()
%30 = load i32, i32* %4
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %30)
%32 = load i32, i32* %4
%33 = add nsw i32 %10, 1
%34 = sext i32 %10 to i64
%35 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %34
store i32 %32, i32* %35
br label %37
36: ; preds = %9
br label %37
37: ; preds = %28, %22, %24, %9, %36
%38 = phi i32 [ %11, %9 ], [ %11, %36 ], [ %11, %28 ], [ %11, %22 ], [ %16, %24 ]
%39 = phi i32 [ %10, %9 ], [ %10, %36 ], [ %33, %28 ], [ %10, %22 ], [ %10, %24 ]
%40 = phi i1 [ false, %9 ], [ true, %36 ], [ false, %28 ], [ false, %22 ], [ false, %24 ]
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%42 = icmp sgt i32 %38, 0
br i1 %42, label %43, label %52
43: ; preds = %37
%44 = zext i32 %38 to i64
br label %45
45: ; preds = %43, %45
%46 = phi i64 [ 0, %43 ], [ %50, %45 ]
%47 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %46
%48 = load i32, i32* %47
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %48)
%50 = add nuw nsw i64 %46, 1
%51 = icmp eq i64 %50, %44
br i1 %51, label %52, label %45
52: ; preds = %45, %37
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0))
%54 = icmp sgt i32 %39, 0
br i1 %54, label %55, label %64
55: ; preds = %52
%56 = zext i32 %39 to i64
br label %57
57: ; preds = %55, %57
%58 = phi i64 [ 0, %55 ], [ %62, %57 ]
%59 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %58
%60 = load i32, i32* %59
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %60)
%62 = add nuw nsw i64 %58, 1
%63 = icmp eq i64 %62, %56
br i1 %63, label %64, label %57
64: ; preds = %57, %52
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i64 0, i64 0))
%66 = call i32 (...) @dequeue()
store i32 %66, i32* %4
%67 = icmp eq i32 %66, -1
br i1 %67, label %73, label %68
68: ; preds = %64, %68
%69 = phi i32 [ %71, %68 ], [ %66, %64 ]
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32 %69)
%71 = call i32 (...) @dequeue()
store i32 %71, i32* %4
%72 = icmp eq i32 %71, -1
br i1 %72, label %73, label %68
73: ; preds = %68, %64
%74 = call i32 @putchar(i32 10)
br i1 %40, label %75, label %9
75: ; preds = %73
ret i32 0
}