From 958354b2be749bb2d97b9600e2ab360e1e36e29f Mon Sep 17 00:00:00 2001 From: Artem Agvanian Date: Thu, 15 Aug 2024 09:38:40 -0700 Subject: [PATCH] Add extra tests for copy + delayed ub, split copy tests into multiple --- copy.log | 3056 ++++++++++++++++ copy_test.rs | 65 + delayed_ub.log | 3110 +++++++++++++++++ tests/expected/uninit/copy/copy.rs | 87 - .../uninit/copy/copy_without_padding.expected | 1 + .../uninit/copy/copy_without_padding.rs | 23 + tests/expected/uninit/copy/expected | 31 - .../copy/expose_padding_via_copy.expected | 11 + .../uninit/copy/expose_padding_via_copy.rs | 23 + ...xpose_padding_via_copy_convoluted.expected | 11 + .../expose_padding_via_copy_convoluted.rs | 43 + .../expose_padding_via_non_byte_copy.expected | 11 + .../copy/expose_padding_via_non_byte_copy.rs | 23 + .../non_byte_copy_without_padding.expected | 1 + .../copy/non_byte_copy_without_padding.rs | 23 + .../uninit/copy/read_after_copy.expected | 11 + tests/expected/uninit/copy/read_after_copy.rs | 23 + .../expected/uninit/delayed-ub/delayed-ub.rs | 31 + tests/expected/uninit/delayed-ub/expected | 12 +- 19 files changed, 6477 insertions(+), 119 deletions(-) create mode 100644 copy.log create mode 100644 copy_test.rs create mode 100644 delayed_ub.log delete mode 100644 tests/expected/uninit/copy/copy.rs create mode 100644 tests/expected/uninit/copy/copy_without_padding.expected create mode 100644 tests/expected/uninit/copy/copy_without_padding.rs delete mode 100644 tests/expected/uninit/copy/expected create mode 100644 tests/expected/uninit/copy/expose_padding_via_copy.expected create mode 100644 tests/expected/uninit/copy/expose_padding_via_copy.rs create mode 100644 tests/expected/uninit/copy/expose_padding_via_copy_convoluted.expected create mode 100644 tests/expected/uninit/copy/expose_padding_via_copy_convoluted.rs create mode 100644 tests/expected/uninit/copy/expose_padding_via_non_byte_copy.expected create mode 100644 tests/expected/uninit/copy/expose_padding_via_non_byte_copy.rs create mode 100644 tests/expected/uninit/copy/non_byte_copy_without_padding.expected create mode 100644 tests/expected/uninit/copy/non_byte_copy_without_padding.rs create mode 100644 tests/expected/uninit/copy/read_after_copy.expected create mode 100644 tests/expected/uninit/copy/read_after_copy.rs diff --git a/copy.log b/copy.log new file mode 100644 index 000000000000..cf2b25299340 --- /dev/null +++ b/copy.log @@ -0,0 +1,3056 @@ +Kani Rust Verifier 0.54.0 (standalone) +Checking harness read_after_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy15read_after_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0603114s +size of program expression: 2903 steps +slicing removed 2155 assignments +Generated 152 VCC(s), 75 remaining after simplification +Runtime Postprocess Equation: 0.000309334s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00475638s +Running propositional reduction +Post-processing +Runtime Post-process: 4.333e-06s +Solving with CaDiCaL 2.0.0 +10633 variables, 18469 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000306833s +Runtime decision procedure: 0.00522092s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10634 variables, 18470 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000140833s +Runtime decision procedure: 0.000201667s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10635 variables, 18471 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000125125s +Runtime decision procedure: 0.000181917s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10636 variables, 18472 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000124875s +Runtime decision procedure: 0.000180166s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10637 variables, 18473 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000549708s +Runtime decision procedure: 0.000608042s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10638 variables, 18474 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000149625s +Runtime decision procedure: 0.000204792s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10639 variables, 18475 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.002131s +Runtime decision procedure: 0.00218983s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10640 variables, 18476 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000936333s +Runtime decision procedure: 0.000996459s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10641 variables, 18477 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00155967s +Runtime decision procedure: 0.00158533s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 2: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 3: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 4: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 5: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 6: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 7: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 8: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 9: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 10: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 11: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 12: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 13: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 14: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 15: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 16: kani::mem_init::copy_init_state::<1, u8>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 17: kani::mem_init::copy_init_state::<1, u8>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 18: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 19: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 20: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 21: std::ptr::read::.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 22: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 23: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 24: std::ptr::read::.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 25: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 26: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 27: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 28: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 29: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 30: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 31: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 32: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 33: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 34: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 35: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 36: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 37: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 38: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 39: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 40: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 41: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 42: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 43: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 44: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 45: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 46: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 60: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 61: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 62: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 63: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 64: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 65: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 66: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 67: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 72: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 73: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 74: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 75: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 76: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 77: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 78: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 79: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 80: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 81: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 82: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 83: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 84: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + + +SUMMARY: + ** 2 of 84 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: + +VERIFICATION:- FAILED +Verification Time: 0.30027544s + +Checking harness non_byte_copy_without_padding... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy29non_byte_copy_without_padding.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0600532s +size of program expression: 2892 steps +slicing removed 2147 assignments +Generated 152 VCC(s), 77 remaining after simplification +Runtime Postprocess Equation: 0.000320708s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00540362s +Running propositional reduction +Post-processing +Runtime Post-process: 5.792e-06s +Solving with CaDiCaL 2.0.0 +11469 variables, 21081 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000383542s +Runtime decision procedure: 0.00596525s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11470 variables, 21082 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000124125s +Runtime decision procedure: 0.000187333s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11471 variables, 21083 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000122375s +Runtime decision procedure: 0.000184417s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11472 variables, 21084 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000468s +Runtime decision procedure: 0.000528541s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11473 variables, 21085 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000684458s +Runtime decision procedure: 0.000745375s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11474 variables, 21086 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000758375s +Runtime decision procedure: 0.000820042s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11475 variables, 21087 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00296775s +Runtime decision procedure: 0.00300129s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 2: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 3: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 4: kani::mem_init::copy_init_state::<4, u32>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<4, u32> + +Check 5: kani::mem_init::copy_init_state::<4, u32>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<4, u32> + +Check 6: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 7: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 8: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 9: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 10: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 11: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 12: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 13: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 14: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 15: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 16: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 17: std::ptr::read::.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 18: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 19: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 20: std::ptr::read::.assertion.2 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 21: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 22: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 23: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 24: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 25: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 26: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 27: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 28: kani::mem_init::MemoryInitializationState::copy::<4>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 29: kani::mem_init::MemoryInitializationState::copy::<4>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 30: kani::mem_init::MemoryInitializationState::copy::<4>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 31: kani::mem_init::MemoryInitializationState::copy::<4>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 32: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 33: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 34: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 35: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 36: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 37: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 38: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 39: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 40: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 41: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 42: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 43: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 44: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 45: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 46: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 61: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 62: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 63: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 64: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 65: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 66: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 67: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 72: kani::mem_init::MemoryInitializationState::copy::<4>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<4> + +Check 73: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 74: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 75: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 76: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 77: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 78: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 79: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 80: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 81: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 82: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 83: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 84: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + + +SUMMARY: + ** 0 of 84 failed (2 unreachable) + +VERIFICATION:- SUCCESSFUL +Verification Time: 0.2758621s + +Checking harness copy_without_padding... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy20copy_without_padding.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.062339s +size of program expression: 2895 steps +slicing removed 2151 assignments +Generated 152 VCC(s), 75 remaining after simplification +Runtime Postprocess Equation: 0.0003665s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00512625s +Running propositional reduction +Post-processing +Runtime Post-process: 5.917e-06s +Solving with CaDiCaL 2.0.0 +10636 variables, 18478 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000350625s +Runtime decision procedure: 0.005657s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10637 variables, 18479 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000474542s +Runtime decision procedure: 0.000549792s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10638 variables, 18480 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000142125s +Runtime decision procedure: 0.000211666s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10639 variables, 18481 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000212583s +Runtime decision procedure: 0.000280416s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10640 variables, 18482 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000286208s +Runtime decision procedure: 0.000350625s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10641 variables, 18483 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00373575s +Runtime decision procedure: 0.00379542s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10642 variables, 18484 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000164333s +Runtime decision procedure: 0.000227s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10643 variables, 18485 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00062425s +Runtime decision procedure: 0.000662375s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 2: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 3: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 4: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 5: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 6: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 7: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 8: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 9: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 10: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 11: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 12: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 13: std::ptr::read::.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 14: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 15: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 16: std::ptr::read::.assertion.2 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 17: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 18: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 19: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 20: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 21: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 22: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 23: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 24: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 25: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 26: kani::mem_init::copy_init_state::<1, u8>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 27: kani::mem_init::copy_init_state::<1, u8>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 28: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 29: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 30: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 31: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 32: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 33: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 34: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 35: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 36: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 37: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 38: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 39: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 40: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 41: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 42: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 43: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 44: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 45: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 46: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 47: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 48: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 61: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 62: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 63: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 64: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 65: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 66: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 67: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 72: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 73: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 74: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 75: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 76: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 77: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 78: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 79: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 80: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 81: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 82: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 83: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 84: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + + +SUMMARY: + ** 0 of 84 failed (2 unreachable) + +VERIFICATION:- SUCCESSFUL +Verification Time: 0.28310663s + +Checking harness expose_padding_via_non_byte_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy32expose_padding_via_non_byte_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0592785s +size of program expression: 2898 steps +slicing removed 2149 assignments +Generated 152 VCC(s), 77 remaining after simplification +Runtime Postprocess Equation: 0.000263417s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.0052615s +Running propositional reduction +Post-processing +Runtime Post-process: 4.375e-06s +Solving with CaDiCaL 2.0.0 +11465 variables, 21055 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000343042s +Runtime decision procedure: 0.00576629s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11466 variables, 21056 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00042625s +Runtime decision procedure: 0.000490916s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11467 variables, 21057 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000118875s +Runtime decision procedure: 0.000180875s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11468 variables, 21058 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000165125s +Runtime decision procedure: 0.000225s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11469 variables, 21059 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000505208s +Runtime decision procedure: 0.000564167s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11470 variables, 21060 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000328709s +Runtime decision procedure: 0.000386584s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11471 variables, 21061 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000152292s +Runtime decision procedure: 0.000212709s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11472 variables, 21062 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000122s +Runtime decision procedure: 0.000177958s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +11473 variables, 21063 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00398633s +Runtime decision procedure: 0.00401358s + +RESULTS: +Check 1: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 2: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 3: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 4: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 5: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 6: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 7: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 8: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 9: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 10: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 11: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 12: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 13: kani::mem_init::copy_init_state::<8, u64>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<8, u64> + +Check 14: kani::mem_init::copy_init_state::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<8, u64> + +Check 15: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 16: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 17: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 18: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 19: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 20: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 21: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 22: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 23: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 24: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 25: std::ptr::read::.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 26: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 27: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 28: std::ptr::read::.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 29: kani::mem_init::MemoryInitializationState::copy::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 30: kani::mem_init::MemoryInitializationState::copy::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 31: kani::mem_init::MemoryInitializationState::copy::<8>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 32: kani::mem_init::MemoryInitializationState::copy::<8>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 33: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 34: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 35: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 36: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 37: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 38: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 39: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 40: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 41: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 42: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 43: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 44: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 45: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 46: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 61: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 62: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 63: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 64: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 65: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 66: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 67: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 68: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 69: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 70: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 71: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 72: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 73: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 74: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 75: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 76: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 77: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 78: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 79: kani::mem_init::MemoryInitializationState::copy::<8>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<8> + +Check 80: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 81: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 82: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 83: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 84: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + + +SUMMARY: + ** 2 of 84 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: + +VERIFICATION:- FAILED +Verification Time: 0.29934272s + +Checking harness expose_padding_via_copy_convoluted... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy34expose_padding_via_copy_convoluted.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0893441s +size of program expression: 4407 steps +slicing removed 3307 assignments +Generated 248 VCC(s), 119 remaining after simplification +Runtime Postprocess Equation: 0.000420917s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00726808s +Running propositional reduction +Post-processing +Runtime Post-process: 5.042e-06s +Solving with CaDiCaL 2.0.0 +15789 variables, 29065 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000650083s +Runtime decision procedure: 0.00814646s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15790 variables, 29066 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.0001515s +Runtime decision procedure: 0.000229916s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15791 variables, 29067 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000410917s +Runtime decision procedure: 0.000499458s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15792 variables, 29068 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000323667s +Runtime decision procedure: 0.000406083s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15793 variables, 29069 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000206833s +Runtime decision procedure: 0.000285459s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15794 variables, 29070 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00772033s +Runtime decision procedure: 0.00781621s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15795 variables, 29071 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000299583s +Runtime decision procedure: 0.000398292s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15796 variables, 29072 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.0036705s +Runtime decision procedure: 0.00375417s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15797 variables, 29073 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000403708s +Runtime decision procedure: 0.000492667s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +15798 variables, 29074 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00368708s +Runtime decision procedure: 0.003727s + +RESULTS: +Check 1: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 2: kani::mem_init::MemoryInitializationState::get::<4>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<4> + +Check 3: kani::mem_init::MemoryInitializationState::get::<4>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<4> + +Check 4: kani::mem_init::MemoryInitializationState::get::<4>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<4> + +Check 5: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 6: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 7: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 8: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 9: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 10: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 11: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 12: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 13: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 14: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 15: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 16: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 17: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 18: std::ptr::read::.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 19: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 20: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 21: std::ptr::read::.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 22: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 23: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 24: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 25: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 26: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 27: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 28: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 29: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 30: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 31: kani::mem_init::copy_init_state::<1, u8>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 32: kani::mem_init::copy_init_state::<1, u8>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 33: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 34: kani::mem_init::is_ptr_initialized::<4, u32>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<4, u32> + +Check 35: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 36: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 37: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 38: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 39: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 40: std::ptr::read::.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u32`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 41: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 42: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 43: std::ptr::read::.assertion.2 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u32`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 44: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 45: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 46: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 47: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 48: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 49: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 50: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 51: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 52: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 53: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 54: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 55: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 56: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 57: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 58: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 61: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 62: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 63: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 64: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 65: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 66: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 67: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 72: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 73: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 74: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 75: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 76: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 77: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 78: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 79: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 80: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 81: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 82: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 83: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 84: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 85: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 86: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 87: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 88: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 89: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 90: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 91: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 92: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 93: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 94: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 95: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 96: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 97: kani::mem_init::MemoryInitializationState::get::<4>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<4> + +Check 98: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 99: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + + +SUMMARY: + ** 2 of 99 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: + +VERIFICATION:- FAILED +Verification Time: 0.43218398s + +Checking harness expose_padding_via_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/copy/copy__RNvCsfyyEf2ekUoW_4copy23expose_padding_via_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0617927s +size of program expression: 2903 steps +slicing removed 2155 assignments +Generated 152 VCC(s), 75 remaining after simplification +Runtime Postprocess Equation: 0.0003425s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00482938s +Running propositional reduction +Post-processing +Runtime Post-process: 4.5e-06s +Solving with CaDiCaL 2.0.0 +10636 variables, 18478 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000333917s +Runtime decision procedure: 0.005322s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10637 variables, 18479 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000431458s +Runtime decision procedure: 0.000496041s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10638 variables, 18480 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000125333s +Runtime decision procedure: 0.000184834s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10639 variables, 18481 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000166459s +Runtime decision procedure: 0.000223458s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10640 variables, 18482 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00025s +Runtime decision procedure: 0.000316125s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10641 variables, 18483 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000200959s +Runtime decision procedure: 0.0002635s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10642 variables, 18484 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.0045165s +Runtime decision procedure: 0.00455458s + +RESULTS: +Check 1: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 2: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 3: kani::mem_init::is_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<8, u64> + +Check 4: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 5: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 6: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 7: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 8: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 9: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 10: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 11: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 12: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 13: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 14: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 15: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 16: std::ptr::read::.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 17: std::ptr::read::.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 18: std::ptr::read::.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 19: std::ptr::read::.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 20: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 21: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 22: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 23: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 24: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 25: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 26: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 27: kani::mem_init::copy_init_state::<1, u8>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 28: kani::mem_init::copy_init_state::<1, u8>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 29: kani::mem_init::MemoryInitializationState::get::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 30: kani::mem_init::MemoryInitializationState::get::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 31: kani::mem_init::MemoryInitializationState::get::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 32: kani::mem_init::set_ptr_initialized::<8, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, S> + +Check 33: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 34: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 35: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 36: kani::mem_init::MemoryInitializationState::get::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<8> + +Check 37: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 38: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 39: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 40: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 41: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 42: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 43: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 44: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 45: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 46: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 61: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 62: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 63: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 64: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 65: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 66: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 67: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 72: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 73: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 74: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 75: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 76: std::ptr::read::.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 77: std::ptr::read::.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 78: std::ptr::read::.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 79: std::ptr::read::.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 80: std::ptr::read::.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 81: std::ptr::read::.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1399:9 in function std::ptr::read:: + +Check 82: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 83: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 84: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + + +SUMMARY: + ** 2 of 84 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u64` + File: "/Users/nartagva/.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs", line 1399, in std::ptr::read:: + +VERIFICATION:- FAILED +Verification Time: 0.30055296s + +Summary: +Verification failed for - read_after_copy +Verification failed for - expose_padding_via_non_byte_copy +Verification failed for - expose_padding_via_copy_convoluted +Verification failed for - expose_padding_via_copy +Complete - 2 successfully verified harnesses, 4 failures, 6 total. diff --git a/copy_test.rs b/copy_test.rs new file mode 100644 index 000000000000..c58205007d58 --- /dev/null +++ b/copy_test.rs @@ -0,0 +1,65 @@ +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +// #[kani::proof] +// fn delayed_ub_double_copy() { +// unsafe { +// let mut value: u128 = 0; +// let ptr = &mut value as *mut _ as *mut (u8, u32, u64); +// // Use `copy_nonoverlapping` in an attempt to remove the taint. +// std::ptr::write(ptr, (4, 4, 4)); +// // Instead of assigning the value into a delayed UB place, copy it from another delayed UB +// // place. +// let mut value_2: u128 = 0; +// let ptr_2 = &mut value_2 as *mut _ as *mut (u8, u32, u64); +// std::ptr::copy(ptr_2, ptr, 1); // This should not trigger UB since the copy is untyped. +// assert!(value_2 > 0); // UB: This reads a padding value! +// } +// } + +// #[kani::proof] +// fn delayed_ub_trigger_copy() { +// unsafe { +// let mut value: u128 = 0; +// let ptr = &mut value as *mut _ as *mut u8; // This cast should not be a delayed UB source. +// let mut value_different_padding: (u8, u32, u64) = (4, 4, 4); +// let ptr_different_padding = &mut value_different_padding as *mut _ as *mut u8; +// std::ptr::copy(ptr_different_padding, ptr, std::mem::size_of::()); // This is a delayed UB source. +// assert!(value > 0); // UB: This reads a padding value! +// } +// } + +#[kani::proof] +/// This checks that reading copied uninitialized bytes fails an assertion. +unsafe fn expose_padding_via_copy_convoluted() { + unsafe fn copy_and_read_helper(from_ptr: *const S, to_ptr: *mut u64) -> u64 { + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + // This reads uninitialized bytes, which is UB. + let padding: u64 = std::ptr::read(to_ptr); + padding + } + + unsafe fn partial_copy_and_read_helper(from_ptr: *const S, to_ptr: *mut u64) -> u32 { + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + // This does not read uninitialized bytes. + let not_padding: u32 = std::ptr::read(to_ptr as *mut u32); + not_padding + } + + let flag: bool = kani::any(); + + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + if flag { + copy_and_read_helper(from_ptr, to_ptr); + } else { + partial_copy_and_read_helper(from_ptr, to_ptr); + } +} diff --git a/delayed_ub.log b/delayed_ub.log new file mode 100644 index 000000000000..3fcd5582120f --- /dev/null +++ b/delayed_ub.log @@ -0,0 +1,3110 @@ +Kani Rust Verifier 0.54.0 (standalone) +Checking harness delayed_ub_trigger_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub23delayed_ub_trigger_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0582361s +size of program expression: 2829 steps +slicing removed 2124 assignments +Generated 136 VCC(s), 66 remaining after simplification +Runtime Postprocess Equation: 0.000252333s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00473142s +Running propositional reduction +Post-processing +Runtime Post-process: 4.208e-06s +Solving with CaDiCaL 2.0.0 +10643 variables, 19220 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000285041s +Runtime decision procedure: 0.00524683s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10644 variables, 19221 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00012s +Runtime decision procedure: 0.000178416s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10645 variables, 19222 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.7042e-05s +Runtime decision procedure: 0.000143209s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10646 variables, 19223 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.3667e-05s +Runtime decision procedure: 0.000139792s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10647 variables, 19224 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 9.1e-05s +Runtime decision procedure: 0.000145s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10648 variables, 19225 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000244833s +Runtime decision procedure: 0.000298459s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10649 variables, 19226 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00358633s +Runtime decision procedure: 0.00363883s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10650 variables, 19227 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 5.4584e-05s +Runtime decision procedure: 0.00010775s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +10651 variables, 19228 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 2.1167e-05s +Runtime decision procedure: 4.2833e-05s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 2: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 3: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 4: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 5: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 6: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 7: kani::mem_init::MemoryInitializationState::copy::<1>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 8: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 9: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 10: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 11: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 12: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 13: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 14: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 15: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 16: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 17: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 18: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 19: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 20: kani::mem_init::copy_init_state::<1, u8>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 21: kani::mem_init::copy_init_state::<1, u8>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<1, u8> + +Check 22: std::intrinsics::copy::.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 23: std::intrinsics::copy::.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 24: std::intrinsics::copy::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 25: delayed_ub_trigger_copy.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:195:17 in function delayed_ub_trigger_copy + +Check 26: delayed_ub_trigger_copy.assertion.2 + - Status: SUCCESS + - Description: "assertion failed: value > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:195:9 in function delayed_ub_trigger_copy + +Check 27: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 28: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 29: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 30: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 31: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 32: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 33: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 34: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 35: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 36: std::intrinsics::copy::.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 37: std::intrinsics::copy::.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy:: + +Check 38: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 39: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 40: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 41: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 42: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 43: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 44: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 45: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 46: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 61: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 62: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 63: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 64: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 65: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 66: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 67: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 68: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 71: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 72: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 73: kani::mem_init::MemoryInitializationState::copy::<1>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<1> + +Check 74: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 75: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 76: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + + +SUMMARY: + ** 1 of 76 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 195, in delayed_ub_trigger_copy + +VERIFICATION:- FAILED +Verification Time: 0.2701581s + +Checking harness delayed_ub_slices... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub17delayed_ub_slices.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0916408s +size of program expression: 4449 steps +slicing removed 3356 assignments +Generated 155 VCC(s), 82 remaining after simplification +Runtime Postprocess Equation: 0.00051125s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00778604s +Running propositional reduction +Post-processing +Runtime Post-process: 4.625e-06s +Solving with CaDiCaL 2.0.0 +17979 variables, 28089 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000469875s +Runtime decision procedure: 0.00848017s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +17980 variables, 28090 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000474292s +Runtime decision procedure: 0.000564417s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +17981 variables, 28091 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000338083s +Runtime decision procedure: 0.000428875s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +17982 variables, 28092 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000151792s +Runtime decision procedure: 0.000233792s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +17983 variables, 28093 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00211983s +Runtime decision procedure: 0.00215238s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 2: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 3: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 4: as std::slice::SliceIndex<[u128]>>::index_mut.unreachable.1 + - Status: SUCCESS + - Description: "unreachable code" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:474:5 in function as std::slice::SliceIndex<[u128]>>::index_mut + +Check 5: as std::slice::SliceIndex<[u128]>>::index_mut.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut [u128]`" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:482:18 in function as std::slice::SliceIndex<[u128]>>::index_mut + +Check 6: kani::mem_init::set_ptr_initialized::<8, usize>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, usize> + +Check 7: core::slice::index::slice_index_order_fail_rt.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:85:5 in function core::slice::index::slice_index_order_fail_rt + +Check 8: kani::mem_init::is_slice_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:261:14 in function kani::mem_init::is_slice_ptr_initialized::<16, u128> + +Check 9: delayed_ub_slices.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `[u128]`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:180:24 in function delayed_ub_slices + +Check 10: delayed_ub_slices.assertion.2 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:180:24 in function delayed_ub_slices + +Check 11: delayed_ub_slices.assertion.3 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 12: delayed_ub_slices.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 13: delayed_ub_slices.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 14: delayed_ub_slices.assertion.4 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `[u128; 4]`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:182:24 in function delayed_ub_slices + +Check 15: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 16: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 17: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 18: kani::mem_init::MemoryInitializationState::set_slice::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:164:47 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 19: kani::mem_init::MemoryInitializationState::set_slice::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:164:38 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 20: kani::mem_init::MemoryInitializationState::set_slice::<16>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:166:33 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 21: kani::mem_init::MemoryInitializationState::set_slice::<16>.assertion.4 + - Status: SUCCESS + - Description: "attempt to calculate the remainder with a divisor of zero" + - Location: library/kani/src/mem_init.rs:166:33 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 22: kani::mem_init::MemoryInitializationState::set_slice::<16>.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "attempt to calculate the remainder with a divisor of zero" + - Location: library/kani/src/mem_init.rs:166:33 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 23: kani::mem_init::MemoryInitializationState::set_slice::<16>.assertion.5 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:166:26 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 24: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 25: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 26: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 27: kani::mem_init::set_ptr_initialized::<8, (u8, u32)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, (u8, u32)> + +Check 28: kani::mem_init::MemoryInitializationState::set::<64>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<64> + +Check 29: kani::mem_init::MemoryInitializationState::set::<64>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<64> + +Check 30: kani::mem_init::MemoryInitializationState::set::<64>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<64> + +Check 31: kani::mem_init::set_ptr_initialized::<64, [u128; 4]>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<64, [u128; 4]> + +Check 32: core::slice::index::slice_end_index_len_fail_rt.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:64:5 in function core::slice::index::slice_end_index_len_fail_rt + +Check 33: kani::mem_init::set_slice_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:277:9 in function kani::mem_init::set_slice_ptr_initialized::<16, u128> + +Check 34: kani::mem_init::is_ptr_initialized::<64, [u128; 4]>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<64, [u128; 4]> + +Check 35: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 36: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 37: core::num::::checked_sub.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "attempt to compute `unchecked_sub` which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/num/uint_macros.rs:665:31 in function core::num::::checked_sub + +Check 38: core::slice::index::get_mut_noubcheck::.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "offset: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:124:14 in function core::slice::index::get_mut_noubcheck:: + +Check 39: core::slice::index::get_mut_noubcheck::.arithmetic_overflow.2 + - Status: SUCCESS + - Description: "attempt to compute offset which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/slice/index.rs:124:14 in function core::slice::index::get_mut_noubcheck:: + +Check 40: kani::mem_init::MemoryInitializationState::get_slice::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:138:47 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 41: kani::mem_init::MemoryInitializationState::get_slice::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:138:38 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 42: kani::mem_init::MemoryInitializationState::get_slice::<16>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:140:21 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 43: kani::mem_init::MemoryInitializationState::get_slice::<16>.assertion.4 + - Status: SUCCESS + - Description: "attempt to calculate the remainder with a divisor of zero" + - Location: library/kani/src/mem_init.rs:140:21 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 44: kani::mem_init::MemoryInitializationState::get_slice::<16>.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "attempt to calculate the remainder with a divisor of zero" + - Location: library/kani/src/mem_init.rs:140:21 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 45: kani::mem_init::MemoryInitializationState::get_slice::<16>.assertion.5 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:140:14 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 46: kani::mem_init::MemoryInitializationState::get::<64>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<64> + +Check 47: kani::mem_init::MemoryInitializationState::get::<64>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<64> + +Check 48: kani::mem_init::MemoryInitializationState::get::<64>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<64> + +Check 49: kani::mem_init::MemoryInitializationState::get::<64>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<64> + +Check 50: kani::mem_init::MemoryInitializationState::get_slice::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:140:14 in function kani::mem_init::MemoryInitializationState::get_slice::<16> + +Check 51: kani::mem_init::MemoryInitializationState::set::<64>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<64> + +Check 52: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 53: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 54: delayed_ub_slices.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 55: delayed_ub_slices.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 56: delayed_ub_slices.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 57: delayed_ub_slices.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 58: delayed_ub_slices.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 59: delayed_ub_slices.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:181:9 in function delayed_ub_slices + +Check 60: std::fmt::Arguments::<'_>::new_v1::<2, 2>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:350:34 in function std::fmt::Arguments::<'_>::new_v1::<2, 2> + +Check 61: kani::mem_init::MemoryInitializationState::set_slice::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:166:26 in function kani::mem_init::MemoryInitializationState::set_slice::<16> + +Check 62: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + + +SUMMARY: + ** 1 of 62 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `[u128; 4]` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 182, in delayed_ub_slices + +VERIFICATION:- FAILED +Verification Time: 0.4408636s + +Checking harness delayed_ub_structs... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub18delayed_ub_structs.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0431632s +size of program expression: 1940 steps +slicing removed 1521 assignments +Generated 76 VCC(s), 43 remaining after simplification +Runtime Postprocess Equation: 0.00023825s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00371521s +Running propositional reduction +Post-processing +Runtime Post-process: 5.708e-06s +Solving with CaDiCaL 2.0.0 +7919 variables, 16305 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00026225s +Runtime decision procedure: 0.00411071s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7920 variables, 16306 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000104334s +Runtime decision procedure: 0.000153917s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7921 variables, 16307 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000204917s +Runtime decision procedure: 0.000248375s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7922 variables, 16308 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.4125e-05s +Runtime decision procedure: 0.000128459s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7923 variables, 16309 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00120254s +Runtime decision procedure: 0.00124617s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7924 variables, 16310 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000816625s +Runtime decision procedure: 0.000837209s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<8>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 2: kani::mem_init::MemoryInitializationState::set::<8>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 3: kani::mem_init::MemoryInitializationState::set::<8>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 4: kani::mem_init::set_ptr_initialized::<8, u64>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, u64> + +Check 5: kani::mem_init::is_ptr_initialized::<32, U>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<32, U> + +Check 6: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 7: kani::mem_init::MemoryInitializationState::set::<32>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<32> + +Check 8: kani::mem_init::MemoryInitializationState::set::<32>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<32> + +Check 9: kani::mem_init::MemoryInitializationState::set::<32>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<32> + +Check 10: delayed_ub_structs.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 11: delayed_ub_structs.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 12: delayed_ub_structs.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 13: delayed_ub_structs.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `U`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:169:20 in function delayed_ub_structs + +Check 14: kani::mem_init::set_ptr_initialized::<32, S>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<32, S> + +Check 15: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 16: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 17: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 18: kani::mem_init::set_ptr_initialized::<8, (u8, u32)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<8, (u8, u32)> + +Check 19: kani::mem_init::MemoryInitializationState::get::<32>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<32> + +Check 20: kani::mem_init::MemoryInitializationState::get::<32>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<32> + +Check 21: kani::mem_init::MemoryInitializationState::get::<32>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<32> + +Check 22: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 23: kani::mem_init::MemoryInitializationState::get::<32>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<32> + +Check 24: kani::mem_init::MemoryInitializationState::set::<8>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<8> + +Check 25: delayed_ub_structs.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 26: delayed_ub_structs.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 27: delayed_ub_structs.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 28: delayed_ub_structs.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 29: delayed_ub_structs.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 30: delayed_ub_structs.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:168:9 in function delayed_ub_structs + +Check 31: kani::mem_init::MemoryInitializationState::set::<32>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<32> + + +SUMMARY: + ** 1 of 31 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `U` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 169, in delayed_ub_structs + +VERIFICATION:- FAILED +Verification Time: 0.15272857s + +Checking harness delayed_ub_double_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub22delayed_ub_double_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0709977s +size of program expression: 3265 steps +slicing removed 2449 assignments +Generated 160 VCC(s), 78 remaining after simplification +Runtime Postprocess Equation: 0.000373292s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00630229s +Running propositional reduction +Post-processing +Runtime Post-process: 5.75e-06s +Solving with CaDiCaL 2.0.0 +13436 variables, 24490 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00034475s +Runtime decision procedure: 0.00685504s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13437 variables, 24491 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000159125s +Runtime decision procedure: 0.000238625s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13438 variables, 24492 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000131166s +Runtime decision procedure: 0.000207292s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13439 variables, 24493 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000109542s +Runtime decision procedure: 0.000185167s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13440 variables, 24494 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00012125s +Runtime decision procedure: 0.000192625s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13441 variables, 24495 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000112167s +Runtime decision procedure: 0.0001815s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13442 variables, 24496 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000223542s +Runtime decision procedure: 0.000307708s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13443 variables, 24497 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000111125s +Runtime decision procedure: 0.000184125s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +13444 variables, 24498 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00227137s +Runtime decision procedure: 0.00230862s + +RESULTS: +Check 1: std::intrinsics::copy::<(u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "`src` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy::<(u8, u32, u64)> + +Check 2: std::intrinsics::copy::<(u8, u32, u64)>.safety_check.2 + - Status: SUCCESS + - Description: "`dst` must be properly aligned" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy::<(u8, u32, u64)> + +Check 3: std::intrinsics::copy::<(u8, u32, u64)>.arithmetic_overflow.1 + - Status: SUCCESS + - Description: "copy: attempt to compute number in bytes which would overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy::<(u8, u32, u64)> + +Check 4: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 5: kani::mem_init::MemoryInitializationState::copy::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to multiply with overflow" + - Location: library/kani/src/mem_init.rs:110:52 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 6: kani::mem_init::MemoryInitializationState::copy::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:110:38 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 7: kani::mem_init::MemoryInitializationState::copy::<16>.assertion.3 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:115:40 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 8: kani::mem_init::MemoryInitializationState::copy::<16>.assertion.4 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 9: std::ptr::const_ptr::::is_aligned_to::runtime_impl.assertion.1 + - Status: UNREACHABLE + - Description: "attempt to subtract with overflow" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1566:26 in function std::ptr::const_ptr::::is_aligned_to::runtime_impl + +Check 10: kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 11: kani::mem_init::copy_init_state::<16, (u8, u32, u64)>.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut kani::mem_init::MemoryInitializationState`" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<16, (u8, u32, u64)> + +Check 12: kani::mem_init::copy_init_state::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:321:9 in function kani::mem_init::copy_init_state::<16, (u8, u32, u64)> + +Check 13: core::panicking::panic_nounwind_fmt::runtime.unsupported_construct.1 + - Status: SUCCESS + - Description: "call to foreign "Rust" function `rust_begin_unwind` is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/new/choose" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panicking.rs:100:13 in function core::panicking::panic_nounwind_fmt::runtime + +Check 14: std::ptr::const_ptr::::is_aligned_to.assertion.1 + - Status: SUCCESS + - Description: "This is a placeholder message; Kani doesn't support message formatted at runtime" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/const_ptr.rs:1561:13 in function std::ptr::const_ptr::::is_aligned_to + +Check 15: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 16: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 17: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 18: delayed_ub_double_copy.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:141:17 in function delayed_ub_double_copy + +Check 19: delayed_ub_double_copy.assertion.2 + - Status: SUCCESS + - Description: "assertion failed: value_2 > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:141:9 in function delayed_ub_double_copy + +Check 20: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 21: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 22: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 23: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 24: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 25: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 26: std::ptr::write::<(u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 27: std::ptr::write::<(u8, u32, u64)>.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 28: std::panic::Location::<'_>::caller.assertion.1 + - Status: UNREACHABLE + - Description: "Kani does not support reasoning about memory initialization of intrinsic `Unimplemented { name: "caller_location", issue_link: "https://github.com/model-checking/kani/issues/374" }`." + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 29: std::panic::Location::<'_>::caller.unsupported_construct.1 + - Status: SUCCESS + - Description: "caller_location is not currently supported by Kani. Please post your example at https://github.com/model-checking/kani/issues/374" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/panic/location.rs:89:9 in function std::panic::Location::<'_>::caller + +Check 30: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 31: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 32: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 33: kani::mem_init::MemoryInitializationState::get::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 34: kani::mem_init::MemoryInitializationState::get::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 35: kani::mem_init::MemoryInitializationState::get::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 36: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 37: std::fmt::Arguments::<'_>::new_const::<1>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/fmt/mod.rs:339:34 in function std::fmt::Arguments::<'_>::new_const::<1> + +Check 38: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 39: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 40: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 41: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 42: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 43: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 44: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 45: kani::mem_init::MemoryInitializationState::get::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<24> + +Check 46: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 47: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 48: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 49: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 50: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 51: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 52: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:108:12 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 53: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 54: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 55: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 56: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 57: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 58: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:109:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 59: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.13 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 60: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.14 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 61: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.15 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 62: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.16 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 63: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.17 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 64: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.18 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:110:16 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 65: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.19 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 66: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.20 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 67: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.21 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 68: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.22 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 69: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.23 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 70: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.24 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:114:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 71: pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + +Check 72: pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + +Check 73: pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + +Check 74: pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + +Check 75: pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + +Check 76: pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + +Check 77: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.25 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 78: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.26 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 79: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.27 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 80: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.28 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 81: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.29 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 82: kani::mem_init::MemoryInitializationState::copy::<16>.pointer_dereference.30 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: library/kani/src/mem_init.rs:115:17 in function kani::mem_init::MemoryInitializationState::copy::<16> + +Check 83: std::intrinsics::copy::<(u8, u32, u64)>.precondition_instance.1 + - Status: SUCCESS + - Description: "memmove source region readable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy::<(u8, u32, u64)> + +Check 84: std::intrinsics::copy::<(u8, u32, u64)>.precondition_instance.2 + - Status: SUCCESS + - Description: "memmove destination region writeable" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/intrinsics.rs:3133:9 in function std::intrinsics::copy::<(u8, u32, u64)> + + +SUMMARY: + ** 1 of 84 failed (2 unreachable) +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 141, in delayed_ub_double_copy + +VERIFICATION:- FAILED +Verification Time: 0.3339621s + +Checking harness delayed_ub_copy... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub15delayed_ub_copy.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.038911s +size of program expression: 1902 steps +slicing removed 1476 assignments +Generated 76 VCC(s), 40 remaining after simplification +Runtime Postprocess Equation: 0.000163333s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00295083s +Running propositional reduction +Post-processing +Runtime Post-process: 4.625e-06s +Solving with CaDiCaL 2.0.0 +7490 variables, 11568 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000210667s +Runtime decision procedure: 0.00327133s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7491 variables, 11569 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 7.7209e-05s +Runtime decision procedure: 0.000123083s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7492 variables, 11570 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000163333s +Runtime decision procedure: 0.000203166s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7493 variables, 11571 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000137834s +Runtime decision procedure: 0.000179917s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7494 variables, 11572 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 7.925e-05s +Runtime decision procedure: 0.000124833s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7495 variables, 11573 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000535583s +Runtime decision procedure: 0.000556625s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 2: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 3: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 4: std::ptr::write::<(u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 5: std::ptr::write::<(u8, u32, u64)>.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 6: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 7: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 8: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 9: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 10: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 11: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 12: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 13: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 14: delayed_ub_copy.assertion.1 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:123:17 in function delayed_ub_copy + +Check 15: delayed_ub_copy.assertion.2 + - Status: SUCCESS + - Description: "assertion failed: value > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:123:9 in function delayed_ub_copy + +Check 16: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 17: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 18: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 19: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 20: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 21: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 22: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 23: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 24: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 25: std::ptr::write::<(u8, u32, u64)>.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: ../.rustup/toolchains/nightly-2024-08-07-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/ptr/mod.rs:1608:9 in function std::ptr::write::<(u8, u32, u64)> + +Check 26: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + + +SUMMARY: + ** 1 of 26 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 123, in delayed_ub_copy + +VERIFICATION:- FAILED +Verification Time: 0.13153508s + +Checking harness delayed_ub_closure_capture_laundered... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub36delayed_ub_closure_capture_laundered.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0431448s +size of program expression: 2038 steps +slicing removed 1568 assignments +Generated 94 VCC(s), 58 remaining after simplification +Runtime Postprocess Equation: 0.000224292s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00316492s +Running propositional reduction +Post-processing +Runtime Post-process: 0.000307834s +Solving with CaDiCaL 2.0.0 +7746 variables, 12065 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.00049775s +Runtime decision procedure: 0.00378896s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7747 variables, 12066 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.725e-05s +Runtime decision procedure: 0.000137583s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7748 variables, 12067 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000178083s +Runtime decision procedure: 0.000222916s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7749 variables, 12068 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000107917s +Runtime decision procedure: 0.0001525s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7750 variables, 12069 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000277s +Runtime decision procedure: 0.00029775s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 2: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 3: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 4: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 5: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 6: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 7: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 8: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 9: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 10: delayed_ub_closure_capture_laundered::{closure#0}.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:104:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 11: delayed_ub_closure_capture_laundered::{closure#0}.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:105:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 12: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 13: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 14: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 15: delayed_ub_closure_capture_laundered.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 16: delayed_ub_closure_capture_laundered.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 17: delayed_ub_closure_capture_laundered.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 18: delayed_ub_closure_capture_laundered.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:111:17 in function delayed_ub_closure_capture_laundered + +Check 19: delayed_ub_closure_capture_laundered.assertion.3 + - Status: SUCCESS + - Description: "assertion failed: value > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:111:9 in function delayed_ub_closure_capture_laundered + +Check 20: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 21: delayed_ub_closure_capture_laundered.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 22: delayed_ub_closure_capture_laundered.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 23: delayed_ub_closure_capture_laundered.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 24: delayed_ub_closure_capture_laundered.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 25: delayed_ub_closure_capture_laundered.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 26: delayed_ub_closure_capture_laundered.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:110:9 in function delayed_ub_closure_capture_laundered + +Check 27: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 28: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 29: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 30: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 31: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 32: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 33: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 34: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 35: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 36: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 37: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 38: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 39: delayed_ub_closure_capture_laundered::{closure#0}.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:100:21 in function delayed_ub_closure_capture_laundered::{closure#0} + +Check 40: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 41: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + + +SUMMARY: + ** 1 of 41 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 111, in delayed_ub_closure_capture_laundered + +VERIFICATION:- FAILED +Verification Time: 0.15912595s + +Checking harness delayed_ub_closure_laundered... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub28delayed_ub_closure_laundered.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.04168s +size of program expression: 2023 steps +slicing removed 1557 assignments +Generated 82 VCC(s), 58 remaining after simplification +Runtime Postprocess Equation: 0.000187667s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00316992s +Running propositional reduction +Post-processing +Runtime Post-process: 0.000220208s +Solving with CaDiCaL 2.0.0 +7876 variables, 12145 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000420708s +Runtime decision procedure: 0.00371563s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7877 variables, 12146 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.4e-05s +Runtime decision procedure: 0.000132041s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7878 variables, 12147 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.0001595s +Runtime decision procedure: 0.000204292s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7879 variables, 12148 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 6.0291e-05s +Runtime decision procedure: 0.000103167s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7880 variables, 12149 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 9.4708e-05s +Runtime decision procedure: 0.000140542s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7881 variables, 12150 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 6.2166e-05s +Runtime decision procedure: 0.000106667s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7882 variables, 12151 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000480125s +Runtime decision procedure: 0.00052575s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7883 variables, 12152 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000285833s +Runtime decision procedure: 0.000307791s + +RESULTS: +Check 1: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 2: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 3: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 4: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 5: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 6: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 7: delayed_ub_closure_laundered::{closure#0}.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:81:21 in function delayed_ub_closure_laundered::{closure#0} + +Check 8: delayed_ub_closure_laundered::{closure#0}.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:82:21 in function delayed_ub_closure_laundered::{closure#0} + +Check 9: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 10: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 11: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 12: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 13: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 14: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 15: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 16: delayed_ub_closure_laundered.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 17: delayed_ub_closure_laundered.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 18: delayed_ub_closure_laundered.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 19: delayed_ub_closure_laundered.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:88:17 in function delayed_ub_closure_laundered + +Check 20: delayed_ub_closure_laundered.assertion.3 + - Status: SUCCESS + - Description: "assertion failed: value > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:88:9 in function delayed_ub_closure_laundered + +Check 21: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 22: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 23: delayed_ub_closure_laundered.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 24: delayed_ub_closure_laundered.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 25: delayed_ub_closure_laundered.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 26: delayed_ub_closure_laundered.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 27: delayed_ub_closure_laundered.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 28: delayed_ub_closure_laundered.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:87:9 in function delayed_ub_closure_laundered + +Check 29: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + + +SUMMARY: + ** 1 of 29 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 88, in delayed_ub_closure_laundered + +VERIFICATION:- FAILED +Verification Time: 0.1510558s + +Checking harness delayed_ub_laundered... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub20delayed_ub_laundered.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0414653s +size of program expression: 2005 steps +slicing removed 1541 assignments +Generated 82 VCC(s), 58 remaining after simplification +Runtime Postprocess Equation: 0.000209041s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00324467s +Running propositional reduction +Post-processing +Runtime Post-process: 0.000224917s +Solving with CaDiCaL 2.0.0 +7746 variables, 12065 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000418708s +Runtime decision procedure: 0.00378917s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7747 variables, 12066 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.2458e-05s +Runtime decision procedure: 0.000131375s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7748 variables, 12067 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000148625s +Runtime decision procedure: 0.000193125s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7749 variables, 12068 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 9.7958e-05s +Runtime decision procedure: 0.000143542s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7750 variables, 12069 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000287375s +Runtime decision procedure: 0.00033375s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7751 variables, 12070 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000276833s +Runtime decision procedure: 0.00030175s + +RESULTS: +Check 1: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 2: launder.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:51:13 in function launder + +Check 3: launder.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:52:13 in function launder + +Check 4: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 5: delayed_ub_laundered.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 6: delayed_ub_laundered.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 7: delayed_ub_laundered.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 8: delayed_ub_laundered.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:65:17 in function delayed_ub_laundered + +Check 9: delayed_ub_laundered.assertion.3 + - Status: SUCCESS + - Description: "assertion failed: value > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:65:9 in function delayed_ub_laundered + +Check 10: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 11: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 12: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 13: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 14: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 15: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 16: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 17: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 18: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 19: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 20: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 21: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 22: delayed_ub_laundered.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 23: delayed_ub_laundered.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 24: delayed_ub_laundered.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 25: delayed_ub_laundered.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 26: delayed_ub_laundered.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 27: delayed_ub_laundered.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:64:9 in function delayed_ub_laundered + +Check 28: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 29: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + + +SUMMARY: + ** 1 of 29 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 65, in delayed_ub_laundered + +VERIFICATION:- FAILED +Verification Time: 0.15109825s + +Checking harness delayed_ub_static... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub17delayed_ub_static.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0523941s +size of program expression: 2530 steps +slicing removed 1958 assignments +Generated 114 VCC(s), 61 remaining after simplification +Runtime Postprocess Equation: 0.000215834s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00401537s +Running propositional reduction +Post-processing +Runtime Post-process: 4.583e-06s +Solving with CaDiCaL 2.0.0 +9904 variables, 14900 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000223042s +Runtime decision procedure: 0.00437108s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +9905 variables, 14901 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000352792s +Runtime decision procedure: 0.000403834s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +9906 variables, 14902 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 8.925e-05s +Runtime decision procedure: 0.00013575s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +9907 variables, 14903 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000241042s +Runtime decision procedure: 0.000288625s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +9908 variables, 14904 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000626917s +Runtime decision procedure: 0.000682334s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +9909 variables, 14905 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.00115046s +Runtime decision procedure: 0.00117238s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 2: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 3: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 4: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 5: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 6: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 7: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 8: delayed_ub_static.assertion.1 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:37:21 in function delayed_ub_static + +Check 9: delayed_ub_static.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:37:21 in function delayed_ub_static + +Check 10: delayed_ub_static.assertion.2 + - Status: SUCCESS + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*mut u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:39:19 in function delayed_ub_static + +Check 11: delayed_ub_static.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:39:19 in function delayed_ub_static + +Check 12: delayed_ub_static.assertion.3 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 13: delayed_ub_static.safety_check.3 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 14: delayed_ub_static.safety_check.4 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 15: delayed_ub_static.assertion.4 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 16: delayed_ub_static.assertion.5 + - Status: SUCCESS + - Description: "assertion failed: *v_ref > 0" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:9 in function delayed_ub_static + +Check 17: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 18: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 19: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 20: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 21: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 22: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 23: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 24: delayed_ub_static.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 25: delayed_ub_static.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 26: delayed_ub_static.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 27: delayed_ub_static.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 28: delayed_ub_static.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 29: delayed_ub_static.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:40:9 in function delayed_ub_static + +Check 30: delayed_ub_static.pointer_dereference.7 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 31: delayed_ub_static.pointer_dereference.8 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 32: delayed_ub_static.pointer_dereference.9 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 33: delayed_ub_static.pointer_dereference.10 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 34: delayed_ub_static.pointer_dereference.11 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 35: delayed_ub_static.pointer_dereference.12 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:41:17 in function delayed_ub_static + +Check 36: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 37: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + + +SUMMARY: + ** 1 of 37 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 41, in delayed_ub_static + +VERIFICATION:- FAILED +Verification Time: 0.1694945s + +Checking harness delayed_ub_transmute... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub20delayed_ub_transmute.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.0392851s +size of program expression: 1834 steps +slicing removed 1445 assignments +Generated 76 VCC(s), 40 remaining after simplification +Runtime Postprocess Equation: 0.000183334s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.002844s +Running propositional reduction +Post-processing +Runtime Post-process: 4.375e-06s +Solving with CaDiCaL 2.0.0 +7117 variables, 11119 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000205375s +Runtime decision procedure: 0.00315742s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7118 variables, 11120 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 7.575e-05s +Runtime decision procedure: 0.000116708s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7119 variables, 11121 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000147166s +Runtime decision procedure: 0.000184667s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7120 variables, 11122 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000105375s +Runtime decision procedure: 0.000143958s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7121 variables, 11123 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 4.8833e-05s +Runtime decision procedure: 8.6834e-05s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7122 variables, 11124 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000499208s +Runtime decision procedure: 0.000518958s + +RESULTS: +Check 1: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 2: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 3: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 4: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 5: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 6: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 7: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 8: delayed_ub_transmute.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 9: delayed_ub_transmute.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 10: delayed_ub_transmute.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 11: delayed_ub_transmute.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:27:23 in function delayed_ub_transmute + +Check 12: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 13: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 14: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 15: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 16: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 17: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 18: delayed_ub_transmute.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 19: delayed_ub_transmute.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 20: delayed_ub_transmute.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 21: delayed_ub_transmute.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 22: delayed_ub_transmute.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 23: delayed_ub_transmute.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:26:9 in function delayed_ub_transmute + +Check 24: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 25: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 26: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + + +SUMMARY: + ** 1 of 26 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 27, in delayed_ub_transmute + +VERIFICATION:- FAILED +Verification Time: 0.12704483s + +Checking harness delayed_ub... +CBMC 6.1.1 (cbmc-6.1.1) +CBMC version 6.1.1 (cbmc-6.1.1) 64-bit arm64 macos +Reading GOTO program from file /Users/nartagva/kani/tests/expected/uninit/delayed-ub/delayed_ub__RNvCs1orBgPSWsDZ_10delayed_ub10delayed_ub.out +Generating GOTO Program +Adding CPROVER library (arm64) +Removal of function pointers and virtual functions +Generic Property Instrumentation +Running with 16 object bits, 48 offset bits (user-specified) +Starting Bounded Model Checking +Runtime Symex: 0.038297s +size of program expression: 1834 steps +slicing removed 1445 assignments +Generated 76 VCC(s), 40 remaining after simplification +Runtime Postprocess Equation: 0.000160583s +Passing problem to propositional reduction +converting SSA +Runtime Convert SSA: 0.00282546s +Running propositional reduction +Post-processing +Runtime Post-process: 4.791e-06s +Solving with CaDiCaL 2.0.0 +7117 variables, 11119 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000206292s +Runtime decision procedure: 0.00313929s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7118 variables, 11120 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 7.3334e-05s +Runtime decision procedure: 0.000115667s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7119 variables, 11121 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000142541s +Runtime decision procedure: 0.000180416s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7120 variables, 11122 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 0.000106083s +Runtime decision procedure: 0.000144542s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7121 variables, 11123 clauses +SAT checker: instance is SATISFIABLE +Runtime Solver: 5e-05s +Runtime decision procedure: 8.8458e-05s +Running propositional reduction +Solving with CaDiCaL 2.0.0 +7122 variables, 11124 clauses +SAT checker: instance is UNSATISFIABLE +Runtime Solver: 0.000504125s +Runtime decision procedure: 0.000523917s + +RESULTS: +Check 1: delayed_ub.assertion.1 + - Status: SUCCESS + - Description: "misaligned pointer dereference: address must be a multiple of its type's alignment" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 2: delayed_ub.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 3: delayed_ub.safety_check.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 4: delayed_ub.assertion.2 + - Status: FAILURE + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:15:23 in function delayed_ub + +Check 5: kani::mem_init::MemoryInitializationState::set::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 6: kani::mem_init::MemoryInitializationState::set::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 7: kani::mem_init::MemoryInitializationState::set::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 8: kani::mem_init::set_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, u128> + +Check 9: kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<24, kani::mem_init::MemoryInitializationState> + +Check 10: kani::mem_init::MemoryInitializationState::set::<24>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:88:38 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 11: kani::mem_init::MemoryInitializationState::set::<24>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:90:33 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 12: kani::mem_init::MemoryInitializationState::set::<24>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + +Check 13: kani::mem_init::MemoryInitializationState::get::<16>.assertion.1 + - Status: SUCCESS + - Description: "attempt to add with overflow" + - Location: library/kani/src/mem_init.rs:63:38 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 14: kani::mem_init::MemoryInitializationState::get::<16>.assertion.2 + - Status: SUCCESS + - Description: "attempt to subtract with overflow" + - Location: library/kani/src/mem_init.rs:65:21 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 15: kani::mem_init::MemoryInitializationState::get::<16>.assertion.3 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 16: kani::mem_init::is_ptr_initialized::<16, u128>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:197:14 in function kani::mem_init::is_ptr_initialized::<16, u128> + +Check 17: kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)>.safety_check.1 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: library/kani/src/mem_init.rs:213:9 in function kani::mem_init::set_ptr_initialized::<16, (u8, u32, u64)> + +Check 18: kani::mem_init::MemoryInitializationState::get::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:65:14 in function kani::mem_init::MemoryInitializationState::get::<16> + +Check 19: delayed_ub.pointer_dereference.1 + - Status: SUCCESS + - Description: "dereference failure: pointer NULL" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 20: delayed_ub.pointer_dereference.2 + - Status: SUCCESS + - Description: "dereference failure: pointer invalid" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 21: delayed_ub.pointer_dereference.3 + - Status: SUCCESS + - Description: "dereference failure: deallocated dynamic object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 22: delayed_ub.pointer_dereference.4 + - Status: SUCCESS + - Description: "dereference failure: dead object" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 23: delayed_ub.pointer_dereference.5 + - Status: SUCCESS + - Description: "dereference failure: pointer outside object bounds" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 24: delayed_ub.pointer_dereference.6 + - Status: SUCCESS + - Description: "dereference failure: invalid integer address" + - Location: tests/expected/uninit/delayed-ub/delayed-ub.rs:14:9 in function delayed_ub + +Check 25: kani::mem_init::MemoryInitializationState::set::<16>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<16> + +Check 26: kani::mem_init::MemoryInitializationState::set::<24>.array_bounds.1 + - Status: SUCCESS + - Description: "index out of bounds: the length is less than or equal to the given index" + - Location: library/kani/src/mem_init.rs:90:26 in function kani::mem_init::MemoryInitializationState::set::<24> + + +SUMMARY: + ** 1 of 26 failed +Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `u128` + File: "tests/expected/uninit/delayed-ub/delayed-ub.rs", line 15, in delayed_ub + +VERIFICATION:- FAILED +Verification Time: 0.12711634s + +Summary: +Verification failed for - delayed_ub_trigger_copy +Verification failed for - delayed_ub_slices +Verification failed for - delayed_ub_structs +Verification failed for - delayed_ub_double_copy +Verification failed for - delayed_ub_copy +Verification failed for - delayed_ub_closure_capture_laundered +Verification failed for - delayed_ub_closure_laundered +Verification failed for - delayed_ub_laundered +Verification failed for - delayed_ub_static +Verification failed for - delayed_ub_transmute +Verification failed for - delayed_ub +Complete - 0 successfully verified harnesses, 11 failures, 11 total. diff --git a/tests/expected/uninit/copy/copy.rs b/tests/expected/uninit/copy/copy.rs deleted file mode 100644 index 8d8278a6f0b9..000000000000 --- a/tests/expected/uninit/copy/copy.rs +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright Kani Contributors -// SPDX-License-Identifier: Apache-2.0 OR MIT -// kani-flags: -Z uninit-checks - -#[repr(C)] -#[derive(kani::Arbitrary)] -struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. - -#[kani::proof] -/// This checks that reading copied uninitialized bytes fails an assertion. -unsafe fn expose_padding_via_copy() { - let from: S = kani::any(); - let mut to: u64 = kani::any(); - - let from_ptr = &from as *const S; - let to_ptr = &mut to as *mut u64; - - // This should not cause UB since `copy` is untyped. - std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); - - // This reads uninitialized bytes, which is UB. - let padding: u64 = std::ptr::read(to_ptr); -} - -#[kani::proof] -/// This checks that reading copied uninitialized bytes after a multi-byte copy fails an assertion. -unsafe fn expose_padding_via_non_byte_copy() { - let from: S = kani::any(); - let mut to: u64 = kani::any(); - - let from_ptr = &from as *const S; - let to_ptr = &mut to as *mut u64; - - // This should not cause UB since `copy` is untyped. - std::ptr::copy(from_ptr as *const u64, to_ptr as *mut u64, 1); - - // This reads uninitialized bytes, which is UB. - let padding: u64 = std::ptr::read(to_ptr); -} - -#[kani::proof] -/// This checks that reading copied initialized bytes verifies correctly. -unsafe fn copy_without_padding() { - let from: S = kani::any(); - let mut to: u64 = kani::any(); - - let from_ptr = &from as *const S; - let to_ptr = &mut to as *mut u64; - - // This should not cause UB since `copy` is untyped. - std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); - - // Since the previous copy only copied 4 bytes, no padding was copied, so no padding is read. - let data: u64 = std::ptr::read(to_ptr); -} - -#[kani::proof] -/// This checks that reading copied initialized bytes after a multi-byte copy verifies correctly. -unsafe fn non_byte_copy_without_padding() { - let from: S = kani::any(); - let mut to: u64 = kani::any(); - - let from_ptr = &from as *const S; - let to_ptr = &mut to as *mut u64; - - // This should not cause UB since `copy` is untyped. - std::ptr::copy(from_ptr as *const u32, to_ptr as *mut u32, 1); - - // Since the previous copy only copied 4 bytes, no padding was copied, so no padding is read. - let data: u64 = std::ptr::read(to_ptr); -} - -#[kani::proof] -/// This checks that reading uninitialized bytes fails an assertion even after copy. -unsafe fn read_after_copy() { - let from: S = kani::any(); - let mut to: u64 = kani::any(); - - let from_ptr = &from as *const S; - let to_ptr = &mut to as *mut u64; - - // This should not cause UB since `copy` is untyped. - std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); - - // Reading padding from the previous place should be UB even after copy. - let data: u64 = std::ptr::read(from_ptr as *const u64); -} diff --git a/tests/expected/uninit/copy/copy_without_padding.expected b/tests/expected/uninit/copy/copy_without_padding.expected new file mode 100644 index 000000000000..01a90d50b557 --- /dev/null +++ b/tests/expected/uninit/copy/copy_without_padding.expected @@ -0,0 +1 @@ +Complete - 1 successfully verified harnesses, 0 failures, 1 total. diff --git a/tests/expected/uninit/copy/copy_without_padding.rs b/tests/expected/uninit/copy/copy_without_padding.rs new file mode 100644 index 000000000000..16df1dd5d2d0 --- /dev/null +++ b/tests/expected/uninit/copy/copy_without_padding.rs @@ -0,0 +1,23 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +#[kani::proof] +/// This checks that reading copied initialized bytes verifies correctly. +unsafe fn copy_without_padding() { + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + + // Since the previous copy only copied 4 bytes, no padding was copied, so no padding is read. + let data: u64 = std::ptr::read(to_ptr); +} diff --git a/tests/expected/uninit/copy/expected b/tests/expected/uninit/copy/expected deleted file mode 100644 index a288f9f2856d..000000000000 --- a/tests/expected/uninit/copy/expected +++ /dev/null @@ -1,31 +0,0 @@ -Checking harness read_after_copy... - -Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` - -VERIFICATION:- FAILED - -Checking harness non_byte_copy_without_padding... - -VERIFICATION:- SUCCESSFUL - -Checking harness copy_without_padding... - -VERIFICATION:- SUCCESSFUL - -Checking harness expose_padding_via_non_byte_copy... - -Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` - -VERIFICATION:- FAILED - -Checking harness expose_padding_via_copy... - -Failed Checks: Undefined Behavior: Reading from an uninitialized pointer of type `*const u64` - -VERIFICATION:- FAILED - -Summary: -Verification failed for - read_after_copy -Verification failed for - expose_padding_via_non_byte_copy -Verification failed for - expose_padding_via_copy -Complete - 2 successfully verified harnesses, 3 failures, 5 total. diff --git a/tests/expected/uninit/copy/expose_padding_via_copy.expected b/tests/expected/uninit/copy/expose_padding_via_copy.expected new file mode 100644 index 000000000000..83d8badc8bf5 --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_copy.expected @@ -0,0 +1,11 @@ +std::ptr::read::.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`"\ + +std::ptr::read::.assertion.2\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`"\ + +Summary: +Verification failed for - expose_padding_via_copy +Complete - 0 successfully verified harnesses, 1 failures, 1 total. diff --git a/tests/expected/uninit/copy/expose_padding_via_copy.rs b/tests/expected/uninit/copy/expose_padding_via_copy.rs new file mode 100644 index 000000000000..8adb772037ca --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_copy.rs @@ -0,0 +1,23 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +/// This checks that reading copied uninitialized bytes fails an assertion. +#[kani::proof] +unsafe fn expose_padding_via_copy() { + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + + // This reads uninitialized bytes, which is UB. + let padding: u64 = std::ptr::read(to_ptr); +} diff --git a/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.expected b/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.expected new file mode 100644 index 000000000000..cbe7ec97cb7b --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.expected @@ -0,0 +1,11 @@ +std::ptr::read::.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`"\ + +std::ptr::read::.assertion.2\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`"\ + +Summary: +Verification failed for - expose_padding_via_copy_convoluted +Complete - 0 successfully verified harnesses, 1 failures, 1 total. diff --git a/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.rs b/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.rs new file mode 100644 index 000000000000..6b1c971aa4fe --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_copy_convoluted.rs @@ -0,0 +1,43 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + + +/// This checks that reading copied uninitialized bytes fails an assertion even if pointer are +/// passed around different functions. +#[kani::proof] +unsafe fn expose_padding_via_copy_convoluted() { + unsafe fn copy_and_read_helper(from_ptr: *const S, to_ptr: *mut u64) -> u64 { + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + // This reads uninitialized bytes, which is UB. + let padding: u64 = std::ptr::read(to_ptr); + padding + } + + unsafe fn partial_copy_and_read_helper(from_ptr: *const S, to_ptr: *mut u64) -> u32 { + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + // This does not read uninitialized bytes. + let not_padding: u32 = std::ptr::read(to_ptr as *mut u32); + not_padding + } + + let flag: bool = kani::any(); + + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + if flag { + copy_and_read_helper(from_ptr, to_ptr); + } else { + partial_copy_and_read_helper(from_ptr, to_ptr); + } +} diff --git a/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.expected b/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.expected new file mode 100644 index 000000000000..3fc86e45a46e --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.expected @@ -0,0 +1,11 @@ +std::ptr::read::.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`"\ + +std::ptr::read::.assertion.2\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`"\ + +Summary: +Verification failed for - expose_padding_via_non_byte_copy +Complete - 0 successfully verified harnesses, 1 failures, 1 total. diff --git a/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.rs b/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.rs new file mode 100644 index 000000000000..685239b267b1 --- /dev/null +++ b/tests/expected/uninit/copy/expose_padding_via_non_byte_copy.rs @@ -0,0 +1,23 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +/// This checks that reading copied uninitialized bytes after a multi-byte copy fails an assertion. +#[kani::proof] +unsafe fn expose_padding_via_non_byte_copy() { + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u64, to_ptr as *mut u64, 1); + + // This reads uninitialized bytes, which is UB. + let padding: u64 = std::ptr::read(to_ptr); +} diff --git a/tests/expected/uninit/copy/non_byte_copy_without_padding.expected b/tests/expected/uninit/copy/non_byte_copy_without_padding.expected new file mode 100644 index 000000000000..01a90d50b557 --- /dev/null +++ b/tests/expected/uninit/copy/non_byte_copy_without_padding.expected @@ -0,0 +1 @@ +Complete - 1 successfully verified harnesses, 0 failures, 1 total. diff --git a/tests/expected/uninit/copy/non_byte_copy_without_padding.rs b/tests/expected/uninit/copy/non_byte_copy_without_padding.rs new file mode 100644 index 000000000000..6f3b380cd81f --- /dev/null +++ b/tests/expected/uninit/copy/non_byte_copy_without_padding.rs @@ -0,0 +1,23 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +#[kani::proof] +/// This checks that reading copied initialized bytes after a multi-byte copy verifies correctly. +unsafe fn non_byte_copy_without_padding() { + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u32, to_ptr as *mut u32, 1); + + // Since the previous copy only copied 4 bytes, no padding was copied, so no padding is read. + let data: u64 = std::ptr::read(to_ptr); +} diff --git a/tests/expected/uninit/copy/read_after_copy.expected b/tests/expected/uninit/copy/read_after_copy.expected new file mode 100644 index 000000000000..56a3460a1d7b --- /dev/null +++ b/tests/expected/uninit/copy/read_after_copy.expected @@ -0,0 +1,11 @@ +std::ptr::read::.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `*const u64`"\ + +std::ptr::read::.assertion.2\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u64`"\ + +Summary: +Verification failed for - read_after_copy +Complete - 0 successfully verified harnesses, 1 failures, 1 total. diff --git a/tests/expected/uninit/copy/read_after_copy.rs b/tests/expected/uninit/copy/read_after_copy.rs new file mode 100644 index 000000000000..742b74099acc --- /dev/null +++ b/tests/expected/uninit/copy/read_after_copy.rs @@ -0,0 +1,23 @@ +// Copyright Kani Contributors +// SPDX-License-Identifier: Apache-2.0 OR MIT +// kani-flags: -Z uninit-checks + +#[repr(C)] +#[derive(kani::Arbitrary)] +struct S(u32, u8); // 5 bytes of data + 3 bytes of padding. + +/// This checks that reading uninitialized bytes fails an assertion even after copy. +#[kani::proof] +unsafe fn read_after_copy() { + let from: S = kani::any(); + let mut to: u64 = kani::any(); + + let from_ptr = &from as *const S; + let to_ptr = &mut to as *mut u64; + + // This should not cause UB since `copy` is untyped. + std::ptr::copy(from_ptr as *const u8, to_ptr as *mut u8, std::mem::size_of::()); + + // Reading padding from the previous place should be UB even after copy. + let data: u64 = std::ptr::read(from_ptr as *const u64); +} diff --git a/tests/expected/uninit/delayed-ub/delayed-ub.rs b/tests/expected/uninit/delayed-ub/delayed-ub.rs index feee4bcd161f..46b57e675223 100644 --- a/tests/expected/uninit/delayed-ub/delayed-ub.rs +++ b/tests/expected/uninit/delayed-ub/delayed-ub.rs @@ -124,6 +124,24 @@ fn delayed_ub_copy() { } } +/// Delayed UB via multiple mutable pointers write using `copy_nonoverlapping` and `copy` under the +/// hood. +#[kani::proof] +fn delayed_ub_double_copy() { + unsafe { + let mut value: u128 = 0; + let ptr = &mut value as *mut _ as *mut (u8, u32, u64); + // Use `copy_nonoverlapping` in an attempt to remove the taint. + std::ptr::write(ptr, (4, 4, 4)); + // Instead of assigning the value into a delayed UB place, copy it from another delayed UB + // place. + let mut value_2: u128 = 0; + let ptr_2 = &mut value_2 as *mut _ as *mut (u8, u32, u64); + std::ptr::copy(ptr, ptr_2, 1); // This should not trigger UB since the copy is untyped. + assert!(value_2 > 0); // UB: This reads a padding value! + } +} + struct S { u: U, } @@ -164,3 +182,16 @@ fn delayed_ub_slices() { let arr_copy = arr; // UB: This reads a padding value inside the array! } } + +/// Delayed UB via mutable pointer copy, which should be the only delayed UB trigger in this case. +#[kani::proof] +fn delayed_ub_trigger_copy() { + unsafe { + let mut value: u128 = 0; + let ptr = &mut value as *mut _ as *mut u8; // This cast should not be a delayed UB source. + let mut value_different_padding: (u8, u32, u64) = (4, 4, 4); + let ptr_different_padding = &mut value_different_padding as *mut _ as *mut u8; + std::ptr::copy(ptr_different_padding, ptr, std::mem::size_of::()); // This is a delayed UB source. + assert!(value > 0); // UB: This reads a padding value! + } +} diff --git a/tests/expected/uninit/delayed-ub/expected b/tests/expected/uninit/delayed-ub/expected index 46b6ababe85d..dc0411bdba9c 100644 --- a/tests/expected/uninit/delayed-ub/expected +++ b/tests/expected/uninit/delayed-ub/expected @@ -1,3 +1,7 @@ +delayed_ub_trigger_copy.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`"\ + delayed_ub_slices.assertion.4\ - Status: FAILURE\ - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `[u128; 4]`" @@ -6,6 +10,10 @@ delayed_ub_structs.assertion.2\ - Status: FAILURE\ - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `U`" +delayed_ub_double_copy.assertion.1\ + - Status: FAILURE\ + - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`"\ + delayed_ub_copy.assertion.1\ - Status: FAILURE\ - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" @@ -35,8 +43,10 @@ delayed_ub.assertion.2\ - Description: "Undefined Behavior: Reading from an uninitialized pointer of type `u128`" Summary: +Verification failed for - delayed_ub_trigger_copy Verification failed for - delayed_ub_slices Verification failed for - delayed_ub_structs +Verification failed for - delayed_ub_double_copy Verification failed for - delayed_ub_copy Verification failed for - delayed_ub_closure_capture_laundered Verification failed for - delayed_ub_closure_laundered @@ -44,4 +54,4 @@ Verification failed for - delayed_ub_laundered Verification failed for - delayed_ub_static Verification failed for - delayed_ub_transmute Verification failed for - delayed_ub -Complete - 0 successfully verified harnesses, 9 failures, 9 total. +Complete - 0 successfully verified harnesses, 11 failures, 11 total.