🪐 CorC (Eclipse) - Getting Started
To use the Eclipse-version of CorC, follow the following guide for setup. The guide is validated for Windows setup.
♨️ Java Version
Install JDK 21. CorC may not work out of the box with newer versions.
⚙️ Eclipse Modelling Tools and Plugins
- Install Eclipse Modelling Tools (EMT) (Version 2024-03). CorC may not work out of the box with newer versions.
-
Get the latest release of Z3 and add the
*/z3-[cur-version]-[x64/x32]-win/binfolder to the environment variable PATH -
Install Graphiti using the update site https://download.eclipse.org/graphiti/updates/release/0.18.0
-
Install FeatureIDE which is available in Eclipse Marketplace
-
Install Mylyn which is available in Eclipse Marketplace (Mylyn 3.23)
-
Install TestNG which is available in Eclipse Marketplace
🍾 CorC Setup
- Clone the repository:
sh git clone https://github.com/KIT-TVA/CorC.git -
In EMT, select
Open Projects... -> CorCand check the boxes for the following packages:de.tu-bs.cs.isf.cbc.exceptionsde.tu-bs.cs.isf.cbc.modelde.tu-bs.cs.isf.cbc.mutationde.tu-bs.cs.isf.cbc.toolde.tu-bs.cs.isf.cbc.utilde.tu-bs.cs.isf.cbcclass.toolde.tu-bs.cs.isf.wizardsde.tu_bs.cs.isf.cbc.parserde.tu_bs.cs.isf.cbc.statisticsde.tu_bs.cs.isf.cbc.statistics.uide.tu_bs.cs.isf.commands.toolbarde.tu_bs.cs.isf.latticede.tu_bs.cs.isf.proofrepositoryde.kit.tva.lost
-
Open:
*.cbc.model -> model -> genmodel.genmodel*.cbc.statistics -> model -> cbcstatistics.genmodel
Right click and
Generate Model/Edit/Editor Codefor all files listed. If EMT still displays errors, clean and rebuild all projects as described in the common issues section. -
Select any package and run project as
Eclipse Application.
🗄️ Getting Started with Examples
We provide a set of exemplary CbC-programs besides our case studies. Refer to case studies to learn what examples and case studies we offer and how to use them.
🫠 Common Issues
Problem: EMT gets stuck while trying to generate a model.
Solution: Terminate EMT using any process manager and generate the model again.
Problem: Multiple resolving errors after generating model files.
Solution: Clean and rebuild all projects via Project -> Clean....
Problem: Cycling depedency issues.
Solution: Navigate to: Project -> Properties -> Java Compiler -> Building -> Configure Workspace Settings -> Build path problems -> Circular dependencies and set the listbox to Warning.
Problem: Errors in certain files about undefined methods and classes.
Solution: Changing the compliance: Project -> Java Compiler -> JDK Complicance -> Use compliance from execution environment 'JavaSE-16'.
Problem: Errors involving the message 'Cannot modify resource set without a write transaction'.
Solution: Delete the folder .settings in org.eclipse.core.runtime within the current workspace. If that doesn't resolve the issue, delete all .settings folders and the .project file in the CorC folder.
Problem: Some library file or package that is in the git is not shown locally in eclipse and there are errors missing that file
Solution: Press F5 when hovering over the parent directory of the missing file. The file should appear.