Skip to content
Snippets Groups Projects
Commit 69fe12d1 authored by Jens Bendisposto's avatar Jens Bendisposto
Browse files

Catch another Exception

parent 631631dd
No related branches found
No related tags found
No related merge requests found
...@@ -170,13 +170,12 @@ public class ModelTranslator extends AbstractComponentTranslator { ...@@ -170,13 +170,12 @@ public class ModelTranslator extends AbstractComponentTranslator {
addUnitPragmas(machine.getSCVariables()); addUnitPragmas(machine.getSCVariables());
} }
private void collectProofInfo() throws RodinDBException { private void collectProofInfo() {
List<String> bugs = new LinkedList<String>();
try {
IPSRoot proofStatus = machine.getPSRoot(); IPSRoot proofStatus = machine.getPSRoot();
IPSStatus[] statuses = proofStatus.getStatuses(); IPSStatus[] statuses = proofStatus.getStatuses();
List<String> bugs = new LinkedList<String>();
for (IPSStatus status : statuses) { for (IPSStatus status : statuses) {
final int confidence = status.getConfidence(); final int confidence = status.getConfidence();
boolean broken = status.isBroken(); boolean broken = status.isBroken();
...@@ -220,6 +219,9 @@ public class ModelTranslator extends AbstractComponentTranslator { ...@@ -220,6 +219,9 @@ public class ModelTranslator extends AbstractComponentTranslator {
} }
addProof(new ProofObligation(origin, s, name, pstatus)); addProof(new ProofObligation(origin, s, name, pstatus));
} }
} catch (Exception e) {
bugs.add(e.getLocalizedMessage());
}
if (!bugs.isEmpty()) { if (!bugs.isEmpty()) {
String message = "Translation incomplete due to a Bug in Rodin. This does not affect correctness of the Animation/Model Checking but can decrease its performance. Skipped discharged information about: " String message = "Translation incomplete due to a Bug in Rodin. This does not affect correctness of the Animation/Model Checking but can decrease its performance. Skipped discharged information about: "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment