217
217
public static boolean trySetup() {
219
String verifypn = null;
221
//If env is set, it overwrites the value
222
verifypn = System.getenv("verifypn");
223
if (verifypn != null && !verifypn.isEmpty()) {
224
if (new File(verifypn).exists()){
220
String verifypn = null;
222
//If env is set, it overwrites the value
223
verifypn = System.getenv("verifypn");
224
if (verifypn != null && !verifypn.isEmpty()) {
225
if (new File(verifypn).exists()){
226
verifypnpath = verifypn;
227
VerifyPN v = new VerifyPN(new FileFinder(), new MessengerImpl());
228
if(v.isCorrectVersion()){
238
verifypn = Preferences.getInstance().getVerifypnLocation();
239
if (verifypn != null && !verifypn.isEmpty()) {
225
240
verifypnpath = verifypn;
226
VerifyPN v = new VerifyPN(new FileFinder(), new MessengerImpl());
227
if(v.isCorrectVersion()){
237
verifypn = Preferences.getInstance().getVerifypnLocation();
238
if (verifypn != null && !verifypn.isEmpty()) {
239
verifypnpath = verifypn;
243
//Search the installdir for verifytapn
244
File installdir = TAPAAL.getInstallDir();
246
String[] paths = {"/bin/verifypn", "/bin/verifypn64", "/bin/verifypn.exe", "/bin/verifypn64.exe"};
247
for (String s : paths) {
248
File verifypnfile = new File(installdir + s);
250
if (verifypnfile.exists()){
252
verifypnpath = verifypnfile.getAbsolutePath();
253
VerifyPN v = new VerifyPN(new FileFinder(), new MessengerImpl());
254
if(v.isCorrectVersion()){
244
//Search the installdir for verifytapn
245
File installdir = TAPAAL.getInstallDir();
247
String[] paths = {"/bin/verifypn", "/bin/verifypn64", "/bin/verifypn.exe", "/bin/verifypn64.exe"};
248
for (String s : paths) {
249
File verifypnfile = new File(installdir + s);
251
if (verifypnfile.exists()){
253
verifypnpath = verifypnfile.getAbsolutePath();
254
VerifyPN v = new VerifyPN(new FileFinder(), new MessengerImpl());
255
if(v.isCorrectVersion()){
267
} catch (Exception e) {
269
272
public VerificationResult<TimedArcPetriNetTrace> verify(VerificationOptions options, Tuple<TimedArcPetriNet, NameMapping> model, TAPNQuery query) throws Exception {