forked from dvyukov/go-fuzz
-
Notifications
You must be signed in to change notification settings - Fork 1
/
defs.go
50 lines (42 loc) · 780 Bytes
/
defs.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright 2015 Dmitry Vyukov. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package base
const (
CoverSize = 64 << 10
MaxInputSize = 1 << 20
SonarRegionSize = 1 << 20
)
const (
SonarEQL = iota
SonarNEQ
SonarLSS
SonarGTR
SonarLEQ
SonarGEQ
SonarOpMask = 7
SonarLength = 1 << 3
SonarSigned = 1 << 4
SonarString = 1 << 5
SonarConst1 = 1 << 6
SonarConst2 = 1 << 7
SonarHdrLen = 6
SonarMaxLen = 20
)
type CoverBlock struct {
ID int
File string
StartLine int
StartCol int
EndLine int
EndCol int
NumStmt int
}
type Literal struct {
Val string
IsStr bool
}
type MetaData struct {
Literals []Literal
Blocks []CoverBlock
Sonar []CoverBlock
}