Lanchid
a3837ac76b
Changed WrongFileFormatException to WrongFormatException
Also, start of documentation of PrctlParser and PrctlFileParser
13 years ago
gereon
718608622f
added Ctmdp model, changed MdpParser to NonDetModelParser
13 years ago
Lanchid
f6196c7429
Some error messages on "unparsable" formulas
PrctlParser now throws an error in all cases a formula could not be
parsed successfully.
13 years ago
gereon
47cb1aa4d9
renamed BoundOperator to PathBoundOperator (StateBoundOperator is coming soon...)
renamed modelChecker to modelchecker
13 years ago
Lanchid
ab4174183b
Changed PrctlParser to directly parse the input string as formula, and
added PrctlFileParser to parse formulae from a file
13 years ago
Lanchid
e829e613c0
Changed grammar such that brackets are not necessary around each binary
operator, and changed some test cases to check that it works
13 years ago
Lanchid
3833c8af41
Some more test cases for PRCTL formula parsing
13 years ago
Lanchid
b66e1a34db
Some fixes in formulas
Additional test case for reward formulas
13 years ago
Lanchid
02528f2bd9
Test cases for Prctl parser
13 years ago
gereon
86965ff12a
removed obsolete typedef
13 years ago
gereon
54565ddd55
changed rowMapping to vector<int>
13 years ago
gereon
583ebf62bd
made rowMapping from NDSTParser available in MDP model class
13 years ago
gereon
1d1f9da315
made rowMapping from NDSTParser available in MDP model class
13 years ago
Lanchid
7e87f35e95
First test case for prctl parser, and some necessary modifications for
the code
13 years ago
PBerger
a598d3751c
The DeterministicSparseTransitionParser.cpp was still broken, rewrote it in a simpler and more convenient way.
All Deterministic Tests complete now.
13 years ago
dehnert
6fb56748a6
Bugfix for correctly counting the number of values the parser inserts.
13 years ago
dehnert
726569d5f1
Fixed bug in parser that inserted 0-entries on the diagonal at the wrong places. Enabled link-time-optimizations for Release-Build when using clang. Fixed bug in base exception: what() returned a pointer to a char array belonging to a local variable, which got deallocated and thus invalidates the char array content.
13 years ago
PBerger
9a9cd968d9
Added a test to verify the RowSum Function in the Sparse Matrix.
Added an option to the settings for auto-fixing missing no-selfloop states. Kind of a super-option above fix-nodeadlocks, perhaps some Cleanup later on.
Modified tra Files to comply with formats...
13 years ago
dehnert
1edd306032
Silenced warning of clang: Changed NULL to nullptr as this should be used in C++11.
13 years ago
dehnert
c4af78b859
Added singleton utility class for CUDD-based things. Added some first methods to expression classes to generate ADDs, but this should be moved to a separate class implementing the expression visitor pattern.
13 years ago
Lanchid
d23b3dbee5
First compiling version of PRCTL parser
13 years ago
gereon
df91728da0
first "kind of working" version.
13 years ago
dehnert
a17c99902b
The PRISM parser can now parse DTMC models that do not use synchronization.
13 years ago
gereon
4fd1d672ef
fixed valgrind errors
creating new shared_ptr instances from a raw pointer (i.e. shared_ptr<>(this) or alike) destroys the internal reference counting.
To make this work, one can use std::enable_shared_from_this(), which solves our problem here.
13 years ago
gereon
c2669ccec4
"Creating" DeterministicModelParser
this new parser is actually the old DtmcParser.
It can now also create Ctmc models...
13 years ago
gereon
facec2b040
experimented with custom style checker, fixed a few minor issues
13 years ago
gereon
062960b94c
Some cleanups, removing memleaks
13 years ago
dehnert
152923e14b
Reverted the PrismParser in the sense that it now again builds a full string of the input first and then parses it, because apparently the adapter iterators of Boost give an awful output under valgrind.
13 years ago
gereon
0992df5c66
fixing test for deadlock nodes in parsers
13 years ago
PBerger
7800132684
Added Mdp Class, Parser and support in the AutoParser.
Added Test for MdpParser
13 years ago
Lanchid
1b0449addb
Prctl parser... not yet working
13 years ago
dehnert
c19418b871
Intermediate commit to switch workplace.
13 years ago
dehnert
d414b93bad
Added some functionality to IR. Introduced case distinction for boolean/integer assignments in updates. Started writing an IR adapter.
13 years ago
gereon
989c0a51ea
a few more style issues
13 years ago
gereon
7a1bf4d834
fixed some style issues reported by cpplint
13 years ago
gereon
78c0245d16
Added rowMapping to MDP transition parser.
the rowMapping is a bijective mapping (-> boost::bimap) between the row number and the (node,choice) pair.
13 years ago
gereon
4d709ed9c2
Implemented second pass in NonDeterministicTransitionParser
transition parser for MDPs should work now.
13 years ago
gereon
b8f1ddd5da
Implemented first run for NonDeterministicTransitionParser
the first run checks the syntax and calculates
* overall number of nondeterministic choices, i.e. number of rows
* overall number of transitions, i.e. nonzero elements
* maximum node id, i.e. number of columns
13 years ago
gereon
82ff9f3891
adding initializer for variable
13 years ago
gereon
867d477afc
removing pointless comment
13 years ago
gereon
ea84f91cf3
made a run of cpplint and fixed some of the warnings...
13 years ago
gereon
5668b95d9b
added missing include.
13 years ago
gereon
a695208d0e
implemented check for deadlocks in parser
Add new option --fix-deadlocks.
Check for deadlocks in nodes.
If option is not set, throw an error if a deadlock is found.
If option is set, give a warning and add self-loop.
Some minor cleanups in the parser.
13 years ago
gereon
4dbbb1486b
first working version of AutoParser
13 years ago
dehnert
b4ea27d7c4
Added checks to parser: Now only local variables may be written in updates and each variable at most once.
13 years ago
dehnert
a82c8b3153
Moved implementation of PrismParser completely to source file. Fixed some minor things in IR classes.
13 years ago
gereon
4dc780ef77
modified AutoParser to reflect changes in the model type system.
13 years ago
dehnert
4b7c6a8941
Splitted PrismParser class into header and implementation file. Commented both files properly. Cleaned interface of PrismParser.
13 years ago
dehnert
f52201466c
Parsing labels works now.
13 years ago
dehnert
6a33f84512
Another step towards PRISM model parsing: small models get recognized correctly.
13 years ago