cirrus-uchicago/symbolon/explicit-block-bodies-for-conditionals

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 if-statements use single-statement bodies without braces and combine increment with the conditional check on one line

Install

npx vskill@latest install cirrus-uchicago/symbolon/explicit-block-bodies-for-conditionals

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/explicit-block-bodies-for-conditionals.

explicit-block-bodies-for-conditionals

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 if-statements use single-statement bodies without braces and combine increment with the conditional check on one line

Transformation

Wrap conditional bodies in explicit braces with the state update as a separate statement (e.g., 'if(cond){ z = z + 1; }' instead of 'if(cond)count++;')

Why it helps

Explicit block structure produces clearer basic-block boundaries in the compiled LLVM IR, helping KLEE distinguish path branches and generate test inputs that exercise both the true and false sides of each condition, improving branch coverage when replayed.

Example

Before:

c
#include<stdio.h>
int main(){
int a,b,c,i,j,k,x,count=0;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(i=0;i<=a;i++){
for(j=0;j<=b;j++){
for(k=0;k<=c;k++){
if(i*500+j*100+k*50==x)count++;
}}}
printf("%d",count);
return 0;
}

After:

c
#include <stdio.h>
int main(void)
{
int a,b,c,x,i,j,k,z=0;
scanf("%d%d%d%d",&a,&b,&c,&x);
for(i=0; i<=a; i++){
for(j=0; j<=b; j++){
for(k=0; k<=c; k++){
if(i*500+j*100+k*50==x){
z=z+1;
}
}
}
}
printf("%d\n",z);
return 0;
}

Evidence

  • Average coverage delta: 0.2896
  • Source problems: train_AtCoder_p03448
  • Rule id: ab138d5a

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/explicit-block-bodies-for-conditionals/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/explicit-block-bodies-for-conditionals)

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