You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.4 KiB

  1. FROM debian:buster-slim as yosys
  2. ## YOSYS ##
  3. # Get yosys dependencies
  4. RUN apt-get update -qq && \
  5. DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
  6. ca-certificates \
  7. gcc \
  8. make \
  9. bison \
  10. flex \
  11. libreadline-dev \
  12. gawk \
  13. tcl-dev \
  14. libffi-dev \
  15. graphviz \
  16. xdot \
  17. pkg-config \
  18. python3 \
  19. libboost-system-dev \
  20. libboost-python-dev \
  21. libboost-filesystem-dev \
  22. clang \
  23. git && \
  24. apt-get autoclean && apt-get clean && apt-get -y autoremove && \
  25. update-ca-certificates && \
  26. rm -rf /var/lib/apt/lists/* && \
  27. cd /root && \
  28. git clone https://github.com/YosysHQ/yosys.git yosys && \
  29. cd yosys && \
  30. git clone https://github.com/berkeley-abc/abc.git abc && \
  31. make -j$(nproc) PREFIX=/opt/yosys && \
  32. make install PREFIX=/opt/yosys
  33. # SymbiYosys, Solvers
  34. FROM yosys AS symbiyosys
  35. RUN apt-get update -qq && \
  36. DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
  37. autoconf \
  38. gperf \
  39. cmake \
  40. curl \
  41. libgmp-dev && \
  42. apt-get autoclean && apt-get clean && apt-get -y autoremove && \
  43. rm -rf /var/lib/apt/lists/* && \
  44. cd /root && \
  45. git clone https://github.com/YosysHQ/SymbiYosys.git symbiyosys && \
  46. cd symbiyosys && \
  47. make install PREFIX=/opt/symbiyosys && \
  48. cd .. && \
  49. git clone https://github.com/Z3Prover/z3.git z3 && \
  50. cd z3 && \
  51. python scripts/mk_make.py && \
  52. cd build && \
  53. make -j$(nproc) PREFIX=/opt/z3 && \
  54. make install PREFIX=/opt/z3 && \
  55. cd /root && \
  56. git clone https://github.com/SRI-CSL/yices2.git yices2 && \
  57. cd yices2 && \
  58. autoconf && \
  59. ./configure --prefix=/opt/yices2 && \
  60. make -j$(nproc) && \
  61. make install && \
  62. cd /opt && \
  63. mkdir cvc4 && mkdir cvc4/bin && \
  64. curl -L -o cvc4/bin/cvc4 https://github.com/CVC4/CVC4/releases/download/1.7/cvc4-1.7-x86_64-linux-opt && \
  65. chmod +x cvc4/bin/cvc4 && \
  66. cd /root && \
  67. git clone https://github.com/boolector/boolector && \
  68. cd boolector && \
  69. ./contrib/setup-btor2tools.sh && \
  70. ./contrib/setup-lingeling.sh && \
  71. ./configure.sh && \
  72. make -C build -j$(nproc) PREFIX=/opt/boolector && \
  73. cd /root/boolector && \
  74. mkdir /opt/boolector && \
  75. mkdir /opt/boolector/bin && \
  76. cp build/bin/boolector /opt/boolector/bin/ && \
  77. cp build/bin/btor* /opt/boolector/bin/ && \
  78. cp deps/btor2tools/bin/btorsim /opt/boolector/bin/