- src/core/config.hpp: CompilerConfig (pass toggle'lar + maxFixpointRounds) - src/opt/optimization_pass.hpp: soyut OptimizationPass tabanı - src/opt/ast_clone.hpp: deepClone — tüm node tiplerini kapsayan derin klonlama - src/opt/constant_folding.hpp: BinaryExpr(Literal,OP,Literal) → Literal; W002 sıfıra bölme uyarısı; + - * / % == != < > <= >= desteklenir - src/opt/dead_code_elim.hpp: return/break/continue sonrası erişilemez deyimler Block'tan silinir - src/opt/optimization_manager.hpp: AST klonlar, fixpoint döngüsüyle pass'leri çalıştırır (ADR-007/009) - literal.hpp/.cpp: hasDirectValue/directIntValue — sentetik (token-sız) literal - args.hpp: --optimized bayrağı - cli/commands/ast.hpp: --optimized verilince klon üstünde optimize edilmiş AST gösterilir; orijinal dokunulmaz - examples/opt_folding.sqt, examples/opt_dce.sqt: örnek fixture'lar |
||
|---|---|---|
| .. | ||
| parser-stress | ||
| semantic | ||
| symbols | ||
| fibonacci.sqt | ||
| large.sqt | ||
| merhaba.sqt | ||
| opt_dce.sqt | ||
| opt_folding.sqt | ||
| source.sqt | ||