cirrus-uchicago/symbolon/prefer-int-over-long-long-and-reduce-loop-bounds

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 uses wide integer types (long long) and large fixed loop bounds (e.g. 10000 iterations) for a convergence/termination check

Install

npx vskill@latest install cirrus-uchicago/symbolon/prefer-int-over-long-long-and-reduce-loop-bounds

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/prefer-int-over-long-long-and-reduce-loop-bounds.

prefer-int-over-long-long-and-reduce-loop-bounds

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 uses wide integer types (long long) and large fixed loop bounds (e.g. 10000 iterations) for a convergence/termination check

Transformation

Use narrower integer types (int) for symbolic inputs and reduce the loop bound to a smaller sufficient constant (e.g. 100), and structure the loop to break on the termination condition rather than embedding early-return prints

Why it helps

Smaller bit-widths shrink the SMT search space so KLEE solves path constraints faster, and fewer loop iterations means fewer forked states, allowing KLEE to exhaustively explore more reachable branches within its budget

Example

Before:

c
#include <stdio.h>
long long a,b,c;
int main()
{
scanf ("%lld %lld %lld",&a,&b,&c);
for (int t=0;t<10000;t++){
if (a % 2 || b % 2 || c % 2){
printf ("%d\n",t);
return 0;
}
long long p = (b + c) / 2;
long long q = (c + a) / 2;
long long r = (a + b) / 2;
a = p; b = q; c = r;
}
puts("-1");
return 0;
}

After:

c
#include<stdio.h>
int main()
{
int i,n;
int s[1000];
int a,b,c,d;
int x,y,z;
scanf("%d %d %d",&a,&b,&c);
for(i=0;i<100;i++)
{
if(a%2==0&&b%2==0&&c%2==0)
{
x=a/2;
y=b/2;
z=c/2;
a=y+z;
b=x+z;
c=x+y;
}
else break;
}
n=i;
if(n==100) printf("-1");
else printf("%d",n);
return 0;
}

Evidence

  • Average coverage delta: 0.15
  • Source problems: train_AtCoder_p03723
  • Rule id: 256f3bfc

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/prefer-int-over-long-long-and-reduce-loop-bounds/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/prefer-int-over-long-long-and-reduce-loop-bounds)

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