- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 649 for Koop (0.1 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/loopclosure/doc.go
// Package loopclosure defines an Analyzer that checks for references to // enclosing loop variables from within nested functions. // // # Analyzer loopclosure // // loopclosure: check references to loop variables from within nested functions // // This analyzer reports places where a function literal references the // iteration variable of an enclosing loop, and the loop calls the function // in such a way (e.g. with go or defer) that it may outlive the loop
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 21:52:54 UTC 2023 - 2.6K bytes - Viewed (0) -
test/escape_goto.go
package escape var x bool func f1() { var p *int loop: if x { goto loop } // BAD: We should be able to recognize that there // aren't any more "goto loop" after here. p = new(int) // ERROR "escapes to heap" _ = p } func f2() { var p *int if x { loop: goto loop } else { p = new(int) // ERROR "does not escape" } _ = p } func f3() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:41:07 UTC 2021 - 677 bytes - Viewed (0) -
tensorflow/cc/ops/while_loop.h
BodyGraphBuilderFn; // Constructs a while loop. // // Arguments: // * scope: used to construct the while loop. // * inputs: the initial values of the loop variables. Must be non-empty. // * cond: a function that builds the condition graph of the loop. Takes the // current loop variables as inputs and returns a scalar boolean Output // indicating whether the loop should continue.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 24 08:24:58 UTC 2020 - 3.4K bytes - Viewed (0) -
test/fixedbugs/bug070.go
func main() { var i, k int var r string outer: for k = 0; k < 2; k++ { r += fmt.Sprintln("outer loop top k", k) if k != 0 { panic("k not zero") } // inner loop breaks this one every time for i = 0; i < 2; i++ { if i != 0 { panic("i not zero") } // loop breaks every time r += fmt.Sprintln("inner loop top i", i) if true { r += "do break\n" break outer } } } r += "broke\n"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 715 bytes - Viewed (0) -
test/opt_branchlikely.go
for i := 0; i < x; i++ { // ERROR "Branch prediction rule stay in loop" if x == 4 { // ERROR "Branch prediction rule stay in loop" return a } for j := 0; j < y; j++ { // ERROR "Branch prediction rule stay in loop" for k := 0; k < z; k++ { // ERROR "Branch prediction rule stay in loop" a -= j * i } a += j } } } return a }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 2.1K bytes - Viewed (0) -
test/fixedbugs/issue49100.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 21 19:08:43 UTC 2021 - 377 bytes - Viewed (0) -
src/internal/bytealg/count_riscv64.s
ADD X10, X11 // end PCALIGN $16 loop: BEQ X10, X11, done MOVBU (X10), X15 ADD $1, X10 BNE X12, X15, loop ADD $1, X14 JMP loop done: MOV X14, X10 RET TEXT ·CountString<ABIInternal>(SB),NOSPLIT,$0-32 // X10 = s_base // X11 = s_len // X12 = byte to count AND $0xff, X12 MOV ZERO, X14 // count ADD X10, X11 // end PCALIGN $16 loop: BEQ X10, X11, done MOVBU (X10), X15
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 22 01:59:01 UTC 2023 - 858 bytes - Viewed (0) -
src/reflect/iter_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 10 14:27:54 UTC 2024 - 6.4K bytes - Viewed (0) -
test/label1.go
// Does not compile. package main var x int func f1() { switch x { case 1: continue // ERROR "continue is not in a loop$|continue statement not within for" } select { default: continue // ERROR "continue is not in a loop$|continue statement not within for" } } func f2() { L1: for { if x == 0 { break L1 } if x == 1 { continue L1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 28 02:31:54 UTC 2020 - 2.1K bytes - Viewed (0) -
test/defererrcheck.go
fmt.Println("defer") }() label: fmt.Println("goto loop") if glob > 2 { goto label } } func f5() { label: fmt.Println("goto loop") defer func() { // ERROR "heap-allocated defer" fmt.Println("defer") }() if glob > 2 { goto label } } func f6() { label: fmt.Println("goto loop") if glob > 2 { goto label }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 26 16:54:17 UTC 2020 - 1.4K bytes - Viewed (0)