| 1 | /** |
| 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | * SPDX-License-Identifier: Apache-2.0. |
| 4 | */ |
| 5 | |
| 6 | /** |
| 7 | * FUNCTION: s_sift_either |
| 8 | * |
| 9 | * This function overrides the original implementation of the |
| 10 | * s_sift_either function from priority_queue.h with a no_op. |
| 11 | * |
| 12 | * It is necessary to stub out s_sift_either because in order for it |
| 13 | * to work, we have to have initialized all backpointers of the |
| 14 | * priority queue correctly (which needs a loop). |
| 15 | * |
| 16 | * It is safe to stub out s_sift_either as long as we don't make any |
| 17 | * assertions on the positions of elements in the priority queue and |
| 18 | * their relative values. |
| 19 | * |
| 20 | */ |
| 21 | |
| 22 | #include <aws/common/priority_queue.h> |
| 23 | |
| 24 | void __CPROVER_file_local_priority_queue_c_s_sift_either(struct aws_priority_queue *queue, size_t index) { |
| 25 | assert(aws_priority_queue_is_valid(queue)); |
| 26 | assert(index < queue->container.length); |
| 27 | } |