cirrus-uchicago/symbolon/hoist-loop-condition-to-while
Claude Code and agent skill by cirrus-uchicago/symbolon
- community
Checking that the SKILL.md file is still in the repository.
Use when the main processing loop uses an infinite while(1) with an internal break on a sentinel input value, mixing input reading and termination logic inside the loop body
Install
npx vskill@latest install cirrus-uchicago/symbolon/hoist-loop-condition-to-whileSKILL.md
The same SKILL.md was published earlier as cirrus-uchicago/symbolon/hoist-loop-condition-to-while.
hoist-loop-condition-to-while
Overview
A KLEE-coverage code transformation. Applying it rewrites C source so symbolic execution explores more of the program's behavior.
When to use
When the main processing loop uses an infinite while(1) with an internal break on a sentinel input value, mixing input reading and termination logic inside the loop body
Transformation
Refactor to read the sentinel input once before the loop and again at the end of each iteration, using while(n!=0) so the termination condition is explicit in the loop header
Why it helps
An explicit loop condition lets KLEE recognize the termination predicate symbolically and prune infeasible iterations early, rather than exploring both branches of an internal break on every iteration, reducing path explosion and speeding constraint solving
Example
Before:
After:
Evidence
- Average coverage delta: 0.2216
- Source problems: train_AIZU_p00275
- Rule id:
8c164055
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckinglibrary/hoist-loop-condition-to-while/SKILL.md
Popularity
- Repository stars
- 11
- 7-day trend score
- 17
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cirrus-uchicago/symbolon/hoist-loop-condition-to-while)