# prithvisekhar/appliedsdlc_template architecture

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

- Interactive diagram: https://gitdiagram.com/prithvisekhar/appliedsdlc_template
- Repository: https://github.com/prithvisekhar/appliedsdlc_template

## Overview

This repository is a small interactive integer calculator, with a bundled Unity C test framework. The user enters an operation and operands in the menu loop; the program validates the choice, calls the selected arithmetic function, and prints the result. The arithmetic implementation handles division by zero by returning zero. The Unity modules are included because they are prominent core modules, but the test runner’s connections to calculator tests are not shown in the supplied excerpts.

Main entry points: [`3_Implementation/project_main.c`](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/project_main.c) (Menu and input), [`3_Implementation/src/calculator_operations.c`](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/src/calculator_operations.c) (Arithmetic operations), [`3_Implementation/unity/unity.h`](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.h) (Unity API), [`3_Implementation/unity/unity.c`](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.c) (Unity runtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Calculator app"]
  node_menu["Menu and input<br/>[project_main.c]"]
end

subgraph group_math["Arithmetic"]
  node_operations["Arithmetic operations"]
end

subgraph group_unity["Unity framework"]
  node_unity_impl["Unity runtime<br/>[unity.c]"]
  node_unity_api["Unity API<br/>[unity.h]"]
  node_unity_internal["Unity internals<br/>[unity_internals.h]"]
end

node_user(("Calculator user"))

node_user -->|"enters choices"| node_menu
node_menu -->|"calls operation"| node_operations
node_operations -->|"returns result"| node_menu
node_menu -->|"prints result"| node_user
node_unity_impl -->|"includes API"| node_unity_api
node_unity_api -->|"uses definitions"| node_unity_internal

click node_menu "https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/project_main.c"
click node_operations "https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/src/calculator_operations.c"
click node_unity_impl "https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.c"
click node_unity_api "https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.h"
click node_unity_internal "https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity_internals.h"

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_menu,node_user toneBlue
class node_operations toneAmber
class node_unity_impl,node_unity_api,node_unity_internal toneMint
```

## Components

### Calculator app

- [Menu and input](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/project_main.c): `3_Implementation/project_main.c`

### Arithmetic

- [Arithmetic operations](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/src/calculator_operations.c): `3_Implementation/src/calculator_operations.c`

### Unity framework

- [Unity runtime](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.c): `3_Implementation/unity/unity.c`
- [Unity API](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity.h): `3_Implementation/unity/unity.h`
- [Unity internals](https://github.com/prithvisekhar/appliedsdlc_template/blob/main/3_Implementation/unity/unity_internals.h): `3_Implementation/unity/unity_internals.h`

### Other components

- **Calculator user**

## Connections

- Calculator user → Menu and input: enters choices (evidence: `3_Implementation/project_main.c`)
- Menu and input → Arithmetic operations: calls operation (evidence: `3_Implementation/project_main.c`)
- Arithmetic operations → Menu and input: returns result (evidence: `3_Implementation/project_main.c`)
- Menu and input → Calculator user: prints result (evidence: `3_Implementation/project_main.c`)
- Unity runtime → Unity API: includes API (evidence: `3_Implementation/unity/unity.c`)
- Unity API → Unity internals: uses definitions (evidence: `3_Implementation/unity/unity.h`)
