Commit 13ee473
authored
Optimize VConstr bounds check in CEK machine (#7479)
Simplify the type conversion in VConstr index validation by
eliminating unnecessary intermediate conversion through Integer.
Changed from:
fromIntegral @_ @integer i > fromIntegral @int @integer maxBound
To:
i > fromIntegral @int @Word64 maxBound
Since i is already Word64, we can directly compare it to maxBound
converted to Word64, which is more efficient and clearer.
Also updated Note [Integral types as Integer] to clarify that all
non-64-bit systems (not just 32-bit) are banned for node deployment.
Fixes #74781 parent ffc6471 commit 13ee473
File tree
2 files changed
+3
-3
lines changed- plutus-core
- plutus-core/src/PlutusCore/Default
- untyped-plutus-core/src/UntypedPlutusCore/Evaluation/Machine/Cek
2 files changed
+3
-3
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
492 | | - | |
493 | | - | |
| 492 | + | |
| 493 | + | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
927 | 927 | | |
928 | 928 | | |
929 | 929 | | |
930 | | - | |
| 930 | + | |
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| |||
0 commit comments