Skip to content

Commit

Permalink
Merge pull request viperproject#467 from viperproject/meilers_fronten…
Browse files Browse the repository at this point in the history
…d_api

Frontend API classes
  • Loading branch information
marcoeilers authored Aug 17, 2023
2 parents f10a924 + 6e04cc4 commit 896a5f0
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/main/scala/viper/carbon/Carbon.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package viper.carbon

import ch.qos.logback.classic.Logger
import viper.silver.frontend.{SilFrontend, SilFrontendConfig}
import viper.silver.frontend.{MinimalViperFrontendAPI, SilFrontend, SilFrontendConfig, ViperFrontendAPI}
import viper.silver.logger.ViperStdOutLogger
import viper.silver.reporter.{Reporter, StdIOReporter}
import viper.silver.verifier.{Verifier => SilVerifier}
Expand Down Expand Up @@ -57,6 +57,22 @@ class CarbonFrontend(override val reporter: Reporter,
}
}

/**
* Carbon "frontend" for use by actual Viper frontends.
* Performs consistency check and verification.
* See [[viper.silver.frontend.ViperFrontendAPI]] for usage information.
*/
class CarbonFrontendAPI(override val reporter: Reporter)
extends CarbonFrontend(reporter, ViperStdOutLogger("CarbonFrontend", "INFO").get) with ViperFrontendAPI

/**
* Carbon "frontend" for use by actual Viper frontends.
* Performs only verification (no consistency check).
* See [[viper.silver.frontend.ViperFrontendAPI]] for usage information.
*/
class MinimalCarbonFrontendAPI(override val reporter: Reporter)
extends CarbonFrontend(reporter, ViperStdOutLogger("CarbonFrontend", "INFO").get) with MinimalViperFrontendAPI

class CarbonConfig(args: Seq[String]) extends SilFrontendConfig(args, "Carbon") {
val boogieProverLog = opt[String]("proverLog",
descr = "Prover log file written by Boogie (default: none)",
Expand Down

0 comments on commit 896a5f0

Please sign in to comment.