Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 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. 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)
  4. 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)
  5. 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)
  6. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (AtomicCompareAndSwap64 ...) => (LoweredAtomicCas64 ...)
    
    // checks
    (NilCheck ...) => (LoweredNilCheck ...)
    (IsNonNil ptr) => (SGTU ptr (MOVVconst [0]))
    (IsInBounds idx len) => (SGTU len idx)
    (IsSliceInBounds idx len) => (XOR (MOVVconst [1]) (SGTU idx len))
    
    // pseudo-ops
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerSP ...) => (LoweredGetCallerSP ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/RISCV64.rules

    (Zero [s] {t} ptr mem) =>
    	(LoweredZero [t.Alignment()]
    		ptr
    		(ADD <ptr.Type> ptr (MOVDconst [s-moveSize(t.Alignment(), config)]))
    		mem)
    
    // Checks
    (IsNonNil ...) => (SNEZ ...)
    (IsInBounds ...) => (Less64U ...)
    (IsSliceInBounds ...) => (Leq64U ...)
    
    // Trivial lowering
    (NilCheck ...) => (LoweredNilCheck ...)
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 14:57:07 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/_gen/MIPS.rules

    (AtomicAnd32 ...) => (LoweredAtomicAnd ...)
    (AtomicOr32  ...) => (LoweredAtomicOr  ...)
    
    
    // checks
    (NilCheck ...) => (LoweredNilCheck ...)
    (IsNonNil ptr) => (SGTU ptr (MOVWconst [0]))
    (IsInBounds idx len) => (SGTU len idx)
    (IsSliceInBounds idx len) => (XORconst [1] (SGTU idx len))
    
    // pseudo-ops
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerSP ...) => (LoweredGetCallerSP ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 14:43:03 UTC 2023
    - 35.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/MIPS64.rules

    (AtomicAnd32 ...) => (LoweredAtomicAnd32 ...)
    (AtomicOr32  ...) => (LoweredAtomicOr32  ...)
    
    // checks
    (NilCheck ...) => (LoweredNilCheck ...)
    (IsNonNil ptr) => (SGTU ptr (MOVVconst [0]))
    (IsInBounds idx len) => (SGTU len idx)
    (IsSliceInBounds idx len) => (XOR (MOVVconst [1]) (SGTU idx len))
    
    // pseudo-ops
    (GetClosurePtr ...) => (LoweredGetClosurePtr ...)
    (GetCallerSP ...) => (LoweredGetCallerSP ...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 03:59:48 UTC 2023
    - 41.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	{name: "Round32F", argLength: 1},
    	{name: "Round64F", argLength: 1},
    
    	// Automatically inserted safety checks
    	{name: "IsNonNil", argLength: 1, typ: "Bool"},        // arg0 != nil
    	{name: "IsInBounds", argLength: 2, typ: "Bool"},      // 0 <= arg0 < arg1. arg1 is guaranteed >= 0.
    	{name: "IsSliceInBounds", argLength: 2, typ: "Bool"}, // 0 <= arg0 <= arg1. arg1 is guaranteed >= 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
Back to top