cirrus-uchicago/symbolon/eliminate-redundant-loops-and-io

Claude Code and agent skill by cirrus-uchicago/symbolon

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the program contains loops or input reads whose results are not needed for the final output (e.g., reading values into a discarded variable, or iterative computations equivalent to a closed-form expression)

Install

npx vskill@latest install cirrus-uchicago/symbolon/eliminate-redundant-loops-and-io

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/eliminate-redundant-loops-and-io.

eliminate-redundant-loops-and-io

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 program contains loops or input reads whose results are not needed for the final output (e.g., reading values into a discarded variable, or iterative computations equivalent to a closed-form expression)

Transformation

Replace dead input-consuming loops and iterative reductions with their closed-form arithmetic equivalent, so the program reads only the inputs that affect output and computes the result directly

Why it helps

KLEE forks on each symbolic loop iteration and each symbolic scanf, causing path explosion and complex constraints; a closed-form expression yields a single path with simple linear constraints, letting the solver generate inputs that cover the underlying logic quickly

Example

Before:

c
#include<stdio.h>
int main(){
int N,Y,b,sum;
scanf("%d %d",&N,&Y);
for(int i = 0;i<Y;i++){
scanf("%d",&b);
}
sum = 0;
for(;;){
N = N / 2;
sum = sum + N;
if(N==1) break;
}
printf("%d\n",sum-Y);
}

After:

c
#include <stdio.h>
int main(void) {
int a, b;
scanf("%d%d", &a, &b);
printf("%d\n", a - b - 1);
return 0;
}

Evidence

  • Average coverage delta: 0.1481
  • Source problems: train_AIZU_p01905
  • Rule id: 97fee3d3

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cirrus-uchicago/symbolon/eliminate-redundant-loops-and-io/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/eliminate-redundant-loops-and-io)

Something wrong with this skill or its page? Tell us.