feat: eval should take initial budget
This commit is contained in:
@@ -61,7 +61,9 @@ pub fn exec(
|
||||
program = program.apply_term(&term);
|
||||
}
|
||||
|
||||
let (term, cost, logs) = program.eval();
|
||||
let budget = ExBudget::default();
|
||||
|
||||
let (term, cost, logs) = program.eval(budget);
|
||||
|
||||
match term {
|
||||
Ok(term) => {
|
||||
@@ -74,8 +76,6 @@ pub fn exec(
|
||||
}
|
||||
}
|
||||
|
||||
let budget = ExBudget::default();
|
||||
|
||||
println!(
|
||||
"\nCosts\n-----\ncpu: {}\nmemory: {}",
|
||||
budget.cpu - cost.cpu,
|
||||
|
||||
Reference in New Issue
Block a user