# dependablesystemslab/solidifi-benchmark architecture

> Architecture diagram of the GitHub repository dependablesystemslab/solidifi-benchmark, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dependablesystemslab/solidifi-benchmark
- Repository: https://github.com/dependablesystemslab/solidifi-benchmark

## Overview

SolidiFI Benchmark is a dataset and evaluation-artifact repository for measuring smart-contract analysis tools. Researchers use vulnerable Solidity contracts and their injection logs as ground truth, compare tool reports against that ground truth with the inspection script, and review false-negative, false-positive, and misclassification findings. The README documents seven bug classes and reports from six tools. The source excerpt confirms that inspection reads bug logs and tool reports; details of unsampled script sections and individual report formats are not inferred.

Main entry points: [`scripts/inspection.py`](https://github.com/dependablesystemslab/solidifi-benchmark/blob/master/scripts/inspection.py) (Report Inspection), [`results`](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/results) (Analysis Reports), [`buggy_contracts/Overflow-Underflow`](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Overflow-Underflow) (Overflow/Underflow Contracts), [`buggy_contracts/Re-entrancy`](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Re-entrancy) (Re-entrancy Contracts)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dataset["Bug Dataset"]
  node_overflow["Overflow/Underflow Contracts"]
  node_reentrancy["Re-entrancy Contracts"]
  node_tod["TOD Contracts"]
  node_timestamp["Timestamp Contracts"]
  node_unchecked["Unchecked-Send Contracts"]
  node_exceptions["Unhandled-Exception Contracts"]
  node_txorigin["tx.origin Contracts<br/>[tx.origin]"]
  node_buglogs["Injection Logs"]
end

subgraph group_evaluation["Tool Evaluation"]
  node_toolreports["Analysis Reports"]
end

subgraph group_inspection["Result Inspection"]
  node_inspection["Report Inspection<br/>[inspection.py]"]
  node_findings["Evaluation Findings<br/>[inspection.py]"]
end

node_researcher(("Researcher"))

node_researcher -->|"uses dataset"| node_overflow
node_researcher -->|"uses dataset"| node_reentrancy
node_researcher -->|"uses dataset"| node_tod
node_researcher -->|"uses dataset"| node_timestamp
node_researcher -->|"uses dataset"| node_unchecked
node_researcher -->|"uses dataset"| node_exceptions
node_researcher -->|"uses dataset"| node_txorigin
node_researcher -->|"reviews artifacts"| node_toolreports
node_inspection -->|"reads ground truth"| node_buglogs
node_inspection -->|"inspects reports"| node_toolreports
node_inspection -->|"produces findings"| node_findings
node_researcher -->|"runs evaluation"| node_inspection

click node_overflow "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Overflow-Underflow"
click node_reentrancy "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Re-entrancy"
click node_tod "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/TOD"
click node_timestamp "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Timestamp-Dependency"
click node_unchecked "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Unchecked-Send"
click node_exceptions "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Unhandled-Exceptions"
click node_txorigin "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/tx.origin"
click node_buglogs "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts"
click node_toolreports "https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/results"
click node_inspection "https://github.com/dependablesystemslab/solidifi-benchmark/blob/master/scripts/inspection.py"
click node_findings "https://github.com/dependablesystemslab/solidifi-benchmark/blob/master/scripts/inspection.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_overflow,node_reentrancy,node_tod,node_timestamp,node_unchecked,node_exceptions,node_txorigin,node_buglogs toneBlue
class node_toolreports toneAmber
class node_inspection,node_findings toneMint
class node_researcher toneIndigo
```

## Components

### Bug Dataset

- [Overflow/Underflow Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Overflow-Underflow): `buggy_contracts/Overflow-Underflow`
- [Re-entrancy Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Re-entrancy): `buggy_contracts/Re-entrancy`
- [TOD Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/TOD): `buggy_contracts/TOD`
- [Timestamp Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Timestamp-Dependency): `buggy_contracts/Timestamp-Dependency`
- [Unchecked-Send Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Unchecked-Send): `buggy_contracts/Unchecked-Send`
- [Unhandled-Exception Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/Unhandled-Exceptions): `buggy_contracts/Unhandled-Exceptions`
- [tx.origin Contracts](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts/tx.origin): `buggy_contracts/tx.origin`
- [Injection Logs](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/buggy_contracts): `buggy_contracts`

### Tool Evaluation

- [Analysis Reports](https://github.com/dependablesystemslab/solidifi-benchmark/tree/master/results): `results`

### Result Inspection

- [Report Inspection](https://github.com/dependablesystemslab/solidifi-benchmark/blob/master/scripts/inspection.py): `scripts/inspection.py`
- [Evaluation Findings](https://github.com/dependablesystemslab/solidifi-benchmark/blob/master/scripts/inspection.py): `scripts/inspection.py`

### Other components

- **Researcher**

## Connections

- Researcher → Overflow/Underflow Contracts: uses dataset (evidence: `README.md`)
- Researcher → Re-entrancy Contracts: uses dataset (evidence: `README.md`)
- Researcher → TOD Contracts: uses dataset (evidence: `README.md`)
- Researcher → Timestamp Contracts: uses dataset (evidence: `README.md`)
- Researcher → Unchecked-Send Contracts: uses dataset (evidence: `README.md`)
- Researcher → Unhandled-Exception Contracts: uses dataset (evidence: `README.md`)
- Researcher → tx.origin Contracts: uses dataset (evidence: `README.md`)
- Researcher → Analysis Reports: reviews artifacts (evidence: `README.md`)
- Report Inspection → Injection Logs: reads ground truth (evidence: `scripts/inspection.py`)
- Report Inspection → Analysis Reports: inspects reports (evidence: `scripts/inspection.py`)
- Report Inspection → Evaluation Findings: produces findings (evidence: `README.md`)
- Researcher → Report Inspection: runs evaluation (evidence: `README.md`)
