[ 0:01] compiling /home/xrockai/src/divine/nightly/test/libcxx/algorithms/set_intersection.pass.cpp [ 0:01] In file included from /home/xrockai/src/divine/nightly/test/libcxx/algorithms/set_intersection.pass.cpp:23: [ 0:01] In file included from /dios/libcxx/include/algorithm:639: [ 0:01] In file included from /dios/libcxx/include/initializer_list:46: [ 0:01] In file included from /dios/libcxx/include/cstddef:44: [ 0:01] In file included from /dios/include/stddef.h:10: [ 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:04] setting up pass: fuse-ctors, options = [ 0:04] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.23/_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:08] [ 0:08] 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] 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: 106394 [ 0:14] Stack: [ 0:14] #000106394 in __dios_start (l=2, argc=1, argv=94764570137096, envp=94764570206216) at /dios/libc/sys/start.cpp:87 [ 0:14] #100082403 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:14] #200114642 in klee_boot (argc=2, argv=94764516588288) 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 // [ 0:14] 13 [ 0:14] 14 // template [ 0:14] 15 // requires OutputIterator [ 0:14] 16 // && OutputIterator [ 0:14] 17 // && HasLess [ 0:14] 18 // && HasLess [ 0:14] 19 // constpexr OutIter // constexpr after C++17 [ 0:14] 20 // set_intersection(InIter1 first1, InIter1 last1, InIter2 first2, InIter2 last2, [ 0:14] 21 // OutIter result); [ 0:14] 22 [ 0:14] 23 #include [ 0:14] 24 #include [ 0:14] 25 [ 0:14] 26 #include "test_macros.h" [ 0:14] 27 #include "test_iterators.h" [ 0:14] 28 [ 0:14] 29 #if TEST_STD_VER > 17 [ 0:14] 30 TEST_CONSTEXPR bool test_constexpr() { [ 0:14] 31 const int ia[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4}; [ 0:14] 32 const int ib[] = {2, 4, 4, 6}; [ 0:14] 33 int results[std::size(ia)] = {0}; [ 0:14] 34 [ 0:14] 35 auto it = std::set_intersection(std::begin(ia), std::end(ia), [ 0:14] 36 std::begin(ib), std::end(ib), std::begin(results)); [ 0:14] 37 [ 0:14] 38 return std::includes(std::begin(ia), std::end(ia), std::begin(results), it) [ 0:14] 39 && std::includes(std::begin(ib), std::end(ib), std::begin(results), it) [ 0:14] 40 && std::is_sorted(std::begin(results), it) [ 0:14] 41 && std::all_of(it, std::end(results), [](int a) {return a == 0; }) [ 0:14] 42 ; [ 0:14] 43 } [ 0:14] 44 #endif [ 0:14] 45 [ 0:14] 46 [ 0:14] 47 template [ 0:14] 48 void [ 0:14] 49 test() [ 0:14] 50 { [ 0:14] 51 int ia[] = {1, 2, 2, 3, 3, 3, 4, 4, 4, 4}; [ 0:14] 52 const int sa = sizeof(ia)/sizeof(ia[0]); [ 0:14] 53 int ib[] = {2, 4, 4, 6}; [ 0:14] 54 const int sb = sizeof(ib)/sizeof(ib[0]); [ 0:14] 55 int ic[20]; [ 0:14] 56 int ir[] = {2, 4, 4}; [ 0:14] 57 const int sr = sizeof(ir)/sizeof(ir[0]); [ 0:14] 58 OutIter ce = std::set_intersection(Iter1(ia), Iter1(ia+sa), [ 0:14] 59 Iter2(ib), Iter2(ib+sb), OutIter(ic)); [ 0:14] 60 assert(base(ce) - ic == sr); [ 0:14] 61 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); [ 0:14] 62 ce = std::set_intersection(Iter1(ib), Iter1(ib+sb), [ 0:14] 63 Iter2(ia), Iter2(ia+sa), OutIter(ic)); [ 0:14] 64 assert(base(ce) - ic == sr); [ 0:14] 65 assert(std::lexicographical_compare(ic, base(ce), ir, ir+sr) == 0); [ 0:14] 66 } [ 0:14] 67 [ 0:14] 68 int main(int, char**) [ 0:14] 69 { [ 0:14] 70 test, input_iterator, output_iterator >(); [ 0:14] 71 test, input_iterator, forward_iterator >(); [ 0:14] 72 test, input_iterator, bidirectional_iterator >(); [ 0:14] 73 test, input_iterator, random_access_iterator >(); [ 0:14] 74 test, input_iterator, int*>(); [ 0:14] 75 [ 0:14] 76 test, forward_iterator, output_iterator >(); [ 0:14] 77 test, forward_iterator, forward_iterator >(); [ 0:14] 78 test, forward_iterator, bidirectional_iterator >(); [ 0:14] 79 test, forward_iterator, random_access_iterator >(); [ 0:14] 80 test, forward_iterator, int*>(); [ 0:14] 81 [ 0:14] 82 test, bidirectional_iterator, output_iterator >(); [ 0:14] 83 test, bidirectional_iterator, forward_iterator >(); [ 0:14] 84 test, bidirectional_iterator, bidirectional_iterator >(); [ 0:14] 85 test, bidirectional_iterator, random_access_iterator >(); [ 0:14] 86 test, bidirectional_iterator, int*>(); [ 0:14] 87 [ 0:14] 88 test, random_access_iterator, output_iterator >(); [ 0:14] 89 test, random_access_iterator, forward_iterator >(); [ 0:14] 90 test, random_access_iterator, bidirectional_iterator >(); [ 0:14] 91 test, random_access_iterator, random_access_iterator >(); [ 0:14] 92 test, random_access_iterator, int*>(); [ 0:14] 93 [ 0:14] 94 test, const int*, output_iterator >(); [ 0:14] 95 test, const int*, forward_iterator >(); [ 0:14] 96 test, const int*, bidirectional_iterator >(); [ 0:14] 97 test, const int*, random_access_iterator >(); [ 0:14] 98 test, const int*, int*>(); [ 0:14] 99 [ 0:14] 100 test, input_iterator, output_iterator >(); [ 0:14] 101 test, input_iterator, forward_iterator >(); [ 0:14] 102 test, input_iterator, bidirectional_iterator >(); [ 0:14] 103 test, input_iterator, random_access_iterator >(); [ 0:14] 104 test, input_iterator, int*>(); [ 0:14] 105 [ 0:14] 106 test, forward_iterator, output_iterator >(); [ 0:14] 107 test, forward_iterator, forward_iterator >(); [ 0:14] 108 test, forward_iterator, bidirectional_iterator >(); [ 0:14] 109 test, forward_iterator, random_access_iterator >(); [ 0:14] 110 test, forward_iterator, int*>(); [ 0:14] 111 [ 0:14] 112 test, bidirectional_iterator, output_iterator >(); [ 0:14] 113 test, bidirectional_iterator, forward_iterator >(); [ 0:14] 114 test, bidirectional_iterator, bidirectional_iterator >(); [ 0:14] 115 test, bidirectional_iterator, random_access_iterator >(); [ 0:14] 116 test, bidirectional_iterator, int*>(); [ 0:14] 117 [ 0:14] 118 test, random_access_iterator, output_iterator >(); [ 0:14] 119 test, random_access_iterator, forward_iterator >(); [ 0:14] 120 test, random_access_iterator, bidirectional_iterator >(); [ 0:14] 121 test, random_access_iterator, random_access_iterator >(); [ 0:14] 122 test, random_access_iterator, int*>(); [ 0:14] 123 [ 0:14] 124 test, const int*, output_iterator >(); [ 0:14] 125 test, const int*, forward_iterator >(); [ 0:14] 126 test, const int*, bidirectional_iterator >(); [ 0:14] 127 test, const int*, random_access_iterator >(); [ 0:14] 128 test, const int*, int*>(); [ 0:14] 129 [ 0:14] 130 test, input_iterator, output_iterator >(); [ 0:14] 131 test, input_iterator, bidirectional_iterator >(); [ 0:14] 132 test, input_iterator, bidirectional_iterator >(); [ 0:14] 133 test, input_iterator, random_access_iterator >(); [ 0:14] 134 test, input_iterator, int*>(); [ 0:14] 135 [ 0:14] 136 test, forward_iterator, output_iterator >(); [ 0:14] 137 test, forward_iterator, forward_iterator >(); [ 0:14] 138 test, forward_iterator, bidirectional_iterator >(); [ 0:14] 139 test, forward_iterator, random_access_iterator >(); [ 0:14] 140 test, forward_iterator, int*>(); [ 0:14] 141 [ 0:14] 142 test, bidirectional_iterator, output_iterator >(); [ 0:14] 143 test, bidirectional_iterator, forward_iterator >(); [ 0:14] 144 test, bidirectional_iterator, bidirectional_iterator >(); [ 0:14] 145 test, bidirectional_iterator, random_access_iterator >(); [ 0:14] 146 test, bidirectional_iterator, int*>(); [ 0:14] 147 [ 0:14] 148 test, random_access_iterator, output_iterator >(); [ 0:14] 149 test, random_access_iterator, forward_iterator >(); [ 0:14] 150 test, random_access_iterator, bidirectional_iterator >(); [ 0:14] 151 test, random_access_iterator, random_access_iterator >(); [ 0:14] 152 test, random_access_iterator, int*>(); [ 0:14] 153 [ 0:14] 154 test, const int*, output_iterator >(); [ 0:14] 155 test, const int*, forward_iterator >(); [ 0:14] 156 test, const int*, bidirectional_iterator >(); [ 0:14] 157 test, const int*, random_access_iterator >(); [ 0:14] 158 test, const int*, int*>(); [ 0:14] 159 [ 0:14] 160 test, input_iterator, output_iterator >(); [ 0:14] 161 test, input_iterator, bidirectional_iterator >(); [ 0:14] 162 test, input_iterator, bidirectional_iterator >(); [ 0:14] 163 test, input_iterator, random_access_iterator >(); [ 0:14] 164 test, input_iterator, int*>(); [ 0:14] 165 [ 0:14] 166 test, forward_iterator, output_iterator >(); [ 0:14] 167 test, forward_iterator, forward_iterator >(); [ 0:14] 168 test, forward_iterator, bidirectional_iterator >(); [ 0:14] 169 test, forward_iterator, random_access_iterator >(); [ 0:14] 170 test, forward_iterator, int*>(); [ 0:14] 171 [ 0:14] 172 test, bidirectional_iterator, output_iterator >(); [ 0:14] 173 test, bidirectional_iterator, forward_iterator >(); [ 0:14] 174 test, bidirectional_iterator, bidirectional_iterator >(); [ 0:14] 175 test, bidirectional_iterator, random_access_iterator >(); [ 0:14] 176 test, bidirectional_iterator, int*>(); [ 0:14] 177 [ 0:14] 178 test, random_access_iterator, output_iterator >(); [ 0:14] 179 test, random_access_iterator, forward_iterator >(); [ 0:14] 180 test, random_access_iterator, bidirectional_iterator >(); [ 0:14] 181 test, random_access_iterator, random_access_iterator >(); [ 0:14] 182 test, random_access_iterator, int*>(); [ 0:14] 183 [ 0:14] 184 test, const int*, output_iterator >(); [ 0:14] 185 test, const int*, forward_iterator >(); [ 0:14] 186 test, const int*, bidirectional_iterator >(); [ 0:14] 187 test, const int*, random_access_iterator >(); [ 0:14] 188 test, const int*, int*>(); [ 0:14] 189 [ 0:14] 190 test, output_iterator >(); [ 0:14] 191 test, bidirectional_iterator >(); [ 0:14] 192 test, bidirectional_iterator >(); [ 0:14] 193 test, random_access_iterator >(); [ 0:14] 194 test, int*>(); [ 0:14] 195 [ 0:14] 196 test, output_iterator >(); [ 0:14] 197 test, forward_iterator >(); [ 0:14] 198 test, bidirectional_iterator >(); [ 0:14] 199 test, random_access_iterator >(); [ 0:14] 200 test, int*>(); [ 0:14] 201 [ 0:14] 202 test, output_iterator >(); [ 0:14] 203 test, forward_iterator >(); [ 0:14] 204 test, bidirectional_iterator >(); [ 0:14] 205 test, random_access_iterator >(); [ 0:14] 206 test, int*>(); [ 0:14] 207 [ 0:14] 208 test, output_iterator >(); [ 0:14] 209 test, forward_iterator >(); [ 0:14] 210 test, bidirectional_iterator >(); [ 0:14] 211 test, random_access_iterator >(); [ 0:14] 212 test, int*>(); [ 0:14] 213 [ 0:14] 214 test >(); [ 0:14] 215 test >(); [ 0:14] 216 test >(); [ 0:14] 217 test >(); [ 0:14] 218 test(); [ 0:14] 219 [ 0:14] 220 #if TEST_STD_VER > 17 [ 0:14] 221 static_assert(test_constexpr()); [ 0:14] 222 #endif [ 0:14] 223 [ 0:14] 224 return 0; [ 0:14] 225 } [ 0:14] # no errors were expected but one was found anyway