summaryrefslogtreecommitdiffstats
path: root/org.eclipse.cdt.codan.extension/src/org/eclipse
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.cdt.codan.extension/src/org/eclipse')
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESSimplifier.java32
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESTruthTable.java7
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ExecutionState.java8
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/IPropertyFSM.java23
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/PropertySimulator.java361
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/QuineMcCluskeySimplifier.java15
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/SymbolicState.java11
-rw-r--r--org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/CloseOpenedFilesChecker.java344
8 files changed, 477 insertions, 324 deletions
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESSimplifier.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESSimplifier.java
index 3b62b87..9e3ed5f 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESSimplifier.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESSimplifier.java
@@ -10,17 +10,21 @@
*******************************************************************************/
package org.eclipse.cdt.codan.extension;
+import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
+import java.util.Map;
import java.util.Set;
import org.eclipse.cdt.codan.extension.Minterm.Value;
import org.eclipse.cdt.core.dom.ast.IVariable;
public class ESSimplifier extends QuineMcCluskeySimplifier<IVariable> {
+ private Map<ExecutionState, Minterm<IVariable>> esMapping;
- public ESSimplifier(ITruthTable<IVariable> tt) {
+ public ESSimplifier(ESTruthTable tt) {
super(tt);
+ esMapping = new HashMap<ExecutionState, Minterm<IVariable>>();
}
public Set<ExecutionState> getExecutionStateCover() {
@@ -28,7 +32,7 @@ public class ESSimplifier extends QuineMcCluskeySimplifier<IVariable> {
List<Minterm<IVariable>> implicantCover = getImplicantCover();
for (Minterm<IVariable> term : implicantCover) {
ExecutionState es = new ExecutionState();
- for (IVariable var : variables) {
+ for (IVariable var : truthTable.getVariables()) {
Value val = term.getValue(var);
if (val == Value.TRUE) {
es.addClause(new ExecutionStateClause(var, true));
@@ -38,6 +42,24 @@ public class ESSimplifier extends QuineMcCluskeySimplifier<IVariable> {
}
// Don't care about Don't cares
}
+ // Add truth assignments from implied minterms
+ List<Minterm<IVariable>> implied = getImplications(term);
+ for (Minterm<IVariable> minterm : implied) {
+ ExecutionState e = ((ESTruthTable) truthTable).getExecutionState(minterm);
+ es.getTruthAssignments().putAll(e.getTruthAssignments());
+ }
+ ret.add(es);
+ esMapping.put(es, term);
+ }
+ return ret;
+ }
+
+ public Set<ExecutionState> getImplications(ExecutionState primeImplicant) {
+ Set<ExecutionState> ret = new HashSet<ExecutionState>();
+ Minterm<IVariable> piTerm = esMapping.get(primeImplicant);
+ List<Minterm<IVariable>> impls = getImplications(piTerm);
+ for (Minterm<IVariable> term : impls) {
+ ExecutionState es = ((ESTruthTable) truthTable).getExecutionState(term);
ret.add(es);
}
return ret;
@@ -46,13 +68,13 @@ public class ESSimplifier extends QuineMcCluskeySimplifier<IVariable> {
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
- for (IVariable var : variables) {
+ for (IVariable var : truthTable.getVariables()) {
buf.append(var.getName());
buf.append(" ");
}
buf.append("\n");
- for (Minterm<IVariable> term : minterms) {
- for (IVariable var : variables) {
+ for (Minterm<IVariable> term : truthTable.getMinterms()) {
+ for (IVariable var : truthTable.getVariables()) {
switch (term.getValue(var)) {
case TRUE:
buf.append("1");
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESTruthTable.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESTruthTable.java
index 94e7574..1835015 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESTruthTable.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ESTruthTable.java
@@ -22,11 +22,13 @@ import org.eclipse.cdt.core.dom.ast.IVariable;
public class ESTruthTable implements ITruthTable<IVariable> {
private List<Minterm<IVariable>> minterms;
+ private Map<Minterm<IVariable>, ExecutionState> esMapping;
private List<IVariable> variables;
public ESTruthTable(Set<ExecutionState> es) {
minterms = new ArrayList<Minterm<IVariable>>();
variables = new ArrayList<IVariable>();
+ esMapping = new HashMap<Minterm<IVariable>, ExecutionState>();
for (ExecutionState e : es) {
for (ExecutionStateClause c : e.getClauses()) {
@@ -54,6 +56,7 @@ public class ESTruthTable implements ITruthTable<IVariable> {
for (ExecutionStateClause c : e.getClauses()) {
term.setValue(c.getVariable(), c.isTrue() ? Value.TRUE : Value.FALSE);
}
+ esMapping.put(term, e);
}
}
@@ -65,6 +68,10 @@ public class ESTruthTable implements ITruthTable<IVariable> {
return variables;
}
+ public ExecutionState getExecutionState(Minterm<IVariable> minterm) {
+ return esMapping.get(minterm);
+ }
+
@Override
public String toString() {
StringBuffer buf = new StringBuffer();
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ExecutionState.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ExecutionState.java
index c19970e..fd8032a 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ExecutionState.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/ExecutionState.java
@@ -19,7 +19,7 @@ import org.eclipse.cdt.core.dom.ast.IVariable;
public class ExecutionState {
private Set<ExecutionStateClause> clauses;
- private Map<IVariable, Boolean> truthAssignments;
+ private Map<IVariable, Boolean> truthAssignments; // FIXME this should be more robust, use SSA
private boolean top;
private boolean bottom;
@@ -83,12 +83,6 @@ public class ExecutionState {
}
}
- public static Set<ExecutionState> join(Set<ExecutionState> es) {
- ESTruthTable tt = new ESTruthTable(es);
- ESSimplifier simp = new ESSimplifier(tt);
- return simp.getExecutionStateCover();
- }
-
public Set<ExecutionStateClause> getClauses() {
return clauses;
}
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/IPropertyFSM.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/IPropertyFSM.java
new file mode 100644
index 0000000..a8ace1e
--- /dev/null
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/IPropertyFSM.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Elliott Baron
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Elliott Baron - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.codan.extension;
+
+import java.util.Set;
+
+public interface IPropertyFSM {
+
+ public Set<PropertyState> getPropertyStates();
+
+ public PropertyState getUninitState();
+
+ public PropertyState getErrorState();
+
+}
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/PropertySimulator.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/PropertySimulator.java
new file mode 100644
index 0000000..ffd3ada
--- /dev/null
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/PropertySimulator.java
@@ -0,0 +1,361 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Elliott Baron
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Elliott Baron - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.codan.extension;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.Map;
+import java.util.Queue;
+import java.util.Set;
+
+import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression;
+import org.eclipse.cdt.core.dom.ast.IASTExpression;
+import org.eclipse.cdt.core.dom.ast.IASTIdExpression;
+import org.eclipse.cdt.core.dom.ast.IASTLiteralExpression;
+import org.eclipse.cdt.core.dom.ast.IASTName;
+import org.eclipse.cdt.core.dom.ast.IASTNode;
+import org.eclipse.cdt.core.dom.ast.IASTUnaryExpression;
+import org.eclipse.cdt.core.dom.ast.IBinding;
+import org.eclipse.cdt.core.dom.ast.IVariable;
+import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IBlock;
+import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IControlFlowEdge;
+import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IControlFlowGraph;
+
+public class PropertySimulator {
+ // Property simulation state info for CFG's edges
+ private Map<IControlFlowEdge, Set<SymbolicState>> edgeInfo;
+ private Queue<IBlock> worklist;
+ private IControlFlowGraph cfg;
+ private IPropertyFSM fsm;
+
+ public PropertySimulator(IControlFlowGraph cfg, IPropertyFSM fsm) {
+ this.cfg = cfg;
+ this.fsm = fsm;
+ worklist = new LinkedList<IBlock>();
+ edgeInfo = new HashMap<IControlFlowEdge, Set<SymbolicState>>();
+ solve();
+ }
+
+ private void solve() {
+ for (IControlFlowEdge edge : cfg.getEdges()) {
+ // Initialize edgeInfo for each edge
+ Set<SymbolicState> set = new HashSet<SymbolicState>();
+ edgeInfo.put(edge, set);
+ }
+
+ // Create edgeInfo for entry edge
+ IControlFlowEdge entryEdge = cfg.getEntry().getOutEdges()[0];
+ Set<SymbolicState> symStates = edgeInfo.get(entryEdge);
+ Set<PropertyState> propStates = new HashSet<PropertyState>();
+ propStates.add(fsm.getUninitState());
+ symStates.add(new SymbolicState(propStates, new ExecutionState()));
+
+ worklist.add(entryEdge.getTo());
+ // XXX Debug
+ printStates(entryEdge, symStates);
+
+ while (!worklist.isEmpty()) {
+ IBlock blk = worklist.remove();
+ if (isMerge(blk)) {
+ // Apply flow function for a merge block
+ Set<SymbolicState> newStates = flowMerge(blk, edgeInfo.get(blk.getInEdges()[0]), edgeInfo.get(blk.getInEdges()[1]));
+ add(blk.getOutEdges()[0], newStates);
+
+ // XXX Debug
+ System.out.println("MRG: " + printStates(blk.getOutEdges()[0], newStates));
+ }
+ else if (isBranch(blk)) {
+ // Apply flow function for a branch block
+ Set<SymbolicState> oldStates = edgeInfo.get(blk.getInEdges()[0]);
+ Set<SymbolicState> newStatesTrue = flowBranch(blk, oldStates, true);
+ Set<SymbolicState> newStatesFalse = flowBranch(blk, oldStates, false);
+
+ // Assumes 0th out-edge is true branch, 1st out-edge is false branch
+ add(blk.getOutEdges()[0], newStatesTrue);
+ add(blk.getOutEdges()[1], newStatesFalse);
+
+ // XXX Debug
+ System.out.println("BR (T): " + printStates(blk.getOutEdges()[0], newStatesTrue));
+ System.out.println("BR (F): " + printStates(blk.getOutEdges()[1], newStatesFalse));
+ }
+ else {
+ // Apply flow function for a normal block
+ Set<SymbolicState> newStates = flowOther(blk, edgeInfo.get(blk.getInEdges()[0]));
+
+ // Don't process the null exit block
+ if (!blk.equals(cfg.getExit())) {
+ add(blk.getOutEdges()[0], newStates);
+ // XXX Debug
+ System.out.println("OTH: " + printStates(blk.getOutEdges()[0], newStates));
+ }
+ }
+ }
+ }
+
+ public Set<SymbolicState> getEndStates() {
+ IControlFlowEdge exitEdge = cfg.getExit().getInEdges()[0];
+ return edgeInfo.get(exitEdge);
+ }
+
+ private String printStates(IControlFlowEdge edge, Set<SymbolicState> states) {
+ StringBuffer buf = new StringBuffer();
+ IASTNode from = edge.getFrom().getContent();
+ IASTNode to = edge.getTo().getContent();
+ buf.append("{");
+ buf.append(from == null ? from : from.getRawSignature());
+ buf.append(" -> ");
+ buf.append(to == null ? to : to.getRawSignature());
+ buf.append("} = ");
+ buf.append(states);
+ return buf.toString();
+ }
+
+ private Set<SymbolicState> flowMerge(IBlock blk, Set<SymbolicState> ss1,
+ Set<SymbolicState> ss2) {
+ Set<SymbolicState> ret = new HashSet<SymbolicState>();
+ ret.addAll(ss1);
+ ret.addAll(ss2);
+ return group(ret);
+ }
+
+ private Set<SymbolicState> flowBranch(IBlock blk, Set<SymbolicState> ss, boolean value) {
+ Set<SymbolicState> ret = new HashSet<SymbolicState>();
+ for (SymbolicState s : ss) {
+ SymbolicState s0 = transferBranch(blk, s, value);
+ if (!s0.getExecutionState().isBottom()) {
+ ret.add(s0);
+ }
+ }
+ return group(ret);
+ }
+
+ private Set<SymbolicState> flowOther(IBlock blk, Set<SymbolicState> ss) {
+ Set<SymbolicState> ret = new HashSet<SymbolicState>();
+ for (SymbolicState s : ss) {
+ SymbolicState s0 = transferOther(blk, s);
+ ret.add(s0);
+ }
+ return group(ret);
+ }
+
+ private Set<SymbolicState> group(Set<SymbolicState> ss) {
+ return groupPropSim(ss);
+ }
+
+ private Set<SymbolicState> groupPSA(Set<SymbolicState> ss) {
+ return ss;
+ }
+
+ private Set<SymbolicState> groupPropSim(Set<SymbolicState> ss) {
+ Set<SymbolicState> ret = new HashSet<SymbolicState>();
+
+ // Group SymbolicStates by PropertyState
+ Map<PropertyState, Set<SymbolicState>> statesPerProperty = new HashMap<PropertyState, Set<SymbolicState>>();
+ for (SymbolicState s : ss) {
+ for (PropertyState ps : s.getPropertyStates()) {
+ if (!statesPerProperty.containsKey(ps)) {
+ statesPerProperty.put(ps, new HashSet<SymbolicState>());
+ }
+ Set<SymbolicState> states = statesPerProperty.get(ps);
+ states.add(s);
+ }
+ }
+
+ // Iterate through result and create SymbolicStates per PropertyState with ExecutionStates joined
+ for (PropertyState p : statesPerProperty.keySet()) {
+ Set<PropertyState> ps = new HashSet<PropertyState>();
+ ps.add(p);
+ Set<SymbolicState> ssForProperty = statesPerProperty.get(p);
+ Set<ExecutionState> esForProperty = new HashSet<ExecutionState>();
+ for (SymbolicState s : ssForProperty) {
+ esForProperty.add(s.getExecutionState());
+ }
+ if (ssForProperty.size() > 1) {
+ // Join execution states in this set
+ ESTruthTable tt = new ESTruthTable(esForProperty);
+ ESSimplifier simp = new ESSimplifier(tt);
+ esForProperty = simp.getExecutionStateCover();
+
+ for (ExecutionState e : esForProperty) {
+ SymbolicState newState = new SymbolicState(ps, e);
+ // Join corresponding error conditions
+ if (p.equals(fsm.getErrorState())) {
+ // Get original ExecutionStates implied by this prime implicant
+ Set<ExecutionState> implied = simp.getImplications(e);
+ // Find the appropriate SymbolicState
+ for (ExecutionState orig : implied) {
+ SymbolicState s = findSymbolicState(ssForProperty, orig);
+ // Add its error cause to the joined state
+ newState.getErrorCauses().addAll(s.getErrorCauses());
+ }
+ }
+ ret.add(newState);
+ }
+ }
+ else {
+ // Nothing to do
+ SymbolicState s = ssForProperty.iterator().next();
+ ret.add(s);
+ }
+
+ }
+
+ return ret;
+ }
+
+ private SymbolicState findSymbolicState(Set<SymbolicState> ss, ExecutionState es) {
+ for (SymbolicState s : ss) {
+ if (s.getExecutionState().equals(es)) {
+ return s;
+ }
+ }
+ return null;
+ }
+
+ private SymbolicState transferBranch(IBlock blk, SymbolicState s, boolean value) {
+ IASTNode node = blk.getContent();
+
+ SymbolicState ret = s.copy();
+ if (node != null) {
+ // Modify execution state according to branch condition
+ ExecutionStateClause clause = null;
+ // *N.B.* content for condition IBlock is condition expression itself
+ if (node instanceof IASTBinaryExpression) {
+ // FIXME compound conditionals
+ IASTBinaryExpression binExpr = (IASTBinaryExpression) node;
+ int op = binExpr.getOperator();
+
+ // FIXME other ops
+ // Check operator is an equality operator
+ if (op == IASTBinaryExpression.op_equals) { // if (x == 0)
+ IASTExpression o1 = binExpr.getOperand1();
+ if (o1 instanceof IASTIdExpression) {
+ IASTName name = ((IASTIdExpression) o1).getName();
+ clause = parseConditional(clause, name, binExpr.getOperand2(), value);
+ }
+ }
+ else if (op == IASTBinaryExpression.op_notequals) { // if (x != 0)
+ IASTExpression o1 = binExpr.getOperand1();
+ if (o1 instanceof IASTIdExpression) {
+ IASTName name = ((IASTIdExpression) o1).getName();
+ clause = parseConditional(clause, name, binExpr.getOperand2(), !value); // Negation
+ }
+ }
+ }
+ else if (node instanceof IASTUnaryExpression) { // if (!x)
+ IASTUnaryExpression uExpr = (IASTUnaryExpression) node;
+ int op = uExpr.getOperator();
+
+ // Check operator is a negation operator
+ if (op == IASTUnaryExpression.op_not) {
+ IASTExpression operand = uExpr.getOperand();
+ if (operand instanceof IASTIdExpression) {
+ IASTName name = ((IASTIdExpression) operand).getName();
+ clause = parseConditional(clause, name, !value); // Negation
+ }
+ }
+ }
+ else if (node instanceof IASTIdExpression) { // if (x)
+ IASTName name = ((IASTIdExpression) node).getName();
+ clause = parseConditional(clause, name, value);
+ }
+
+ if (clause != null) {
+ ret.getExecutionState().addClause(clause);
+ // TODO Theorem Prover goes here! / Determine if branch is feasible
+ ret.getExecutionState().bindTruthAssignments();
+ }
+ else {
+ // FIXME Handle unresolvable case
+ }
+ }
+
+ return ret;
+ }
+
+ private SymbolicState transferOther(IBlock blk, SymbolicState s) {
+ IASTNode node = blk.getContent();
+
+ if (node != null) {
+ // Process property state transition
+ Set<PropertyState> oldStates = s.getPropertyStates();
+ Set<PropertyState> newStates = new HashSet<PropertyState>();
+ for (PropertyState state : oldStates) {
+ PropertyState dest = state.transition(node);
+ // If we transition to from non-error to error, store the node that caused it
+ if (!state.equals(fsm.getErrorState()) && dest.equals(fsm.getErrorState())) {
+ s.getErrorCauses().add(node);
+ }
+ newStates.add(dest);
+ }
+ s.setPropertyStates(newStates);
+
+ // Modify execution state according to variable assignments
+ node.accept(new VariableAssignmentVisitor(s.getExecutionState()));
+ }
+ return s;
+ }
+
+ private void add(IControlFlowEdge edge,
+ Set<SymbolicState> ss) {
+ if (!edgeInfo.get(edge).equals(ss)) {
+ edgeInfo.put(edge, ss);
+ worklist.add(edge.getTo());
+ }
+ }
+
+ private boolean isBranch(IBlock blk) {
+ return blk.getOutEdges().length > 1;
+ }
+
+ private boolean isMerge(IBlock blk) {
+ return blk.getInEdges().length > 1;
+ }
+
+ // FIXME REFACTOR
+ private ExecutionStateClause parseConditional(ExecutionStateClause clause, IASTName name, IASTExpression valueExpr, boolean branchTruth) {
+ IBinding binding = name.resolveBinding();
+ if (binding instanceof IVariable) {
+ IVariable var = (IVariable) binding;
+ Boolean truth = getTruthValue(valueExpr);
+ if (truth != null) {
+ clause = new ExecutionStateClause(var, truth == branchTruth);
+ }
+ }
+ return clause;
+ }
+
+ private ExecutionStateClause parseConditional(ExecutionStateClause clause, IASTName name, boolean branchTruth) {
+ IBinding binding = name.resolveBinding();
+ if (binding instanceof IVariable) {
+ IVariable var = (IVariable) binding;
+ clause = new ExecutionStateClause(var, branchTruth);
+ }
+ return clause;
+ }
+
+ private Boolean getTruthValue(IASTExpression valueExpr) {
+ Boolean result = null;
+ // Handle assignment from literals
+ if (valueExpr instanceof IASTLiteralExpression) {
+ int kind = ((IASTLiteralExpression) valueExpr).getKind();
+ String value = String.valueOf(((IASTLiteralExpression) valueExpr).getValue());
+ switch (kind) {
+ case IASTLiteralExpression.lk_integer_constant:
+ // 0 = False, > 0 = True
+ result = !value.equals("0");
+ }
+ }
+ // TODO other variable assignments
+ return result;
+ }
+}
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/QuineMcCluskeySimplifier.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/QuineMcCluskeySimplifier.java
index d363028..45c41ab 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/QuineMcCluskeySimplifier.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/QuineMcCluskeySimplifier.java
@@ -18,13 +18,13 @@ import java.util.Map;
import java.util.Queue;
public class QuineMcCluskeySimplifier<E> {
- protected List<Minterm<E>> minterms;
- protected List<E> variables;
+ protected ITruthTable<E> truthTable;
protected List<Minterm<E>> implicantCover;
+ private Map<Minterm<E>, List<Minterm<E>>> implications;
public QuineMcCluskeySimplifier(ITruthTable<E> tt) {
- minterms = tt.getMinterms();
- variables = tt.getVariables();
+ this.truthTable = tt;
+ List<Minterm<E>> minterms = tt.getMinterms();
List<Minterm<E>> inputMinterms = new ArrayList<Minterm<E>>(minterms);
List<Minterm<E>> primeImplicants = new ArrayList<Minterm<E>>(minterms);
@@ -56,8 +56,7 @@ public class QuineMcCluskeySimplifier<E> {
}
}
- // Determine which prime implicants cover which original minterms
- Map<Minterm<E>, List<Minterm<E>>> implications = new HashMap<Minterm<E>, List<Minterm<E>>>();
+ implications = new HashMap<Minterm<E>, List<Minterm<E>>>();
for (Minterm<E> implicant : primeImplicants) {
implications.put(implicant, new ArrayList<Minterm<E>>());
for (Minterm<E> minterm : inputMinterms) {
@@ -110,5 +109,9 @@ public class QuineMcCluskeySimplifier<E> {
public List<Minterm<E>> getImplicantCover() {
return implicantCover;
}
+
+ public List<Minterm<E>> getImplications(Minterm<E> primeImplicant) {
+ return implications.get(primeImplicant);
+ }
}
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/SymbolicState.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/SymbolicState.java
index 19dd6b3..76db5ea 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/SymbolicState.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/SymbolicState.java
@@ -16,15 +16,18 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
+import org.eclipse.cdt.core.dom.ast.IASTNode;
import org.eclipse.cdt.core.dom.ast.IVariable;
public class SymbolicState {
private Set<PropertyState> propertyStates;
private ExecutionState executionState;
+ private Set<IASTNode> errorCauses;
public SymbolicState(Set<PropertyState> propertyStates, ExecutionState executionState) {
this.propertyStates = propertyStates;
this.executionState = executionState;
+ errorCauses = new HashSet<IASTNode>();
}
public ExecutionState getExecutionState() {
@@ -49,7 +52,13 @@ public class SymbolicState {
Map<IVariable, Boolean> truthAssignments = new HashMap<IVariable, Boolean>(executionState.getTruthAssignments());
es.setTruthAssignments(truthAssignments);
- return new SymbolicState(ps, es);
+ SymbolicState ret = new SymbolicState(ps, es);
+ ret.errorCauses = new HashSet<IASTNode>(errorCauses);
+ return ret;
+ }
+
+ public Set<IASTNode> getErrorCauses() {
+ return errorCauses;
}
@Override
diff --git a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/CloseOpenedFilesChecker.java b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/CloseOpenedFilesChecker.java
index 491a481..d60889a 100644
--- a/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/CloseOpenedFilesChecker.java
+++ b/org.eclipse.cdt.codan.extension/src/org/eclipse/cdt/codan/extension/checkers/CloseOpenedFilesChecker.java
@@ -13,40 +13,26 @@ package org.eclipse.cdt.codan.extension.checkers;
import java.io.File;
import java.net.URI;
import java.text.MessageFormat;
-import java.util.HashMap;
import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.Map;
-import java.util.Queue;
import java.util.Set;
import org.eclipse.cdt.codan.core.model.AbstractIndexAstChecker;
import org.eclipse.cdt.codan.extension.Activator;
import org.eclipse.cdt.codan.extension.ExecutionState;
-import org.eclipse.cdt.codan.extension.ExecutionStateClause;
+import org.eclipse.cdt.codan.extension.IPropertyFSM;
+import org.eclipse.cdt.codan.extension.PropertySimulator;
import org.eclipse.cdt.codan.extension.PropertyState;
import org.eclipse.cdt.codan.extension.SymbolicState;
-import org.eclipse.cdt.codan.extension.VariableAssignmentVisitor;
-import org.eclipse.cdt.core.dom.ast.IASTBinaryExpression;
-import org.eclipse.cdt.core.dom.ast.IASTExpression;
-import org.eclipse.cdt.core.dom.ast.IASTIdExpression;
-import org.eclipse.cdt.core.dom.ast.IASTLiteralExpression;
-import org.eclipse.cdt.core.dom.ast.IASTName;
import org.eclipse.cdt.core.dom.ast.IASTNode;
import org.eclipse.cdt.core.dom.ast.IASTStatement;
import org.eclipse.cdt.core.dom.ast.IASTTranslationUnit;
-import org.eclipse.cdt.core.dom.ast.IASTUnaryExpression;
-import org.eclipse.cdt.core.dom.ast.IBinding;
-import org.eclipse.cdt.core.dom.ast.IVariable;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.GraphCreator;
-import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IBlock;
import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.ICallGraph;
import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.ICallGraphNode;
-import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IControlFlowEdge;
import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.IControlFlowGraph;
import org.eclipse.ptp.pldt.mpi.analysis.cdt.graphs.impl.ControlFlowGraph;
@@ -55,23 +41,16 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
private static final String OPEN = "open";
private static final String CLOSE = "close";
- private Queue<IBlock> worklist;
- // Property simulation state info for CFG's edges
- private Map<IControlFlowEdge, Set<SymbolicState>> edgeInfo;
+ private IPropertyFSM fsm;
// Property FSM states
private PropertyState uninit;
private PropertyState error;
private PropertyState opened;
-
- // Most recent node to cause transition to error state
- private IASTNode errorNode;
public CloseOpenedFilesChecker() {
- worklist = new LinkedList<IBlock>();
- edgeInfo = new HashMap<IControlFlowEdge, Set<SymbolicState>>();
- initFSM();
+ fsm = initFSM();
}
public void processAst(IASTTranslationUnit ast) {
@@ -96,248 +75,22 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
cfg.buildCFG();
// Search for error states using property simulation algorithm
- solve(cfg);
+ PropertySimulator sim = new PropertySimulator(cfg, fsm);
// Check if the exit edge of the CFG contains an error state
- IControlFlowEdge exitEdge = cfg.getExit().getInEdges()[0];
- for (SymbolicState s : edgeInfo.get(exitEdge)) {
+ for (SymbolicState s : sim.getEndStates()) {
if (s.getPropertyStates().contains(error)) {
- // Report problem
- reportProblem(errorNode, s.getExecutionState());
+ // Report problems
+ for (IASTNode errorNode : s.getErrorCauses()) {
+ reportProblem(errorNode, s.getExecutionState());
+ }
}
}
}
}
}
-
-
- private void solve(IControlFlowGraph cfg) {
- for (IControlFlowEdge edge : cfg.getEdges()) {
- // Initialize edgeInfo for each edge
- Set<SymbolicState> set = new HashSet<SymbolicState>();
- edgeInfo.put(edge, set);
- }
-
- // Create edgeInfo for entry edge
- IControlFlowEdge entryEdge = cfg.getEntry().getOutEdges()[0];
- Set<SymbolicState> symStates = edgeInfo.get(entryEdge);
- Set<PropertyState> propStates = new HashSet<PropertyState>();
- propStates.add(uninit);
- symStates.add(new SymbolicState(propStates, new ExecutionState()));
-
- worklist.add(entryEdge.getTo());
- // XXX Debug
- printStates(entryEdge, symStates);
-
- while (!worklist.isEmpty()) {
- IBlock blk = worklist.remove();
- if (isMerge(blk)) {
- // Apply flow function for a merge block
- Set<SymbolicState> newStates = flowMerge(blk, edgeInfo.get(blk.getInEdges()[0]), edgeInfo.get(blk.getInEdges()[1]));
- add(blk.getOutEdges()[0], newStates);
-
- // XXX Debug
- System.out.println("MRG: " + printStates(blk.getOutEdges()[0], newStates));
- }
- else if (isBranch(blk)) {
- // Apply flow function for a branch block
- Set<SymbolicState> oldStates = edgeInfo.get(blk.getInEdges()[0]);
- Set<SymbolicState> newStatesTrue = flowBranch(blk, oldStates, true);
- Set<SymbolicState> newStatesFalse = flowBranch(blk, oldStates, false);
-
- // Assumes 0th out-edge is true branch, 1st out-edge is false branch
- add(blk.getOutEdges()[0], newStatesTrue);
- add(blk.getOutEdges()[1], newStatesFalse);
-
- // XXX Debug
- System.out.println("BR (T): " + printStates(blk.getOutEdges()[0], newStatesTrue));
- System.out.println("BR (F): " + printStates(blk.getOutEdges()[1], newStatesFalse));
- }
- else {
- // Apply flow function for a normal block
- Set<SymbolicState> newStates = flowOther(blk, edgeInfo.get(blk.getInEdges()[0]));
-
- // Don't process the null exit block
- if (!blk.equals(cfg.getExit())) {
- add(blk.getOutEdges()[0], newStates);
- // XXX Debug
- System.out.println("OTH: " + printStates(blk.getOutEdges()[0], newStates));
- }
- }
- }
- }
-
-
- private String printStates(IControlFlowEdge edge, Set<SymbolicState> states) {
- StringBuffer buf = new StringBuffer();
- IASTNode from = edge.getFrom().getContent();
- IASTNode to = edge.getTo().getContent();
- buf.append("{");
- buf.append(from == null ? from : from.getRawSignature());
- buf.append(" -> ");
- buf.append(to == null ? to : to.getRawSignature());
- buf.append("} = ");
- buf.append(states);
- return buf.toString();
- }
-
- private Set<SymbolicState> flowMerge(IBlock blk, Set<SymbolicState> ss1,
- Set<SymbolicState> ss2) {
- Set<SymbolicState> ret = new HashSet<SymbolicState>();
- ret.addAll(ss1);
- ret.addAll(ss2);
- return group(ret);
- }
-
- private Set<SymbolicState> flowBranch(IBlock blk, Set<SymbolicState> ss, boolean value) {
- Set<SymbolicState> ret = new HashSet<SymbolicState>();
- for (SymbolicState s : ss) {
- SymbolicState s0 = transferBranch(blk, s, value);
- if (!s0.getExecutionState().isBottom()) {
- ret.add(s0);
- }
- }
- return group(ret);
- }
-
- private Set<SymbolicState> flowOther(IBlock blk, Set<SymbolicState> ss) {
- Set<SymbolicState> ret = new HashSet<SymbolicState>();
- for (SymbolicState s : ss) {
- SymbolicState s0 = transferOther(blk, s);
- ret.add(s0);
- }
- return group(ret);
- }
-
- private Set<SymbolicState> group(Set<SymbolicState> ss) {
- return groupPropSim(ss);
- }
-
- private Set<SymbolicState> groupPSA(Set<SymbolicState> ss) {
- return ss;
- }
-
- private Set<SymbolicState> groupPropSim(Set<SymbolicState> ss) {
- Set<SymbolicState> ret = new HashSet<SymbolicState>();
-
- // Group SymbolicStates by PropertyState
- Map<PropertyState, Set<ExecutionState>> statesPerProperty = new HashMap<PropertyState, Set<ExecutionState>>();
- for (SymbolicState s : ss) {
- for (PropertyState ps : s.getPropertyStates()) {
- if (!statesPerProperty.containsKey(ps)) {
- statesPerProperty.put(ps, new HashSet<ExecutionState>());
- }
- Set<ExecutionState> states = statesPerProperty.get(ps);
- states.add(s.getExecutionState());
- }
- }
-
- // Iterate through result and create SymbolicStates per PropertyState with ExecutionStates joined
- for (PropertyState p : statesPerProperty.keySet()) {
- Set<PropertyState> ps = new HashSet<PropertyState>();
- ps.add(p);
- Set<ExecutionState> es = statesPerProperty.get(p);
- if (es.size() > 1) {
- // Join execution states in this set
- es = ExecutionState.join(es);
- }
- for (ExecutionState e : es) {
- SymbolicState s = new SymbolicState(ps, e);
- ret.add(s);
- }
- }
-
- return ret;
- }
-
- private SymbolicState transferBranch(IBlock blk, SymbolicState s, boolean value) {
- IASTNode node = blk.getContent();
-
- SymbolicState ret = s.copy();
- if (node != null) {
- // Modify execution state according to branch condition
- ExecutionStateClause clause = null;
- // *N.B.* content for condition IBlock is condition expression itself
- if (node instanceof IASTBinaryExpression) {
- // FIXME compound conditionals
- IASTBinaryExpression binExpr = (IASTBinaryExpression) node;
- int op = binExpr.getOperator();
-
- // FIXME other ops
- // Check operator is an equality operator
- if (op == IASTBinaryExpression.op_equals) { // if (x == 0)
- IASTExpression o1 = binExpr.getOperand1();
- if (o1 instanceof IASTIdExpression) {
- IASTName name = ((IASTIdExpression) o1).getName();
- clause = parseConditional(clause, name, binExpr.getOperand2(), value);
- }
- }
- else if (op == IASTBinaryExpression.op_notequals) { // if (x != 0)
- IASTExpression o1 = binExpr.getOperand1();
- if (o1 instanceof IASTIdExpression) {
- IASTName name = ((IASTIdExpression) o1).getName();
- clause = parseConditional(clause, name, binExpr.getOperand2(), !value); // Negation
- }
- }
- }
- else if (node instanceof IASTUnaryExpression) { // if (!x)
- IASTUnaryExpression uExpr = (IASTUnaryExpression) node;
- int op = uExpr.getOperator();
-
- // Check operator is a negation operator
- if (op == IASTUnaryExpression.op_not) {
- IASTExpression operand = uExpr.getOperand();
- if (operand instanceof IASTIdExpression) {
- IASTName name = ((IASTIdExpression) operand).getName();
- clause = parseConditional(clause, name, !value); // Negation
- }
- }
- }
- else if (node instanceof IASTIdExpression) { // if (x)
- IASTName name = ((IASTIdExpression) node).getName();
- clause = parseConditional(clause, name, value);
- }
-
- if (clause != null) {
- ret.getExecutionState().addClause(clause);
- // TODO Theorem Prover goes here! / Determine if branch is feasible
- ret.getExecutionState().bindTruthAssignments();
- }
- else {
- // FIXME Handle unresolvable case
- }
- }
-
- return ret;
- }
-
- private SymbolicState transferOther(IBlock blk, SymbolicState s) {
- IASTNode node = blk.getContent();
-
- if (node != null) {
- // Process property state transition
- Set<PropertyState> oldStates = s.getPropertyStates();
- Set<PropertyState> newStates = new HashSet<PropertyState>();
- for (PropertyState state : oldStates) {
- newStates.add(state.transition(node));
- }
- s.setPropertyStates(newStates);
-
- // Modify execution state according to variable assignments
- node.accept(new VariableAssignmentVisitor(s.getExecutionState()));
- }
- return s;
- }
-
- private void add(IControlFlowEdge edge,
- Set<SymbolicState> ss) {
- if (!edgeInfo.get(edge).equals(ss)) {
- edgeInfo.put(edge, ss);
- worklist.add(edge.getTo());
- }
- }
- private void initFSM() {
+ private IPropertyFSM initFSM() {
uninit = new PropertyState("$u") {
@Override
public PropertyState transition(IASTNode node) {
@@ -347,7 +100,6 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
}
else if (containsClose(node)) {
dest = error;
- errorNode = node;
}
return dest;
}
@@ -359,7 +111,6 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
PropertyState dest = opened;
if (containsOpen(node)) {
dest = error;
- errorNode = node;
}
if (containsClose(node)) {
dest = uninit;
@@ -375,6 +126,28 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
return error;
}
};
+
+ return new IPropertyFSM() {
+
+ @Override
+ public PropertyState getUninitState() {
+ return uninit;
+ }
+
+ @Override
+ public Set<PropertyState> getPropertyStates() {
+ Set<PropertyState> states = new HashSet<PropertyState>();
+ states.add(uninit);
+ states.add(opened);
+ states.add(error);
+ return states;
+ }
+
+ @Override
+ public PropertyState getErrorState() {
+ return error;
+ }
+ };
}
protected boolean containsOpen(IASTNode node) {
@@ -387,54 +160,15 @@ public class CloseOpenedFilesChecker extends AbstractIndexAstChecker {
return parser.matches();
}
- private boolean isBranch(IBlock blk) {
- return blk.getOutEdges().length > 1;
- }
-
- private boolean isMerge(IBlock blk) {
- return blk.getInEdges().length > 1;
- }
-
private void reportProblem(IASTNode node, ExecutionState condition) {
- String message = MessageFormat.format("Improper use of open/close given {0}.", condition);
- reportProblem(ERR_ID, node, message);
- }
-
- // FIXME REFACTOR
- private ExecutionStateClause parseConditional(ExecutionStateClause clause, IASTName name, IASTExpression valueExpr, boolean branchTruth) {
- IBinding binding = name.resolveBinding();
- if (binding instanceof IVariable) {
- IVariable var = (IVariable) binding;
- Boolean truth = getTruthValue(valueExpr);
- if (truth != null) {
- clause = new ExecutionStateClause(var, truth == branchTruth);
- }
+ String message;
+ if (condition.isTop()) {
+ message = "Improper use of open/close.";
}
- return clause;
- }
-
- private ExecutionStateClause parseConditional(ExecutionStateClause clause, IASTName name, boolean branchTruth) {
- IBinding binding = name.resolveBinding();
- if (binding instanceof IVariable) {
- IVariable var = (IVariable) binding;
- clause = new ExecutionStateClause(var, branchTruth);
+ else {
+ message = MessageFormat.format("Improper use of open/close given {0}.", condition);
}
- return clause;
+ reportProblem(ERR_ID, node, message);
}
- private Boolean getTruthValue(IASTExpression valueExpr) {
- Boolean result = null;
- // Handle assignment from literals
- if (valueExpr instanceof IASTLiteralExpression) {
- int kind = ((IASTLiteralExpression) valueExpr).getKind();
- String value = String.valueOf(((IASTLiteralExpression) valueExpr).getValue());
- switch (kind) {
- case IASTLiteralExpression.lk_integer_constant:
- // 0 = False, > 0 = True
- result = !value.equals("0");
- }
- }
- // TODO other variable assignments
- return result;
- }
}
a> 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR Red Hat Inc.
# This file is distributed under the same license as the PACKAGE package.
#
# Translators:
# rjones <rjones@redhat.com>, 2011.
msgid ""
msgstr ""
"Project-Id-Version: libguestfs\n"
"Report-Msgid-Bugs-To: https://bugzilla.redhat.com/enter_bug.cgi?"
"component=libguestfs&product=Virtualization+Tools\n"
"POT-Creation-Date: 2012-01-26 17:01+0000\n"
"PO-Revision-Date: 2012-01-23 13:09+0000\n"
"Last-Translator: rjones <rjones@redhat.com>\n"
"Language-Team: Malayalam <discuss@lists.smc.org.in>\n"
"Language: ml\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"

#: align/scan.c:68 cat/virt-cat.c:61 cat/virt-filesystems.c:100
#: cat/virt-ls.c:99 df/main.c:70 edit/virt-edit.c:73 fish/fish.c:101
#: fuse/guestmount.c:908 inspector/virt-inspector.c:78 rescue/virt-rescue.c:62
#, c-format
msgid "Try `%s --help' for more information.\n"
msgstr "കൂടുതല്‍ വിവരങ്ങള്‍ക്കായി `%s --help' ശ്രമിക്കുക.\n"

#: align/scan.c:72
#, c-format
msgid ""
"%s: check alignment of virtual machine partitions\n"
"Copyright (C) 2011 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname\n"
"  %s [--options] -a disk.img [-a disk.img ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  --help               Display brief help\n"
"  -q|--quiet           No output, just exit code\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: align/scan.c:127 cat/virt-cat.c:121 cat/virt-filesystems.c:203
#: cat/virt-ls.c:192 df/domains.c:429 df/main.c:136 edit/virt-edit.c:141
#: fish/fish.c:223 format/format.c:136 fuse/guestmount.c:1024
#: inspector/virt-inspector.c:140 rescue/virt-rescue.c:142
#, c-format
msgid "guestfs_create: failed to create handle\n"
msgstr "guestfs_create: ഹാന്‍ഡില്‍ ഉണ്ടാക്കുന്നതില്‍ പരാജയപ്പെട്ടു\n"

#: align/scan.c:145 cat/virt-cat.c:143 cat/virt-filesystems.c:257
#: cat/virt-ls.c:242 df/main.c:160 edit/virt-edit.c:163 fish/fish.c:280
#: format/format.c:188 fuse/guestmount.c:1061 inspector/virt-inspector.c:164
#: rescue/virt-rescue.c:179
#, c-format
msgid "%s: unknown long option: %s (%d)\n"
msgstr "%s: അപരിചിതമായ ലോങ് ഉപാധി: %s (%d)\n"

#: align/scan.c:273
msgid "alignment < 4K"
msgstr ""

#: align/scan.c:278
msgid "alignment < 64K"
msgstr ""

#: cat/virt-cat.c:65
#, c-format
msgid ""
"%s: display files in a virtual machine\n"
"Copyright (C) 2010 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname file [file ...]\n"
"  %s [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --echo-keys          Don't turn off echo for passphrases\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  --help               Display brief help\n"
"  --keys-from-stdin    Read passphrases from stdin\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: cat/virt-cat.c:358 edit/virt-edit.c:584 fish/fish.c:1557
#, c-format
msgid "%s: to use Windows drive letters, this must be a Windows guest\n"
msgstr ""

#: cat/virt-cat.c:372 edit/virt-edit.c:598
#, c-format
msgid "%s: drive '%c:' not found.\n"
msgstr ""

#: cat/virt-filesystems.c:104
#, c-format
msgid ""
"%s: list filesystems, partitions, block devices, LVM in a VM\n"
"Copyright (C) 2010 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname\n"
"  %s [--options] -a disk.img [-a disk.img ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  --all                Display everything\n"
"  --blkdevs|--block-devices\n"
"                       Display block devices\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  --csv                Output as Comma-Separated Values\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --echo-keys          Don't turn off echo for passphrases\n"
"  --extra              Display swap and data filesystems\n"
"  --filesystems        Display mountable filesystems\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  -h|--human-readable  Human-readable sizes in --long output\n"
"  --help               Display brief help\n"
"  --keys-from-stdin    Read passphrases from stdin\n"
"  -l|--long            Long output\n"
"  --lvs|--logvols|--logical-volumes\n"
"                       Display LVM logical volumes\n"
"  --no-title           No title in --long output\n"
"  --parts|--partitions Display partitions\n"
"  --pvs|--physvols|--physical-volumes\n"
"                       Display LVM physical volumes\n"
"  --uuid|--uuids       Add UUIDs to --long output\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  --vgs|--volgroups|--volume-groups\n"
"                       Display LVM volume groups\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: cat/virt-filesystems.c:319 cat/virt-ls.c:346 df/main.c:254
#, c-format
msgid "%s: you cannot use -h and --csv options together.\n"
msgstr ""

#: cat/virt-ls.c:103
#, c-format
msgid ""
"%s: list files in a virtual machine\n"
"Copyright (C) 2010-2012 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname dir [dir ...]\n"
"  %s [--options] -a disk.img [-a disk.img ...] dir [dir ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  --checksum[=...]     Display file checksums\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  --csv                Comma-Separated Values output\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --echo-keys          Don't turn off echo for passphrases\n"
"  --extra-stats        Display extra stats\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  --help               Display brief help\n"
"  -h|--human-readable  Human-readable sizes in output\n"
"  --keys-from-stdin    Read passphrases from stdin\n"
"  -l|--long            Long listing\n"
"  -R|--recursive       Recursive listing\n"
"  --times              Display file times\n"
"  --time-days          Display file times as days before now\n"
"  --time-relative      Display file times as seconds before now\n"
"  --time-t             Display file times as time_t's\n"
"  --uids               Display UID, GID\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: cat/virt-ls.c:337
#, c-format
msgid ""
"%s: used a flag which can only be combined with -lR mode\n"
"For more information, read the virt-ls(1) man page.\n"
msgstr ""

#: cat/virt-ls.c:576
#, c-format
msgid "%s: error getting extended attrs for %s %s\n"
msgstr ""

#: cat/virt-ls.c:582
#, c-format
msgid "%s: error: cannot parse xattr count for %s %s\n"
msgstr ""

#: df/domains.c:115
#, c-format
msgid "%s: could not connect to libvirt (code %d, domain %d): %s"
msgstr ""

#: df/domains.c:124
#, c-format
msgid "%s: could not get number of running domains (code %d, domain %d): %s"
msgstr ""

#: df/domains.c:134
#, c-format
msgid "%s: could not list running domains (code %d, domain %d): %s"
msgstr ""

#: df/domains.c:145
#, c-format
msgid "%s: could not get number of inactive domains (code %d, domain %d): %s"
msgstr ""

#: df/domains.c:155
#, c-format
msgid "%s: could not list inactive domains (code %d, domain %d): %s"
msgstr ""

#: df/domains.c:281
#, c-format
msgid "%s: ignoring %s, it has too many disks (%zu > %d)"
msgstr ""

#: df/main.c:74
#, c-format
msgid ""
"%s: display free space on virtual filesystems\n"
"Copyright (C) 2010 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname\n"
"  %s [--options] -a disk.img [-a disk.img ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  --csv                Output as Comma-Separated Values\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  -h|--human-readable  Human-readable sizes in --long output\n"
"  --help               Display brief help\n"
"  -i|--inodes          Display inodes\n"
"  --one-per-guest      Separate appliance per guest\n"
"  --uuid               Add UUIDs to --long output\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: df/main.c:266
#, c-format
msgid "%s: compiled without support for libvirt.\n"
msgstr ""

#: df/output.c:50
msgid "VirtualMachine"
msgstr ""

#: df/output.c:51
msgid "Filesystem"
msgstr ""

#: df/output.c:54
msgid "1K-blocks"
msgstr ""

#: df/output.c:56
msgid "Size"
msgstr ""

#: df/output.c:57
msgid "Used"
msgstr ""

#: df/output.c:58
msgid "Available"
msgstr ""

#: df/output.c:59
msgid "Use%"
msgstr ""

#: df/output.c:61
msgid "Inodes"
msgstr ""

#: df/output.c:62
msgid "IUsed"
msgstr ""

#: df/output.c:63
msgid "IFree"
msgstr ""

#: df/output.c:64
msgid "IUse%"
msgstr ""

#: edit/virt-edit.c:77
#, c-format
msgid ""
"%s: Edit a file in a virtual machine\n"
"Copyright (C) 2009-2012 Red Hat Inc.\n"
"Usage:\n"
"  %s [--options] -d domname file [file ...]\n"
"  %s [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
"Options:\n"
"  -a|--add image       Add image\n"
"  -b|--backup .ext     Backup original as original.ext\n"
"  -c|--connect uri     Specify libvirt URI for -d option\n"
"  -d|--domain guest    Add disks from libvirt guest\n"
"  --echo-keys          Don't turn off echo for passphrases\n"
"  -e|--expr expr       Non-interactive editing using Perl expr\n"
"  --format[=raw|..]    Force disk format for -a option\n"
"  --help               Display brief help\n"
"  --keys-from-stdin    Read passphrases from stdin\n"
"  -v|--verbose         Verbose messages\n"
"  -V|--version         Display version and exit\n"
"  -x                   Trace libguestfs API calls\n"
"For more information, see the manpage %s(1).\n"
msgstr ""

#: edit/virt-edit.c:175
#, c-format
msgid "%s: -b option given multiple times\n"
msgstr ""

#: edit/virt-edit.c:192
#, c-format
msgid "%s: -e option given multiple times\n"
msgstr ""

#: fish/alloc.c:37
#, c-format
msgid "use 'alloc file size' to create an image\n"
msgstr "ഒരു ചിത്രം ഉണ്ടാക്കുന്നതിനായി 'alloc file size' ഉപയോഗിക്കുക\n"

#: fish/alloc.c:51
#, c-format
msgid "use 'sparse file size' to create a sparse image\n"
msgstr "ഒരു സ്പാര്‍സ് ചിത്രം ഉണ്ടാക്കുന്നതിനായി 'sparse file size' ഉപയോഗിക്കുക\n"

#: fish/alloc.c:75
#, c-format
msgid "can't allocate or add disks after launching\n"
msgstr "ലഭ്യമാക്കിയ ശേഷം സ്ഥലം അനുവദിക്കുകയോ ഡിസ്കുകള്‍ ചേര്‍ക്കുകയോ സാധ്യമല്ല\n"

#: fish/alloc.c:156
#, c-format
msgid "%s: invalid integer parameter (%s returned %d)\n"
msgstr ""

#: fish/cmds.c:2795
msgid "Command"
msgstr "കമാന്‍ഡ്"

#: fish/cmds.c:2795
msgid "Description"
msgstr "വിവരണം"

#: fish/cmds.c:2797
msgid "add a CD-ROM disk image to examine"
msgstr "പരിശോധിക്കുന്നതിനായി ഒരു സിഡി-റോം ചിത്രം ചേര്‍ക്കുക"

#: fish/cmds.c:2798
msgid "add the disk(s) from a named libvirt domain"
msgstr ""

#: fish/cmds.c:2799 fish/cmds.c:2800
msgid "add an image to examine or modify"
msgstr "പരിശോധിക്കുന്നതിനോ മാറ്റം വരുത്തുന്നതിനോ ഒരു ചിത്രം ചേര്‍ക്കുക"

#: fish/cmds.c:2801
msgid "add a drive in snapshot mode (read-only)"
msgstr "സ്നാപ്ഷോട്ട് മോഡില്‍ ഒരു ഡ്രൈവ് ചേര്‍ക്കുക (റീഡ്-ഒണ്‍ലി)"

#: fish/cmds.c:2802
msgid "add a drive read-only specifying the QEMU block emulation to use"
msgstr ""

#: fish/cmds.c:2803
msgid "add a drive specifying the QEMU block emulation to use"
msgstr ""

#: fish/cmds.c:2804
msgid "allocate and add a disk file"
msgstr ""

#: fish/cmds.c:2805
msgid "clear Augeas path"
msgstr ""

#: fish/cmds.c:2806
msgid "close the current Augeas handle"
msgstr "നിലവിലുള്ള Augeas ഹാന്‍ഡില്‍ അടയ്ക്കുക"

#: fish/cmds.c:2807
msgid "define an Augeas node"
msgstr "ഒരു Augeas നോഡ് നിഷ്കര്‍ഷിക്കുന്നു"

#: fish/cmds.c:2808
msgid "define an Augeas variable"
msgstr "ഒരു Augeas വേരിയബിള്‍ നിഷ്കര്‍ഷിക്കുന്നു"

#: fish/cmds.c:2809
msgid "look up the value of an Augeas path"
msgstr "ഒരു Augeas പാഥിന്റെ മൂല്ല്യം തെരയുക"

#: fish/cmds.c:2810
msgid "create a new Augeas handle"
msgstr "ഒരു പുതിയ Augeas ഹാന്‍ഡില്‍ നിര്‍മ്മിക്കുക"

#: fish/cmds.c:2811
msgid "insert a sibling Augeas node"
msgstr "ഒരു സിബ്ലിങ് Augueas നോഡ് ചേര്‍ക്കുക"

#: fish/cmds.c:2812
msgid "load files into the tree"
msgstr "ട്രീയിലേക്ക് ഫയലുകള്‍ ലഭ്യമാക്കുക"

#: fish/cmds.c:2813
msgid "list Augeas nodes under augpath"
msgstr "augpath-ല്‍ Augeas നോഡുകള്‍ ലഭ്യമാക്കുക"

#: fish/cmds.c:2814
msgid "return Augeas nodes which match augpath"
msgstr "augpath-നു് ചേരുന്ന Augeas നോഡുകള്‍ തിരികെ നല്‍കുക"

#: fish/cmds.c:2815
msgid "move Augeas node"
msgstr "Augeas നോഡ് നീക്കുക"

#: fish/cmds.c:2816
msgid "remove an Augeas path"
msgstr "ഒരു Augeas പാഥ് നീക്കം ചെയ്യുക"

#: fish/cmds.c:2817
msgid "write all pending Augeas changes to disk"
msgstr "ബാക്കിയുള്ള എല്ലാ Augeas മാറ്റങ്ങളും ഡിസ്കിലേക്ക് സൂക്ഷിക്കുക"

#: fish/cmds.c:2818
msgid "set Augeas path to value"
msgstr "Augeas പാഥ് ഒരു മൂല്ല്യമായി സജ്ജമാക്കുക"

#: fish/cmds.c:2819
msgid "test availability of some parts of the API"
msgstr "എപിഐയുടെ ചില ഭാഗങ്ങളുടെ ലഭ്യത പരിശോധിക്കുക"

#: fish/cmds.c:2820
msgid "return a list of all optional groups"
msgstr ""

#: fish/cmds.c:2821
msgid "upload base64-encoded data to file"
msgstr ""

#: fish/cmds.c:2822
msgid "download file and encode as base64"
msgstr ""

#: fish/cmds.c:2823
msgid "print block device attributes"
msgstr ""

#: fish/cmds.c:2824
msgid "flush device buffers"
msgstr "ഡിവൈസ് ബഫറുകള്‍ വെടിപ്പാക്കുക"

#: fish/cmds.c:2825
msgid "get blocksize of block device"
msgstr "ബ്ലോക്ക് ഡിവൈസിന്റെ വ്യാപ്തി ലഭ്യമാക്കുക"

#: fish/cmds.c:2826
msgid "is block device set to read-only"
msgstr "ബ്ലോക്ക് ഡിവൈസ് റീഡ്-ഒണ്‍ലി ആയി സജ്ജമാണോ"

#: fish/cmds.c:2827
msgid "get total size of device in bytes"
msgstr "ഡിവൈസിന്റെ മൊത്തം വ്യാപ്തി ബൈറ്റ്സില്‍ ലഭ്യമാക്കുക"

#: fish/cmds.c:2828
msgid "get sectorsize of block device"
msgstr "ബ്ലോക്ക് ഡിവൈസിന്റെ സെക്ടര്‍ വ്യാപ്തി ലഭ്യമാക്കുക"

#: fish/cmds.c:2829
msgid "get total size of device in 512-byte sectors"
msgstr "ഡിവൈസിന്റെ മൊത്തം വ്യാപ്തി 512-ബൈറ്റ് സെക്ടറുളില്‍ ലഭ്യമാക്കുക"

#: fish/cmds.c:2830
msgid "reread partition table"
msgstr "പാര്‍ട്ടീഷന്‍ ടേബിള്‍ വീണ്ടും ലഭ്യമാക്കുക"

#: fish/cmds.c:2831
msgid "set blocksize of block device"
msgstr "ബ്ലോക്ക് ഡിവൈസിന്റെ ബ്ലോക്ക് വ്യാപ്തി സജ്ജമാക്കുക"

#: fish/cmds.c:2832
msgid "set block device to read-only"
msgstr "ബ്ലോക്ക് ഡിവൈസ് റീഡ്-ഒണ്‍ലി ആയി സജ്ജമാക്കുക"

#: fish/cmds.c:2833
msgid "set block device to read-write"
msgstr "ബ്ലോക്ക് ഡിവൈസ് റീഡ്-റൈറ്റ് ആയി സജ്ജമാക്കുക"

#: fish/cmds.c:2834
msgid "resize a btrfs filesystem"
msgstr ""

#: fish/cmds.c:2835
msgid "return true path on case-insensitive filesystem"
msgstr "കേസ്-സെന്‍സിറ്റീവ് ഫയല്‍സിസ്റ്റത്തില്‍ ട്രൂ പാഥ് തിരികെ ലഭ്യമാക്കുക"

#: fish/cmds.c:2836
msgid "list the contents of a file"
msgstr "ഒരു ഫയലിലുള്ളവ ലഭ്യമാക്കുക"

#: fish/cmds.c:2837
msgid "compute MD5, SHAx or CRC checksum of file"
msgstr "ഒരു ഫയലിന്റെ MD5, SHAx അല്ലെങ്കില്‍ CRC ചെക്ക്സം കണ്ടുപിടിക്കുക"

#: fish/cmds.c:2838
msgid "compute MD5, SHAx or CRC checksum of the contents of a device"
msgstr ""

#: fish/cmds.c:2839
msgid "compute MD5, SHAx or CRC checksum of files in a directory"
msgstr ""

#: fish/cmds.c:2840
msgid "change file mode"
msgstr "ഫയല്‍ മോഡ് മാറ്റുക"

#: fish/cmds.c:2841 fish/cmds.c:2973
msgid "change file owner and group"
msgstr "ഫയലിന്റെ ഉടമസ്ഥനും ഗ്രൂപ്പും മാറ്റുക"

#: fish/cmds.c:2842
msgid "run a command from the guest filesystem"
msgstr "ഗസ്റ്റ് ഫയല്‍സിസ്റ്റമില്‍ നിന്നും ഒരു കമാന്‍ഡ് പ്രവര്‍ത്തിപ്പിക്കുക"

#: fish/cmds.c:2843
msgid "run a command, returning lines"
msgstr "വരികള്‍ തിരികെ ലഭ്യമാക്കുന്ന ഒരു കമാന്‍ഡ് പ്രവര്‍ത്തിപ്പിക്കുക"

#: fish/cmds.c:2844
msgid "output compressed device"
msgstr ""

#: fish/cmds.c:2845
msgid "output compressed file"
msgstr ""

#: fish/cmds.c:2846
msgid "add qemu parameters"
msgstr "qemu പരാമീറ്ററുകള്‍ ചേര്‍ക്കുക"

#: fish/cmds.c:2847
msgid "copy from source device to destination device"
msgstr ""

#: fish/cmds.c:2848
msgid "copy from source device to destination file"
msgstr ""

#: fish/cmds.c:2849
msgid "copy from source file to destination device"
msgstr ""

#: fish/cmds.c:2850
msgid "copy from source file to destination file"
msgstr ""

#: fish/cmds.c:2851
msgid "copy local files or directories into an image"
msgstr ""

#: fish/cmds.c:2852
msgid "copy remote files or directories out of an image"
msgstr ""

#: fish/cmds.c:2853
msgid "copy size bytes from source to destination using dd"
msgstr ""

#: fish/cmds.c:2854
msgid "copy a file"
msgstr "ഒരു ഫയല്‍ പകര്‍ത്തുക"

#: fish/cmds.c:2855
msgid "copy a file or directory recursively"
msgstr "ആവര്‍ത്തിച്ചു് ഒരു ഫയല്‍ അല്ലെങ്കില്‍ ഡയറക്ടറി പകര്‍ത്തുക"

#: fish/cmds.c:2856
msgid "copy from source to destination using dd"
msgstr "dd ഉപയോഗിച്ചു് ഉറവിടത്തില്‍ നിന്നും ലക്ഷ്യസ്ഥാനത്തേക്കു് പകര്‍ത്തുക"

#: fish/cmds.c:2857
msgid "debugging and internals"
msgstr "ഡീബഗ്ഗിങും ഇന്റേണലും"

#: fish/cmds.c:2858
msgid "debug the QEMU command line (internal use only)"
msgstr ""

#: fish/cmds.c:2859
msgid "debug the drives (internal use only)"
msgstr ""

#: fish/cmds.c:2860
msgid "upload a file to the appliance (internal use only)"
msgstr ""

#: fish/cmds.c:2861
msgid "delete a previously registered event handler"
msgstr ""

#: fish/cmds.c:2862
msgid "report file system disk space usage"
msgstr "ഫയല്‍ സിസ്റ്റത്തിന്റെ ഡിസ്കിലുള്ള സ്ഥലത്തിന്റെ ഉപയോഗം രേഖപ്പെടുത്തുക"

#: fish/cmds.c:2863
msgid "report file system disk space usage (human readable)"
msgstr ""
"ഫയല്‍ സിസ്റ്റത്തിന്റെ ഡിസ്കിലുള്ള സ്ഥലത്തിന്റെ ഉപയോഗം രേഖപ്പെടുത്തുക (മനുഷ്യര്‍ക്കു് വായിക്കുവാന്‍ "
"സാധിക്കുന്നതു്)"

#: fish/cmds.c:2864
msgid "display an image"
msgstr ""

#: fish/cmds.c:2865
msgid "return kernel messages"
msgstr "കേണല്‍ സന്ദേശങ്ങള്‍ തിരികെ ലഭ്യമാക്കുക"

#: fish/cmds.c:2866
msgid "download a file to the local machine"
msgstr "ലോക്കല്‍ മഷീനിലേക്കു് ഒരു ഫയല്‍ ഡൌണ്‍ലോഡ് ചെയ്യുക"

#: fish/cmds.c:2867
msgid "download a file to the local machine with offset and size"
msgstr ""

#: fish/cmds.c:2868
msgid "drop kernel page cache, dentries and inodes"
msgstr "കേര്‍ണല്‍ താളിന്റെ കാഷ്, ഡിഎന്‍ട്രികള്‍ ഐനോഡുകള്‍ എന്നിവ വേണ്ടെന്നു് വയ്ക്കുക"

#: fish/cmds.c:2869
msgid "estimate file space usage"
msgstr "ഫയലിലുള്ള സ്ഥലത്തിന്റെ ഉപയോഗം കണക്കുകൂട്ടുക"

#: fish/cmds.c:2870 fish/cmds.c:2871
msgid "check an ext2/ext3 filesystem"
msgstr "ഒരു ext2/ext3 ഫയല്‍സിസ്റ്റം പരിശോധിക്കുക"

#: fish/cmds.c:2872
msgid "display a line of text"
msgstr "ഒരു വരി കാണിക്കുക"

#: fish/cmds.c:2873
msgid "echo arguments back to the client"