Improved predicate splitting (#445)
* Multi-batch splitting * Invoke split predicates by name, passing in full argument list * Reorder batches to prevent failure of forward references where possible * Rename APIs for clarity * Simplify example * Add more docs * Review updates * Remove duplicate code * Comment topological sort algorithm
This commit is contained in:
parent
9c9a2c454c
commit
d1b7b4d37e
12 changed files with 2090 additions and 466 deletions
|
|
@ -88,7 +88,10 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
game_pk = game_pk,
|
||||
);
|
||||
println!("# custom predicate batch:{}", input);
|
||||
let batch = parse(&input, ¶ms, &[])?.custom_batch;
|
||||
let batch = parse(&input, ¶ms, &[])?
|
||||
.first_batch()
|
||||
.expect("Expected batch")
|
||||
.clone();
|
||||
let points_pred = batch.predicate_ref_by_name("points").unwrap();
|
||||
let over_9000_pred = batch.predicate_ref_by_name("over_9000").unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue