aboutsummaryrefslogtreecommitdiff
path: root/src/solvers/h48
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-07-28 13:52:00 +0200
commit7f24b27652ee6fa84e38f181cea57f319af0c204 (patch)
tree269b15baf20c2ae4ed3bb1fdb052340311aa1981 /src/solvers/h48
parent9b248f3b46d5dc0e9522ed264ef71e422a5bc5a5 (diff)
downloadnissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.tar.gz
nissy-core-7f24b27652ee6fa84e38f181cea57f319af0c204.zip
Make failed assert exit immediately
Diffstat (limited to 'src/solvers/h48')
-rw-r--r--src/solvers/h48/coordinate.h5
-rw-r--r--src/solvers/h48/gendata_cocsep.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/src/solvers/h48/coordinate.h b/src/solvers/h48/coordinate.h
index eb08fd8..9437fa7 100644
--- a/src/solvers/h48/coordinate.h
+++ b/src/solvers/h48/coordinate.h
@@ -15,7 +15,7 @@ coord_h48(
15 uint32_t data; 15 uint32_t data;
16 uint8_t ttrep; 16 uint8_t ttrep;
17 17
18 DBG_ASSERT(h <= 11, -1, "coord_h48: h must be between 0 and 11\n"); 18 DBG_ASSERT(h <= 11, "coord_h48: h must be between 0 and 11\n");
19 19
20 cocsep = coord_cocsep(c); 20 cocsep = coord_cocsep(c);
21 data = cocsepdata[cocsep]; 21 data = cocsepdata[cocsep];
@@ -54,8 +54,7 @@ invcoord_h48(
54 cube_t ret; 54 cube_t ret;
55 int64_t hh, coclass, ee, esep, eo; 55 int64_t hh, coclass, ee, esep, eo;
56 56
57 DBG_ASSERT(h <= 11, ZERO_CUBE, 57 DBG_ASSERT(h <= 11, "invcoord_h48: h must be between 0 and 11\n");
58 "invcoord_h48: h must be between 0 and 11\n");
59 58
60 hh = (int64_t)h; 59 hh = (int64_t)h;
61 coclass = i / H48_ESIZE(h); 60 coclass = i / H48_ESIZE(h);
diff --git a/src/solvers/h48/gendata_cocsep.h b/src/solvers/h48/gendata_cocsep.h
index 3117a8e..7a589b5 100644
--- a/src/solvers/h48/gendata_cocsep.h
+++ b/src/solvers/h48/gendata_cocsep.h
@@ -61,9 +61,8 @@ gendata_cocsep(
61 61
62 writetableinfo(&info, COCSEP_FULLSIZE, buf); 62 writetableinfo(&info, COCSEP_FULLSIZE, buf);
63 63
64 DBG_ASSERT(n == COCSEP_CLASSES, 0, 64 DBG_ASSERT(n == COCSEP_CLASSES, "cocsep: computed %" PRIu16
65 "cocsep: computed %" PRIu16 " symmetry classes, " 65 " symmetry classes, expected %zu\n", n, COCSEP_CLASSES);
66 "expected %zu\n", n, COCSEP_CLASSES);
67 66
68 LOG("[H48 gendata] cocsep data computed\n"); 67 LOG("[H48 gendata] cocsep data computed\n");
69 68

Generated with cgit - Back to sebastiano.tronto.net