Sha256: 8b3d47bd3e2fc9d7fd23d0381d17f0ae42712eb93290eb7e81251688fb1bd5e1
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
# frozen_string_literal: true require_relative 'branch' module DeepCover class Node class ShortCircuit < Node include Branch has_tracker :conditional has_child lhs: Node has_child conditional: Node, flow_entry_count: :conditional_tracker_hits, rewrite: '((%{conditional_tracker};%{node}))' def branches [ conditional, TrivialBranch.new(condition: lhs, other_branch: conditional), ] end end And = Or = ShortCircuit end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
deep-cover-0.1.16 | lib/deep_cover/node/short_circuit.rb |
deep-cover-0.1.15 | lib/deep_cover/node/short_circuit.rb |