#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 i, largura, altura;
  char x;
  int j;
  int z;
  int v;
  int sn = 1;
  {
    printf("\n\nEntre com caractere desejado.\n");
    scanf("%c", &x);
    printf("\nVocê digitou %c\n\n", x);
  }
  while (sn < 2) {
    altura = -1;
    largura = -1;
    while ((altura < 1) || (altura > 30)) {
      {
        printf("\nEntre com a altura.\n\n");
        printf("\nEntre ( 1 e 30)\n\n");
        scanf("%d", &altura);
      }
      if ((altura < 1) || (altura > 30)) {
        printf(" \n\nErro\n");
        altura = 1;
      }
    }
    while ((largura < 1) || (largura > 30)) {
      {
        printf("\nEntre com a largura.\n\n");
        printf("\n Entre (1 e 30)\n\n");
        scanf("%d", &largura);
      }
      if ((largura < 1) || (largura > 30)) {
        printf("\n\nErro\n");
        altura = 1;
      }
    }
    { printf(" \n\nOla meu nome é vander e o retangulo ficou assim.\n\n"); }
    for (i = 0; i < largura; i++) {
      printf("%2.1c", x);
    }
    for (z = 0; z < altura; z++) {
      { printf("\n%c", x); }
      for (j = 0; j < largura - 1; j++) {
        printf(" ");
        printf(" ");
      }
      { printf(" "); }
      { printf("%c", x); }
    }
    { printf(" \n"); }
    for (v = 0; v < largura; v++) {
      { printf("%2.1c", x); }
    }
    { printf("\n\ndeseja continuar?\n"); }
    {
      printf(" \nDigite ( 1 ) para sim e ( 2 ) para não.\n");
      scanf("%d", &sn);
    }
    if (sn > 2) {
      while ((sn > 2) || (sn < 1)) {
        printf(" \n\nErro: digite (1) para sim e  (2) pra não.");
        scanf("%d", &sn);
      }
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x24(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf89(%rip),%rdi
lea    -0x11(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
movsbl -0x11(%rbp),%esi
lea    0xec0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x2,-0x24(%rbp)
jge    143b <main+0x31b>
movl   $0xffffffff,-0x10(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    $0x1,%al
cmpl   $0x1,-0x10(%rbp)
mov    %al,-0x25(%rbp)
jl     1199 <main+0x79>
cmpl   $0x1e,-0x10(%rbp)
setg   %al
mov    %al,-0x25(%rbp)
mov    -0x25(%rbp),%al
test   $0x1,%al
jne    11a9 <main+0x89>
jmp    1205 <main+0xe5>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe93(%rip),%rdi
lea    -0x10(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0x10(%rbp)
jl     11eb <main+0xcb>
cmpl   $0x1e,-0x10(%rbp)
jle    1200 <main+0xe0>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
jmp    1180 <main+0x60>
jmp    120a <main+0xea>
mov    $0x1,%al
cmpl   $0x1,-0xc(%rbp)
mov    %al,-0x26(%rbp)
jl     1223 <main+0x103>
cmpl   $0x1e,-0xc(%rbp)
setg   %al
mov    %al,-0x26(%rbp)
mov    -0x26(%rbp),%al
test   $0x1,%al
jne    1233 <main+0x113>
jmp    128f <main+0x16f>
lea    0xe31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe09(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x1,-0xc(%rbp)
jl     1275 <main+0x155>
cmpl   $0x1e,-0xc(%rbp)
jle    128a <main+0x16a>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x10(%rbp)
jmp    120a <main+0xea>
lea    0xe00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12d0 <main+0x1b0>
movsbl -0x11(%rbp),%esi
lea    0xe12(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12a4 <main+0x184>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1365 <main+0x245>
movsbl -0x11(%rbp),%esi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1337 <main+0x217>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12fc <main+0x1dc>
lea    0xd99(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsbl -0x11(%rbp),%esi
lea    0xd84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12d7 <main+0x1b7>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    13a6 <main+0x286>
movsbl -0x11(%rbp),%esi
lea    0xd3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    137a <main+0x25a>
lea    0xd2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd36(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc96(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
cmpl   $0x2,-0x24(%rbp)
jle    1436 <main+0x316>
jmp    13e3 <main+0x2c3>
mov    $0x1,%al
cmpl   $0x2,-0x24(%rbp)
mov    %al,-0x27(%rbp)
jg     13fc <main+0x2dc>
cmpl   $0x1,-0x24(%rbp)
setl   %al
mov    %al,-0x27(%rbp)
mov    -0x27(%rbp),%al
test   $0x1,%al
jne    140c <main+0x2ec>
jmp    1431 <main+0x311>
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc3e(%rip),%rdi
lea    -0x24(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
jmp    13e3 <main+0x2c3>
jmp    1436 <main+0x316>
jmp    1168 <main+0x48>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x1,0x14(%rsp)
lea    0xef2(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb5(%rip),%rdi
lea    0xb(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
movsbl 0xb(%rsp),%esi
lea    0xe7f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe85(%rip),%r15
lea    0xf50(%rip),%r14
lea    0xf60(%rip),%rbx
lea    0xc(%rsp),%rbp
lea    0xf8f(%rip),%r13
lea    0xe67(%rip),%r12
jmp    11df <main+0x9f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
cmp    $0x2,%eax
mov    %r14,%r15
lea    0xf30(%rip),%rbx
lea    0xf12(%rip),%r14
lea    0xc(%rsp),%rbp
jge    13f8 <main+0x2b8>
movl   $0xffffffff,0x10(%rsp)
ff
movl   $0xffffffff,0xc(%rsp)
ff
lea    0xf19(%rip),%rdi
call   1040 <puts@plt>
lea    0xf23(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x10(%rsp),%eax
add    $0xffffffe1,%eax
cmp    $0xffffffe2,%eax
jae    1236 <main+0xf6>
lea    0xf0e(%rip),%rdi
call   1040 <puts@plt>
movl   $0x1,0x10(%rsp)
mov    0xc(%rsp),%eax
add    $0xffffffe1,%eax
cmp    $0xffffffe1,%eax
ja     1295 <main+0x155>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %r14,%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffe1,%eax
cmp    $0xffffffe1,%eax
ja     1295 <main+0x155>
mov    %r13,%rdi
call   1040 <puts@plt>
movl   $0x1,0x10(%rsp)
mov    0xc(%rsp),%eax
add    $0xffffffe1,%eax
cmp    $0xffffffe2,%eax
jb     1250 <main+0x110>
lea    0xdd3(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    12c8 <main+0x188>
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movsbl 0xb(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     12b0 <main+0x170>
cmpl   $0x0,0x10(%rsp)
lea    0xd49(%rip),%rbp
jle    1350 <main+0x210>
xor    %r14d,%r14d
jmp    12ff <main+0x1bf>
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl 0xb(%rsp),%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
cmp    0x10(%rsp),%r14d
jge    1350 <main+0x210>
movsbl 0xb(%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
cmpl   $0x2,0xc(%rsp)
jl     12e0 <main+0x1a0>
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%r13d
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    %eax,%r13d
jl     1320 <main+0x1e0>
jmp    12e0 <main+0x1a0>
cs nopw 0x0(%rax,%rax,1)
lea    0xd4e(%rip),%rdi
call   1040 <puts@plt>
cmpl   $0x0,0xc(%rsp)
jle    1388 <main+0x248>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movsbl 0xb(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jl     1370 <main+0x230>
lea    0xd18(%rip),%rdi
call   1040 <puts@plt>
lea    0xd20(%rip),%rdi
call   1040 <puts@plt>
mov    %r15,%rdi
mov    %r15,%r14
lea    0x14(%rsp),%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
cmp    $0x3,%eax
lea    0xd75(%rip),%r13
lea    0xc57(%rip),%rbx
jl     11c0 <main+0x80>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <scanf@plt>
mov    0x14(%rsp),%eax
lea    -0x3(%rax),%ecx
cmp    $0xfffffffe,%ecx
jb     13d0 <main+0x290>
jmp    11c0 <main+0x80>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [33 x i8] c"\0A\0AEntre com caractere desejado.\0A\00"
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [20 x i8] c"\0AVoc\C3\AA digitou %c\0A\0A\00"
@.str.3 = [23 x i8] c"\0AEntre com a altura.\0A\0A\00"
@.str.4 = [19 x i8] c"\0AEntre ( 1 e 30)\0A\0A\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.6 = [9 x i8] c" \0A\0AErro\0A\00"
@.str.7 = [24 x i8] c"\0AEntre com a largura.\0A\0A\00"
@.str.8 = [19 x i8] c"\0A Entre (1 e 30)\0A\0A\00"
@.str.9 = [8 x i8] c"\0A\0AErro\0A\00"
@.str.10 = [55 x i8] c" \0A\0AOla meu nome \C3\A9 vander e o retangulo ficou assim.\0A\0A\00"
@.str.11 = [6 x i8] c"%2.1c\00"
@.str.12 = [4 x i8] c"\0A%c\00"
@.str.13 = [2 x i8] c" \00"
@.str.14 = [3 x i8] c" \0A\00"
@.str.15 = [21 x i8] c"\0A\0Adeseja continuar?\0A\00"
@.str.16 = [44 x i8] c" \0ADigite ( 1 ) para sim e ( 2 ) para n\C3\A3o.\0A\00"
@.str.17 = [46 x i8] c" \0A\0AErro: digite (1) para sim e (2) pra n\C3\A3o.\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %9
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %5)
%12 = load i8, i8* %5
%13 = sext i8 %12 to i32
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %13)
br label %15
15: ; preds = %133, %0
%16 = load i32, i32* %9
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %134
18: ; preds = %15
store i32 -1, i32* %4
store i32 -1, i32* %3
br label %19
19: ; preds = %38, %18
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 1
br i1 %21, label %25, label %22
22: ; preds = %19
%23 = load i32, i32* %4
%24 = icmp sgt i32 %23, 30
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ true, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %39
27: ; preds = %25
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%31 = load i32, i32* %4
%32 = icmp slt i32 %31, 1
br i1 %32, label %36, label %33
33: ; preds = %27
%34 = load i32, i32* %4
%35 = icmp sgt i32 %34, 30
br i1 %35, label %36, label %38
36: ; preds = %33, %27
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %4
br label %38
38: ; preds = %36, %33
br label %19
39: ; preds = %25
br label %40
40: ; preds = %59, %39
%41 = load i32, i32* %3
%42 = icmp slt i32 %41, 1
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = load i32, i32* %3
%45 = icmp sgt i32 %44, 30
br label %46
46: ; preds = %43, %40
%47 = phi i1 [ true, %40 ], [ %45, %43 ]
br i1 %47, label %48, label %60
48: ; preds = %46
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.7, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %3)
%52 = load i32, i32* %3
%53 = icmp slt i32 %52, 1
br i1 %53, label %57, label %54
54: ; preds = %48
%55 = load i32, i32* %3
%56 = icmp sgt i32 %55, 30
br i1 %56, label %57, label %59
57: ; preds = %54, %48
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
store i32 1, i32* %4
br label %59
59: ; preds = %57, %54
br label %40
60: ; preds = %46
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %2
br label %62
62: ; preds = %70, %60
%63 = load i32, i32* %2
%64 = load i32, i32* %3
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %73
66: ; preds = %62
%67 = load i8, i8* %5
%68 = sext i8 %67 to i32
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %68)
br label %70
70: ; preds = %66
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %62
73: ; preds = %62
store i32 0, i32* %7
br label %74
74: ; preds = %98, %73
%75 = load i32, i32* %7
%76 = load i32, i32* %4
%77 = icmp slt i32 %75, %76
br i1 %77, label %78, label %101
78: ; preds = %74
%79 = load i8, i8* %5
%80 = sext i8 %79 to i32
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %80)
store i32 0, i32* %6
br label %82
82: ; preds = %90, %78
%83 = load i32, i32* %6
%84 = load i32, i32* %3
%85 = sub nsw i32 %84, 1
%86 = icmp slt i32 %83, %85
br i1 %86, label %87, label %93
87: ; preds = %82
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %90
90: ; preds = %87
%91 = load i32, i32* %6
%92 = add nsw i32 %91, 1
store i32 %92, i32* %6
br label %82
93: ; preds = %82
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%95 = load i8, i8* %5
%96 = sext i8 %95 to i32
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %96)
br label %98
98: ; preds = %93
%99 = load i32, i32* %7
%100 = add nsw i32 %99, 1
store i32 %100, i32* %7
br label %74
101: ; preds = %74
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
store i32 0, i32* %8
br label %103
103: ; preds = %111, %101
%104 = load i32, i32* %8
%105 = load i32, i32* %3
%106 = icmp slt i32 %104, %105
br i1 %106, label %107, label %114
107: ; preds = %103
%108 = load i8, i8* %5
%109 = sext i8 %108 to i32
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %109)
br label %111
111: ; preds = %107
%112 = load i32, i32* %8
%113 = add nsw i32 %112, 1
store i32 %113, i32* %8
br label %103
114: ; preds = %103
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0))
%117 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %9)
%118 = load i32, i32* %9
%119 = icmp sgt i32 %118, 2
br i1 %119, label %120, label %133
120: ; preds = %114
br label %121
121: ; preds = %129, %120
%122 = load i32, i32* %9
%123 = icmp sgt i32 %122, 2
br i1 %123, label %127, label %124
124: ; preds = %121
%125 = load i32, i32* %9
%126 = icmp slt i32 %125, 1
br label %127
127: ; preds = %124, %121
%128 = phi i1 [ true, %121 ], [ %126, %124 ]
br i1 %128, label %129, label %132
129: ; preds = %127
%130 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%131 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %9)
br label %121
132: ; preds = %127
br label %133
133: ; preds = %132, %114
br label %15
134: ; preds = %15
%135 = load i32, i32* %1
ret i32 %135
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%c\00"
@.str.2 = [20 x i8] c"\0AVoc\C3\AA digitou %c\0A\0A\00"
@.str.5 = [3 x i8] c"%d\00"
@.str.11 = [6 x i8] c"%2.1c\00"
@.str.12 = [4 x i8] c"\0A%c\00"
@.str.17 = [46 x i8] c" \0A\0AErro: digite (1) para sim e (2) pra n\C3\A3o.\00"
@str = [32 x i8] c"\0A\0AEntre com caractere desejado.\00"
@str.18 = [54 x i8] c" \0A\0AOla meu nome \C3\A9 vander e o retangulo ficou assim.\0A\00"
@str.19 = [2 x i8] c" \00"
@str.20 = [20 x i8] c"\0A\0Adeseja continuar?\00"
@str.21 = [43 x i8] c" \0ADigite ( 1 ) para sim e ( 2 ) para n\C3\A3o.\00"
@str.22 = [23 x i8] c"\0AEntre com a largura.\0A\00"
@str.23 = [18 x i8] c"\0A Entre (1 e 30)\0A\00"
@str.24 = [7 x i8] c"\0A\0AErro\00"
@str.25 = [22 x i8] c"\0AEntre com a altura.\0A\00"
@str.26 = [18 x i8] c"\0AEntre ( 1 e 30)\0A\00"
@str.27 = [8 x i8] c" \0A\0AErro\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i8
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %4 to i8*
store i32 1, i32* %4
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %3)
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %100, %0
store i32 -1, i32* %2
store i32 -1, i32* %1
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.25, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.26, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %2
%18 = add i32 %17, -31
%19 = icmp ult i32 %18, -30
br i1 %19, label %24, label %20
20: ; preds = %13, %24
%21 = load i32, i32* %1
%22 = add i32 %21, -31
%23 = icmp ult i32 %22, -30
br i1 %23, label %26, label %38
24: ; preds = %13
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.27, i64 0, i64 0))
store i32 1, i32* %2
br label %20
26: ; preds = %20, %33
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.22, i64 0, i64 0))
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.23, i64 0, i64 0))
%29 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %1)
%30 = load i32, i32* %1
%31 = add i32 %30, -31
%32 = icmp ult i32 %31, -30
br i1 %32, label %33, label %38
33: ; preds = %26
%34 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.24, i64 0, i64 0))
store i32 1, i32* %2
%35 = load i32, i32* %1
%36 = add i32 %35, -31
%37 = icmp ult i32 %36, -30
br i1 %37, label %26, label %38
38: ; preds = %26, %33, %20
%39 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.18, i64 0, i64 0))
%40 = load i32, i32* %1
%41 = icmp sgt i32 %40, 0
br i1 %41, label %45, label %42
42: ; preds = %45, %38
%43 = load i32, i32* %2
%44 = icmp sgt i32 %43, 0
br i1 %44, label %53, label %76
45: ; preds = %38, %45
%46 = phi i32 [ %50, %45 ], [ 0, %38 ]
%47 = load i8, i8* %3
%48 = sext i8 %47 to i32
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %48)
%50 = add nuw nsw i32 %46, 1
%51 = load i32, i32* %1
%52 = icmp slt i32 %50, %51
br i1 %52, label %45, label %42
53: ; preds = %42, %68
%54 = phi i32 [ %73, %68 ], [ 0, %42 ]
%55 = load i8, i8* %3
%56 = sext i8 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0), i32 %56)
%58 = load i32, i32* %1
%59 = icmp sgt i32 %58, 1
br i1 %59, label %60, label %68
60: ; preds = %53, %60
%61 = phi i32 [ %64, %60 ], [ 0, %53 ]
%62 = call i32 @putchar(i32 32)
%63 = call i32 @putchar(i32 32)
%64 = add nuw nsw i32 %61, 1
%65 = load i32, i32* %1
%66 = add nsw i32 %65, -1
%67 = icmp slt i32 %64, %66
br i1 %67, label %60, label %68
68: ; preds = %60, %53
%69 = call i32 @putchar(i32 32)
%70 = load i8, i8* %3
%71 = sext i8 %70 to i32
%72 = call i32 @putchar(i32 %71)
%73 = add nuw nsw i32 %54, 1
%74 = load i32, i32* %2
%75 = icmp slt i32 %73, %74
br i1 %75, label %53, label %76
76: ; preds = %68, %42
%77 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str.19, i64 0, i64 0))
%78 = load i32, i32* %1
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %88
80: ; preds = %76, %80
%81 = phi i32 [ %85, %80 ], [ 0, %76 ]
%82 = load i8, i8* %3
%83 = sext i8 %82 to i32
%84 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 %83)
%85 = add nuw nsw i32 %81, 1
%86 = load i32, i32* %1
%87 = icmp slt i32 %85, %86
br i1 %87, label %80, label %88
88: ; preds = %80, %76
%89 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.21, i64 0, i64 0))
%91 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%92 = load i32, i32* %4
%93 = icmp sgt i32 %92, 2
br i1 %93, label %94, label %100
94: ; preds = %88, %94
%95 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.17, i64 0, i64 0))
%96 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32* %4)
%97 = load i32, i32* %4
%98 = add i32 %97, -3
%99 = icmp ult i32 %98, -2
br i1 %99, label %94, label %100
100: ; preds = %94, %88
%101 = phi i32 [ %92, %88 ], [ %97, %94 ]
%102 = icmp slt i32 %101, 2
br i1 %102, label %13, label %103
103: ; preds = %100
ret i32 0
}