#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 arr_all_even(int *, int);
int arr_count(int *, int, int);
int arr_find_last(int *, int, int);
int arr_min(int *, int);
int /*<<< orphan*/ printf(char *, char *, ...);
int main(void) {
  int a[] = {78, 123, 333, 333, 123123, 1233, 777};
  int b[] = {11, 22, 33, 44, 55, 66, 77, 99, 99};
  int c[] = {88, 66, 44};
  printf("%s\n", "tests for arr_min");
  printf("%s . . . %s\n", (arr_min(a, 7) == 78) ? "passed" : "failed",
         "arr_min(a,7)==78");
  printf("%s . . . %s\n", (arr_min(b, 9) == 11) ? "passed" : "failed",
         "arr_min(b,9)==11");
  printf("%s . . . %s\n", (arr_min(c, 3) == 44) ? "passed" : "failed",
         "arr_min(c,3)==44");
  printf("%s\n", "test for arr_count");
  printf("%s . . . %s\n", (arr_count(a, 7, 333) == 2) ? "passed" : "failed",
         "arr_count(a,7,333)==2");
  printf("%s . . . %s\n", (arr_count(b, 9, 77) == 1) ? "passed" : "failed",
         "arr_count(b,9,77)==1");
  printf("%s . . . %s\n", (arr_count(c, 3, 5) == 0) ? "passed" : "failed",
         "arr_count(c,3,5)==0");
  printf("%s\n", "tests for arr_all_even");
  printf("%s . . . %s\n", (arr_all_even(a, 7) == 0) ? "passed" : "failed",
         "arr_all_even(a,7)==0");
  printf("%s . . . %s\n", (arr_all_even(b, 9) == 0) ? "passed" : "failed",
         "arr_all_even(b,9)==0");
  printf("%s . . . %s\n", (arr_all_even(c, 3) == 1) ? "passed" : "failed",
         "arr_all_even(c,3)==1");
  printf("%s\n", "tests for arr_find_last");
  printf("%s . . . %s\n", (arr_find_last(a, 7, 777) == 6) ? "passed" : "failed",
         "arr_find_last(a,7,777)==6");
  printf("%s . . . %s\n",
         (arr_find_last(c, 3, 4) == (size_t)-1) ? "passed" : "failed",
         "arr_find_last(c,3,4)==(size_t) -1");
  printf("%s . . . %s\n", (arr_find_last(b, 9, 99) == 8) ? "passed" : "failed",
         "arr_find_last(b,9,99)==8");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xe8a(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe87(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe84(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0xe82(%rip),%eax
mov    %eax,-0x8(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xe7c(%rip),%rsi
mov    $0x24,%edx
call   1050 <memcpy@plt>
mov    0xe8f(%rip),%rax
mov    %rax,-0x5c(%rbp)
mov    0xe8d(%rip),%eax
mov    %eax,-0x54(%rbp)
lea    0xea2(%rip),%rdi
lea    0xe80(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x7,%esi
call   1070 <arr_min@plt>
mov    %eax,%ecx
lea    0xe88(%rip),%rsi
lea    0xe7a(%rip),%rax
cmp    $0x4e,%ecx
cmove  %rax,%rsi
lea    0xe5f(%rip),%rdi
lea    0xe73(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    $0x9,%esi
call   1070 <arr_min@plt>
mov    %eax,%ecx
lea    0xe4e(%rip),%rsi
lea    0xe40(%rip),%rax
cmp    $0xb,%ecx
cmove  %rax,%rsi
lea    0xe25(%rip),%rdi
lea    0xe4a(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x5c(%rbp),%rdi
mov    $0x3,%esi
call   1070 <arr_min@plt>
mov    %eax,%ecx
lea    0xe14(%rip),%rsi
lea    0xe06(%rip),%rax
cmp    $0x2c,%ecx
cmove  %rax,%rsi
lea    0xdeb(%rip),%rdi
lea    0xe21(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xddf(%rip),%rdi
lea    0xe1d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x7,%esi
mov    $0x14d,%edx
call   1060 <arr_count@plt>
mov    %eax,%ecx
lea    0xdc0(%rip),%rsi
lea    0xdb2(%rip),%rax
cmp    $0x2,%ecx
cmove  %rax,%rsi
lea    0xd97(%rip),%rdi
lea    0xdf1(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    $0x9,%esi
mov    $0x4d,%edx
call   1060 <arr_count@plt>
mov    %eax,%ecx
lea    0xd81(%rip),%rsi
lea    0xd73(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rsi
lea    0xd58(%rip),%rdi
lea    0xdc8(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x5c(%rbp),%rdi
mov    $0x3,%esi
mov    $0x5,%edx
call   1060 <arr_count@plt>
mov    %eax,%ecx
lea    0xd42(%rip),%rsi
lea    0xd34(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0xd19(%rip),%rdi
lea    0xd9e(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xd0d(%rip),%rdi
lea    0xd9d(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x7,%esi
call   1080 <arr_all_even@plt>
mov    %eax,%ecx
lea    0xcf3(%rip),%rsi
lea    0xce5(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0xcca(%rip),%rdi
lea    0xd7a(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    $0x9,%esi
call   1080 <arr_all_even@plt>
mov    %eax,%ecx
lea    0xcb9(%rip),%rsi
lea    0xcab(%rip),%rax
cmp    $0x0,%ecx
cmove  %rax,%rsi
lea    0xc90(%rip),%rdi
lea    0xd55(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x5c(%rbp),%rdi
mov    $0x3,%esi
call   1080 <arr_all_even@plt>
mov    %eax,%ecx
lea    0xc7f(%rip),%rsi
lea    0xc71(%rip),%rax
cmp    $0x1,%ecx
cmove  %rax,%rsi
lea    0xc56(%rip),%rdi
lea    0xd30(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xc4a(%rip),%rdi
lea    0xd30(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x20(%rbp),%rdi
mov    $0x7,%esi
mov    $0x309,%edx
call   1040 <arr_find_last@plt>
mov    %eax,%ecx
lea    0xc2b(%rip),%rsi
lea    0xc1d(%rip),%rax
cmp    $0x6,%ecx
cmove  %rax,%rsi
lea    0xc02(%rip),%rdi
lea    0xd09(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x5c(%rbp),%rdi
mov    $0x3,%esi
mov    $0x4,%edx
call   1040 <arr_find_last@plt>
movslq %eax,%rcx
lea    0xbeb(%rip),%rsi
lea    0xbdd(%rip),%rax
cmp    $0xffffffffffffffff,%rcx
cmove  %rax,%rsi
lea    0xbc1(%rip),%rdi
lea    0xce2(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x50(%rbp),%rdi
mov    $0x9,%esi
mov    $0x63,%edx
call   1040 <arr_find_last@plt>
mov    %eax,%ecx
lea    0xbab(%rip),%rsi
lea    0xb9d(%rip),%rax
cmp    $0x8,%ecx
cmove  %rax,%rsi
lea    0xb82(%rip),%rdi
lea    0xcc5(%rip),%rdx
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
movups 0xea7(%rip),%xmm0
movups %xmm0,0x1c(%rsp)
movaps 0xe8f(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
mov    0xec4(%rip),%eax
mov    %eax,0x50(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xe8d(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
mov    0xeae(%rip),%eax
mov    %eax,0x8(%rsp)
mov    0xe9b(%rip),%rax
mov    %rax,(%rsp)
lea    0xeb7(%rip),%r13
lea    0xe95(%rip),%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rdi
mov    $0x7,%esi
call   1060 <arr_min@plt>
cmp    $0x4e,%eax
lea    0xe91(%rip),%r15
lea    0xe91(%rip),%rbx
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe6f(%rip),%r14
lea    0xe83(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x30(%rsp),%r12
mov    %r12,%rdi
mov    $0x9,%esi
call   1060 <arr_min@plt>
cmp    $0xb,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe67(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rsp,%rbp
mov    %rbp,%rdi
mov    $0x3,%esi
call   1060 <arr_min@plt>
cmp    $0x2c,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe4d(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe4d(%rip),%rsi
mov    %r13,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0x10(%rsp),%rdi
mov    %rdi,%r13
mov    $0x7,%esi
mov    $0x14d,%edx
call   1050 <arr_count@plt>
cmp    $0x2,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe2e(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
mov    $0x4d,%edx
call   1050 <arr_count@plt>
cmp    $0x1,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe17(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
mov    $0x5,%edx
call   1050 <arr_count@plt>
test   %eax,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xe00(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe03(%rip),%rsi
lea    0xd65(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    $0x7,%esi
call   1070 <arr_all_even@plt>
test   %eax,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xdef(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
call   1070 <arr_all_even@plt>
test   %eax,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xddd(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
call   1070 <arr_all_even@plt>
cmp    $0x1,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xdca(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xdce(%rip),%rsi
lea    0xcda(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
mov    $0x7,%esi
mov    $0x309,%edx
call   1040 <arr_find_last@plt>
cmp    $0x6,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xdb5(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
mov    $0x3,%esi
mov    $0x4,%edx
call   1040 <arr_find_last@plt>
cmp    $0xffffffff,%eax
mov    %rbx,%rsi
cmove  %r15,%rsi
lea    0xda2(%rip),%rdx
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    $0x9,%esi
mov    $0x63,%edx
call   1040 <arr_find_last@plt>
cmp    $0x8,%eax
cmove  %r15,%rbx
lea    0xd9a(%rip),%rdx
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.a = [7 x i32] [i32 78, i32 123, i32 333, i32 333, i32 123123, i32 1233, i32 777]
@__const.main.b = [9 x i32] [i32 11, i32 22, i32 33, i32 44, i32 55, i32 66, i32 77, i32 99, i32 99]
@__const.main.c = [3 x i32] [i32 88, i32 66, i32 44]
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [18 x i8] c"tests for arr_min\00"
@.str.2 = [13 x i8] c"%s . . . %s\0A\00"
@.str.3 = [7 x i8] c"passed\00"
@.str.4 = [7 x i8] c"failed\00"
@.str.5 = [17 x i8] c"arr_min(a,7)==78\00"
@.str.6 = [17 x i8] c"arr_min(b,9)==11\00"
@.str.7 = [17 x i8] c"arr_min(c,3)==44\00"
@.str.8 = [19 x i8] c"test for arr_count\00"
@.str.9 = [22 x i8] c"arr_count(a,7,333)==2\00"
@.str.10 = [21 x i8] c"arr_count(b,9,77)==1\00"
@.str.11 = [20 x i8] c"arr_count(c,3,5)==0\00"
@.str.12 = [23 x i8] c"tests for arr_all_even\00"
@.str.13 = [21 x i8] c"arr_all_even(a,7)==0\00"
@.str.14 = [21 x i8] c"arr_all_even(b,9)==0\00"
@.str.15 = [21 x i8] c"arr_all_even(c,3)==1\00"
@.str.16 = [24 x i8] c"tests for arr_find_last\00"
@.str.17 = [26 x i8] c"arr_find_last(a,7,777)==6\00"
@.str.18 = [34 x i8] c"arr_find_last(c,3,4)==(size_t) -1\00"
@.str.19 = [25 x i8] c"arr_find_last(b,9,99)==8\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [7 x i32]
%3 = alloca [9 x i32]
%4 = alloca [3 x i32]
store i32 0, i32* %1
%5 = bitcast [7 x i32]* %2 to i8*
%6 = bitcast [9 x i32]* %3 to i8*
%7 = bitcast [3 x i32]* %4 to i8*
%8 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%9 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%10 = call i32 @arr_min(i32* %9, i32 7)
%11 = icmp eq i32 %10, 78
%12 = zext i1 %11 to i64
%13 = select i1 %11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%14 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %13, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%15 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 0
%16 = call i32 @arr_min(i32* %15, i32 9)
%17 = icmp eq i32 %16, 11
%18 = zext i1 %17 to i64
%19 = select i1 %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%20 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %19, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%21 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%22 = call i32 @arr_min(i32* %21, i32 3)
%23 = icmp eq i32 %22, 44
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%26 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %25, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%27 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%28 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%29 = call i32 @arr_count(i32* %28, i32 7, i32 333)
%30 = icmp eq i32 %29, 2
%31 = zext i1 %30 to i64
%32 = select i1 %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%33 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %32, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%34 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 0
%35 = call i32 @arr_count(i32* %34, i32 9, i32 77)
%36 = icmp eq i32 %35, 1
%37 = zext i1 %36 to i64
%38 = select i1 %36, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%39 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %38, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%40 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%41 = call i32 @arr_count(i32* %40, i32 3, i32 5)
%42 = icmp eq i32 %41, 0
%43 = zext i1 %42 to i64
%44 = select i1 %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%45 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %44, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%46 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
%47 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%48 = call i32 @arr_all_even(i32* %47, i32 7)
%49 = icmp eq i32 %48, 0
%50 = zext i1 %49 to i64
%51 = select i1 %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%52 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %51, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%53 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 0
%54 = call i32 @arr_all_even(i32* %53, i32 9)
%55 = icmp eq i32 %54, 0
%56 = zext i1 %55 to i64
%57 = select i1 %55, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%58 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %57, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%59 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%60 = call i32 @arr_all_even(i32* %59, i32 3)
%61 = icmp eq i32 %60, 1
%62 = zext i1 %61 to i64
%63 = select i1 %61, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%64 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %63, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%65 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%66 = getelementptr inbounds [7 x i32], [7 x i32]* %2, i64 0, i64 0
%67 = call i32 @arr_find_last(i32* %66, i32 7, i32 777)
%68 = icmp eq i32 %67, 6
%69 = zext i1 %68 to i64
%70 = select i1 %68, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%71 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %70, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0))
%72 = getelementptr inbounds [3 x i32], [3 x i32]* %4, i64 0, i64 0
%73 = call i32 @arr_find_last(i32* %72, i32 3, i32 4)
%74 = sext i32 %73 to i64
%75 = icmp eq i64 %74, -1
%76 = zext i1 %75 to i64
%77 = select i1 %75, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%78 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %77, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%79 = getelementptr inbounds [9 x i32], [9 x i32]* %3, i64 0, i64 0
%80 = call i32 @arr_find_last(i32* %79, i32 9, i32 99)
%81 = icmp eq i32 %80, 8
%82 = zext i1 %81 to i64
%83 = select i1 %81, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%84 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %83, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@__const.main.a = [7 x i32] [i32 78, i32 123, i32 333, i32 333, i32 123123, i32 1233, i32 777]
@__const.main.b = [9 x i32] [i32 11, i32 22, i32 33, i32 44, i32 55, i32 66, i32 77, i32 99, i32 99]
@__const.main.c = [3 x i32] [i32 88, i32 66, i32 44]
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [18 x i8] c"tests for arr_min\00"
@.str.2 = [13 x i8] c"%s . . . %s\0A\00"
@.str.3 = [7 x i8] c"passed\00"
@.str.4 = [7 x i8] c"failed\00"
@.str.5 = [17 x i8] c"arr_min(a,7)==78\00"
@.str.6 = [17 x i8] c"arr_min(b,9)==11\00"
@.str.7 = [17 x i8] c"arr_min(c,3)==44\00"
@.str.8 = [19 x i8] c"test for arr_count\00"
@.str.9 = [22 x i8] c"arr_count(a,7,333)==2\00"
@.str.10 = [21 x i8] c"arr_count(b,9,77)==1\00"
@.str.11 = [20 x i8] c"arr_count(c,3,5)==0\00"
@.str.12 = [23 x i8] c"tests for arr_all_even\00"
@.str.13 = [21 x i8] c"arr_all_even(a,7)==0\00"
@.str.14 = [21 x i8] c"arr_all_even(b,9)==0\00"
@.str.15 = [21 x i8] c"arr_all_even(c,3)==1\00"
@.str.16 = [24 x i8] c"tests for arr_find_last\00"
@.str.17 = [26 x i8] c"arr_find_last(a,7,777)==6\00"
@.str.18 = [34 x i8] c"arr_find_last(c,3,4)==(size_t) -1\00"
@.str.19 = [25 x i8] c"arr_find_last(b,9,99)==8\00"
define i32 @main() {
%1 = alloca [7 x i32]
%2 = alloca [9 x i32]
%3 = alloca [3 x i32]
%4 = bitcast [7 x i32]* %1 to i8*
%5 = bitcast [9 x i32]* %2 to i8*
%6 = bitcast [3 x i32]* %3 to i8*
%7 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds [7 x i32], [7 x i32]* %1, i64 0, i64 0
%9 = call i32 @arr_min(i32* %8, i32 7)
%10 = icmp eq i32 %9, 78
%11 = select i1 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%12 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.5, i64 0, i64 0))
%13 = getelementptr inbounds [9 x i32], [9 x i32]* %2, i64 0, i64 0
%14 = call i32 @arr_min(i32* %13, i32 9)
%15 = icmp eq i32 %14, 11
%16 = select i1 %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%17 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0))
%18 = getelementptr inbounds [3 x i32], [3 x i32]* %3, i64 0, i64 0
%19 = call i32 @arr_min(i32* %18, i32 3)
%20 = icmp eq i32 %19, 44
%21 = select i1 %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%22 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %21, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
%23 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.8, i64 0, i64 0))
%24 = call i32 @arr_count(i32* %8, i32 7, i32 333)
%25 = icmp eq i32 %24, 2
%26 = select i1 %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%27 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%28 = call i32 @arr_count(i32* %13, i32 9, i32 77)
%29 = icmp eq i32 %28, 1
%30 = select i1 %29, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%31 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %30, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0))
%32 = call i32 @arr_count(i32* %18, i32 3, i32 5)
%33 = icmp eq i32 %32, 0
%34 = select i1 %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%35 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %34, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0))
%36 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
%37 = call i32 @arr_all_even(i32* %8, i32 7)
%38 = icmp eq i32 %37, 0
%39 = select i1 %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%40 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %39, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%41 = call i32 @arr_all_even(i32* %13, i32 9)
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%44 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %43, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.14, i64 0, i64 0))
%45 = call i32 @arr_all_even(i32* %18, i32 3)
%46 = icmp eq i32 %45, 1
%47 = select i1 %46, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%48 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %47, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%49 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
%50 = call i32 @arr_find_last(i32* %8, i32 7, i32 777)
%51 = icmp eq i32 %50, 6
%52 = select i1 %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%53 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %52, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.17, i64 0, i64 0))
%54 = call i32 @arr_find_last(i32* %18, i32 3, i32 4)
%55 = icmp eq i32 %54, -1
%56 = select i1 %55, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%57 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %56, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.18, i64 0, i64 0))
%58 = call i32 @arr_find_last(i32* %13, i32 9, i32 99)
%59 = icmp eq i32 %58, 8
%60 = select i1 %59, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0)
%61 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %60, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.19, i64 0, i64 0))
ret i32 0
}