Skip to content

Wrapping Intervals#22

Open
HaydenAtFoxHaven wants to merge 38 commits intoagle:mainfrom
HaydenAtFoxHaven:wrapping-intervals
Open

Wrapping Intervals#22
HaydenAtFoxHaven wants to merge 38 commits intoagle:mainfrom
HaydenAtFoxHaven:wrapping-intervals

Conversation

@HaydenAtFoxHaven
Copy link

Interval analysis, but on a circle!

@HaydenAtFoxHaven HaydenAtFoxHaven marked this pull request as draft February 4, 2026 01:43
@HaydenAtFoxHaven HaydenAtFoxHaven marked this pull request as ready for review February 4, 2026 01:45
Copy link
Owner

@agle agle left a comment

Choose a reason for hiding this comment

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

Good work,

If you want to fix the typecheck tests you can change dune exec bincaml to ../../bin/main.exe in typefail.t and typepass.t

type l = Top | Interval of { lower : Bitvec.t; upper : Bitvec.t } | Bot
[@@deriving eq]

type t = { w : int option; v : l }
Copy link
Owner

Choose a reason for hiding this comment

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

Not for this PR, but this is functionally two domains I think, a width inference domain wrapping the circular interval domain, and they could be separated which would clean up the code here. It may be enough to just always pass type information to the analysis functions but I'll have a look at that refactor when I get time

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.

2 participants