#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 /*<<< orphan*/ __VERIFIER_assume(int);
int __VERIFIER_nondet_int();
void main() {
  int i, j, k, n;
  k = __VERIFIER_nondet_int();
  n = __VERIFIER_nondet_int();
  __VERIFIER_assume(n < 1000000);
  if (k == n) {
  } else {
    goto END;
  }
  for (i = 0; i < n; i++) {
    for (j = 2 * i; j < n; j++) {
      if (__VERIFIER_nondet_int()) {
        for (k = j; k < n; k++) {
          __VERIFIER_assert(k >= 2 * i);
        }
      } else {
        __VERIFIER_assert(k >= n);
        __VERIFIER_assert(k <= n);
      }
    }
  }
END:;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0xf4240,-0x10(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jne    1171 <main+0x41>
jmp    1176 <main+0x46>
jmp    123c <main+0x10c>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1237 <main+0x107>
mov    -0x4(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1224 <main+0xf4>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%eax
je     11eb <main+0xbb>
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    11e6 <main+0xb6>
mov    -0xc(%rbp),%eax
mov    -0x4(%rbp),%ecx
shl    $0x1,%ecx
cmp    %ecx,%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    11b4 <main+0x84>
jmp    1211 <main+0xe1>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0xc(%rbp),%eax
cmp    -0x10(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
jmp    1216 <main+0xe6>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1192 <main+0x62>
jmp    1229 <main+0xf9>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117d <main+0x4d>
jmp    123c <main+0x10c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r12d
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %edi,%edi
cmp    $0xf4240,%eax
setl   %dil
call   1050 <__VERIFIER_assume@plt>
cmp    %ebp,%r12d
jne    11d7 <main+0xa7>
test   %ebp,%ebp
jle    11d7 <main+0xa7>
xor    %r14d,%r14d
jmp    1179 <main+0x49>
nopl   0x0(%rax)
add    $0x1,%r14d
cmp    %r12d,%r14d
je     11d7 <main+0xa7>
lea    (%r14,%r14,1),%ebp
cmp    %r12d,%ebp
jge    1170 <main+0x40>
mov    %ebp,%r15d
jmp    11ad <main+0x7d>
nopw   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1040 <__VERIFIER_assert@plt>
mov    $0x1,%edi
call   1040 <__VERIFIER_assert@plt>
add    $0x1,%r15d
cmp    %r12d,%r15d
je     1170 <main+0x40>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
je     1190 <main+0x60>
mov    %r15d,%ebx
nopl   0x0(%rax,%rax,1)
xor    %edi,%edi
cmp    %ebp,%ebx
setae  %dil
call   1040 <__VERIFIER_assert@plt>
add    $0x1,%ebx
cmp    %r12d,%ebx
jl     11c0 <main+0x90>
jmp    11a4 <main+0x74>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %5, i32* %3
%6 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %6, i32* %4
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 1000000
%9 = zext i1 %8 to i32
%10 = call i32 @__VERIFIER_assume(i32 %9)
%11 = load i32, i32* %3
%12 = load i32, i32* %4
%13 = icmp eq i32 %11, %12
br i1 %13, label %14, label %15
14: ; preds = %0
br label %16
15: ; preds = %0
br label %68
16: ; preds = %14
store i32 0, i32* %1
br label %17
17: ; preds = %64, %16
%18 = load i32, i32* %1
%19 = load i32, i32* %4
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %67
21: ; preds = %17
%22 = load i32, i32* %1
%23 = mul nsw i32 2, %22
store i32 %23, i32* %2
br label %24
24: ; preds = %60, %21
%25 = load i32, i32* %2
%26 = load i32, i32* %4
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %63
28: ; preds = %24
%29 = call i32 (...) @__VERIFIER_nondet_int()
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %48
31: ; preds = %28
%32 = load i32, i32* %2
store i32 %32, i32* %3
br label %33
33: ; preds = %44, %31
%34 = load i32, i32* %3
%35 = load i32, i32* %4
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %47
37: ; preds = %33
%38 = load i32, i32* %3
%39 = load i32, i32* %1
%40 = mul nsw i32 2, %39
%41 = icmp sge i32 %38, %40
%42 = zext i1 %41 to i32
%43 = call i32 @__VERIFIER_assert(i32 %42)
br label %44
44: ; preds = %37
%45 = load i32, i32* %3
%46 = add nsw i32 %45, 1
store i32 %46, i32* %3
br label %33
47: ; preds = %33
br label %59
48: ; preds = %28
%49 = load i32, i32* %3
%50 = load i32, i32* %4
%51 = icmp sge i32 %49, %50
%52 = zext i1 %51 to i32
%53 = call i32 @__VERIFIER_assert(i32 %52)
%54 = load i32, i32* %3
%55 = load i32, i32* %4
%56 = icmp sle i32 %54, %55
%57 = zext i1 %56 to i32
%58 = call i32 @__VERIFIER_assert(i32 %57)
br label %59
59: ; preds = %48, %47
br label %60
60: ; preds = %59
%61 = load i32, i32* %2
%62 = add nsw i32 %61, 1
store i32 %62, i32* %2
br label %24
63: ; preds = %24
br label %64
64: ; preds = %63
%65 = load i32, i32* %1
%66 = add nsw i32 %65, 1
store i32 %66, i32* %1
br label %17
67: ; preds = %17
br label %68
68: ; preds = %67, %15
ret void
}

LLVM IR (-O2):
define void @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = icmp slt i32 %2, 1000000
%4 = zext i1 %3 to i32
%5 = tail call i32 @__VERIFIER_assume(i32 %4)
%6 = icmp eq i32 %1, %2
%7 = icmp sgt i32 %2, 0
%8 = and i1 %6, %7
br i1 %8, label %9, label %33
9: ; preds = %0, %30
%10 = phi i32 [ %31, %30 ], [ 0, %0 ]
%11 = shl nuw nsw i32 %10, 1
%12 = icmp slt i32 %11, %1
br i1 %12, label %13, label %30
13: ; preds = %9, %27
%14 = phi i32 [ %28, %27 ], [ %11, %9 ]
%15 = tail call i32 (...) @__VERIFIER_nondet_int()
%16 = icmp eq i32 %15, 0
br i1 %16, label %24, label %17
17: ; preds = %13, %17
%18 = phi i32 [ %22, %17 ], [ %14, %13 ]
%19 = icmp uge i32 %18, %11
%20 = zext i1 %19 to i32
%21 = tail call i32 @__VERIFIER_assert(i32 %20)
%22 = add nuw nsw i32 %18, 1
%23 = icmp slt i32 %22, %1
br i1 %23, label %17, label %27
24: ; preds = %13
%25 = tail call i32 @__VERIFIER_assert(i32 1)
%26 = tail call i32 @__VERIFIER_assert(i32 1)
br label %27
27: ; preds = %17, %24
%28 = add i32 %14, 1
%29 = icmp eq i32 %28, %1
br i1 %29, label %30, label %13
30: ; preds = %27, %9
%31 = add nuw nsw i32 %10, 1
%32 = icmp eq i32 %31, %1
br i1 %32, label %33, label %9
33: ; preds = %30, %0
ret void
}