function showfixptsimranges(action, model)
%SHOWFIXPTSIMRANGES show min/max/overflow logs from the last simulation of
%a model. 

% Copyright 1994-2019 The MathWorks, Inc.

if nargin < 2
    model = bdroot;
end
if isempty(model)
    return;
end

if nargin < 1
    action = 'verbose';
else
    global FixPtSimRanges; %#ok<TLEV>
end

if isempty(strcmp(action, {'verbose','quiet'}))
    DAStudio.error('SimulinkFixedPoint:autoscaling:actionNotSupport');
end

FixPtSimRanges = retrievefixptsimranges(model, get_param(model,'FPTRunName'));


if strcmp(action, 'verbose')
    for i = 1:length(FixPtSimRanges)
        disp(' ')
        disp(FixPtSimRanges{i})
    end
end

% LocalWords:  autoscaling FPT