Main Content

コード カバレッジ テストの生成

この例では、Simulink® Design Verifier™ を使用してテスト ケースを生成し、完全なコード カバレッジを取得する方法を説明します。

まず、ソフトウェアインザループ (SIL) シミュレーション モード用に設定されたモデル例のコード カバレッジを収集します。次に、Simulink® Design Verifier™ を使用して、テスト ケースを生成するテスト スイートを作成します。最後に、生成されたテスト ケースを SIL シミュレーション モードで実行し、フル カバレッジを検証します。

製品の可用性のチェック

Simulink® Coder™ と Embedded Coder™ ソフトウェアがマシンにインストールされていることを確認してください。

if ~(license('test', 'Real-Time_Workshop') && ...
    license('test','RTW_Embedded_Coder'))
    return
end

初期設定

必ず、未編集バージョンのモデルを開きます。

model = 'sldvdemo_cruise_control';
close_system(model, 0)
open_system(model)

SIL ベースのテストを生成するためのモデルの設定

1.[コンフィギュレーション パラメーター] ウィンドウで、[コード生成] をクリックして [システム ターゲット ファイル]ert.tlc に設定します。または、以下を入力します。

set_param(model,'SystemTargetFile','ert.tlc');

2.[ハードウェア実行] をクリックし、[デバイス ベンダー][デバイス タイプ] を SIL システムのベンダーとタイプに設定します。たとえば、64 ビットの Linux マシンの場合は、[デバイス ベンダー]Intel に、[デバイス タイプ]x-86-64(Windows) に設定します。または、以下を入力します。

if ismac
    lProdHWDeviceType = 'Intel->x86-64 (Mac OS X)';
elseif isunix
    lProdHWDeviceType = 'Intel->x86-64 (Linux 64)';
else
     lProdHWDeviceType = 'Intel->x86-64 (Windows64)';
end

set_param(model, 'ProdHWDeviceType', lProdHWDeviceType);

カバレッジ計算のテスト ケースの検出

Simulink® Design Verifier™ を使用して sldvdemo_cruise_control モデルを解析し、より広いコード カバレッジを達成するテスト スイートを生成します。最上位モデルの MCDC カバレッジを達成するテスト ケースを生成するように、Simulink® Design Verifier™ のオプションを設定します。

opts = sldvoptions;
opts.TestgenTarget = 'GenCodeTopModel';
opts.Mode = 'TestGeneration';
[~, files] = sldvrun(model, opts, true);
### Starting build procedure for: sldvdemo_cruise_control
        ### Loading TLC function libraries
