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