#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*/ assert(int /*<<< orphan*/, char *);
int nondet_int();
int main() {
  unsigned int j, k;
  int array[1], menor;
  menor = nondet_int();
  for (j = 0; j < 1; j++) {
    array[j] = nondet_int();
    if (array[j] <= menor)
      menor = array[j];
  }
  if (!(array[0] > menor))
    goto ERROR;
ERROR:
  assert(0, "ERROR");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x14(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x1,-0x8(%rbp)
jae    1187 <main+0x67>
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,%ecx
mov    -0x8(%rbp),%eax
mov    %ecx,-0x10(%rbp,%rax,4)
mov    -0x8(%rbp),%eax
mov    -0x10(%rbp,%rax,4),%eax
cmp    -0x14(%rbp),%eax
jg     1174 <main+0x54>
mov    -0x8(%rbp),%eax
mov    -0x10(%rbp,%rax,4),%eax
mov    %eax,-0x14(%rbp)
jmp    1179 <main+0x59>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1140 <main+0x20>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     1198 <main+0x78>
jmp    119d <main+0x7d>
jmp    119d <main+0x7d>
xor    %edi,%edi
lea    0xe5a(%rip),%rsi
call   1040 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1030 <nondet_int@plt>
xor    %eax,%eax
call   1030 <nondet_int@plt>
lea    0xeca(%rip),%rsi
xor    %edi,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"ERROR\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [1 x i32]
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (...) @nondet_int()
store i32 %6, i32* %5
store i32 0, i32* %2
br label %7
7: ; preds = %27, %0
%8 = load i32, i32* %2
%9 = icmp ult i32 %8, 1
br i1 %9, label %10, label %30
10: ; preds = %7
%11 = call i32 (...) @nondet_int()
%12 = load i32, i32* %2
%13 = zext i32 %12 to i64
%14 = getelementptr inbounds [1 x i32], [1 x i32]* %4, i64 0, i64 %13
store i32 %11, i32* %14
%15 = load i32, i32* %2
%16 = zext i32 %15 to i64
%17 = getelementptr inbounds [1 x i32], [1 x i32]* %4, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = load i32, i32* %5
%20 = icmp sle i32 %18, %19
br i1 %20, label %21, label %26
21: ; preds = %10
%22 = load i32, i32* %2
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [1 x i32], [1 x i32]* %4, i64 0, i64 %23
%25 = load i32, i32* %24
store i32 %25, i32* %5
br label %26
26: ; preds = %21, %10
br label %27
27: ; preds = %26
%28 = load i32, i32* %2
%29 = add i32 %28, 1
store i32 %29, i32* %2
br label %7
30: ; preds = %7
%31 = getelementptr inbounds [1 x i32], [1 x i32]* %4, i64 0, i64 0
%32 = load i32, i32* %31
%33 = load i32, i32* %5
%34 = icmp sgt i32 %32, %33
br i1 %34, label %36, label %35
35: ; preds = %30
br label %37
36: ; preds = %30
br label %37
37: ; preds = %36, %35
%38 = call i32 @assert(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@.str = [6 x i8] c"ERROR\00"
define i32 @main() {
%1 = tail call i32 (...) @nondet_int()
%2 = tail call i32 (...) @nondet_int()
%3 = tail call i32 @assert(i32 0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
ret i32 0
}