#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 resposta, alt, comp, i, j;
  char nome[20], continuar;
  do {
    printf("Digite o seu nome:\n");
    scanf("%s", nome);
    printf("\n%s, escolha uma opção de caracter para desenhar o seu "
           "Retangulo:\n 1 para %c, 2 para %c, 3 para %c:\n",
           nome, 42, 64, 35);
    scanf("%d", &resposta);
    if (resposta == 1) {
      printf("\n%s, digite um numero para o Comprimento do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &comp);
      while (comp < 3) {
        printf("\n%s, voce digitou para o Comprimento, um numero menor ou "
               "igual a 2. \nPara desenhar o seu Retangulo, digite um numero "
               "maior do que 2:\n",
               nome);
        scanf("%d", &comp);
      }
      printf("\n%s, digite um numero para a Altura do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &alt);
      while (alt < 3) {
        printf("\n%s, voce digitou para a Altura, um numero menor ou igual a "
               "2. \nPara desenhar o seu Retangulo, digite um numero maior do "
               "que 2:\n",
               nome);
        scanf("%d", &alt);
      }
      printf("\n\nOlá, meu nome eh %s, e o meu retangulo ficou assim:\n\n",
             nome);
      for (i = 1; i <= alt; i++) {
        for (j = 1; j <= comp; j++) {
          if (i > 1 && j > 1 && j < comp && i < alt) {
            printf(" ");
          } else {
            printf("%c", 42);
          }
        }
        printf("\n");
      }
      printf("\nDeseja continuar (s/n)?\n");
      scanf(" %c", &continuar);
    } else if (resposta == 2) {
      printf("\n%s, digite um numero para o Comprimento do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &comp);
      while (comp < 3) {
        printf("\n%s, voce digitou para o Comprimento, um numero menor ou "
               "igual a 2. \nPara desenhar o seu Retangulo, digite um numero "
               "maior do que 2:\n",
               nome);
        scanf("%d", &comp);
      }
      printf("\n%s, digite um numero para a Altura do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &alt);
      while (alt < 3) {
        printf("\n%s, voce digitou para a Altura, um numero menor ou igual a "
               "2. \nPara desenhar o seu Retangulo, digite um numero maior do "
               "que 2:\n",
               nome);
        scanf("%d", &alt);
      }
      printf("\n\nOlá, meu nome eh %s, e o meu retangulo ficou assim:\n\n",
             nome);
      for (i = 1; i <= alt; i++) {
        for (j = 1; j <= comp; j++) {
          if (i > 1 && j > 1 && j < comp && i < alt) {
            printf(" ");
          } else {
            printf("%c", 64);
          }
        }
        printf("\n");
      }
      printf("\nDeseja continuar (s/n)?\n");
      scanf(" %c", &continuar);
    } else {
      printf("\n%s, digite um numero para o Comprimento do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &comp);
      while (comp < 3) {
        printf("\n%s, voce digitou para o Comprimento, um numero menor ou "
               "igual a 2. \nPara desenhar o seu Retangulo, digite um numero "
               "maior do que 2:\n",
               nome);
        scanf("%d", &comp);
      }
      printf("\n%s, digite um numero para a Altura do seu Retangulo, este "
             "numero devera ser maior do que 2:\n",
             nome);
      scanf("%d", &alt);
      while (alt < 3) {
        printf("\n%s, voce digitou para a Altura, um numero menor ou igual a "
               "2. \nPara desenhar o seu Retangulo, digite um numero maior do "
               "que 2:\n",
               nome);
        scanf("%d", &alt);
      }
      printf("\n\nOlá, meu nome eh %s, e o meu retangulo ficou assim:\n\n",
             nome);
      for (i = 1; i <= alt; i++) {
        for (j = 1; j <= comp; j++) {
          if (i > 1 && j > 1 && j < comp && i < alt) {
            printf(" ");
          } else {
            printf("%c", 35);
          }
        }
        printf("\n");
      }
      printf("\nDeseja continuar (s/n)?\n");
      scanf(" %c", &continuar);
    }
  } while (continuar == 's');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeca(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    -0x30(%rbp),%rsi
lea    0xebd(%rip),%rdi
mov    $0x2a,%edx
mov    $0x40,%ecx
mov    $0x23,%r8d
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0x8(%rbp)
jne    1319 <main+0x1f9>
lea    -0x30(%rbp),%rsi
lea    0xee9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed8(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0x10(%rbp)
jge    11e4 <main+0xc4>
lea    -0x30(%rbp),%rsi
lea    0xf1e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    11b1 <main+0x91>
lea    -0x30(%rbp),%rsi
lea    0xf7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe81(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0xc(%rbp)
jge    123b <main+0x11b>
lea    -0x30(%rbp),%rsi
lea    0xfab(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe53(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1208 <main+0xe8>
lea    -0x30(%rbp),%rsi
lea    0x1003(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     12f4 <main+0x1d4>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     12d8 <main+0x1b8>
cmpl   $0x1,-0x14(%rbp)
jle    12b2 <main+0x192>
cmpl   $0x1,-0x18(%rbp)
jle    12b2 <main+0x192>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12b2 <main+0x192>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12b2 <main+0x192>
lea    0xfdc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12c5 <main+0x1a5>
lea    0xfe6(%rip),%rdi
mov    $0x2a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12ca <main+0x1aa>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1267 <main+0x147>
lea    0xfa1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1254 <main+0x134>
lea    0xf89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf95(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    163b <main+0x51b>
cmpl   $0x2,-0x8(%rbp)
jne    14af <main+0x38f>
lea    -0x30(%rbp),%rsi
lea    0xd53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd42(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0x10(%rbp)
jge    137a <main+0x25a>
lea    -0x30(%rbp),%rsi
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd14(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1347 <main+0x227>
lea    -0x30(%rbp),%rsi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xceb(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0xc(%rbp)
jge    13d1 <main+0x2b1>
lea    -0x30(%rbp),%rsi
lea    0xe15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xcbd(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    139e <main+0x27e>
lea    -0x30(%rbp),%rsi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     148a <main+0x36a>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     146e <main+0x34e>
cmpl   $0x1,-0x14(%rbp)
jle    1448 <main+0x328>
cmpl   $0x1,-0x18(%rbp)
jle    1448 <main+0x328>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1448 <main+0x328>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1448 <main+0x328>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    145b <main+0x33b>
lea    0xe50(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1460 <main+0x340>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    13fd <main+0x2dd>
lea    0xe0b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13ea <main+0x2ca>
lea    0xdf3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdff(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    1636 <main+0x516>
lea    -0x30(%rbp),%rsi
lea    0xbc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xbb6(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0x10(%rbp)
jge    1506 <main+0x3e6>
lea    -0x30(%rbp),%rsi
lea    0xbfc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb88(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    14d3 <main+0x3b3>
lea    -0x30(%rbp),%rsi
lea    0xc59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb5f(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0xc(%rbp)
jge    155d <main+0x43d>
lea    -0x30(%rbp),%rsi
lea    0xc89(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xb31(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    152a <main+0x40a>
lea    -0x30(%rbp),%rsi
lea    0xce1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     1616 <main+0x4f6>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     15fa <main+0x4da>
cmpl   $0x1,-0x14(%rbp)
jle    15d4 <main+0x4b4>
cmpl   $0x1,-0x18(%rbp)
jle    15d4 <main+0x4b4>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    15d4 <main+0x4b4>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    15d4 <main+0x4b4>
lea    0xcba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15e7 <main+0x4c7>
lea    0xcc4(%rip),%rdi
mov    $0x23,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    15ec <main+0x4cc>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1589 <main+0x469>
lea    0xc7f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1576 <main+0x456>
lea    0xc67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc73(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    163b <main+0x51b>
jmp    1640 <main+0x520>
movsbl -0x31(%rbp),%eax
cmp    $0x73,%eax
je     112f <main+0xf>
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    $0x28,%rsp
lea    0x10(%rsp),%r15
lea    0xf10(%rip),%r13
mov    %rsp,%rbx
lea    0xf6c(%rip),%rbp
lea    0x4(%rsp),%r14
lea    0x1044(%rip),%r12
jmp    11bb <main+0x7b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    0x10fe(%rip),%rdi
call   1040 <puts@plt>
lea    0x10db(%rip),%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpb   $0x73,0xb(%rsp)
mov    %rsp,%rbx
lea    0xf22(%rip),%rbp
lea    0xfff(%rip),%r12
jne    15e2 <main+0x4a2>
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
lea    0xe32(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe24(%rip),%rdi
mov    %r15,%rsi
mov    $0x2a,%edx
mov    $0x40,%ecx
mov    $0x23,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
lea    0xe5a(%rip),%rdi
mov    %r15,%rsi
cmp    $0x2,%eax
je     1370 <main+0x230>
cmp    $0x1,%eax
jne    14b0 <main+0x370>
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,(%rsp)
jg     1270 <main+0x130>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,(%rsp)
jl     1250 <main+0x110>
lea    0xedf(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,0x4(%rsp)
jg     12c1 <main+0x181>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
jl     12a0 <main+0x160>
lea    0xf6d(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1180 <main+0x40>
mov    $0x1,%r12d
jmp    130d <main+0x1cd>
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r12),%eax
cmp    0x4(%rsp),%r12d
mov    %eax,%r12d
jge    1180 <main+0x40>
cmpl   $0x0,(%rsp)
jle    12f0 <main+0x1b0>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
cmp    $0x2,%eax
jl     12f0 <main+0x1b0>
mov    $0x2,%ebp
jmp    134d <main+0x20d>
nopl   0x0(%rax)
cmp    %eax,%ebp
cmovge %ecx,%edi
cmp    $0x2,%r12d
cmovb  %ecx,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
lea    0x1(%rbp),%ecx
cmp    %eax,%ebp
mov    %ecx,%ebp
jge    12f0 <main+0x1b0>
mov    $0x20,%edi
mov    $0x2a,%ecx
cmp    0x4(%rsp),%r12d
jl     1330 <main+0x1f0>
mov    $0x2a,%edi
jmp    1330 <main+0x1f0>
cs nopw 0x0(%rax,%rax,1)
nop
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,(%rsp)
jg     13b0 <main+0x270>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,(%rsp)
jl     1390 <main+0x250>
lea    0xd9f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,0x4(%rsp)
jg     1401 <main+0x2c1>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
jl     13e0 <main+0x2a0>
lea    0xe2d(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1180 <main+0x40>
mov    $0x1,%ebp
jmp    1449 <main+0x309>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%eax
cmp    0x4(%rsp),%ebp
mov    %eax,%ebp
jge    1180 <main+0x40>
cmpl   $0x0,(%rsp)
jle    1430 <main+0x2f0>
mov    $0x40,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
cmp    $0x2,%eax
jl     1430 <main+0x2f0>
mov    $0x2,%ebx
cs nopw 0x0(%rax,%rax,1)
cmp    $0x2,%ebp
setb   %cl
cmp    %eax,%ebx
setge  %al
or     %cl,%al
cmp    0x4(%rsp),%ebp
setge  %cl
or     %al,%cl
movzbl %cl,%edi
shl    $0x5,%edi
add    $0x20,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
lea    0x1(%rbx),%ecx
cmp    %eax,%ebx
mov    %ecx,%ebx
jl     1470 <main+0x330>
jmp    1430 <main+0x2f0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,(%rsp)
jg     14f0 <main+0x3b0>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,(%rsp)
jl     14d0 <main+0x390>
lea    0xc5f(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,0x4(%rsp)
jg     1541 <main+0x401>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
jl     1520 <main+0x3e0>
lea    0xced(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x0,0x4(%rsp)
jle    1180 <main+0x40>
mov    $0x1,%ebp
jmp    1589 <main+0x449>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%eax
cmp    0x4(%rsp),%ebp
mov    %eax,%ebp
jge    1180 <main+0x40>
cmpl   $0x0,(%rsp)
jle    1570 <main+0x430>
mov    $0x23,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
cmp    $0x2,%eax
jl     1570 <main+0x430>
mov    $0x2,%ebx
cs nopw 0x0(%rax,%rax,1)
cmp    $0x2,%ebp
setb   %cl
cmp    %eax,%ebx
setge  %al
or     %cl,%al
cmp    0x4(%rsp),%ebp
setge  %cl
or     %al,%cl
movzbl %cl,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
mov    (%rsp),%eax
lea    0x1(%rbx),%ecx
cmp    %eax,%ebx
mov    %ecx,%ebx
jl     15b0 <main+0x470>
jmp    1570 <main+0x430>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [20 x i8] c"Digite o seu nome:\0A\00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [103 x i8] c"\0A%s, escolha uma op\C3\A7\C3\A3o de caracter para desenhar o seu Retangulo:\0A 1 para %c, 2 para %c, 3 para %c:\0A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [99 x i8] c"\0A%s, digite um numero para o Comprimento do seu Retangulo, este numero devera ser maior do que 2:\0A\00"
@.str.5 = [134 x i8] c"\0A%s, voce digitou para o Comprimento, um numero menor ou igual a 2. \0APara desenhar o seu Retangulo, digite um numero maior do que 2:\0A\00"
@.str.6 = [94 x i8] c"\0A%s, digite um numero para a Altura do seu Retangulo, este numero devera ser maior do que 2:\0A\00"
@.str.7 = [129 x i8] c"\0A%s, voce digitou para a Altura, um numero menor ou igual a 2. \0APara desenhar o seu Retangulo, digite um numero maior do que 2:\0A\00"
@.str.8 = [57 x i8] c"\0A\0AOl\C3\A1, meu nome eh %s, e o meu retangulo ficou assim:\0A\0A\00"
@.str.9 = [2 x i8] c" \00"
@.str.10 = [3 x i8] c"%c\00"
@.str.11 = [2 x i8] c"\0A\00"
@.str.12 = [26 x i8] c"\0ADeseja continuar (s/n)?\0A\00"
@.str.13 = [4 x i8] c" %c\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca [20 x i8]
%8 = alloca i8
store i32 0, i32* %1
br label %9
9: ; preds = %215, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%11 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, 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 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.2, i64 0, i64 0), i8* %13, i32 42, i32 64, i32 35)
%15 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 1
br i1 %17, label %18, label %82
18: ; preds = %9
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %19)
%21 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %22
22: ; preds = %25, %18
%23 = load i32, i32* %4
%24 = icmp slt i32 %23, 3
br i1 %24, label %25, label %29
25: ; preds = %22
%26 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %26)
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %22
29: ; preds = %22
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %30)
%32 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %33
33: ; preds = %36, %29
%34 = load i32, i32* %3
%35 = icmp slt i32 %34, 3
br i1 %35, label %36, label %40
36: ; preds = %33
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %37)
%39 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %33
40: ; preds = %33
%41 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %41)
store i32 1, i32* %5
br label %43
43: ; preds = %76, %40
%44 = load i32, i32* %5
%45 = load i32, i32* %3
%46 = icmp sle i32 %44, %45
br i1 %46, label %47, label %79
47: ; preds = %43
store i32 1, i32* %6
br label %48
48: ; preds = %71, %47
%49 = load i32, i32* %6
%50 = load i32, i32* %4
%51 = icmp sle i32 %49, %50
br i1 %51, label %52, label %74
52: ; preds = %48
%53 = load i32, i32* %5
%54 = icmp sgt i32 %53, 1
br i1 %54, label %55, label %68
55: ; preds = %52
%56 = load i32, i32* %6
%57 = icmp sgt i32 %56, 1
br i1 %57, label %58, label %68
58: ; preds = %55
%59 = load i32, i32* %6
%60 = load i32, i32* %4
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %68
62: ; preds = %58
%63 = load i32, i32* %5
%64 = load i32, i32* %3
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %70
68: ; preds = %62, %58, %55, %52
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 42)
br label %70
70: ; preds = %68, %66
br label %71
71: ; preds = %70
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
store i32 %73, i32* %6
br label %48
74: ; preds = %48
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %76
76: ; preds = %74
%77 = load i32, i32* %5
%78 = add nsw i32 %77, 1
store i32 %78, i32* %5
br label %43
79: ; preds = %43
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%81 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %8)
br label %214
82: ; preds = %9
%83 = load i32, i32* %2
%84 = icmp eq i32 %83, 2
br i1 %84, label %85, label %149
85: ; preds = %82
%86 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %86)
%88 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %89
89: ; preds = %92, %85
%90 = load i32, i32* %4
%91 = icmp slt i32 %90, 3
br i1 %91, label %92, label %96
92: ; preds = %89
%93 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %93)
%95 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %89
96: ; preds = %89
%97 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %97)
%99 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %100
100: ; preds = %103, %96
%101 = load i32, i32* %3
%102 = icmp slt i32 %101, 3
br i1 %102, label %103, label %107
103: ; preds = %100
%104 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %104)
%106 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %100
107: ; preds = %100
%108 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %108)
store i32 1, i32* %5
br label %110
110: ; preds = %143, %107
%111 = load i32, i32* %5
%112 = load i32, i32* %3
%113 = icmp sle i32 %111, %112
br i1 %113, label %114, label %146
114: ; preds = %110
store i32 1, i32* %6
br label %115
115: ; preds = %138, %114
%116 = load i32, i32* %6
%117 = load i32, i32* %4
%118 = icmp sle i32 %116, %117
br i1 %118, label %119, label %141
119: ; preds = %115
%120 = load i32, i32* %5
%121 = icmp sgt i32 %120, 1
br i1 %121, label %122, label %135
122: ; preds = %119
%123 = load i32, i32* %6
%124 = icmp sgt i32 %123, 1
br i1 %124, label %125, label %135
125: ; preds = %122
%126 = load i32, i32* %6
%127 = load i32, i32* %4
%128 = icmp slt i32 %126, %127
br i1 %128, label %129, label %135
129: ; preds = %125
%130 = load i32, i32* %5
%131 = load i32, i32* %3
%132 = icmp slt i32 %130, %131
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %137
135: ; preds = %129, %125, %122, %119
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 64)
br label %137
137: ; preds = %135, %133
br label %138
138: ; preds = %137
%139 = load i32, i32* %6
%140 = add nsw i32 %139, 1
store i32 %140, i32* %6
br label %115
141: ; preds = %115
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %143
143: ; preds = %141
%144 = load i32, i32* %5
%145 = add nsw i32 %144, 1
store i32 %145, i32* %5
br label %110
146: ; preds = %110
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%148 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %8)
br label %213
149: ; preds = %82
%150 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %150)
%152 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %153
153: ; preds = %156, %149
%154 = load i32, i32* %4
%155 = icmp slt i32 %154, 3
br i1 %155, label %156, label %160
156: ; preds = %153
%157 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%158 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %157)
%159 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %153
160: ; preds = %153
%161 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %161)
%163 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %164
164: ; preds = %167, %160
%165 = load i32, i32* %3
%166 = icmp slt i32 %165, 3
br i1 %166, label %167, label %171
167: ; preds = %164
%168 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %168)
%170 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %164
171: ; preds = %164
%172 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %172)
store i32 1, i32* %5
br label %174
174: ; preds = %207, %171
%175 = load i32, i32* %5
%176 = load i32, i32* %3
%177 = icmp sle i32 %175, %176
br i1 %177, label %178, label %210
178: ; preds = %174
store i32 1, i32* %6
br label %179
179: ; preds = %202, %178
%180 = load i32, i32* %6
%181 = load i32, i32* %4
%182 = icmp sle i32 %180, %181
br i1 %182, label %183, label %205
183: ; preds = %179
%184 = load i32, i32* %5
%185 = icmp sgt i32 %184, 1
br i1 %185, label %186, label %199
186: ; preds = %183
%187 = load i32, i32* %6
%188 = icmp sgt i32 %187, 1
br i1 %188, label %189, label %199
189: ; preds = %186
%190 = load i32, i32* %6
%191 = load i32, i32* %4
%192 = icmp slt i32 %190, %191
br i1 %192, label %193, label %199
193: ; preds = %189
%194 = load i32, i32* %5
%195 = load i32, i32* %3
%196 = icmp slt i32 %194, %195
br i1 %196, label %197, label %199
197: ; preds = %193
%198 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %201
199: ; preds = %193, %189, %186, %183
%200 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 35)
br label %201
201: ; preds = %199, %197
br label %202
202: ; preds = %201
%203 = load i32, i32* %6
%204 = add nsw i32 %203, 1
store i32 %204, i32* %6
br label %179
205: ; preds = %179
%206 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %207
207: ; preds = %205
%208 = load i32, i32* %5
%209 = add nsw i32 %208, 1
store i32 %209, i32* %5
br label %174
210: ; preds = %174
%211 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0))
%212 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %8)
br label %213
213: ; preds = %210, %146
br label %214
214: ; preds = %213, %79
br label %215
215: ; preds = %214
%216 = load i8, i8* %8
%217 = sext i8 %216 to i32
%218 = icmp eq i32 %217, 115
br i1 %218, label %9, label %219
219: ; preds = %215
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [103 x i8] c"\0A%s, escolha uma op\C3\A7\C3\A3o de caracter para desenhar o seu Retangulo:\0A 1 para %c, 2 para %c, 3 para %c:\0A\00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [99 x i8] c"\0A%s, digite um numero para o Comprimento do seu Retangulo, este numero devera ser maior do que 2:\0A\00"
@.str.5 = [134 x i8] c"\0A%s, voce digitou para o Comprimento, um numero menor ou igual a 2. \0APara desenhar o seu Retangulo, digite um numero maior do que 2:\0A\00"
@.str.6 = [94 x i8] c"\0A%s, digite um numero para a Altura do seu Retangulo, este numero devera ser maior do que 2:\0A\00"
@.str.7 = [129 x i8] c"\0A%s, voce digitou para a Altura, um numero menor ou igual a 2. \0APara desenhar o seu Retangulo, digite um numero maior do que 2:\0A\00"
@.str.8 = [57 x i8] c"\0A\0AOl\C3\A1, meu nome eh %s, e o meu retangulo ficou assim:\0A\0A\00"
@.str.13 = [4 x i8] c" %c\00"
@str = [19 x i8] c"Digite o seu nome:\00"
@str.16 = [25 x i8] c"\0ADeseja continuar (s/n)?\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [20 x i8]
%5 = alloca i8
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
br label %10
10: ; preds = %169, %0
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str, i64 0, i64 0))
%12 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %9)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @.str.2, i64 0, i64 0), i8* %9, i32 42, i32 64, i32 35)
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%15 = load i32, i32* %1
switch i32 %15, label %118 [
i32 1, label %16
i32 2, label %67
]
16: ; preds = %10
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%18 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%19 = load i32, i32* %3
%20 = icmp slt i32 %19, 3
br i1 %20, label %21, label %26
21: ; preds = %16, %21
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %9)
%23 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%24 = load i32, i32* %3
%25 = icmp slt i32 %24, 3
br i1 %25, label %21, label %26
26: ; preds = %21, %16
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%29 = load i32, i32* %2
%30 = icmp slt i32 %29, 3
br i1 %30, label %31, label %36
31: ; preds = %26, %31
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%33 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%34 = load i32, i32* %2
%35 = icmp slt i32 %34, 3
br i1 %35, label %31, label %36
36: ; preds = %31, %26
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%38 = load i32, i32* %2
%39 = icmp slt i32 %38, 1
br i1 %39, label %169, label %40
40: ; preds = %36, %62
%41 = phi i32 [ %64, %62 ], [ 1, %36 ]
%42 = load i32, i32* %3
%43 = icmp slt i32 %42, 1
br i1 %43, label %62, label %44
44: ; preds = %40
%45 = icmp ugt i32 %41, 1
%46 = call i32 @putchar(i32 42)
%47 = load i32, i32* %3
%48 = icmp sgt i32 %47, 1
br i1 %48, label %49, label %62
49: ; preds = %44, %49
%50 = phi i32 [ %60, %49 ], [ %47, %44 ]
%51 = phi i32 [ %52, %49 ], [ 1, %44 ]
%52 = add nuw nsw i32 %51, 1
%53 = load i32, i32* %2
%54 = icmp slt i32 %52, %50
%55 = select i1 %45, i1 %54, i1 false
%56 = icmp slt i32 %41, %53
%57 = select i1 %55, i1 %56, i1 false
%58 = select i1 %57, i32 32, i32 42
%59 = call i32 @putchar(i32 %58)
%60 = load i32, i32* %3
%61 = icmp slt i32 %52, %60
br i1 %61, label %49, label %62
62: ; preds = %49, %44, %40
%63 = call i32 @putchar(i32 10)
%64 = add nuw nsw i32 %41, 1
%65 = load i32, i32* %2
%66 = icmp slt i32 %41, %65
br i1 %66, label %40, label %169
67: ; preds = %10
%68 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%69 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%70 = load i32, i32* %3
%71 = icmp slt i32 %70, 3
br i1 %71, label %72, label %77
72: ; preds = %67, %72
%73 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %9)
%74 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%75 = load i32, i32* %3
%76 = icmp slt i32 %75, 3
br i1 %76, label %72, label %77
77: ; preds = %72, %67
%78 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%79 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%80 = load i32, i32* %2
%81 = icmp slt i32 %80, 3
br i1 %81, label %82, label %87
82: ; preds = %77, %82
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%84 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%85 = load i32, i32* %2
%86 = icmp slt i32 %85, 3
br i1 %86, label %82, label %87
87: ; preds = %82, %77
%88 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%89 = load i32, i32* %2
%90 = icmp slt i32 %89, 1
br i1 %90, label %169, label %91
91: ; preds = %87, %113
%92 = phi i32 [ %115, %113 ], [ 1, %87 ]
%93 = load i32, i32* %3
%94 = icmp slt i32 %93, 1
br i1 %94, label %113, label %95
95: ; preds = %91
%96 = icmp ugt i32 %92, 1
%97 = call i32 @putchar(i32 64)
%98 = load i32, i32* %3
%99 = icmp sgt i32 %98, 1
br i1 %99, label %100, label %113
100: ; preds = %95, %100
%101 = phi i32 [ %111, %100 ], [ %98, %95 ]
%102 = phi i32 [ %103, %100 ], [ 1, %95 ]
%103 = add nuw nsw i32 %102, 1
%104 = load i32, i32* %2
%105 = icmp slt i32 %103, %101
%106 = select i1 %96, i1 %105, i1 false
%107 = icmp slt i32 %92, %104
%108 = select i1 %106, i1 %107, i1 false
%109 = select i1 %108, i32 32, i32 64
%110 = call i32 @putchar(i32 %109)
%111 = load i32, i32* %3
%112 = icmp slt i32 %103, %111
br i1 %112, label %100, label %113
113: ; preds = %100, %95, %91
%114 = call i32 @putchar(i32 10)
%115 = add nuw nsw i32 %92, 1
%116 = load i32, i32* %2
%117 = icmp slt i32 %92, %116
br i1 %117, label %91, label %169
118: ; preds = %10
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @.str.4, i64 0, i64 0), i8* %9)
%120 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%121 = load i32, i32* %3
%122 = icmp slt i32 %121, 3
br i1 %122, label %123, label %128
123: ; preds = %118, %123
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([134 x i8], [134 x i8]* @.str.5, i64 0, i64 0), i8* %9)
%125 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%126 = load i32, i32* %3
%127 = icmp slt i32 %126, 3
br i1 %127, label %123, label %128
128: ; preds = %123, %118
%129 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.6, i64 0, i64 0), i8* %9)
%130 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%131 = load i32, i32* %2
%132 = icmp slt i32 %131, 3
br i1 %132, label %133, label %138
133: ; preds = %128, %133
%134 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([129 x i8], [129 x i8]* @.str.7, i64 0, i64 0), i8* %9)
%135 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%136 = load i32, i32* %2
%137 = icmp slt i32 %136, 3
br i1 %137, label %133, label %138
138: ; preds = %133, %128
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %9)
%140 = load i32, i32* %2
%141 = icmp slt i32 %140, 1
br i1 %141, label %169, label %142
142: ; preds = %138, %164
%143 = phi i32 [ %166, %164 ], [ 1, %138 ]
%144 = load i32, i32* %3
%145 = icmp slt i32 %144, 1
br i1 %145, label %164, label %146
146: ; preds = %142
%147 = icmp ugt i32 %143, 1
%148 = call i32 @putchar(i32 35)
%149 = load i32, i32* %3
%150 = icmp sgt i32 %149, 1
br i1 %150, label %151, label %164
151: ; preds = %146, %151
%152 = phi i32 [ %162, %151 ], [ %149, %146 ]
%153 = phi i32 [ %154, %151 ], [ 1, %146 ]
%154 = add nuw nsw i32 %153, 1
%155 = load i32, i32* %2
%156 = icmp slt i32 %154, %152
%157 = select i1 %147, i1 %156, i1 false
%158 = icmp slt i32 %143, %155
%159 = select i1 %157, i1 %158, i1 false
%160 = select i1 %159, i32 32, i32 35
%161 = call i32 @putchar(i32 %160)
%162 = load i32, i32* %3
%163 = icmp slt i32 %154, %162
br i1 %163, label %151, label %164
164: ; preds = %151, %146, %142
%165 = call i32 @putchar(i32 10)
%166 = add nuw nsw i32 %143, 1
%167 = load i32, i32* %2
%168 = icmp slt i32 %143, %167
br i1 %168, label %142, label %169
169: ; preds = %113, %62, %164, %138, %87, %36
%170 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %36 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %87 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %138 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %164 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %62 ], [ getelementptr inbounds ([25 x i8], [25 x i8]* @str.16, i64 0, i64 0), %113 ]
%171 = call i32 @puts(i8* dereferenceable(1) %170)
%172 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), i8* %5)
%173 = load i8, i8* %5
%174 = icmp eq i8 %173, 115
br i1 %174, label %10, label %175
175: ; preds = %169
ret i32 0
}