-options-file
R2026bオプションのリストを使用した Polyspace の実行
構文
-options-file file
説明
-options-file は解析オプションをリストにしたファイルを指定します。ファイルは各オプションが個別の行に記載されたテキスト ファイルでなければなりません。file# を使用してこのファイルにコメントを追加します。
ユーザー インターフェイス (Polyspace® デスクトップ製品のみ) では、[構成] ペインの [その他] フィールドにこのオプションを入力します。Otherを参照してください。
ユーザー インターフェイスの [その他] フィールドでこのオプションを使用するときは、オプション ファイルの絶対パスを指定します。次に例を示します。
-options-file C:\psconfig\listofoptions.txt
コマンド ラインで使用する場合とは異なり、オプション ファイルではオプション引数を引用符で囲まないでください。たとえば、コマンド ラインでは -generate-results-for custom="path\to\folder" を引用符で囲んで使用します。オプション ファイルでは、引用符を使用せずに同じオプションを指定します。
-generate-results-for custom=path\to\folder
例
オプションを入れた
listofoptions.txtと呼ばれるオプション ファイルを作成します。以下に例を示します。Bug Finder または Bug Finder Server:
#These are the options for MyBugFinderProject -lang c -prog MyBugFinderProject -author jsmith -sources-list-file sources.txt -target x86_64 -compiler generic -dos -misra3 required-rules -do-not-generate-results-for all-headers -checkers default -disable-checkers concurrency -results-dir C:\Polyspace\MyBugFinderProject
ここで、
sources.txtには 1 行につき 1 つのソース ファイル パスが含まれています。mymain.c funAlgebra.c funGeometry.c
Code Prover または Code Prover Server:
#These are the options for MyCodeProverProject -lang c -prog MyCodeProverProject -author jsmith -sources-list-file sources.txt -target x86_64 -compiler generic -dos -misra3 required-rules -do-not-generate-results-for all-headers -main-generator -results-dir C:\Polyspace\MyCodeProverProject
ここで、
sources.txtには 1 行につき 1 つのソース ファイル パスが含まれています。mymain.c funAlgebra.c funGeometry.c
listofoptions.txtファイル内のオプションを使用して Polyspace を実行します。Bug Finder:
polyspace-bug-finder -options-file listofoptions.txt
Code Prover:
polyspace-code-prover -options-file listofoptions.txt
Bug Finder Server:
polyspace-bug-finder-server -options-file listofoptions.txt
Code Prover Server:
polyspace-code-prover-server -options-file listofoptions.txt