Commit d59e110
Initialize nondet locals in regression tests
Prepares for --uninitialized-check becoming a default check.
Replace bare uninitialized local variable declarations with explicit
initialization in ~175 regression test files. These tests use
uninitialized locals as a shorthand for nondeterministic values
(e.g., int x; __CPROVER_assume(x > 0);). This is undefined behaviour in
C that we used to tolerate in CBMC. Once we enable --uninitialized-check
by default, however, those would have become (unwanted) verification
failures.
Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>1 parent cd64a96 commit d59e110
File tree
175 files changed
+319
-303
lines changed- regression/cbmc
- ACSL
- Array_Pointer3
- Array_UF1
- Array_UF2
- Array_operations1
- Array_operations2
- Array_operations4
- Associativity1
- BV_Arithmetic6
- Bitfields1
- Bitfields2
- Boolean_Guards1
- Computed-Goto1
- Ellipsis2
- Empty_struct1
- End_thread1
- Endianness8
- Fixedbv4
- Fixedbv5
- Fixedbv6
- Float-equality1
- Float-equality2
- Float-flags-no-simp1
- Float-flags-simp1
- Float-no-simp2
- Float-no-simp4
- Float-no-simp5
- Float-rounding2
- Float-zero-sum1
- Float12
- Float20
- Float22
- Float23
- Float4
- Float5
- Float6
- Float8
- Function1
- Function4
- Function_Pointer10
- Function_Pointer2
- Function_Pointer6
- Malloc11
- Malloc13
- Malloc17
- Malloc18
- Malloc2
- Malloc7
- Malloc9
- Minisat_Simp1
- Mod2
- Pointer15
- Pointer1
- Pointer25
- Pointer26
- Pointer9
- Pointer_Arithmetic11
- Pointer_array8
- Pointer_byte_extract4
- Pointer_comparison3
- Pointer_difference2
- Quantifiers-expr-cleaning
- Quantifiers-simplify
- Quantifiers-statement-expression3
- Recursion2
- String8
- String_Abstraction14
- String_Abstraction15
- String_Abstraction18
- String_Abstraction21
- String_Abstraction22
- Struct_Initialization2
- Struct_Initialization5
- Struct_Propagation1
- Typecast1
- Unbounded_Array1
- Unbounded_Array5
- Undefined_Shift1
- array-tests
- atomic_X_fetch-1
- atomic_fetch_X-1
- aws-byte-buf-regression
- big-endian-array1
- bounds_check1
- bounds_check2
- byte_update11
- byte_update12
- byte_update15
- byte_update16
- byte_update17
- byte_update18
- clang_builtins
- condition-propagation-4
- divide-by-one-simplify
- dynamic_size1
- dynamic_sizeof1
- enum3
- enum9
- equality_through_array1
- equality_through_array2
- equality_through_array3
- equality_through_array4
- equality_through_array5
- equality_through_array6
- equality_through_array_of_struct1
- equality_through_array_of_struct2
- equality_through_array_of_struct3
- equality_through_array_of_struct4
- equality_through_struct1
- equality_through_struct2
- equality_through_struct3
- equality_through_struct4
- equality_through_struct_containing_arrays1
- equality_through_struct_containing_arrays2
- equality_through_union1
- equality_through_union2
- equality_through_union3
- exit1
- field-sensitivity15
- field-sensitivity16
- gcc_switch_case_range1
- gcc_switch_case_range2
- gcc_vector1
- gcc_vector3
- goto1
- goto2
- guard1
- havoc_object1
- if1
- if4
- inequality-with-constant-normalisation1
- inequality-with-constant-normalisation
- lhs-pointer-aliases-constant
- little-endian-array1
- no-propagation
- null7
- overflow
- pointer-predicates
- pragma_cprover1
- pragma_cprover2
- pragma_cprover_enable1
- pragma_cprover_enable2
- r_w_ok1
- r_w_ok7
- return4
- runtime-profiling
- sat-solver-warning
- simplify-array-size
- struct1
- struct3
- struct7
- struct8
- switch1
- switch2
- switch4
- sync_X_and_fetch-1
- sync_bool_compare-1
- sync_fetch_and_X-1
- sync_val_compare-1
- uniform_array1
- uninterpreted_function
- union14
- union17
- union18
- union1
- union2
- union3
- union
- unwind_counters4
- void_pointer3
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
175 files changed
+319
-303
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
11 | 12 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
0 commit comments