Skip to content
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

crucible-llvm: Simplify 'MemoryErrorReason' #915

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

langston-barrett
Copy link
Contributor

There was only one constructor of this type that depended on type
parameters 'sym' and 'w', and that was a pointer that is duplicated in
the 'MemoryOp' that accompanies each 'MemoryErrorReason'.

Also, create a new error datatype instead of using a pretty-printed doc.

In addition to making 'MemoryError' more normalized, 'MemoryErrorReason'
is now friendlier to programmatic use. In particular, it's orderable.

There was only one constructor of this type that depended on type
parameters 'sym' and 'w', and that was a pointer that is duplicated in
the 'MemoryOp' that accompanies each 'MemoryErrorReason'.

Also, create a new error datatype instead of using a pretty-printed doc.

In addition to making 'MemoryError' more normalized, 'MemoryErrorReason'
is now friendlier to programmatic use. In particular, it's orderable.
Comment on lines -5 to 9
[Crux] No implementation or override found for pointer: "_ZN3std2rt19lang_start_internal17h3dc68cf5532522d7E"
[Crux] No implementation or override found for pointer
[Crux] The given pointer could not be resolved to a callable function
[Crux] No implementation or override found for pointer: "_ZN3std2rt19lang_start_internal17h3dc68cf5532522d7E"
[Crux] No implementation or override found for pointer
[Crux] Attempting to load callable function with type: i64({ }*, [3 x i64]*, i64, i8**)
[Crux] Via pointer: Global symbol "_ZN3std2rt19lang_start_internal17h3dc68cf5532522d7E" (1, 0x0:[64])
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that the function name that is removed from this message appears here at line 9. It was just duplicated between the MemoryOp and the MemoryErrorReason.

@langston-barrett langston-barrett merged commit 16cc1c2 into master Nov 8, 2021
@langston-barrett langston-barrett deleted the lb/simplify-mem-error branch November 8, 2021 19:40
brianhuffman pushed a commit to GaloisInc/saw-script that referenced this pull request Nov 13, 2021
brianhuffman pushed a commit to GaloisInc/saw-script that referenced this pull request Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants