@lynne@pars.ee In the US, it's also legal to look at legally-obtained proprietary code and write your own (non-derived) code without an explicit cleanroom, legal defense is possible but more difficult. If I recall correctly, it was how NEC defended itself for using Intel microcode... Not applicable to leaked code, though.
@niconiconi @lynne
Link for those interested
https://digitalcommons.law.scu.edu/cgi/viewcontent.cgi?referer=&httpsredir=1&article=1030&context=chtlj
Somewhat related, 36 years later- NEC touts working with Intel on stuff.
https://www.nec.com/en/press/202302/global_20230221_02.html