function opLog(msg, operations, pc) {
        var e_1, _a;
        if (!opLogEnabled) {
            return;
        }
        var opl = '';
        var counter = 0;
        try {
            for (var operations_1 = __values(operations), operations_1_1 = operations_1.next(); !operations_1_1.done; operations_1_1 = operations_1.next()) {
                var op = operations_1_1.value;
                var opc = op[C.OPCODE];
                if (op[C.OPCODE] === C.EXPR) {
                    opc = opc + '[' + op[C.EXPR];
                    if (op[C.EXPR] === C.BINARY) {
                        opc = opc + '-' + op[C.OP];
                    }
                    opc = opc + ']';
                }
                opl = opl + (counter++ == pc ? '*' : '') + opc + ' ';
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (operations_1_1 && !operations_1_1.done && (_a = operations_1.return)) _a.call(operations_1);
            }
            finally { if (e_1) throw e_1.error; }
        }
        debug(msg + ' pc:' + pc + ' ' + opl);
    }
/**
     * FOR DEBUGGING: write the actual array of operations to the 'console.log'. The actual operation is prefixed by '*'
     *
     * . @param msg the prefix of the message (for easy reading of the logs)
     * . @param operations the array of all operations to be executed
     * . @param pc the program counter
     */
FOR DEBUGGING: write the actual array of operations to the 'console.log'. The actual operation is prefixed by '*'
. @param msg the prefix of the message (for easy reading of the logs)
. @param operations the array of all operations to be executed
. @param pc the program counter
FOR DEBUGGING : write the actual array of operations to the ' console . log ' . The actual operation is prefixed by ' * ' . @param msg the prefix of the message ( for easy reading of the logs ) . @param operations the array of all operations to be executed . @param pc the program counter
function opLog(msg, operations, pc) {
        var e_1, _a;
        if (!opLogEnabled) {
            return;
        }
        var opl = '';
        var counter = 0;
        try {
            for (var operations_1 = __values(operations), operations_1_1 = operations_1.next(); !operations_1_1.done; operations_1_1 = operations_1.next()) {
                var op = operations_1_1.value;
                var opc = op[C.OPCODE];
                if (op[C.OPCODE] === C.EXPR) {
                    opc = opc + '[' + op[C.EXPR];
                    if (op[C.EXPR] === C.BINARY) {
                        opc = opc + '-' + op[C.OP];
                    }
                    opc = opc + ']';
                }
                opl = opl + (counter++ == pc ? '*' : '') + opc + ' ';
            }
        }
        catch (e_1_1) { e_1 = { error: e_1_1 }; }
        finally {
            try {
                if (operations_1_1 && !operations_1_1.done && (_a = operations_1.return)) _a.call(operations_1);
            }
            finally { if (e_1) throw e_1.error; }
        }
        debug(msg + ' pc:' + pc + ' ' + opl);
    }
function opLog ( msg , operations , pc ) { var e_1 , _a ; if ( ! opLogEnabled ) { return ; } var opl = '' ; var counter = 0 ; try { for ( var operations_1 = __values ( operations ) , operations_1_1 = operations_1 . next ( ) ; ! operations_1_1 . done ; operations_1_1 = operations_1 . next ( ) ) { var op = operations_1_1 . value ; var opc = op [ C . OPCODE ] ; if ( op [ C . OPCODE ] === C . EXPR ) { opc = opc + '[' + op [ C . EXPR ] ; if ( op [ C . EXPR ] === C . BINARY ) { opc = opc + '-' + op [ C . OP ] ; } opc = opc + ']' ; } opl = opl + ( counter ++ == pc ? '*' : '' ) + opc + ' ' ; } } catch ( e_1_1 ) { e_1 = { error : e_1_1 } ; } finally { try { if ( operations_1_1 && ! operations_1_1 . done && ( _a = operations_1 . return ) ) _a . call ( operations_1 ) ; } finally { if ( e_1 ) throw e_1 . error ; } } debug ( msg + ' pc:' + pc + ' ' + opl ) ; }
FOR DEBUGGING: write the actual array of operations to the 'console.log'.
FOR DEBUGGING : write the actual array of operations to the ' console . log ' .