interp: add 'max depth' parameter to limit cost

This commit is contained in:
Kenneth Bell
2023-09-11 15:10:50 +01:00
parent ed2a98c7d0
commit a73eac22f1
9 changed files with 48 additions and 34 deletions
+1
View File
@@ -32,6 +32,7 @@ type Options struct {
Serial string
Work bool // -work flag to print temporary build directory
InterpTimeout time.Duration
InterpMaxDepth int
PrintIR bool
DumpSSA bool
VerifyIR bool