## OrcExecutor OrcExecutor — Running Orc programs |

## Synopsis

                        OrcExecutor;
    OrcExecutor *       orc_executor_new                    (OrcProgram *program);
    void                orc_executor_free                   (OrcExecutor *ex);
    void                orc_executor_set_array              (OrcExecutor *ex,
                                                             int var,
                                                             void *ptr);
    void                orc_executor_set_array_str          (OrcExecutor *ex,
                                                             const char *name,
                                                             void *ptr);
    void                orc_executor_set_n                  (OrcExecutor *ex,
                                                             int n);
    void                orc_executor_emulate                (OrcExecutor *ex);
    void                orc_executor_run                    (OrcExecutor *ex);
    int                 orc_executor_get_accumulator        (OrcExecutor *ex,
                                                             int var);
    int                 orc_executor_get_accumulator_str    (OrcExecutor *ex,
                                                             const char *name);
    void                orc_executor_set_param              (OrcExecutor *ex,
                                                             int var,
                                                             int value);
    void                orc_executor_set_param_str          (OrcExecutor *ex,
                                                             const char *name,
                                                             int value);
    void                orc_executor_set_program            (OrcExecutor *ex,
                                                             OrcProgram *program);

## Description

## Details

### OrcExecutor

    typedef struct {
    } OrcExecutor;

### orc_executor_new ()

    OrcExecutor *       orc_executor_new                    (OrcProgram *program);

`program` : |
Returns : |

### orc_executor_free ()

    void                orc_executor_free                   (OrcExecutor *ex);

`ex` : |

### orc_executor_set_array ()

    void                orc_executor_set_array              (OrcExecutor *ex,
                                                             int var,
                                                             void *ptr);

`ex` : |
`var` : |
`ptr` : |

### orc_executor_set_array_str ()

    void                orc_executor_set_array_str          (OrcExecutor *ex,
                                                             const char *name,
                                                             void *ptr);

`ex` : |
`name` : |
`ptr` : |

### orc_executor_set_n ()

    void                orc_executor_set_n                  (OrcExecutor *ex,
                                                             int n);

`ex` : |
`n` : |

### orc_executor_emulate ()

    void                orc_executor_emulate                (OrcExecutor *ex);

`ex` : |

### orc_executor_run ()

    void                orc_executor_run                    (OrcExecutor *ex);

`ex` : |

### orc_executor_get_accumulator ()

    int                 orc_executor_get_accumulator        (OrcExecutor *ex,
                                                             int var);

`ex` : |
`var` : |
Returns : |

### orc_executor_get_accumulator_str ()

    int                 orc_executor_get_accumulator_str    (OrcExecutor *ex,
                                                             const char *name);

`ex` : |
`name` : |
Returns : |

### orc_executor_set_param ()

    void                orc_executor_set_param              (OrcExecutor *ex,
                                                             int var,
                                                             int value);

`ex` : |
`var` : |
`value` : |

### orc_executor_set_param_str ()

    void                orc_executor_set_param_str          (OrcExecutor *ex,
                                                             const char *name,
                                                             int value);

`ex` : |
`name` : |
`value` : |

### orc_executor_set_program ()

    void                orc_executor_set_program            (OrcExecutor *ex,
                                                             OrcProgram *program);

`ex` : |
`program` : |