#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*/ __VERIFIER_assert(int);
int __VERIFIER_nondet_int();
main() {
  int SIZE;
  unsigned int j, k;
  int menor;
  SIZE = __VERIFIER_nondet_int();
  menor = __VERIFIER_nondet_int();
  int array[SIZE];
  for (j = 0; j < SIZE; j++) {
    array[j] = __VERIFIER_nondet_int();
    if (array[j] <= menor)
      menor = array[j];
  }
  __VERIFIER_assert(SIZE <= 0 || array[0] >= menor);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
mov    %al,-0x31(%rbp)
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ecx
mov    -0x31(%rbp),%al
mov    %ecx,-0x8(%rbp)
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x14(%rbp)
mov    -0x8(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x20(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    11c5 <main+0xa5>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%edx
mov    -0x30(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    %edx,(%rax,%rcx,4)
mov    -0xc(%rbp),%ecx
mov    (%rax,%rcx,4),%eax
cmp    -0x14(%rbp),%eax
jg     11b2 <main+0x92>
mov    -0x30(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x14(%rbp)
jmp    11b7 <main+0x97>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1177 <main+0x57>
mov    $0x1,%al
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x32(%rbp)
jle    11e3 <main+0xc3>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
cmp    -0x14(%rbp),%eax
setge  %al
mov    %al,-0x32(%rbp)
mov    -0x32(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x20(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r15d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %r15d,%r12d
mov    %rsp,%r13
lea    0xf(,%r12,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r13
mov    %r13,%rsp
mov    $0x1,%r14d
test   %r15d,%r15d
je     119f <main+0x7f>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %eax,%r15d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,0x0(%r13,%rbx,4)
cmp    %r15d,%eax
cmovg  %r15d,%eax
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1170 <main+0x50>
test   %r12d,%r12d
jle    119f <main+0x7f>
xor    %r14d,%r14d
cmp    %eax,0x0(%r13)
setge  %r14b
mov    %r14d,%edi
call   1040 <__VERIFIER_assert@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i64
store i32 0, i32* %1
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, i32* %2
%9 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %9, i32* %5
%10 = load i32, i32* %2
%11 = zext i32 %10 to i64
%12 = call i8* @llvm.stacksave()
store i8* %12, i8** %6
%13 = alloca i32, i64 %11
store i64 %11, i64* %7
store i32 0, i32* %3
br label %14
14: ; preds = %35, %0
%15 = load i32, i32* %3
%16 = load i32, i32* %2
%17 = icmp ult i32 %15, %16
br i1 %17, label %18, label %38
18: ; preds = %14
%19 = call i32 (...) @__VERIFIER_nondet_int()
%20 = load i32, i32* %3
%21 = zext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %13, i64 %21
store i32 %19, i32* %22
%23 = load i32, i32* %3
%24 = zext i32 %23 to i64
%25 = getelementptr inbounds i32, i32* %13, i64 %24
%26 = load i32, i32* %25
%27 = load i32, i32* %5
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %34
29: ; preds = %18
%30 = load i32, i32* %3
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %13, i64 %31
%33 = load i32, i32* %32
store i32 %33, i32* %5
br label %34
34: ; preds = %29, %18
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add i32 %36, 1
store i32 %37, i32* %3
br label %14
38: ; preds = %14
%39 = load i32, i32* %2
%40 = icmp sle i32 %39, 0
br i1 %40, label %46, label %41
41: ; preds = %38
%42 = getelementptr inbounds i32, i32* %13, i64 0
%43 = load i32, i32* %42
%44 = load i32, i32* %5
%45 = icmp sge i32 %43, %44
br label %46
46: ; preds = %41, %38
%47 = phi i1 [ true, %38 ], [ %45, %41 ]
%48 = zext i1 %47 to i32
%49 = call i32 @__VERIFIER_assert(i32 %48)
%50 = load i8*, i8** %6
%51 = load i32, i32* %1
ret i32 %51
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = zext i32 %1 to i64
%4 = alloca i32, i64 %3
%5 = icmp eq i32 %1, 0
br i1 %5, label %21, label %6
6: ; preds = %0, %6
%7 = phi i64 [ %13, %6 ], [ 0, %0 ]
%8 = phi i32 [ %12, %6 ], [ %2, %0 ]
%9 = tail call i32 (...) @__VERIFIER_nondet_int()
%10 = getelementptr inbounds i32, i32* %4, i64 %7
store i32 %9, i32* %10
%11 = icmp sgt i32 %9, %8
%12 = select i1 %11, i32 %8, i32 %9
%13 = add nuw nsw i64 %7, 1
%14 = icmp eq i64 %13, %3
br i1 %14, label %15, label %6
15: ; preds = %6
%16 = icmp slt i32 %1, 1
br i1 %16, label %21, label %17
17: ; preds = %15
%18 = load i32, i32* %4
%19 = icmp sge i32 %18, %12
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %0, %17, %15
%22 = phi i32 [ 1, %15 ], [ %20, %17 ], [ 1, %0 ]
%23 = tail call i32 @__VERIFIER_assert(i32 %22)
ret i32 0
}