function isRte = isRunTimeErrors(options)
% isRuntimeErrors: Given sldvoptions, checks whether at least one runtime
% error is enabled

% Copyright 2019-2023 The MathWorks, Inc.

    isRte = strcmp(options.Mode, 'DesignErrorDetection');
    isRte = isRte && (strcmp(options.DesignMinMaxCheck, 'on') ...
                      || strcmp(options.DetectDivisionByZero, 'on') ...
                      || strcmp(options.DetectInfNaN, 'on') ...
                      || strcmp(options.DetectIntegerOverflow, 'on') ...
                      || strcmp(options.DetectOutOfBounds, 'on') ...
                      || strcmp(options.DetectSubnormal, 'on') ...
                      || strcmp(options.DetectDSMAccessViolations, 'on') ...
                      || strcmp(options.DetectBlockInputRangeViolations, 'on') ...
                      || ~isempty(options.DetectBlockConditions));
end

