#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 h1, h2, h3, i, j = 0, k, l, stars, spaces, width = 0;
  printf("Please input h1\n");
  scanf("%d", &h1);
  printf("Please input h2\n");
  scanf("%d", &h2);
  printf("Please input h3\n");
  scanf("%d", &h3);
  width = 2 * h1 - 1;
  stars = 1;
  spaces = width / 2;
  for (i = 0; i < h1; i++) {
    for (l = 0; l < spaces; l++)
      printf(" ");
    for (k = 0; k < stars; k++)
      printf("*");
    printf("\n");
    stars += 2;
    spaces--;
  }
  for (i = 0; i < width; i++)
    printf("+");
  printf("\n");
  for (k = 0; k < h2; k++) {
    for (i = 0; i < width; i++)
      printf("O");
    printf("\n");
  }
  for (i = 0; i < width; i++)
    printf("-");
  printf("\n");
  for (k = 0; k < h3; k++) {
    for (i = 0; i < width; i++)
      printf("|");
    printf("\n");
  }
  for (i = 0; i < width; i++)
    printf("-");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x2c(%rbp)
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xeb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xea5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xea9(%rip),%rdi
call   1030 <printf@plt>
lea    0xe89(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
shl    $0x1,%eax
sub    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x2c(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    124b <main+0x12b>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    11f2 <main+0xd2>
lea    0xe57(%rip),%rdi
call   1030 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11cc <main+0xac>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    121f <main+0xff>
lea    0xe2c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11f9 <main+0xd9>
lea    0xde9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11b9 <main+0x99>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1278 <main+0x158>
lea    0xdd5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1252 <main+0x132>
lea    0xd90(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    12de <main+0x1be>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12c4 <main+0x1a4>
lea    0xd8b(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    129e <main+0x17e>
lea    0xd44(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    128b <main+0x16b>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    130b <main+0x1eb>
lea    0xd46(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12e5 <main+0x1c5>
lea    0xcfd(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1371 <main+0x251>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1357 <main+0x237>
lea    0xcfc(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1331 <main+0x211>
lea    0xcb1(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    131e <main+0x1fe>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    139e <main+0x27e>
lea    0xcb3(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1378 <main+0x258>
xor    %eax,%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
lea    0xebe(%rip),%rdi
call   1040 <puts@plt>
lea    0xeaf(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xeae(%rip),%rdi
call   1040 <puts@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xea5(%rip),%rdi
call   1040 <puts@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
mov    0x14(%rsp),%r15d
lea    (%r15,%r15,1),%r14d
add    $0xffffffff,%r14d
test   %r15d,%r15d
jle    123f <main+0x10f>
mov    %r14d,%ebx
shr    $0x1f,%ebx
add    %r14d,%ebx
sar    %ebx
xor    %r12d,%r12d
mov    $0x1,%r13d
nopw   0x0(%rax,%rax,1)
mov    %ebx,%ebp
test   %ebx,%ebx
jle    11df <main+0xaf>
cs nopw 0x0(%rax,%rax,1)
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    11d0 <main+0xa0>
mov    %r13d,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebp
jne    11f0 <main+0xc0>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x2,%r13d
add    $0xffffffff,%ebx
add    $0x1,%r12d
cmp    0x14(%rsp),%r12d
jl     11c0 <main+0x90>
test   %r15d,%r15d
jle    123f <main+0x10f>
cmp    $0x2,%r14d
mov    $0x1,%ebx
cmovge %r14d,%ebx
nopl   (%rax)
mov    $0x2b,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1230 <main+0x100>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x0,0x10(%rsp)
jle    12a1 <main+0x171>
cmp    $0x2,%r14d
mov    $0x1,%r12d
cmovge %r14d,%r12d
xor    %ebp,%ebp
jmp    1283 <main+0x153>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    0x10(%rsp),%ebp
jge    12a1 <main+0x171>
mov    %r12d,%ebx
test   %r15d,%r15d
jle    1270 <main+0x140>
nopl   0x0(%rax,%rax,1)
mov    $0x4f,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1290 <main+0x160>
jmp    1270 <main+0x140>
test   %r15d,%r15d
jle    12cf <main+0x19f>
cmp    $0x2,%r14d
mov    $0x1,%ebx
cmovge %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    12c0 <main+0x190>
mov    $0xa,%edi
call   1030 <putchar@plt>
cmpl   $0x0,0xc(%rsp)
jle    1331 <main+0x201>
cmp    $0x2,%r14d
mov    $0x1,%r12d
cmovge %r14d,%r12d
xor    %ebp,%ebp
jmp    1313 <main+0x1e3>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x1,%ebp
cmp    0xc(%rsp),%ebp
jge    1331 <main+0x201>
mov    %r12d,%ebx
test   %r15d,%r15d
jle    1300 <main+0x1d0>
nopl   0x0(%rax,%rax,1)
mov    $0x7c,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1320 <main+0x1f0>
jmp    1300 <main+0x1d0>
test   %r15d,%r15d
jle    135f <main+0x22f>
cmp    $0x2,%r14d
mov    $0x1,%ebx
cmovge %r14d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%ebx
jne    1350 <main+0x220>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@.str.1 = [3 x i8] c"%d\00"
@str = [16 x i8] c"Please input h1\00"
@str.11 = [16 x i8] c"Please input h2\00"
@str.12 = [16 x i8] c"Please input h3\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = bitcast i32* %1 to i8*
%5 = bitcast i32* %2 to i8*
%6 = bitcast i32* %3 to i8*
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 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* %1)
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.11, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.12, i64 0, i64 0))
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%13 = load i32, i32* %1
%14 = shl nsw i32 %13, 1
%15 = add i32 %14, -1
%16 = icmp sgt i32 %13, 0
br i1 %16, label %17, label %50
17: ; preds = %0
%18 = sdiv i32 %15, 2
br label %19
19: ; preds = %17, %38
%20 = phi i32 [ %41, %38 ], [ %18, %17 ]
%21 = phi i32 [ %40, %38 ], [ 1, %17 ]
%22 = phi i32 [ %42, %38 ], [ 0, %17 ]
%23 = icmp sgt i32 %20, 0
br i1 %23, label %27, label %32
24: ; preds = %38
br i1 %16, label %25, label %50
25: ; preds = %24
%26 = call i32 @llvm.smax.i32(i32 %15, i32 1)
br label %45
27: ; preds = %19, %27
%28 = phi i32 [ %30, %27 ], [ 0, %19 ]
%29 = call i32 @putchar(i32 32)
%30 = add nuw nsw i32 %28, 1
%31 = icmp eq i32 %30, %20
br i1 %31, label %32, label %27
32: ; preds = %27, %19
br label %33
33: ; preds = %32, %33
%34 = phi i32 [ %36, %33 ], [ 0, %32 ]
%35 = call i32 @putchar(i32 42)
%36 = add nuw nsw i32 %34, 1
%37 = icmp eq i32 %36, %21
br i1 %37, label %38, label %33
38: ; preds = %33
%39 = call i32 @putchar(i32 10)
%40 = add nuw nsw i32 %21, 2
%41 = add nsw i32 %20, -1
%42 = add nuw nsw i32 %22, 1
%43 = load i32, i32* %1
%44 = icmp slt i32 %42, %43
br i1 %44, label %19, label %24
45: ; preds = %25, %45
%46 = phi i32 [ %48, %45 ], [ 0, %25 ]
%47 = call i32 @putchar(i32 43)
%48 = add nuw nsw i32 %46, 1
%49 = icmp eq i32 %48, %26
br i1 %49, label %50, label %45
50: ; preds = %45, %0, %24
%51 = call i32 @putchar(i32 10)
%52 = load i32, i32* %2
%53 = icmp sgt i32 %52, 0
br i1 %53, label %54, label %58
54: ; preds = %50
%55 = call i32 @llvm.smax.i32(i32 %15, i32 1)
br label %56
56: ; preds = %54, %66
%57 = phi i32 [ 0, %54 ], [ %68, %66 ]
br i1 %16, label %61, label %66
58: ; preds = %66, %50
br i1 %16, label %59, label %76
59: ; preds = %58
%60 = call i32 @llvm.smax.i32(i32 %15, i32 1)
br label %71
61: ; preds = %56, %61
%62 = phi i32 [ %64, %61 ], [ 0, %56 ]
%63 = call i32 @putchar(i32 79)
%64 = add nuw nsw i32 %62, 1
%65 = icmp eq i32 %64, %55
br i1 %65, label %66, label %61
66: ; preds = %61, %56
%67 = call i32 @putchar(i32 10)
%68 = add nuw nsw i32 %57, 1
%69 = load i32, i32* %2
%70 = icmp slt i32 %68, %69
br i1 %70, label %56, label %58
71: ; preds = %59, %71
%72 = phi i32 [ %74, %71 ], [ 0, %59 ]
%73 = call i32 @putchar(i32 45)
%74 = add nuw nsw i32 %72, 1
%75 = icmp eq i32 %74, %60
br i1 %75, label %76, label %71
76: ; preds = %71, %58
%77 = call i32 @putchar(i32 10)
%78 = load i32, i32* %3
%79 = icmp sgt i32 %78, 0
br i1 %79, label %80, label %84
80: ; preds = %76
%81 = call i32 @llvm.smax.i32(i32 %15, i32 1)
br label %82
82: ; preds = %80, %92
%83 = phi i32 [ 0, %80 ], [ %94, %92 ]
br i1 %16, label %87, label %92
84: ; preds = %92, %76
br i1 %16, label %85, label %102
85: ; preds = %84
%86 = call i32 @llvm.smax.i32(i32 %15, i32 1)
br label %97
87: ; preds = %82, %87
%88 = phi i32 [ %90, %87 ], [ 0, %82 ]
%89 = call i32 @putchar(i32 124)
%90 = add nuw nsw i32 %88, 1
%91 = icmp eq i32 %90, %81
br i1 %91, label %92, label %87
92: ; preds = %87, %82
%93 = call i32 @putchar(i32 10)
%94 = add nuw nsw i32 %83, 1
%95 = load i32, i32* %3
%96 = icmp slt i32 %94, %95
br i1 %96, label %82, label %84
97: ; preds = %85, %97
%98 = phi i32 [ %100, %97 ], [ 0, %85 ]
%99 = call i32 @putchar(i32 45)
%100 = add nuw nsw i32 %98, 1
%101 = icmp eq i32 %100, %86
br i1 %101, label %102, label %97
102: ; preds = %97, %84
ret i32 0
}