Skip to content

Commit

Permalink
Fix duplicated interpretation in Checker
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeho committed Mar 5, 2024
1 parent 85ed61c commit c3c44ac
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/main/scala/fhetest/Phase/Check.scala
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ case object Check {
overflowBound = program.libConfig.firstModSize
if !validCheck || notOverflow(interpResult, overflowBound)
} yield {
val checkResult = apply(program, backends, encParams)
val encType = parsed._3
val interpResPair = BackendResultPair("CLEAR", interpResult)
val executeResPairs = backends.map(backend =>
BackendResultPair(
backend.toString,
execute(backend, encParams, parsed),
),
)
val checkResult = diffResults(interpResPair, executeResPairs, encType, encParams.plainMod)
if (toJson)
dumpResult(program, i, checkResult, sealVersion, openfheVersion)
(program, checkResult)
Expand Down

0 comments on commit c3c44ac

Please sign in to comment.