main() {
  int x, y, z;
  while (x > 0 && y > 0 && z > 0) {
    _Bool c1 = nondet_bool();
    _Bool c2 = nondet_bool();
    if (c1) {
      x = x - 1;
    } else if (c2) {
      y = y - 1;
      z = nondet_int();
    } else {
      z = z - 1;
      x = nondet_int();
    }
  }
  assert(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,-0x13(%rbp)
jle    1167 <main+0x37>
xor    %eax,%eax
cmpl   $0x0,-0xc(%rbp)
mov    %al,-0x13(%rbp)
jle    1167 <main+0x37>
cmpl   $0x0,-0x10(%rbp)
setg   %al
mov    %al,-0x13(%rbp)
mov    -0x13(%rbp),%al
test   $0x1,%al
jne    1177 <main+0x47>
jmp    11f2 <main+0xc2>
mov    $0x0,%al
call   1050 <nondet_bool@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x11(%rbp)
mov    $0x0,%al
call   1050 <nondet_bool@plt>
cmp    $0x0,%eax
setne  %al
and    $0x1,%al
mov    %al,-0x12(%rbp)
testb  $0x1,-0x11(%rbp)
je     11b3 <main+0x83>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    11ed <main+0xbd>
testb  $0x1,-0x12(%rbp)
je     11d5 <main+0xa5>
mov    -0xc(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x10(%rbp)
jmp    11e8 <main+0xb8>
mov    -0x10(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <nondet_int@plt>
mov    %eax,-0x8(%rbp)
jmp    11ed <main+0xbd>
jmp    113f <main+0xf>
xor    %edi,%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
xor    %edi,%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
%6 = alloca i8
store i32 0, i32* %1
br label %7
7: ; preds = %42, %0
%8 = load i32, i32* %2
%9 = icmp sgt i32 %8, 0
br i1 %9, label %10, label %16
10: ; preds = %7
%11 = load i32, i32* %3
%12 = icmp sgt i32 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %4
%15 = icmp sgt i32 %14, 0
br label %16
16: ; preds = %13, %10, %7
%17 = phi i1 [ false, %10 ], [ false, %7 ], [ %15, %13 ]
br i1 %17, label %18, label %43
18: ; preds = %16
%19 = call i32 (...) @nondet_bool()
%20 = icmp ne i32 %19, 0
%21 = zext i1 %20 to i8
store i8 %21, i8* %5
%22 = call i32 (...) @nondet_bool()
%23 = icmp ne i32 %22, 0
%24 = zext i1 %23 to i8
store i8 %24, i8* %6
%25 = load i8, i8* %5
%26 = trunc i8 %25 to i1
br i1 %26, label %27, label %30
27: ; preds = %18
%28 = load i32, i32* %2
%29 = sub nsw i32 %28, 1
store i32 %29, i32* %2
br label %42
30: ; preds = %18
%31 = load i8, i8* %6
%32 = trunc i8 %31 to i1
br i1 %32, label %33, label %37
33: ; preds = %30
%34 = load i32, i32* %3
%35 = sub nsw i32 %34, 1
store i32 %35, i32* %3
%36 = call i32 (...) @nondet_int()
store i32 %36, i32* %4
br label %41
37: ; preds = %30
%38 = load i32, i32* %4
%39 = sub nsw i32 %38, 1
store i32 %39, i32* %4
%40 = call i32 (...) @nondet_int()
store i32 %40, i32* %2
br label %41
41: ; preds = %37, %33
br label %42
42: ; preds = %41, %27
br label %7
43: ; preds = %16
%44 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 0)
%45 = load i32, i32* %1
ret i32 %45
}

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