⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rsat.sh

📁 最快速的可满足性分析工具软件
💻 SH
字号:
#!/bin/sh# Top-level script for RSat 2.01 if [ "x$1" = "x" ]; then  echo "USAGE: SatELiteGTI <input CNF>"  exit 1fiTMP=SatElite_temp #set this to the location of temporary filesSE=./SatElite           #set this to the executable of SatELiteRS=./rsat               #set this to the executable of RSatINPUT=$1;shift $SE $INPUT $TMP.cnf $TMP.vmap $TMP.elimX=$?if [ $X == 0 ]; then  #SatElite terminated correctly  $RS $TMP.cnf -q -r $TMP.result "$@"  X=$?  if [ $X == 20 ]; then    #RSat must not print out result!    echo "s UNSATISFIABLE"    rm -f $TMP.cnf $TMP.vmap $TMP.elim $TMP.result    exit 20    #Don't call SatElite for model extension.  elif [ $X != 10 ]; then    #timeout/unknown, nothing to do, just clean up and exit.    rm -f $TMP.cnf $TMP.vmap $TMP.elim $TMP.result    exit $X  fi     #SATISFIABLE, call SatElite for model extension  $SE +ext $INPUT $TMP.result $TMP.vmap $TMP.elim "$@"  X=$?elif [ $X == 11 ]; then  #SatElite died, RSat must take care of the rest  $RS $INPUT "$@" -s #but we must force rsat to print out result here!!!  X=$?elif [ $X == 12 ]; then  #SatElite prints out usage message  #There is nothing to do here.  X=0firm -f $TMP.cnf $TMP.vmap $TMP.elim $TMP.resultexit $X

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -