Symbolic Extraction from Hierarchical Layout of Arbitrary Shape