#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 */
typedef int /*<<< orphan*/ d;
typedef int /*<<< orphan*/ c;
typedef int /*<<< orphan*/ b;
typedef int /*<<< orphan*/ a;

/* Variables and functions */
int /*<<< orphan*/ klee_make_symbolic(int *, int, char *);
int /*<<< orphan*/ printf(char *, int);
int main() {
  int e = 0;
  int a = 0, b = 0, c = 0, d = 0;
  klee_make_symbolic(&a, sizeof(a), "a");
  klee_make_symbolic(&b, sizeof(b), "b");
  klee_make_symbolic(&c, sizeof(c), "c");
  klee_make_symbolic(&d, sizeof(d), "d");
  if (a > 10) {
    e += 0;
    if (3 * b + 27 == 300) {
      e += 0;
    } else if (a + b > 24) {
      e += 1;
    } else if (b < 500) {
      e += 2;
    } else if (b < 300) {
      e += 3;
    }
  } else if (d > 0) {
    e += 4;
    if (d < a) {
      e += 0;
    } else if (c + 10 < d) {
      e += 1;
    } else {
      e += 2;
    }
  } else {
    e += 7;
    if (a + 3 * b < 2 * c + d) {
      e += 0;
    } else {
      e += 1;
    }
  }
  printf("%d\n", e);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0xc(%rbp),%rdi
mov    $0x4,%esi
lea    0xe9e(%rip),%rdx
call   1040 <klee_make_symbolic@plt>
lea    -0x10(%rbp),%rdi
mov    $0x4,%esi
lea    0xe8b(%rip),%rdx
call   1040 <klee_make_symbolic@plt>
lea    -0x14(%rbp),%rdi
mov    $0x4,%esi
lea    0xe78(%rip),%rdx
call   1040 <klee_make_symbolic@plt>
lea    -0x18(%rbp),%rdi
mov    $0x4,%esi
lea    0xe65(%rip),%rdx
call   1040 <klee_make_symbolic@plt>
cmpl   $0xa,-0xc(%rbp)
jle    123b <main+0x11b>
mov    -0x8(%rbp),%eax
add    $0x0,%eax
mov    %eax,-0x8(%rbp)
imul   $0x3,-0x10(%rbp),%eax
add    $0x1b,%eax
cmp    $0x12c,%eax
jne    11d9 <main+0xb9>
mov    -0x8(%rbp),%eax
add    $0x0,%eax
mov    %eax,-0x8(%rbp)
jmp    1236 <main+0x116>
mov    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
cmp    $0x18,%eax
jle    11f6 <main+0xd6>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1231 <main+0x111>
cmpl   $0x1f4,-0x10(%rbp)
jge    1211 <main+0xf1>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    122c <main+0x10c>
cmpl   $0x12c,-0x10(%rbp)
jge    1227 <main+0x107>
mov    -0x8(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x8(%rbp)
jmp    122c <main+0x10c>
jmp    1231 <main+0x111>
jmp    1236 <main+0x116>
jmp    12dc <main+0x1bc>
cmpl   $0x0,-0x18(%rbp)
jle    1298 <main+0x178>
mov    -0x8(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x8(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1268 <main+0x148>
mov    -0x8(%rbp),%eax
add    $0x0,%eax
mov    %eax,-0x8(%rbp)
jmp    1293 <main+0x173>
mov    -0x14(%rbp),%eax
add    $0xa,%eax
cmp    -0x18(%rbp),%eax
jge    1285 <main+0x165>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    128e <main+0x16e>
mov    -0x8(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x8(%rbp)
jmp    1293 <main+0x173>
jmp    12d7 <main+0x1b7>
mov    -0x8(%rbp),%eax
add    $0x7,%eax
mov    %eax,-0x8(%rbp)
mov    -0xc(%rbp),%eax
imul   $0x3,-0x10(%rbp),%ecx
add    %ecx,%eax
mov    -0x14(%rbp),%ecx
shl    $0x1,%ecx
add    -0x18(%rbp),%ecx
cmp    %ecx,%eax
jge    12c9 <main+0x1a9>
mov    -0x8(%rbp),%eax
add    $0x0,%eax
mov    %eax,-0x8(%rbp)
jmp    12d2 <main+0x1b2>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12d7 <main+0x1b7>
jmp    12dc <main+0x1bc>
mov    -0x8(%rbp),%esi
lea    0xd22(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movl   $0x0,0x14(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x10(%rsp)
lea    0xeb5(%rip),%rdx
lea    0x14(%rsp),%rdi
mov    $0x4,%esi
call   1040 <klee_make_symbolic@plt>
lea    0xea1(%rip),%rdx
lea    0xc(%rsp),%rdi
mov    $0x4,%esi
call   1040 <klee_make_symbolic@plt>
lea    0xe8d(%rip),%rdx
lea    0x8(%rsp),%rdi
mov    $0x4,%esi
call   1040 <klee_make_symbolic@plt>
lea    0xe79(%rip),%rdx
lea    0x10(%rsp),%rdi
mov    $0x4,%esi
call   1040 <klee_make_symbolic@plt>
mov    0x14(%rsp),%eax
cmp    $0xb,%eax
jl     11cc <main+0xac>
mov    0xc(%rsp),%ecx
xor    %esi,%esi
cmp    $0x5b,%ecx
je     1212 <main+0xf2>
add    %ecx,%eax
mov    $0x1,%esi
cmp    $0x18,%eax
jg     1212 <main+0xf2>
xor    %esi,%esi
cmp    $0x1f4,%ecx
setl   %sil
add    %esi,%esi
jmp    1212 <main+0xf2>
mov    0x10(%rsp),%ecx
test   %ecx,%ecx
jle    11f4 <main+0xd4>
mov    $0x4,%esi
cmp    %eax,%ecx
jl     1212 <main+0xf2>
mov    0x8(%rsp),%eax
add    $0xa,%eax
xor    %edx,%edx
cmp    %ecx,%eax
setl   %dl
mov    $0x6,%esi
sub    %edx,%esi
jmp    1212 <main+0xf2>
mov    0xc(%rsp),%edx
lea    (%rdx,%rdx,2),%edx
add    %eax,%edx
mov    0x8(%rsp),%eax
lea    (%rcx,%rax,2),%eax
xor    %ecx,%ecx
cmp    %eax,%edx
setl   %cl
mov    $0x8,%esi
sub    %ecx,%esi
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@.str.2 = [2 x i8] c"c\00"
@.str.3 = [2 x i8] c"d\00"
@.str.4 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
%7 = call i32 @klee_make_symbolic(i32* %3, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @klee_make_symbolic(i32* %4, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @klee_make_symbolic(i32* %5, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @klee_make_symbolic(i32* %6, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%11 = load i32, i32* %3
%12 = icmp sgt i32 %11, 10
br i1 %12, label %13, label %47
13: ; preds = %0
%14 = load i32, i32* %2
%15 = add nsw i32 %14, 0
store i32 %15, i32* %2
%16 = load i32, i32* %4
%17 = mul nsw i32 3, %16
%18 = add nsw i32 %17, 27
%19 = icmp eq i32 %18, 300
br i1 %19, label %20, label %23
20: ; preds = %13
%21 = load i32, i32* %2
%22 = add nsw i32 %21, 0
store i32 %22, i32* %2
br label %46
23: ; preds = %13
%24 = load i32, i32* %3
%25 = load i32, i32* %4
%26 = add nsw i32 %24, %25
%27 = icmp sgt i32 %26, 24
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
br label %45
31: ; preds = %23
%32 = load i32, i32* %4
%33 = icmp slt i32 %32, 500
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32, i32* %2
%36 = add nsw i32 %35, 2
store i32 %36, i32* %2
br label %44
37: ; preds = %31
%38 = load i32, i32* %4
%39 = icmp slt i32 %38, 300
br i1 %39, label %40, label %43
40: ; preds = %37
%41 = load i32, i32* %2
%42 = add nsw i32 %41, 3
store i32 %42, i32* %2
br label %43
43: ; preds = %40, %37
br label %44
44: ; preds = %43, %34
br label %45
45: ; preds = %44, %28
br label %46
46: ; preds = %45, %20
br label %92
47: ; preds = %0
%48 = load i32, i32* %6
%49 = icmp sgt i32 %48, 0
br i1 %49, label %50, label %72
50: ; preds = %47
%51 = load i32, i32* %2
%52 = add nsw i32 %51, 4
store i32 %52, i32* %2
%53 = load i32, i32* %6
%54 = load i32, i32* %3
%55 = icmp slt i32 %53, %54
br i1 %55, label %56, label %59
56: ; preds = %50
%57 = load i32, i32* %2
%58 = add nsw i32 %57, 0
store i32 %58, i32* %2
br label %71
59: ; preds = %50
%60 = load i32, i32* %5
%61 = add nsw i32 %60, 10
%62 = load i32, i32* %6
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %67
64: ; preds = %59
%65 = load i32, i32* %2
%66 = add nsw i32 %65, 1
store i32 %66, i32* %2
br label %70
67: ; preds = %59
%68 = load i32, i32* %2
%69 = add nsw i32 %68, 2
store i32 %69, i32* %2
br label %70
70: ; preds = %67, %64
br label %71
71: ; preds = %70, %56
br label %91
72: ; preds = %47
%73 = load i32, i32* %2
%74 = add nsw i32 %73, 7
store i32 %74, i32* %2
%75 = load i32, i32* %3
%76 = load i32, i32* %4
%77 = mul nsw i32 3, %76
%78 = add nsw i32 %75, %77
%79 = load i32, i32* %5
%80 = mul nsw i32 2, %79
%81 = load i32, i32* %6
%82 = add nsw i32 %80, %81
%83 = icmp slt i32 %78, %82
br i1 %83, label %84, label %87
84: ; preds = %72
%85 = load i32, i32* %2
%86 = add nsw i32 %85, 0
store i32 %86, i32* %2
br label %90
87: ; preds = %72
%88 = load i32, i32* %2
%89 = add nsw i32 %88, 1
store i32 %89, i32* %2
br label %90
90: ; preds = %87, %84
br label %91
91: ; preds = %90, %71
br label %92
92: ; preds = %91, %46
%93 = load i32, i32* %2
%94 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %93)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@.str.2 = [2 x i8] c"c\00"
@.str.3 = [2 x i8] c"d\00"
@.str.4 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%6 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%7 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%8 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%9 = call i32 @klee_make_symbolic(i32* %1, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%10 = call i32 @klee_make_symbolic(i32* %2, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @klee_make_symbolic(i32* %3, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @klee_make_symbolic(i32* %4, i32 4, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32, i32* %1
%14 = icmp sgt i32 %13, 10
br i1 %14, label %15, label %24
15: ; preds = %0
%16 = load i32, i32* %2
%17 = icmp eq i32 %16, 91
br i1 %17, label %43, label %18
18: ; preds = %15
%19 = add nsw i32 %16, %13
%20 = icmp sgt i32 %19, 24
br i1 %20, label %43, label %21
21: ; preds = %18
%22 = icmp slt i32 %16, 500
%23 = select i1 %22, i32 2, i32 0
br label %43
24: ; preds = %0
%25 = load i32, i32* %4
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %34
27: ; preds = %24
%28 = icmp slt i32 %25, %13
br i1 %28, label %43, label %29
29: ; preds = %27
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 10
%32 = icmp slt i32 %31, %25
%33 = select i1 %32, i32 5, i32 6
br label %43
34: ; preds = %24
%35 = load i32, i32* %2
%36 = mul nsw i32 %35, 3
%37 = add nsw i32 %36, %13
%38 = load i32, i32* %3
%39 = shl nsw i32 %38, 1
%40 = add nsw i32 %39, %25
%41 = icmp slt i32 %37, %40
%42 = select i1 %41, i32 7, i32 8
br label %43
43: ; preds = %34, %29, %27, %21, %18, %15
%44 = phi i32 [ 0, %15 ], [ 1, %18 ], [ %23, %21 ], [ 4, %27 ], [ %33, %29 ], [ %42, %34 ]
%45 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i32 %44)
ret i32 0
}