Skip to content

Commit 44a533f

Browse files
committed
Test rawTerm support
1 parent 063b1f0 commit 44a533f

File tree

6 files changed

+246
-192
lines changed

6 files changed

+246
-192
lines changed

include/runtime/header.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ extern const uint32_t first_inj_tag, last_inj_tag;
410410
bool is_injection(block *);
411411
block *strip_injection(block *);
412412
block *constructKItemInj(void *subject, const char *sort, bool raw_value);
413-
block *constructRawTerm(void *subject, const char *sort);
413+
block *constructRawTerm(void *subject, const char *sort, bool raw_value);
414414
}
415415

416416
std::string floatToString(const floating *);

runtime/util/ConfigurationSerializer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ void serializeTermToFile(
441441

442442
void serializeRawTermToFile(
443443
const char *filename, void *subject, const char *sort) {
444-
block *term = constructRawTerm(subject, sort);
444+
block *term = constructRawTerm(subject, sort, true);
445445

446446
char *data;
447447
size_t size;
@@ -455,7 +455,7 @@ void serializeRawTermToFile(
455455
std::shared_ptr<kllvm::KOREPattern>
456456
sortedTermToKorePattern(block *subject, const char *sort) {
457457
auto is_kitem = (std::string(sort) == "SortKItem{}");
458-
block *term = is_kitem ? subject : constructRawTerm(subject, sort);
458+
block *term = is_kitem ? subject : constructRawTerm(subject, sort, false);
459459

460460
char *data_out;
461461
size_t size_out;

runtime/util/util.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ block *constructKItemInj(void *subject, const char *sort, bool raw_value) {
3535
return static_cast<block *>(constructCompositePattern(tag, args));
3636
}
3737

38-
block *constructRawTerm(void *subject, const char *sort) {
38+
block *constructRawTerm(void *subject, const char *sort, bool raw_value) {
3939
auto tag = getTagForSymbolName("rawTerm{}");
4040
auto args = std::vector{
4141
static_cast<void *>(constructKItemInj(subject, sort, true))};

0 commit comments

Comments
 (0)