about summary refs log tree commit diff homepage
path: root/test/regression/2007-07-25-invalid-stp-array-binding-to-objectstate.c
blob: ac32063cbc07b3e5f1a2755ec579e84d540499ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: %clang %s -emit-llvm %O0opt -c -o %t1.bc
// RUN: rm -rf %t.klee-out
// RUN: %klee --output-dir=%t.klee-out %t1.bc

#include "klee/klee.h"
#include <assert.h>

int main(void) {
  char c[2];

  klee_make_symbolic(&c, sizeof(c), "c");

  if (c[0] > 10) {
    int x;

    c[1] = 1; // copy object state

    assert(c[0] > 10);
  }

  return 0;
}