package ssa

import (
	
)

func sortBlocks( []*basicBlock) {
	slices.SortFunc(, func(,  *basicBlock) int {
		 := .ReturnBlock()
		 := .ReturnBlock()
		if  &&  {
			return 0
		}
		if  {
			return 1
		}
		if  {
			return -1
		}
		,  := .rootInstr, .rootInstr
		if  == nil &&  == nil { // For testing.
			return 0
		}
		if  == nil {
			return 1
		}
		if  == nil {
			return -1
		}
		return .rootInstr.id - .rootInstr.id
	})
}