Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
HOAParsingTest.cpp
Go to the documentation of this file.
2#include "test/storm_gtest.h"
3
4#include <sstream>
5#include <string>
6
7TEST(DeterministicAutomaton, ParseAutomaton) {
8 std::string aUb =
9 "HOA: v1\n"
10 "States: 3\n"
11 "Start: 0\n"
12 "acc-name: Rabin 1\n"
13 "Acceptance: 2 (Fin(0) & Inf(1))\n"
14 "AP: 2 \"a\" \"b\""
15 "--BODY--\n"
16 "State: 0 \"a U b\" { 0 }\n"
17 " 2 /* !a & !b */\n"
18 " 0 /* a & !b */\n"
19 " 1 /* !a & b */\n"
20 " 1 /* a & b */\n"
21 "State: 1 { 1 }\n"
22 " 1 1 1 1 /* four transitions on one line */\n"
23 "State: 2 \"sink state\" { 0 }\n"
24 " 2 2 2 2\n"
25 "--END--\n";
26
27 std::istringstream in = std::istringstream(aUb);
29 ASSERT_NO_THROW(da = storm::automata::DeterministicAutomaton::parse(in));
30 // da->printHOA(std::cout);
31}
TEST(DeterministicAutomaton, ParseAutomaton)
std::shared_ptr< DeterministicAutomaton > ptr
static DeterministicAutomaton::ptr parse(std::istream &in)