#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 /*<<< orphan*/ scanf(char *, ...);
int main() {
  int assentos[300];
  char nomes[300][15];
  int ocupados[50][6] = {0};
  int contadorAssentos = 0;
  char escolha;
  do {
    printf("\nDigite o nome do passageiro: ");
    scanf("%s", nomes[contadorAssentos]);
    printf("\nDigite o numero do assento requerido: ");
    scanf("%d", &assentos[contadorAssentos]);
    printf("\nNome do passageiro: %s", nomes[contadorAssentos]);
    printf("\nAssento escolhido: %d", assentos[contadorAssentos]);
    int fileira = (assentos[contadorAssentos] - 1) / 6;
    int assento = assentos[contadorAssentos] - 1 - fileira * 6;
    if (ocupados[fileira][assento]) {
      printf("\nO assento já está ocupado, escolha outro!");
    }
    ocupados[fileira][assento] = 1;
    if (contadorAssentos++ == 300) {
      break;
    }
    printf("\nDeseja continuar? <S/N>");
    scanf(" %c", &escolha);
  } while (escolha == 'S' || escolha == 's');
  printf("\n");
  for (int i = 0; i < 50; i++) {
    for (int j = 0; j < 6; j++) {
      printf("F%02dA%d=%s | ", i + 1, j + 1,
             ocupados[i][j] ? "ocupado" : "livre  ");
    }
    printf("\n");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b30,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x1b10(%rbp),%rdi
xor    %esi,%esi
mov    $0x4b0,%edx
call   1040 <memset@plt>
movl   $0x0,-0x1b14(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1b14(%rbp),%rax
lea    -0x1660(%rbp),%rsi
imul   $0xf,%rax,%rax
add    %rax,%rsi
lea    0xed3(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
lea    0xe88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1b14(%rbp),%rax
lea    -0x4c0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1050 <scanf@plt>
movslq -0x1b14(%rbp),%rax
lea    -0x1660(%rbp),%rsi
imul   $0xf,%rax,%rax
add    %rax,%rsi
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1b14(%rbp),%rax
mov    -0x4c0(%rbp,%rax,4),%esi
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1b14(%rbp),%rax
mov    -0x4c0(%rbp,%rax,4),%eax
sub    $0x1,%eax
mov    $0x6,%ecx
cltd
idiv   %ecx
mov    %eax,-0x1b1c(%rbp)
movslq -0x1b14(%rbp),%rax
mov    -0x4c0(%rbp,%rax,4),%eax
sub    $0x1,%eax
imul   $0x6,-0x1b1c(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x1b20(%rbp)
movslq -0x1b1c(%rbp),%rcx
lea    -0x1b10(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x1b20(%rbp),%rcx
cmpl   $0x0,(%rax,%rcx,4)
je     1273 <main+0x143>
lea    0xe0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x1b1c(%rbp),%rcx
lea    -0x1b10(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x1b20(%rbp),%rcx
movl   $0x1,(%rax,%rcx,4)
mov    -0x1b14(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x1b14(%rbp)
cmp    $0x12c,%eax
jne    12b7 <main+0x187>
jmp    1313 <main+0x1e3>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf0(%rip),%rdi
lea    -0x1b15(%rbp),%rsi
mov    $0x0,%al
call   1050 <scanf@plt>
movsbl -0x1b15(%rbp),%ecx
mov    $0x1,%al
cmp    $0x53,%ecx
mov    %al,-0x1b29(%rbp)
je     1305 <main+0x1d5>
movsbl -0x1b15(%rbp),%eax
cmp    $0x73,%eax
sete   %al
mov    %al,-0x1b29(%rbp)
mov    -0x1b29(%rbp),%al
test   $0x1,%al
jne    115f <main+0x2f>
lea    0xda6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1b24(%rbp)
cmpl   $0x32,-0x1b24(%rbp)
jge    13d9 <main+0x2a9>
movl   $0x0,-0x1b28(%rbp)
cmpl   $0x6,-0x1b28(%rbp)
jge    13b7 <main+0x287>
mov    -0x1b24(%rbp),%esi
add    $0x1,%esi
mov    -0x1b28(%rbp),%edx
add    $0x1,%edx
movslq -0x1b24(%rbp),%rcx
lea    -0x1b10(%rbp),%rax
imul   $0x18,%rcx,%rcx
add    %rcx,%rax
movslq -0x1b28(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
lea    0xd52(%rip),%rcx
lea    0xd43(%rip),%rax
cmp    $0x0,%edi
cmovne %rax,%rcx
lea    0xd26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b28(%rbp)
jmp    1342 <main+0x212>
lea    0xd02(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1b24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1b24(%rbp)
jmp    132b <main+0x1fb>
mov    -0x4(%rbp),%eax
add    $0x1b30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b08,%rsp
lea    0x10(%rsp),%rdi
mov    $0x4b0,%edx
xor    %esi,%esi
call   1050 <memset@plt>
lea    0x4c0(%rsp),%r13
lea    0xeee(%rip),%r14
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xe79(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    (%rsp,%r15,1),%r12
add    $0x970,%r12
lea    0xebc(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe6e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb4(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe77(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x0(%r13),%eax
add    $0xffffffff,%eax
cltq
imul   $0x2aaaaaab,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
shr    $0x20,%rcx
add    %edx,%ecx
lea    (%rcx,%rcx,1),%edx
lea    (%rdx,%rdx,2),%edx
sub    %edx,%eax
movslq %ecx,%rcx
movslq %eax,%rbp
lea    (%rcx,%rcx,2),%rax
lea    (%rsp,%rax,8),%rbx
add    $0x10,%rbx
cmpl   $0x0,(%rbx,%rbp,4)
je     1233 <main+0xf3>
lea    0xe4a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    (%rbx,%rbp,4),%rax
movl   $0x1,(%rax)
add    $0xf,%r15
cmp    $0x11a3,%r15
je     127e <main+0x13e>
add    $0x4,%r13
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe59(%rip),%rdi
lea    0xf(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movzbl 0xf(%rsp),%eax
and    $0xdf,%al
cmp    $0x53,%al
je     1180 <main+0x40>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x14,%ebp
mov    $0x1,%ebx
lea    0xe3e(%rip),%r15
lea    0xe2f(%rip),%r12
lea    0xe19(%rip),%r14
nopw   0x0(%rax,%rax,1)
cmpl   $0x0,-0x4(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x4(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x8(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0xc(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <printf@plt>
cmpl   $0x0,0x10(%rsp,%rbp,1)
mov    %r12,%rcx
cmove  %r15,%rcx
mov    %r14,%rdi
mov    %ebx,%esi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x18,%rbp
add    $0x1,%ebx
cmp    $0x4c4,%rbp
jne    12b0 <main+0x170>
xor    %eax,%eax
add    $0x1b08,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [31 x i8] c"\0ADigite o nome do passageiro: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [40 x i8] c"\0ADigite o numero do assento requerido: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [24 x i8] c"\0ANome do passageiro: %s\00"
@.str.5 = [23 x i8] c"\0AAssento escolhido: %d\00"
@.str.6 = [45 x i8] c"\0AO assento j\C3\A1 est\C3\A1 ocupado, escolha outro!\00"
@.str.7 = [25 x i8] c"\0ADeseja continuar? <S/N>\00"
@.str.8 = [4 x i8] c" %c\00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [15 x i8] c"F%02dA%d=%s | \00"
@.str.11 = [8 x i8] c"ocupado\00"
@.str.12 = [8 x i8] c"livre \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [300 x i32]
%3 = alloca [300 x [15 x i8]]
%4 = alloca [50 x [6 x i32]]
%5 = alloca i32
%6 = alloca i8
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %1
%11 = bitcast [50 x [6 x i32]]* %4 to i8*
store i32 0, i32* %5
br label %12
12: ; preds = %80, %0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%14 = load i32, i32* %5
%15 = sext i32 %14 to i64
%16 = getelementptr inbounds [300 x [15 x i8]], [300 x [15 x i8]]* %3, i64 0, i64 %15
%17 = getelementptr inbounds [15 x i8], [15 x i8]* %16, i64 0, i64 0
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [300 x i32], [300 x i32]* %2, i64 0, i64 %21
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %22)
%24 = load i32, i32* %5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [300 x [15 x i8]], [300 x [15 x i8]]* %3, i64 0, i64 %25
%27 = getelementptr inbounds [15 x i8], [15 x i8]* %26, i64 0, i64 0
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* %27)
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [300 x i32], [300 x i32]* %2, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %5
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [300 x i32], [300 x i32]* %2, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = sub nsw i32 %37, 1
%39 = sdiv i32 %38, 6
store i32 %39, i32* %7
%40 = load i32, i32* %5
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [300 x i32], [300 x i32]* %2, i64 0, i64 %41
%43 = load i32, i32* %42
%44 = sub nsw i32 %43, 1
%45 = load i32, i32* %7
%46 = mul nsw i32 %45, 6
%47 = sub nsw i32 %44, %46
store i32 %47, i32* %8
%48 = load i32, i32* %7
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %4, i64 0, i64 %49
%51 = load i32, i32* %8
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [6 x i32], [6 x i32]* %50, i64 0, i64 %52
%54 = load i32, i32* %53
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %12
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
br label %58
58: ; preds = %56, %12
%59 = load i32, i32* %7
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %4, i64 0, i64 %60
%62 = load i32, i32* %8
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds [6 x i32], [6 x i32]* %61, i64 0, i64 %63
store i32 1, i32* %64
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
store i32 %66, i32* %5
%67 = icmp eq i32 %65, 300
br i1 %67, label %68, label %69
68: ; preds = %58
br label %82
69: ; preds = %58
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%71 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %6)
br label %72
72: ; preds = %69
%73 = load i8, i8* %6
%74 = sext i8 %73 to i32
%75 = icmp eq i32 %74, 83
br i1 %75, label %80, label %76
76: ; preds = %72
%77 = load i8, i8* %6
%78 = sext i8 %77 to i32
%79 = icmp eq i32 %78, 115
br label %80
80: ; preds = %76, %72
%81 = phi i1 [ true, %72 ], [ %79, %76 ]
br i1 %81, label %12, label %82
82: ; preds = %80, %68
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %9
br label %84
84: ; preds = %112, %82
%85 = load i32, i32* %9
%86 = icmp slt i32 %85, 50
br i1 %86, label %87, label %115
87: ; preds = %84
store i32 0, i32* %10
br label %88
88: ; preds = %107, %87
%89 = load i32, i32* %10
%90 = icmp slt i32 %89, 6
br i1 %90, label %91, label %110
91: ; preds = %88
%92 = load i32, i32* %9
%93 = add nsw i32 %92, 1
%94 = load i32, i32* %10
%95 = add nsw i32 %94, 1
%96 = load i32, i32* %9
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %4, i64 0, i64 %97
%99 = load i32, i32* %10
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [6 x i32], [6 x i32]* %98, i64 0, i64 %100
%102 = load i32, i32* %101
%103 = icmp ne i32 %102, 0
%104 = zext i1 %103 to i64
%105 = select i1 %103, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0)
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %93, i32 %95, i8* %105)
br label %107
107: ; preds = %91
%108 = load i32, i32* %10
%109 = add nsw i32 %108, 1
store i32 %109, i32* %10
br label %88
110: ; preds = %88
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %112
112: ; preds = %110
%113 = load i32, i32* %9
%114 = add nsw i32 %113, 1
store i32 %114, i32* %9
br label %84
115: ; preds = %84
%116 = load i32, i32* %1
ret i32 %116
}

LLVM IR (-O2):
@.str = [31 x i8] c"\0ADigite o nome do passageiro: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [40 x i8] c"\0ADigite o numero do assento requerido: \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [24 x i8] c"\0ANome do passageiro: %s\00"
@.str.5 = [23 x i8] c"\0AAssento escolhido: %d\00"
@.str.6 = [45 x i8] c"\0AO assento j\C3\A1 est\C3\A1 ocupado, escolha outro!\00"
@.str.7 = [25 x i8] c"\0ADeseja continuar? <S/N>\00"
@.str.8 = [4 x i8] c" %c\00"
@.str.10 = [15 x i8] c"F%02dA%d=%s | \00"
@.str.11 = [8 x i8] c"ocupado\00"
@.str.12 = [8 x i8] c"livre \00"
define i32 @main() {
%1 = alloca [300 x i32]
%2 = alloca [300 x [15 x i8]]
%3 = alloca [50 x [6 x i32]]
%4 = alloca i8
%5 = bitcast [300 x i32]* %1 to i8*
%6 = getelementptr inbounds [300 x [15 x i8]], [300 x [15 x i8]]* %2, i64 0, i64 0, i64 0
%7 = bitcast [50 x [6 x i32]]* %3 to i8*
br label %8
8: ; preds = %33, %0
%9 = phi i64 [ %34, %33 ], [ 0, %0 ]
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [300 x [15 x i8]], [300 x [15 x i8]]* %2, i64 0, i64 %9, i64 0
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.2, i64 0, i64 0))
%14 = getelementptr inbounds [300 x i32], [300 x i32]* %1, i64 0, i64 %9
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%17 = load i32, i32* %14
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 %17)
%19 = load i32, i32* %14
%20 = add nsw i32 %19, -1
%21 = sdiv i32 %20, 6
%22 = mul nsw i32 %21, -6
%23 = add i32 %22, %20
%24 = sext i32 %21 to i64
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %24, i64 %25
%27 = load i32, i32* %26
%28 = icmp eq i32 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %8
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
br label %31
31: ; preds = %29, %8
store i32 1, i32* %26
%32 = icmp eq i64 %9, 300
br i1 %32, label %40, label %33
33: ; preds = %31
%34 = add nuw nsw i64 %9, 1
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %4)
%37 = load i8, i8* %4
%38 = and i8 %37, -33
%39 = icmp eq i8 %38, 83
br i1 %39, label %8, label %40
40: ; preds = %31, %33
%41 = call i32 @putchar(i32 10)
br label %42
42: ; preds = %40, %42
%43 = phi i64 [ 0, %40 ], [ %44, %42 ]
%44 = add nuw nsw i64 %43, 1
%45 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 0
%46 = load i32, i32* %45
%47 = icmp eq i32 %46, 0
%48 = select i1 %47, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%49 = trunc i64 %44 to i32
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 1, i8* %48)
%51 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 1
%52 = load i32, i32* %51
%53 = icmp eq i32 %52, 0
%54 = select i1 %53, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 2, i8* %54)
%56 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 2
%57 = load i32, i32* %56
%58 = icmp eq i32 %57, 0
%59 = select i1 %58, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 3, i8* %59)
%61 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 3
%62 = load i32, i32* %61
%63 = icmp eq i32 %62, 0
%64 = select i1 %63, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 4, i8* %64)
%66 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 4
%67 = load i32, i32* %66
%68 = icmp eq i32 %67, 0
%69 = select i1 %68, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 5, i8* %69)
%71 = getelementptr inbounds [50 x [6 x i32]], [50 x [6 x i32]]* %3, i64 0, i64 %43, i64 5
%72 = load i32, i32* %71
%73 = icmp eq i32 %72, 0
%74 = select i1 %73, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0)
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i32 %49, i32 6, i8* %74)
%76 = call i32 @putchar(i32 10)
%77 = icmp eq i64 %44, 50
br i1 %77, label %78, label %42
78: ; preds = %42
ret i32 0
}