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

/* Variables and functions */
int /*<<< orphan*/ abort();
int /*<<< orphan*/ klee_make_symbolic(double *, int, char *);
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  double a = 0.0, b = -0.25;
  klee_make_symbolic(&a, sizeof(a), "a");
  klee_make_symbolic(&b, sizeof(b), "b");
  if ((8 * a * a) + (4 * b) + 1 == 0) {
    printf("KLEE should not be able to get here\n");
    abort();
  } else {
    printf("KLEE is not very smart\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xec2(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
lea    -0x18(%rbp),%rdi
mov    $0x8,%esi
lea    0xeb5(%rip),%rdx
call   1050 <klee_make_symbolic@plt>
lea    -0x20(%rbp),%rdi
mov    $0x8,%esi
lea    0xea2(%rip),%rdx
call   1050 <klee_make_symbolic@plt>
movsd  0xe83(%rip),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xe69(%rip),%xmm1
mulsd  -0x20(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe4c(%rip),%xmm1
addsd  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11de <main+0xae>
jp     11de <main+0xae>
lea    0xe52(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <abort@plt>
lea    0xe64(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
movq   $0x0,0x10(%rsp)
movabs $0xbfd0000000000000,%rax
mov    %rax,0x8(%rsp)
lea    0xec5(%rip),%rdx
lea    0x10(%rsp),%rdi
mov    $0x8,%esi
call   1050 <klee_make_symbolic@plt>
lea    0xeb1(%rip),%rdx
lea    0x8(%rsp),%rdi
mov    $0x8,%esi
call   1050 <klee_make_symbolic@plt>
movsd  0x10(%rsp),%xmm0
movsd  0xe7a(%rip),%xmm1
mulsd  %xmm0,%xmm1
movsd  0x8(%rsp),%xmm2
mulsd  0xe70(%rip),%xmm2
mulsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
addsd  0xe68(%rip),%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jne    11b4 <main+0x84>
jnp    11c7 <main+0x97>
lea    0xe61(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret
lea    0xe65(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@.str.2 = [37 x i8] c"KLEE should not be able to get here\0A\00"
@.str.3 = [24 x i8] c"KLEE is not very smart\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca double
%7 = alloca double
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store double 0.000000e+00, double* %6
store double -2.500000e-01, double* %7
%8 = call i32 @klee_make_symbolic(double* %6, i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @klee_make_symbolic(double* %7, i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = load double, double* %6
%11 = fmul double 8.000000e+00, %10
%12 = load double, double* %6
%13 = load double, double* %7
%14 = fmul double 4.000000e+00, %13
%15 = call double @llvm.fmuladd.f64(double %11, double %12, double %14)
%16 = fadd double %15, 1.000000e+00
%17 = fcmp oeq double %16, 0.000000e+00
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 (...) @abort()
unreachable
21: ; preds = %2
%22 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"a\00"
@.str.1 = [2 x i8] c"b\00"
@str = [23 x i8] c"KLEE is not very smart\00"
@str.4 = [36 x i8] c"KLEE should not be able to get here\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca double
%4 = alloca double
%5 = bitcast double* %3 to i8*
store double 0.000000e+00, double* %3
%6 = bitcast double* %4 to i8*
store double -2.500000e-01, double* %4
%7 = call i32 @klee_make_symbolic(double* %3, i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = call i32 @klee_make_symbolic(double* %4, i32 8, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = load double, double* %3
%10 = fmul double %9, 8.000000e+00
%11 = load double, double* %4
%12 = fmul double %11, 4.000000e+00
%13 = call double @llvm.fmuladd.f64(double %10, double %9, double %12)
%14 = fadd double %13, 1.000000e+00
%15 = fcmp oeq double %14, 0.000000e+00
br i1 %15, label %16, label %19
16: ; preds = %2
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.4, i64 0, i64 0))
%18 = call i32 (...) @abort()
unreachable
19: ; preds = %2
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
ret i32 0
}