Skip to content

Commit

Permalink
implements Joao's CR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL committed Jan 21, 2025
1 parent c4472c1 commit 16b1937
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/viper/gobra/frontend/Config.scala
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ case class Config(
TypeBounds(Int = TypeBounds.IntWith64Bit, UInt = TypeBounds.UIntWith64Bit)
}

lazy val backendOrDefault: ViperBackend = backend.getOrElse(ConfigDefaults.DefaultBackend)
val backendOrDefault: ViperBackend = backend.getOrElse(ConfigDefaults.DefaultBackend)
}

object Config {
Expand Down Expand Up @@ -871,8 +871,8 @@ class ScallopGobraConfig(arguments: Seq[String], isInputOptional: Boolean = fals
conflicts(input, List(projectRoot, inclPackages, exclPackages))
conflicts(directory, List(inclPackages, exclPackages))

// must be lazy to guarantee that this value is computed only during the CLI options validation and not before.
lazy val isSiliconBasedBackend = backend.toOption.getOrElse(ConfigDefaults.DefaultBackend) match {
// must be a function or lazy to guarantee that this value is computed only during the CLI options validation and not before.
private def isSiliconBasedBackend = backend.toOption.getOrElse(ConfigDefaults.DefaultBackend) match {
case ViperBackends.SiliconBackend | _: ViperBackends.ViperServerWithSilicon => true
case _ => false
}
Expand Down

0 comments on commit 16b1937

Please sign in to comment.