# Lists all contracts that return stack too deep while IFS= read -r -d '' file; do solc $(forge re) "$file" --bin 2>&1 | grep -q "Stack too deep" if [ $? -eq 0 ]; then echo "Stack too deep error found in $file" fi done < <(find . -type f -name "*.sol" -print0)