Methinks you are looking for Bt"0/~, not Bt"0~/ ?

On Sun, 18 Sep 2022, Raul Miller wrote:

(Assuming I haven't overlooked something incredibly obvious.)

I have stumbled on a reproducible memory corruption issue in J904e

b=: {{
 M=: (u i.y),.(y-0 1)$x:_
 Bt=:{{
   assert. 1000>y
   assert. 1000>x
   if. x<y do.0
   else. i=. <x,y
     if. _>i{M do. i{M
     else. r=. (x Bt y-1)+(x-1) Bt x-y
       r[M=: r i} M
     end.
   end.
 }}
 (<0 1)|:Bt"0~/i.y
}}

  =&0 b 15
     13!:1''
|assertion failure
*       1000>x
|Bt[:1]
|   (<0 1)|:    Bt"0~/i.y
|b[2]
|       =&0 b 15
     x
199360981
     JVERSION
Engine: j904/j64avx2/windows
Beta-e: commercial/2022-07-16T19:21:14
Library: 9.04.03
Qt IDE: 2.0.3/6.2.4(6.2.4)
Platform: Win 64
Installer: J904 install
InstallPath: c:/other/j904
Contact: www.jsoftware.com

(Can others reproduce this problem? Or is this problem specific to my machine?)

I hope this helps,

--
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to