main() {
  int x, y, d;
  while (x > 0 && y > 0 && d > 0) {
    _Bool c = nondet_bool();
    if (c) {
      x = x - 1;
      d = nondet_int();
    } else {
      x = nondet_int();
      y = y - 1;
      d = d - 1;
    }
  }
  assert(!(x > 0 && y > 0 && d > 0));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x12(%rbp)
jle    1167 <main+0x37>
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x12(%rbp)
jle    1167 <main+0x37>
cmpl   $0x0,-0x10(%rbp)
setg   %al
mov    %al,-0x12(%rbp)
mov    -0x12(%rbp),%al
test   $0x1,%al
jne    1177 <main+0x47>
jmp    11cc <main+0x9c>
mov    $0x0,%al
call   1050 <nondet_bool@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x11(%rbp)
testb  $0x1,-0x11(%rbp)
je     11ab <main+0x7b>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x10(%rbp)
jmp    11c7 <main+0x97>
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    113f <main+0xf>
xor    %eax,%eax
cmpl   $0x0,-0x8(%rbp)
mov    %al,-0x13(%rbp)
jle    11f4 <main+0xc4>
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x13(%rbp)
jle    11f4 <main+0xc4>
cmpl   $0x0,-0x10(%rbp)
setg   %al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1040 <assert@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
xor    %eax,%eax
call   1030 <assert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8
store i32 0, i32* %1
br label %6
6: ; preds = %33, %0
%7 = load i32, i32* %2
%8 = icmp sgt i32 %7, 0
br i1 %8, label %9, label %15
9: ; preds = %6
%10 = load i32, i32* %3
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %9
%13 = load i32, i32* %4
%14 = icmp sgt i32 %13, 0
br label %15
15: ; preds = %12, %9, %6
%16 = phi i1 [ false, %9 ], [ false, %6 ], [ %14, %12 ]
br i1 %16, label %17, label %34
17: ; preds = %15
%18 = call i32 (...) @nondet_bool()
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i8
store i8 %20, i8* %5
%21 = load i8, i8* %5
%22 = trunc i8 %21 to i1
br i1 %22, label %23, label %27
23: ; preds = %17
%24 = load i32, i32* %2
%25 = sub nsw i32 %24, 1
store i32 %25, i32* %2
%26 = call i32 (...) @nondet_int()
store i32 %26, i32* %4
br label %33
27: ; preds = %17
%28 = call i32 (...) @nondet_int()
store i32 %28, i32* %2
%29 = load i32, i32* %3
%30 = sub nsw i32 %29, 1
store i32 %30, i32* %3
%31 = load i32, i32* %4
%32 = sub nsw i32 %31, 1
store i32 %32, i32* %4
br label %33
33: ; preds = %27, %23
br label %6
34: ; preds = %15
%35 = load i32, i32* %2
%36 = icmp sgt i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %34
%38 = load i32, i32* %3
%39 = icmp sgt i32 %38, 0
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, i32* %4
%42 = icmp sgt i32 %41, 0
br label %43
43: ; preds = %40, %37, %34
%44 = phi i1 [ false, %37 ], [ false, %34 ], [ %42, %40 ]
%45 = xor i1 %44, true
%46 = zext i1 %45 to i32
%47 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %46)
%48 = load i32, i32* %1
ret i32 %48
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 1)
ret i32 0
}