mirror of
https://github.com/urbit/shrub.git
synced 2025-01-04 18:43:46 +03:00
Eliminate de-cons optimization.
This commit is contained in:
parent
ad4233004c
commit
746c26a40a
@ -6903,10 +6903,12 @@
|
||||
~/ %cons
|
||||
|= {vur/nock sed/nock}
|
||||
^- nock
|
||||
?: ?=({{$0 *} {$0 *}} +<)
|
||||
?: ?&(=(+(p.vur) p.sed) =((div p.vur 2) (div p.sed 2)))
|
||||
[%0 (div p.vur 2)]
|
||||
[vur sed]
|
||||
:: this optimization can remove crashes which are essential
|
||||
::
|
||||
:: ?: ?=([[%0 *] [%0 *]] +<)
|
||||
:: ?: ?&(=(+(p.vur) p.sed) =((div p.vur 2) (div p.sed 2)))
|
||||
:: [%0 (div p.vur 2)]
|
||||
:: [vur sed]
|
||||
?: ?=({{$1 *} {$1 *}} +<)
|
||||
[%1 p.vur p.sed]
|
||||
[vur sed]
|
||||
|
Loading…
Reference in New Issue
Block a user