The source code and dockerfile for the GSW2024 AI Lab.
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.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

80 lines
1.3 KiB

4 weeks ago
  1. #! /bin/sh
  2. #
  3. # BDD check:
  4. # Load BDDs
  5. # Make some operations
  6. # Store BDDs
  7. #
  8. EXE=@EXEEXT@
  9. srcdir=@top_srcdir@
  10. where=${srcdir}/dddmp/exp
  11. dest=.
  12. exitval=0
  13. echo "---------------------------------------------------------------------------"
  14. echo "----------------------- TESTING basic Load/Store ... ----------------------"
  15. echo "---------------------------------------------------------------------------"
  16. ../testdddmp$EXE << END
  17. mi
  18. 50
  19. hlb
  20. ${where}/0or1.bdd
  21. bl
  22. ${where}/0.bdd
  23. 0
  24. bl
  25. ${where}/1.bdd
  26. 1
  27. op
  28. or
  29. 0
  30. 1
  31. 2
  32. bs
  33. ${dest}/0or1.bdd.tmp
  34. 2
  35. bl
  36. ${where}/2.bdd
  37. 2
  38. bl
  39. ${where}/3.bdd
  40. 3
  41. op
  42. and
  43. 2
  44. 3
  45. 4
  46. bs
  47. ${dest}/2and3.bdd.tmp
  48. 4
  49. hlb
  50. ${where}/4xor5.bdd
  51. bl
  52. ${where}/4.bdd
  53. 4
  54. bl
  55. ${where}/5.bdd
  56. 5
  57. op
  58. xor
  59. 4
  60. 5
  61. 6
  62. bs
  63. ${dest}/4xor5.bdd.tmp
  64. 6
  65. mq
  66. quit
  67. END
  68. test $? != 1 && exitval=1
  69. echo "----------------------------- ... RESULTS ... -----------------------------"
  70. diff --strip-trailing-cr --brief ${where}/0or1.bdd ${dest}/0or1.bdd.tmp
  71. test $? != 0 && exitval=1
  72. diff --strip-trailing-cr --brief ${where}/2and3.bdd ${dest}/2and3.bdd.tmp
  73. test $? != 0 && exitval=1
  74. diff --strip-trailing-cr --brief ${where}/4xor5.bdd ${dest}/4xor5.bdd.tmp
  75. test $? != 0 && exitval=1
  76. echo "-------------------------------- ... END ----------------------------------"
  77. rm -f ${dest}/0or1.bdd.tmp ${dest}/2and3.bdd.tmp ${dest}/4xor5.bdd.tmp
  78. exit $exitval