Merge lp:~tapaal-ltl/verifypn/answer-for-gui into lp:verifypn

Proposed by Simon Virenfeldt
Status: Merged
Merged at revision: 240
Proposed branch: lp:~tapaal-ltl/verifypn/answer-for-gui
Merge into: lp:verifypn
Diff against target: 18 lines (+3/-1)
1 file modified
src/LTL/LTLMain.cpp (+3/-1)
To merge this branch: bzr merge lp:~tapaal-ltl/verifypn/answer-for-gui
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+403765@code.launchpad.net

Commit message

Add LTL answer output compatible with the TAPAAL GUI.

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/LTL/LTLMain.cpp'
2--- src/LTL/LTLMain.cpp 2021-04-07 08:50:10 +0000
3+++ src/LTL/LTLMain.cpp 2021-06-06 19:11:57 +0000
4@@ -190,11 +190,13 @@
5 assert(false);
6 std::cerr << "Error: cannot LTL verify with algorithm None";
7 }
8+ bool answer = result.satisfied ^ negate_answer;
9 std::cout << "FORMULA " << queryName
10- << (result.satisfied ^ negate_answer ? " TRUE" : " FALSE") << " TECHNIQUES EXPLICIT "
11+ << (answer ? " TRUE" : " FALSE") << " TECHNIQUES EXPLICIT "
12 << LTL::to_string(options.ltlalgorithm)
13 << (result.is_weak ? " WEAK_SKIP" : "")
14 << std::endl;
15+ std::cout << "Query is" << (answer ? "" : " NOT") << " satisfied." << std::endl;
16 #ifdef DEBUG_EXPLORED_STATES
17 std::cout << "FORMULA " << queryName << " STATS EXPLORED " << result.explored_states << std::endl;
18 #endif

Subscribers

People subscribed via source and target branches