[ 0:01] compiling /home/xrockai/src/divine/nightly/test/libcxx/strings/iter_size_char.pass.cpp [ 0:01] In file included from /home/xrockai/src/divine/nightly/test/libcxx/strings/iter_size_char.pass.cpp:16: [ 0:01] In file included from /dios/libcxx/include/string:504: [ 0:01] In file included from /dios/libcxx/include/string_view:175: [ 0:01] In file included from /dios/libcxx/include/__string:56: [ 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:02] 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.5/_klee_out" [ 0:07] KLEE: Using Z3 solver backend [ 0:07] 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: _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:14] i:1 [ 0:14] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:14] about to __boot:0 [ 0:14] about to run the scheduler:0 [ 0:14] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:14] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:14] KLEE: NOTE: now ignoring this error at this location [ 0:14] 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: 84236 [ 0:15] Stack: [ 0:15] #000084236 in __dios_start (l=2, argc=1, argv=94588874810376, envp=94588874863112) at /dios/libc/sys/start.cpp:87 [ 0:15] #100032238 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:15] #200092816 in klee_boot (argc=2, argv=94588828139008) at /dios/arch/klee/boot.c:41 [ 0:15] [ 0:15] [ 0:15] 1 /* TAGS: c++ fin */ [ 0:15] 2 /* CC_OPTS: -std=c++2a */ [ 0:15] 3 /* VERIFY_OPTS: -o nofail:malloc */ [ 0:15] 4 //===----------------------------------------------------------------------===// [ 0:15] 5 // [ 0:15] 6 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. [ 0:15] 7 // See https://llvm.org/LICENSE.txt for license information. [ 0:15] 8 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception [ 0:15] 9 // [ 0:15] 10 //===----------------------------------------------------------------------===// [ 0:15] 11 [ 0:15] 12 // [ 0:15] 13 [ 0:15] 14 // iterator insert(const_iterator p, size_type n, charT c); [ 0:15] 15 [ 0:15] 16 #include [ 0:15] 17 #include [ 0:15] 18 [ 0:15] 19 #include "test_macros.h" [ 0:15] 20 #include "min_allocator.h" [ 0:15] 21 [ 0:15] 22 template [ 0:15] 23 void [ 0:15] 24 test(S s, typename S::difference_type pos, typename S::size_type n, [ 0:15] 25 typename S::value_type c, S expected) [ 0:15] 26 { [ 0:15] 27 typename S::const_iterator p = s.cbegin() + pos; [ 0:15] 28 typename S::iterator i = s.insert(p, n, c); [ 0:15] 29 LIBCPP_ASSERT(s.__invariants()); [ 0:15] 30 assert(i - s.begin() == pos); [ 0:15] 31 assert(s == expected); [ 0:15] 32 } [ 0:15] 33 [ 0:15] 34 int main(int, char**) [ 0:15] 35 { [ 0:15] 36 { [ 0:15] 37 typedef std::string S; [ 0:15] 38 test(S(""), 0, 0, '1', S("")); [ 0:15] 39 test(S(""), 0, 5, '1', S("11111")); [ 0:15] 40 test(S(""), 0, 10, '1', S("1111111111")); [ 0:15] 41 test(S(""), 0, 20, '1', S("11111111111111111111")); [ 0:15] 42 test(S("abcde"), 0, 0, '1', S("abcde")); [ 0:15] 43 test(S("abcde"), 0, 5, '1', S("11111abcde")); [ 0:15] 44 test(S("abcde"), 0, 10, '1', S("1111111111abcde")); [ 0:15] 45 test(S("abcde"), 0, 20, '1', S("11111111111111111111abcde")); [ 0:15] 46 test(S("abcde"), 1, 0, '1', S("abcde")); [ 0:15] 47 test(S("abcde"), 1, 5, '1', S("a11111bcde")); [ 0:15] 48 test(S("abcde"), 1, 10, '1', S("a1111111111bcde")); [ 0:15] 49 test(S("abcde"), 1, 20, '1', S("a11111111111111111111bcde")); [ 0:15] 50 test(S("abcde"), 2, 0, '1', S("abcde")); [ 0:15] 51 test(S("abcde"), 2, 5, '1', S("ab11111cde")); [ 0:15] 52 test(S("abcde"), 2, 10, '1', S("ab1111111111cde")); [ 0:15] 53 test(S("abcde"), 2, 20, '1', S("ab11111111111111111111cde")); [ 0:15] 54 test(S("abcde"), 4, 0, '1', S("abcde")); [ 0:15] 55 test(S("abcde"), 4, 5, '1', S("abcd11111e")); [ 0:15] 56 test(S("abcde"), 4, 10, '1', S("abcd1111111111e")); [ 0:15] 57 test(S("abcde"), 4, 20, '1', S("abcd11111111111111111111e")); [ 0:15] 58 test(S("abcde"), 5, 0, '1', S("abcde")); [ 0:15] 59 test(S("abcde"), 5, 5, '1', S("abcde11111")); [ 0:15] 60 test(S("abcde"), 5, 10, '1', S("abcde1111111111")); [ 0:15] 61 test(S("abcde"), 5, 20, '1', S("abcde11111111111111111111")); [ 0:15] 62 test(S("abcdefghij"), 0, 0, '1', S("abcdefghij")); [ 0:15] 63 test(S("abcdefghij"), 0, 5, '1', S("11111abcdefghij")); [ 0:15] 64 test(S("abcdefghij"), 0, 10, '1', S("1111111111abcdefghij")); [ 0:15] 65 test(S("abcdefghij"), 0, 20, '1', S("11111111111111111111abcdefghij")); [ 0:15] 66 test(S("abcdefghij"), 1, 0, '1', S("abcdefghij")); [ 0:15] 67 test(S("abcdefghij"), 1, 5, '1', S("a11111bcdefghij")); [ 0:15] 68 test(S("abcdefghij"), 1, 10, '1', S("a1111111111bcdefghij")); [ 0:15] 69 test(S("abcdefghij"), 1, 20, '1', S("a11111111111111111111bcdefghij")); [ 0:15] 70 test(S("abcdefghij"), 5, 0, '1', S("abcdefghij")); [ 0:15] 71 test(S("abcdefghij"), 5, 5, '1', S("abcde11111fghij")); [ 0:15] 72 test(S("abcdefghij"), 5, 10, '1', S("abcde1111111111fghij")); [ 0:15] 73 test(S("abcdefghij"), 5, 20, '1', S("abcde11111111111111111111fghij")); [ 0:15] 74 test(S("abcdefghij"), 9, 0, '1', S("abcdefghij")); [ 0:15] 75 test(S("abcdefghij"), 9, 5, '1', S("abcdefghi11111j")); [ 0:15] 76 test(S("abcdefghij"), 9, 10, '1', S("abcdefghi1111111111j")); [ 0:15] 77 test(S("abcdefghij"), 9, 20, '1', S("abcdefghi11111111111111111111j")); [ 0:15] 78 test(S("abcdefghij"), 10, 0, '1', S("abcdefghij")); [ 0:15] 79 test(S("abcdefghij"), 10, 5, '1', S("abcdefghij11111")); [ 0:15] 80 test(S("abcdefghij"), 10, 10, '1', S("abcdefghij1111111111")); [ 0:15] 81 test(S("abcdefghij"), 10, 20, '1', S("abcdefghij11111111111111111111")); [ 0:15] 82 test(S("abcdefghijklmnopqrst"), 0, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 83 test(S("abcdefghijklmnopqrst"), 0, 5, '1', S("11111abcdefghijklmnopqrst")); [ 0:15] 84 test(S("abcdefghijklmnopqrst"), 0, 10, '1', S("1111111111abcdefghijklmnopqrst")); [ 0:15] 85 test(S("abcdefghijklmnopqrst"), 0, 20, '1', S("11111111111111111111abcdefghijklmnopqrst")); [ 0:15] 86 test(S("abcdefghijklmnopqrst"), 1, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 87 test(S("abcdefghijklmnopqrst"), 1, 5, '1', S("a11111bcdefghijklmnopqrst")); [ 0:15] 88 test(S("abcdefghijklmnopqrst"), 1, 10, '1', S("a1111111111bcdefghijklmnopqrst")); [ 0:15] 89 test(S("abcdefghijklmnopqrst"), 1, 20, '1', S("a11111111111111111111bcdefghijklmnopqrst")); [ 0:15] 90 test(S("abcdefghijklmnopqrst"), 10, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 91 test(S("abcdefghijklmnopqrst"), 10, 5, '1', S("abcdefghij11111klmnopqrst")); [ 0:15] 92 test(S("abcdefghijklmnopqrst"), 10, 10, '1', S("abcdefghij1111111111klmnopqrst")); [ 0:15] 93 test(S("abcdefghijklmnopqrst"), 10, 20, '1', S("abcdefghij11111111111111111111klmnopqrst")); [ 0:15] 94 test(S("abcdefghijklmnopqrst"), 19, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 95 test(S("abcdefghijklmnopqrst"), 19, 5, '1', S("abcdefghijklmnopqrs11111t")); [ 0:15] 96 test(S("abcdefghijklmnopqrst"), 19, 10, '1', S("abcdefghijklmnopqrs1111111111t")); [ 0:15] 97 test(S("abcdefghijklmnopqrst"), 19, 20, '1', S("abcdefghijklmnopqrs11111111111111111111t")); [ 0:15] 98 test(S("abcdefghijklmnopqrst"), 20, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 99 test(S("abcdefghijklmnopqrst"), 20, 5, '1', S("abcdefghijklmnopqrst11111")); [ 0:15] 100 test(S("abcdefghijklmnopqrst"), 20, 10, '1', S("abcdefghijklmnopqrst1111111111")); [ 0:15] 101 test(S("abcdefghijklmnopqrst"), 20, 20, '1', S("abcdefghijklmnopqrst11111111111111111111")); [ 0:15] 102 } [ 0:15] 103 #if TEST_STD_VER >= 11 [ 0:15] 104 { [ 0:15] 105 typedef std::basic_string, min_allocator> S; [ 0:15] 106 test(S(""), 0, 0, '1', S("")); [ 0:15] 107 test(S(""), 0, 5, '1', S("11111")); [ 0:15] 108 test(S(""), 0, 10, '1', S("1111111111")); [ 0:15] 109 test(S(""), 0, 20, '1', S("11111111111111111111")); [ 0:15] 110 test(S("abcde"), 0, 0, '1', S("abcde")); [ 0:15] 111 test(S("abcde"), 0, 5, '1', S("11111abcde")); [ 0:15] 112 test(S("abcde"), 0, 10, '1', S("1111111111abcde")); [ 0:15] 113 test(S("abcde"), 0, 20, '1', S("11111111111111111111abcde")); [ 0:15] 114 test(S("abcde"), 1, 0, '1', S("abcde")); [ 0:15] 115 test(S("abcde"), 1, 5, '1', S("a11111bcde")); [ 0:15] 116 test(S("abcde"), 1, 10, '1', S("a1111111111bcde")); [ 0:15] 117 test(S("abcde"), 1, 20, '1', S("a11111111111111111111bcde")); [ 0:15] 118 test(S("abcde"), 2, 0, '1', S("abcde")); [ 0:15] 119 test(S("abcde"), 2, 5, '1', S("ab11111cde")); [ 0:15] 120 test(S("abcde"), 2, 10, '1', S("ab1111111111cde")); [ 0:15] 121 test(S("abcde"), 2, 20, '1', S("ab11111111111111111111cde")); [ 0:15] 122 test(S("abcde"), 4, 0, '1', S("abcde")); [ 0:15] 123 test(S("abcde"), 4, 5, '1', S("abcd11111e")); [ 0:15] 124 test(S("abcde"), 4, 10, '1', S("abcd1111111111e")); [ 0:15] 125 test(S("abcde"), 4, 20, '1', S("abcd11111111111111111111e")); [ 0:15] 126 test(S("abcde"), 5, 0, '1', S("abcde")); [ 0:15] 127 test(S("abcde"), 5, 5, '1', S("abcde11111")); [ 0:15] 128 test(S("abcde"), 5, 10, '1', S("abcde1111111111")); [ 0:15] 129 test(S("abcde"), 5, 20, '1', S("abcde11111111111111111111")); [ 0:15] 130 test(S("abcdefghij"), 0, 0, '1', S("abcdefghij")); [ 0:15] 131 test(S("abcdefghij"), 0, 5, '1', S("11111abcdefghij")); [ 0:15] 132 test(S("abcdefghij"), 0, 10, '1', S("1111111111abcdefghij")); [ 0:15] 133 test(S("abcdefghij"), 0, 20, '1', S("11111111111111111111abcdefghij")); [ 0:15] 134 test(S("abcdefghij"), 1, 0, '1', S("abcdefghij")); [ 0:15] 135 test(S("abcdefghij"), 1, 5, '1', S("a11111bcdefghij")); [ 0:15] 136 test(S("abcdefghij"), 1, 10, '1', S("a1111111111bcdefghij")); [ 0:15] 137 test(S("abcdefghij"), 1, 20, '1', S("a11111111111111111111bcdefghij")); [ 0:15] 138 test(S("abcdefghij"), 5, 0, '1', S("abcdefghij")); [ 0:15] 139 test(S("abcdefghij"), 5, 5, '1', S("abcde11111fghij")); [ 0:15] 140 test(S("abcdefghij"), 5, 10, '1', S("abcde1111111111fghij")); [ 0:15] 141 test(S("abcdefghij"), 5, 20, '1', S("abcde11111111111111111111fghij")); [ 0:15] 142 test(S("abcdefghij"), 9, 0, '1', S("abcdefghij")); [ 0:15] 143 test(S("abcdefghij"), 9, 5, '1', S("abcdefghi11111j")); [ 0:15] 144 test(S("abcdefghij"), 9, 10, '1', S("abcdefghi1111111111j")); [ 0:15] 145 test(S("abcdefghij"), 9, 20, '1', S("abcdefghi11111111111111111111j")); [ 0:15] 146 test(S("abcdefghij"), 10, 0, '1', S("abcdefghij")); [ 0:15] 147 test(S("abcdefghij"), 10, 5, '1', S("abcdefghij11111")); [ 0:15] 148 test(S("abcdefghij"), 10, 10, '1', S("abcdefghij1111111111")); [ 0:15] 149 test(S("abcdefghij"), 10, 20, '1', S("abcdefghij11111111111111111111")); [ 0:15] 150 test(S("abcdefghijklmnopqrst"), 0, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 151 test(S("abcdefghijklmnopqrst"), 0, 5, '1', S("11111abcdefghijklmnopqrst")); [ 0:15] 152 test(S("abcdefghijklmnopqrst"), 0, 10, '1', S("1111111111abcdefghijklmnopqrst")); [ 0:15] 153 test(S("abcdefghijklmnopqrst"), 0, 20, '1', S("11111111111111111111abcdefghijklmnopqrst")); [ 0:15] 154 test(S("abcdefghijklmnopqrst"), 1, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 155 test(S("abcdefghijklmnopqrst"), 1, 5, '1', S("a11111bcdefghijklmnopqrst")); [ 0:15] 156 test(S("abcdefghijklmnopqrst"), 1, 10, '1', S("a1111111111bcdefghijklmnopqrst")); [ 0:15] 157 test(S("abcdefghijklmnopqrst"), 1, 20, '1', S("a11111111111111111111bcdefghijklmnopqrst")); [ 0:15] 158 test(S("abcdefghijklmnopqrst"), 10, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 159 test(S("abcdefghijklmnopqrst"), 10, 5, '1', S("abcdefghij11111klmnopqrst")); [ 0:15] 160 test(S("abcdefghijklmnopqrst"), 10, 10, '1', S("abcdefghij1111111111klmnopqrst")); [ 0:15] 161 test(S("abcdefghijklmnopqrst"), 10, 20, '1', S("abcdefghij11111111111111111111klmnopqrst")); [ 0:15] 162 test(S("abcdefghijklmnopqrst"), 19, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 163 test(S("abcdefghijklmnopqrst"), 19, 5, '1', S("abcdefghijklmnopqrs11111t")); [ 0:15] 164 test(S("abcdefghijklmnopqrst"), 19, 10, '1', S("abcdefghijklmnopqrs1111111111t")); [ 0:15] 165 test(S("abcdefghijklmnopqrst"), 19, 20, '1', S("abcdefghijklmnopqrs11111111111111111111t")); [ 0:15] 166 test(S("abcdefghijklmnopqrst"), 20, 0, '1', S("abcdefghijklmnopqrst")); [ 0:15] 167 test(S("abcdefghijklmnopqrst"), 20, 5, '1', S("abcdefghijklmnopqrst11111")); [ 0:15] 168 test(S("abcdefghijklmnopqrst"), 20, 10, '1', S("abcdefghijklmnopqrst1111111111")); [ 0:15] 169 test(S("abcdefghijklmnopqrst"), 20, 20, '1', S("abcdefghijklmnopqrst11111111111111111111")); [ 0:15] 170 } [ 0:15] 171 #endif [ 0:15] 172 [ 0:15] 173 return 0; [ 0:15] 174 } [ 0:15] # no errors were expected but one was found anyway