Fix NY codegen wth folded guard + inlined for-loop (#561)

Fixes a ICE wth folded guard in inlined for-loop in NY.

Closes #560

---------

Signed-off-by: xermicus <bigcyrill@hotmail.com>
This commit is contained in:
xermicus authored and GitHub committed 2026-07-06 12:37:55 +02:00
1 parent 5b92391c57
commit 9b177f6400
7 files changed
+235 -4

No files matched your search

+4
View File
@@ -15,6 +15,10 @@ pub const SOLIDITY_DEPENDENCY_CONTRACT_PATH: &str = "src/tests/data/solidity/dep
/// The simple Solidity contract containing i256 divisions and remains
/// that should be compiled correctly.
pub const SOLIDITY_LARGE_DIV_REM_CONTRACT_PATH: &str = "src/tests/data/solidity/large_div_rem.sol";
/// The verbatim reproducer from paritytech/revive#560: a folded guard plus an
/// inlined for-loop that crashed the newyork pipeline under `--disable-solc-optimizer`.
pub const SOLIDITY_FOLDED_GUARD_INLINED_LOOP_PATH: &str =
"src/tests/data/solidity/folded_guard_inlined_loop.sol";
/// The simple YUL contract test fixture path.
pub const YUL_CONTRACT_PATH: &str = "src/tests/data/yul/contract.yul";