diff --git a/compiler/include/concretelang/Runtime/context.h b/compiler/include/concretelang/Runtime/context.h index 4beaf4a4a..f4ab118df 100644 --- a/compiler/include/concretelang/Runtime/context.h +++ b/compiler/include/concretelang/Runtime/context.h @@ -22,17 +22,19 @@ typedef struct RuntimeContext { ~RuntimeContext() { int err; for (const auto &key : bsk) { - if (key.first != "_concretelang_base_context_bsk") - free_lwe_bootstrap_key_u64(&err, key.second); + if (key.first != "_concretelang_base_context_bsk") + free_lwe_bootstrap_key_u64(&err, key.second); } } } RuntimeContext; -} -} +} // namespace concretelang +} // namespace mlir extern "C" { -LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context); +LweKeyswitchKey_u64 * +get_keyswitch_key(mlir::concretelang::RuntimeContext *context); -LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context); +LweBootstrapKey_u64 * +get_bootstrap_key(mlir::concretelang::RuntimeContext *context); } #endif diff --git a/compiler/lib/Runtime/context.cpp b/compiler/lib/Runtime/context.cpp index 68b43d984..fefa3d4f5 100644 --- a/compiler/lib/Runtime/context.cpp +++ b/compiler/lib/Runtime/context.cpp @@ -11,11 +11,13 @@ #include #endif -LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context) { +LweKeyswitchKey_u64 * +get_keyswitch_key(mlir::concretelang::RuntimeContext *context) { return context->ksk; } -LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context) { +LweBootstrapKey_u64 * +get_bootstrap_key(mlir::concretelang::RuntimeContext *context) { int err; #ifdef CONCRETELANG_PARALLEL_EXECUTION_ENABLED std::string threadName = hpx::get_thread_name();