#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 *);
int main(void) {
  int n, caso;
  int i = 1, x, remainder;
  printf("Please enter the side of the square: N = ");
  scanf("%d", &n);
  printf("\nEnter the case [1,2,3,4]: ");
  scanf("%d", &caso);
  printf("\n\n");
  if (caso <= 0 || caso > 4)
    caso = 1;
  switch (caso) {
  case 1:
    while (i <= n) {
      x = 1;
      while (x <= n) {
        printf(" *");
        x++;
      }
      printf("\n");
      i++;
    }
    break;
  case 2:
    while (i <= n) {
      x = 1;
      remainder = 0;
      while (x <= n) {
        remainder = x % n;
        if (remainder == 0 || remainder == 1 || i == 1 || i == n) {
          printf(" *");
        } else {
          printf("  ");
        }
        x++;
      }
      printf("\n");
      i++;
    }
    break;
  case 3:
    while (i <= n) {
      x = 1;
      while (x <= i) {
        printf(" *");
        x++;
      }
      printf("\n");
      i++;
    }
    break;
  case 4:
    while (i <= n) {
      x = 1;
      while (x <= n) {
        if (x <= i) {
          printf(" *");
        } else {
          printf(" +");
        }
        x++;
      }
      printf("\n");
      i++;
    }
    break;
  default:
    return 1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x10(%rbp)
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
lea    0xef1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
lea    0xed5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xee4(%rip),%rdi
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jle    118e <main+0x6e>
cmpl   $0x4,-0xc(%rbp)
jle    1195 <main+0x75>
movl   $0x1,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x20(%rbp)
sub    $0x3,%eax
ja     139b <main+0x27b>
mov    -0x20(%rbp),%rax
lea    0xe4b(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
jmp    11c3 <main+0xa3>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1216 <main+0xf6>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     11fc <main+0xdc>
lea    0xe73(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11d6 <main+0xb6>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11c3 <main+0xa3>
jmp    13a7 <main+0x287>
jmp    1220 <main+0x100>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12bf <main+0x19f>
movl   $0x1,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     12a5 <main+0x185>
mov    -0x14(%rbp),%eax
cltd
idivl  -0x8(%rbp)
mov    %edx,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     127a <main+0x15a>
cmpl   $0x1,-0x18(%rbp)
je     127a <main+0x15a>
cmpl   $0x1,-0x10(%rbp)
je     127a <main+0x15a>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jne    128b <main+0x16b>
lea    0xddb(%rip),%rdi
call   1030 <printf@plt>
jmp    1297 <main+0x177>
lea    0xdcd(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    123a <main+0x11a>
lea    0xdae(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1220 <main+0x100>
jmp    13a7 <main+0x287>
jmp    12c9 <main+0x1a9>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     131c <main+0x1fc>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1302 <main+0x1e2>
lea    0xd6d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12dc <main+0x1bc>
lea    0xd51(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12c9 <main+0x1a9>
jmp    13a7 <main+0x287>
jmp    1326 <main+0x206>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     1396 <main+0x276>
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jg     137c <main+0x25c>
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jg     1362 <main+0x242>
lea    0xd04(%rip),%rdi
call   1030 <printf@plt>
jmp    136e <main+0x24e>
lea    0xcf9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1339 <main+0x219>
lea    0xcd7(%rip),%rdi
call   1030 <printf@plt>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1326 <main+0x206>
jmp    13a7 <main+0x287>
movl   $0x1,-0x4(%rbp)
jmp    13ae <main+0x28e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebd(%rip),%rdi
call   1050 <printf@plt>
lea    0xedb(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xeca(%rip),%rdi
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xed6(%rip),%rdi
call   1040 <puts@plt>
mov    0xc(%rsp),%eax
lea    -0x5(%rax),%ecx
cmp    $0xfffffffb,%ecx
ja     1213 <main+0xd3>
movl   $0x1,0xc(%rsp)
mov    0x8(%rsp),%eax
xor    %r14d,%r14d
test   %eax,%eax
jle    1389 <main+0x249>
mov    $0x1,%r15d
lea    0xe98(%rip),%rbp
jmp    11ee <main+0xae>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r15),%ecx
mov    0x8(%rsp),%eax
cmp    %eax,%r15d
mov    %ecx,%r15d
jge    1389 <main+0x249>
test   %eax,%eax
jle    11d0 <main+0x90>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rbp,%rdi
call   1050 <printf@plt>
add    $0x1,%ebx
cmp    0x8(%rsp),%ebx
jl     1200 <main+0xc0>
jmp    11d0 <main+0x90>
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     12c3 <main+0x183>
lea    0xdda(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x8(%rsp),%ecx
xor    %r14d,%r14d
test   %ecx,%ecx
jle    1389 <main+0x249>
mov    $0x1,%ebx
lea    0xe0f(%rip),%r15
lea    0xe0b(%rip),%r12
jmp    127b <main+0x13b>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbx),%eax
mov    0x8(%rsp),%ecx
cmp    %ecx,%ebx
mov    %eax,%ebx
jge    1389 <main+0x249>
test   %ecx,%ecx
jle    1260 <main+0x120>
xor    %ebp,%ebp
jmp    129d <main+0x15d>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
call   1050 <printf@plt>
mov    0x8(%rsp),%ecx
cmp    %ecx,%ebp
jge    1260 <main+0x120>
add    $0x1,%ebp
mov    %ebp,%eax
cltd
idiv   %ecx
mov    %r15,%rax
cmp    %ecx,%ebx
je     12af <main+0x16f>
mov    %r12,%rax
cmp    $0x1,%ebx
cmove  %r15,%rax
mov    %r15,%rdi
cmp    $0x2,%edx
jb     1290 <main+0x150>
mov    %rax,%rdi
jmp    1290 <main+0x150>
mov    $0x1,%r14d
jmp    1389 <main+0x249>
xor    %r14d,%r14d
cmpl   $0x0,0x8(%rsp)
jle    1389 <main+0x249>
mov    $0x1,%r15d
lea    0xd70(%rip),%rbp
nopl   0x0(%rax)
mov    %r15d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
call   1050 <printf@plt>
add    $0xffffffff,%ebx
jne    1300 <main+0x1c0>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%r15),%eax
cmp    0x8(%rsp),%r15d
mov    %eax,%r15d
jl     12f0 <main+0x1b0>
jmp    1389 <main+0x249>
mov    0x8(%rsp),%eax
xor    %r14d,%r14d
test   %eax,%eax
jle    1389 <main+0x249>
mov    $0x1,%ebp
lea    0xd21(%rip),%r15
lea    0xd14(%rip),%r12
jmp    1367 <main+0x227>
nopw   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x1(%rbp),%ecx
mov    0x8(%rsp),%eax
cmp    %eax,%ebp
mov    %ecx,%ebp
jge    1389 <main+0x249>
test   %eax,%eax
jle    1350 <main+0x210>
xor    %ebx,%ebx
nopl   (%rax)
add    $0x1,%ebx
cmp    %ebp,%ebx
mov    %r12,%rdi
cmova  %r15,%rdi
call   1050 <printf@plt>
cmp    0x8(%rsp),%ebx
jl     1370 <main+0x230>
jmp    1350 <main+0x210>
mov    %r14d,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [42 x i8] c"Please enter the side of the square: N = \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [28 x i8] c"\0AEnter the case [1,2,3,4]: \00"
@.str.3 = [3 x i8] c"\0A\0A\00"
@.str.4 = [3 x i8] c" *\00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [3 x i8] c" \00"
@.str.7 = [3 x i8] c" +\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %4
%7 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%12 = load i32, i32* %3
%13 = icmp sle i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %0
%15 = load i32, i32* %3
%16 = icmp sgt i32 %15, 4
br i1 %16, label %17, label %18
17: ; preds = %14, %0
store i32 1, i32* %3
br label %18
18: ; preds = %17, %14
%19 = load i32, i32* %3
switch i32 %19, label %122 [
i32 1, label %20
i32 2, label %39
i32 3, label %77
i32 4, label %96
]
20: ; preds = %18
br label %21
21: ; preds = %34, %20
%22 = load i32, i32* %4
%23 = load i32, i32* %2
%24 = icmp sle i32 %22, %23
br i1 %24, label %25, label %38
25: ; preds = %21
store i32 1, i32* %5
br label %26
26: ; preds = %30, %25
%27 = load i32, i32* %5
%28 = load i32, i32* %2
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %26
%31 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%32 = load i32, i32* %5
%33 = add nsw i32 %32, 1
store i32 %33, i32* %5
br label %26
34: ; preds = %26
%35 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%36 = load i32, i32* %4
%37 = add nsw i32 %36, 1
store i32 %37, i32* %4
br label %21
38: ; preds = %21
br label %123
39: ; preds = %18
br label %40
40: ; preds = %72, %39
%41 = load i32, i32* %4
%42 = load i32, i32* %2
%43 = icmp sle i32 %41, %42
br i1 %43, label %44, label %76
44: ; preds = %40
store i32 1, i32* %5
store i32 0, i32* %6
br label %45
45: ; preds = %69, %44
%46 = load i32, i32* %5
%47 = load i32, i32* %2
%48 = icmp sle i32 %46, %47
br i1 %48, label %49, label %72
49: ; preds = %45
%50 = load i32, i32* %5
%51 = load i32, i32* %2
%52 = srem i32 %50, %51
store i32 %52, i32* %6
%53 = load i32, i32* %6
%54 = icmp eq i32 %53, 0
br i1 %54, label %65, label %55
55: ; preds = %49
%56 = load i32, i32* %6
%57 = icmp eq i32 %56, 1
br i1 %57, label %65, label %58
58: ; preds = %55
%59 = load i32, i32* %4
%60 = icmp eq i32 %59, 1
br i1 %60, label %65, label %61
61: ; preds = %58
%62 = load i32, i32* %4
%63 = load i32, i32* %2
%64 = icmp eq i32 %62, %63
br i1 %64, label %65, label %67
65: ; preds = %61, %58, %55, %49
%66 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %69
67: ; preds = %61
%68 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
br label %69
69: ; preds = %67, %65
%70 = load i32, i32* %5
%71 = add nsw i32 %70, 1
store i32 %71, i32* %5
br label %45
72: ; preds = %45
%73 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%74 = load i32, i32* %4
%75 = add nsw i32 %74, 1
store i32 %75, i32* %4
br label %40
76: ; preds = %40
br label %123
77: ; preds = %18
br label %78
78: ; preds = %91, %77
%79 = load i32, i32* %4
%80 = load i32, i32* %2
%81 = icmp sle i32 %79, %80
br i1 %81, label %82, label %95
82: ; preds = %78
store i32 1, i32* %5
br label %83
83: ; preds = %87, %82
%84 = load i32, i32* %5
%85 = load i32, i32* %4
%86 = icmp sle i32 %84, %85
br i1 %86, label %87, label %91
87: ; preds = %83
%88 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%89 = load i32, i32* %5
%90 = add nsw i32 %89, 1
store i32 %90, i32* %5
br label %83
91: ; preds = %83
%92 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %78
95: ; preds = %78
br label %123
96: ; preds = %18
br label %97
97: ; preds = %117, %96
%98 = load i32, i32* %4
%99 = load i32, i32* %2
%100 = icmp sle i32 %98, %99
br i1 %100, label %101, label %121
101: ; preds = %97
store i32 1, i32* %5
br label %102
102: ; preds = %114, %101
%103 = load i32, i32* %5
%104 = load i32, i32* %2
%105 = icmp sle i32 %103, %104
br i1 %105, label %106, label %117
106: ; preds = %102
%107 = load i32, i32* %5
%108 = load i32, i32* %4
%109 = icmp sle i32 %107, %108
br i1 %109, label %110, label %112
110: ; preds = %106
%111 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
br label %114
112: ; preds = %106
%113 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
br label %114
114: ; preds = %112, %110
%115 = load i32, i32* %5
%116 = add nsw i32 %115, 1
store i32 %116, i32* %5
br label %102
117: ; preds = %102
%118 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%119 = load i32, i32* %4
%120 = add nsw i32 %119, 1
store i32 %120, i32* %4
br label %97
121: ; preds = %97
br label %123
122: ; preds = %18
store i32 1, i32* %1
br label %124
123: ; preds = %121, %95, %76, %38
store i32 0, i32* %1
br label %124
124: ; preds = %123, %122
%125 = load i32, i32* %1
ret i32 %125
}

LLVM IR (-O2):
@.str = [42 x i8] c"Please enter the side of the square: N = \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [28 x i8] c"\0AEnter the case [1,2,3,4]: \00"
@.str.4 = [3 x i8] c" *\00"
@.str.6 = [3 x i8] c" \00"
@.str.7 = [3 x i8] c" +\00"
@str = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = bitcast i32* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%10 = load i32, i32* %2
%11 = add i32 %10, -5
%12 = icmp ult i32 %11, -4
br i1 %12, label %13, label %14
13: ; preds = %0
store i32 1, i32* %2
br label %24
14: ; preds = %0
switch i32 %10, label %97 [
i32 1, label %24
i32 2, label %21
i32 3, label %18
i32 4, label %15
]
15: ; preds = %14
%16 = load i32, i32* %1
%17 = icmp slt i32 %16, 1
br i1 %17, label %97, label %80
18: ; preds = %14
%19 = load i32, i32* %1
%20 = icmp slt i32 %19, 1
br i1 %20, label %97, label %66
21: ; preds = %14
%22 = load i32, i32* %1
%23 = icmp slt i32 %22, 1
br i1 %23, label %97, label %42
24: ; preds = %13, %14
%25 = load i32, i32* %1
%26 = icmp slt i32 %25, 1
br i1 %26, label %97, label %27
27: ; preds = %24, %37
%28 = phi i32 [ %40, %37 ], [ %25, %24 ]
%29 = phi i32 [ %39, %37 ], [ 1, %24 ]
%30 = icmp slt i32 %28, 1
br i1 %30, label %37, label %31
31: ; preds = %27, %31
%32 = phi i32 [ %34, %31 ], [ 1, %27 ]
%33 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%34 = add nuw nsw i32 %32, 1
%35 = load i32, i32* %1
%36 = icmp slt i32 %32, %35
br i1 %36, label %31, label %37
37: ; preds = %31, %27
%38 = call i32 @putchar(i32 10)
%39 = add nuw nsw i32 %29, 1
%40 = load i32, i32* %1
%41 = icmp slt i32 %29, %40
br i1 %41, label %27, label %97
42: ; preds = %21, %61
%43 = phi i32 [ %64, %61 ], [ %22, %21 ]
%44 = phi i32 [ %63, %61 ], [ 1, %21 ]
%45 = icmp slt i32 %43, 1
br i1 %45, label %61, label %46
46: ; preds = %42
%47 = icmp eq i32 %44, 1
br label %48
48: ; preds = %46, %48
%49 = phi i32 [ %43, %46 ], [ %59, %48 ]
%50 = phi i32 [ 1, %46 ], [ %58, %48 ]
%51 = srem i32 %50, %49
%52 = icmp ult i32 %51, 2
%53 = select i1 %52, i1 true, i1 %47
%54 = icmp eq i32 %44, %49
%55 = select i1 %53, i1 true, i1 %54
%56 = select i1 %55, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0)
%57 = call i32 @printf(i8* dereferenceable(1) %56)
%58 = add nuw nsw i32 %50, 1
%59 = load i32, i32* %1
%60 = icmp slt i32 %50, %59
br i1 %60, label %48, label %61
61: ; preds = %48, %42
%62 = call i32 @putchar(i32 10)
%63 = add nuw nsw i32 %44, 1
%64 = load i32, i32* %1
%65 = icmp slt i32 %44, %64
br i1 %65, label %42, label %97
66: ; preds = %18, %74
%67 = phi i32 [ %79, %74 ], [ 2, %18 ]
%68 = phi i32 [ %76, %74 ], [ 1, %18 ]
br label %69
69: ; preds = %66, %69
%70 = phi i32 [ 1, %66 ], [ %72, %69 ]
%71 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%72 = add nuw i32 %70, 1
%73 = icmp eq i32 %72, %67
br i1 %73, label %74, label %69
74: ; preds = %69
%75 = call i32 @putchar(i32 10)
%76 = add nuw nsw i32 %68, 1
%77 = load i32, i32* %1
%78 = icmp slt i32 %68, %77
%79 = add nuw i32 %67, 1
br i1 %78, label %66, label %97
80: ; preds = %15, %92
%81 = phi i32 [ %95, %92 ], [ %16, %15 ]
%82 = phi i32 [ %94, %92 ], [ 1, %15 ]
%83 = icmp slt i32 %81, 1
br i1 %83, label %92, label %84
84: ; preds = %80, %84
%85 = phi i32 [ %89, %84 ], [ 1, %80 ]
%86 = icmp ugt i32 %85, %82
%87 = select i1 %86, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%88 = call i32 @printf(i8* dereferenceable(1) %87)
%89 = add nuw nsw i32 %85, 1
%90 = load i32, i32* %1
%91 = icmp slt i32 %85, %90
br i1 %91, label %84, label %92
92: ; preds = %84, %80
%93 = call i32 @putchar(i32 10)
%94 = add nuw nsw i32 %82, 1
%95 = load i32, i32* %1
%96 = icmp slt i32 %82, %95
br i1 %96, label %80, label %97
97: ; preds = %92, %74, %61, %37, %15, %18, %21, %24, %14
%98 = phi i32 [ 1, %14 ], [ 0, %24 ], [ 0, %21 ], [ 0, %18 ], [ 0, %15 ], [ 0, %37 ], [ 0, %61 ], [ 0, %74 ], [ 0, %92 ]
ret i32 %98
}