[ 0:00] compiling /home/xrockai/src/divine/nightly/test/libcxx/containers/tree_left_rotate.pass.cpp [ 0:00] In file included from /home/xrockai/src/divine/nightly/test/libcxx/containers/tree_left_rotate.pass.cpp:19: [ 0:00] In file included from /dios/libcxx/include/__tree:14: [ 0:00] In file included from /dios/libcxx/include/iterator:420: [ 0:00] In file included from /dios/libcxx/include/iosfwd:95: [ 0:00] In file included from /dios/libcxx/include/wchar.h:118: [ 0:00] In file included from /dios/include/wchar.h:9: [ 0:00] In file included from /dios/include/_PDCLIB/int.h:16: [ 0:00] /dios/include/_PDCLIB/cdefs.h:69:10: warning: Unsupported _ _cplusplus (__cplusplus) (too new) (supported: ISO/IEC 14882:1997, ISO/IEC 14882:2011). [ 0:00] #warning Unsupported _ _cplusplus (__cplusplus) (too new) (supported: ISO/IEC 14882:1997, ISO/IEC 14882:2011). [ 0:00] ^ [ 0:00] 1 warning generated. [ 0:01] compiling /dios/lib/config/seqklee.bc [ 0:01] setting up pass: functionmeta, options = [ 0:02] setting up pass: fuse-ctors, options = [ 0:02] KLEE: output directory is "/var/obj/divine-nightly/semidbg/test/__test_work_dir.12/_klee_out" [ 0:05] KLEE: Using Z3 solver backend [ 0:05] WARNING: this target does not support the llvm.stacksave intrinsic. [ 0:05] 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:05] [ 0:05] KLEE: WARNING: undefined reference to function: _Z10klee_abortv [ 0:09] KLEE: WARNING: undefined reference to function: __dios_tainted_init [ 0:09] KLEE: WARNING: undefined reference to function: klee_free [ 0:09] KLEE: WARNING: undefined reference to function: klee_malloc [ 0:09] KLEE: WARNING ONCE: Using zero size array fix for landingpad instruction filter [ 0:09] i:1 [ 0:09] KLEE: WARNING ONCE: Alignment of memory from call "klee_malloc" is not modelled. Using alignment of 8. [ 0:09] about to __boot:0 [ 0:09] about to run the scheduler:0 [ 0:09] KLEE: WARNING ONCE: calling external: __dios_tainted_init() at /dios/libc/sys/start.cpp:49 5 [ 0:09] KLEE: ERROR: /dios/libc/sys/start.cpp:87: failed external call: __dios_tainted_init [ 0:09] KLEE: NOTE: now ignoring this error at this location [ 0:09] KLEE: ERROR: EXITING ON ERROR: [ 0:09] Error: failed external call: __dios_tainted_init [ 0:09] File: /dios/libc/sys/start.cpp [ 0:09] Line: 87 [ 0:09] assembly.ll line: 64594 [ 0:09] Stack: [ 0:09] #000064594 in __dios_start (l=2, argc=1, argv=94271686578696, envp=94271686647816) at /dios/libc/sys/start.cpp:87 [ 0:09] #100012596 in _ZN6__dios10sched_nullINS_5ClockINS_10NondetKleeINS_4BaseEEEEEE13run_schedulerINS_7ContextEEEvv () at /dios/sys/sched_null.hpp:163 [ 0:09] #200073174 in klee_boot (argc=2, argv=94271660805504) at /dios/arch/klee/boot.c:41 [ 0:09] [ 0:09] [ 0:09] 1 /* TAGS: c++ fin */ [ 0:09] 2 /* CC_OPTS: -std=c++2a */ [ 0:09] 3 /* VERIFY_OPTS: -o nofail:malloc */ [ 0:09] 4 //===----------------------------------------------------------------------===// [ 0:09] 5 // [ 0:09] 6 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. [ 0:09] 7 // See https://llvm.org/LICENSE.txt for license information. [ 0:09] 8 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception [ 0:09] 9 // [ 0:09] 10 //===----------------------------------------------------------------------===// [ 0:09] 11 [ 0:09] 12 // Not a portable test [ 0:09] 13 [ 0:09] 14 // Precondition: __x->__right_ != nullptr [ 0:09] 15 // template [ 0:09] 16 // void [ 0:09] 17 // __tree_left_rotate(_NodePtr __x); [ 0:09] 18 [ 0:09] 19 #include <__tree> [ 0:09] 20 #include [ 0:09] 21 [ 0:09] 22 #include "test_macros.h" [ 0:09] 23 [ 0:09] 24 struct Node [ 0:09] 25 { [ 0:09] 26 Node* __left_; [ 0:09] 27 Node* __right_; [ 0:09] 28 Node* __parent_; [ 0:09] 29 [ 0:09] 30 Node* __parent_unsafe() const { return __parent_; } [ 0:09] 31 void __set_parent(Node* x) { __parent_ = x;} [ 0:09] 32 [ 0:09] 33 Node() : __left_(), __right_(), __parent_() {} [ 0:09] 34 }; [ 0:09] 35 [ 0:09] 36 void [ 0:09] 37 test1() [ 0:09] 38 { [ 0:09] 39 Node root; [ 0:09] 40 Node x; [ 0:09] 41 Node y; [ 0:09] 42 root.__left_ = &x; [ 0:09] 43 x.__left_ = 0; [ 0:09] 44 x.__right_ = &y; [ 0:09] 45 x.__parent_ = &root; [ 0:09] 46 y.__left_ = 0; [ 0:09] 47 y.__right_ = 0; [ 0:09] 48 y.__parent_ = &x; [ 0:09] 49 std::__tree_left_rotate(&x); [ 0:09] 50 assert(root.__parent_ == 0); [ 0:09] 51 assert(root.__left_ == &y); [ 0:09] 52 assert(root.__right_ == 0); [ 0:09] 53 assert(y.__parent_ == &root); [ 0:09] 54 assert(y.__left_ == &x); [ 0:09] 55 assert(y.__right_ == 0); [ 0:09] 56 assert(x.__parent_ == &y); [ 0:09] 57 assert(x.__left_ == 0); [ 0:09] 58 assert(x.__right_ == 0); [ 0:09] 59 } [ 0:09] 60 [ 0:09] 61 void [ 0:09] 62 test2() [ 0:09] 63 { [ 0:09] 64 Node root; [ 0:09] 65 Node x; [ 0:09] 66 Node y; [ 0:09] 67 Node a; [ 0:09] 68 Node b; [ 0:09] 69 Node c; [ 0:09] 70 root.__left_ = &x; [ 0:09] 71 x.__left_ = &a; [ 0:09] 72 x.__right_ = &y; [ 0:09] 73 x.__parent_ = &root; [ 0:09] 74 y.__left_ = &b; [ 0:09] 75 y.__right_ = &c; [ 0:09] 76 y.__parent_ = &x; [ 0:09] 77 a.__parent_ = &x; [ 0:09] 78 b.__parent_ = &y; [ 0:09] 79 c.__parent_ = &y; [ 0:09] 80 std::__tree_left_rotate(&x); [ 0:09] 81 assert(root.__parent_ == 0); [ 0:09] 82 assert(root.__left_ == &y); [ 0:09] 83 assert(root.__right_ == 0); [ 0:09] 84 assert(y.__parent_ == &root); [ 0:09] 85 assert(y.__left_ == &x); [ 0:09] 86 assert(y.__right_ == &c); [ 0:09] 87 assert(x.__parent_ == &y); [ 0:09] 88 assert(x.__left_ == &a); [ 0:09] 89 assert(x.__right_ == &b); [ 0:09] 90 assert(a.__parent_ == &x); [ 0:09] 91 assert(a.__left_ == 0); [ 0:09] 92 assert(a.__right_ == 0); [ 0:09] 93 assert(b.__parent_ == &x); [ 0:09] 94 assert(b.__left_ == 0); [ 0:09] 95 assert(b.__right_ == 0); [ 0:09] 96 assert(c.__parent_ == &y); [ 0:09] 97 assert(c.__left_ == 0); [ 0:09] 98 assert(c.__right_ == 0); [ 0:09] 99 } [ 0:09] 100 [ 0:09] 101 int main(int, char**) [ 0:09] 102 { [ 0:09] 103 test1(); [ 0:09] 104 test2(); [ 0:09] 105 [ 0:09] 106 return 0; [ 0:09] 107 } [ 0:09] # no errors were expected but one was found anyway