Thank you for the reply! I see.. There is no specific API/function to do decryption without decoding. Unfortunately, in this way, I need to recompile the OpenFHE every time.
But I still don’t get it, in line 577, we don’t use the private key in that function, I guess it will be in line 584 or line 586, but I am not sure how to print the DecryptResult
Line 577 only sets the parameters of the plaintext result, the decryption happens in the following lines, as you pointed out.
To print the plaintext polynomial, you can try inserting the following line from the link before the line 593:
std::cout << "result DCRTPoly: " << result ->GetElement<DCRTPoly>() << std::endl;