#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 main() {
  int a[100000];
  int i;
  int r = 1;
  for (i = 1; i < 100000 && r; i++) {
    int j;
    for (j = i - 1; j >= 0 && r; j--) {
      if (a[i] == a[j]) {
        r = 1;
      }
    }
  }
  if (r) {
    int x;
    int y;
    for (x = 0; x < 100000; x++) {
      for (y = x + 1; y < 100000; y++) {
        __VERIFIER_assert(a[x] != a[y]);
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x61ab0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x61a98(%rbp)
movl   $0x1,-0x61a94(%rbp)
xor    %eax,%eax
cmpl   $0x186a0,-0x61a94(%rbp)
mov    %al,-0x61aa5(%rbp)
jge    115e <main+0x4e>
cmpl   $0x0,-0x61a98(%rbp)
setne  %al
mov    %al,-0x61aa5(%rbp)
mov    -0x61aa5(%rbp),%al
test   $0x1,%al
jne    1171 <main+0x61>
jmp    1216 <main+0x106>
mov    -0x61a94(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x61a9c(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x61a9c(%rbp)
mov    %al,-0x61aa6(%rbp)
jl     11a5 <main+0x95>
cmpl   $0x0,-0x61a98(%rbp)
setne  %al
mov    %al,-0x61aa6(%rbp)
mov    -0x61aa6(%rbp),%al
test   $0x1,%al
jne    11b8 <main+0xa8>
jmp    11fd <main+0xed>
movslq -0x61a94(%rbp),%rax
mov    -0x61a90(%rbp,%rax,4),%eax
movslq -0x61a9c(%rbp),%rcx
cmp    -0x61a90(%rbp,%rcx,4),%eax
jne    11e4 <main+0xd4>
movl   $0x1,-0x61a98(%rbp)
jmp    11e9 <main+0xd9>
mov    -0x61a9c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x61a9c(%rbp)
jmp    1180 <main+0x70>
jmp    1202 <main+0xf2>
mov    -0x61a94(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x61a94(%rbp)
jmp    1136 <main+0x26>
cmpl   $0x0,-0x61a98(%rbp)
je     12b7 <main+0x1a7>
movl   $0x0,-0x61aa0(%rbp)
cmpl   $0x186a0,-0x61aa0(%rbp)
jge    12b2 <main+0x1a2>
mov    -0x61aa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x61aa4(%rbp)
cmpl   $0x186a0,-0x61aa4(%rbp)
jge    1299 <main+0x189>
movslq -0x61aa0(%rbp),%rax
mov    -0x61a90(%rbp,%rax,4),%eax
movslq -0x61aa4(%rbp),%rcx
cmp    -0x61a90(%rbp,%rcx,4),%eax
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__VERIFIER_assert@plt>
mov    -0x61aa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x61aa4(%rbp)
jmp    124c <main+0x13c>
jmp    129e <main+0x18e>
mov    -0x61aa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x61aa0(%rbp)
jmp    122d <main+0x11d>
jmp    12b7 <main+0x1a7>
xor    %eax,%eax
add    $0x61ab0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0x61a88,%rsp
mov    $0x1,%r15d
xor    %r14d,%r14d
jmp    113d <main+0x2d>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    $0x186a0,%r14
je     117d <main+0x6d>
mov    %r14,%rax
add    $0x1,%r14
cmp    $0x1869e,%rax
ja     1130 <main+0x20>
mov    (%rsp,%rax,4),%ebp
mov    %r15,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xor    %edi,%edi
cmp    (%rsp,%rbx,4),%ebp
setne  %dil
call   1030 <__VERIFIER_assert@plt>
add    $0x1,%rbx
cmp    $0x186a0,%rbx
jne    1160 <main+0x50>
jmp    1130 <main+0x20>
xor    %eax,%eax
add    $0x61a88,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca [100000 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %4
store i32 1, i32* %3
br label %8
8: ; preds = %43, %0
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 100000
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %4
%13 = icmp ne i32 %12, 0
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %16, label %46
16: ; preds = %14
%17 = load i32, i32* %3
%18 = sub nsw i32 %17, 1
store i32 %18, i32* %5
br label %19
19: ; preds = %39, %16
%20 = load i32, i32* %5
%21 = icmp sge i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = load i32, i32* %4
%24 = icmp ne i32 %23, 0
br label %25
25: ; preds = %22, %19
%26 = phi i1 [ false, %19 ], [ %24, %22 ]
br i1 %26, label %27, label %42
27: ; preds = %25
%28 = load i32, i32* %3
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [100000 x i32], [100000 x i32]* %2, i64 0, i64 %29
%31 = load i32, i32* %30
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100000 x i32], [100000 x i32]* %2, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = icmp eq i32 %31, %35
br i1 %36, label %37, label %38
37: ; preds = %27
store i32 1, i32* %4
br label %38
38: ; preds = %37, %27
br label %39
39: ; preds = %38
%40 = load i32, i32* %5
%41 = add nsw i32 %40, -1
store i32 %41, i32* %5
br label %19
42: ; preds = %25
br label %43
43: ; preds = %42
%44 = load i32, i32* %3
%45 = add nsw i32 %44, 1
store i32 %45, i32* %3
br label %8
46: ; preds = %14
%47 = load i32, i32* %4
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %79
49: ; preds = %46
store i32 0, i32* %6
br label %50
50: ; preds = %75, %49
%51 = load i32, i32* %6
%52 = icmp slt i32 %51, 100000
br i1 %52, label %53, label %78
53: ; preds = %50
%54 = load i32, i32* %6
%55 = add nsw i32 %54, 1
store i32 %55, i32* %7
br label %56
56: ; preds = %71, %53
%57 = load i32, i32* %7
%58 = icmp slt i32 %57, 100000
br i1 %58, label %59, label %74
59: ; preds = %56
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [100000 x i32], [100000 x i32]* %2, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = load i32, i32* %7
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds [100000 x i32], [100000 x i32]* %2, i64 0, i64 %65
%67 = load i32, i32* %66
%68 = icmp ne i32 %63, %67
%69 = zext i1 %68 to i32
%70 = call i32 @__VERIFIER_assert(i32 %69)
br label %71
71: ; preds = %59
%72 = load i32, i32* %7
%73 = add nsw i32 %72, 1
store i32 %73, i32* %7
br label %56
74: ; preds = %56
br label %75
75: ; preds = %74
%76 = load i32, i32* %6
%77 = add nsw i32 %76, 1
store i32 %77, i32* %6
br label %50
78: ; preds = %50
br label %79
79: ; preds = %78, %46
ret i32 0
}

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