| 547 | } |
| 548 | |
| 549 | auto TransTableS::add_node_set() -> void |
| 550 | { |
| 551 | if (node_set_size_ >= node_set_size_limit_) |
| 552 | { |
| 553 | /* The memory chunk for the node_cards_ structure will be exceeded. */ |
| 554 | if (((allocmem_ + static_cast<unsigned long long>(nmem_)) > maxmem_) || (ncount_ >= max_index_)) |
| 555 | { |
| 556 | /* Already allocated memory plus needed allocation overshot maxmem_ */ |
| 557 | clear_tt_flag_ = true; |
| 558 | } |
| 559 | else |
| 560 | { |
| 561 | ncount_++; |
| 562 | node_set_size_limit_ = NSIZE; |
| 563 | pn_[ncount_] = |
| 564 | static_cast<NodeCards *>(malloc((NSIZE + 1) * sizeof(NodeCards))); |
| 565 | if (pn_[ncount_] == nullptr) |
| 566 | { |
| 567 | clear_tt_flag_ = true; |
| 568 | } |
| 569 | else |
| 570 | { |
| 571 | allocmem_ += (NSIZE + 1) * sizeof(NodeCards); |
| 572 | node_set_size_ = 0; |
| 573 | node_cards_ = pn_[ncount_]; |
| 574 | } |
| 575 | } |
| 576 | } |
| 577 | else |
| 578 | node_set_size_++; |
| 579 | } |
| 580 | |
| 581 | auto TransTableS::add_len_set( |
| 582 | const int trick, |
nothing calls this directly
no outgoing calls
no test coverage detected