Skip to content

Commit c092999

Browse files
inference
1 parent 96d0e21 commit c092999

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,13 @@ void exec(String name) {
104104
void sink(@Untainted String t) { ... }
105105
```
106106

107+
### Inference Support
108+
109+
`TaintTyper` supports automatic annotation inference to simplify adoption on existing codebases. The inference is built on top of [Annotator](https://github.com/ucr-riple/NullAwayAnnotator), an annotation inference engine. The inference engine analyzes the code and automatically infers the appropriate `@Untainted`, and `@PolyTainted` annotations.
110+
111+
In the example shown earlier, the inference tool can infer **all annotations** automatically.
112+
113+
To run `Annotator` on your codebase and infer annotations for `TaintTyper`:
114+
115+
1. Follow the setup instructions on the [Annotator](https://github.com/ucr-riple/NullAwayAnnotator).
116+
2. Pass the flag to specify the TaintTyper checker: `-ch UCRTaint`

0 commit comments

Comments
 (0)