#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)
    ;
  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    1148 <main+0x28>
jmp    114d <main+0x2d>
jmp    11c0 <main+0xa0>
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     11bb <main+0x9b>
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    1177 <main+0x57>
jmp    11c0 <main+0xa0>
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>
test   %eax,%eax
jle    1159 <main+0x39>
mov    %eax,%ebx
add    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   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 %12
11: ; preds = %0
br label %13
12: ; preds = %0
br label %41
13: ; preds = %11
store i32 0, i32* %3
%14 = load i32, i32* %3
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
%17 = add nsw i32 %14, %16
%18 = sub nsw i32 %17, 1
store i32 %18, i32* %4
%19 = load i32, i32* %3
store i32 %19, i32* %6
%20 = load i32, i32* %4
store i32 %20, i32* %7
%21 = load i32, i32* %6
store i32 %21, i32* %5
br label %22
22: ; preds = %37, %13
%23 = load i32, i32* %5
%24 = load i32, i32* %7
%25 = icmp sle i32 %23, %24
br i1 %25, label %26, label %40
26: ; preds = %22
%27 = load i32, i32* %5
%28 = icmp sle i32 0, %27
%29 = zext i1 %28 to i32
%30 = call i32 @__VERIFIER_assert(i32 %29)
%31 = load i32, i32* %5
%32 = load i32, i32* %2
%33 = add nsw i32 %32, 1
%34 = icmp slt i32 %31, %33
%35 = zext i1 %34 to i32
%36 = call i32 @__VERIFIER_assert(i32 %35)
br label %37
37: ; preds = %26
%38 = load i32, i32* %5
%39 = add nsw i32 %38, 1
store i32 %39, i32* %5
br label %22
40: ; preds = %22
br label %41
41: ; preds = %40, %12
ret i32 0
}

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