def canonize_types(self): global sort_refinement with self.sig: sort_refinement = il.sort_refinement() if len(list(sort_refinement)) == 0: return # save time if nothing to do self.definitions = resort_labeled_asts(self.definitions) self.labeled_axioms = resort_labeled_asts(self.labeled_axioms) self.labeled_props = resort_labeled_asts(self.labeled_props) self.labeled_inits = resort_labeled_asts(self.labeled_inits) self.init_cond = resort_clauses(self.init_cond) self.concept_spaces = resort_concept_spaces(self.concept_spaces) self.labeled_conjs = resort_labeled_asts(self.labeled_conjs) self.assertions = resort_labeled_asts(self.assertions) self.progress = resort_asts(self.progress) self.initializers = resort_name_ast_pairs(self.initializers) self.params = resort_symbols(self.params) self.ghost_sorts = remove_refined_sortnames_from_set( self.ghost_sorts) self.sort_order = remove_refined_sortnames_from_list( self.sort_order) self.symbol_order = resort_symbols(self.symbol_order) self.aliases = resort_aliases_map(self.aliases) self.before_export = resort_map_any_ast(self.before_export) self.ext_preconds = resort_map_any_ast(self.ext_preconds) lu.resort_sig(sort_refinement)
def canonize_types(self): global sort_refinement with self.sig: sort_refinement = il.sort_refinement() if len(list(sort_refinement)) == 0: return # save time if nothing to do self.definitions = resort_labeled_asts(self.definitions) self.labeled_axioms = resort_labeled_asts(self.labeled_axioms) self.labeled_props = resort_labeled_asts(self.labeled_props) self.labeled_inits = resort_labeled_asts(self.labeled_inits) self.init_cond = resort_clauses(self.init_cond) self.concept_spaces = resort_concept_spaces(self.concept_spaces) self.labeled_conjs = resort_labeled_asts(self.labeled_conjs) self.assertions = resort_labeled_asts(self.assertions) self.progress = resort_asts(self.progress) self.initializers = resort_name_ast_pairs(self.initializers) self.params = resort_symbols(self.params) self.ghost_sorts = remove_refined_sortnames_from_set(self.ghost_sorts) self.sort_order = remove_refined_sortnames_from_list(self.sort_order) self.symbol_order = resort_symbols(self.symbol_order) self.aliases = resort_aliases_map(self.aliases) self.before_export = resort_map_any_ast(self.before_export) self.ext_preconds = resort_map_any_ast(self.ext_preconds) lu.resort_sig(sort_refinement)