Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/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 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.cpp362 bool Assumption, in assumeInBound() argument
366 return Assumption ? R.first : R.second; in assumeInBound()
H A DCheckerManager.cpp708 SVal Cond, bool Assumption) { in runCheckersForEvalAssume() argument
714 state = EvalAssumeChecker(state, Cond, Assumption); in runCheckersForEvalAssume()
/freebsd/contrib/llvm-project/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 DSMTConstraintManager.h49 bool Assumption) override { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
63 SMTConv::getZeroExpr(Solver, Ctx, Exp, RetTy, !Assumption)); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
65 return assumeExpr(State, Sym, Assumption ? Exp : Solver->mkNot(Exp)); in REGISTER_TRAIT_WITH_PROGRAMSTATE()
78 bool Assumption) override { in REGISTER_TRAIT_WITH_PROGRAMSTATE()
H A DProgramState.h702 bool Assumption) const { in assume() argument
707 ->assume(this, Cond.castAs<DefinedSVal>(), Assumption); in assume()
721 bool Assumption) const { in assumeInclusiveRange() argument
728 this, Val.castAs<NonLoc>(), From, To, Assumption); in assumeInclusiveRange()
H A DRangedConstraintManager.h419 bool Assumption) override;
427 bool Assumption) override;
H A DSMTConv.h506 QualType Ty, bool Assumption) { in getZeroExpr() argument
510 return fromFloatBinOp(Solver, Exp, Assumption ? BO_EQ : BO_NE, in getZeroExpr()
520 return Assumption ? fromUnOp(Solver, UO_LNot, Exp) : Exp; in getZeroExpr()
523 Solver, Exp, Assumption ? BO_EQ : BO_NE, in getZeroExpr()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DAssumeModeling.cpp47 const auto *Assumption = AssumptionVal.getAsInteger(); in checkPostStmt() local
48 if (Assumption && Assumption->isZero()) { in checkPostStmt()
H A DSetgidSetuidOrderChecker.cpp48 bool Assumption) const;
92 bool Assumption) const { in evalAssume()
H A DBasicObjCFoundationChecks.cpp920 SymbolRef CollectionS, bool Assumption) { in assumeCollectionNonEmpty() argument
928 return State->set<ContainerNonEmptyMap>(CollectionS, Assumption); in assumeCollectionNonEmpty()
929 return (Assumption == *KnownNonEmpty) ? State : nullptr; in assumeCollectionNonEmpty()
946 return State->assume(*CountGreaterThanZero, Assumption); in assumeCollectionNonEmpty()
952 bool Assumption) { in assumeCollectionNonEmpty() argument
957 return assumeCollectionNonEmpty(C, State, CollectionS, Assumption); in assumeCollectionNonEmpty()
H A DMacOSKeychainAPIChecker.cpp69 bool Assumption) const;
497 bool Assumption) const { in evalAssume()
516 if (!Assumption) in evalAssume()
H A DCheckerDocumentation.cpp280 bool Assumption) const { return State; } in evalAssume()
H A DCheckObjCDealloc.cpp127 bool Assumption) const;
413 bool Assumption) const { in evalAssume()
422 if (Assumption) { in evalAssume()
H A DTrustNonnullChecker.cpp67 bool Assumption) const { in evalAssume()
H A DNullabilityChecker.cpp112 bool Assumption) const;
951 bool Assumption) const { in evalAssume()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmtAttr.cpp764 auto *Assumption = A.getArgAsExpr(0); in ActOnCXXAssumeAttr() local
766 if (DiagnoseUnexpandedParameterPack(Assumption)) { in ActOnCXXAssumeAttr()
770 if (Assumption->getDependence() == ExprDependence::None) { in ActOnCXXAssumeAttr()
771 ExprResult Res = BuildCXXAssumeExpr(Assumption, A.getAttrName(), Range); in ActOnCXXAssumeAttr()
774 Assumption = Res.get(); in ActOnCXXAssumeAttr()
781 return Assumption; in ActOnCXXAssumeAttr()
784 ExprResult Sema::BuildCXXAssumeExpr(Expr *Assumption, in BuildCXXAssumeExpr() argument
787 if (!Assumption) in BuildCXXAssumeExpr()
790 ExprResult Res = CheckPlaceholderExpr(Assumption); in BuildCXXAssumeExpr()
798 Assumption = Res.get(); in BuildCXXAssumeExpr()
[all …]
/freebsd/sys/dev/sound/pci/
H A Dallegro_reg.h407 #error Assumption about code memory unit length failed.
410 #error Assumption about code memory unit length failed.
425 #error Assumption about data memory unit length failed.
428 #error Assumption about data memory unit length failed.
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporterVisitors.h398 const bool Assumption; variable
408 : Message(Message), Constraint(constraint), Assumption(assumption) {} in TrackConstraintBRVisitor()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2695 llvm::Instruction *Assumption = Builder.CreateAlignmentAssumption( in emitAlignmentAssumption() local
2701 OffsetValue, TheCheck, Assumption); in emitAlignmentAssumption()
3183 llvm::Instruction *Assumption) { in emitAlignmentAssumptionCheck() argument
3184 assert(isa_and_nonnull<llvm::CallInst>(Assumption) && in emitAlignmentAssumptionCheck()
3185 cast<llvm::CallInst>(Assumption)->getCalledOperand() == in emitAlignmentAssumptionCheck()
3190 assert(&(Builder.GetInsertBlock()->back()) == Assumption && in emitAlignmentAssumptionCheck()
3204 Assumption->removeFromParent(); in emitAlignmentAssumptionCheck()
3224 Builder.Insert(Assumption); in emitAlignmentAssumptionCheck()
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/
H A DRetainCountChecker.h315 bool Assumption) const;
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerManager.h442 SVal Cond, bool Assumption);
/freebsd/contrib/llvm-project/clang/lib/Parse/
H A DParseOpenMP.cpp1689 std::string Assumption = II->getName().str(); in ParseOpenMPAssumesDirective() local
1691 Assumption = "ompx_" + Assumption.substr(ACMI.Identifier.size()); in ParseOpenMPAssumesDirective()
1693 Assumption = "omp_" + Assumption; in ParseOpenMPAssumesDirective()
1694 Assumptions.push_back(Assumption); in ParseOpenMPAssumesDirective()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp5512 CallInst *Assumption; in simplifyUnreachable() local
5514 Assumption = Builder.CreateAssumption(Builder.CreateNot(Cond)); in simplifyUnreachable()
5518 Assumption = Builder.CreateAssumption(Cond); in simplifyUnreachable()
5522 Options.AC->registerAssumption(cast<AssumeInst>(Assumption)); in simplifyUnreachable()
8222 CallInst *Assumption; in removeUndefIntroducingPredecessor() local
8224 Assumption = Builder.CreateAssumption(Builder.CreateNot(Cond)); in removeUndefIntroducingPredecessor()
8226 Assumption = Builder.CreateAssumption(Cond); in removeUndefIntroducingPredecessor()
8228 AC->registerAssumption(cast<AssumeInst>(Assumption)); in removeUndefIntroducingPredecessor()

12