C11 Sensor Fault Controller

Freestanding WebAssembly Interactive Verification Console

ISO C11 Standard WebAssembly 7.0 KB RAM: 20 Bytes (0B Heap) View C Source

Finite State Machine (FSM) Engine

RELAY: ARMED
STATE_NORMAL
T < 60.0°C & OK
≥ 60.0°C →
STATE_WARNING
60°C ≤ T < 80°C
≥ 80.0°C / Err →
STATE_FAULT
Critical / Tripped
Thermal Hysteresis Safety Watcher LATCH DISARMED

System operating in nominal range. Over-temperature faults (≥ 80°C) will latch safely and refuse reset until temperature drops below 75.0°C recovery threshold.

25.0 °C
60°C (Warn)
80°C (Fault)
75°C (Reset)
Active State STATE_NORMAL
Active Fault Code FAULT_NONE
Driver Status Flag SENSOR_OK
Fault Counter 0

Simulated Sensor Injection & Controls

°C
-45°C (Under-Range) 0°C 60°C 80°C 165°C (Over-Range)

C Firmware Execution Diagnostics

Samples: 1
[SYSTEM] WebAssembly C11 Controller Initialized (sizeof(Context) = 20 Bytes).
[00:00.00] STATE: NORMAL | TEMP: 25.00 C | FAULT: NONE | RELAY: ARMED

Embedded Architectural Verification

MISRA-C / ISO C11
Core Source Code src/sensor_controller.c (100% Unmodified)
RAM Footprint 20 Bytes (Static Struct, 0B Heap)
Wasm Binary Size 7,030 Bytes (Freestanding, 0 Imports)
Execution Complexity Strict O(1) Constant Evaluation
Unit Test Coverage 31 / 31 Scenarios Verified Passing