code: func PrintTrace(w io.Writer, r *Rego) {
  	if r == nil || r.tracebuf == nil {
  		return
  	}
  	topdown.PrettyTrace(w, *r.tracebuf)
  }
docs: // PrintTrace is a helper function to write a human-readable version of the
  // trace to the writer w.