Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for backtracker (0.15 sec)

  1. src/regexp/backtrack.go

    }
    
    // maxBitStateLen returns the maximum length of a string to search with
    // the backtracker using prog.
    func maxBitStateLen(prog *syntax.Prog) int {
    	if !shouldBacktrack(prog) {
    		return 0
    	}
    	return maxBacktrackVector / len(prog.Inst)
    }
    
    // shouldBacktrack reports whether the program is too
    // long for the backtracker to run.
    func shouldBacktrack(prog *syntax.Prog) bool {
    	return len(prog.Inst) <= maxBacktrackProg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  2. src/regexp/all_test.go

    // and then the backtracker when there are no captures.
    func TestSwitchBacktrack(t *testing.T) {
    	re := MustCompile(`a|b`)
    	long := make([]byte, maxBacktrackVector+1)
    
    	// The following sequence of Match calls used to panic. See issue #10319.
    	re.Match(long)     // triggers standard matcher
    	re.Match(long[:1]) // triggers backtracker
    }
    
    func BenchmarkFind(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. src/regexp/exec_test.go

    	}
    	re.Longest()
    	if g, w := re.FindString("ab"), "ab"; g != w {
    		t.Errorf("longest match was %q, want %q", g, w)
    	}
    }
    
    // TestProgramTooLongForBacktrack tests that a regex which is too long
    // for the backtracker still executes properly.
    func TestProgramTooLongForBacktrack(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

    // Class to hold backtrack analysis for a results of a region. Backtrack
    // analysis will trace back the definition of return values of regions through
    // pass-through operations, so that the return value of the region will have the
    // same value as the backtracked value.
    class BacktrackAnalysisInfo {
     public:
      // Initializes the backtrack analysis for the given region.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  5. src/runtime/runtime-gdb_test.go

    	}
    }
    
    // checkCleanBacktrace checks that the given backtrace is well formed and does
    // not contain any error messages from GDB.
    func checkCleanBacktrace(t *testing.T, backtrace string) {
    	backtrace = strings.TrimSpace(backtrace)
    	lines := strings.Split(backtrace, "\n")
    	if len(lines) == 0 {
    		t.Fatalf("empty backtrace")
    	}
    	for i, l := range lines {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/test/callback_windows.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package cgotest
    
    /*
    #include <windows.h>
    USHORT backtrace(ULONG FramesToCapture, PVOID *BackTrace) {
    #ifdef _AMD64_
    	CONTEXT context;
    	RtlCaptureContext(&context);
    	ULONG64 ControlPc;
    	ControlPc = context.Rip;
    	int i;
    	for (i = 0; i < FramesToCapture; i++) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 29 16:01:37 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. platforms/ide/tooling-api-builders/src/main/java/org/gradle/tooling/internal/provider/runner/TestOperationMapper.java

    class TestOperationMapper implements BuildOperationMapper<ExecuteTestBuildOperationType.Details, DefaultTestDescriptor> {
        private final TestTaskExecutionTracker taskTracker;
    
        TestOperationMapper(TestTaskExecutionTracker taskTracker) {
            this.taskTracker = taskTracker;
        }
    
        @Override
        public boolean isEnabled(BuildEventSubscriptions subscriptions) {
            return subscriptions.isRequested(OperationType.TEST);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 08:42:44 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/runtime/runtime-gdb_unix_test.go

    	re := regexp.MustCompile(`#.* runtime\.sigtramp `)
    	if found := re.Find(got) != nil; !found {
    		t.Fatalf("could not find sigtramp in backtrace")
    	}
    
    	re = regexp.MustCompile("#.* <signal handler called>")
    	loc := re.FindIndex(got)
    	if loc == nil {
    		t.Fatalf("could not find signal handler marker in backtrace")
    	}
    	rest := got[loc[1]:]
    
    	// Look for any frames after the signal handler. We want to see
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 17 19:05:30 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. src/runtime/testdata/testprog/badtraceback.go

    		lrOff = 32 // FIXED_FRAME or sys.MinFrameSize
    	}
    	lrPtr := (*uintptr)(unsafe.Pointer(uintptr(unsafe.Pointer(&arg)) - lrOff))
    	*lrPtr = 0xbad
    
    	// Print a backtrace. This should include diagnostics for the
    	// bad return PC and a hex dump.
    	panic("backtrace")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 06 23:02:28 UTC 2021
    - 1.2K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/envoy/logging/testdata/logging.txt

    active loggers:
      admin: warning
      aws: warning
      assert: warning
      backtrace: warning
      client: warning
      config: warning
      connection: warning
      dubbo: warning
      file: warning
      filter: warning
      forward_proxy: warning
      grpc: warning
      hc: warning
      health_checker: warning
      http: warning
      http2: warning
      hystrix: warning
      init: warning
      io: warning
      jwt: warning
      kafka: warning
      lua: warning
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 02 13:47:26 UTC 2019
    - 715 bytes
    - Viewed (0)
Back to top