about summary refs log tree commit diff homepage
path: root/test/regression/2020-01-14-fabs-compare.c
blob: 563a66099a380e9cde2f0fc8beb9b627579ea12e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang %s -emit-llvm %O0opt -g -c -o %t.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --exit-on-error --output-dir=%t.klee-out %t.bc

#include <math.h>
#include <assert.h>

int main(void) {
  long double a = 0.25;
  long double b = -a;

  long double b_abs = fabsl(b);

  assert(a == b_abs);
  return 0;
}