File tree 3 files changed +21
-1
lines changed
regression/goto-analyzer/variable-sensitivity-bug-01
src/analyses/variable-sensitivity
3 files changed +21
-1
lines changed Original file line number Diff line number Diff line change
1
+ struct st {
2
+ int a ;
3
+ int b ;
4
+ };
5
+
6
+ struct st sts_inf ;
7
+
8
+ void func ( struct st * inf ); // no body
9
+
10
+ void main (void )
11
+ {
12
+ func (& sts_inf ); // assertion failed here
13
+ }
14
+
Original file line number Diff line number Diff line change
1
+ CORE
2
+ main.c
3
+ --variable-sensitivity --structs --arrays --pointers --show
4
+ ^EXIT=0$
5
+ ^SIGNAL=0$
6
+ --
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ sharing_ptrt<pointer_abstract_objectt>
328
328
if (stack.empty ())
329
329
{
330
330
// We should not be changing the type of an abstract object
331
- PRECONDITION (new_value->type ()==type ().subtype ());
331
+ PRECONDITION (new_value->type ()==ns. follow ( type ().subtype () ));
332
332
333
333
// Get an expression that we can assign to
334
334
exprt value=value_stack.to_expression ().op0 ();
You can’t perform that action at this time.
0 commit comments