OpenParable
Skip to content
← Back to skills

Memory Model Analyzer

Testing & Quality
memory-model-analyzer

Memory Model Analyzer is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Analyze programs under various memory models for concurrent correctness

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/domains/science/computer-science/skills/memory-model-analyzer/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/memory-model-analyzer, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Memory Model Analyzer

Purpose

Provides expert guidance on analyzing concurrent programs under various hardware and language memory models.

Capabilities

  • Sequential consistency checking
  • Total Store Order (TSO) analysis
  • C/C++ memory model compliance
  • Memory barrier insertion guidance
  • Race condition detection
  • Weak memory model reasoning

Usage Guidelines

  1. Model Selection: Identify relevant memory model
  2. Analysis: Check program behavior under model
  3. Barrier Placement: Determine required fences/barriers
  4. Race Detection: Find data races
  5. Verification: Verify correct synchronization

Tools/Libraries

  • CDSChecker
  • GenMC
  • CBMC
  • herd7