Web application

The tool OCL2FOL+ is available online here.

User manual

From scratch:

1. Select the DTM-tab, and type-in an ActionGUI data model M in Δ.

2. Select the OCL to FOL-tab, and add as many OCL boolean expressions (hypothesis) exp1,..., expn in Η as you want by (repeatedly) clicking on the Add-button and typing-in the desired expression expi.

Notice that you can always modify or remove OCL boolean expressions already typed-in by clicking on the buttons Remove and Modify.

3. Select the OCL to FOL-tab, and add an OCL expression expn+1 (assertion) in H and select the type, by clicking the radio-bottom. Note that if you choose the types true and false, the OCL expression should be boolean.

4. Select an SMT solver (currently, either Z3 or Yices).

5. Generate the environment O2Fdata+(M) U {O2Ftrue(exp1),...,O2Ftrue(expn)} U {O2Fdef+( exp1),...,O2Fdef+(M, expn+1)} U {O2Ftype(expn+1)}  with the syntax of the selected SMT solver.

From a stored project

An OCL2FOL+ project consists of a data model M in Δ (the context), a set of OCL boolean expressions exp1,..., expn in Η (the hipothesis), one OCL expression expn+1 in Η (the assertion) and a keyword (the type): true, false, null, invalid.

To store the data model and OCL expressions that you have typed in the OCL2FOL+ web application as an OCL2FOL+ project, simply click on the button Store and download the generated XML file (by default, memento.xml) to your local disk.

To restore an OCL2FOL+ project, simply click on the button Restore and upload the project from your local disk.