#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 simbolo, altura, largura, i, j;
  char nome[20], continuar;
  do {
    printf("Informe o seu nome: ");
    scanf("%s", nome);
    printf("\nSimbolo do pixel (1 para %c, 2 para %c, 3 para %c): ", 42, 64,
           43);
    scanf("%d", &simbolo);
    while (simbolo < 1 || simbolo > 3) {
      printf("\nDesculpe...Escolha um simbolo valido (1 para %c, 2 para %c, 3 "
             "para %c): ",
             42, 64, 43);
      scanf("%d", &simbolo);
    }
    printf("\nTamanho da LARGURA (lembrando, deve ser maior que 2): ");
    scanf("%d", &largura);
    while (largura < 3) {
      printf("\nDesculpe...Para desenhar o retangulo a LARGURA deve ser maior "
             "que 2. Tente novamente: ");
      scanf("%d", &largura);
    }
    printf("\nTamanho da ALTURA do seu Retangulo (lembrando, deve ser maior "
           "que 2: ");
    scanf("%d", &altura);
    while (altura < 3) {
      printf("\nDesculpe...Para desenhar o retangulo a LARGURA deve ser maior "
             "que 2. Tente novamente:\n");
      scanf("%d", &altura);
    }
    printf("\n\nOla, meu nome eh %s e o retangulo ficou assim:\n\n", nome);
    for (i = 1; i <= altura; i++) {
      for (j = 1; j <= largura; j++) {
        if (i > 1 && j > 1 && j < largura && i < altura) {
          printf(" ");
        } else {
          if (simbolo == 1) {
            printf("%c", 42);
          }
          if (simbolo == 2) {
            printf("%c", 64);
          }
          if (simbolo == 3) {
            printf("%c", 43);
          }
        }
      }
      printf("\n");
    }
    printf("\nDeseja continuar (s/n)? ");
    scanf(" %c", &continuar);
  } while (continuar != 'n');
  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    0xecd(%rip),%rdi
