#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, k, n, l;
  n = __VERIFIER_nondet_int();
  l = __VERIFIER_nondet_int();
  __VERIFIER_assume(l > 0);
  __VERIFIER_assume(l < 1000000);
  __VERIFIER_assume(n < 1000000);
  for (k = 1; k < n; k++) {
    for (i = l; i < n; i++) {
      __VERIFIER_assert(1 <= i);
    }
    if (__VERIFIER_nondet_int())
      l = l + 1;
  }
}


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   $0x0,-0x10(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
cmpl   $0xf4240,-0x10(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
cmpl   $0xf4240,-0xc(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__VERIFIER_assume@plt>
movl   $0x1,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f9 <main+0xc9>
mov    -0x10(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11cd <main+0x9d>
mov    $0x1,%eax
cmp    -0x4(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    119e <main+0x6e>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x0,%eax
je     11e6 <main+0xb6>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    11eb <main+0xbb>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    118c <main+0x5c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%r14d
xor    %edi,%edi
test   %eax,%eax
setg   %dil
call   1050 <__VERIFIER_assume@plt>
xor    %edi,%edi
cmp    $0xf4240,%r14d
setl   %dil
call   1050 <__VERIFIER_assume@plt>
xor    %edi,%edi
cmp    $0xf4240,%ebx
setl   %dil
call   1050 <__VERIFIER_assume@plt>
cmp    $0x2,%ebx
jl     11c6 <main+0x96>
mov    $0x1,%r15d
jmp    11a7 <main+0x77>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0x1,%eax
sbb    $0xffffffff,%r14d
add    $0x1,%r15d
cmp    %ebx,%r15d
je     11c6 <main+0x96>
cmp    %ebx,%r14d
jge    1190 <main+0x60>
mov    %r14d,%ebp
nop
xor    %edi,%edi
test   %ebp,%ebp
setg   %dil
call   1040 <__VERIFIER_assert@plt>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    11b0 <main+0x80>
jmp    1190 <main+0x60>
add    $0x8,%rsp
pop    %rbx
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 sgt i32 %7, 0
%9 = zext i1 %8 to i32
%10 = call i32 @__VERIFIER_assume(i32 %9)
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 1000000
%13 = zext i1 %12 to i32
%14 = call i32 @__VERIFIER_assume(i32 %13)
%15 = load i32, i32* %3
%16 = icmp slt i32 %15, 1000000
%17 = zext i1 %16 to i32
%18 = call i32 @__VERIFIER_assume(i32 %17)
store i32 1, i32* %2
br label %19
19: ; preds = %44, %0
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = icmp slt i32 %20, %21
br i1 %22, label %23, label %47
23: ; preds = %19
%24 = load i32, i32* %4
store i32 %24, i32* %1
br label %25
25: ; preds = %34, %23
%26 = load i32, i32* %1
%27 = load i32, i32* %3
%28 = icmp slt i32 %26, %27
br i1 %28, label %29, label %37
29: ; preds = %25
%30 = load i32, i32* %1
%31 = icmp sle i32 1, %30
%32 = zext i1 %31 to i32
%33 = call i32 @__VERIFIER_assert(i32 %32)
br label %34
34: ; preds = %29
%35 = load i32, i32* %1
%36 = add nsw i32 %35, 1
store i32 %36, i32* %1
br label %25
37: ; preds = %25
%38 = call i32 (...) @__VERIFIER_nondet_int()
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, i32* %4
%42 = add nsw i32 %41, 1
store i32 %42, i32* %4
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %19
47: ; preds = %19
ret void
}

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