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

/* Variables and functions */
int min(int *, int);
int /*<<< orphan*/ printf(char *, int);
void interView08Test(void) {
  int arr[] = {3, 4, 5, 1, 2};
  printf("min:%d\n", min(arr, sizeof(arr) / sizeof(int)));
  int arr1[] = {1, 0, 1, 1, 1};
  printf("min:%d\n", min(arr1, sizeof(arr1) / sizeof(int)));
}


x86 assembly (clang, -O0):
<interView08Test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0xed1(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xece(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xecc(%rip),%eax
mov    %eax,-0x10(%rbp)
lea    -0x20(%rbp),%rdi
mov    $0x5,%esi
call   1040 <min@plt>
mov    %eax,%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    0xeb6(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xeb3(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xeb1(%rip),%eax
mov    %eax,-0x30(%rbp)
lea    -0x40(%rbp),%rdi
mov    $0x5,%esi
call   1040 <min@plt>
mov    %eax,%esi
lea    0xe9b(%rip),%rdi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<interView08Test>:
push   %rbx
sub    $0x40,%rsp
mov    0xee5(%rip),%eax
mov    %eax,0x30(%rsp)
movaps 0xeca(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
lea    0x20(%rsp),%rdi
mov    $0x5,%esi
call   1040 <min@plt>
lea    0xee3(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    0xecf(%rip),%eax
mov    %eax,0x10(%rsp)
movaps 0xeb4(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
mov    $0x5,%esi
call   1040 <min@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.interView08Test.arr = [5 x i32] [i32 3, i32 4, i32 5, i32 1, i32 2]
@.str = [8 x i8] c"min:%d\0A\00"
@__const.interView08Test.arr1 = [5 x i32] [i32 1, i32 0, i32 1, i32 1, i32 1]
define void @interView08Test() {
%1 = alloca [5 x i32]
%2 = alloca [5 x i32]
%3 = bitcast [5 x i32]* %1 to i8*
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%5 = call i32 @min(i32* %4, i32 5)
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = bitcast [5 x i32]* %2 to i8*
%8 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%9 = call i32 @min(i32* %8, i32 5)
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %9)
ret void
}

LLVM IR (-O2):
@__const.interView08Test.arr = [5 x i32] [i32 3, i32 4, i32 5, i32 1, i32 2]
@.str = [8 x i8] c"min:%d\0A\00"
@__const.interView08Test.arr1 = [5 x i32] [i32 1, i32 0, i32 1, i32 1, i32 1]
define void @interView08Test() {
%1 = alloca [5 x i32]
%2 = alloca [5 x i32]
%3 = bitcast [5 x i32]* %1 to i8*
%4 = getelementptr inbounds [5 x i32], [5 x i32]* %1, i64 0, i64 0
%5 = call i32 @min(i32* %4, i32 5)
%6 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = bitcast [5 x i32]* %2 to i8*
%8 = getelementptr inbounds [5 x i32], [5 x i32]* %2, i64 0, i64 0
%9 = call i32 @min(i32* %8, i32 5)
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %9)
ret void
}