We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 779ee07 commit 420aa5eCopy full SHA for 420aa5e
crates/lean_compiler/src/a_simplify_lang.rs
@@ -1656,8 +1656,11 @@ fn handle_const_arguments(program: &mut Program) {
1656
1657
// Process newly created const functions recursively until no more changes
1658
let mut changed = true;
1659
+ let mut const_depth = 0;
1660
while changed {
1661
changed = false;
1662
+ const_depth += 1;
1663
+ assert!(const_depth < 100, "Too many levels of constant arguments");
1664
let mut additional_functions = BTreeMap::new();
1665
1666
// Collect all function names to process
0 commit comments