Set DYLD_LIBRARY_PATH so the test runners can find and use the library that was just built. --- contrib/btorcheckmodel.py.orig 2021-05-27 19:47:11.000000000 -0500 +++ contrib/btorcheckmodel.py 2022-01-06 09:52:14.000000000 -0600 @@ -14,14 +14,15 @@ evalstring= "%0" + str(len) + "d" return evalstring % int(binary) -if len(sys.argv) != 4: - print("Usage: ./btorcheckmodel ") +if len(sys.argv) != 5: + print("Usage: ./btorcheckmodel ") sys.exit(2) pid = os.getpid(); foutname = "/tmp/btorcheckmodel" + str(pid) +".btor" # get absolute path to boolector binary boolector = sys.argv[3] +boolector_library_path = sys.argv[4] def cleanup(): @@ -206,7 +207,7 @@ fout.write(str(id) + " root 1 -" + str(lastid) + "\n") fout.close() -ret = os.popen (boolector + " -rwl 0 " + foutname) +ret = os.popen ("DYLD_LIBRARY_PATH=" + boolector_library_path + " " + boolector + " -rwl 0 " + foutname) result = ret.readline().strip() if result == "sat": print("Invalid") --- contrib/btorcheckmodelsmt2.sh.orig 2021-05-27 19:47:11.000000000 -0500 +++ contrib/btorcheckmodelsmt2.sh 2022-01-06 09:53:19.000000000 -0600 @@ -24,7 +24,7 @@ do case $1 in -h|--help) - echo -n "usage: $(basename $0) [