Source file
test/fixedbugs/issue76950.go
1
2
3
4
5
6
7 package p
8
9 func MatchLog(input string) bool {
10 pos := 0
11 n := len(input)
12 matchState := -1
13 var c byte
14
15 goto State12
16
17 State8:
18 goto State65
19
20 State12:
21 if pos >= n {
22 goto End
23 }
24 c = input[pos]
25 switch {
26 case c >= 0x09 && c <= 0x0A || c >= 0x0C && c <= 0x0D || c == ' ':
27 case c >= '0' && c <= '9':
28 case c >= 'A' && c <= 'Z' || c == '_' || c >= 'b' && c <= 'z':
29 case c == '[':
30 goto State8
31 case c == 'a':
32 default:
33 goto End
34 }
35
36 State64:
37 matchState = 179
38 if pos >= n {
39 goto End
40 }
41 pos = n
42 goto State64
43
44 State65:
45
46 State66:
47 matchState = 181
48 if pos >= n {
49 goto End
50 }
51 pos = n
52 goto State66
53
54 End:
55 if matchState != -1 {
56 switch matchState {
57 case 178:
58 case 156:
59 case 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175:
60 case 176, 177, 181, 182, 183:
61 case 179, 184:
62 case 180:
63 }
64 return true
65 }
66 return false
67 }
68
View as plain text