cirrus-uchicago/symbolon/remove-input-loop

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 code uses a while loop with scanf to read multiple inputs until EOF

Install

npx vskill@latest install cirrus-uchicago/symbolon/remove-input-loop

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/remove-input-loop.

remove-input-loop

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 code uses a while loop with scanf to read multiple inputs until EOF

Transformation

Replace the while loop with a single scanf call that reads one input

Why it helps

KLEE struggles with loops that depend on symbolic input termination conditions, causing it to explore fewer meaningful paths and get stuck on loop exit conditions rather than the core logic

Example

Before:

c
#include<stdio.h>
#include<math.h>
int main()
{
int n,a;
float b;
while(~scanf("%d", &n))
{
a=ceil(n/1.08);
if(floor(a*1.08)==n)
printf("%d\n", a);
else
printf(":(\n");
}
return 0;
}

After:

c
#include <stdio.h>
#include <math.h>
int main(int argc, char const *argv[])
{
int n,m;
scanf("%d",&n);
m=ceil(n/1.08);
if(n==(int)(m*1.08)) printf("%d",m);
else printf(":(");
return 0;
}

Evidence

  • Average coverage delta: 0.5
  • Source problems: train_AtCoder_p02842
  • Rule id: cc2b550d

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

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/remove-input-loop/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/remove-input-loop)

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