"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports._stringifyGraphSpecData = void 0;
const stringifyPinData_1 = require("../types/stringifyPinData");
function _stringifyGraphSpecData(spec) {
    for (const unitId in spec.units) {
        const unit = spec.units[unitId];
        const { memory } = unit;
        if (memory) {
            for (const inputId in memory.input) {
                const input = memory.input[inputId];
                memory.input[inputId] = (0, stringifyPinData_1.stringifyDataObj)(input);
            }
            for (const outputId in memory.output) {
                const output = memory.output[outputId];
                memory.output[outputId] = (0, stringifyPinData_1.stringifyDataObj)(output);
            }
            for (const stateId in memory.memory) {
                const state = memory.memory[stateId];
                memory.memory[stateId] = (0, stringifyPinData_1.stringifyDataObj)(state);
            }
        }
    }
}
exports._stringifyGraphSpecData = _stringifyGraphSpecData;
//# sourceMappingURL=stringifySpec.js.map