#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 gcd(int, int);
int main() {
  int m = __VERIFIER_nondet_int();
  if (m <= 0 || m > 2147483647) {
    return 0;
  }
  int n = __VERIFIER_nondet_int();
  if (n <= 0 || n > 2147483647) {
    return 0;
  }
  int z = gcd(m, n);
  if (z < 1 && m > 0 && n > 0) {
  ERROR:
    __VERIFIER_error();
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jle    1160 <main+0x30>
cmpl   $0x7fffffff,-0x8(%rbp)
jle    116c <main+0x3c>
movl   $0x0,-0x4(%rbp)
jmp    11dd <main+0xad>
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
jle    118d <main+0x5d>
cmpl   $0x7fffffff,-0xc(%rbp)
jle    1199 <main+0x69>
movl   $0x0,-0x4(%rbp)
jmp    11dd <main+0xad>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1050 <gcd@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x1,-0x10(%rbp)
jge    11d6 <main+0xa6>
cmpl   $0x0,-0x8(%rbp)
jle    11d6 <main+0xa6>
cmpl   $0x0,-0xc(%rbp)
jle    11d6 <main+0xa6>
jmp    11ca <main+0x9a>
mov    $0x0,%al
call   1040 <__VERIFIER_error@plt>
jmp    11dd <main+0xad>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jle    115d <main+0x2d>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
test   %eax,%eax
jle    115d <main+0x2d>
mov    %ebx,%edi
mov    %eax,%esi
call   1050 <gcd@plt>
test   %eax,%eax
jg     115d <main+0x2d>
xor    %eax,%eax
call   1040 <__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 sle i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %0
%9 = load i32, i32* %2
%10 = icmp sgt i32 %9, 2147483647
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 sle i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i32, i32* %3
%18 = icmp sgt i32 %17, 2147483647
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 @gcd(i32 %21, i32 %22)
store i32 %23, i32* %4
%24 = load i32, i32* %4
%25 = icmp slt i32 %24, 1
br i1 %25, label %26, label %35
26: ; preds = %20
%27 = load i32, i32* %2
%28 = icmp sgt i32 %27, 0
br i1 %28, label %29, label %35
29: ; preds = %26
%30 = load i32, i32* %3
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %35
32: ; preds = %29
br label %33
33: ; preds = %32
%34 = call i32 (...) @__VERIFIER_error()
br label %36
35: ; preds = %29, %26, %20
store i32 0, i32* %1
br label %36
36: ; preds = %11, %19, %35, %33
%37 = load i32, i32* %1
ret i32 %37
}

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