cirrus-uchicago/symbolon/normalize-boundary-conditions-to-canonical-form

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 boundary checks are written as a disjunction of violation conditions (e.g., x+r>W || x-r<0) using strict inequalities and mixed operand orderings

Install

npx vskill@latest install cirrus-uchicago/symbolon/normalize-boundary-conditions-to-canonical-form

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/normalize-boundary-conditions-to-canonical-form.

normalize-boundary-conditions-to-canonical-form

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 boundary checks are written as a disjunction of violation conditions (e.g., x+r>W || x-r<0) using strict inequalities and mixed operand orderings

Transformation

Rewrite the check as a conjunction of the valid-range conditions using consistent canonical form (e.g., 0<=x-r && x+r<=W), placing constants on the left and variables on the right with non-strict inequalities

Why it helps

KLEE's constraint solver handles canonical affine inequalities (var OP const) more efficiently, and conjunctions of valid-range predicates produce cleaner path constraints than negated disjunctions of violations, enabling better caching and faster feasibility checks across paths

Example

Before:

c
#include<stdio.h>
int main(){
int W,H,x,y,r;
scanf("%d %d %d %d %d",&W,&H,&x,&y,&r);
if(x+r>W||x-r<0||y+r>H||y-r<0)
printf("No\n");
else
printf("Yes\n");
}

After:

c
#include<stdio.h>
int main(void)
{
int w,h,x,y,r;
scanf("%d %d %d %d %d",&w,&h,&x,&y,&r);
if(0<=x-r&&0<=y-r&&x+r<=w&&y+r<=h){
printf("Yes\n");
}
else{
printf("No\n");
}
return 0;
}

Evidence

  • Average coverage delta: 0.1763
  • Source problems: train_AIZU_p02394
  • Rule id: 85ceca3f

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/normalize-boundary-conditions-to-canonical-form/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/normalize-boundary-conditions-to-canonical-form)

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