diff --git a/Formula/ebmc.rb@5.1 b/Formula/ebmc.rb@5.1 new file mode 100644 index 000000000..dda7dedf1 --- /dev/null +++ b/Formula/ebmc.rb@5.1 @@ -0,0 +1,24 @@ +class Ebmc < Formula + desc "Model Checker for SystemVerilog" + homepage "https://www.cprover.org/ebmc/" + url "https://github.com/diffblue/hw-cbmc.git", + tag: "ebmc-5.1" + revision: "3296ed5b6e40f91702273b5503bcbfc92487c2fc" + version "5.1" + license "BSD-3-Clause" + + uses_from_macos "flex" => :build + uses_from_macos "curl" => :build + depends_on "bison" => :build + + def install + system "make", "-C", "lib/cbmc/src", "minisat2-download" + system "make", "-C", "src" + system "mkdir", "-p", "#{prefix}/usr/bin" + system "cp", "src/ebmc/ebmc", "#{prefix}/usr/bin/" + end + + test do + system "make", "-C", "regression/ebmc", "test" + end +end