Commit 344566b
committed
SMT2 back-end: do not flatten flattened arrays
convert_expr may flatten an array anyway, in which case flatten_array
would generate select statements over bitvectors instead of arrays (as
flatten_array itself invokes convert_expr to supposedly construct the
array expression). Also, make sure the same flattening logic applies to
1-element structs.1 parent bf18c17 commit 344566b
File tree
2 files changed
+12
-3
lines changed- regression/cbmc/array-function-parameters
- src/solvers/smt2
2 files changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3137 | 3137 | | |
3138 | 3138 | | |
3139 | 3139 | | |
3140 | | - | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
3141 | 3150 | | |
3142 | 3151 | | |
3143 | 3152 | | |
| |||
3148 | 3157 | | |
3149 | 3158 | | |
3150 | 3159 | | |
3151 | | - | |
| 3160 | + | |
3152 | 3161 | | |
3153 | 3162 | | |
3154 | 3163 | | |
| |||
0 commit comments