[ 0:01] compiling /home/xrockai/src/divine/nightly/test/libcxx/containers/index_key.pass.cpp [ 0:01] In file included from /home/xrockai/src/divine/nightly/test/libcxx/containers/index_key.pass.cpp:18: [ 0:01] In file included from /dios/libcxx/include/map:479: [ 0:01] In file included from /dios/libcxx/include/__tree:14: [ 0:01] In file included from /dios/libcxx/include/iterator:420: [ 0:01] In file included from /dios/libcxx/include/iosfwd:95: [ 0:01] In file included from /dios/libcxx/include/wchar.h:118: [ 0:01] In file included from /dios/include/wchar.h:9: [ 0:01] In file included from /dios/include/_PDCLIB/int.h:16: [ 0:01] /dios/include/_PDCLIB/cdefs.h:69:10: warning: Unsupported _ _cplusplus (__cplusplus) (too new) (supported: ISO/IEC 14882:1997, ISO/IEC 14882:2011). [ 0:01] #warning Unsupported _ _cplusplus (__cplusplus) (too new) (supported: ISO/IEC 14882:1997, ISO/IEC 14882:2011). [ 0:01] ^ [ 0:01] 1 warning generated. [ 0:03] compiling /dios/lib/config/seqklee.bc [ 0:03] setting up pass: functionmeta, options = [ 0:07] setting up pass: fuse-ctors, options = [ 0:07] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.0/_klee_out" [ 0:16] KLEE: Using Z3 solver backend [ 0:16] WARNING: this target does not support the llvm.stacksave intrinsic. [ 0:16] 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:17] [ 0:17] KLEE: WARNING: undefined reference to function: _Z10klee_abortv [ 0:32] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:32] KLEE: WARNING: undefined reference to function: klee_free [ 0:32] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:32] KLEE: WARNING ONCE: Using zero size array fix for landingpad instruction filter [ 0:32] i:1 [ 0:32] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:32] about to __boot:0 [ 0:32] about to run the scheduler:0 [ 0:32] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:32] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:32] KLEE: NOTE: now ignoring this error at this location [ 0:32] KLEE: ERROR: EXITING ON ERROR: [ 0:35] Error: failed external call: __dios_tainted_init [ 0:35] File: /dios/libc/sys/start.cpp [ 0:35] Line: 87 [ 0:35] assembly.ll line: 98459 [ 0:35] Stack: [ 0:35] #000098459 in __dios_start (l=2, argc=1, argv=94412231648264, envp=94412231717384) at /dios/libc/sys/start.cpp:87 [ 0:35] #100046472 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:35] #200107701 in klee_boot (argc=2, argv=94412067985792) at /dios/arch/klee/boot.c:41 [ 0:35] [ 0:35] [ 0:35] 1 /* TAGS: c++ fin */ [ 0:35] 2 /* CC_OPTS: -std=c++2a */ [ 0:35] 3 /* VERIFY_OPTS: -o nofail:malloc */ [ 0:35] 4 //===----------------------------------------------------------------------===// [ 0:35] 5 // [ 0:35] 6 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. [ 0:35] 7 // See https://llvm.org/LICENSE.txt for license information. [ 0:35] 8 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception [ 0:35] 9 // [ 0:35] 10 //===----------------------------------------------------------------------===// [ 0:35] 11 [ 0:35] 12 // [ 0:35] 13 [ 0:35] 14 // class map [ 0:35] 15 [ 0:35] 16 // mapped_type& operator[](const key_type& k); [ 0:35] 17 [ 0:35] 18 #include [ 0:35] 19 #include [ 0:35] 20 [ 0:35] 21 #include "test_macros.h" [ 0:35] 22 #include "count_new.hpp" [ 0:35] 23 #include "min_allocator.h" [ 0:35] 24 #include "private_constructor.hpp" [ 0:35] 25 #if TEST_STD_VER >= 11 [ 0:35] 26 #include "container_test_types.h" [ 0:35] 27 #endif [ 0:35] 28 [ 0:35] 29 int main(int, char**) [ 0:35] 30 { [ 0:35] 31 { [ 0:35] 32 typedef std::pair V; [ 0:35] 33 V ar[] = [ 0:35] 34 { [ 0:35] 35 V(1, 1.5), [ 0:35] 36 V(2, 2.5), [ 0:35] 37 V(3, 3.5), [ 0:35] 38 V(4, 4.5), [ 0:35] 39 V(5, 5.5), [ 0:35] 40 V(7, 7.5), [ 0:35] 41 V(8, 8.5), [ 0:35] 42 }; [ 0:35] 43 std::map m(ar, ar+sizeof(ar)/sizeof(ar[0])); [ 0:35] 44 assert(m.size() == 7); [ 0:35] 45 assert(m[1] == 1.5); [ 0:35] 46 assert(m.size() == 7); [ 0:35] 47 m[1] = -1.5; [ 0:35] 48 assert(m[1] == -1.5); [ 0:35] 49 assert(m.size() == 7); [ 0:35] 50 assert(m[6] == 0); [ 0:35] 51 assert(m.size() == 8); [ 0:35] 52 m[6] = 6.5; [ 0:35] 53 assert(m[6] == 6.5); [ 0:35] 54 assert(m.size() == 8); [ 0:35] 55 } [ 0:35] 56 #if TEST_STD_VER >= 11 [ 0:35] 57 { [ 0:35] 58 typedef std::pair V; [ 0:35] 59 V ar[] = [ 0:35] 60 { [ 0:35] 61 V(1, 1.5), [ 0:35] 62 V(2, 2.5), [ 0:35] 63 V(3, 3.5), [ 0:35] 64 V(4, 4.5), [ 0:35] 65 V(5, 5.5), [ 0:35] 66 V(7, 7.5), [ 0:35] 67 V(8, 8.5), [ 0:35] 68 }; [ 0:35] 69 std::map, min_allocator> m(ar, ar+sizeof(ar)/sizeof(ar[0])); [ 0:35] 70 assert(m.size() == 7); [ 0:35] 71 assert(m[1] == 1.5); [ 0:35] 72 assert(m.size() == 7); [ 0:35] 73 const int i = 1; [ 0:35] 74 m[i] = -1.5; [ 0:35] 75 assert(m[1] == -1.5); [ 0:35] 76 assert(m.size() == 7); [ 0:35] 77 assert(m[6] == 0); [ 0:35] 78 assert(m.size() == 8); [ 0:35] 79 m[6] = 6.5; [ 0:35] 80 assert(m[6] == 6.5); [ 0:35] 81 assert(m.size() == 8); [ 0:35] 82 } [ 0:35] 83 { [ 0:35] 84 // Use "container_test_types.h" to check what arguments get passed [ 0:35] 85 // to the allocator for operator[] [ 0:35] 86 using Container = TCT::map<>; [ 0:35] 87 using Key = Container::key_type; [ 0:35] 88 using MappedType = Container::mapped_type; [ 0:35] 89 ConstructController* cc = getConstructController(); [ 0:35] 90 cc->reset(); [ 0:35] 91 { [ 0:35] 92 Container c; [ 0:35] 93 const Key k(1); [ 0:35] 94 cc->expect&&, std::tuple<>&&>(); [ 0:35] 95 MappedType& mref = c[k]; [ 0:35] 96 assert(!cc->unchecked()); [ 0:35] 97 { [ 0:35] 98 DisableAllocationGuard g; [ 0:35] 99 MappedType& mref2 = c[k]; [ 0:35] 100 assert(&mref == &mref2); [ 0:35] 101 } [ 0:35] 102 } [ 0:35] 103 { [ 0:35] 104 Container c; [ 0:35] 105 Key k(1); [ 0:35] 106 cc->expect&&, std::tuple<>&&>(); [ 0:35] 107 MappedType& mref = c[k]; [ 0:35] 108 assert(!cc->unchecked()); [ 0:35] 109 { [ 0:35] 110 DisableAllocationGuard g; [ 0:35] 111 MappedType& mref2 = c[k]; [ 0:35] 112 assert(&mref == &mref2); [ 0:35] 113 } [ 0:35] 114 } [ 0:35] 115 } [ 0:35] 116 #endif [ 0:35] 117 #if TEST_STD_VER > 11 [ 0:35] 118 { [ 0:35] 119 typedef std::pair V; [ 0:35] 120 V ar[] = [ 0:35] 121 { [ 0:35] 122 V(1, 1.5), [ 0:35] 123 V(2, 2.5), [ 0:35] 124 V(3, 3.5), [ 0:35] 125 V(4, 4.5), [ 0:35] 126 V(5, 5.5), [ 0:35] 127 V(7, 7.5), [ 0:35] 128 V(8, 8.5), [ 0:35] 129 }; [ 0:35] 130 std::map> m(ar, ar+sizeof(ar)/sizeof(ar[0])); [ 0:35] 131 [ 0:35] 132 assert(m.size() == 7); [ 0:35] 133 assert(m[1] == 1.5); [ 0:35] 134 assert(m.size() == 7); [ 0:35] 135 m[1] = -1.5; [ 0:35] 136 assert(m[1] == -1.5); [ 0:35] 137 assert(m.size() == 7); [ 0:35] 138 assert(m[6] == 0); [ 0:35] 139 assert(m.size() == 8); [ 0:35] 140 m[6] = 6.5; [ 0:35] 141 assert(m[6] == 6.5); [ 0:35] 142 assert(m.size() == 8); [ 0:35] 143 } [ 0:35] 144 #endif [ 0:35] 145 [ 0:35] 146 return 0; [ 0:35] 147 } [ 0:35] # no errors were expected but one was found anyway