#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*/ branches();
int /*<<< orphan*/ call();
int /*<<< orphan*/ error();
int /*<<< orphan*/ functions();
int /*<<< orphan*/ make();
scalar_t__ nondet();
int /*<<< orphan*/ other();
int /*<<< orphan*/ proceed();
int /*<<< orphan*/ some();
int /*<<< orphan*/ to();
int /*<<< orphan*/ useless();
int main() {
  int a, b, z;
  if (nondet()) {
    a = 10;
    b = 1;
  } else {
    if (nondet()) {
      a = 1;
      b = 10;
    } else {
      a = 1;
      b = 1;
      call();
      some();
      useless();
      functions();
      to();
      make();
      other();
      branches();
      proceed();
    }
  }
  z = 10;
  if (a == 1 && b == 1)
    error();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <nondet@plt>
cmp    $0x0,%rax
je     11e3 <main+0x33>
movl   $0xa,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
jmp    1259 <main+0xa9>
mov    $0x0,%al
call   1060 <nondet@plt>
cmp    $0x0,%rax
je     1207 <main+0x57>
movl   $0x1,-0x8(%rbp)
movl   $0xa,-0xc(%rbp)
jmp    1254 <main+0xa4>
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    $0x0,%al
call   10b0 <call@plt>
mov    $0x0,%al
call   1080 <some@plt>
mov    $0x0,%al
call   1030 <useless@plt>
mov    $0x0,%al
call   1070 <functions@plt>
mov    $0x0,%al
call   1040 <to@plt>
mov    $0x0,%al
call   10c0 <make@plt>
mov    $0x0,%al
call   1050 <other@plt>
mov    $0x0,%al
call   10d0 <branches@plt>
mov    $0x0,%al
call   10a0 <proceed@plt>
jmp    1259 <main+0xa9>
movl   $0xa,-0x10(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    127b <main+0xcb>
cmpl   $0x1,-0xc(%rbp)
jne    127b <main+0xcb>
mov    $0x0,%al
call   1090 <error@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1060 <nondet@plt>
test   %rax,%rax
jne    120f <main+0x5f>
xor    %eax,%eax
call   1060 <nondet@plt>
test   %rax,%rax
jne    120f <main+0x5f>
xor    %eax,%eax
call   10b0 <call@plt>
xor    %eax,%eax
call   1080 <some@plt>
xor    %eax,%eax
call   1030 <useless@plt>
xor    %eax,%eax
call   1070 <functions@plt>
xor    %eax,%eax
call   1040 <to@plt>
xor    %eax,%eax
call   10c0 <make@plt>
xor    %eax,%eax
call   1050 <other@plt>
xor    %eax,%eax
call   10d0 <branches@plt>
xor    %eax,%eax
call   10a0 <proceed@plt>
xor    %eax,%eax
call   1090 <error@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
store i32 0, i32* %1
%5 = call i64 (...) @nondet()
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %0
store i32 10, i32* %2
store i32 1, i32* %3
br label %23
8: ; preds = %0
%9 = call i64 (...) @nondet()
%10 = icmp ne i64 %9, 0
br i1 %10, label %11, label %12
11: ; preds = %8
store i32 1, i32* %2
store i32 10, i32* %3
br label %22
12: ; preds = %8
store i32 1, i32* %2
store i32 1, i32* %3
%13 = call i32 (...) @call()
%14 = call i32 (...) @some()
%15 = call i32 (...) @useless()
%16 = call i32 (...) @functions()
%17 = call i32 (...) @to()
%18 = call i32 (...) @make()
%19 = call i32 (...) @other()
%20 = call i32 (...) @branches()
%21 = call i32 (...) @proceed()
br label %22
22: ; preds = %12, %11
br label %23
23: ; preds = %22, %7
store i32 10, i32* %4
%24 = load i32, i32* %2
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %31
26: ; preds = %23
%27 = load i32, i32* %3
%28 = icmp eq i32 %27, 1
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 (...) @error()
br label %31
31: ; preds = %29, %26, %23
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i64 (...) @nondet()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %17
3: ; preds = %0
%4 = tail call i64 (...) @nondet()
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %17
6: ; preds = %3
%7 = tail call i32 (...) @call()
%8 = tail call i32 (...) @some()
%9 = tail call i32 (...) @useless()
%10 = tail call i32 (...) @functions()
%11 = tail call i32 (...) @to()
%12 = tail call i32 (...) @make()
%13 = tail call i32 (...) @other()
%14 = tail call i32 (...) @branches()
%15 = tail call i32 (...) @proceed()
%16 = tail call i32 (...) @error()
br label %17
17: ; preds = %3, %0, %6
ret i32 0
}