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
=== modified file 'src/LTL/LTLMain.cpp'
--- src/LTL/LTLMain.cpp 2021-04-07 08:50:10 +0000
+++ src/LTL/LTLMain.cpp 2021-06-06 19:11:57 +0000
@@ -190,11 +190,13 @@
190 assert(false);190 assert(false);
191 std::cerr << "Error: cannot LTL verify with algorithm None";191 std::cerr << "Error: cannot LTL verify with algorithm None";
192 }192 }
193 bool answer = result.satisfied ^ negate_answer;
193 std::cout << "FORMULA " << queryName194 std::cout << "FORMULA " << queryName
194 << (result.satisfied ^ negate_answer ? " TRUE" : " FALSE") << " TECHNIQUES EXPLICIT "195 << (answer ? " TRUE" : " FALSE") << " TECHNIQUES EXPLICIT "
195 << LTL::to_string(options.ltlalgorithm)196 << LTL::to_string(options.ltlalgorithm)
196 << (result.is_weak ? " WEAK_SKIP" : "")197 << (result.is_weak ? " WEAK_SKIP" : "")
197 << std::endl;198 << std::endl;
199 std::cout << "Query is" << (answer ? "" : " NOT") << " satisfied." << std::endl;
198#ifdef DEBUG_EXPLORED_STATES200#ifdef DEBUG_EXPLORED_STATES
199 std::cout << "FORMULA " << queryName << " STATS EXPLORED " << result.explored_states << std::endl;201 std::cout << "FORMULA " << queryName << " STATS EXPLORED " << result.explored_states << std::endl;
200#endif202#endif

Subscribers

People subscribed via source and target branches