package ssa

import (
	
	
)

// Signature is a function prototype.
type Signature struct {
	// ID is a unique identifier for this signature used to lookup.
	ID SignatureID
	// Params and Results are the types of the parameters and results of the function.
	Params, Results []Type

	// used is true if this is used by the currently-compiled function.
	// Debugging only.
	used bool
}

// String implements fmt.Stringer.
func ( *Signature) () string {
	 := strings.Builder{}
	.WriteString(.ID.String())
	.WriteString(": ")
	if len(.Params) > 0 {
		for ,  := range .Params {
			.WriteString(.String())
		}
	} else {
		.WriteByte('v')
	}
	.WriteByte('_')
	if len(.Results) > 0 {
		for ,  := range .Results {
			.WriteString(.String())
		}
	} else {
		.WriteByte('v')
	}
	return .String()
}

// SignatureID is an unique identifier used to lookup.
type SignatureID int

// String implements fmt.Stringer.
func ( SignatureID) () string {
	return fmt.Sprintf("sig%d", )
}