#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 __VERIFIER_nondet_int();
int main() {
  int MAXPATHLEN;
  int pathbuf_off;
  int bound_off;
  int glob2_p_off;
  int glob2_pathbuf_off;
  int glob2_pathlim_off;
  MAXPATHLEN = __VERIFIER_nondet_int();
  if (MAXPATHLEN > 0 && MAXPATHLEN < 2147483647)
    ;
  else
    goto END;
  pathbuf_off = 0;
  bound_off = pathbuf_off + (MAXPATHLEN + 1) - 1;
  glob2_pathbuf_off = pathbuf_off;
  glob2_pathlim_off = bound_off;
  for (glob2_p_off = glob2_pathbuf_off; glob2_p_off <= glob2_pathlim_off;
       glob2_p_off++) {
    __VERIFIER_assert(0 <= glob2_p_off);
    __VERIFIER_assert(glob2_p_off < MAXPATHLEN + 1);
  }
END:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1155 <main+0x35>
cmpl   $0x7fffffff,-0x8(%rbp)
jge    1155 <main+0x35>
jmp    115a <main+0x3a>
jmp    11cd <main+0xad>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
add    %ecx,%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     11c8 <main+0xa8>
xor    %eax,%eax
cmp    -0x14(%rbp),%eax
setle  %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x14(%rbp),%eax
mov    -0x8(%rbp),%ecx
add    $0x1,%ecx
cmp    %ecx,%eax
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <__VERIFIER_assert@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1184 <main+0x64>
jmp    11cd <main+0xad>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
lea    -0x7fffffff(%rbx),%eax
cmp    $0x80000002,%eax
jb     1159 <main+0x39>
add    $0x1,%ebx
nopw   0x0(%rax,%rax,1)
mov    $0x1,%edi
call   1040 <__VERIFIER_assert@plt>
mov    $0x1,%edi
call   1040 <__VERIFIER_assert@plt>
add    $0xffffffff,%ebx
jne    1140 <main+0x20>
xor    %eax,%eax
pop    %rbx
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 i32
store i32 0, i32* %1
%8 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %8, i32* %2
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %0
%12 = load i32, i32* %2
%13 = icmp slt i32 %12, 2147483647
br i1 %13, label %14, label %15
14: ; preds = %11
br label %16
15: ; preds = %11, %0
br label %44
16: ; preds = %14
store i32 0, i32* %3
%17 = load i32, i32* %3
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
%20 = add nsw i32 %17, %19
%21 = sub nsw i32 %20, 1
store i32 %21, i32* %4
%22 = load i32, i32* %3
store i32 %22, i32* %6
%23 = load i32, i32* %4
store i32 %23, i32* %7
%24 = load i32, i32* %6
store i32 %24, i32* %5
br label %25
25: ; preds = %40, %16
%26 = load i32, i32* %5
%27 = load i32, i32* %7
%28 = icmp sle i32 %26, %27
br i1 %28, label %29, label %43
29: ; preds = %25
%30 = load i32, i32* %5
%31 = icmp sle i32 0, %30
%32 = zext i1 %31 to i32
%33 = call i32 @__VERIFIER_assert(i32 %32)
%34 = load i32, i32* %5
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 1
%37 = icmp slt i32 %34, %36
%38 = zext i1 %37 to i32
%39 = call i32 @__VERIFIER_assert(i32 %38)
br label %40
40: ; preds = %29
%41 = load i32, i32* %5
%42 = add nsw i32 %41, 1
store i32 %42, i32* %5
br label %25
43: ; preds = %25
br label %44
44: ; preds = %43, %15
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = add i32 %1, -2147483647
%3 = icmp ult i32 %2, -2147483646
br i1 %3, label %10, label %4
4: ; preds = %0, %4
%5 = phi i32 [ %8, %4 ], [ 0, %0 ]
%6 = tail call i32 @__VERIFIER_assert(i32 1)
%7 = tail call i32 @__VERIFIER_assert(i32 1)
%8 = add nuw i32 %5, 1
%9 = icmp eq i32 %5, %1
br i1 %9, label %10, label %4
10: ; preds = %4, %0
ret i32 0
}