[ 0:01] compiling /home/xrockai/src/divine/nightly/test/libcxx/deque/size_value_alloc.pass.cpp [ 0:01] compiling /dios/lib/config/seqklee.bc [ 0:02] setting up pass: functionmeta, options = [ 0:04] setting up pass: fuse-ctors, options = [ 0:04] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.9/_klee_out" [ 0:08] KLEE: Using Z3 solver backend [ 0:08] WARNING: this target does not support the llvm.stacksave intrinsic. [ 0:08] warning: Linking two modules of different target triples: klee_div_zero_check.bc' is 'x86_64-unknown-linux-gnu' whereas 'klee.bc' is 'x86_64-unknown-none-elf' [ 0:09] [ 0:09] KLEE: WARNING: undefined reference to function: _Z10klee_abortv [ 0:15] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:15] KLEE: WARNING: undefined reference to function: klee_free [ 0:15] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:15] KLEE: WARNING ONCE: Using zero size array fix for landingpad instruction filter [ 0:15] i:1 [ 0:15] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:15] about to __boot:0 [ 0:15] about to run the scheduler:0 [ 0:15] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:15] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:15] KLEE: NOTE: now ignoring this error at this location [ 0:15] KLEE: ERROR: EXITING ON ERROR: [ 0:15] Error: failed external call: __dios_tainted_init [ 0:15] File: /dios/libc/sys/start.cpp [ 0:15] Line: 87 [ 0:15] assembly.ll line: 82559 [ 0:15] Stack: [ 0:15] #000082559 in __dios_start (l=0, argc=1, argv=93878244979208, envp=93878245056520) at /dios/libc/sys/start.cpp:87 [ 0:15] #100030388 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:15] #200091139 in klee_boot (argc=2, argv=93878214847488) at /dios/arch/klee/boot.c:41 [ 0:15] [ 0:15] [ 0:15] 1 /* TAGS: c++ ext */ [ 0:15] 2 /* VERIFY_OPTS: -o nofail:malloc */ [ 0:15] 3 //===----------------------------------------------------------------------===// [ 0:15] 4 // [ 0:15] 5 // The LLVM Compiler Infrastructure [ 0:15] 6 // [ 0:15] 7 // This file is dual licensed under the MIT and the University of Illinois Open [ 0:15] 8 // Source Licenses. See LICENSE.TXT for details. [ 0:15] 9 // [ 0:15] 10 //===----------------------------------------------------------------------===// [ 0:15] 11 [ 0:15] 12 // [ 0:15] 13 [ 0:15] 14 // deque(size_type n, const value_type& v, const allocator_type& a); [ 0:15] 15 [ 0:15] 16 #include [ 0:15] 17 #include [ 0:15] 18 [ 0:15] 19 #include "min_allocator.h" [ 0:15] 20 [ 0:15] 21 template [ 0:15] 22 void [ 0:15] 23 test(unsigned n, const T& x, const Allocator& a) [ 0:15] 24 { [ 0:15] 25 typedef std::deque C; [ 0:15] 26 typedef typename C::const_iterator const_iterator; [ 0:15] 27 C d(n, x, a); [ 0:15] 28 assert(d.get_allocator() == a); [ 0:15] 29 assert(d.size() == n); [ 0:15] 30 assert(distance(d.begin(), d.end()) == d.size()); [ 0:15] 31 for (const_iterator i = d.begin(), e = d.end(); i != e; ++i) [ 0:15] 32 assert(*i == x); [ 0:15] 33 } [ 0:15] 34 [ 0:15] 35 int main() [ 0:15] 36 { [ 0:15] 37 { [ 0:15] 38 std::allocator a; [ 0:15] 39 test(0, 5, a); [ 0:15] 40 test(1, 10, a); [ 0:15] 41 test(10, 11, a); [ 0:15] 42 test(1023, -11, a); [ 0:15] 43 test(1024, 25, a); [ 0:15] 44 test(1025, 0, a); [ 0:15] 45 test(2047, 110, a); [ 0:15] 46 test(2048, -500, a); [ 0:15] 47 test(2049, 654, a); [ 0:15] 48 test(4095, 78, a); [ 0:15] 49 test(4096, 1165, a); [ 0:15] 50 test(4097, 157, a); [ 0:15] 51 } [ 0:15] 52 #if __cplusplus >= 201103L [ 0:15] 53 { [ 0:15] 54 min_allocator a; [ 0:15] 55 test(0, 5, a); [ 0:15] 56 test(1, 10, a); [ 0:15] 57 test(10, 11, a); [ 0:15] 58 test(1023, -11, a); [ 0:15] 59 test(1024, 25, a); [ 0:15] 60 test(1025, 0, a); [ 0:15] 61 test(2047, 110, a); [ 0:15] 62 test(2048, -500, a); [ 0:15] 63 test(2049, 654, a); [ 0:15] 64 test(4095, 78, a); [ 0:15] 65 test(4096, 1165, a); [ 0:15] 66 test(4097, 157, a); [ 0:15] 67 } [ 0:15] 68 #endif [ 0:15] 69 } [ 0:15] # no errors were expected but one was found anyway