-
Notifications
You must be signed in to change notification settings - Fork 280
Fix quickcheck-derived test case for refactor casts #1392
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: master
Are you sure you want to change the base?
Conversation
e3fb41a to
c717e17
Compare
|
Your branch needs a rebase (maybe once we land the base PR), then I'll take a look. |
a77dce1 to
51fbbcd
Compare
9ae5f7a to
7a89e71
Compare
7a89e71 to
882d68f
Compare
this fixes the i32 -> u32 -> isize test case
| } | ||
|
|
||
| thread_local!(static Z3_CONFIG: Config = Config::new()); | ||
| thread_local!(static Z3_CONFIG: Config = { let mut c = Config::new(); c.set_model_generation(true); c }); |
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.
Huh the Config setters do not return self, that would have made this much nicer.
| | (SameWidth, FromPointer(s)) | ||
| | (SameWidth, ToPointer(s)) | ||
| if s == e_ty.is_signed() => | ||
| if s == e_ty.is_signed() && s == t1_ty.is_signed() => |
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.
I think for the SameWidth case we don't care if s == e_ty.is_signed(), but we do for the left Extend. Maybe split those cases up?
A CI run randomly found this cast sequence that fails. I'm not sure what to do with it at this point, but this PR serves to at least document what's going on.