parameratize cost model

This commit is contained in:
Kasey White
2022-09-17 21:12:48 -04:00
parent d426f4922f
commit 472cea6c41
7 changed files with 2143 additions and 51 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -63,8 +63,12 @@ impl BuiltinRuntime {
Ok(())
}
pub fn to_ex_budget(&self, costs: &BuiltinCosts) -> ExBudget {
costs.to_ex_budget(self.fun, &self.args)
pub fn to_ex_budget_v2(&self, costs: &BuiltinCosts) -> ExBudget {
costs.to_ex_budget_v2(self.fun, &self.args)
}
pub fn to_ex_budget_v1(&self, costs: &BuiltinCosts) -> ExBudget {
costs.to_ex_budget_v1(self.fun, &self.args)
}
}