about summary refs log tree commit diff homepage
path: root/test/regression/2020-04-11-batching-search-zero-time-budget.c
blob: 46043f31d5ae387a979ede11e8f7917aaafe5aa9 (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 --output-dir=%t.klee-out --use-batching-search --batch-time=0 --batch-instructions=1 %t.bc 2>&1 | FileCheck %s

#include <time.h>

#include "klee/klee.h"

int main(void) {
  for (int i = 0; i < 10; ++i) {
    struct timespec ts = {.tv_sec = 0, .tv_nsec = 10000000}; // 10 ms
    nanosleep(&ts, NULL);
  }
  // CHECK-NOT: increased time budget
  return 0;
}