[ 0:00] compiling /home/xrockai/src/divine/nightly/test/libcxx/deque/size.pass.cpp [ 0:00] compiling /dios/lib/config/seqklee.bc [ 0:02] setting up pass: functionmeta, options = [ 0:03] setting up pass: fuse-ctors, options = [ 0:03] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.8/_klee_out" [ 0:07] KLEE: Using Z3 solver backend [ 0:07] WARNING: this target does not support the llvm.stacksave intrinsic. [ 0:07] 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:08] [ 0:08] KLEE: WARNING: undefined reference to function: _Z10klee_abortv [ 0:14] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:14] KLEE: WARNING: undefined reference to function: klee_free [ 0:14] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:14] 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: 108690 [ 0:15] Stack: [ 0:15] #000108690 in __dios_start (l=0, argc=1, argv=94590259167240, envp=94590259185672) at /dios/libc/sys/start.cpp:87 [ 0:15] #100056519 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:15] #200117270 in klee_boot (argc=2, argv=94590212484480) 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 // explicit deque(size_type n); [ 0:15] 15 [ 0:15] 16 #include [ 0:15] 17 #include [ 0:15] 18 [ 0:15] 19 #include "stack_allocator.h" [ 0:15] 20 #include "DefaultOnly.h" [ 0:15] 21 #include "min_allocator.h" [ 0:15] 22 [ 0:15] 23 template [ 0:15] 24 void [ 0:15] 25 test2(unsigned n) [ 0:15] 26 { [ 0:15] 27 #if _LIBCPP_STD_VER > 11 [ 0:15] 28 typedef std::deque C; [ 0:15] 29 typedef typename C::const_iterator const_iterator; [ 0:15] 30 assert(DefaultOnly::count == 0); [ 0:15] 31 { [ 0:15] 32 C d(n, Allocator()); [ 0:15] 33 assert(DefaultOnly::count == n); [ 0:15] 34 assert(d.size() == n); [ 0:15] 35 assert(distance(d.begin(), d.end()) == d.size()); [ 0:15] 36 #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES [ 0:15] 37 for (const_iterator i = d.begin(), e = d.end(); i != e; ++i) [ 0:15] 38 assert(*i == T()); [ 0:15] 39 #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES [ 0:15] 40 } [ 0:15] 41 assert(DefaultOnly::count == 0); [ 0:15] 42 #endif [ 0:15] 43 } [ 0:15] 44 [ 0:15] 45 template [ 0:15] 46 void [ 0:15] 47 test1(unsigned n) [ 0:15] 48 { [ 0:15] 49 typedef std::deque C; [ 0:15] 50 typedef typename C::const_iterator const_iterator; [ 0:15] 51 assert(DefaultOnly::count == 0); [ 0:15] 52 { [ 0:15] 53 C d(n); [ 0:15] 54 assert(DefaultOnly::count == n); [ 0:15] 55 assert(d.size() == n); [ 0:15] 56 assert(distance(d.begin(), d.end()) == d.size()); [ 0:15] 57 #ifndef _LIBCPP_HAS_NO_RVALUE_REFERENCES [ 0:15] 58 for (const_iterator i = d.begin(), e = d.end(); i != e; ++i) [ 0:15] 59 assert(*i == T()); [ 0:15] 60 #endif // _LIBCPP_HAS_NO_RVALUE_REFERENCES [ 0:15] 61 } [ 0:15] 62 assert(DefaultOnly::count == 0); [ 0:15] 63 } [ 0:15] 64 [ 0:15] 65 template [ 0:15] 66 void [ 0:15] 67 test3(unsigned n, Allocator const &alloc = Allocator()) [ 0:15] 68 { [ 0:15] 69 #if _LIBCPP_STD_VER > 11 [ 0:15] 70 typedef std::deque C; [ 0:15] 71 typedef typename C::const_iterator const_iterator; [ 0:15] 72 { [ 0:15] 73 C d(n, alloc); [ 0:15] 74 assert(d.size() == n); [ 0:15] 75 assert(d.get_allocator() == alloc); [ 0:15] 76 } [ 0:15] 77 #endif [ 0:15] 78 } [ 0:15] 79 [ 0:15] 80 template [ 0:15] 81 void [ 0:15] 82 test(unsigned n) [ 0:15] 83 { [ 0:15] 84 test1 ( n ); [ 0:15] 85 test2 ( n ); [ 0:15] 86 } [ 0:15] 87 [ 0:15] 88 int main() [ 0:15] 89 { [ 0:15] 90 test >(0); [ 0:15] 91 test >(1); [ 0:15] 92 test >(10); [ 0:15] 93 test >(1023); [ 0:15] 94 test >(1024); [ 0:15] 95 test >(1025); [ 0:15] 96 test >(2047); [ 0:15] 97 test >(2048); [ 0:15] 98 test >(2049); [ 0:15] 99 test >(4095); [ 0:15] 100 test >(4096); [ 0:15] 101 test >(4097); [ 0:15] 102 [ 0:15] 103 test1 >(4095); [ 0:15] 104 [ 0:15] 105 #if __cplusplus >= 201103L [ 0:15] 106 test >(4095); [ 0:15] 107 #endif [ 0:15] 108 [ 0:15] 109 #if _LIBCPP_STD_VER > 11 [ 0:15] 110 test3> (1023); [ 0:15] 111 test3>(1); [ 0:15] 112 test3> (3); [ 0:15] 113 #endif [ 0:15] 114 [ 0:15] 115 } [ 0:15] # no errors were expected but one was found anyway