File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -2169,7 +2169,9 @@ void c_typecheck_baset::typecheck_side_effect_function_call(
2169
2169
}
2170
2170
else if (
2171
2171
identifier == CPROVER_PREFIX " saturating_minus" ||
2172
- identifier == CPROVER_PREFIX " saturating_plus" )
2172
+ identifier == CPROVER_PREFIX " saturating_plus" ||
2173
+ identifier == " __builtin_elementwise_add_sat" ||
2174
+ identifier == " __builtin_elementwise_sub_sat" )
2173
2175
{
2174
2176
exprt result = typecheck_saturating_arithmetic (expr);
2175
2177
expr.swap (result);
@@ -3842,10 +3844,18 @@ exprt c_typecheck_baset::typecheck_saturating_arithmetic(
3842
3844
}
3843
3845
3844
3846
exprt result;
3845
- if (identifier == CPROVER_PREFIX " saturating_minus" )
3847
+ if (
3848
+ identifier == CPROVER_PREFIX " saturating_minus" ||
3849
+ identifier == " __builtin_elementwise_sub_sat" )
3850
+ {
3846
3851
result = saturating_minus_exprt{expr.arguments ()[0 ], expr.arguments ()[1 ]};
3847
- else if (identifier == CPROVER_PREFIX " saturating_plus" )
3852
+ }
3853
+ else if (
3854
+ identifier == CPROVER_PREFIX " saturating_plus" ||
3855
+ identifier == " __builtin_elementwise_add_sat" )
3856
+ {
3848
3857
result = saturating_plus_exprt{expr.arguments ()[0 ], expr.arguments ()[1 ]};
3858
+ }
3849
3859
else
3850
3860
UNREACHABLE;
3851
3861
You can’t perform that action at this time.
0 commit comments