The Use of Theories in Code Generation

From Event-B
Revision as of 08:25, 15 May 2012 by imported>Andy
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The Theory Plug-in

The theory plug-in is used to add mathematical extensions to Rodin. The theories are created, and deployed, and can then be used in any models in the workspace. When dealing with implementation level models, such as in Tasking Event-B, we need to consider how to translate newly added types and operators into code. We have augmented the theory interface with a Translation Rules section. This enables a user to define translation rules that map Event-B formulas to code.

Translation Rules

Figure <fig:Translation Rules> shows the interface, and some translations rules of the mapping to Ada.


caption text
caption text
Figure 1: Translation Rules