Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for isInBounds (0.16 sec)

  1. test/prove.go

    	a[0] = 1
    	a[0] = 1 // ERROR "Proved IsInBounds$"
    	a[6] = 1
    	a[6] = 1 // ERROR "Proved IsInBounds$"
    	a[5] = 1 // ERROR "Proved IsInBounds$"
    	a[5] = 1 // ERROR "Proved IsInBounds$"
    	return 13
    }
    
    func f1(a []int) int {
    	if len(a) <= 5 {
    		return 18
    	}
    	a[0] = 1 // ERROR "Proved IsInBounds$"
    	a[0] = 1 // ERROR "Proved IsInBounds$"
    	a[6] = 1
    	a[6] = 1 // ERROR "Proved IsInBounds$"
    	a[5] = 1 // ERROR "Proved IsInBounds$"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 00:02:36 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  2. test/loopbce.go

    			continue
    		}
    		a[i-11] = i
    		a[i-10] = i // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i-5] = i  // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i] = i    // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+5] = i  // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+10] = i // ERROR "(\([0-9]+\) )?Proved IsInBounds$"
    		a[i+11] = i
    	}
    	return a
    }
    
    func k1(a [100]int) [100]int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  3. test/checkbce.go

    package main
    
    import "encoding/binary"
    
    func f0(a []int) {
    	a[0] = 1 // ERROR "Found IsInBounds$"
    	a[0] = 1
    	a[6] = 1 // ERROR "Found IsInBounds$"
    	a[6] = 1
    	a[5] = 1
    	a[5] = 1
    }
    
    func f1(a [256]int, i int) {
    	var j int
    	useInt(a[i]) // ERROR "Found IsInBounds$"
    	j = i % 256
    	useInt(a[j]) // ERROR "Found IsInBounds$"
    	j = i & 255
    	useInt(a[j])
    	j = i & 17
    	useInt(a[j])
    
    	if 4 <= i && i < len(a) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/crypto/internal/edwards25519/field/fe_test.go

    	if rand.Intn(2) == 0 {
    		return reflect.ValueOf(generateWeirdFieldElement(rand))
    	}
    	return reflect.ValueOf(generateFieldElement(rand))
    }
    
    // isInBounds returns whether the element is within the expected bit size bounds
    // after a light reduction.
    func isInBounds(x *Element) bool {
    	return bits.Len64(x.l0) <= 52 &&
    		bits.Len64(x.l1) <= 52 &&
    		bits.Len64(x.l2) <= 52 &&
    		bits.Len64(x.l3) <= 52 &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

            boolean isInBounds =
                expected.compareTo(MAX_INT_AS_BIG_DECIMAL) <= 0
                    & expected.compareTo(MIN_INT_AS_BIG_DECIMAL) >= 0;
    
            try {
              assertEquals(expected.intValue(), DoubleMath.roundToInt(d, mode));
              assertTrue(isInBounds);
            } catch (ArithmeticException e) {
              assertFalse(isInBounds);
            }
          }
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  6. src/crypto/internal/edwards25519/field/fe_alias_test.go

    func checkAliasingOneArg(f func(v, x *Element) *Element) func(v, x Element) bool {
    	return func(v, x Element) bool {
    		x1, v1 := x, x
    
    		// Calculate a reference f(x) without aliasing.
    		if out := f(&v, &x); out != &v && isInBounds(out) {
    			return false
    		}
    
    		// Test aliasing the argument and the receiver.
    		if out := f(&v1, &v1); out != &v1 || v1 != v {
    			return false
    		}
    
    		// Ensure the arguments was not modified.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 17:26:17 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/checkbce.go

    			if v.Op == OpIsInBounds || v.Op == OpIsSliceInBounds {
    				if f.pass.debug > 0 {
    					f.Warnl(v.Pos, "Found %v", v.Op)
    				}
    				if logopt.Enabled() {
    					if v.Op == OpIsInBounds {
    						logopt.LogOpt(v.Pos, "isInBounds", "checkbce", f.Name)
    					}
    					if v.Op == OpIsSliceInBounds {
    						logopt.LogOpt(v.Pos, "isSliceInBounds", "checkbce", f.Name)
    					}
    				}
    			}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 10 17:12:35 UTC 2019
    - 956 bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/generic.rules

    // Fold IsInBounds when the range of the index cannot exceed the limit.
    (IsInBounds (ZeroExt8to32  _) (Const32 [c])) && (1 << 8)  <= c => (ConstBool [true])
    (IsInBounds (ZeroExt8to64  _) (Const64 [c])) && (1 << 8)  <= c => (ConstBool [true])
    (IsInBounds (ZeroExt16to32 _) (Const32 [c])) && (1 << 16) <= c => (ConstBool [true])
    (IsInBounds (ZeroExt16to64 _) (Const64 [c])) && (1 << 16) <= c => (ConstBool [true])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/Wasm.rules

    (ClosureCall ...) => (LoweredClosureCall ...)
    (InterCall ...) => (LoweredInterCall ...)
    (TailCall ...) => (LoweredTailCall ...)
    
    // Miscellaneous
    (Convert ...) => (LoweredConvert ...)
    (IsNonNil p) => (I64Eqz (I64Eqz p))
    (IsInBounds ...) => (I64LtU ...)
    (IsSliceInBounds ...) => (I64LeU ...)
    (NilCheck ...) => (LoweredNilCheck ...)
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerPC ...) => (LoweredGetCallerPC ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 03:56:57 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/rewritegeneric.go

    	}
    	// match: (IsInBounds (ZeroExt16to64 _) (Const64 [c]))
    	// cond: (1 << 16) <= c
    	// result: (ConstBool [true])
    	for {
    		if v_0.Op != OpZeroExt16to64 || v_1.Op != OpConst64 {
    			break
    		}
    		c := auxIntToInt64(v_1.AuxInt)
    		if !((1 << 16) <= c) {
    			break
    		}
    		v.reset(OpConstBool)
    		v.AuxInt = boolToAuxInt(true)
    		return true
    	}
    	// match: (IsInBounds x x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:24:47 UTC 2024
    - 812.2K bytes
    - Viewed (0)
Back to top