Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Source file opamBuiltinMccs.ml
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768# 1 "src/solver/opamBuiltinMccs.real.ml"(**************************************************************************)(* *)(* Copyright 2017-2018 OCamlPro *)(* *)(* All rights reserved. This file is distributed under the terms of the *)(* GNU Lesser General Public License version 2.1, with the special *)(* exception on linking described in the file LICENSE. *)(* *)(**************************************************************************)openOpamCudfSolverSigletnamesolver_backend="builtin-"^Mccs.get_solver_id~solver:solver_backend()letdefault_criteria={crit_default="-removed,\
-count[avoid-version,changed],\
-count[version-lag,request],\
-count[version-lag,changed],\
-count[missing-depexts,changed],\
-changed";crit_upgrade="-removed,\
-count[avoid-version,changed],\
-count[version-lag,solution],\
-count[missing-depexts,changed],\
-new";crit_fixup="-changed,\
-count[avoid-version:,true],\
-count[version-lag:,false],\
-count[missing-depexts:,true]";crit_best_effort_prefix=Some"+count[opam-query:,false],";}letcallsolver_backendext~criteria?timeout?tolerancecudf=letsolver=matchsolver_backend,extwith|`LP_,Someext->`LPext|_->solver_backendinmatchMccs.resolve_cudf~solver?mip_gap:tolerance~verbosity:(!OpamCoreConfig.r.debug_level-1)(* *)?timeoutcriteriacudfwith|None->raiseDose_common.CudfSolver.Unsat|Some(preamble,univ)->Somepreamble,univ|exceptionMccs.Timeout->raise(TimeoutNone)letof_backendbackend:(moduleOpamCudfSolverSig.S)=(modulestructletname=namebackendletext=refNoneletis_present()=matchbackend,!extwith|`LP"",None->false|`LPcmd,None|`LP_,Somecmd->OpamSystem.resolve_commandcmd<>None|_->trueletcommand_name=Noneletdefault_criteria=default_criterialetpreemptive_check=trueletcall=callbackend!extend)letall_backends=List.mapof_backendMccs.supported_backends