[Custom AST] #6 Fixed ternary operator, sharing input/output from frames