Skip to content

Conversation

@fw-immunant
Copy link
Contributor

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.

@ahomescu ahomescu force-pushed the ahomescu/restore_refactor branch from e3fb41a to c717e17 Compare October 7, 2025 22:26
@ahomescu
Copy link
Contributor

ahomescu commented Oct 7, 2025

Your branch needs a rebase (maybe once we land the base PR), then I'll take a look.

@ahomescu ahomescu self-requested a review October 7, 2025 22:32
@ahomescu ahomescu force-pushed the ahomescu/restore_refactor branch 4 times, most recently from a77dce1 to 51fbbcd Compare October 8, 2025 23:20
Base automatically changed from ahomescu/restore_refactor to master October 8, 2025 23:57
@fw-immunant fw-immunant force-pushed the fw/refactor-casts-quickcheck branch from 9ae5f7a to 7a89e71 Compare October 9, 2025 14:42
@fw-immunant fw-immunant force-pushed the fw/refactor-casts-quickcheck branch from 7a89e71 to 882d68f Compare October 9, 2025 17:28
@fw-immunant fw-immunant requested a review from ahomescu October 14, 2025 18:56
@fw-immunant fw-immunant changed the title Add failing quickcheck-derived test case for refactor casts Fix quickcheck-derived test case for refactor casts Oct 27, 2025
}

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 });
Copy link
Contributor

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() =>
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants