Skip to content

Add Pure instr - #232

Open
sim642 wants to merge 8 commits into
developfrom
instr-pure
Open

sim642 wants to merge 8 commits into
developfrom
instr-pure

Conversation

@sim642

@sim642 sim642 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Closes #145.

Since #203 is already going to make a breaking change to instr, we might as well do another one now.

@sim642 sim642 added this to the 2.2.0 milestone Jul 20, 2026
@sim642 sim642 added the bug label Jul 20, 2026
@sim642
sim642 marked this pull request as draft July 20, 2026 13:02
@sim642

sim642 commented Jul 20, 2026

Copy link
Copy Markdown
Member Author

I just realized that I completely forgot to construct these anywhere in Cabs2cil...

@sim642

sim642 commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

I just realized that I completely forgot to construct these anywhere in Cabs2cil...

It is surprisingly annoying to achieve that without causing x = y; to expand to x = y; x;. I currently have an ad hoc workaround for assignment (from expressions and function calls).

Comment thread src/frontc/cabs2cil.ml Resolved
@sim642 sim642 modified the milestones: 2.2.0, 2.3.0 Oct 28, 2026
@sim642

sim642 commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

I think I didn't even yet make a Goblint branch to adapt for this. Since it would touch a lot of things and this isn't blocking for us, I'll hold off merging this until after SV-COMP perhaps.

@sim642

sim642 commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

We should also hold off on merging this until goblint/analyzer#2390 is ready. The Goblint integration might reveal issues here.

@sim642

sim642 commented Nov 30, 2026

Copy link
Copy Markdown
Member Author

It is surprisingly annoying to achieve that without causing x = y; to expand to x = y; x;. I currently have an ad hoc workaround for assignment (from expressions and function calls).

Based on goblint/analyzer#2390, it looks like that's not working properly.

This branch has not been deployed

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep side-effect-less expression statements when wanted

2 participants