Home
last modified time | relevance | path

Searched refs:Assumption (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp27 bool Assumption) { in assumeInternal() argument
41 return assume(State, Cond.castAs<NonLoc>(), Assumption); in assumeInternal()
45 NonLoc Cond, bool Assumption) { in assume() argument
46 State = assumeAux(State, Cond, Assumption); in assume()
48 return EE->processAssume(State, Cond, Assumption); in assume()
54 bool Assumption) { in assumeAux() argument
62 return assumeSymUnsupported(State, Sym, Assumption); in assumeAux()
73 return assumeSym(State, Sym, Assumption); in assumeAux()
78 bool isFeasible = b ? Assumption : !Assumption; in assumeAux()
84 bool IsFeasible = IsNull ? Assumption : !Assumption; in assumeAux()
[all …]
H A DConstraintManager.cpp94 auto AssumeFun = [&](bool Assumption) { in assumeDual() argument
95 return assumeInternal(State, Cond, Assumption); in assumeDual()
104 auto AssumeFun = [&](bool Assumption) { in assumeInclusiveRangeDual() argument
105 return assumeInclusiveRangeInternal(State, Value, From, To, Assumption); in assumeInclusiveRangeDual()
111 DefinedSVal Cond, bool Assumption) { in assume() argument
113 return Assumption ? R.first : R.second; in assume()
H A DRangedConstraintManager.cpp25 bool Assumption) { in assumeSym() argument
30 return assumeSymUnsupported(State, Sym, Assumption); in assumeSym()
38 if (!Assumption) in assumeSym()
46 return assumeSymRel(State, SIE, (Assumption ? BO_NE : BO_EQ), Zero); in assumeSym()
70 if (!Assumption) in assumeSym()
83 bool IsExpectedEqual = WasEqual == Assumption; in assumeSym()
98 return assumeSymUnsupported(State, Sym, Assumption); in assumeSym()
134 SymbolRef Sym, bool Assumption) { in assumeSymUnsupported() argument
146 if (Assumption) in assumeSymUnsupported()
H A DProgramState.cpp364 bool Assumption, in assumeInBound() argument
368 return Assumption ? R.first : R.second; in assumeInBound()
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSimpleConstraintManager.h45 bool Assumption) = 0;
61 bool Assumption) = 0;
70 bool Assumption) override;
83 ProgramStateRef assume(ProgramStateRef State, NonLoc Cond, bool Assumption);
86 bool Assumption);
H A DConstraintManager.h78 bool Assumption);
147 DefinedSVal Cond, bool Assumption) = 0;
H A DSMTConstraintManager.h44 bool Assumption) override { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
58 SMTConv::getZeroExpr(Solver, Ctx, Exp, RetTy, !Assumption)); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
60 return assumeExpr(State, Sym, Assumption ? Exp : Solver->mkNot(Exp)); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
73 bool Assumption) override { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
H A DProgramState.h705 bool Assumption) const { in assume() argument
710 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume()
724 bool Assumption) const { in assumeInclusiveRange() argument
731 this, Val.castAs<NonLoc>(), From, To, Assumption); in assumeInclusiveRange()
H A DSMTConv.h502 QualType Ty, bool Assumption) { in getZeroExpr() argument
506 return fromFloatBinOp(Solver, Exp, Assumption ? BO_EQ : BO_NE, in getZeroExpr()
516 return Assumption ? fromUnOp(Solver, UO_LNot, Exp) : Exp; in getZeroExpr()
519 Solver, Exp, Assumption ? BO_EQ : BO_NE, in getZeroExpr()
H A DRangedConstraintManager.h419 bool Assumption) override;
427 bool Assumption) override;
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporterVisitors.h389 bool Assumption; variable
399 : Constraint(constraint), Assumption(assumption), in TrackConstraintBRVisitor()
400 IsZeroCheck(!Assumption && isa<Loc>(Constraint)) {} in TrackConstraintBRVisitor()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DBasicObjCFoundationChecks.cpp913 SymbolRef CollectionS, bool Assumption) { in assumeCollectionNonEmpty() argument
921 return State->set<ContainerNonEmptyMap>(CollectionS, Assumption); in assumeCollectionNonEmpty()
922 return (Assumption == *KnownNonEmpty) ? State : nullptr; in assumeCollectionNonEmpty()
939 return State->assume(*CountGreaterThanZero, Assumption); in assumeCollectionNonEmpty()
945 bool Assumption) { in assumeCollectionNonEmpty() argument
950 return assumeCollectionNonEmpty(C, State, CollectionS, Assumption); in assumeCollectionNonEmpty()
H A DMacOSKeychainAPIChecker.cpp67 bool Assumption) const;
506 bool Assumption) const { in evalAssume()
525 if (!Assumption) in evalAssume()
H A DCheckerDocumentation.cpp241 bool Assumption) const { return State; } in evalAssume()
H A DCheckObjCDealloc.cpp121 bool Assumption) const;
405 bool Assumption) const { in evalAssume()
414 if (Assumption) { in evalAssume()
H A DTrustNonnullChecker.cpp67 bool Assumption) const { in evalAssume()
H A DFuchsiaHandleChecker.cpp203 bool Assumption) const;
540 bool Assumption) const { in evalAssume()
/llvm-project-15.0.7/polly/include/polly/Support/
H A DScopHelper.h56 struct Assumption { struct
76 using RecordedAssumptionsTy = llvm::SmallVector<Assumption, 8>; argument
/llvm-project-15.0.7/llvm/test/CodeGen/RISCV/
H A DO0-pipeline.ll16 ; CHECK-NEXT: Assumption Cache Tracker
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2415 llvm::Instruction *Assumption = Builder.CreateAlignmentAssumption( in emitAlignmentAssumption() local
2421 OffsetValue, TheCheck, Assumption); in emitAlignmentAssumption()
2686 llvm::Instruction *Assumption) { in emitAlignmentAssumptionCheck() argument
2687 assert(Assumption && isa<llvm::CallInst>(Assumption) && in emitAlignmentAssumptionCheck()
2688 cast<llvm::CallInst>(Assumption)->getCalledOperand() == in emitAlignmentAssumptionCheck()
2693 assert(&(Builder.GetInsertBlock()->back()) == Assumption && in emitAlignmentAssumptionCheck()
2707 Assumption->removeFromParent(); in emitAlignmentAssumptionCheck()
2727 Builder.Insert(Assumption); in emitAlignmentAssumptionCheck()
/llvm-project-15.0.7/llvm/test/CodeGen/AArch64/
H A DO0-pipeline.ll12 ; CHECK-NEXT: Assumption Cache Tracker
H A DO3-pipeline.ll11 ; CHECK-NEXT: Assumption Cache Tracker
234 ; CHECK-NEXT: Assumption Cache Tracker
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A DO0-pipeline.ll14 ; CHECK-NEXT: Assumption Cache Tracker
/llvm-project-15.0.7/llvm/test/Transforms/BDCE/
H A Dvectors.ll87 ; Assumption invalidation (adapted from invalidate-assumptions.ll)
H A Dvectors-inseltpoison.ll87 ; Assumption invalidation (adapted from invalidate-assumptions.ll)

12