Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findIndVar (0.08 sec)

  1. test/fixedbugs/issue63955.go

    package j
    
    func f(try func() int, shouldInc func() bool, N func(int) int) {
    	var n int
    loop: // we want to have 3 preds here, the function entry and both gotos
    	if v := try(); v == 42 || v == 1337 { // the two || are to trick findIndVar
    		if n < 30 { // this aims to be the matched block
    			if shouldInc() {
    				n++
    				goto loop
    			}
    			n = N(n) // try to prevent some block joining
    			goto loop
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 07 17:37:47 UTC 2023
    - 578 bytes
    - Viewed (0)
Back to top