cirrus-uchicago/symbolon/prefer-integer-arithmetic-over-float

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 loop progression depends on multiplying a value by a floating-point constant (e.g., y *= 1.01) with an implicit or no-op cast back to integer

Install

npx vskill@latest install cirrus-uchicago/symbolon/prefer-integer-arithmetic-over-float

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/prefer-integer-arithmetic-over-float.

prefer-integer-arithmetic-over-float

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 loop progression depends on multiplying a value by a floating-point constant (e.g., y *= 1.01) with an implicit or no-op cast back to integer

Transformation

Replace floating-point scaling with equivalent integer arithmetic (e.g., n = n + n/100) so loop conditions and updates stay in the integer domain

Why it helps

KLEE's constraint solver handles linear integer arithmetic far more efficiently than floating-point operations; integer formulations let the solver reason about loop bounds and branch conditions precisely, enabling deeper path exploration and reusable test inputs

Example

Before:

c
#include<stdio.h>
int main(){
long long x,y=100,i=0;
scanf("%lld",&x);
while(1) {
y*=1.01;
(long long)y;
i++;
if(y>=x) break;
}
printf("%lld",i);
return 0;
}

After:

c
#include <stdio.h>
long long n, m, i, j, k;
int main(){
scanf("%lld", &m);
n = 100;
while(n < m){
n = n + n/100;
k++;
}
printf("%lld\n", k);
return 0;
}

Evidence

  • Average coverage delta: 0.2137
  • Source problems: train_AtCoder_p02694
  • Rule id: 84186b70

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/prefer-integer-arithmetic-over-float/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/prefer-integer-arithmetic-over-float)

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