// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package cpu

import 

// parseRelease parses a dot-separated version number. It follows the semver
// syntax, but allows the minor and patch versions to be elided.
//
// This is a copy of the Go runtime's parseRelease from
// https://golang.org/cl/209597.
func ( string) (, ,  int,  bool) {
	// Strip anything after a dash or plus.
	for  := 0;  < len(); ++ {
		if [] == '-' || [] == '+' {
			 = [:]
			break
		}
	}

	 := func() (int, bool) {
		for  := 0;  < len(); ++ {
			if [] == '.' {
				,  := strconv.Atoi([:])
				 = [+1:]
				return ,  == nil
			}
		}
		,  := strconv.Atoi()
		 = ""
		return ,  == nil
	}
	if ,  = (); ! ||  == "" {
		return
	}
	if ,  = (); ! ||  == "" {
		return
	}
	,  = ()
	return
}