Skip to content

Commit a16f796

Browse files
committed
fix(cost-model): update ChooseData arity to 7 and add Nop7o to overhead calculations
1 parent 3c2534a commit a16f796

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plutus-core/cost-model/data/models.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ arity <- function(name) {
9797
"HeadList" = 1,
9898
"TailList" = 1,
9999
"NullList" = 1,
100-
"ChooseData" = 6,
100+
"ChooseData" = 7,
101101
"ConstrData" = 2,
102102
"MapData" = 1,
103103
"ListData" = 1,
@@ -363,7 +363,7 @@ modelFun <- function(path) {
363363
## appears to give a good trade-off between including the overhead in the
364364
## cost of calling the benchmark and absorbing it in the cost of a CEK
365365
## machine step.
366-
nops <- c("Nop1o", "Nop2o", "Nop3o", "Nop4o", "Nop5o", "Nop6o")
366+
nops <- c("Nop1o", "Nop2o", "Nop3o", "Nop4o", "Nop5o", "Nop6o", "Nop7o")
367367
overhead <- sapply(nops, get.mean.time)
368368

369369
## The next function discards the overhead for calling a builtin, as

0 commit comments

Comments
 (0)