cirrus-uchicago/symbolon/inline-conditional-computation

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 conditional logic modifies pre-computed array values in a separate loop after initial computation

Install

npx vskill@latest install cirrus-uchicago/symbolon/inline-conditional-computation

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/inline-conditional-computation.

inline-conditional-computation

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 conditional logic modifies pre-computed array values in a separate loop after initial computation

Transformation

Merge the conditional logic directly into the initial computation loop, computing the final value in a single pass without intermediate storage

Why it helps

Eliminates array writes and subsequent conditional array updates, reducing memory operations and allowing KLEE to reason about simpler straight-line code with fewer symbolic memory accesses

Example

Before:

c
#include<stdio.h>
int main() {
int k;
int i, j;
int n;
int c[500][500];
//入力
scanf("%d", &k);
if (k == 1) {
printf("1\n1\n");
return 0;
}
n = (k + 3) / 4 * 2;
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
c[i][j] = (i + j) % n + 1;
}
}
for (i = 1; i < n; i += 2) {
for (j = 0; j < n; j++) {
if (c[i][j] + n <= k)c[i][j] += n;
}
}
//出力
printf("%d\n", n);
for (i = 0; i < n; i++) {
for (j = 0; j < n; j++) {
printf("%d ", c[i][j]);
}
printf("\n");
}
return 0;
}

After:

c
#include<stdio.h>
int main()
{
int k;
scanf("%d",&k);
if(k==1)
{
printf("1\n1\n");
return 0;
}
int n=(((k+3)>>2)<<1);
printf("%d\n",n);
for(int i=0;i<n;i++)
{
for(int j=0;j<n;j++)
{
int val=(i+j)%n+1;
if(i&1)
{
val+=n;
if(val>k)
{
val-=n;
}
}
printf("%d",val);
if(j==n-1)
{
putchar('\n');
}
else
{
putchar(' ');
}
}
}
return 0;
}

Evidence

  • Average coverage delta: 0.438
  • Source problems: train_AtCoder_p03188
  • Rule id: 122747a7

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/inline-conditional-computation/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/inline-conditional-computation)

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