mov    $0x0,%al
call   1040 <scanf@plt>
lea    0xec2(%rip),%rdi
mov    $0x2a,%esi
mov    $0x40,%edx
mov    $0x2b,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    $0x1,%al
cmpl   $0x1,-0x8(%rbp)
mov    %al,-0x32(%rbp)
jl     1197 <main+0x77>
cmpl   $0x3,-0x8(%rbp)
setg   %al
mov    %al,-0x32(%rbp)
mov    -0x32(%rbp),%al
test   $0x1,%al
jne    11a7 <main+0x87>
jmp    11db <main+0xbb>
lea    0xea3(%rip),%rdi
mov    $0x2a,%esi
mov    $0x40,%edx
mov    $0x2b,%ecx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe83(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    117e <main+0x5e>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe5e(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0x10(%rbp)
jge    122a <main+0x10a>
lea    0xec7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe34(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    11fb <main+0xdb>
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe0f(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x3,-0xc(%rbp)
jge    1279 <main+0x159>
lea    0xf17(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xde5(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    124a <main+0x12a>
lea    -0x30(%rbp),%rsi
lea    0xf46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     137b <main+0x25b>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     135f <main+0x23f>
cmpl   $0x1,-0x14(%rbp)
jle    12f0 <main+0x1d0>
cmpl   $0x1,-0x18(%rbp)
jle    12f0 <main+0x1d0>
mov    -0x18(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    12f0 <main+0x1d0>
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12f0 <main+0x1d0>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134c <main+0x22c>
cmpl   $0x1,-0x8(%rbp)
jne    130d <main+0x1ed>
lea    0xf17(%rip),%rdi
mov    $0x2a,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
jne    132a <main+0x20a>
lea    0xefa(%rip),%rdi
mov    $0x40,%esi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x3,-0x8(%rbp)
jne    1347 <main+0x227>
lea    0xedd(%rip),%rdi
mov    $0x2b,%esi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    134c <main+0x22c>
jmp    1351 <main+0x231>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12a5 <main+0x185>
lea    0xe95(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1292 <main+0x172>
lea    0xe7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe87(%rip),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x31(%rbp),%eax
cmp    $0x6e,%eax
jne    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),%r14
lea    0xef4(%rip),%r12
lea    0xc(%rsp),%rbp
lea    0xeeb(%rip),%r15
lea    0x4(%rsp),%rbx
jmp    11a9 <main+0x69>
nopl   (%rax)
lea    0x102e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x103a(%rip),%rdi
lea    0x3(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpb   $0x6e,0x3(%rsp)
lea    0x10(%rsp),%r14
mov    %r13,%r15
lea    0x4(%rsp),%rbx
je     13ab <main+0x26b>
lea    0xe50(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe57(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
lea    0xe49(%rip),%rdi
mov    $0x2a,%esi
mov    $0x40,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xfffffffc,%eax
cmp    $0xfffffffc,%eax
ja     1232 <main+0xf2>
xchg   %ax,%ax
mov    %r15,%rdi
mov    $0x2a,%esi
mov    $0x40,%edx
mov    $0x2b,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xfffffffc,%eax
cmp    $0xfffffffd,%eax
jb     1200 <main+0xc0>
lea    0xe62(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,0x4(%rsp)
lea    0xe7a(%rip),%r13
jg     127e <main+0x13e>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,0x4(%rsp)
jl     1260 <main+0x120>
mov    %r15,%r13
lea    0xea3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
lea    0x8(%rsp),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x2,0x8(%rsp)
lea    0xf16(%rip),%rbx
jg     12cc <main+0x18c>
nop
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r12,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
cmpl   $0x3,0x8(%rsp)
jl     12b0 <main+0x170>
lea    0xe9f(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rsp),%eax
test   %eax,%eax
jle    1170 <main+0x30>
mov    $0x1,%r15d
jmp    131e <main+0x1de>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r15),%ecx
mov    0x8(%rsp),%eax
cmp    %eax,%r15d
mov    %ecx,%r15d
jge    1170 <main+0x30>
mov    0x4(%rsp),%ecx
test   %ecx,%ecx
jle    1300 <main+0x1c0>
mov    $0x1,%r14d
cmp    $0x2,%r15d
jb     1355 <main+0x215>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x2,%r14d
jb     1355 <main+0x215>
cmp    %ecx,%r14d
jge    1355 <main+0x215>
mov    $0x20,%edi
cmp    %eax,%r15d
jl     1389 <main+0x249>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    136c <main+0x22c>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
cmp    $0x2,%eax
jne    137f <main+0x23f>
mov    $0x40,%edi
call   1030 <putchar@plt>
mov    0xc(%rsp),%eax
mov    $0x2b,%edi
cmp    $0x3,%eax
jne    138e <main+0x24e>
call   1030 <putchar@plt>
mov    0x4(%rsp),%ecx
cmp    %ecx,%r14d
jge    1300 <main+0x1c0>
add    $0x1,%r14d
mov    0x8(%rsp),%eax
cmp    $0x2,%r15d
jae    1340 <main+0x200>
jmp    1355 <main+0x215>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [21 x i8] c"Informe o seu nome: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [54 x i8] c"\0ASimbolo do pixel (1 para %c, 2 para %c, 3 para %c): \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [74 x i8] c"\0ADesculpe...Escolha um simbolo valido (1 para %c, 2 para %c, 3 para %c): \00"
@.str.5 = [56 x i8] c"\0ATamanho da LARGURA (lembrando, deve ser maior que 2): \00"
@.str.6 = [88 x i8] c"\0ADesculpe...Para desenhar o retangulo a LARGURA deve ser maior que 2. Tente novamente: \00"
@.str.7 = [71 x i8] c"\0ATamanho da ALTURA do seu Retangulo (lembrando, deve ser maior que 2: \00"
@.str.8 = [88 x i8] c"\0ADesculpe...Para desenhar o retangulo a LARGURA deve ser maior que 2. Tente novamente:\0A\00"
@.str.9 = [51 x i8] c"\0A\0AOla, meu nome eh %s e o retangulo ficou assim:\0A\0A\00"
@.str.10 = [2 x i8] c" \00"
@.str.11 = [3 x i8] c"%c\00"
@.str.12 = [2 x i8] c"\0A\00"
@.str.13 = [26 x i8] c"\0ADeseja continuar (s/n)? \00"
@.str.14 = [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 = %100, %0
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 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 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 42, i32 64, i32 43)
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
br label %15
15: ; preds = %23, %9
%16 = load i32, i32* %2
%17 = icmp slt i32 %16, 1
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = load i32, i32* %2
%20 = icmp sgt i32 %19, 3
br label %21
21: ; preds = %18, %15
%22 = phi i1 [ true, %15 ], [ %20, %18 ]
br i1 %22, label %23, label %26
23: ; preds = %21
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32 42, i32 64, i32 43)
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
br label %15
26: ; preds = %21
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%28 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %29
29: ; preds = %32, %26
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 3
br i1 %31, label %32, label %35
32: ; preds = %29
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.6, i64 0, i64 0))
%34 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %4)
br label %29
35: ; preds = %29
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%37 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %38
38: ; preds = %41, %35
%39 = load i32, i32* %3
%40 = icmp slt i32 %39, 3
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.8, i64 0, i64 0))
%43 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
br label %38
44: ; preds = %38
%45 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i8* %45)
store i32 1, i32* %5
br label %47
47: ; preds = %94, %44
%48 = load i32, i32* %5
%49 = load i32, i32* %3
%50 = icmp sle i32 %48, %49
br i1 %50, label %51, label %97
51: ; preds = %47
store i32 1, i32* %6
br label %52
52: ; preds = %89, %51
%53 = load i32, i32* %6
%54 = load i32, i32* %4
%55 = icmp sle i32 %53, %54
br i1 %55, label %56, label %92
56: ; preds = %52
%57 = load i32, i32* %5
%58 = icmp sgt i32 %57, 1
br i1 %58, label %59, label %72
59: ; preds = %56
%60 = load i32, i32* %6
%61 = icmp sgt i32 %60, 1
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = load i32, i32* %6
%64 = load i32, i32* %4
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %72
66: ; preds = %62
%67 = load i32, i32* %5
%68 = load i32, i32* %3
%69 = icmp slt i32 %67, %68
br i1 %69, label %70, label %72
70: ; preds = %66
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %88
72: ; preds = %66, %62, %59, %56
%73 = load i32, i32* %2
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %77
75: ; preds = %72
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 42)
br label %77
77: ; preds = %75, %72
%78 = load i32, i32* %2
%79 = icmp eq i32 %78, 2
br i1 %79, label %80, label %82
80: ; preds = %77
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 64)
br label %82
82: ; preds = %80, %77
%83 = load i32, i32* %2
%84 = icmp eq i32 %83, 3
br i1 %84, label %85, label %87
85: ; preds = %82
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i32 43)
br label %87
87: ; preds = %85, %82
br label %88
88: ; preds = %87, %70
br label %89
89: ; preds = %88
%90 = load i32, i32* %6
%91 = add nsw i32 %90, 1
store i32 %91, i32* %6
br label %52
92: ; preds = %52
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %94
94: ; preds = %92
%95 = load i32, i32* %5
%96 = add nsw i32 %95, 1
store i32 %96, i32* %5
br label %47
97: ; preds = %47
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0))
%99 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* %8)
br label %100
100: ; preds = %97
%101 = load i8, i8* %8
%102 = sext i8 %101 to i32
%103 = icmp ne i32 %102, 110
br i1 %103, label %9, label %104
104: ; preds = %100
ret i32 0
}

