#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 __VERIFIER_nondet_int();
int main() {
  signed int a = __VERIFIER_nondet_int();
  signed int b = __VERIFIER_nondet_int();
  if (a > 10) {
    if (b >= 10) {
      a = b + 5;
      b--;
      if (b <= 9 && a <= 30) {
        b++;
        if (b != 10) {
        ERROR:
          return -1;
        }
      }
    }
  }
}


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)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
cmpl   $0xa,-0x8(%rbp)
jle    11a0 <main+0x90>
cmpl   $0xa,-0xc(%rbp)
jl     119b <main+0x8b>
mov    -0xc(%rbp),%eax
add    $0x5,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     1196 <main+0x86>
cmpl   $0x1e,-0x8(%rbp)
jg     1196 <main+0x86>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
je     1191 <main+0x81>
jmp    1185 <main+0x75>
movl   $0xffffffff,-0x4(%rbp)
jmp    11a0 <main+0x90>
jmp    1196 <main+0x86>
jmp    119b <main+0x8b>
jmp    11a0 <main+0x90>
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>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
cmp    $0xb,%ebx
setge  %cl
cmp    $0xa,%eax
setge  %dl
setne  %bl
and    %cl,%dl
cmp    $0xb,%eax
setl   %al
and    %bl,%al
and    %dl,%al
movzbl %al,%eax
neg    %eax
pop    %rbx
ret

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

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (...) @__VERIFIER_nondet_int()
%2 = tail call i32 (...) @__VERIFIER_nondet_int()
%3 = icmp sgt i32 %1, 10
%4 = icmp sgt i32 %2, 9
%5 = select i1 %3, i1 %4, i1 false
%6 = icmp slt i32 %2, 11
%7 = select i1 %5, i1 %6, i1 false
%8 = icmp ne i32 %2, 10
%9 = select i1 %7, i1 %8, i1 false
%10 = sext i1 %9 to i32
ret i32 %10
}