hax icon indicating copy to clipboard operation
hax copied to clipboard

Coq backend: handle constructors with bases (aka `{field: expr, ..base}` in rust)

Open W95Psp opened this issue 2 years ago • 1 comments

For now, the base is just skipped:

struct Foo {
    a: u8,
    b: u8,
}
fn f(x: Foo) -> Foo {
    Foo { a: 3, ..x }
}

Gets translated as:

Record Foo_tFoo : Type :={
  b : int8;
  a : int8;
}.

Definition f (x : Foo_t) : Foo_t :=
  Build_Foo_t (@repr WORDSIZE8 3).

There's also, something wrong with field projectors, related to #132

W95Psp avatar Jun 09 '23 09:06 W95Psp

@cmester0, is that still an issue or it's supported now?

W95Psp avatar Apr 18 '24 11:04 W95Psp

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

github-actions[bot] avatar Oct 16 '24 02:10 github-actions[bot]

@cmester0 is this fixed by #987

franziskuskiefer avatar Oct 16 '24 06:10 franziskuskiefer

This issue has been marked as stale due to a lack of activity for 60 days. If you believe this issue is still relevant, please provide an update or comment to keep it open. Otherwise, it will be closed in 7 days.

github-actions[bot] avatar Dec 19 '24 02:12 github-actions[bot]

@cmester0 is this fixed or does this need work?

franziskuskiefer avatar Jan 09 '25 12:01 franziskuskiefer

Please re-open @cmester0 if still relevant.

franziskuskiefer avatar Mar 06 '25 12:03 franziskuskiefer