Commit b3f7293
Fix check_clone_to_uninit CBMC timeout: reduce size and remove byte loop
The harness was timing out (10 min CBMC limit) due to expensive symbolic
pointer arithmetic in clone_to_uninit combined with a symbolic-length
verification loop. Fix: reduce MAX_SIZE from 16 to 8 bytes (sufficient
to cover empty, single-char, and multi-char C strings) and remove the
byte-by-byte verification loop (the CStr reconstruction check still
validates the safety invariant).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a0b5f8f commit b3f7293
1 file changed
+9
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1118 | 1118 | | |
1119 | 1119 | | |
1120 | 1120 | | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
1121 | 1124 | | |
1122 | | - | |
| 1125 | + | |
1123 | 1126 | | |
1124 | | - | |
| 1127 | + | |
1125 | 1128 | | |
1126 | 1129 | | |
1127 | 1130 | | |
1128 | 1131 | | |
1129 | | - | |
1130 | | - | |
| 1132 | + | |
1131 | 1133 | | |
1132 | | - | |
| 1134 | + | |
1133 | 1135 | | |
1134 | 1136 | | |
1135 | 1137 | | |
1136 | | - | |
| 1138 | + | |
1137 | 1139 | | |
1138 | 1140 | | |
1139 | 1141 | | |
1140 | 1142 | | |
1141 | | - | |
1142 | | - | |
1143 | | - | |
1144 | | - | |
1145 | | - | |
1146 | | - | |
1147 | | - | |
1148 | | - | |
| 1143 | + | |
1149 | 1144 | | |
1150 | 1145 | | |
1151 | 1146 | | |
| |||
0 commit comments