about summary refs log tree commit diff homepage
path: root/runtime/Intrinsic/klee_div_zero_check.c
blob: 36cf88074bd8f3c42a19160bd46ef75e8bfba8bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//===-- klee_div_zero_check.c ---------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

#include "klee/klee.h"

void klee_div_zero_check(long long z) {
  if (z == 0)
    klee_report_error(__FILE__, __LINE__, "divide by zero", "div.err");
}