Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKutch committed Oct 1, 2023
1 parent 1130044 commit d1b7584
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions testcrate/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use std::path::PathBuf;

use starlight::{
awi,
awint_dag::{EvalError, Lineage, OpDag, StateEpoch},
awint_dag::{basic_state_epoch::StateEpoch, EvalError, Lineage, OpDag},
dag::*,
StarRng, TDag,
};
Expand All @@ -28,8 +28,8 @@ fn invert_twice() {
let (mut op_dag, res) = OpDag::from_epoch(&epoch0);
res.unwrap();

let p_x = op_dag.note_pstate(x.state()).unwrap();
let p_y = op_dag.note_pstate(y.state()).unwrap();
let p_x = op_dag.note_pstate(&epoch0, x.state()).unwrap();
let p_y = op_dag.note_pstate(&epoch0, y.state()).unwrap();

op_dag.lower_all().unwrap();

Expand Down Expand Up @@ -69,7 +69,7 @@ fn invert_in_loop() {
let (mut op_dag, res) = OpDag::from_epoch(&epoch0);
res.unwrap();

let p_x = op_dag.note_pstate(x.state()).unwrap();
let p_x = op_dag.note_pstate(&epoch0, x.state()).unwrap();

op_dag.lower_all().unwrap();
op_dag.delete_unused_nodes();
Expand Down Expand Up @@ -110,7 +110,7 @@ fn incrementer() {
let (mut op_dag, res) = OpDag::from_epoch(&epoch0);
res.unwrap();

let p_val = op_dag.note_pstate(val.state()).unwrap();
let p_val = op_dag.note_pstate(&epoch0, val.state()).unwrap();

op_dag.lower_all().unwrap();

Expand Down Expand Up @@ -143,9 +143,9 @@ fn multiplier() {
let (mut op_dag, res) = OpDag::from_epoch(&epoch0);
res.unwrap();

let output = op_dag.note_pstate(output.state()).unwrap();
let input_a = op_dag.note_pstate(input_a.state()).unwrap();
let input_b = op_dag.note_pstate(input_b.state()).unwrap();
let output = op_dag.note_pstate(&epoch0, output.state()).unwrap();
let input_a = op_dag.note_pstate(&epoch0, input_a.state()).unwrap();
let input_b = op_dag.note_pstate(&epoch0, input_b.state()).unwrap();

op_dag.lower_all().unwrap();

Expand Down Expand Up @@ -214,8 +214,8 @@ fn luts() {
let (mut op_dag, res) = OpDag::from_epoch(&epoch0);
res.unwrap();

let p_x = op_dag.note_pstate(x.state()).unwrap();
let p_input = op_dag.note_pstate(input_state).unwrap();
let p_x = op_dag.note_pstate(&epoch0, x.state()).unwrap();
let p_input = op_dag.note_pstate(&epoch0, input_state).unwrap();

op_dag.lower_all().unwrap();

Expand Down
2 changes: 1 addition & 1 deletion testcrate/tests/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::num::NonZeroUsize;
use starlight::{
awint::{
awi,
awint_dag::{EvalError, Op, OpDag, StateEpoch},
awint_dag::{basic_state_epoch::StateEpoch, EvalError, Op, OpDag},
dag,
},
awint_dag::smallvec::smallvec,
Expand Down

0 comments on commit d1b7584

Please sign in to comment.