.......
### Initial pass through model to cache user defined code
.
### Caching model source code
.................................
### Writing header file sldvdemo_cruise_control_types.h
### Writing header file sldvdemo_cruise_control.h
### Writing header file rtwtypes.h
### Writing source file sldvdemo_cruise_control.c
### Writing header file sldvdemo_cruise_control_private.h
.
### Writing source file ert_main.c
### TLC code generation complete.
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -o "sldvdemo_cruise_control.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.c"
### Successfully generated all binary outputs.
gmake: Nothing to be done for `buildobj'.
### Successful completion of build procedure for: sldvdemo_cruise_control
### Preparing to start SIL simulation ...
Building with 'gcc'.
MEX completed successfully.
### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux)
### Creating '/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.mk' ...
### Building 'sldvdemo_cruise_control_ca': "/mathworks/devel/bat/Bdoc22a/build/matlab/bin/glnxa64/gmake"  -f sldvdemo_cruise_control_ca.mk all
gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0  -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -o "coder_assumptions_hwimpl.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_hwimpl.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0  -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -o "coder_assumptions_flt.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_flt.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DINTEGER_CODE=0  -DCA_CHECK_FLOATING_POINT_ENABLED=1 -DCA_CHECK_LONG_LONG_ENABLED=0 -DCA_CHECK_DYNAMIC_MEMORY=0 -DCA_CHECK_DAZ_ENABLED=1 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -o "sldvdemo_cruise_control_ca.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/sldvdemo_cruise_control_ca.c"
### Creating static library ./sldvdemo_cruise_control_ca.a ...
ar ruvs  ./sldvdemo_cruise_control_ca.a coder_assumptions_hwimpl.o coder_assumptions_flt.o sldvdemo_cruise_control_ca.o
ar: creating ./sldvdemo_cruise_control_ca.a
a - coder_assumptions_hwimpl.o
a - coder_assumptions_flt.o
a - sldvdemo_cruise_control_ca.o
### Created: ./sldvdemo_cruise_control_ca.a
### Successfully generated all binary outputs.
gmake: Nothing to be done for `all'.
### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux)
### Creating '/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control.mk' ...
### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc22a/build/matlab/bin/glnxa64/gmake"  -f sldvdemo_cruise_control.mk all
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface_lib.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/xil_interface_lib.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_data_stream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/xil_data_stream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_services.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/xil_services.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_interface.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xilcomms_rtiostream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/xilcomms_rtiostream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_rtiostream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/xil_rtiostream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "rtiostream_utils.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils/rtiostream_utils.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_app.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_app.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_data_stream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_data_stream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "coder_assumptions_rtiostream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/coder_assumptions_rtiostream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "sil_main.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/sil_main.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "target_io.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/target_io.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "rtiostream_tcpip.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/rtiostreamtcpip/rtiostream_tcpip.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_instrumentation.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_instrumentation.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "codeinstr_data_stream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/codeinstr_data_stream.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "codeinstr_rtiostream.o" "/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c/codeinstr_rtiostream.c"
### Creating standalone executable ./sldvdemo_cruise_control ...
g++  -o ./sldvdemo_cruise_control xil_interface_lib.o xil_data_stream.o xil_services.o xil_interface.o xilcomms_rtiostream.o xil_rtiostream.o rtiostream_utils.o coder_assumptions_app.o coder_assumptions_data_stream.o coder_assumptions_rtiostream.o sil_main.o target_io.o rtiostream_tcpip.o xil_instrumentation.o codeinstr_data_stream.o codeinstr_rtiostream.o -Wl,--start-group ../instrumented/sldvdemo_cruise_control.o /tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.a -Wl,--end-group  
### Created: ./sldvdemo_cruise_control
### Successfully generated all binary outputs.
gmake: Nothing to be done for `all'.
### Starting SIL simulation for component: sldvdemo_cruise_control
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Starting build procedure for: sldvdemo_cruise_control
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: /tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw
### Generated code for 'sldvdemo_cruise_control' is up to date because no structural, parameter or code replacement library changes were found.
### Saving binary information cache.
### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux)
### '/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.mk' is up to date
### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc22a/build/matlab/bin/glnxa64/gmake"  -f sldvdemo_cruise_control.mk buildobj
### Successfully generated all binary outputs.
gmake: Nothing to be done for `buildobj'.
### Successful completion of build procedure for: sldvdemo_cruise_control

Build Summary

Top model targets built:

Model                    Action         Rebuild Reason                           
=================================================================================
sldvdemo_cruise_control  Code compiled  Compilation artifacts were out of date.  

1 of 1 models built (0 models already up to date)
Build duration: 0h 0m 2.0837s
### Preparing to start SIL simulation ...
### Skipping makefile generation and compilation because /tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control is up to date
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',4);">6754</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',4);">6754</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',5);">6761</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',5);">6761</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',6);">6765</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',6);">6765</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',7);">6772</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',7);">6772</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis

メモ: スクリプトを実行すると、SIL テスト生成によってコードが再生成され再コンパイルされます。

フル カバレッジの検証

関数 sldvruntest は、生成されたテスト スイートを使用してモデルをシミュレートします。関数 cvhtml が生成するカバレッジ レポートは、sldvdemo_cruise_control モデルの最終的なカバレッジを示します。

