function out = isTerminalBlock(ms, blockH)
% TopTester: test\toolbox\sldv\se\virtualsupport\tVirtualSignalStartPoints.m

%   Copyright 2020 The MathWorks, Inc.

    out = false;
    if ~ishandle(blockH)
        return;
    end
    blockType = get(blockH,'BlockType');
    if strcmp(blockType,'Ground')% g2202879: to add ground block output as starting point
        out = true;
    elseif strcmp(blockType,'Inport')% g2206924: checking if block is a root level inport for starting point
        blockO = get(blockH, 'Object');
        if strcmp(blockO.Parent, ms.model)
            out = true;
        end
    elseif strcmp(blockType,'Terminator')
        out=true;
    end
end
