-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from lorchrob/ref-type-realizability
Add support for realizability checks and deadlocking traces
- Loading branch information
Showing
7 changed files
with
172 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/edu/uiowa/cs/clc/kind2/results/RealizabilityResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright (c) 2024, Board of Trustees of the University of Iowa | ||
* All rights reserved. | ||
* | ||
* Licensed under the BSD 3-Clause License. See LICENSE in the project root for license information. | ||
*/ | ||
|
||
package edu.uiowa.cs.clc.kind2.results; | ||
|
||
/** | ||
* Enum for realizability results. | ||
*/ | ||
public enum RealizabilityResult | ||
{ | ||
realizable("realizable"), | ||
unrealizable("unrealizable"); | ||
|
||
private final String value; | ||
|
||
RealizabilityResult(String value) | ||
{ | ||
this.value = value; | ||
} | ||
|
||
public static RealizabilityResult getRealizabilityResult(String realizabilityResult) | ||
{ | ||
switch (realizabilityResult) | ||
{ | ||
case "Realizable": | ||
case "realizable": | ||
return realizable; | ||
case "Unrealizable": | ||
case "unrealizable": | ||
return unrealizable; | ||
default: | ||
throw new UnsupportedOperationException("Realizability result " + realizabilityResult + " is not defined"); | ||
} | ||
} | ||
|
||
@Override | ||
public String toString() | ||
{ | ||
return this.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters