#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int vhist(FILE *out, int wlc[], int ovflow) {
  int maxvalue = 0;
  int i, j = 1;
  for (i = 2; i < 15; i++) {
    if (wlc[j] < wlc[i]) {
      j = i;
    }
  }
  maxvalue = wlc[j];
  int tmp = 15 / maxvalue;
  for (i = 15; i > 0; i--) {
    for (j = 1; j < 15; j++) {
      if (wlc[j] * tmp >= i) {
        fprintf(out, "  *  ");
      } else {
        fprintf(out, "     ");
      }
    }
    fputc('\n', out);
  }
  for (i = 1; i < 15; i++) {
    fprintf(out, "=====");
  }
  fputc('\n', out);
  for (i = 1; i < 15; i++) {
    fprintf(out, "%02d-%02d", i, wlc[i]);
  }
  fputc('\n', out);
  if (ovflow > 0) {
    fprintf(out, "there are %04d words overflowing!", ovflow);
  }
  return 0;
}


x86 assembly (clang, -O0):
<vhist>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x1,-0x20(%rbp)
movl   $0x2,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    1187 <vhist+0x67>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x10(%rbp),%rcx
movslq -0x1c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jge    1174 <vhist+0x54>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x20(%rbp)
jmp    1179 <vhist+0x59>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1148 <vhist+0x28>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x18(%rbp)
mov    $0xf,%eax
cltd
idivl  -0x18(%rbp)
mov    %eax,-0x24(%rbp)
movl   $0xf,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    1233 <vhist+0x113>
movl   $0x1,-0x20(%rbp)
cmpl   $0xf,-0x20(%rbp)
jge    1217 <vhist+0xf7>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
imul   -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jl     11f2 <vhist+0xd2>
mov    -0x8(%rbp),%rdi
lea    0xe1a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1204 <vhist+0xe4>
mov    -0x8(%rbp),%rdi
lea    0xe09(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    1209 <vhist+0xe9>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11b9 <vhist+0x99>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    11a8 <vhist+0x88>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    1264 <vhist+0x144>
mov    -0x8(%rbp),%rdi
lea    0xdbd(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    123a <vhist+0x11a>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xf,-0x1c(%rbp)
jge    12b1 <vhist+0x191>
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
lea    0xd76(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1279 <vhist+0x159>
mov    -0x8(%rbp),%rsi
mov    $0xa,%edi
call   1030 <fputc@plt>
cmpl   $0x0,-0x14(%rbp)
jle    12de <vhist+0x1be>
mov    -0x8(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xd45(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vhist>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r15
mov    0x4(%rsi),%eax
xor    %ecx,%ecx
cmp    0x8(%rsi),%eax
setl   %cl
add    $0x1,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0xc(%rsi),%eax
mov    $0x3,%eax
cmovge %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x10(%rsi),%ecx
mov    $0x4,%ecx
cmovge %eax,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0x14(%rsi),%eax
mov    $0x5,%eax
cmovge %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x18(%rsi),%ecx
mov    $0x6,%ecx
cmovge %eax,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0x1c(%rsi),%eax
mov    $0x7,%eax
cmovge %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x20(%rsi),%ecx
mov    $0x8,%ecx
cmovge %eax,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0x24(%rsi),%eax
mov    $0x9,%eax
cmovge %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x28(%rsi),%ecx
mov    $0xa,%ecx
cmovl  %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x2c(%rsi),%ecx
mov    $0xb,%ecx
cmovge %eax,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0x30(%rsi),%eax
mov    $0xc,%eax
cmovge %ecx,%eax
mov    (%rsi,%rax,4),%ecx
cmp    0x34(%rsi),%ecx
mov    $0xd,%ecx
cmovge %eax,%ecx
mov    (%rsi,%rcx,4),%eax
cmp    0x38(%rsi),%eax
mov    $0xe,%esi
cmovge %ecx,%esi
mov    %edx,0x4(%rsp)
mov    %rdi,%r12
mov    $0xf,%ebp
mov    $0xf,%eax
xor    %edx,%edx
idivl  (%r15,%rsi,4)
mov    %eax,%ebx
lea    0xdf2(%rip),%r13
lea    0xde5(%rip),%r14
nopl   0x0(%rax,%rax,1)
mov    0x4(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x8(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0xc(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x10(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x14(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x18(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x1c(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x20(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x24(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x28(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x2c(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x30(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x34(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    0x38(%r15),%eax
imul   %ebx,%eax
cmp    %ebp,%eax
mov    %r14,%rdi
cmovl  %r13,%rdi
mov    $0x5,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1030 <fputc@plt>
lea    -0x1(%rbp),%eax
cmp    $0x1,%ebp
mov    %eax,%ebp
ja     1220 <vhist+0xf0>
lea    0xbee(%rip),%rbx
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0x5,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r12,%rcx
call   1050 <fwrite@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1030 <fputc@plt>
mov    0x4(%r15),%ecx
lea    0xab6(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x8(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0xc(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x10(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x14(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x5,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x18(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x6,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x1c(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x20(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x24(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x9,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x28(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x2c(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0xb,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x30(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0xc,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x34(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0xd,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x38(%r15),%ecx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0xe,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xa,%edi
mov    %r12,%rsi
call   1030 <fputc@plt>
mov    0x4(%rsp),%edx
test   %edx,%edx
jle    16b2 <vhist+0x582>
lea    0x974(%rip),%rsi
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c" * \00"
@.str.1 = [6 x i8] c" \00"
@.str.2 = [6 x i8] c"=====\00"
@.str.3 = [10 x i8] c"%02d-%02d\00"
@.str.4 = [34 x i8] c"there are %04d words overflowing!\00"
define i32 @vhist(i32* %0, i32* %1, i32 %2) {
%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** %4
store i32* %1, i32** %5
store i32 %2, i32* %6
store i32 0, i32* %7
store i32 1, i32* %9
store i32 2, i32* %8
br label %11
11: ; preds = %29, %3
%12 = load i32, i32* %8
%13 = icmp slt i32 %12, 15
br i1 %13, label %14, label %32
14: ; preds = %11
%15 = load i32*, i32** %5
%16 = load i32, i32* %9
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, i32* %15, i64 %17
%19 = load i32, i32* %18
%20 = load i32*, i32** %5
%21 = load i32, i32* %8
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds i32, i32* %20, i64 %22
%24 = load i32, i32* %23
%25 = icmp slt i32 %19, %24
br i1 %25, label %26, label %28
26: ; preds = %14
%27 = load i32, i32* %8
store i32 %27, i32* %9
br label %28
28: ; preds = %26, %14
br label %29
29: ; preds = %28
%30 = load i32, i32* %8
%31 = add nsw i32 %30, 1
store i32 %31, i32* %8
br label %11
32: ; preds = %11
%33 = load i32*, i32** %5
%34 = load i32, i32* %9
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds i32, i32* %33, i64 %35
%37 = load i32, i32* %36
store i32 %37, i32* %7
%38 = load i32, i32* %7
%39 = sdiv i32 15, %38
store i32 %39, i32* %10
store i32 15, i32* %8
br label %40
40: ; preds = %70, %32
%41 = load i32, i32* %8
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %73
43: ; preds = %40
store i32 1, i32* %9
br label %44
44: ; preds = %64, %43
%45 = load i32, i32* %9
%46 = icmp slt i32 %45, 15
br i1 %46, label %47, label %67
47: ; preds = %44
%48 = load i32*, i32** %5
%49 = load i32, i32* %9
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %48, i64 %50
%52 = load i32, i32* %51
%53 = load i32, i32* %10
%54 = mul nsw i32 %52, %53
%55 = load i32, i32* %8
%56 = icmp sge i32 %54, %55
br i1 %56, label %57, label %60
57: ; preds = %47
%58 = load i32*, i32** %4
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
br label %63
60: ; preds = %47
%61 = load i32*, i32** %4
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %63
63: ; preds = %60, %57
br label %64
64: ; preds = %63
%65 = load i32, i32* %9
%66 = add nsw i32 %65, 1
store i32 %66, i32* %9
br label %44
67: ; preds = %44
%68 = load i32*, i32** %4
%69 = call i32 @fputc(i8 signext 10, i32* %68)
br label %70
70: ; preds = %67
%71 = load i32, i32* %8
%72 = add nsw i32 %71, -1
store i32 %72, i32* %8
br label %40
73: ; preds = %40
store i32 1, i32* %8
br label %74
74: ; preds = %80, %73
%75 = load i32, i32* %8
%76 = icmp slt i32 %75, 15
br i1 %76, label %77, label %83
77: ; preds = %74
%78 = load i32*, i32** %4
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %78, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %80
80: ; preds = %77
%81 = load i32, i32* %8
%82 = add nsw i32 %81, 1
store i32 %82, i32* %8
br label %74
83: ; preds = %74
%84 = load i32*, i32** %4
%85 = call i32 @fputc(i8 signext 10, i32* %84)
store i32 1, i32* %8
br label %86
86: ; preds = %98, %83
%87 = load i32, i32* %8
%88 = icmp slt i32 %87, 15
br i1 %88, label %89, label %101
89: ; preds = %86
%90 = load i32*, i32** %4
%91 = load i32, i32* %8
%92 = load i32*, i32** %5
%93 = load i32, i32* %8
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds i32, i32* %92, i64 %94
%96 = load i32, i32* %95
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %91, i32 %96)
br label %98
98: ; preds = %89
%99 = load i32, i32* %8
%100 = add nsw i32 %99, 1
store i32 %100, i32* %8
br label %86
101: ; preds = %86
%102 = load i32*, i32** %4
%103 = call i32 @fputc(i8 signext 10, i32* %102)
%104 = load i32, i32* %6
%105 = icmp sgt i32 %104, 0
br i1 %105, label %106, label %110
106: ; preds = %101
%107 = load i32*, i32** %4
%108 = load i32, i32* %6
%109 = call i32 (i32*, i8*, ...) @fprintf(i32* %107, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %108)
br label %110
110: ; preds = %106, %101
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c" * \00"
@.str.1 = [6 x i8] c" \00"
@.str.2 = [6 x i8] c"=====\00"
@.str.3 = [10 x i8] c"%02d-%02d\00"
@.str.4 = [34 x i8] c"there are %04d words overflowing!\00"
define i32 @vhist(i32* nocapture %0, i32* nocapture %1, i32 %2) {
%4 = getelementptr inbounds i32, i32* %1, i64 1
%5 = load i32, i32* %4
%6 = getelementptr inbounds i32, i32* %1, i64 2
%7 = load i32, i32* %6
%8 = icmp slt i32 %5, %7
%9 = select i1 %8, i32 2, i32 1
%10 = zext i32 %9 to i64
%11 = getelementptr inbounds i32, i32* %1, i64 %10
%12 = load i32, i32* %11
%13 = getelementptr inbounds i32, i32* %1, i64 3
%14 = load i32, i32* %13
%15 = icmp slt i32 %12, %14
%16 = select i1 %15, i32 3, i32 %9
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i32, i32* %1, i64 %17
%19 = load i32, i32* %18
%20 = getelementptr inbounds i32, i32* %1, i64 4
%21 = load i32, i32* %20
%22 = icmp slt i32 %19, %21
%23 = select i1 %22, i32 4, i32 %16
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i32, i32* %1, i64 %24
%26 = load i32, i32* %25
%27 = getelementptr inbounds i32, i32* %1, i64 5
%28 = load i32, i32* %27
%29 = icmp slt i32 %26, %28
%30 = select i1 %29, i32 5, i32 %23
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %1, i64 %31
%33 = load i32, i32* %32
%34 = getelementptr inbounds i32, i32* %1, i64 6
%35 = load i32, i32* %34
%36 = icmp slt i32 %33, %35
%37 = select i1 %36, i32 6, i32 %30
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds i32, i32* %1, i64 %38
%40 = load i32, i32* %39
%41 = getelementptr inbounds i32, i32* %1, i64 7
%42 = load i32, i32* %41
%43 = icmp slt i32 %40, %42
%44 = select i1 %43, i32 7, i32 %37
%45 = zext i32 %44 to i64
%46 = getelementptr inbounds i32, i32* %1, i64 %45
%47 = load i32, i32* %46
%48 = getelementptr inbounds i32, i32* %1, i64 8
%49 = load i32, i32* %48
%50 = icmp slt i32 %47, %49
%51 = select i1 %50, i32 8, i32 %44
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds i32, i32* %1, i64 %52
%54 = load i32, i32* %53
%55 = getelementptr inbounds i32, i32* %1, i64 9
%56 = load i32, i32* %55
%57 = icmp slt i32 %54, %56
%58 = select i1 %57, i32 9, i32 %51
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds i32, i32* %1, i64 %59
%61 = load i32, i32* %60
%62 = getelementptr inbounds i32, i32* %1, i64 10
%63 = load i32, i32* %62
%64 = icmp slt i32 %61, %63
%65 = select i1 %64, i32 10, i32 %58
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds i32, i32* %1, i64 %66
%68 = load i32, i32* %67
%69 = getelementptr inbounds i32, i32* %1, i64 11
%70 = load i32, i32* %69
%71 = icmp slt i32 %68, %70
%72 = select i1 %71, i32 11, i32 %65
%73 = zext i32 %72 to i64
%74 = getelementptr inbounds i32, i32* %1, i64 %73
%75 = load i32, i32* %74
%76 = getelementptr inbounds i32, i32* %1, i64 12
%77 = load i32, i32* %76
%78 = icmp slt i32 %75, %77
%79 = select i1 %78, i32 12, i32 %72
%80 = zext i32 %79 to i64
%81 = getelementptr inbounds i32, i32* %1, i64 %80
%82 = load i32, i32* %81
%83 = getelementptr inbounds i32, i32* %1, i64 13
%84 = load i32, i32* %83
%85 = icmp slt i32 %82, %84
%86 = select i1 %85, i32 13, i32 %79
%87 = zext i32 %86 to i64
%88 = getelementptr inbounds i32, i32* %1, i64 %87
%89 = load i32, i32* %88
%90 = getelementptr inbounds i32, i32* %1, i64 14
%91 = load i32, i32* %90
%92 = icmp slt i32 %89, %91
%93 = select i1 %92, i32 14, i32 %86
%94 = zext i32 %93 to i64
%95 = getelementptr inbounds i32, i32* %1, i64 %94
%96 = load i32, i32* %95
%97 = sdiv i32 15, %96
%98 = getelementptr inbounds i32, i32* %1, i64 1
%99 = getelementptr inbounds i32, i32* %1, i64 2
%100 = getelementptr inbounds i32, i32* %1, i64 3
%101 = getelementptr inbounds i32, i32* %1, i64 4
%102 = getelementptr inbounds i32, i32* %1, i64 5
%103 = getelementptr inbounds i32, i32* %1, i64 6
%104 = getelementptr inbounds i32, i32* %1, i64 7
%105 = getelementptr inbounds i32, i32* %1, i64 8
%106 = getelementptr inbounds i32, i32* %1, i64 9
%107 = getelementptr inbounds i32, i32* %1, i64 10
%108 = getelementptr inbounds i32, i32* %1, i64 11
%109 = getelementptr inbounds i32, i32* %1, i64 12
%110 = getelementptr inbounds i32, i32* %1, i64 13
%111 = getelementptr inbounds i32, i32* %1, i64 14
br label %112
112: ; preds = %3, %112
%113 = phi i32 [ 15, %3 ], [ %185, %112 ]
%114 = load i32, i32* %98
%115 = mul nsw i32 %114, %97
%116 = icmp slt i32 %115, %113
%117 = select i1 %116, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%118 = tail call i64 @fwrite(i8* %117, i64 5, i64 1, i32* %0)
%119 = load i32, i32* %99
%120 = mul nsw i32 %119, %97
%121 = icmp slt i32 %120, %113
%122 = select i1 %121, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%123 = tail call i64 @fwrite(i8* %122, i64 5, i64 1, i32* %0)
%124 = load i32, i32* %100
%125 = mul nsw i32 %124, %97
%126 = icmp slt i32 %125, %113
%127 = select i1 %126, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%128 = tail call i64 @fwrite(i8* %127, i64 5, i64 1, i32* %0)
%129 = load i32, i32* %101
%130 = mul nsw i32 %129, %97
%131 = icmp slt i32 %130, %113
%132 = select i1 %131, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%133 = tail call i64 @fwrite(i8* %132, i64 5, i64 1, i32* %0)
%134 = load i32, i32* %102
%135 = mul nsw i32 %134, %97
%136 = icmp slt i32 %135, %113
%137 = select i1 %136, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%138 = tail call i64 @fwrite(i8* %137, i64 5, i64 1, i32* %0)
%139 = load i32, i32* %103
%140 = mul nsw i32 %139, %97
%141 = icmp slt i32 %140, %113
%142 = select i1 %141, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%143 = tail call i64 @fwrite(i8* %142, i64 5, i64 1, i32* %0)
%144 = load i32, i32* %104
%145 = mul nsw i32 %144, %97
%146 = icmp slt i32 %145, %113
%147 = select i1 %146, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%148 = tail call i64 @fwrite(i8* %147, i64 5, i64 1, i32* %0)
%149 = load i32, i32* %105
%150 = mul nsw i32 %149, %97
%151 = icmp slt i32 %150, %113
%152 = select i1 %151, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%153 = tail call i64 @fwrite(i8* %152, i64 5, i64 1, i32* %0)
%154 = load i32, i32* %106
%155 = mul nsw i32 %154, %97
%156 = icmp slt i32 %155, %113
%157 = select i1 %156, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%158 = tail call i64 @fwrite(i8* %157, i64 5, i64 1, i32* %0)
%159 = load i32, i32* %107
%160 = mul nsw i32 %159, %97
%161 = icmp slt i32 %160, %113
%162 = select i1 %161, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%163 = tail call i64 @fwrite(i8* %162, i64 5, i64 1, i32* %0)
%164 = load i32, i32* %108
%165 = mul nsw i32 %164, %97
%166 = icmp slt i32 %165, %113
%167 = select i1 %166, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%168 = tail call i64 @fwrite(i8* %167, i64 5, i64 1, i32* %0)
%169 = load i32, i32* %109
%170 = mul nsw i32 %169, %97
%171 = icmp slt i32 %170, %113
%172 = select i1 %171, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%173 = tail call i64 @fwrite(i8* %172, i64 5, i64 1, i32* %0)
%174 = load i32, i32* %110
%175 = mul nsw i32 %174, %97
%176 = icmp slt i32 %175, %113
%177 = select i1 %176, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%178 = tail call i64 @fwrite(i8* %177, i64 5, i64 1, i32* %0)
%179 = load i32, i32* %111
%180 = mul nsw i32 %179, %97
%181 = icmp slt i32 %180, %113
%182 = select i1 %181, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0)
%183 = tail call i64 @fwrite(i8* %182, i64 5, i64 1, i32* %0)
%184 = tail call i32 @fputc(i8 signext 10, i32* %0)
%185 = add nsw i32 %113, -1
%186 = icmp ugt i32 %113, 1
br i1 %186, label %112, label %187
187: ; preds = %112
%188 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%189 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%190 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%191 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%192 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%193 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%194 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%195 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%196 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%197 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%198 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%199 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%200 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%201 = tail call i64 @fwrite(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i64 5, i64 1, i32* %0)
%202 = tail call i32 @fputc(i8 signext 10, i32* %0)
%203 = load i32, i32* %4
%204 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 %203)
%205 = load i32, i32* %6
%206 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 %205)
%207 = load i32, i32* %13
%208 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 %207)
%209 = load i32, i32* %20
%210 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 %209)
%211 = load i32, i32* %27
%212 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 %211)
%213 = load i32, i32* %34
%214 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 6, i32 %213)
%215 = load i32, i32* %41
%216 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 %215)
%217 = load i32, i32* %48
%218 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 %217)
%219 = load i32, i32* %55
%220 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 9, i32 %219)
%221 = load i32, i32* %62
%222 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 10, i32 %221)
%223 = load i32, i32* %69
%224 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 11, i32 %223)
%225 = load i32, i32* %76
%226 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 12, i32 %225)
%227 = load i32, i32* %83
%228 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 13, i32 %227)
%229 = load i32, i32* %90
%230 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 14, i32 %229)
%231 = tail call i32 @fputc(i8 signext 10, i32* %0)
%232 = icmp sgt i32 %2, 0
br i1 %232, label %233, label %235
233: ; preds = %187
%234 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 %2)
br label %235
235: ; preds = %233, %187
ret i32 0
}