#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int max(int, int, int, int, int, int);
int min(int, int, int, int, int, int);
int rand();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int sum(int, int, int, int, int, int);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int test_implementations_by_sending_five_elements() {
  srand(time(NULL));
  int elements[5];
  elements[0] = rand() % (1000000 - 1 + 1) + 1;
  elements[1] = rand() % (1000000 - 1 + 1) + 1;
  elements[2] = rand() % (1000000 - 1 + 1) + 1;
  elements[3] = rand() % (1000000 - 1 + 1) + 1;
  elements[4] = rand() % (1000000 - 1 + 1) + 1;
  fprintf(stderr, "Sending following five elements:\n");
  for (int i = 0; i < 5; i++)
    fprintf(stderr, "%d\n", elements[i]);
  int elements_sum =
      sum(5, elements[0], elements[1], elements[2], elements[3], elements[4]);
  int minimum_element =
      min(5, elements[0], elements[1], elements[2], elements[3], elements[4]);
  int maximum_element =
      max(5, elements[0], elements[1], elements[2], elements[3], elements[4]);
  fprintf(stderr, "Your output is:\n");
  fprintf(stderr, "Elements sum is %d\n", elements_sum);
  fprintf(stderr, "Minimum element is %d\n", minimum_element);
  fprintf(stderr, "Maximum element is %d\n\n", maximum_element);
  int expected_elements_sum = 0;
  for (int i = 0; i < 5; i++) {
    if (elements[i] < minimum_element)
      return 0;
    if (elements[i] > maximum_element)
      return 0;
    expected_elements_sum += elements[i];
  }
  return elements_sum == expected_elements_sum;
}


