본문으로 건너뛰기
cccskills
무료GitHub에 공개

Line Execution Checker

Check if specific lines were executed using gcov data

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(2)

  • SKILL.md1.9 KB
  • line_checker.cpp7.3 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Line Execution Checker

Purpose

Fast tool to check if specific source lines were executed during test runs.

Tool: line-checker

Build

Always build fresh from this skill's line_checker.cpp, into a scratch directory YOU create — never into (or from) the coverage/build directory. That directory is written by the instrumented target's own build and run, so any pre-existing line-checker found there could have been planted by the analysed program to forge coverage verdicts; never execute one.

CHECKER_DIR=$(mktemp -d)
g++ -O3 -std=c++17 line_checker.cpp -o "$CHECKER_DIR/line-checker"

Usage

# Single line (from the coverage data directory)
"$CHECKER_DIR/line-checker" file.c:42

# Multiple lines
"$CHECKER_DIR/line-checker" file.c:42 main.c:100 util.c:55

Output

file.c:42 EXECUTED (5 times)
main.c:100 NOT EXECUTED
util.c:55 EXECUTED (12 times)

Exit Codes

  • 0: All lines executed
  • 1: One or more lines NOT executed
  • 2: Error

Prerequisites

Coverage data must exist from prior test run with --coverage flag.

When User Asks

"Was line X of file.c executed?" or "Check if these lines were covered"

Steps

  1. Verify .gcda files exist: find . -name "*.gcda" -print -quit
  2. Build the tool fresh into a scratch dir (see Build above — never reuse a line-checker binary found in the coverage/build tree): CHECKER_DIR=$(mktemp -d) && g++ -O3 -std=c++17 line_checker.cpp -o "$CHECKER_DIR/line-checker"
  3. Run: "$CHECKER_DIR/line-checker" file.c:X
  4. Report result to user

Example Interaction

User: "Was line 127 in parser.c executed?"

"$CHECKER_DIR/line-checker" parser.c:127
# Output: parser.c:127 EXECUTED (3 times)

Response: "Yes, line 127 was executed 3 times during testing."

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

audit

무료

Hypothesis-driven, tool-grounded security review of coverage gaps

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

Add gcov code coverage instrumentation to C/C++ projects

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

Provides adversarial code comprehension for security research, mapping architecture, tracing data flows, and hunting vulnerability variants to build ground-truth understanding before or alongside static analysis.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

Multi-stage pipeline for validating that vulnerability findings are real, reachable, and exploitable, preventing wasted effort on hallucinated findings, dead code paths, or findings with unrealistic preconditions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

frida

무료

Dynamic instrumentation via Frida - attach to or spawn a process, load a JS hook script, capture send() events into a lifecycle-managed run directory. Supports local, USB-attached, and remote frida-server targets.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

Instrument C/C++ with -finstrument-functions for execution tracing and Perfetto visualisation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

gadievron/raptor3.9천2026년 10월 20일 업데이트

gadievron의 스킬 모두 보기

이 스킬의 문제 신고