1- // Copyright (C) 2023 Intel Corporation
1+ // Copyright (C) 2024 Intel Corporation
2+ // SPDX-License-Identifier: Apache-2.0
23
34#include < algorithm>
45#include < filesystem>
@@ -36,9 +37,9 @@ inline std::string genKernInput(const pisa::poly::PolyOperation &op)
3637 // CONTEXT
3738 input << " CONTEXT " << toString (op.parentProgram ()->scheme ())
3839 << " " << op.parentProgram ()->getPolyModulusDegree ()
39- << " " << op.parentProgram ()->getKeyRns ()
40+ << " " << op.parentProgram ()->getKeyRns ()
4041 << " " << op.getInputOperand (0 ).num_of_rns_terms
41- << " \n " ;
42+ << " \n " ;
4243
4344 // DATA
4445 // NOTE: CipherDegree is tied to HEOperation not Operand
@@ -465,8 +466,8 @@ void pisa::kernel::PISAKernel::determineVariableNamingViaGraph()
465466 auto outputs = instruction_graph.getOutputNodes ();
466467 auto immediates = instruction_graph.getInputNodes (false , true , false );
467468
468- auto non_repeat_inputs = nonRepeatingRootsNode (inputs);
469- auto non_repeat_outpus = nonRepeatingRootsNode (outputs);
469+ auto non_repeat_inputs = nonRepeatingRootsNode (inputs);
470+ auto non_repeat_outputs = nonRepeatingRootsNode (outputs);
470471 for (auto &input : non_repeat_inputs)
471472 {
472473 input_names.push_back (input);
@@ -482,15 +483,15 @@ void pisa::kernel::PISAKernel::determineVariableNamingViaGraph()
482483 // Attempt #2, just sort inputs if the label contains "input"
483484 // Leave the rest of the list alone
484485 // TODO: Generalize Function
485- auto comp = [] (const std::string &a, const std::string &b) {
486+ auto comp = [](const std::string &a, const std::string &b) {
486487 if (containsString (a, " input" ) && containsString (b, " input" ))
487- return a < b;
488+ return a < b;
488489 else
489- return false ;
490+ return false ;
490491 };
491492 std::sort (input_names.begin (), input_names.end (), comp);
492493
493- for (auto &output : non_repeat_outpus )
494+ for (auto &output : non_repeat_outputs )
494495 {
495496 output_names.push_back (output);
496497 naming_map[output] = output;
0 commit comments