-
Notifications
You must be signed in to change notification settings - Fork 1
reach: binary_heap bug fixes #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -132,8 +132,6 @@ int main(int argc, char* argv[]) { | |
| .flag(); | ||
| program.add_argument("-ds", "--dlsym-log") | ||
| .help("path to file containing dlsym log of loaded symbols"); | ||
| program.add_argument("-o", "--output") | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this argument removed? Fairly certain it is still used.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's still there. This removed the second redundant call to |
||
| .help("JSON output path"); | ||
| program.add_argument("-g", "--graph") | ||
| .help("graph type (\"simple\", \"cfg\", or \"call\"). Default \"cfg\""); | ||
| program.add_argument("-n", "--num-paths") | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a comment here to explain the indexing structure? I'm fond of ascii art so a graph like this makes sense to me, but choose what you feel is best.
Is it supposed to be index
iis atiand its children are at2i +1, 2i+2? I guess this is the result of 0-indexing instead of 1-indexing as the old version would have worked before.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to the top of the file. Honestly, I would rather avoid using a custom binary heap implementation. I just threw this in because I had it lying around.