Class: ADSL::Parser::ASTObjsetStmt
- Defined in:
- lib/adsl/parser/ast_nodes.rb
Instance Method Summary collapse
Methods inherited from ASTNode
#==, #adsl_ast, #adsl_ast_size, #block_replace, #dup, #hash, is_formula?, is_objset?, is_statement?, node_type, #objset_has_side_effects?, #preorder_traverse
Methods included from Verification::FormulaGenerators
#[], #and, #binary_op, #binary_op_with_any_number_of_params, #equiv, #exists, #false, #forall, #handle_quantifier, #implies, #in_formula_builder, #not, #or, #true
Methods included from Verification::Utils
#classname_for_classname, #infer_classname_from_varname, #t
Instance Method Details
#optimize(last_stmt = false) ⇒ Object
734 735 736 |
# File 'lib/adsl/parser/ast_nodes.rb', line 734 def optimize(last_stmt = false) @objset.objset_has_side_effects? ? self : ASTDummyStmt.new end |
#to_adsl ⇒ Object
738 739 740 |
# File 'lib/adsl/parser/ast_nodes.rb', line 738 def to_adsl "#{ @objset.to_adsl }\n" end |
#typecheck_and_resolve(context) ⇒ Object
729 730 731 732 |
# File 'lib/adsl/parser/ast_nodes.rb', line 729 def typecheck_and_resolve(context) @objset.typecheck_and_resolve(context) return nil end |