| /freebsd-14.2/contrib/llvm-project/llvm/lib/Support/ |
| H A D | IntervalMap.cpp | 20 assert(!path.empty() && "Can't replace missing root"); in replaceRoot() 49 assert(Level != 0 && "Cannot move the root node"); in moveLeft() 56 assert(l != 0 && "Cannot move beyond begin()"); in moveLeft() 99 assert(Level != 0 && "Cannot move the root node"); in moveRight() 123 assert(Elements + Grow <= Nodes * Capacity && "Not enough room for elements"); in distribute() 124 assert(Position <= Elements && "Invalid position"); in distribute() 138 assert(Sum == Elements + Grow && "Bad distribution sum"); in distribute() 142 assert(PosPair.first < Nodes && "Bad algebra"); in distribute() 143 assert(NewSize[PosPair.first] && "Too few elements to need Grow"); in distribute() 150 assert(NewSize[n] <= Capacity && "Overallocated node"); in distribute() [all …]
|
| /freebsd-14.2/sys/contrib/libsodium/test/default/ |
| H A D | aead_xchacha20poly1305.c | 40 assert(sizeof MESSAGE - 1U == MLEN); in tv() 178 … assert(crypto_aead_xchacha20poly1305_ietf_abytes() == crypto_aead_xchacha20poly1305_ietf_ABYTES); in tv() 179 …assert(crypto_aead_xchacha20poly1305_ietf_keybytes() == crypto_aead_xchacha20poly1305_ietf_KEYBYTE… in tv() 180 …assert(crypto_aead_xchacha20poly1305_ietf_npubbytes() == crypto_aead_xchacha20poly1305_ietf_NPUBBY… in tv() 181 assert(crypto_aead_xchacha20poly1305_ietf_nsecbytes() == 0U); in tv() 182 …assert(crypto_aead_xchacha20poly1305_ietf_nsecbytes() == crypto_aead_xchacha20poly1305_ietf_NSECBY… in tv() 184 …assert(crypto_aead_xchacha20poly1305_IETF_KEYBYTES == crypto_aead_xchacha20poly1305_ietf_KEYBYTES… in tv() 185 …assert(crypto_aead_xchacha20poly1305_IETF_NSECBYTES == crypto_aead_xchacha20poly1305_ietf_NSECBYTE… in tv() 186 …assert(crypto_aead_xchacha20poly1305_IETF_NPUBBYTES == crypto_aead_xchacha20poly1305_ietf_NPUBBYTE… in tv() 187 … assert(crypto_aead_xchacha20poly1305_IETF_ABYTES == crypto_aead_xchacha20poly1305_ietf_ABYTES); in tv() [all …]
|
| H A D | aead_aes256gcm.c | 3106 assert(strlen(tests[i].key_hex) == 2 * crypto_aead_aes256gcm_KEYBYTES); in tv() 3110 assert(strlen(tests[i].nonce_hex) == 2 * crypto_aead_aes256gcm_NPUBBYTES); in tv() 3127 assert(strlen(tests[i].ciphertext_hex) == 2 * message_len); in tv() 3131 assert(strlen(tests[i].mac_hex) == 2 * crypto_aead_aes256gcm_ABYTES); in tv() 3142 assert(found_mac_len == crypto_aead_aes256gcm_ABYTES); in tv() 3159 assert((size_t) found_ciphertext_len == ciphertext_len); in tv() 3198 assert((size_t) found_message_len == message_len); in tv() 3234 assert(crypto_aead_aes256gcm_keybytes() == crypto_aead_aes256gcm_KEYBYTES); in main() 3235 assert(crypto_aead_aes256gcm_nsecbytes() == crypto_aead_aes256gcm_NSECBYTES); in main() 3236 assert(crypto_aead_aes256gcm_npubbytes() == crypto_aead_aes256gcm_NPUBBYTES); in main() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 429 assert(MaxPointerWidth == 32 || MaxPointerWidth == 64); in adjust() 932 assert(AccumScale + getAccumIBits() + 1 <= AccumWidth); in CheckFixedPointBits() 940 assert(getShortFractScale() + 1 <= ShortFractWidth); in CheckFixedPointBits() 941 assert(getFractScale() + 1 <= FractWidth); in CheckFixedPointBits() 942 assert(getLongFractScale() + 1 <= LongFractWidth); in CheckFixedPointBits() 944 assert(getUnsignedFractScale() <= FractWidth); in CheckFixedPointBits() 945 assert(getUnsignedLongFractScale() <= LongFractWidth); in CheckFixedPointBits() 951 assert(getFractScale() == getUnsignedFractScale() || in CheckFixedPointBits() 963 assert(getLongFractScale() >= getFractScale() && in CheckFixedPointBits() 976 assert(getLongAccumIBits() >= getAccumIBits() && in CheckFixedPointBits() [all …]
|
| /freebsd-14.2/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_perms.c | 64 assert(fd > 0); in searchgid() 67 assert(fstat(fd, &st) == 0); in searchgid() 151 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 169 assert((st.st_mode & 07777) != 0144); in DEFINE_TEST() 245 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 253 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 266 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 282 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 295 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() 332 assert(archive_entry_clear(ae) != NULL); in DEFINE_TEST() [all …]
|
| H A D | test_write_format_ar.c | 43 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 48 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 56 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 58 assert(1 == archive_entry_mtime(ae)); in DEFINE_TEST() 67 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 76 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 85 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 92 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 108 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 144 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() [all …]
|
| H A D | test_write_filter_lzop.c | 42 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 55 assert(NULL != (buff = malloc(buffsize))); in DEFINE_TEST() 64 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 76 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 90 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 115 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 151 assert(used2 < used1); in DEFINE_TEST() 153 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 178 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 206 assert(used2 > used1); in DEFINE_TEST() [all …]
|
| H A D | test_write_format_cpio_newc.c | 60 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 71 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST() 86 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST() 97 assert((entry = archive_entry_new()) != NULL); in DEFINE_TEST() 121 assert(is_hex(e, 110)); /* Entire header is hex digits. */ in DEFINE_TEST() 123 assert(memcmp(e + 6, "00000000", 8) != 0); /* ino != 0 */ in DEFINE_TEST() 142 assert(is_hex(e, 110)); in DEFINE_TEST() 162 assert(is_hex(e, 110)); /* Entire header is hex digits. */ in DEFINE_TEST() 164 assert(memcmp(e + 6, file + 6, 8) != 0); /* ino != file ino */ in DEFINE_TEST() 165 assert(memcmp(e + 6, "00000000", 8) != 0); /* ino != 0 */ in DEFINE_TEST() [all …]
|
| H A D | test_archive_match_path.c | 34 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_mbs() 36 if (!assert((ae = archive_entry_new()) != NULL)) { in test_exclusion_mbs() 77 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_wcs() 178 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_from_file_mbs() 187 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_from_file_mbs() 203 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_from_file_wcs() 212 if (!assert((m = archive_match_new()) != NULL)) in test_exclusion_from_file_wcs() 229 if (!assert((m = archive_match_new()) != NULL)) in test_inclusion_mbs() 278 if (!assert((m = archive_match_new()) != NULL)) in test_inclusion_wcs() 326 if (!assert((m = archive_match_new()) != NULL)) in test_inclusion_from_file_mbs() [all …]
|
| /freebsd-14.2/usr.sbin/makefs/zfs/ |
| H A D | vdev.c | 53 assert(powerof2(size)); in blkptr_set() 86 assert(off >= 0 && off < zfs->asize); in vdev_pwrite() 87 assert(powerof2(len)); in vdev_pwrite() 107 assert(n > 0); in vdev_pwrite() 214 assert(n == sizeof(*label)); in vdev_label_write() 243 assert(len != 0); in vdev_space_alloc() 244 assert(len / minblksz <= INT_MAX); in vdev_space_alloc() 265 assert(loc + nbits > loc); in vdev_space_alloc() 277 assert(powerof2(zfs->mssize)); in vdev_spacemap_init() 407 assert(zfs->spacemap == NULL); in vdev_spacemap_write() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ValueLattice.h | 210 assert(!isa<UndefValue>(C) && "!= undef is not supported"); in getNot() 256 assert(isConstant() && "Cannot get the constant of a non-constant!"); in getConstant() 270 assert(isConstantRange(UndefAllowed) && 296 assert(isUnknown()); in markUndef() 315 assert(isUnknown() || isUndef()); 322 assert(V && "Marking constant with NULL"); in markNotConstant() 335 assert(isUnknown()); in markNotConstant() 369 assert(NewR.contains(getConstantRange()) && 375 assert(isUnknown() || isUndef()); 395 assert(!RHS.isUnknown()); [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
| H A D | VPlanValue.h | 78 assert(!UnderlyingVal && "Underlying Value is already set."); in setUnderlyingValue() 181 assert(isLiveIn() && in getLiveInIRValue() 186 assert(isLiveIn() && in getLiveInIRValue() 255 assert(N < Operands.size() && "Operand index out of bounds"); in getOperand() 287 assert(is_contained(operands(), Op) && in usesScalars() 295 assert(is_contained(operands(), Op) && in onlyFirstLaneUsed() 303 assert(is_contained(operands(), Op) && in onlyFirstPartUsed() 325 assert(V->Def == this && in addDefinedValue() 334 assert(is_contained(DefinedValues, V) && in removeDefinedValue() 386 assert(D->Def == this && in ~VPDef() [all …]
|
| H A D | VPlanHCFGBuilder.cpp | 92 assert(SinglePred == LI->getLoopFor(SinglePred)->getLoopLatch() && in setVPBBPredsFromBB() 127 assert(isa<VPWidenPHIRecipe>(VPVal) && in fixPhiNodes() 130 assert(VPPhi->getNumOperands() == 0 && in fixPhiNodes() 137 assert(Phi->getNumOperands() == 2); in fixPhiNodes() 195 assert(RegionOfVPBB && in getOrCreateVPBB() 201 assert(!RegionOfVPBB && in getOrCreateVPBB() 230 assert(InstParent && "Expected instruction parent."); in isExternalDef() 234 assert(PH && "Expected loop pre-header."); in isExternalDef() 242 assert(Exit && "Expected loop with single exit."); in isExternalDef() 291 assert(!IRDef2VPValue.count(Inst) && in createVPInstructionsForVPBB() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | MemoryLocation.cpp | 104 assert(MTI->getRawSource() == MTI->getArgOperand(1)); in getForSource() 117 assert(MI->getRawDest() == MI->getArgOperand(0)); in getForDest() 180 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument() 190 assert(ArgIdx == 1 && "Invalid argument index"); in getForArgument() 198 assert(ArgIdx == 0 && "Invalid argument index"); in getForArgument() 240 assert( in getForArgument() 262 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument() 274 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument() 288 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument() 305 assert((ArgIdx == 0 || ArgIdx == 1) && in getForArgument() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/AST/Interp/ |
| H A D | Pointer.h | 124 assert(Offset >= Off); in atFieldSub() 203 assert(Pointee); in getDeclDesc() 305 assert(Pointee); in isStatic() 310 assert(Pointee); in isTemporary() 336 assert(Pointee); in getDeclID() 376 assert(isLive() && "Invalid pointer"); in deref() 377 assert(Pointee); in deref() 388 assert(I < getNumElems()); in elem() 389 assert(Pointee); in elem() 451 assert(Pointee); in getDescriptor() [all …]
|
| /freebsd-14.2/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | bitmap.h | 199 assert(bit < binfo->nbits); in bitmap_get() 211 assert(bit < binfo->nbits); in bitmap_set() 219 assert(bitmap_get(bitmap, binfo, bit)); in bitmap_set() 243 assert(min_bit < binfo->nbits); in bitmap_ffu() 269 assert(sib_base > min_bit); in bitmap_ffu() 270 assert(sib_base > bit); in bitmap_ffu() 279 assert(bit >= min_bit); in bitmap_ffu() 280 assert(bit < binfo->nbits); in bitmap_ffu() 306 assert(!bitmap_full(bitmap, binfo)); in bitmap_sfu() 337 assert(bit < binfo->nbits); in bitmap_unset() [all …]
|
| /freebsd-14.2/contrib/elftoolchain/libelf/ |
| H A D | elf_update.c | 390 assert(pt == NULL || in _libelf_extent_is_unused() 824 assert(msz != 0); in _libelf_write_scn() 861 assert(ehdr != NULL); in _libelf_write_ehdr() 907 assert(ehdr != NULL); in _libelf_write_phdr() 910 assert(phnum > 0); in _libelf_write_phdr() 922 assert(phoff > 0); in _libelf_write_phdr() 932 assert(fsz > 0); in _libelf_write_phdr() 970 assert(ehdr != NULL); in _libelf_write_shdr() 984 assert(nscn > 0); in _libelf_write_shdr() 1081 assert(0); in _libelf_write_elf() [all …]
|
| /freebsd-14.2/contrib/expat/tests/ |
| H A D | structdata.c | 66 assert(dup != NULL); in xmlstrdup() 73 assert(storage != NULL); in StructData_Init() 84 assert(storage != NULL); in StructData_AddItem() 85 assert(s != NULL); in StructData_AddItem() 92 assert(new_entries != NULL); in StructData_AddItem() 112 assert(storage != NULL); in StructData_CheckItems() 113 assert(expected != NULL); in StructData_CheckItems() 125 assert(got != NULL); in StructData_CheckItems() 126 assert(want != NULL); in StructData_CheckItems() 151 assert(storage != NULL); in StructData_Dispose()
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeTypes.cpp | 94 assert(UI->getNodeId() == NewNode && in PerformExpensiveChecks() 235 assert(N->getNodeId() == ReadyToProcess && in run() 615 assert(E && "Node not replaced?"); in NodeDeleted() 709 assert(Result.getValueType() == in SetPromotedInteger() 725 assert((VT == EVT::getIntegerVT(Ctx, 80) || in SetSoftenedFloat() 737 assert(Result.getValueType() == in SetPromotedFloat() 748 assert(Result.getValueType() == MVT::i16 && in SetSoftPromotedHalf() 783 assert(Lo.getValueType() == in SetExpandedInteger() 820 assert(Lo.getValueType() == in SetExpandedFloat() 863 assert(Result.getValueType() == in SetWidenedVector() [all …]
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | audio.c | 84 assert(dev_name); in audio_init() 134 assert(aud); in audio_set_params() 135 assert(params); in audio_set_params() 228 assert(aud); in audio_playback() 229 assert(aud->dir); in audio_playback() 230 assert(buf); in audio_playback() 233 assert(audio_fd != -1); in audio_playback() 262 assert(aud); in audio_record() 263 assert(!aud->dir); in audio_record() 264 assert(buf); in audio_record() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/MCA/ |
| H A D | Instruction.cpp | 32 assert(DependentWrites); in writeStartEvent() 33 assert(CyclesLeft == UNKNOWN_CYCLES); in writeStartEvent() 55 assert(CyclesLeft == UNKNOWN_CYCLES); in onInstructionIssued() 91 assert(!PartialWrite && "PartialWrite already set!"); in addUser() 164 assert(Stage == IS_INVALID); in dispatch() 174 assert(Stage == IS_READY); in execute() 189 assert(Stage == IS_READY && "Invalid internal state!"); in forceExecuted() 195 assert(isPending() && "Unexpected instruction stage found!"); in updatePending() 209 assert(isDispatched() && "Unexpected instruction stage found!"); in updateDispatched() 247 assert(isExecuting() && "Instruction not in-flight?"); in cycleEvent() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Value.cpp | 286 assert(I != Ctx.pImpl->ValueNames.end() && in getValueName() 353 assert(NeedNewName); in setNameImpl() 373 assert(NeedNewName); in setNameImpl() 464 assert(M->isMaterialized()); in assertModuleIsMaterializedImpl() 505 assert(!contains(New, this) && in doRAUW() 507 assert(New->getType() == getType() && in doRAUW() 545 assert(New->getType() == getType() && in replaceUsesWithIf() 594 assert(!contains(New, this) && in replaceUsesOutsideBlock() 596 assert(New->getType() == getType() && in replaceUsesOutsideBlock() 790 assert(getType()->isPointerTy()); in canBeFreed() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/include/llvm/MC/ |
| H A D | MCInst.h | 70 assert(isReg() && "This is not a register operand!"); in getReg() 76 assert(isReg() && "This is not a register operand!"); in setReg() 81 assert(isImm() && "This is not an immediate"); in getImm() 86 assert(isImm() && "This is not an immediate"); in setImm() 101 assert(isDFPImm() && "This is not an FP immediate"); in getDFPImm() 106 assert(isDFPImm() && "This is not an FP immediate"); in setDFPImm() 110 assert(isDFPImm() && "This is not an FP immediate"); in setFPImm() 115 assert(isExpr() && "This is not an expression"); in getExpr() 120 assert(isExpr() && "This is not an expression"); in setExpr() 125 assert(isInst() && "This is not a sub-instruction"); in getInst() [all …]
|
| H A D | MCSymbol.h | 192 assert(HasName && "Name is required"); in getNameEntryPtr() 270 assert(isInSection() && "Invalid accessor!"); in getSection() 276 assert(!isVariable() && "Cannot set fragment of variable"); in setFragment() 306 assert(isVariable() && "Invalid accessor!"); 328 assert((SymbolContents == SymContentsUnset || in getOffset() 334 assert((SymbolContents == SymContentsUnset || in setOffset() 343 assert(isCommon() && "Not a 'common' symbol!"); in getCommonSize() 353 assert(getOffset() == 0); 358 assert(Log2Align < (1U << NumCommonAlignmentBits) && 365 assert(isCommon() && "Not a 'common' symbol!"); in getCommonAlignment() [all …]
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | GlobalDecl.h | 62 assert(!isa<CXXDestructorDecl>(D) && "Use other ctor with dtor decls!"); in Init() 81 assert(D->hasAttr<CUDAGlobalAttr>() && "Decl is not a GPU kernel!"); in GlobalDecl() 106 assert(isa<CXXConstructorDecl>(getDecl()) && "Decl is not a ctor!"); in getCtorType() 111 assert(isa<CXXDestructorDecl>(getDecl()) && "Decl is not a dtor!"); in getDtorType() 116 assert(isa<VarDecl>(getDecl()) && in getDynamicInitKind() 123 assert(isa<FunctionDecl>( in getMultiVersionIndex() 133 assert(((isa<FunctionDecl>(getDecl()) && in getKernelReferenceKind() 170 assert(isa<CXXConstructorDecl>(getDecl())); in getWithCtorType() 177 assert(isa<CXXDestructorDecl>(getDecl())); in getWithDtorType() 184 assert(isa<FunctionDecl>(getDecl()) && in getWithMultiVersionIndex() [all …]
|