Skip to content

chore: remove dead SipserReduceToCliqueStandard solver path#113

Open
wrigjl wants to merge 1 commit into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:chore/remove-dead-sipser-clique-solver-path
Open

chore: remove dead SipserReduceToCliqueStandard solver path#113
wrigjl wants to merge 1 commit into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:chore/remove-dead-sipser-clique-solver-path

Conversation

@wrigjl

@wrigjl wrigjl commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Deletes requestSolvedInstanceTemporarySat3CliqueSolver from components/redux/index.js — the "CliqueBruteForce - via SipserReduceToCliqueStandard" branch was unreachable because the backend endpoint (Nav_Solvers.cs) that would have surfaced that solver option is commented out.
  • Deletes requestSolvedVisualization from components/redux/index.js — never imported or called anywhere in the frontend.
  • Replaces the import and call site in components/pageblocks/SolveRowReact.js with requestSolvedInstance directly (same signature, was the else-branch anyway).
  • Removes the dead ternary and comment block in components/hooks/ProblemProvider/Solver.js (useSolverInfo), passing solver straight to useGenericInfo.

The SipserReduceToCliqueStandard reduction itself (Reduce row when 3SAT is selected) is untouched.

3 insertions, 64 deletions.

Test plan

  • Select a problem with a solver and confirm Solve still works end-to-end.
  • Confirm the Reduce row for 3SAT → Clique (SipserReduceToCliqueStandard) still functions normally.
  • Confirm no build/lint errors (npm run build).

🤖 Generated with Claude Code

The backend endpoint that would have surfaced "CliqueBruteForce - via
SipserReduceToCliqueStandard" as a solver option was commented out, making
the frontend code handling it unreachable. Remove the two dead functions
(requestSolvedInstanceTemporarySat3CliqueSolver,
requestSolvedVisualization), replace the call site in SolveRowReact with
requestSolvedInstance directly, and drop the matching ternary in
useSolverInfo. The SipserReduceToCliqueStandard reduction itself is
unchanged and still in use.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
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.

1 participant