fix: Now the maximum precision is 16bits

This commit is contained in:
Quentin Bourgerie
2022-08-12 10:05:24 +02:00
parent 10f4769dae
commit d647bc735f
3 changed files with 6 additions and 8 deletions

View File

@@ -95,9 +95,7 @@ llvm::Expected<V0Parameter> getParameter(optimizer::Description &descr,
if (sol.p_error == 1.0) {
// The optimizer return a p_error = 1 if there is no solution
return StreamStringError()
<< "Could not determine V0 parameters for 2-norm of "
<< descr.constraint.norm2 << " and p of " << descr.constraint.p;
return StreamStringError() << "Cannot find crypto parameters";
}
V0Parameter params;

View File

@@ -1,7 +1,7 @@
// RUN: not concretecompiler --action=dump-llvm-ir %s 2>&1| FileCheck %s
// CHECK-LABEL: Could not determine V0 parameters
func.func @test(%arg0: !FHE.eint<9>, %arg1: tensor<512xi64>) -> !FHE.eint<9> {
%1 = "FHE.apply_lookup_table"(%arg0, %arg1): (!FHE.eint<9>, tensor<512xi64>) -> (!FHE.eint<9>)
return %1 : !FHE.eint<9>
// CHECK-LABEL: Cannot find crypto parameters
func.func @test(%arg0: !FHE.eint<17>, %arg1: tensor<131072xi64>) -> !FHE.eint<17> {
%1 = "FHE.apply_lookup_table"(%arg0, %arg1): (!FHE.eint<17>, tensor<131072xi64>) -> (!FHE.eint<17>)
return %1 : !FHE.eint<17>
}