Open brmataptos opened 2 weeks ago
fun lifted_lambda(ap: &mut u64, z: u64): u64 { *ap = *ap + 1; z * *ap } entry fun foo2(): u64 { let a = 2; let z = 3; lifted_lambda(&mut a, lifted_lambda(&mut a, z)) }
leads to a VM problem only on V2, not V1.
See https://github.com/aptos-labs/aptos-core/compare/brm-test-lambda for some example inputs and test outputs. lambda_lifted2.move avoids the problem with a slight change to the code.
🐛 Bug
leads to a VM problem only on V2, not V1.