Skip to content

Conversation

@taiseiKMC
Copy link
Contributor

@taiseiKMC taiseiKMC commented Dec 7, 2025

For #11,

  • Add the template parameter Timestamp to monitors
    • In other words, parameterize timestamp types
  • Give double as Timestamp when using data_parametric_monitor and boolean_monitor, PPLRational when using parametric_monitor
  • Update parametric_timing_constraint_helper to handle PPLRational
    • I request to check extract function carefully
  • Introduce type traits like timingconstraint_timestamp_t to avoid adding an additional template type parameter Timestamp to SymonParser, that has some constexpr branching depending on the type structure of TimingConstraing<Timestamp>

@taiseiKMC taiseiKMC force-pushed the hsaito/issue-11 branch 2 times, most recently from c9c62c0 to 138c8a9 Compare December 7, 2025 18:48
Copy link
Owner

@MasWag MasWag left a 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 ...)
Copy link
Owner

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
Copy link
Owner

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 する
Copy link
Owner

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] を生成
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants