Skip to content

Commit 9ff56b0

Browse files
author
thk123
committed
Corrected guard on specialised merge
1 parent 7c8912c commit 9ff56b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analyses/variable-sensitivity/constant_array_abstract_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Function: constant_array_abstract_objectt::constant_array_merge
133133
abstract_object_pointert constant_array_abstract_objectt::constant_array_merge(
134134
const constant_array_abstract_object_pointert other) const
135135
{
136-
if(is_top() || other->is_bottom())
136+
if(is_top() || other->is_bottom() || other->is_top())
137137
{
138138
return array_abstract_objectt::merge(other);
139139
}

src/analyses/variable-sensitivity/full_struct_abstract_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Function: full_struct_abstract_objectt::merge_constant_structs
360360
abstract_object_pointert full_struct_abstract_objectt::merge_constant_structs(
361361
constant_struct_pointert other) const
362362
{
363-
if(is_top() || other->is_bottom())
363+
if(is_top() || other->is_bottom() || other->is_top())
364364
{
365365
return struct_abstract_objectt::merge(other);
366366
}

0 commit comments

Comments
 (0)