Skip to content

Commit

Permalink
Update 5.1-alias.md
Browse files Browse the repository at this point in the history
  • Loading branch information
hxuhack authored Jan 6, 2025
1 parent b88b8ee commit 49c0c96
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/5.1-alias.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ fn foo(_1: &Point) -> &i32 {

Developers can test the feature using the following command:
```
cargo rap -alias=mop
cargo rapx -alias=mop
```

For example, we can apply the mop analysis to the first case, and the result is as follows:
Expand Down Expand Up @@ -151,9 +151,9 @@ mop_graph.solve_scc();
mop_graph.check(0, &mut self.fn_map);
```

* **Graph preparation**: Construct the control-flow graph for the target function. See the [source code](https://github.com/Artisan-Lab/RAP/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/graph.rs#L129).
* **SCC shrinkage**: Extract the strongly connected components (SCCs) and shrink SCCs of the control-flow graph. See the [source code](https://github.com/Artisan-Lab/RAP/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/graph.rs#L417).
* **Alias Check**: Traversal the control-flow graph and perform alias analysis. See the [source code](https://github.com/Artisan-Lab/RAP/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/mop.rs#L34)
* **Graph preparation**: Construct the control-flow graph for the target function. See the [source code](https://github.com/Artisan-Lab/RAPx/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/graph.rs#L129).
* **SCC shrinkage**: Extract the strongly connected components (SCCs) and shrink SCCs of the control-flow graph. See the [source code](https://github.com/Artisan-Lab/RAPx/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/graph.rs#L417).
* **Alias Check**: Traversal the control-flow graph and perform alias analysis. See the [source code](https://github.com/Artisan-Lab/RAPx/blob/f76b764cb5b66ccfddd19dc083586b7a6a90b576/rap/src/analysis/core/alias/mop/mop.rs#L34)

## Lattice-based Alias Analysis
TODO

0 comments on commit 49c0c96

Please sign in to comment.