Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/transform/placer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,18 +655,21 @@ mod tests {
// .build_global()
// .unwrap();

let logic_graph = build_graph_from_stmt("a&b", "c")?.prepare_place()?;
// (~a & b) | (a & ~b)
// ~(~a|~b)
// ~(~~a|~b)|~(~a|~~b)
let logic_graph = build_graph_from_stmt("(~a&b)|(a&~b)", "c")?.prepare_place()?;
println!("{}", logic_graph.to_graphviz());

let config = LocalPlacerConfig {
greedy_input_generation: true,
step_sampling_policy: SamplingPolicy::Random(100),
step_sampling_policy: SamplingPolicy::Random(1000),
route_torch_directly: true,
max_route_step: 3,
max_route_step: 2,
route_step_sampling_policy: SamplingPolicy::Random(100),
};
let mut placer = LocalPlacer::new(logic_graph, config)?;
let worlds = placer.generate(Some(6));
let worlds = placer.generate(Some(10));

let sampled_worlds = SamplingPolicy::Random(100).sample(worlds);

Expand Down