# Location of EvalRotation Source code

**URL:** <https://openfhe.discourse.group/t/location-of-evalrotation-source-code/424>\
**Category:** Library Questions\
**Created:** [March 23, 2023, 12:00pm UTC](https://openfhe.discourse.group/t/location-of-evalrotation-source-code/424 "2023-03-23T12:00:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernardo\_Ramalho](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/bernardo_ramalho/32/92_2.png) [@Bernardo\_Ramalho](https://openfhe.discourse.group/u/Bernardo_Ramalho)\
**Post date:** [March 23, 2023, 12:00pm UTC](https://openfhe.discourse.group/t/location-of-evalrotation-source-code/424/1 "2023-03-23T12:00:50Z")

</div>

Hello,

I have been looking for the code where the EvalRotation() function is implemented, but I can’t find it. I have looked on GitHub and in the documentation, but all the files I find don’t have the code. They always call functions from files I can’t find.

Can anyone help me?

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [March 23, 2023, 3:43pm UTC](https://openfhe.discourse.group/t/location-of-evalrotation-source-code/424/2 "2023-03-23T15:43:29Z")

</div>

Have you tried placing a breakpoint and stepping into it?

---

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [March 23, 2023, 4:18pm UTC](https://openfhe.discourse.group/t/location-of-evalrotation-source-code/424/3 "2023-03-23T16:18:02Z")

</div>

As Ian pointed out, the recommended approach to locate the implementation of any function is to trace OpenFHE in debug mode. EvalRotate’s implementation can be found [here](https://github.com/openfheorg/openfhe-development/blob/main/src/pke/include/cryptocontext.h#L1787). It gets the corresponding evaluation/rotation key and calls EvalAtIndex whose implementation can be found [here](https://github.com/openfheorg/openfhe-development/blob/122f470e0dbf94688051ab852131ccc5d26be934/src/pke/lib/schemebase/base-leveledshe.cpp#L521). You can carry on by stepping into OpenFHE in debug mode.
