Skip to content

Commit

Permalink
move docs
Browse files Browse the repository at this point in the history
  • Loading branch information
acl-cqc committed Oct 22, 2024
1 parent caa8aca commit e7f61fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions hugr-passes/src/dataflow/datalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ type PV<V> = PartialValue<V>;
/// Basic structure for performing an analysis. Usage:
/// 1. Get a new instance via [Self::default()]
/// 2. (Optionally / for tests) zero or more [Self::prepopulate_wire] with initial values
/// 3. Call [Self::run] to produce [AnalysisResults] which can be inspected via
/// [read_out_wire](AnalysisResults::read_out_wire)
/// 3. Call [Self::run] to produce [AnalysisResults]
pub struct Machine<V: AbstractValue>(Vec<(Node, IncomingPort, PartialValue<V>)>);

/// derived-Default requires the context to be Defaultable, which is unnecessary
Expand Down
3 changes: 2 additions & 1 deletion hugr-passes/src/dataflow/results.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ use hugr_core::{ops::Value, types::ConstTypeError, HugrView, IncomingPort, Node,

use super::{AbstractValue, PartialValue};

/// Results of a dataflow analysis, packaged with context for easy inspection
/// Results of a dataflow analysis, packaged with the Hugr for easy inspection.
/// Methods allow inspection, specifically [read_out_wire](Self::read_out_wire).
pub struct AnalysisResults<V: AbstractValue, H: HugrView> {
pub(super) hugr: H,
pub(super) in_wire_value: Vec<(Node, IncomingPort, PartialValue<V>)>,
Expand Down

0 comments on commit e7f61fc

Please sign in to comment.