 return filterCompilerOutput(output);
        };

        const elvm = compileCToElvm(src);
        return compileElvmToWee(elvm, memSize);
    }

    window.addEventListener('load', () => {
        document.getElementById('compile').addEventListener('click', () => {
            clearError();
            document.getElementById('wee').value = '';

            try {
                const c = document.getElementById('c').value;
                const wee = compileWeeFromC(c);
                document.getElemen