cakeml icon indicating copy to clipboard operation
cakeml copied to clipboard

Constant propagation in word_simp

Open tanyongkiam opened this issue 7 months ago • 6 comments

At the moment, constant foldng/propagation in wordLang is limited to expressions:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L156

This issue is about extending it to work for instructions as well:

https://github.com/CakeML/cakeml/blob/master/compiler/backend/word_simpScript.sml#L220

(and probably other simple places that could benefit).

This was reported by @talsewell in the context of Pancake programs.

tanyongkiam avatar May 05 '25 09:05 tanyongkiam

For the purposes of pancake programs, this might be fixed by https://github.com/CakeML/cakeml/pull/1169 , assuming that PR succeeds.

talsewell avatar May 05 '25 13:05 talsewell

Hi! I’d like to work on this issue. Could you please assign it to me?

Shamli-Singh-Yadav avatar Sep 02 '25 02:09 Shamli-Singh-Yadav

Hi! I’d like to work on this issue. Could you please assign it to me?

Sure, do you have some background in HOL4 / CakeML, or are you working with someone who is involved in CakeML dev? I'm afraid it would be a bit difficult to do this from scratch without guidance.

tanyongkiam avatar Sep 02 '25 14:09 tanyongkiam

I don’t have any prior background in HOL4 or CakeML, and I’m not working with anyone directly involved in CakeML development. I’m new to this area and would really appreciate some guidance on how to get started, or suggestions for beginner-friendly issues I could look at.

Shamli-Singh-Yadav avatar Sep 03 '25 02:09 Shamli-Singh-Yadav

It might be good to go here: https://hol-theorem-prover.org/ and get started with picking up HOL first (check out Tutorial and Documentation, and also join the Zulip community for help).

As for this issue, it will probably be assigned to one of my students (soon).

tanyongkiam avatar Sep 04 '25 08:09 tanyongkiam

Thank you for the guidance. I’ll go through the HOL tutorial and documentation from the official site, and also join the Zulip community to get a better understanding. I understand this issue will likely be assigned to someone else, and that’s perfectly fine — I’ll focus on learning the basics first before trying to contribute further

Shamli-Singh-Yadav avatar Sep 04 '25 14:09 Shamli-Singh-Yadav