mirror of
https://github.com/golang/go
synced 2025-05-08 03:47:36 +00:00
cmd/compile: teach prove about bitwise OR operation
Fixes #45928. Change-Id: Ifbb0effbca4ab7c0eb56069fee40edb564553c35 Reviewed-on: https://go-review.googlesource.com/c/go/+/410336 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org> Reviewed-by: David Chase <drchase@google.com> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
@ -1053,6 +1053,11 @@ func issue51622(b []byte) int {
|
||||
return 0
|
||||
}
|
||||
|
||||
func issue45928(x int) {
|
||||
combinedFrac := (x) / (x | (1 << 31)) // ERROR "Proved Neq64$"
|
||||
useInt(combinedFrac)
|
||||
}
|
||||
|
||||
//go:noinline
|
||||
func useInt(a int) {
|
||||
}
|
||||
|
Reference in New Issue
Block a user