本文整理汇总了Java中soot.jimple.internal.JimpleLocal类的典型用法代码示例。如果您正苦于以下问题:Java JimpleLocal类的具体用法?Java JimpleLocal怎么用?Java JimpleLocal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JimpleLocal类属于soot.jimple.internal包,在下文中一共展示了JimpleLocal类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getZeroAbstraction
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public static Abstraction getZeroAbstraction(boolean flowSensitiveAliasing) {
Abstraction zeroValue = new Abstraction(
new AccessPath(new JimpleLocal("zero", NullType.v()), false),
null,
false,
false);
Abstraction.flowSensitiveAliasing = flowSensitiveAliasing;
return zeroValue;
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:10,代码来源:Abstraction.java
示例2: fill
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public void fill() {
DomL domL = (DomL) doms[0];
int numL = domL.size();
for (int lIdx = 0; lIdx < numL; lIdx++) {
Unit i = domL.get(lIdx);
if (i instanceof JEnterMonitorStmt) {
JEnterMonitorStmt em = (JEnterMonitorStmt) i;
Value op = em.getOp();
if (op instanceof JimpleLocal) {
add(em, op);
}
}
}
}
开发者ID:petablox-project,项目名称:petablox,代码行数:15,代码来源:RelSyncLV.java
示例3: findLocal
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
private Value findLocal(Value expr){
Value ret = null;
if(expr instanceof JimpleLocal){
ret = expr;
}
return ret;
}
开发者ID:BoiseState,项目名称:Disjoint-Domains,代码行数:8,代码来源:ValueAnalysis.java
示例4: checkCompleteAndDisjoint
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
private void checkCompleteAndDisjoint(){
//check whether the domain is complete, get the
//negation of the disjunction of all predicate
JimpleLocal temp = new JimpleLocal("temp", IntType.v());
BinopExpr complete = domain.top(temp);
SolverWrapper solver = StartAnalysis.getSolver(); //new SolverWrapperZ3();
boolean sat = solver.evaluateNot(complete);
if(sat){
System.out.println("Domain " + domain + " is incomplete !");
System.exit(2);
}
//check whether the domain is pairwise disjoint
//by default set that domain is disjoint
domain.setDisjoint();
for(BaseElement be1 : domain.getBaseElements()){
for(BaseElement be2 : domain.getBaseElements()){
if(!be1.equals(be2)){
//create a conjunction of those two base elements
BinopExpr disjoint = new GAndExpr(be1.instantiate(temp), be2.instantiate(temp));
sat = solver.evaluate(disjoint);
//disjoint predicates do not have a solution in common
if(sat){
domain.setNotDisjoint();
return; //we're done -- found at lest one pair of predicates that are not pair-wise disjoint
}
}
}
}
}
开发者ID:BoiseState,项目名称:Disjoint-Domains,代码行数:30,代码来源:DomainInstantiator.java
示例5: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public Pair<Value, Set<DefinitionStmt>> createZeroValue() {
System.err.println("calling createZeroValue");
return new Pair<Value, Set<DefinitionStmt>>(new JimpleLocal("<<zero>>",
NullType.v()), Collections.<DefinitionStmt> emptySet());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:6,代码来源:IFDSReachingDefinitionWithField.java
示例6: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public Pair<Value, Set<DefinitionStmt>> createZeroValue() {
return new Pair<Value, Set<DefinitionStmt>>(new JimpleLocal("<<zero>>", NullType.v()), Collections.<DefinitionStmt> emptySet());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:4,代码来源:IFDSReachingDefinitionsEnhanced.java
示例7: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public TaintFact createZeroValue() {
return new TaintFact(new JimpleLocal("<<zero>>", NullType.v()),Collections.<DefinitionStmt> emptySet());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:4,代码来源:IFDSForwardReachingConstantDefinitions.java
示例8: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public Value createZeroValue() {
return new JimpleLocal("<<zero>>", NullType.v());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:4,代码来源:IFDSLiveVariables.java
示例9: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
@Override
public Local createZeroValue() {
return new JimpleLocal("zero", NullType.v());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:5,代码来源:IFDSLocalInfoFlow.java
示例10: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
@Override
public Local createZeroValue() {
return new JimpleLocal("<<zero>>", NullType.v());
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:5,代码来源:IFDSUninitializedVariables.java
示例11: asTmpReg
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public Register asTmpReg(Type regType) {
String tmpRegName = "tmp" + getRegCount();
return asLocal(new JimpleLocal(tmpRegName, regType));
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:5,代码来源:RegisterAllocator.java
示例12: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public TrackFact createZeroValue() {
return new TrackFact(new JimpleLocal("<<zero>>", NullType.v()) , null);
}
开发者ID:flankerhqd,项目名称:JAADAS,代码行数:4,代码来源:IFDSReachingConstantDefinitions.java
示例13: createZeroValue
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
@Override
public Value createZeroValue() {
return new JimpleLocal("zero", NullType.v());
}
开发者ID:serval-snt-uni-lu,项目名称:DroidRA,代码行数:5,代码来源:PropagationProblem.java
示例14: visit
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
@Override
public void visit(Value e) {
if (e instanceof JimpleLocal) {
add(e,(JimpleLocal) e);
}
}
开发者ID:petablox-project,项目名称:petablox,代码行数:7,代码来源:RelVarExpr.java
示例15: processIfStmt
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
private void processIfStmt(IfStmt s, AbstractState inState,
AbstractState ifStmtFalse, AbstractState ifStmtTrue) {
ConditionExpr condExpr = (ConditionExpr)s.getCondition();
Value lhs = condExpr.getOp1();
Value rhs = condExpr.getOp2();
//make sure this is an integer conditional stmt
if(isAnyIntType(lhs)){
//add it to the tracked states
outputStmt.add(s);
//create the set of variables to be tracked
Set<Value> track = new HashSet<Value>();
changedVariables.put(s, track);
//precondition of the IfStmt
Set<Expr> precond = new HashSet<Expr>();
Set<Value> valuesToEval = new HashSet<Value>();//there should be one value only
addNotNull(findLocal(lhs), valuesToEval);
addNotNull(findLocal(rhs), valuesToEval);
//need to make a special case when valuesToEval is empty
//it means that both sides are concrete values
//hence no need call for the solver
for(Value v : valuesToEval){
precond.addAll(evaluateStates(inState, v));
}
precond.addAll(evaluateStates(inState, null));//to evaluate symbolic state only
//otherwise symbolic state can be evaluated twice -- equality of BinOp has not been implemented
//it looks like in Jimple only statement of the same object are equal, but not
//if they have the same semantics, assuming that locals are of the same object
//do for true branch
//add the current expression
BinopExpr symbState = condExpr;
BinopExpr symbNotState = negate(condExpr);
for(Expr be : precond){
symbState = new GAndExpr(symbState, be);
symbNotState = new GAndExpr(symbNotState,be);
}
//at this point we have precondition set
//make sure lhs is not a constant
if(lhs instanceof JimpleLocal){
//find new values for lhs
updateStateCond(lhs,symbState, condExpr, ifStmtTrue, s);//s is only used for the symbolic state
updateStateCond(lhs, symbNotState,negate(condExpr), ifStmtFalse, s);
condExpr = null; //so no need to update the symbolic state twice
track.add(lhs);
}
//make sure rhs is not a constant
if(rhs instanceof JimpleLocal){
updateStateCond(rhs, symbState, condExpr, ifStmtTrue, s);
updateStateCond(rhs, symbNotState, negate(condExpr), ifStmtFalse,s );
track.add(rhs);
}
//created the negated one
} // end if this is an integer conditional stmt
}
开发者ID:BoiseState,项目名称:Disjoint-Domains,代码行数:58,代码来源:ValueAnalysis.java
示例16: getZeroAbstraction
import soot.jimple.internal.JimpleLocal; //导入依赖的package包/类
public static Abstraction getZeroAbstraction(boolean flowSensitiveAliasing) {
if (zeroValue == null)
zeroValue = new Abstraction(new JimpleLocal("zero", NullType.v()), null,
null, false, true, null, flowSensitiveAliasing);
return zeroValue;
}
开发者ID:0-14N,项目名称:soot-inflow,代码行数:7,代码来源:Abstraction.java
注:本文中的soot.jimple.internal.JimpleLocal类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论