diff options
| author | Youlin Feng <fengyoulin@live.com> | 2026-03-20 23:28:04 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-03-27 06:29:34 -0700 |
| commit | faeffecf8666bde8cbb3383c3fdf4a4d92ee421c (patch) | |
| tree | 9d0a2c0655d2de93e39d222a08b007d6d3d16e6a /src/database/sql/sql_test.go | |
| parent | e7b0a53f314bae0fa04525207d857df923f89721 (diff) | |
| download | go-faeffecf8666bde8cbb3383c3fdf4a4d92ee421c.tar.xz | |
cmd/compile/internal/ssa: prove support induction variable pair
We have two induction variables i and j in the following loop:
for i, j := 0, len(s)-1; i < j; i, j = i+1, j-1 {
// loop body
}
This CL enables the prove pass to handle cases where one if block
uses two induction variables.
Updates #45078
Change-Id: I8b8dc8b7b2d160a796dab1d1e29a00ef4e8e8157
Reviewed-on: https://go-review.googlesource.com/c/go/+/757700
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/database/sql/sql_test.go')
0 files changed, 0 insertions, 0 deletions