[~, finalCov] = sldvruntest(model, files.DataFile, [], true);
cvhtml('sil_final_coverage', finalCov);
close_system(model, 0);
### Starting build procedure for: sldvdemo_cruise_control
### Generating code and artifacts to 'Model specific' folder structure
### Generating code into build folder: /tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw
### Generated code for 'sldvdemo_cruise_control' is up to date because no structural, parameter or code replacement library changes were found.
### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux)
### '/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/instrumented/sldvdemo_cruise_control.mk' is up to date
### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc22a/build/matlab/bin/glnxa64/gmake"  -f sldvdemo_cruise_control.mk buildobj
### Successfully generated all binary outputs.
gmake: Nothing to be done for `buildobj'.
### Successful completion of build procedure for: sldvdemo_cruise_control

Build Summary

Top model targets built:

Model                    Action         Rebuild Reason                           
=================================================================================
sldvdemo_cruise_control  Code compiled  Compilation artifacts were out of date.  

1 of 1 models built (0 models already up to date)
Build duration: 0h 0m 1.9437s
### Preparing to start SIL simulation ...
Building with 'gcc'.
MEX completed successfully.
### Using toolchain: GNU gcc/g++ | gmake (64-bit Linux)
### '/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/sldvdemo_cruise_control.mk' is up to date
### Building 'sldvdemo_cruise_control': "/mathworks/devel/bat/Bdoc22a/build/matlab/bin/glnxa64/gmake"  -f sldvdemo_cruise_control.mk all
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_interface.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_interface.c"
gcc -c -fwrapv -fPIC -O0 -msse2 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0  -DTID01EQ=0 -DXIL_SIGNAL_HANDLER=1 -DCODER_ASSUMPTIONS_ENABLED=1 -DRTIOSTREAM_RX_BUFFER_BYTE_SIZE=50000 -DRTIOSTREAM_TX_BUFFER_BYTE_SIZE=50000 -DCODE_INSTRUMENTATION_ENABLED=1 -DMEM_UNIT_BYTES=1 -DMemUnit_T=uint8_T -DMODEL=sldvdemo_cruise_control -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968 -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/simulink/include -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/src/ext_mode/common -I/mathworks/devel/bat/Bdoc22a/build/matlab/rtw/c/ert -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/rtw/targets/pil/c -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/XILTgtAppSvc -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src/utils -I/mathworks/devel/bat/Bdoc22a/build/matlab/toolbox/coder/rtiostream/src -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CoderAssumpTgtAppSvc -I/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions -I/mathworks/devel/bat/Bdoc22a/build/matlab/extern/include/coder/connectivity/CodeInstrTgtAppSvc -o "xil_instrumentation.o" "/tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/sil/xil_instrumentation.c"
### Creating standalone executable ./sldvdemo_cruise_control ...
g++  -o ./sldvdemo_cruise_control xil_interface_lib.o xil_data_stream.o xil_services.o xil_interface.o xilcomms_rtiostream.o xil_rtiostream.o rtiostream_utils.o coder_assumptions_app.o coder_assumptions_data_stream.o coder_assumptions_rtiostream.o sil_main.o target_io.o rtiostream_tcpip.o xil_instrumentation.o codeinstr_data_stream.o codeinstr_rtiostream.o -Wl,--start-group ../instrumented/sldvdemo_cruise_control.o /tmp/Bdoc22a_1880208_27144/tpde3a3dc5/ex15502968/sldvdemo_cruise_control_ert_rtw/coderassumptions/lib/sldvdemo_cruise_control_ca.a -Wl,--end-group  
### Created: ./sldvdemo_cruise_control
### Successfully generated all binary outputs.
gmake: Nothing to be done for `all'.
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',10);">6832</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',10);">6832</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',11);">6838</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',11);">6838</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',12);">6845</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',12);">6845</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis
### Starting SIL simulation for component: sldvdemo_cruise_control
rtw.connectivity.HostLauncher: started executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',13);">6849</a>
rtw.connectivity.HostLauncher: stopped executable with host process identifier <a href="matlab: targets_hyperlink_manager('run',13);">6849</a>
### Stopping SIL simulation for component: sldvdemo_cruise_control
### Completed code coverage analysis

メモ: スクリプトを実行すると、SIL テスト生成によってコードが再生成され再コンパイルされます。