---
# System prepended metadata

title: Funciones a exponer en CAIRO_RS_PY

---

# Funciones a exponer en CAIRO_RS_PY

## Runner
* runner.memory.get_range() -> runner.get_range() **[hecho]**
* runner.add_segment **[hecho]**
* runner.get_segments_used_size() **[hecho]**
* runner.get_return_values() **[hecho]**
* runner.get_ap() **[hecho]**
* runner.get_builtins_initial_stack() **[hecho]**
deberia imitar este comportamiento. Va a haber que
exponerla en cairo_rs_py
```
for builtin in runner.program.builtins:
    builtin_runner = runner.builtin_runners[f"{builtin}_builtin"]
    os_context.extend(builtin_runner.initial_stack())
```
* runner.get_builtins_final_stack() **[En proceso]**
deberia imitar este comportamiento. Va a haber que exponerla en cairo_rs_py
    ```
    for builtin in runner.program.builtins[::-1]:
        builtin_runner = runner.builtin_runners[f"{builtin}_builtin"]

        with wrap_with_stark_exception(code=StarknetErrorCode.SECURITY_ERROR):
            stack_ptr = builtin_runner.final_stack(runner=runner, pointer=stack_ptr)
    ``` 
* runner.get_initial_fp() **[hecho]**
* runner.vm_memory[final_os_context_ptr + ptr_offset] -> runner.insert() **[hecho]**
* runner.get_execution_resources() **[hecho]**
* runner.run_from_entrypoint() **[En proceso]**
