Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
Composer /
DependencyResolver /
Delete
Unzip
Name
Size
Permission
Date
Action
Operation
[ DIR ]
drwxr-xr-x
2022-03-20 10:35
Decisions.php
5.1
KB
-rw-r--r--
2016-11-03 17:43
DefaultPolicy.php
9.12
KB
-rw-r--r--
2016-11-03 17:43
PolicyInterface.php
746
B
-rw-r--r--
2016-11-03 17:43
Pool.php
13.88
KB
-rw-r--r--
2016-11-03 17:43
Problem.php
8.69
KB
-rw-r--r--
2016-11-03 17:43
Request.php
1.91
KB
-rw-r--r--
2016-11-03 17:43
Rule.php
10.21
KB
-rw-r--r--
2016-11-03 17:43
RuleSet.php
3.74
KB
-rw-r--r--
2016-11-03 17:43
RuleSetGenerator.php
12.42
KB
-rw-r--r--
2016-11-03 17:43
RuleSetIterator.php
2.28
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchChain.php
1.37
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchGraph.php
5.2
KB
-rw-r--r--
2016-11-03 17:43
RuleWatchNode.php
2.69
KB
-rw-r--r--
2016-11-03 17:43
Solver.php
26.02
KB
-rw-r--r--
2016-11-03 17:43
SolverBugException.php
757
B
-rw-r--r--
2016-11-03 17:43
SolverProblemsException.php
2.85
KB
-rw-r--r--
2016-11-03 17:43
Transaction.php
7.56
KB
-rw-r--r--
2016-11-03 17:43
Save
Rename
<?php /* * This file is part of Composer. * * (c) Nils Adermann <naderman@naderman.de> * Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\DependencyResolver; /** * Wrapper around a Rule which keeps track of the two literals it watches * * Used by RuleWatchGraph to store rules in two RuleWatchChains. * * @author Nils Adermann <naderman@naderman.de> */ class RuleWatchNode { public $watch1; public $watch2; protected $rule; /** * Creates a new node watching the first and second literals of the rule. * * @param Rule $rule The rule to wrap */ public function __construct($rule) { $this->rule = $rule; $literals = $rule->literals; $this->watch1 = count($literals) > 0 ? $literals[0] : 0; $this->watch2 = count($literals) > 1 ? $literals[1] : 0; } /** * Places the second watch on the rule's literal, decided at the highest level * * Useful for learned rules where the literal for the highest rule is most * likely to quickly lead to further decisions. * * @param Decisions $decisions The decisions made so far by the solver */ public function watch2OnHighest(Decisions $decisions) { $literals = $this->rule->literals; // if there are only 2 elements, both are being watched anyway if (count($literals) < 3) { return; } $watchLevel = 0; foreach ($literals as $literal) { $level = $decisions->decisionLevel($literal); if ($level > $watchLevel) { $this->watch2 = $literal; $watchLevel = $level; } } } /** * Returns the rule this node wraps * * @return Rule */ public function getRule() { return $this->rule; } /** * Given one watched literal, this method returns the other watched literal * * @param int $literal The watched literal that should not be returned * @return int A literal */ public function getOtherWatch($literal) { if ($this->watch1 == $literal) { return $this->watch2; } else { return $this->watch1; } } /** * Moves a watch from one literal to another * * @param int $from The previously watched literal * @param int $to The literal to be watched now */ public function moveWatch($from, $to) { if ($this->watch1 == $from) { $this->watch1 = $to; } else { $this->watch2 = $to; } } }