LLVM IR (-O2):
@.str = [21 x i8] c"Informe o seu nome: \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [54 x i8] c"\0ASimbolo do pixel (1 para %c, 2 para %c, 3 para %c): \00"
@.str.3 = [3 x i8] c"%d\00"
@.str.4 = [74 x i8] c"\0ADesculpe...Escolha um simbolo valido (1 para %c, 2 para %c, 3 para %c): \00"
@.str.5 = [56 x i8] c"\0ATamanho da LARGURA (lembrando, deve ser maior que 2): \00"
@.str.6 = [88 x i8] c"\0ADesculpe...Para desenhar o retangulo a LARGURA deve ser maior que 2. Tente novamente: \00"
@.str.7 = [71 x i8] c"\0ATamanho da ALTURA do seu Retangulo (lembrando, deve ser maior que 2: \00"
@.str.9 = [51 x i8] c"\0A\0AOla, meu nome eh %s e o retangulo ficou assim:\0A\0A\00"
@.str.13 = [26 x i8] c"\0ADeseja continuar (s/n)? \00"
@.str.14 = [4 x i8] c" %c\00"
@str = [87 x i8] c"\0ADesculpe...Para desenhar o retangulo a LARGURA deve ser maior que 2. Tente novamente:\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 = %94, %0
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 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 ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 42, i32 64, i32 43)
%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
%16 = add i32 %15, -4
%17 = icmp ult i32 %16, -3
br i1 %17, label %18, label %24
18: ; preds = %10, %18
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @.str.4, i64 0, i64 0), i32 42, i32 64, i32 43)
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %1)
%21 = load i32, i32* %1
%22 = add i32 %21, -4
%23 = icmp ult i32 %22, -3
br i1 %23, label %18, label %24
24: ; preds = %18, %10
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%27 = load i32, i32* %3
%28 = icmp slt i32 %27, 3
br i1 %28, label %29, label %34
29: ; preds = %24, %29
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([88 x i8], [88 x i8]* @.str.6, i64 0, i64 0))
%31 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %3)
%32 = load i32, i32* %3
%33 = icmp slt i32 %32, 3
br i1 %33, label %29, label %34
34: ; preds = %29, %24
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @.str.7, i64 0, i64 0))
%36 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%37 = load i32, i32* %2
%38 = icmp slt i32 %37, 3
br i1 %38, label %39, label %44
39: ; preds = %34, %39
%40 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str, i64 0, i64 0))
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %2)
%42 = load i32, i32* %2
%43 = icmp slt i32 %42, 3
br i1 %43, label %39, label %44
44: ; preds = %39, %34
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0), i8* %9)
%46 = load i32, i32* %2
%47 = icmp slt i32 %46, 1
br i1 %47, label %94, label %48
48: ; preds = %44, %89
%49 = phi i32 [ %92, %89 ], [ %46, %44 ]
%50 = phi i32 [ %91, %89 ], [ 1, %44 ]
%51 = load i32, i32* %3
%52 = icmp slt i32 %51, 1
br i1 %52, label %89, label %53
53: ; preds = %48
%54 = icmp ugt i32 %50, 1
br label %55
55: ; preds = %86, %53
%56 = phi i32 [ %49, %53 ], [ %88, %86 ]
%57 = phi i32 [ %51, %53 ], [ %84, %86 ]
%58 = phi i32 [ 1, %53 ], [ %87, %86 ]
%59 = icmp ugt i32 %58, 1
%60 = select i1 %54, i1 %59, i1 false
%61 = icmp slt i32 %58, %57
%62 = select i1 %60, i1 %61, i1 false
%63 = icmp slt i32 %50, %56
%64 = select i1 %62, i1 %63, i1 false
br i1 %64, label %80, label %65
65: ; preds = %55
%66 = load i32, i32* %1
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %71
68: ; preds = %65
%69 = call i32 @putchar(i32 42)
%70 = load i32, i32* %1
br label %71
71: ; preds = %68, %65
%72 = phi i32 [ %70, %68 ], [ %66, %65 ]
%73 = icmp eq i32 %72, 2
br i1 %73, label %74, label %77
74: ; preds = %71
%75 = call i32 @putchar(i32 64)
%76 = load i32, i32* %1
br label %77
77: ; preds = %74, %71
%78 = phi i32 [ %76, %74 ], [ %72, %71 ]
%79 = icmp eq i32 %78, 3
br i1 %79, label %80, label %83
80: ; preds = %77, %55
%81 = phi i32 [ 32, %55 ], [ 43, %77 ]
%82 = call i32 @putchar(i32 %81)
br label %83
83: ; preds = %80, %77
%84 = load i32, i32* %3
%85 = icmp slt i32 %58, %84
br i1 %85, label %86, label %89
86: ; preds = %83
%87 = add nuw nsw i32 %58, 1
%88 = load i32, i32* %2
br label %55
89: ; preds = %83, %48
%90 = call i32 @putchar(i32 10)
%91 = add nuw nsw i32 %50, 1
%92 = load i32, i32* %2
%93 = icmp slt i32 %50, %92
br i1 %93, label %48, label %94
94: ; preds = %89, %44
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.13, i64 0, i64 0))
%96 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), i8* %5)
%97 = load i8, i8* %5
%98 = icmp eq i8 %97, 110
br i1 %98, label %99, label %10
99: ; preds = %94
ret i32 0
}