[ 0:00] compiling /home/xrockai/src/divine/nightly/test/libcxx/containers/move_assign.pass.cpp [ 0:00] In file included from /home/xrockai/src/divine/nightly/test/libcxx/containers/move_assign.pass.cpp:20: [ 0:01] In file included from /dios/libcxx/include/set:427: [ 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:01] compiling /dios/lib/config/seqklee.bc [ 0:01] 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.3/_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:07] [ 0:07] KLEE: WARNING: undefined reference to function: _Z10klee_abortv [ 0:13] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:13] KLEE: WARNING: undefined reference to function: klee_free [ 0:13] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:13] KLEE: WARNING ONCE: Using zero size array fix for landingpad instruction filter [ 0:13] i:1 [ 0:13] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:13] about to __boot:0 [ 0:13] about to run the scheduler:0 [ 0:13] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:13] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:13] KLEE: NOTE: now ignoring this error at this location [ 0:13] KLEE: ERROR: EXITING ON ERROR: [ 0:14] Error: failed external call: __dios_tainted_init [ 0:14] File: /dios/libc/sys/start.cpp [ 0:14] Line: 87 [ 0:14] assembly.ll line: 96308 [ 0:14] Stack: [ 0:14] #000096308 in __dios_start (l=2, argc=1, argv=94150934561800, envp=94150934630920) at /dios/libc/sys/start.cpp:87 [ 0:14] #100044310 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:14] #200104888 in klee_boot (argc=2, argv=94150901484928) at /dios/arch/klee/boot.c:41 [ 0:14] [ 0:14] [ 0:14] 1 /* TAGS: c++ fin */ [ 0:14] 2 /* CC_OPTS: -std=c++2a */ [ 0:14] 3 /* VERIFY_OPTS: -o nofail:malloc */ [ 0:14] 4 //===----------------------------------------------------------------------===// [ 0:14] 5 // [ 0:14] 6 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. [ 0:14] 7 // See https://llvm.org/LICENSE.txt for license information. [ 0:14] 8 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception [ 0:14] 9 // [ 0:14] 10 //===----------------------------------------------------------------------===// [ 0:14] 11 [ 0:14] 12 // UNSUPPORTED: c++98, c++03 [ 0:14] 13 [ 0:14] 14 // [ 0:14] 15 [ 0:14] 16 // class set [ 0:14] 17 [ 0:14] 18 // set& operator=(set&& s); [ 0:14] 19 [ 0:14] 20 #include [ 0:14] 21 #include [ 0:14] 22 [ 0:14] 23 #include "test_macros.h" [ 0:14] 24 #include "MoveOnly.h" [ 0:14] 25 #include "test_compare.h" [ 0:14] 26 #include "test_allocator.h" [ 0:14] 27 #include "min_allocator.h" [ 0:14] 28 [ 0:14] 29 int main(int, char**) [ 0:14] 30 { [ 0:14] 31 { [ 0:14] 32 typedef MoveOnly V; [ 0:14] 33 typedef test_compare > C; [ 0:14] 34 typedef test_allocator A; [ 0:14] 35 typedef std::set M; [ 0:14] 36 typedef std::move_iterator I; [ 0:14] 37 V a1[] = [ 0:14] 38 { [ 0:14] 39 V(1), [ 0:14] 40 V(1), [ 0:14] 41 V(1), [ 0:14] 42 V(2), [ 0:14] 43 V(2), [ 0:14] 44 V(2), [ 0:14] 45 V(3), [ 0:14] 46 V(3), [ 0:14] 47 V(3) [ 0:14] 48 }; [ 0:14] 49 M m1(I(a1), I(a1+sizeof(a1)/sizeof(a1[0])), C(5), A(7)); [ 0:14] 50 V a2[] = [ 0:14] 51 { [ 0:14] 52 V(1), [ 0:14] 53 V(1), [ 0:14] 54 V(1), [ 0:14] 55 V(2), [ 0:14] 56 V(2), [ 0:14] 57 V(2), [ 0:14] 58 V(3), [ 0:14] 59 V(3), [ 0:14] 60 V(3) [ 0:14] 61 }; [ 0:14] 62 M m2(I(a2), I(a2+sizeof(a2)/sizeof(a2[0])), C(5), A(7)); [ 0:14] 63 M m3(C(3), A(7)); [ 0:14] 64 m3 = std::move(m1); [ 0:14] 65 assert(m3 == m2); [ 0:14] 66 assert(m3.get_allocator() == A(7)); [ 0:14] 67 assert(m3.key_comp() == C(5)); [ 0:14] 68 assert(m1.empty()); [ 0:14] 69 } [ 0:14] 70 { [ 0:14] 71 typedef MoveOnly V; [ 0:14] 72 typedef test_compare > C; [ 0:14] 73 typedef test_allocator A; [ 0:14] 74 typedef std::set M; [ 0:14] 75 typedef std::move_iterator I; [ 0:14] 76 V a1[] = [ 0:14] 77 { [ 0:14] 78 V(1), [ 0:14] 79 V(1), [ 0:14] 80 V(1), [ 0:14] 81 V(2), [ 0:14] 82 V(2), [ 0:14] 83 V(2), [ 0:14] 84 V(3), [ 0:14] 85 V(3), [ 0:14] 86 V(3) [ 0:14] 87 }; [ 0:14] 88 M m1(I(a1), I(a1+sizeof(a1)/sizeof(a1[0])), C(5), A(7)); [ 0:14] 89 V a2[] = [ 0:14] 90 { [ 0:14] 91 V(1), [ 0:14] 92 V(1), [ 0:14] 93 V(1), [ 0:14] 94 V(2), [ 0:14] 95 V(2), [ 0:14] 96 V(2), [ 0:14] 97 V(3), [ 0:14] 98 V(3), [ 0:14] 99 V(3) [ 0:14] 100 }; [ 0:14] 101 M m2(I(a2), I(a2+sizeof(a2)/sizeof(a2[0])), C(5), A(7)); [ 0:14] 102 M m3(C(3), A(5)); [ 0:14] 103 m3 = std::move(m1); [ 0:14] 104 assert(m3 == m2); [ 0:14] 105 assert(m3.get_allocator() == A(5)); [ 0:14] 106 assert(m3.key_comp() == C(5)); [ 0:14] 107 assert(m1.empty()); [ 0:14] 108 } [ 0:14] 109 { [ 0:14] 110 typedef MoveOnly V; [ 0:14] 111 typedef test_compare > C; [ 0:14] 112 typedef other_allocator A; [ 0:14] 113 typedef std::set M; [ 0:14] 114 typedef std::move_iterator I; [ 0:14] 115 V a1[] = [ 0:14] 116 { [ 0:14] 117 V(1), [ 0:14] 118 V(1), [ 0:14] 119 V(1), [ 0:14] 120 V(2), [ 0:14] 121 V(2), [ 0:14] 122 V(2), [ 0:14] 123 V(3), [ 0:14] 124 V(3), [ 0:14] 125 V(3) [ 0:14] 126 }; [ 0:14] 127 M m1(I(a1), I(a1+sizeof(a1)/sizeof(a1[0])), C(5), A(7)); [ 0:14] 128 V a2[] = [ 0:14] 129 { [ 0:14] 130 V(1), [ 0:14] 131 V(1), [ 0:14] 132 V(1), [ 0:14] 133 V(2), [ 0:14] 134 V(2), [ 0:14] 135 V(2), [ 0:14] 136 V(3), [ 0:14] 137 V(3), [ 0:14] 138 V(3) [ 0:14] 139 }; [ 0:14] 140 M m2(I(a2), I(a2+sizeof(a2)/sizeof(a2[0])), C(5), A(7)); [ 0:14] 141 M m3(C(3), A(5)); [ 0:14] 142 m3 = std::move(m1); [ 0:14] 143 assert(m3 == m2); [ 0:14] 144 assert(m3.get_allocator() == A(7)); [ 0:14] 145 assert(m3.key_comp() == C(5)); [ 0:14] 146 assert(m1.empty()); [ 0:14] 147 } [ 0:14] 148 { [ 0:14] 149 typedef MoveOnly V; [ 0:14] 150 typedef test_compare > C; [ 0:14] 151 typedef min_allocator A; [ 0:14] 152 typedef std::set M; [ 0:14] 153 typedef std::move_iterator I; [ 0:14] 154 V a1[] = [ 0:14] 155 { [ 0:14] 156 V(1), [ 0:14] 157 V(1), [ 0:14] 158 V(1), [ 0:14] 159 V(2), [ 0:14] 160 V(2), [ 0:14] 161 V(2), [ 0:14] 162 V(3), [ 0:14] 163 V(3), [ 0:14] 164 V(3) [ 0:14] 165 }; [ 0:14] 166 M m1(I(a1), I(a1+sizeof(a1)/sizeof(a1[0])), C(5), A()); [ 0:14] 167 V a2[] = [ 0:14] 168 { [ 0:14] 169 V(1), [ 0:14] 170 V(1), [ 0:14] 171 V(1), [ 0:14] 172 V(2), [ 0:14] 173 V(2), [ 0:14] 174 V(2), [ 0:14] 175 V(3), [ 0:14] 176 V(3), [ 0:14] 177 V(3) [ 0:14] 178 }; [ 0:14] 179 M m2(I(a2), I(a2+sizeof(a2)/sizeof(a2[0])), C(5), A()); [ 0:14] 180 M m3(C(3), A()); [ 0:14] 181 m3 = std::move(m1); [ 0:14] 182 assert(m3 == m2); [ 0:14] 183 assert(m3.get_allocator() == A()); [ 0:14] 184 assert(m3.key_comp() == C(5)); [ 0:14] 185 assert(m1.empty()); [ 0:14] 186 } [ 0:14] 187 [ 0:14] 188 return 0; [ 0:14] 189 } [ 0:14] # no errors were expected but one was found anyway