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

Improve define's return-specs to support lazy hints #790

Open
ragerdl opened this issue Oct 31, 2017 · 1 comment
Open

Improve define's return-specs to support lazy hints #790

ragerdl opened this issue Oct 31, 2017 · 1 comment

Comments

@ragerdl
Copy link
Member

ragerdl commented Oct 31, 2017

Putting the request here, in case someone gets the inkling to implement it.

It'd be good to be able to type:

(define address-fix
  ((address address-p))
  :returns (retval ubyte32p :enable (address-p))
  ...)

instead of:

(define address-fix
  ((address address-p))
  :returns (retval ubyte32p :hints (("goal" :in-theory (enable address-p))))
  ...)

An implementation of this feature request should also support the other keywords that define supports, like :disable. It may turn out that it doesn't make sense to support them all.

@acoglio
Copy link
Member

acoglio commented Jun 21, 2022

I suppose that this could be realized by integrating return type specifiers with defrule, which supports "direct" keyword hints — :enable, :disable, :use, etc.

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

No branches or pull requests

2 participants