-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Distinguish between branches (e.g. and entire `match`) and branch targets (each arm of the `match`). This leads to slightly less naming. `sail_branch_taken` was renamed to `sail_branch_target_taken`. 2. Add integer function IDs and branch target IDs. This speeds up coverage collection since you can just look them up in an array rather than hashing the filenames etc (though I haven't changed the existing Rust library to do that). It also allows logging of the control flow (I have a plan to make a post-execution debugger so you can sort of step through the Sail code). 3. Always call `sail_branch_reached()` even if the source code location could not be determined (e.g. because for mapping it could be spread over multiple files). Ideally the source code location would be known for `scattered` definitions, but I don't know enough about the compiler to do that.
- Loading branch information
Showing
3 changed files
with
62 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters