%% Eliminate Unused Branches of Conditional Statements
% This example shows how Simulink and Simulink Coder remove dead paths from
% a model. Path A represents a designer's wish to perform Lookup1 versus
% Lookup2 based on a static criteria. Path B represents a designer's wish to
% capture a requirement directly into the design utilizing an assertion
% block, which is not active. Path C is another assertion, which
% is active. These scenarios are automatically detected and any unnecessary
% paths are eliminated.
%  

%   Copyright 2014 The MathWorks, Inc.
%% Example Model

model='rtwdemo_deadpath';
open_system(model);