[ 0:01] compiling /home/xrockai/src/divine/nightly/test/libcxx/containers/equal_range_transparent.pass.cpp [ 0:01] In file included from /home/xrockai/src/divine/nightly/test/libcxx/containers/equal_range_transparent.pass.cpp:25: [ 0:01] In file included from /dios/libcxx/include/cassert:20: [ 0:01] In file included from /dios/include/assert.h:7: [ 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.22/_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:31] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:31] KLEE: WARNING: undefined reference to function: klee_free [ 0:31] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:31] 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: 77762 [ 0:35] Stack: [ 0:35] #000077762 in __dios_start (l=2, argc=1, argv=94258537694216, envp=94258537779720) at /dios/libc/sys/start.cpp:87 [ 0:35] #100025591 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:35] #200086342 in klee_boot (argc=2, argv=94258359655936) 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 // UNSUPPORTED: c++98, c++03, c++11 [ 0:35] 13 [ 0:35] 14 // [ 0:35] 15 [ 0:35] 16 // class set [ 0:35] 17 [ 0:35] 18 // template [ 0:35] 19 // pair equal_range(const K& x); // [ 0:35] 20 // C++14 [ 0:35] 21 // template [ 0:35] 22 // pair equal_range(const K& x) const; // [ 0:35] 23 // C++14 [ 0:35] 24 [ 0:35] 25 #include [ 0:35] 26 #include [ 0:35] 27 #include [ 0:35] 28 [ 0:35] 29 #include "min_allocator.h" [ 0:35] 30 #include "private_constructor.hpp" [ 0:35] 31 #include "test_macros.h" [ 0:35] 32 [ 0:35] 33 struct Comp { [ 0:35] 34 using is_transparent = void; [ 0:35] 35 [ 0:35] 36 bool operator()(const std::pair &lhs, [ 0:35] 37 const std::pair &rhs) const { [ 0:35] 38 return lhs < rhs; [ 0:35] 39 } [ 0:35] 40 [ 0:35] 41 bool operator()(const std::pair &lhs, int rhs) const { [ 0:35] 42 return lhs.first < rhs; [ 0:35] 43 } [ 0:35] 44 [ 0:35] 45 bool operator()(int lhs, const std::pair &rhs) const { [ 0:35] 46 return lhs < rhs.first; [ 0:35] 47 } [ 0:35] 48 }; [ 0:35] 49 [ 0:35] 50 int main(int, char**) { [ 0:35] 51 std::set, Comp> s{{2, 1}, {1, 2}, {1, 3}, {1, 4}, {2, 2}}; [ 0:35] 52 [ 0:35] 53 auto er = s.equal_range(1); [ 0:35] 54 long nels = 0; [ 0:35] 55 [ 0:35] 56 for (auto it = er.first; it != er.second; it++) { [ 0:35] 57 assert(it->first == 1); [ 0:35] 58 nels++; [ 0:35] 59 } [ 0:35] 60 [ 0:35] 61 assert(nels == 3); [ 0:35] 62 [ 0:35] 63 return 0; [ 0:35] 64 } [ 0:35] # no errors were expected but one was found anyway