JP4924188B2 - クロス検証装置 - Google Patents
クロス検証装置 Download PDFInfo
- Publication number
- JP4924188B2 JP4924188B2 JP2007119935A JP2007119935A JP4924188B2 JP 4924188 B2 JP4924188 B2 JP 4924188B2 JP 2007119935 A JP2007119935 A JP 2007119935A JP 2007119935 A JP2007119935 A JP 2007119935A JP 4924188 B2 JP4924188 B2 JP 4924188B2
- Authority
- JP
- Japan
- Prior art keywords
- cross
- assertion
- verification
- language
- models
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Description
まず、本実施の形態の概要について、図1から図4を参照して詳細に説明する。図1から図4は、本実施の形態の概要を示す図である。
つぎに、本実施の形態にかかるクロス検証装置10の構成について、図5から図18を参照して説明する。図5は、クロス検証装置10の構成の一例を示すブロック図であり、該構成のうち本発明に関係する部分のみを概念的に示している。
つぎに、クロス検証装置10で実行するクロス検証処理の一例を、図19を参照して説明する。図19は、クロス検証装置10で実行するクロス検証処理の一例を示すフローチャートである。なお、ここでは、本処理を、図6に示すクロス検証装置10で行う場合について説明する。
分岐条件1:(u2t_emthwgd) > (u2s_ekmw_THWH)
分岐条件2:(u2t_emthwgd) < (u2s_ekmw_THWL)
なお、図22に示すCコードにおいて、分岐条件2は、分岐条件1と「else if」で繋がっているため、「{(u2t_emthwgd) > (u2s_ekmw_THWH)}&&{(u2t_emthwgd) < (u2s_ekmw_THWL)}」である。
アサーション1:assert(!!((u2t_emthwgd) > (u2s_e
kmw_THWH)));
assert(!((u2t_emthwgd) > (u2s_ek
mw_THWH)));
アサーション2:assert(((u2t_emthwgd) > (u2s_ekm
w_THWH)) || !!((u2t_emthwgd) < (
u2s_ekmw_THWL)));
assert(((u2t_emthwgd) > (u2s_ekm
w_THWH)) || !((u2t_emthwgd) < (u
2s_ekmw_THWL)));
以上、詳細に説明したように、本実施の形態にかかるクロス検証装置10によれば、動作仕様、エンジン制御用のCコードおよびエンジン制御用のGUIロジックを作成し、作成した動作仕様、CコードおよびGUIロジックに基づいてアサーションを生成し、生成したアサーションを当該Cコードおよび当該GUIロジックに挿入し、生成したアサーション、アサーションが挿入された後のCコードおよびアサーションが挿入された後のGUIロジックをCNFへ変換し、変換した後のアサーション、CコードおよびGUIロジックの検証を行い、その検証結果を表示する。これにより、エンジンの制御ソフトウェアの開発において動作仕様とCコードとGUIロジックとのクロス検証を行うことができ、結果的に当該開発の効率を高めることができる。換言すると、その過程で異なる言語が使われるエンジン(車両)開発のような環境下でクロス検証を行うことができ、結果的に当該開発の効率を高めることができる。また、アサーションを生成・挿入するので、エンジンの制御ソフトウェアの開発において仕様の検証を効果的に行うことができる。
12a 仕様マネージャー
12b Cコードマネージャー
12c GUIロジックマネージャー
14 CNF変換機
14a 仕様CNF変換機
14b CコードCNF変換機
14c GUIロジックCNF変換機
16 SATソルバー
18 ユーザインターフェース
20 アサーション生成・挿入部
Claims (7)
- 互いに異なる所定の言語でモデルを作成する複数のモデル作成手段と、
複数の前記モデル作成手段で作成した複数の前記モデルのいずれにも対応する検証項目を含む仕様を所定の言語で作成する仕様作成手段と、
前記仕様作成手段で作成した前記仕様および複数の前記モデル作成手段で作成した複数の前記モデルを所定の言語に変換する言語変換手段と、
前記言語変換手段で言語が変換された後の前記仕様に基づいて、言語が変換された後の各々の前記モデルについて、性質が成り立つか否かを検証するクロス検証手段と、
前記クロス検証手段での検証結果を出力したり、前記クロス検証手段で反例を生成した場合にはさらに前記反例をテストデータとして出力したりする結果出力手段と、
を備えたことを特徴とするクロス検証装置。 - 前記仕様作成手段で作成した前記仕様および複数の前記モデル作成手段で作成した複数の前記モデルに基づいてアサーションを生成するアサーション生成手段と、
前記アサーション生成手段で生成した前記アサーションを、複数の前記モデル作成手段で作成した複数の前記モデルに挿入するアサーション挿入手段と
をさらに備え、
前記言語変換手段は、前記仕様作成手段で作成した前記仕様、前記アサーション挿入手段で前記アサーションが挿入された後の複数の前記モデルおよび前記アサーション生成手段で生成した前記アサーションを前記所定の言語に変換すること
を特徴とする請求項1に記載のクロス検証装置。 - 前記言語変換手段は、前記仕様および複数の前記モデルに含まれる変数を論理ゲートを用いて並列的に2進変数へ変換し、2進変数へ変換した後の前記仕様および複数の前記モデルを所定の手法でCNF(Conjnctive Normal Form)へ変換すること
を特徴とする請求項1または2に記載のクロス検証装置。 - 互いに異なる所定の言語でモデルを作成する複数のモデル作成ステップと、
複数の前記モデル作成ステップで作成した複数の前記モデルのいずれにも対応する検証項目を含む仕様を所定の言語で作成する仕様作成ステップと、
前記仕様作成ステップで作成した前記仕様および複数の前記モデル作成ステップで作成した複数の前記モデルを所定の言語に変換する言語変換ステップと、
前記言語変換ステップで言語が変換された後の前記仕様に基づいて、言語が変換された後の各々の前記モデルについて、性質が成り立つか否かを検証するクロス検証ステップと、
前記クロス検証ステップでの検証結果を出力したり、前記クロス検証ステップで反例を生成した場合にはさらに前記反例をテストデータとして出力したりする結果出力ステップと、
を含むことを特徴とするクロス検証方法。 - 前記仕様作成ステップで作成した前記仕様および複数の前記モデル作成ステップで作成した複数の前記モデルに基づいてアサーションを生成するアサーション生成ステップと、
前記アサーション生成ステップで生成した前記アサーションを、複数の前記モデル作成ステップで作成した複数の前記モデルに挿入するアサーション挿入ステップと
をさらに含み、
前記言語変換ステップは、前記仕様作成ステップで作成した前記仕様、前記アサーション挿入ステップで前記アサーションが挿入された後の複数の前記モデルおよび前記アサーション生成ステップで生成した前記アサーションを前記所定の言語に変換すること
を特徴とする請求項4に記載のクロス検証方法。 - 前記言語変換ステップは、前記仕様および複数の前記モデルに含まれる変数を論理ゲートを用いて並列的に2進変数へ変換し、2進変数へ変換した後の前記仕様および複数の前記モデルを所定の手法でCNF(Conjnctive Normal Form)へ変換すること
を特徴とする請求項4または5に記載のクロス検証方法。 - 互いに異なる所定の言語でモデルを作成する複数のモデル作成ステップと、
複数の前記モデル作成ステップで作成した複数の前記モデルのいずれにも対応する検証項目を含む仕様を所定の言語で作成する仕様作成ステップと、
前記仕様作成ステップで作成した前記仕様および複数の前記モデル作成ステップで作成した複数の前記モデルを所定の言語に変換する言語変換ステップと、
前記言語変換ステップで言語が変換された後の前記仕様に基づいて、言語が変換された後の各々の前記モデルについて、性質が成り立つか否かを検証するクロス検証ステップと、
前記クロス検証ステップでの検証結果を出力したり、前記クロス検証ステップで反例を生成した場合にはさらに前記反例をテストデータとして出力したりする結果出力ステップと、
を含むクロス検証方法をコンピュータに実行させることを特徴とするクロス検証プログラム。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007119935A JP4924188B2 (ja) | 2007-04-27 | 2007-04-27 | クロス検証装置 |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007119935A JP4924188B2 (ja) | 2007-04-27 | 2007-04-27 | クロス検証装置 |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2008276556A JP2008276556A (ja) | 2008-11-13 |
JP4924188B2 true JP4924188B2 (ja) | 2012-04-25 |
Family
ID=40054423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007119935A Expired - Fee Related JP4924188B2 (ja) | 2007-04-27 | 2007-04-27 | クロス検証装置 |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4924188B2 (ja) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9747082B2 (en) | 2014-12-18 | 2017-08-29 | International Business Machines Corporation | Optimizing program performance with assertion management |
US9823904B2 (en) | 2014-12-18 | 2017-11-21 | International Business Machines Corporation | Managed assertions in an integrated development environment |
US9703552B2 (en) | 2014-12-18 | 2017-07-11 | International Business Machines Corporation | Assertions based on recently changed code |
US9678855B2 (en) | 2014-12-30 | 2017-06-13 | International Business Machines Corporation | Managing assertions while compiling and debugging source code |
DE112016006297T5 (de) | 2016-02-24 | 2018-10-31 | Mitsubishi Electric Corporation | Testfall-Erzeugungsvorrichtung und Testfall-Erzeugungsprogramm |
JP6571897B2 (ja) | 2017-02-16 | 2019-09-04 | 三菱電機株式会社 | 動作検証装置、動作検証方法および動作検証プログラム |
CN110532185B (zh) * | 2019-08-29 | 2023-09-19 | 中国工商银行股份有限公司 | 测试方法、装置、电子设备和计算机可读存储介质 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH04205358A (ja) * | 1990-11-30 | 1992-07-27 | Toshiba Corp | プログラム検証方式 |
JPH11102291A (ja) * | 1997-09-29 | 1999-04-13 | Hitachi Ltd | 仕様整合性検証システム |
US6415430B1 (en) * | 1999-07-01 | 2002-07-02 | Nec Usa, Inc. | Method and apparatus for SAT solver architecture with very low synthesis and layout overhead |
ATE526628T1 (de) * | 2004-01-22 | 2011-10-15 | Nec Lab America Inc | System und verfahren zum modellieren, abstrahieren und analysieren von software |
US8020153B2 (en) * | 2004-10-04 | 2011-09-13 | Panasonic Corporation | Source code checker, source code checking method, program for causing execution of the method, and storage medium for storing the program |
JP2007011467A (ja) * | 2005-06-28 | 2007-01-18 | Matsushita Electric Ind Co Ltd | アサーション記述自動生成方法および装置 |
-
2007
- 2007-04-27 JP JP2007119935A patent/JP4924188B2/ja not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2008276556A (ja) | 2008-11-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4924188B2 (ja) | クロス検証装置 | |
US8041554B1 (en) | Method and system for the development of high-assurance microcode | |
Küster et al. | Validation of model transformations–first experiences using a white box approach | |
Egyed | A scenario-driven approach to traceability | |
Papadopoulos et al. | Model-based synthesis of fault trees from matlab-simulink models | |
Drave et al. | SMArDT modeling for automotive software testing | |
Arcaini et al. | AsmetaSMV: a way to link high-level ASM models to low-level NuSMV specifications | |
Ratiu et al. | Automated testing of DSL implementations: experiences from building mbeddr | |
US7275231B2 (en) | High level validation of designs and products | |
Bigot et al. | Automatic test generation with AGATHA | |
US8726241B1 (en) | Method and system for the development of high-assurance computing elements | |
Jetley et al. | Applying software engineering practices for development of industrial automation applications | |
Tomar et al. | Verification & validation of components with new x component-based model | |
JP2008305079A (ja) | 要求仕様自動検証方式 | |
Boroday et al. | Can a model checker generate tests for non-deterministic systems? | |
Heneghan et al. | Enabling security checking of automotive ECUs with formal CSP models | |
Elmqvist et al. | Safety-oriented design of component assemblies using safety interfaces | |
Jose et al. | SMT based false causal loop detection during code synthesis from polychronous specifications | |
Bhatt et al. | Model-based development and the implications to design assurance and certification | |
CN115408289A (zh) | 一种面向scade模型的测试用例自动生成方法 | |
Dadeau et al. | Test Generation and Evaluation from High-Level Properties for Common Criteria Evaluations--The TASCCC Testing Tool | |
Horváth et al. | Hardware-software allocation specification of ima systems for early simulation | |
CN112559359A (zh) | 一种基于s2ml的安全攸关系统分析与验证方法 | |
Sampath et al. | Testing model-processing tools for embedded systems | |
Urdahl et al. | Architectural system modeling for correct-by-construction RTL design |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20091005 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20110623 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111108 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20111212 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20120110 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20120123 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150217 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20150217 Year of fee payment: 3 |
|
LAPS | Cancellation because of no payment of annual fees |