Searched refs:assert (Results 76 - 100 of 4757) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/contrib/zlib/test/
H A Dinfcover.c11 #include <assert.h>
163 assert(zone != NULL);
301 out = malloc(len); assert(out != NULL);
309 ret = inflateGetHeader(&strm, &head); assert(ret == Z_OK);
311 in = h2b(hex, &have); assert(in != NULL);
320 ret = inflate(&strm, Z_NO_FLUSH); assert(err == 9 || ret == err);
325 assert(ret == Z_DATA_ERROR);
328 assert(ret == Z_MEM_ERROR);
332 assert(ret == Z_OK);
333 ret = inflate(&strm, Z_NO_FLUSH); assert(re
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOperand.h223 assert(!isReg() && "Register operands can't have target flags");
225 assert(SubReg_TargetFlags == F && "Target flags out of range");
228 assert(!isReg() && "Register operands can't have target flags");
230 assert((SubReg_TargetFlags & F) && "Target flags out of range");
359 assert(isReg() && "This is not a register operand!");
364 assert(isReg() && "Wrong MachineOperand accessor");
369 assert(isReg() && "Wrong MachineOperand accessor");
374 assert(isReg() && "Wrong MachineOperand accessor");
379 assert(isReg() && "Wrong MachineOperand accessor");
384 assert(isRe
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DCommentLexer.h99 assert(is(tok::text));
104 assert(is(tok::text));
110 assert(is(tok::unknown_command));
115 assert(is(tok::unknown_command));
121 assert(is(tok::backslash_command) || is(tok::at_command));
126 assert(is(tok::backslash_command) || is(tok::at_command));
131 assert(is(tok::verbatim_block_begin) || is(tok::verbatim_block_end));
136 assert(is(tok::verbatim_block_begin) || is(tok::verbatim_block_end));
141 assert(is(tok::verbatim_block_line));
146 assert(i
[all...]
/freebsd-11-stable/contrib/libarchive/libarchive/test/
H A Dtest_acl_posix1e.c106 assert((ae = archive_entry_new()) != NULL);
121 assert(0 == archive_entry_acl_reset(ae, ARCHIVE_ENTRY_ACL_TYPE_ACCESS));
124 assert((archive_entry_mode(ae) & 0777) == 0142);
131 assert((archive_entry_acl_types(ae) &
133 assert((archive_entry_acl_types(ae) &
136 assert(4 == archive_entry_acl_reset(ae, ARCHIVE_ENTRY_ACL_TYPE_ACCESS));
141 assert((archive_entry_mode(ae) & 0777) == 0142);
151 assert((archive_entry_mode(ae) & 0777) == 0543);
159 assert(0 == archive_entry_acl_reset(ae, ARCHIVE_ENTRY_ACL_TYPE_ACCESS));
162 assert((archive_entry_mod
[all...]
H A Dtest_write_disk.c44 assert((ad = archive_write_disk_new()) != NULL);
51 assert(0 == stat(archive_entry_pathname(ae), &st));
70 assert((ad = archive_write_disk_new()) != NULL);
118 assert((ad = archive_write_disk_new()) != NULL);
147 assert((ad = archive_write_disk_new()) != NULL);
157 assert(0 == stat(archive_entry_pathname(ae), &st));
174 assert((ad = archive_write_disk_new()) != NULL);
183 assert(0 == stat(archive_entry_pathname(ae), &st));
203 assert((ad = archive_write_disk_new()) != NULL);
216 assert(NUL
[all...]
H A Dtest_archive_string.c46 assert(NULL != (as).s); \
58 assert(&s == archive_string_ensure(&s, 5));
62 assert(&s == archive_string_ensure(&s, EXTENT - 1));
65 assert(&s == archive_string_ensure(&s, EXTENT));
68 assert(&s == archive_string_ensure(&s, EXTENT + 1));
83 assert(&s == archive_strcat(&s, ""));
87 assert(&s == archive_strcat(&s, ""));
91 assert(&s == archive_strcat(&s, "fubar"));
95 assert(&s == archive_strcat(&s, "baz"));
133 assert(
[all...]
H A Dtest_write_disk_times.c40 assert((a = archive_write_disk_new()) != NULL);
47 assert((ae = archive_entry_new()) != NULL);
62 assert((ae = archive_entry_new()) != NULL);
75 assert((ae = archive_entry_new()) != NULL);
89 assert((ae = archive_entry_new()) != NULL);
103 assert((ae = archive_entry_new()) != NULL);
118 assert((ae = archive_entry_new()) != NULL);
136 assert((ae = archive_entry_new()) != NULL);
151 assert((ae = archive_entry_new()) != NULL);
H A Dtest_write_format_tar_empty.c40 assert((a = archive_write_new()) != NULL);
51 assert(used == 1024);
54 assert(buff[i] == 0);
58 assert((a = archive_write_new()) != NULL);
72 assert(buff[i] == 0);
/freebsd-11-stable/lib/msun/tests/
H A Dexponential_test.c34 #include <assert.h>
55 * These are macros instead of functions so that assert provides more
63 assert(feclearexcept(FE_ALL_EXCEPT) == 0); \
64 assert(fpequal((func)(_d), (result))); \
65 assert(((void)(func), fetestexcept(exceptmask) == (excepts))); \
137 assert(exp2f(i) == ldexpf(1.0, i));
138 assert(fetestexcept(ALL_STD_EXCEPT) == 0);
141 assert(exp2(i) == ldexp(1.0, i));
142 assert(fetestexcept(ALL_STD_EXCEPT) == 0);
145 assert(exp2
[all...]
/freebsd-11-stable/lib/libpjdlog/
H A Dpjdlog.c40 #include <assert.h>
82 assert(n >= 1);
108 assert(n >= 1);
225 assert(pjdlog_initialized == PJDLOG_NEVER_INITIALIZED ||
228 assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG ||
231 assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG);
268 assert(pjdlog_initialized == PJDLOG_INITIALIZED);
292 assert(pjdlog_initialized == PJDLOG_INITIALIZED);
294 assert(mode == PJDLOG_MODE_STD || mode == PJDLOG_MODE_SYSLOG ||
297 assert(mod
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/
H A DMPIFunctionClassifier.cpp33 assert(IdentInfo_MPI_Send);
39 assert(IdentInfo_MPI_Isend);
44 assert(IdentInfo_MPI_Ssend);
50 assert(IdentInfo_MPI_Issend);
55 assert(IdentInfo_MPI_Bsend);
61 assert(IdentInfo_MPI_Ibsend);
66 assert(IdentInfo_MPI_Rsend);
71 assert(IdentInfo_MPI_Irsend);
76 assert(IdentInfo_MPI_Recv);
82 assert(IdentInfo_MPI_Irec
[all...]
/freebsd-11-stable/contrib/ldns/compat/
H A Db64_ntop.c140 assert(output[0] < 64);
141 assert(output[1] < 64);
142 assert(output[2] < 64);
143 assert(output[3] < 64);
164 assert(output[0] < 64);
165 assert(output[1] < 64);
166 assert(output[2] < 64);
/freebsd-11-stable/lib/libc/tests/string/
H A Dstpncpy_test.c32 #include <assert.h>
46 assert(buf);
48 assert(munmap(buf + alloc_size - PAGE_SIZE, PAGE_SIZE) == 0);
51 assert(munmap(buf, PAGE_SIZE) == 0);
72 assert(stpncpy(dst, src, bufsize) == dst+len);
73 assert(memcmp(src, dst, len) == 0);
75 assert(dst[x] == '\0');
/freebsd-11-stable/contrib/libarchive/tar/test/
H A Dtest_option_r.c53 if (!assert(p0 != NULL))
55 if (!assert(s >= 2048))
64 assert(buff != NULL);
80 if (!assert(p1 != NULL))
83 assert(s >= 2560 + buff_size_rounded);
106 if (!assert(p1 != NULL))
108 assert(s >= 3584 + buff_size_rounded);
/freebsd-11-stable/usr.sbin/bhyve/
H A Drtc.c37 #include <assert.h>
92 assert(err == 0);
94 assert(err == 0);
98 assert(err == 0);
100 assert(err == 0);
102 assert(err == 0);
105 assert(err == 0);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DOrderedBasicBlock.cpp37 assert(!(LastInstFound == BB->end() && NextInstPos != 0) &&
39 assert(A->getParent() == BB && "Instruction supposed to be in the block!");
40 assert(B->getParent() == BB && "Instruction supposed to be in the block!");
56 assert(II != IE && "Instruction not found?");
57 assert((Inst == A || Inst == B) && "Should find A or B");
67 assert(A->getParent() == B->getParent() &&
69 assert(A->getParent() == BB && "Instructions must be in the tracked block!");
/freebsd-11-stable/contrib/llvm-project/clang/lib/Serialization/
H A DInMemoryModuleCache.cpp28 assert(Insertion.second && "Already has a PCM");
36 assert(!PCM.IsFinal && "Trying to override finalized PCM?");
37 assert(!PCM.Buffer && "Trying to override tentative PCM?");
61 assert(I != PCMs.end() && "PCM to remove is unknown...");
64 assert(PCM.Buffer && "PCM to remove is scheduled to be built...");
75 assert(I != PCMs.end() && "PCM to finalize is unknown...");
78 assert(PCM.Buffer && "Trying to finalize a dropped PCM...");
/freebsd-11-stable/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DDbiModuleList.cpp49 assert(Modules == R.Modules);
50 assert(Modi == R.Modi);
51 assert(!isEnd());
52 assert(!R.isEnd());
59 assert(isCompatible(R));
72 assert(isCompatible(R));
73 assert(!(*this < R));
79 assert(!R.isEnd());
91 assert(Thisi >= R.Filei);
97 assert(!isEn
[all...]
/freebsd-11-stable/tools/regression/include/stdatomic/
H A Dlogic.c30 #include <assert.h>
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-11-stable/contrib/llvm-project/lldb/source/Core/
H A DRichManglingContext.cpp26 assert(m_provider == PluginCxxLanguage);
31 assert(new_provider != None && "Only reset to a valid provider");
61 assert(m_provider != None && "Initialize a provider first");
78 assert(m_provider != None && "Initialize a provider first");
93 assert(res_size == m_ipd_buf_size &&
102 assert(ipd_res[res_size - 1] == '\0' &&
120 assert(m_provider != None && "Initialize a provider first");
138 assert(m_provider != None && "Initialize a provider first");
156 assert(m_provider != None && "Initialize a provider first");
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Option/
H A DOption.h88 assert(Info && "Must have a valid info!");
93 assert(Info && "Must have a valid info!");
99 assert(Info && "Must have a valid info!");
104 assert(Info && "Must have a valid info!");
105 assert(Owner && "Must have a valid owner!");
110 assert(Info && "Must have a valid info!");
111 assert(Owner && "Must have a valid owner!");
118 assert(Info && "Must have a valid info!");
119 assert((!Info->AliasArgs || Info->AliasArgs[0] != 0) &&
/freebsd-11-stable/contrib/ntp/include/
H A Dntp_assert.h47 * Coverity has special knowledge that assert(x) terminates the process
55 #define ALWAYS_REQUIRE(x) assert(x)
56 #define ALWAYS_INSIST(x) assert(x)
57 #define ALWAYS_INVARIANT(x) assert(x)
58 #define ALWAYS_ENSURE(x) assert(x)
64 #include <assert.h>
66 #define ALWAYS_REQUIRE(x) assert(x)
67 #define ALWAYS_INSIST(x) assert(x)
68 #define ALWAYS_INVARIANT(x) assert(x)
69 #define ALWAYS_ENSURE(x) assert(
[all...]
/freebsd-11-stable/contrib/jemalloc/src/
H A Dchunk_mmap.c27 assert(ret != NULL);
52 assert(alignment != 0);
53 assert((alignment & chunksize_mask) == 0);
58 assert(new_addr == NULL);
65 assert(ret != NULL);
/freebsd-11-stable/contrib/groff/src/libs/libgroff/
H A Derrarg.cpp23 #include "assert.h"
100 assert(format != 0);
110 assert(!arg1.empty());
114 assert(!arg2.empty());
118 assert(!arg3.empty());
122 assert(0);
/freebsd-11-stable/sys/mips/mediatek/
H A Dfdt_reset.c48 * Be liberal about errors for now: warn about a failure to (de)assert but keep
53 assert_deassert_all(device_t consumer, boolean_t assert) argument
64 if (!assert && ncells < 2) {
74 if (!assert)
81 if (assert)
86 if (!assert)

Completed in 354 milliseconds

1234567891011>>