stdexec:

Run:44316113512
Check:main: misc-const-correctness
Status:ok
Time:7s
Warnings:58 (TP 0, FP 0, unclassified 58)
Source:NVIDIA/stdexec/blob/0758df65c6571076d67276362c07146e13958740

Warnings (58):

VerdictLocationMessage
-src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__counting_scopes.hpp:286:9variable '__bits' of type '__int_type' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__run_loop.hpp:171:11variable '__prev' of type 'iterator' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__task.hpp:107:9pointee of variable '__alloc_loc' of type 'void *const' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__task_scheduler.hpp:337:11variable '__precomposed_fn' of type '__call_result_t<__impl_t<stdexec::__tup::__tuple<> &>, (lambda at /__w/CTIT/CTIT/test_projects/stdexec/src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__task_scheduler.hpp:338:13), stdexec::__tup::__tuple<> &>' (aka '(lambda at /__w/CTIT/CTIT/test_projects/stdexec/src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__task_scheduler.hpp:340:22)') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/../stdexec/__detail/__variant.hpp:154:9variable '__index' of type 'unsigned long' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:170:7variable 'owner_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:193:7variable 'thief_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:218:7variable 'owner_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:220:7variable 'ec' of type 'lifo_queue_error_code' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:236:7variable 'owner_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:277:5variable 'owner_counter' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:279:5variable 'predecessor_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:281:5variable 'result' of type 'takeover_result' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:300:5variable 'owner_counter' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:301:5variable 'next_counter' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:302:5variable 'thief_counter' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:308:5variable 'next_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:314:5variable 'owner_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:327:5variable 'next_counter' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:328:5variable 'next_index' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/bwos_lifo_queue.hpp:329:5variable 'next_block' of type 'block_type &' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/detail/numa.hpp:335:7variable 'mask' of type 'nodemask' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/sequence/../trampoline_scheduler.hpp:119:13variable '__current_size' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:145:11pointee of variable 'tmp' of type 'remote_queue *' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:164:9variable 'this_id' of type 'std::thread::id' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:285:13variable 'sched' of type '__unless_one_of_t<decltype(nullptr()), void>' (aka 'experimental::execution::_pool_::_static_thread_pool::scheduler') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:495:14variable 't' of type 'std::thread &' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:620:16variable 'v' of type 'workstealing_victim' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:827:7variable 'key' of type 'thread_index_by_numa_node' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:829:7variable 'it' of type '__gnu_cxx::__normal_iterator<const experimental::execution::_pool_::_static_thread_pool::thread_index_by_numa_node *, std::vector<experimental::execution::_pool_::_static_thread_pool::thread_index_by_numa_node>>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:836:7variable 'it_end' of type '__gnu_cxx::__normal_iterator<const experimental::execution::_pool_::_static_thread_pool::thread_index_by_numa_node *, std::vector<experimental::execution::_pool_::_static_thread_pool::thread_index_by_numa_node>>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:861:7variable 'key' of type 'thread_index_by_numa_node' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:878:7variable 'n_threads' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:887:11variable 'n_threads' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:902:7variable 'this_id' of type 'std::thread::id' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:903:7pointee of variable 'correct_queue' of type 'remote_queue *' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:904:7variable 'idx' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:907:9variable 'this_node' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:954:9variable 'this_node' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1174:11variable 'lock' of type 'std::lock_guard<std::mutex>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1185:9variable 'lock' of type 'std::lock_guard<std::mutex>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1213:11variable 'stoken' of type '__mcall1<stdexec::__q1<stdexec::__decay_t>, __member_query_result_t<stdexec::__detail::__proxy_env, stdexec::get_stop_token_t>>' (aka 'inplace_stop_token') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1341:13variable 'computation' of type '(lambda at /__w/CTIT/CTIT/test_projects/stdexec/src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1341:32)' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1350:13variable 'completion' of type '(lambda at /__w/CTIT/CTIT/test_projects/stdexec/src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1350:31)' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1751:11variable 'local_size' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../../exec/static_thread_pool.hpp:1752:11variable 'chunk_size' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../stop_token.hpp:369:5variable '__old_state' of type 'uint8_t' (aka 'unsigned char') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/../stop_token.hpp:384:7variable '__notifying_thread' of type 'std::thread::id' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__parallel_scheduler_backend.hpp:271:9variable '__alloc_def' of type 'std::allocator<std::byte>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__parallel_scheduler_backend.hpp:272:9variable '__alloc' of type '__mcall1<stdexec::__q1<stdexec::__midentity>, __member_query_result_t<stdexec::__task::__unstoppable_env, stdexec::get_allocator_t>>' (aka '__any_allocator<std::byte>') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__parallel_scheduler_backend.hpp:273:9variable '__byte_alloc' of type 'stdexec::__any_allocator<std::byte>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__system_context_default_impl.hpp:67:5variable '__pn' of type 'uintptr_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__system_context_default_impl.hpp:78:7variable '__new_pn' of type 'unsigned long' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__system_context_default_impl.hpp:255:9variable '__chunk_size' of type 'size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__system_context_default_impl.hpp:259:9variable '__num_chunks' of type 'size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__system_context_default_impl.hpp:340:7variable '__new_instance' of type 'std::shared_ptr<parallel_scheduler_backend>' can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__utility.hpp:150:10variable '__i' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'
-src/system_context/../../include/stdexec/__detail/__utility.hpp:163:10variable '__i' of type 'std::size_t' (aka 'unsigned long') can be declared 'const'

Generated from 3ddf6fa37f.