-
Notifications
You must be signed in to change notification settings - Fork 3
Resolve #11 #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Resolve #11 #12
Conversation
c9c62c0 to
138c8a9
Compare
…arison operators accordingly
calling is.peek twice at eof sometimes cause is.fail
…alComparison and add decimalCalculation cases
138c8a9 to
86cb8c2
Compare
MasWag
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove unnecessary comments.
| std::array<std::vector<std::pair<op_t, atom_t>>, 2> tail; | ||
| //! @brief comparison in the constraint | ||
| comparison_t comparison = comparison_t::EQ; | ||
| // (head[0] tail[0][0].first tail[0][0].second ...) comparison (head[1] tail[1][0].first tail[1][0].second ...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is likely an unnecessary comment.
| void toExpr(const std::size_t parameterSize, const atom_t &atom, | ||
| Parma_Polyhedra_Library::Linear_Expression &expr) const { | ||
| static auto toExpr(const std::size_t parameterSize, const atom_t &atom) { | ||
| // Coefficient は denominator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also likely an unnecessary comment.
| return expr; | ||
| } | ||
|
|
||
| // constraint で ParametricTimingConstraint = Parma_Polyhedra_Library::NNC_Polyhedron の add_constraint する |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also likely an unnecessary comment.
| void extract(const std::size_t parameterSize, Parma_Polyhedra_Library::Constraint &constraint) const { | ||
| std::array<Parma_Polyhedra_Library::Linear_Expression, 2> expr; | ||
| std::array<std::pair<Parma_Polyhedra_Library::Linear_Expression, Parma_Polyhedra_Library::Coefficient>, 2> expr; | ||
| // head[i], tail[i] から expr[i] を生成 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also likely an unnecessary comment.
For #11,
Timestampto monitorsdoubleasTimestampwhen using data_parametric_monitor and boolean_monitor,PPLRationalwhen using parametric_monitorPPLRationalextractfunction carefullytimingconstraint_timestamp_tto avoid adding an additional template type parameterTimestamptoSymonParser, that has some constexpr branching depending on the type structure ofTimingConstraing<Timestamp>