Skip to content

[code-simplifier] Simplify int_cube: remove goto, use aggregate/brace init#9874

Open
NikolajBjorner wants to merge 1 commit into
masterfrom
simplify-int-cube-goto-ab252344afd929c1
Open

[code-simplifier] Simplify int_cube: remove goto, use aggregate/brace init#9874
NikolajBjorner wants to merge 1 commit into
masterfrom
simplify-int-cube-goto-ab252344afd929c1

Conversation

@NikolajBjorner

Copy link
Copy Markdown
Contributor

Replace goto-based control flow in get_cube_delta_for_term with an all_ok flag for structured early-exit. Use aggregate initialization for flip_candidate, constructor-based vector sizing for occs, brace initialization for pairs in add_edge_rows_for_term.

No functional changes - all lcube tests pass.

Replace goto-based control flow in get_cube_delta_for_term with
an all_ok flag for structured early-exit. Use aggregate initialization
for flip_candidate, constructor-based vector sizing for occs, brace
initialization for pairs in add_edge_rows_for_term.

No functional changes - all lcube tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@NikolajBjorner NikolajBjorner requested a review from levnach June 15, 2026 20:13

@levnach levnach left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rename variable all_ok to octagon_row.

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