pub fn parse_enumerate_output() -> Result<()> {
    let file = File::open("output/souffle-plan-enumerate.tsv")?;
    let reader = BufReader::new(file);

    let mut count = 0;
    for plan in reader.lines() {
        count += 1;
        let plan = plan?;
        let stops = parse_stops(&plan)?;
        let plan_ix_str = format!("Plan {}", count);
        println!("{}", plan_ix_str);
        println!("{:-^width$}", "", width = plan_ix_str.len());
        print_stops(stops)?;
        println!("{:=^90}", "");
    }
    Ok(())
}
/// Read the souffle output cons list and spit it out in a readable format to stdout
/// TODO take bufreader and bufwriter
Read the souffle output cons list and spit it out in a readable format to stdout
TODO take bufreader and bufwriter
Read the souffle output cons list and spit it out in a readable format to stdout TODO take bufreader and bufwriter
pub fn parse_enumerate_output() -> Result<()> {
    let file = File::open("output/souffle-plan-enumerate.tsv")?;
    let reader = BufReader::new(file);
    let mut count = 0;
    for plan in reader.lines() {
        count += 1;
        let plan = plan?;
        let stops = parse_stops(&plan)?;
        let plan_ix_str = format!("Plan {}", count);
        println!("{}", plan_ix_str);
        println!("{:-^width$}", "", width = plan_ix_str.len());
        print_stops(stops)?;
        println!("{:=^90}", "");
    }
    Ok(())
}
pub fn parse_enumerate_output ( ) -> Result < ( ) > { let file = File :: open ( " " ) ? ; let reader = BufReader :: new ( file ) ; let mut count = 0 ; for plan in reader . lines ( ) { count += 1 ; let plan = plan ? ; let stops = parse_stops ( & plan ) ? ; let plan_ix_str = format ! ( " " count ) ; println ! ( " " plan_ix_str ) ; println ! ( " " " " width plan_ix_str len ( ) ) ; print_stops ( stops ) ? ; println ! ( " " " " ) ; } Ok ( ( ) ) }
Read the souffle output cons list and spit it out in a readable format to stdout
TODO take bufreader and bufwriter
Read the souffle output cons list and spit it out in a readable format to stdout TODO take bufreader and bufwriter