#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*/ __ESBMC_assume(int);
int /*<<< orphan*/ assert(int);
int main() {
  unsigned int n, i, j, ai, aj;
  int a[n];
  __ESBMC_assume(n > 10 && n < 10000000);
  __ESBMC_assume(i < n);
  __ESBMC_assume(j < n);
  ai = a[i];
  aj = a[j];
  assert(ai == aj || i != j);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%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,-0x38(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x28(%rbp)
xor    %eax,%eax
cmpl   $0xa,-0x8(%rbp)
mov    %al,-0x29(%rbp)
jbe    1172 <main+0x52>
cmpl   $0x989680,-0x8(%rbp)
setb   %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__ESBMC_assume@plt>
mov    -0xc(%rbp),%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__ESBMC_assume@plt>
mov    -0x10(%rbp),%eax
cmp    -0x8(%rbp),%eax
setb   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__ESBMC_assume@plt>
mov    -0x38(%rbp),%rax
mov    -0xc(%rbp),%ecx
mov    (%rax,%rcx,4),%ecx
mov    %ecx,-0x14(%rbp)
mov    -0x10(%rbp),%ecx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%ecx
mov    $0x1,%al
cmp    -0x18(%rbp),%ecx
mov    %al,-0x39(%rbp)
je     11d8 <main+0xb8>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setne  %al
mov    %al,-0x39(%rbp)
mov    -0x39(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1040 <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   %rax
xor    %edi,%edi
call   1030 <__ESBMC_assume@plt>
xor    %edi,%edi
call   1030 <__ESBMC_assume@plt>
xor    %edi,%edi
call   1030 <__ESBMC_assume@plt>
mov    $0x1,%edi
call   1040 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @__ESBMC_assume(i32 0)
%2 = tail call i32 @__ESBMC_assume(i32 0)
%3 = tail call i32 @__ESBMC_assume(i32 0)
%4 = tail call i32 @assert(i32 1)
ret i32 0
}