crt/aws-c-common/verification/cbmc/proofs/aws_string_bytes/aws_string_bytes_harness.c
raw symbols SCIP| 1 | /** |
| 2 | * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | * SPDX-License-Identifier: Apache-2.0. |
| 4 | */ |
| 5 | |
| 6 | #include <aws/common/string.h> |
| 7 | #include <proof_helpers/make_common_data_structures.h> |
| 8 | |
| 9 | void aws_string_bytes_harness() { |
| 10 | struct aws_string *str = ensure_string_is_allocated_nondet_length(); |
| 11 | __CPROVER_assume(aws_string_is_valid(str)); |
| 12 | assert(aws_string_bytes(str) == str->bytes); |
| 13 | assert(aws_string_is_valid(str)); |
| 14 | } |