x86 assembly (clang, -O0):
<test_implementations_by_sending_five_elements>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
xor    %eax,%eax
mov    %eax,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0xf4240,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x20(%rbp)
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0xf4240,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x1c(%rbp)
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0xf4240,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x18(%rbp)
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0xf4240,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x14(%rbp)
mov    $0x0,%al
call   1090 <rand@plt>
mov    $0xf4240,%ecx
cltd
idiv   %ecx
add    $0x1,%edx
mov    %edx,-0x10(%rbp)
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
lea    0xdff(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x24(%rbp)
cmpl   $0x5,-0x24(%rbp)
jge    1246 <test_implementations_by_sending_five_elements+0xd6>
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
movslq -0x24(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%edx
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    120f <test_implementations_by_sending_five_elements+0x9f>
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    $0x5,%edi
call   1070 <sum@plt>
mov    %eax,-0x28(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    $0x5,%edi
call   1030 <min@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x20(%rbp),%esi
mov    -0x1c(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    $0x5,%edi
call   1040 <max@plt>
mov    %eax,-0x30(%rbp)
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xd72(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d22(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%edx
lea    0xd69(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d08(%rip),%rax
mov    (%rax),%edi
mov    -0x2c(%rbp),%edx
lea    0xd63(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2cee(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%edx
lea    0xd60(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x5,-0x38(%rbp)
jge    1373 <test_implementations_by_sending_five_elements+0x203>
movslq -0x38(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
cmp    -0x2c(%rbp),%eax
jge    133a <test_implementations_by_sending_five_elements+0x1ca>
movl   $0x0,-0x4(%rbp)
jmp    1384 <test_implementations_by_sending_five_elements+0x214>
movslq -0x38(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
cmp    -0x30(%rbp),%eax
jle    1357 <test_implementations_by_sending_five_elements+0x1e7>
movl   $0x0,-0x4(%rbp)
jmp    1384 <test_implementations_by_sending_five_elements+0x214>
movslq -0x38(%rbp),%rax
mov    -0x20(%rbp,%rax,4),%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1313 <test_implementations_by_sending_five_elements+0x1a3>
mov    -0x28(%rbp),%eax
cmp    -0x34(%rbp),%eax
sete   %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_implementations_by_sending_five_elements>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
xor    %edi,%edi
call   1080 <time@plt>
mov    %eax,%edi
call   1050 <srand@plt>
xor    %eax,%eax
call   1090 <rand@plt>
movslq %eax,%rcx
imul   $0x431bde83,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rdx
add    %ecx,%edx
imul   $0xf4240,%edx,%ecx
mov    %ecx,0x24(%rsp)
neg    %ecx
mov    %rax,0x50(%rsp)
lea    (%rax,%rcx,1),%r15d
add    $0x1,%r15d
xor    %eax,%eax
call   1090 <rand@plt>
movslq %eax,%rcx
imul   $0x431bde83,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rdx
add    %ecx,%edx
imul   $0xf4240,%edx,%ecx
mov    %ecx,0x20(%rsp)
neg    %ecx
mov    %rax,0x48(%rsp)
lea    (%rax,%rcx,1),%ebp
add    $0x1,%ebp
xor    %eax,%eax
call   1090 <rand@plt>
movslq %eax,%rcx
imul   $0x431bde83,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rdx
add    %ecx,%edx
imul   $0xf4240,%edx,%ecx
mov    %ecx,0x1c(%rsp)
neg    %ecx
mov    %rax,0x40(%rsp)
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x8(%rsp)
xor    %eax,%eax
call   1090 <rand@plt>
movslq %eax,%rcx
imul   $0x431bde83,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rdx
add    %ecx,%edx
imul   $0xf4240,%edx,%ecx
mov    %ecx,0x18(%rsp)
neg    %ecx
mov    %rax,0x38(%rsp)
add    %ecx,%eax
add    $0x1,%eax
mov    %eax,0x28(%rsp)
xor    %eax,%eax
call   1090 <rand@plt>
movslq %eax,%rcx
imul   $0x431bde83,%rcx,%rdx
mov    %rdx,%rcx
shr    $0x3f,%rcx
sar    $0x32,%rdx
add    %ecx,%edx
imul   $0xf4240,%edx,%ecx
mov    %ecx,0x10(%rsp)
neg    %ecx
mov    %rax,0x30(%rsp)
lea    (%rax,%rcx,1),%r14d
add    $0x1,%r14d
mov    0x2d3a(%rip),%rbx
mov    (%rbx),%edi
lea    0xd51(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd84(%rip),%r12
mov    %r12,%rsi
mov    %r15d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
mov    %r12,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
mov    %r12,%rsi
mov    0x8(%rsp),%r13d
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
mov    %r12,%rsi
mov    0x28(%rsp),%r12d
mov    %r12d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd38(%rip),%rsi
mov    %r14d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x5,%edi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %r12d,%r8d
mov    %r14d,%r9d
call   1070 <sum@plt>
mov    %eax,%ebx
mov    $0x5,%edi
mov    %r15d,%esi
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %r12d,%r8d
mov    %r14d,%r9d
call   1030 <min@plt>
mov    %eax,0x2c(%rsp)
mov    $0x5,%edi
mov    %r15d,%esi
mov    %ebp,0x4(%rsp)
mov    %ebp,%edx
mov    %r13d,%ecx
mov    %r12d,%r8d
mov    %r14d,0x14(%rsp)
mov    %r14d,%r9d
call   1040 <max@plt>
mov    %eax,%r13d
mov    0x2c6a(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xca2(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xca2(%rip),%rsi
mov    %ebx,0xc(%rsp)
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xc9f(%rip),%rsi
mov    0x2c(%rsp),%ebx
mov    %ebx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xc9f(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
cmp    %ebx,%r15d
jl     1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x50(%rsp),%rax
sub    0x24(%rsp),%eax
cmp    %r13d,%eax
jge    1452 <test_implementations_by_sending_five_elements+0x2e2>
cmp    %ebx,0x4(%rsp)
jl     1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x48(%rsp),%rax
sub    0x20(%rsp),%eax
cmp    %r13d,%eax
jge    1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x8(%rsp),%ecx
cmp    %ebx,%ecx
jl     1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x40(%rsp),%rax
sub    0x1c(%rsp),%eax
cmp    %r13d,%eax
jge    1452 <test_implementations_by_sending_five_elements+0x2e2>
cmp    %ebx,%r12d
jl     1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x38(%rsp),%rax
sub    0x18(%rsp),%eax
cmp    %r13d,%eax
jge    1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x14(%rsp),%edx
cmp    %ebx,%edx
jl     1452 <test_implementations_by_sending_five_elements+0x2e2>
mov    0x30(%rsp),%rax
sub    0x10(%rsp),%eax
cmp    %r13d,%eax
mov    $0x0,%eax
jge    1454 <test_implementations_by_sending_five_elements+0x2e4>
mov    0x4(%rsp),%eax
add    %r15d,%eax
add    %eax,%ecx
add    %ecx,%r12d
add    %r12d,%edx
xor    %eax,%eax
cmp    %edx,0xc(%rsp)
sete   %al
jmp    1454 <test_implementations_by_sending_five_elements+0x2e4>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"Sending following five elements:\0A\00"
@.str.1 = [4 x i8] c"%d\0A\00"
@.str.2 = [17 x i8] c"Your output is:\0A\00"
@.str.3 = [20 x i8] c"Elements sum is %d\0A\00"
@.str.4 = [23 x i8] c"Minimum element is %d\0A\00"
@.str.5 = [24 x i8] c"Maximum element is %d\0A\0A\00"
define i32 @test_implementations_by_sending_five_elements() {
%1 = tail call i32 @time(i32* null)
%2 = tail call i32 @srand(i32 %1)
%3 = tail call i32 (...) @rand()
%4 = srem i32 %3, 1000000
%5 = add nsw i32 %4, 1
%6 = tail call i32 (...) @rand()
%7 = srem i32 %6, 1000000
%8 = add nsw i32 %7, 1
%9 = tail call i32 (...) @rand()
%10 = srem i32 %9, 1000000
%11 = add nsw i32 %10, 1
%12 = tail call i32 (...) @rand()
%13 = srem i32 %12, 1000000
%14 = add nsw i32 %13, 1
%15 = tail call i32 (...) @rand()
%16 = srem i32 %15, 1000000
%17 = add nsw i32 %16, 1
%18 = load i32, i32* @stderr
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%22 = load i32, i32* @stderr
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%24 = load i32, i32* @stderr
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%26 = load i32, i32* @stderr
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %14)
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %17)
%30 = tail call i32 @sum(i32 5, i32 %5, i32 %8, i32 %11, i32 %14, i32 %17)
%31 = tail call i32 @min(i32 5, i32 %5, i32 %8, i32 %11, i32 %14, i32 %17)
%32 = tail call i32 @max(i32 5, i32 %5, i32 %8, i32 %11, i32 %14, i32 %17)
%33 = load i32, i32* @stderr
%34 = tail call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%35 = load i32, i32* @stderr
%36 = tail call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i32 %32)
%41 = icmp slt i32 %5, %31
%42 = icmp sge i32 %4, %32
%43 = select i1 %41, i1 true, i1 %42
br i1 %43, label %67, label %44
44: ; preds = %0
%45 = icmp slt i32 %8, %31
%46 = icmp sge i32 %7, %32
%47 = select i1 %45, i1 true, i1 %46
br i1 %47, label %67, label %48
48: ; preds = %44
%49 = icmp slt i32 %11, %31
%50 = icmp sge i32 %10, %32
%51 = select i1 %49, i1 true, i1 %50
br i1 %51, label %67, label %52
52: ; preds = %48
%53 = icmp slt i32 %14, %31
%54 = icmp sge i32 %13, %32
%55 = select i1 %53, i1 true, i1 %54
br i1 %55, label %67, label %56
56: ; preds = %52
%57 = icmp slt i32 %17, %31
%58 = icmp sge i32 %16, %32
%59 = select i1 %57, i1 true, i1 %58
br i1 %59, label %67, label %60
60: ; preds = %56
%61 = add nsw i32 %8, %5
%62 = add nsw i32 %11, %61
%63 = add nsw i32 %14, %62
%64 = add nsw i32 %17, %63
%65 = icmp eq i32 %30, %64
%66 = zext i1 %65 to i32
br label %67
67: ; preds = %0, %44, %48, %52, %56, %60
%68 = phi i32 [ %66, %60 ], [ 0, %56 ], [ 0, %52 ], [ 0, %48 ], [ 0, %44 ], [ 0, %0 ]
ret i32 %68
}