| /freebsd-12.1/tools/regression/include/stdatomic/ |
| H A D | logic.c | 61 assert(atomic_##name(a, v2) == v1); \ 62 assert(atomic_load(a) == (T)(result)); \ 70 assert(v1 == v2); \ 72 assert(atomic_compare_exchange_##name(a, &v2, v3)); \ 73 assert(atomic_load(a) == v3); \ 80 assert(atomic_load(a) == v1); \ 85 assert(atomic_load(a) == v1); \ 107 assert(memcmp(&list, &cmp, sizeof(list)) == 0); \
|
| /freebsd-12.1/usr.sbin/bluetooth/bthidd/ |
| H A D | client.c | 69 assert(srv != NULL); in client_rescan() 128 assert(srv != NULL); in client_connect() 129 assert(fd >= 0); in client_connect() 132 assert(s != NULL); in client_connect() 135 assert(d != NULL); in client_connect() 159 assert(s->ctrl == fd); in client_connect() 160 assert(s->intr == -1); in client_connect() 185 assert(s->ctrl != -1); in client_connect() 186 assert(s->intr == fd); in client_connect() 199 assert(0); in client_connect()
|
| /freebsd-12.1/sys/contrib/libsodium/test/default/ |
| H A D | kx.c | 42 assert(crypto_kx_client_session_keys(client_rx, client_tx, in tv_kx() 53 assert(crypto_kx_server_session_keys(server_rx, server_tx, in tv_kx() 120 assert(memcmp(client_rx, client_tx, crypto_kx_SESSIONKEYBYTES) == 0); in tv_kx() 121 assert(memcmp(client_tx, server_rx, crypto_kx_SESSIONKEYBYTES) == 0); in tv_kx() 122 assert(memcmp(server_rx, server_tx, crypto_kx_SESSIONKEYBYTES) == 0); in tv_kx() 134 assert(strcmp(crypto_kx_primitive(), crypto_kx_PRIMITIVE) == 0); in tv_kx() 135 assert(crypto_kx_publickeybytes() == crypto_kx_PUBLICKEYBYTES); in tv_kx() 136 assert(crypto_kx_secretkeybytes() == crypto_kx_SECRETKEYBYTES); in tv_kx() 137 assert(crypto_kx_seedbytes() == crypto_kx_SEEDBYTES); in tv_kx() 138 assert(crypto_kx_sessionkeybytes() == crypto_kx_SESSIONKEYBYTES); in tv_kx()
|
| H A D | sodium_utils.c | 110 assert(sizeof nonce >= 24U); in main() 126 assert(sizeof nonce >= 24U); in main() 152 assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, in main() 154 assert(sodium_pad(NULL, bin_padded, bin_len, in main() 156 assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, in main() 158 assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, in main() 160 assert(sodium_pad(&bin_padded_len, bin_padded, bin_len, in main() 162 assert(bin_padded_len == bin_padded_maxlen); in main() 164 assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len, in main() 166 assert(sodium_unpad(&bin_len2, bin_padded, bin_padded_len, in main() [all …]
|
| /freebsd-12.1/contrib/libarchive/libarchive/test/ |
| H A D | test_write_disk_secure745.c | 48 assert((a = archive_write_disk_new()) != NULL); in DEFINE_TEST() 59 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 63 assert(0 == archive_write_header(a, ae)); in DEFINE_TEST() 67 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 70 assert(0 == archive_write_header(a, ae)); in DEFINE_TEST() 76 assert(0 == archive_write_close(a)); in DEFINE_TEST()
|
| H A D | test_open_fd.c | 51 assert(fd >= 0); in DEFINE_TEST() 56 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 64 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 76 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 90 assert(lseek(fd, 0, SEEK_SET) == 0); in DEFINE_TEST() 91 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 102 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in DEFINE_TEST() 109 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in DEFINE_TEST() 123 assert((a = archive_read_new()) != NULL); in DEFINE_TEST()
|
| H A D | test_archive_cmdline.c | 37 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 46 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 57 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 70 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 82 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 94 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 107 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 120 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST() 131 assert((cl = __archive_cmdline_allocate()) != NULL); in DEFINE_TEST()
|
| H A D | test_open_file.c | 36 assert(f != NULL); in DEFINE_TEST() 41 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 49 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 61 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 77 assert(f != NULL); in DEFINE_TEST() 80 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 91 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in DEFINE_TEST() 98 assert((S_IFREG | 0755) == archive_entry_mode(ae)); in DEFINE_TEST()
|
| H A D | test_write_filter_lrzip.c | 49 assert(NULL != (buff = (char *)malloc(buffsize))); in DEFINE_TEST() 52 assert(NULL != (data = (char *)malloc(datasize))); in DEFINE_TEST() 58 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 67 assert((ae = archive_entry_new()) != NULL); in DEFINE_TEST() 81 assert((a = archive_read_new()) != NULL); in DEFINE_TEST() 103 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 107 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 112 assert((a = archive_write_new()) != NULL); in DEFINE_TEST() 118 assert((a = archive_write_new()) != NULL); in DEFINE_TEST()
|
| /freebsd-12.1/contrib/jemalloc/include/jemalloc/internal/ |
| H A D | prof_inlines_b.h | 33 assert(tdata == NULL || tdata->attached); in prof_tdata_get() 42 assert(ptr != NULL); in prof_tctx_get() 51 assert(ptr != NULL); in prof_tctx_set() 59 assert(ptr != NULL); in prof_tctx_reset() 107 assert(usize == sz_s2u(usize)); in prof_alloc_prep() 125 assert(ptr != NULL); in prof_malloc() 126 assert(usize == isalloc(tsdn, ptr)); in prof_malloc() 143 assert(ptr != NULL || (uintptr_t)tctx <= (uintptr_t)1U); in prof_realloc() 146 assert(usize == isalloc(tsd_tsdn(tsd), ptr)); in prof_realloc() 178 assert((uintptr_t)prof_tctx_get(tsd_tsdn(tsd), ptr, NULL) == in prof_realloc() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/llvm-pdbutil/ |
| H A D | InputFile.cpp | 299 assert(isPdb()); in pdb() 304 assert(isPdb()); in pdb() 309 assert(isObj()); in obj() 314 assert(isObj()); in obj() 319 assert(isUnknown()); in unknown() 324 assert(isUnknown()); in unknown() 389 assert(isObj()); in getOrCreateTypeCollection() 391 assert(!Types); in getOrCreateTypeCollection() 454 assert(!isEnd()); in operator *() 458 assert(!isEnd()); in operator *() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/NVPTX/ |
| H A D | NVVMReflect.cpp | 81 assert(F.isDeclaration() && "_reflect function should not have a body"); in runOnFunction() 82 assert(F.getReturnType()->isIntegerTy() && in runOnFunction() 125 assert(Call->getNumOperands() == 2 && in runOnFunction() 135 assert(isa<ConstantExpr>(Str) && in runOnFunction() 140 assert(isa<Constant>(Sym) && in runOnFunction() 147 assert(GV->hasInitializer() && in runOnFunction() 153 assert(isa<ConstantDataSequential>(Operand) && in runOnFunction() 155 assert(cast<ConstantDataSequential>(Operand)->isCString() && in runOnFunction()
|
| /freebsd-12.1/contrib/expat/tests/ |
| H A D | chardata.c | 23 assert(s != NULL); in xmlstrlen() 33 assert(storage != NULL); in CharData_Init() 43 assert(s != NULL); in CharData_AppendString() 61 assert(storage != NULL); in CharData_AppendXMLChars() 62 assert(s != NULL); in CharData_AppendXMLChars() 85 assert(storage != NULL); in CharData_CheckString() 86 assert(expected != NULL); in CharData_CheckString() 114 assert(storage != NULL); in CharData_CheckXMLChars()
|
| /freebsd-12.1/contrib/jemalloc/src/ |
| H A D | extent.c | 232 assert(size > 0); in extent_size_quantize_floor() 246 assert(ret <= size); in extent_size_quantize_floor() 257 assert(size > 0); in extent_size_quantize_ceil() 374 assert(i < NPSIZES); in extents_fit_alignment() 444 assert(i < NPSIZES); in extents_first_fit_locked() 783 assert(!err); in extent_reregister() 868 assert(pad == 0); in extent_recycle_extract() 1142 assert(size != 0); in extent_alloc_core() 1393 assert(size != 0); in extent_alloc_retained() 1871 assert(length != 0); in extent_purge_lazy_default() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Support/ |
| H A D | ScaledNumber.cpp | 60 assert(Dividend && "expected non-zero dividend"); in divide32() 61 assert(Divisor && "expected non-zero divisor"); in divide32() 83 assert(Dividend && "expected non-zero dividend"); in divide64() 84 assert(Divisor && "expected non-zero divisor"); in divide64() 126 assert(ScaleDiff >= 0 && "wrong argument order"); in compareImpl() 127 assert(ScaleDiff < 64 && "numbers too far apart"); in compareImpl() 139 assert(D < 10); in appendDigit() 164 assert(E >= ScaledNumbers::MinScale); in toStringAPFloat() 165 assert(E <= ScaledNumbers::MaxScale); in toStringAPFloat() 171 assert(Shift <= LeadingZeros); in toStringAPFloat() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/Lanai/MCTargetDesc/ |
| H A D | LanaiMCCodeEmitter.cpp | 119 assert(MCOp.isExpr()); in getMachineOpValue() 194 assert(Op1.isReg() && "First operand is not register."); in getRiMemoryOpValue() 195 assert((Op2.isImm() || Op2.isExpr()) && in getRiMemoryOpValue() 197 assert((LPAC::getAluOp(AluOp.getImm()) == LPAC::ADD) && in getRiMemoryOpValue() 202 assert(isInt<16>(Op2.getImm()) && in getRiMemoryOpValue() 226 assert(Op1.isReg() && "First operand is not register."); in getRrMemoryOpValue() 228 assert(Op2.isReg() && "Second operand is not register."); in getRrMemoryOpValue() 265 assert(Op1.isReg() && "First operand is not register."); in getSplsOpValue() 266 assert((Op2.isImm() || Op2.isExpr()) && in getSplsOpValue() 268 assert((LPAC::getAluOp(AluOp.getImm()) == LPAC::ADD) && in getSplsOpValue() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DbgEntityHistoryCalculator.cpp | 38 assert(MI.isDebugValue()); in isDescribedByReg() 39 assert(MI.getNumOperands() == 4); in isDescribedByReg() 49 assert(MI.isDebugValue() && "not a DBG_VALUE"); in startInstrRange() 64 assert(!Ranges.empty() && Ranges.back().second == nullptr); in endInstrRange() 67 assert(Ranges.back().first->getParent() == MI.getParent()); in endInstrRange() 82 assert(MI.isDebugLabel() && "not a DBG_LABEL"); in addInstr() 98 assert(RegNo != 0U && I != RegVars.end()); in dropRegDescribedVar() 101 assert(VarPos != VarSet.end()); in dropRegDescribedVar() 111 assert(RegNo != 0U); in addRegDescribedVar() 113 assert(!is_contained(VarSet, Var)); in addRegDescribedVar() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/ |
| H A D | GCNMinRegStrategy.cpp | 46 assert(!SU->isBoundaryNode()); in isScheduled() 51 assert(!SU->isBoundaryNode()); in setIsScheduled() 56 assert(!SU->isBoundaryNode()); in getNumPreds() 62 assert(!SU->isBoundaryNode()); in decNumPreds() 99 assert(!PSU->isBoundaryNode()); in getReadySuccessors() 116 assert(!RQ.empty() && Num <= RQ.size()); in findMax() 178 assert(Num == 1); in pickCandidate() 192 assert(!PSU->isBoundaryNode()); in bumpPredsPriority() 201 assert(!SU->isBoundaryNode()); in bumpPredsPriority() 258 assert(C); in schedule() [all …]
|
| /freebsd-12.1/contrib/libevent/test/ |
| H A D | regress_rpc.c | 116 assert(header); in MessageCb() 117 assert(strcmp(header, "input") == 0); in MessageCb() 315 assert(pool != NULL); in rpc_pool_with_connection() 318 assert(evcon != NULL); in rpc_pool_with_connection() 336 assert(header); in GotKillCb() 337 assert(strcmp(header, "ran") == 0); in GotKillCb() 430 assert(header != NULL); in rpc_hook_remove_header() 431 assert(strcmp(header, arg) == 0); in rpc_hook_remove_header() 437 assert(data != NULL); in rpc_hook_remove_header() 438 assert(data_len == 5); in rpc_hook_remove_header() [all …]
|
| /freebsd-12.1/contrib/ntp/sntp/libevent/test/ |
| H A D | regress_rpc.c | 116 assert(header); in MessageCb() 117 assert(strcmp(header, "input") == 0); in MessageCb() 315 assert(pool != NULL); in rpc_pool_with_connection() 318 assert(evcon != NULL); in rpc_pool_with_connection() 336 assert(header); in GotKillCb() 337 assert(strcmp(header, "ran") == 0); in GotKillCb() 430 assert(header != NULL); in rpc_hook_remove_header() 431 assert(strcmp(header, arg) == 0); in rpc_hook_remove_header() 437 assert(data != NULL); in rpc_hook_remove_header() 438 assert(data_len == 5); in rpc_hook_remove_header() [all …]
|
| /freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/ |
| H A D | DependentDiagnostic.h | 66 assert(getKind() == Access); in isAccessToMember() 71 assert(getKind() == Access); in getAccess() 76 assert(getKind() == Access); in getAccessLoc() 81 assert(getKind() == Access); in getAccessTarget() 86 assert(getKind() == Access); in getAccessNamingClass() 91 assert(getKind() == Access); in getAccessBaseObjectType() 140 assert(Ptr && "attempt to increment past end of diag list"); 160 assert(N >= 0 && "cannot rewind a DeclContext::ddiag_iterator"); 177 assert(isDependentContext() in ddiags()
|
| /freebsd-12.1/contrib/llvm/include/llvm/IR/ |
| H A D | Statepoint.h | 116 assert(*this && "check validity first!"); in getCallSite() 185 assert((getCallSite().arg_end() - I) >= 0); in arg_end() 190 assert(Index < arg_size() && "out of bounds!"); in getArgument() 213 assert((getCallSite().arg_end() - I) >= 0); in gc_transition_args_begin() 218 assert((getCallSite().arg_end() - I) >= 0); in gc_transition_args_end() 236 assert((getCallSite().arg_end() - I) >= 0); in deopt_begin() 241 assert((getCallSite().arg_end() - I) >= 0); in deopt_end() 287 assert(getNumCallArgs() >= 0 && in verify() 356 assert(isStatepoint(Token)); in getStatepoint() 365 assert(InvokeBB->getTerminator() && in getStatepoint() [all …]
|
| /freebsd-12.1/usr.sbin/autofs/ |
| H A D | common.c | 80 assert(s != NULL); in checked_strdup() 137 assert(path[0] == '/'); in create_directory() 191 assert(key != NULL); in node_new() 192 assert(key[0] != '\0'); in node_new() 204 assert(parent != NULL); in node_new() 222 assert(key != NULL); in node_new_map() 223 assert(key[0] != '\0'); in node_new_map() 265 assert (n != NULL); in node_delete() 309 assert(yyin != NULL); in node_expand_includes() 427 assert(key != NULL); in node_expand_wildcard() [all …]
|
| /freebsd-12.1/contrib/llvm/lib/IR/ |
| H A D | User.cpp | 24 assert((!isa<Constant>(this) || isa<GlobalValue>(this)) && in replaceUsesOfWith() 41 assert(HasHungOffUses && "alloc must have hung off uses"); in allocHungoffUses() 60 assert(HasHungOffUses && "realloc must have hung off uses"); in growHungoffUses() 66 assert(NewNumUses > OldNumUses && "realloc must grow num uses"); in growHungoffUses() 99 assert(HasDescriptor && "Don't call otherwise!"); in getDescriptor() 100 assert(!HasHungOffUses && "Invariant!"); in getDescriptor() 103 assert(DI->SizeInBytes != 0 && "Should not have had a descriptor otherwise!"); in getDescriptor() 115 assert(Us < (1u << NumUserOperandsBits) && "Too many operands"); in allocateFixedOperandUser() 121 assert(DescBytesToAllocate % sizeof(void *) == 0 && in allocateFixedOperandUser() 171 assert(!Obj->HasDescriptor && "not supported!"); in operator delete()
|
| /freebsd-12.1/sys/contrib/zstd/zlibWrapper/examples/ |
| H A D | fitblk_original.c | 87 assert(ret != Z_STREAM_ERROR); in partcompress() 107 assert(ret != Z_STREAM_ERROR && ret != Z_DATA_ERROR && in recompress() 118 assert(ret != Z_STREAM_ERROR); in recompress() 171 assert(ret != Z_STREAM_ERROR); in main() 190 assert(ret != Z_STREAM_ERROR); in main() 203 assert(ret != Z_STREAM_ERROR); in main() 205 assert(ret != Z_STREAM_ERROR); in main() 215 assert(ret == Z_STREAM_END); /* otherwise MARGIN too small */ in main() 225 assert(ret != Z_STREAM_ERROR); in main() 227 assert(ret != Z_STREAM_ERROR); in main()
|