Skip to content

Commit

Permalink
Homebrew formulas for ebmc 5.2 and ebmc 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kroening committed Nov 5, 2024
1 parent a7bf36c commit b7aa438
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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.2"
revision: "d308e0934a635a3e16a332284d41c43eda7a4133"
version "5.2"
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
24 changes: 24 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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.3"
revision: "a7bf36c2fba8f7658932b5d83a0e1752668cd091"
version "5.3"
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

0 comments on commit b7aa438

Please sign in to comment.