#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*/ __CRAB_assert(int);
int /*<<< orphan*/ __CRAB_assume(int);
int __CRAB_nd();
int main() {
  int k = __CRAB_nd();
  int n = __CRAB_nd();
  __CRAB_assume(k > 0);
  __CRAB_assume(n > 0);
  int x = k;
  int y = k;
  while (x < n) {
    x++;
    y++;
  }
  __CRAB_assert(x >= y);
  __CRAB_assert(x <= y);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__CRAB_nd@plt>
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__CRAB_nd@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__CRAB_assume@plt>
cmpl   $0x0,-0xc(%rbp)
setg   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <__CRAB_assume@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11a4 <main+0x74>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1181 <main+0x51>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__CRAB_assert@plt>
mov    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__CRAB_assert@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <__CRAB_nd@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__CRAB_nd@plt>
mov    %eax,%ebp
xor    %edi,%edi
test   %ebx,%ebx
setg   %dil
call   1050 <__CRAB_assume@plt>
xor    %edi,%edi
test   %ebp,%ebp
setg   %dil
call   1050 <__CRAB_assume@plt>
mov    $0x1,%edi
call   1040 <__CRAB_assert@plt>
mov    $0x1,%edi
call   1040 <__CRAB_assert@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
%6 = call i32 (...) @__CRAB_nd()
store i32 %6, i32* %2
%7 = call i32 (...) @__CRAB_nd()
store i32 %7, i32* %3
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 0
%10 = zext i1 %9 to i32
%11 = call i32 @__CRAB_assume(i32 %10)
%12 = load i32, i32* %3
%13 = icmp sgt i32 %12, 0
%14 = zext i1 %13 to i32
%15 = call i32 @__CRAB_assume(i32 %14)
%16 = load i32, i32* %2
store i32 %16, i32* %4
%17 = load i32, i32* %2
store i32 %17, i32* %5
br label %18
18: ; preds = %22, %0
%19 = load i32, i32* %4
%20 = load i32, i32* %3
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %27
22: ; preds = %18
%23 = load i32, i32* %4
%24 = add nsw i32 %23, 1
store i32 %24, i32* %4
%25 = load i32, i32* %5
%26 = add nsw i32 %25, 1
store i32 %26, i32* %5
br label %18
27: ; preds = %18
%28 = load i32, i32* %4
%29 = load i32, i32* %5
%30 = icmp sge i32 %28, %29
%31 = zext i1 %30 to i32
%32 = call i32 @__CRAB_assert(i32 %31)
%33 = load i32, i32* %4
%34 = load i32, i32* %5
%35 = icmp sle i32 %33, %34
%36 = zext i1 %35 to i32
%37 = call i32 @__CRAB_assert(i32 %36)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__CRAB_nd()
%2 = tail call i32 (...) @__CRAB_nd()
%3 = icmp sgt i32 %1, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @__CRAB_assume(i32 %4)
%6 = icmp sgt i32 %2, 0
%7 = zext i1 %6 to i32
%8 = tail call i32 @__CRAB_assume(i32 %7)
%9 = tail call i32 @__CRAB_assert(i32 1)
%10 = tail call i32 @__CRAB_assert(i32 1)
ret i32 0
}