content: package com.sast.astbenchmark.case_language_maturity.accuracy.path_sensitive.loop_conditional_stmt.no_solver;
  
  import org.springframework.web.bind.annotation.PostMapping;
  import org.springframework.web.bind.annotation.RequestMapping;
  import org.springframework.web.bind.annotation.RequestParam;
  import org.springframework.web.bind.annotation.RestController;
  
  import java.io.IOException;
  import java.util.HashMap;
  import java.util.Map;
  
  // evaluation information start
  // real case = true
  // evaluation item = 准确度->路径敏感分析->条件语句、条件表达式和循环结构->无需通过对不同的条件进行求解，即能够区分不同的执行路径的状态
  // scene introduction = 常量分支条件
  // level = 3
  // bind_url = accuracy/path_sensitive/loop_conditional_stmt/no_solver/ConstantIfGuard_001_T
  // evaluation information end
  @RestController
  @RequestMapping("accuracy/path_sensitive/loop_conditional_stmt/no_solver")
  public class ConstantIfGuard_001_T {
      @PostMapping(value = "ConstantIfGuard_001_T")
      public Map<String, Object> testcase(@RequestParam String cmd) {
          Map<String, Object> modelMap = new HashMap<>();
          String exec = getCmdWithPathSensitive(cmd);
          try {
              Runtime.getRuntime().exec(exec);
              modelMap.put("status", "success");
          } catch (IOException e) {
              modelMap.put("status", "error");
          }
          return modelMap;
      }
  
      private String getCmdWithPathSensitive(String cmd) {
          int x = 1;
          if (x > 0) {
              return cmd;
          } else {
              return "ls";
          }
      }
  }
  