> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/callable/callable.get_reachable_instructions.md).

# Callable.get\_reachable\_instructions()

Returns the instructions which are reachable from the entry node

`get_reachable_instructions() →` [`APISet`](/glider-ide/api/iterables/apiset.md)`[`[`Instruction`](/glider-ide/api/instruction.md)`]`

## Query Example

```python
from glider import *

def query():
    functions = Functions().exec(1) 
  
    for reachable_instruction in functions[0].get_reachable_instructions():
        print(f"{reachable_instruction.source_code()}")

    return functions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2Fwxvl6tDZ2hZKg2VRupux%2Fimage.png?alt=media&amp;token=7ec28e8c-d71b-4385-922c-db6b6a242f13" alt=""><figcaption></figcaption></figure>
