#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 EOF;
int /*<<< orphan*/ flushinput();
int /*<<< orphan*/ free(int *);
int getchar();
int *malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  {
    int c;
    while ((c = getchar()) != EOF) {
      if (c == ' ' || c == '\n' || c == '\t')
        putchar('\n');
      else
        putchar('*');
    }
  }
  puts("\n");
  int i, c, j, nc, nw;
  int maxno = 0;
  int maxwl = 0;
  printf("Maximum number of words: ");
  scanf("%d", &maxno);
  printf("Maximum number of character in words: ");
  scanf("%d", &maxwl);
  printf("%d %d\n", maxno, maxwl);
  flushinput();
  int *word = malloc(sizeof(int[maxno]));
  for (i = 0; i < maxno; ++i)
    word[i] = 0;
  nc = nw = 0;
  while ((c = getchar()) != EOF) {
    ++nc;
    if (c == ' ' || c == '\n' || c == '\t') {
      word[nw] = nc - 1;
      ++nw;
      nc = 0;
    }
  }
  for (i = 0; i < maxno; ++i)
    printf("%d ", word[i]);
  printf("\n");
  for (i = maxwl; i >= 1; --i) {
    for (j = 0; j <= nw; ++j) {
      if (i <= word[j])
        printf("*  ");
      else
        printf("   ");
    }
    putchar('\n');
  }
  free(word);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,-0x8(%rbp)
mov    0x2e48(%rip),%rcx
cmp    (%rcx),%eax
je     11e4 <main+0x64>
cmpl   $0x20,-0x8(%rbp)
je     11c6 <main+0x46>
cmpl   $0xa,-0x8(%rbp)
je     11c6 <main+0x46>
cmpl   $0x9,-0x8(%rbp)
jne    11d5 <main+0x55>
mov    $0xa,%edi
call   1040 <putchar@plt>
jmp    11df <main+0x5f>
mov    $0x2a,%edi
call   1040 <putchar@plt>
jmp    118f <main+0xf>
lea    0xe5e(%rip),%rdi
call   1050 <puts@plt>
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe07(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   10a0 <scanf@plt>
lea    0xdfa(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xde9(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   10a0 <scanf@plt>
mov    -0x20(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xdfd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x0,%al
call   1070 <flushinput@plt>
mov    -0x20(%rbp),%eax
shl    $0x2,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x30(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1297 <main+0x117>
mov    -0x30(%rbp),%rax
movslq -0xc(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    126e <main+0xee>
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,-0x10(%rbp)
mov    0x2d32(%rip),%rcx
cmp    (%rcx),%eax
je     130b <main+0x18b>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
cmpl   $0x20,-0x10(%rbp)
je     12e5 <main+0x165>
cmpl   $0xa,-0x10(%rbp)
je     12e5 <main+0x165>
cmpl   $0x9,-0x10(%rbp)
jne    1306 <main+0x186>
mov    -0x18(%rbp),%edx
sub    $0x1,%edx
mov    -0x30(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x18(%rbp)
jmp    12a5 <main+0x125>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1345 <main+0x1c5>
mov    -0x30(%rbp),%rax
movslq -0xc(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1312 <main+0x192>
lea    0xcfd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x1,-0xc(%rbp)
jl     13d6 <main+0x256>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     13be <main+0x23e>
mov    -0xc(%rbp),%eax
mov    -0x30(%rbp),%rcx
movslq -0x14(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jg     139d <main+0x21d>
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ab <main+0x22b>
lea    0xcaf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b0 <main+0x230>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    136a <main+0x1ea>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
jmp    1359 <main+0x1d9>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
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
xor    %eax,%eax
call   1090 <getchar@plt>
mov    0x2e3c(%rip),%r12
movabs $0x100000600,%rbp
jmp    11d1 <main+0x41>
nopl   0x0(%rax,%rax,1)
mov    $0x2a,%cl
movzbl %cl,%edi
call   1040 <putchar@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    (%r12),%eax
je     11e8 <main+0x58>
cmp    $0x20,%eax
ja     11c0 <main+0x30>
mov    $0xa,%cl
mov    %eax,%eax
bt     %rax,%rbp
jb     11c2 <main+0x32>
jmp    11c0 <main+0x30>
lea    0xe5a(%rip),%rdi
call   1050 <puts@plt>
movl   $0x0,0x8(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xdf5(%rip),%rdi
xor    %r15d,%r15d
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xdfe(%rip),%rbx
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
call   10b0 <scanf@plt>
lea    0xded(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   10b0 <scanf@plt>
mov    0x8(%rsp),%esi
mov    0xc(%rsp),%edx
lea    0xdf1(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
call   1080 <flushinput@plt>
mov    0x8(%rsp),%r14d
lea    0x0(,%r14,4),%edi
call   10a0 <malloc@plt>
mov    %rax,%r13
test   %r14d,%r14d
jle    128c <main+0xfc>
shl    $0x2,%r14
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1070 <memset@plt>
xor    %eax,%eax
call   1090 <getchar@plt>
cmp    (%r12),%eax
jne    1368 <main+0x1d8>
cmpl   $0x0,0x8(%rsp)
jle    12cd <main+0x13d>
lea    0xda0(%rip),%r14
xor    %ebx,%ebx
nopl   (%rax)
mov    0x0(%r13,%rbx,4),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%rbx
movslq 0x8(%rsp),%rax
cmp    %rax,%rbx
jl     12b0 <main+0x120>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0xc(%rsp),%ebx
test   %ebx,%ebx
jle    134f <main+0x1bf>
lea    0x1(%r15),%ebp
lea    0xd69(%rip),%r14
lea    0xd5e(%rip),%r12
mov    %r15,0x10(%rsp)
jmp    1319 <main+0x189>
nopl   0x0(%rax,%rax,1)
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    -0x1(%rbx),%eax
cmp    $0x1,%ebx
mov    %eax,%ebx
mov    0x10(%rsp),%r15
jle    134f <main+0x1bf>
test   %r15d,%r15d
js     1300 <main+0x170>
xor    %r15d,%r15d
jmp    1340 <main+0x1b0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %eax,%eax
call   1060 <printf@plt>
add    $0x1,%r15
cmp    %r15,%rbp
je     1300 <main+0x170>
mov    %r14,%rdi
cmp    0x0(%r13,%r15,4),%ebx
jg     1330 <main+0x1a0>
mov    %r12,%rdi
jmp    1330 <main+0x1a0>
mov    %r13,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r15d,%r15d
xor    %ecx,%ecx
jmp    1383 <main+0x1f3>
nop
xor    %eax,%eax
call   1090 <getchar@plt>
mov    %ebx,%ecx
cmp    (%r12),%eax
je     129d <main+0x10d>
lea    0x1(%rcx),%ebx
cmp    $0x20,%eax
ja     1370 <main+0x1e0>
mov    %eax,%eax
bt     %rax,%rbp
jae    1370 <main+0x1e0>
movslq %r15d,%r15
mov    %ecx,0x0(%r13,%r15,4)
add    $0x1,%r15d
xor    %ebx,%ebx
jmp    1370 <main+0x1e0>

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

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