#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_error();
int __VERIFIER_nondet_int();
int ackermann(int, int);
int main() {
  int m = __VERIFIER_nondet_int();
  if (m < 0 || m > 3) {
    return 0;
  }
  int n = __VERIFIER_nondet_int();
  if (n < 0 || n > 23) {
    return 0;
  }
  int result = ackermann(m, n);
  if (m < 0 || n < 0 || result >= 0) {
    return 0;
  } else {
  ERROR:
    __VERIFIER_error();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     115d <main+0x2d>
cmpl   $0x3,-0x8(%rbp)
jle    1169 <main+0x39>
movl   $0x0,-0x4(%rbp)
jmp    11d7 <main+0xa7>
mov    $0x0,%al
call   1040 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jl     1187 <main+0x57>
cmpl   $0x17,-0xc(%rbp)
jle    1193 <main+0x63>
movl   $0x0,-0x4(%rbp)
jmp    11d7 <main+0xa7>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <ackermann@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x0,-0x8(%rbp)
jl     11bf <main+0x8f>
cmpl   $0x0,-0xc(%rbp)
jl     11bf <main+0x8f>
cmpl   $0x0,-0x10(%rbp)
jl     11cb <main+0x9b>
movl   $0x0,-0x4(%rbp)
jmp    11d7 <main+0xa7>
jmp    11d0 <main+0xa0>
mov    $0x0,%al
call   1050 <__VERIFIER_error@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x3,%eax
ja     115f <main+0x2f>
mov    %eax,%ebx
xor    %eax,%eax
call   1040 <__VERIFIER_nondet_int@plt>
cmp    $0x17,%eax
ja     115f <main+0x2f>
mov    %ebx,%edi
mov    %eax,%esi
call   1030 <ackermann@plt>
test   %eax,%eax
jns    115f <main+0x2f>
xor    %eax,%eax
call   1050 <__VERIFIER_error@plt>
xor    %eax,%eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = icmp ugt i32 %1, 3
br i1 %2, label %11, label %3
3: ; preds = %0
%4 = tail call i32 (...) @__VERIFIER_nondet_int()
%5 = icmp ugt i32 %4, 23
br i1 %5, label %11, label %6
6: ; preds = %3
%7 = tail call i32 @ackermann(i32 %1, i32 %4)
%8 = icmp sgt i32 %7, -1
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 (...) @__VERIFIER_error()
br label %11
11: ; preds = %3, %6, %9, %0
ret i32 0
}