2092 lines
31 KiB
JSON
2092 lines
31 KiB
JSON
{
|
|
"kind": "cache",
|
|
"seed": 20262260,
|
|
"events": [
|
|
[
|
|
"Z"
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
0,
|
|
1234
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
3,
|
|
65535
|
|
],
|
|
[
|
|
"P",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"R",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"Z"
|
|
],
|
|
[
|
|
"P",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
2,
|
|
71
|
|
],
|
|
[
|
|
"P",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"R",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"R",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
0,
|
|
27583
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
1,
|
|
18501
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
2,
|
|
7033
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
3,
|
|
1035
|
|
],
|
|
[
|
|
"P",
|
|
0
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
0,
|
|
2
|
|
],
|
|
[
|
|
"P",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
0
|
|
],
|
|
[
|
|
"R",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"W",
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"R",
|
|
0
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
2,
|
|
54119
|
|
],
|
|
[
|
|
"P",
|
|
4
|
|
],
|
|
[
|
|
"R",
|
|
0
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
1,
|
|
11101
|
|
],
|
|
[
|
|
"U",
|
|
2
|
|
],
|
|
[
|
|
"A",
|
|
0
|
|
],
|
|
[
|
|
"U",
|
|
4
|
|
],
|
|
[
|
|
"P",
|
|
3
|
|
],
|
|
[
|
|
"W",
|
|
0,
|
|
0,
|
|
44540
|
|
],
|
|
[
|
|
"U",
|
|
4
|
|
],
|
|
[
|
|
"U",
|
|
4
|
|
],
|
|
[
|
|
"U",
|
|
1
|
|
],
|
|
[
|
|
"A",
|
|
1
|
|
],
|
|
[
|
|
"W",
|
|
2,
|
|
0,
|
|
24417
|
|
],
|
|
[
|
|
"R",
|
|
4
|
|
],
|
|
[
|
|
"W",
|
|
1,
|
|
3,
|
|
63243
|
|
]
|
|
],
|
|
"readonly": {
|
|
"command.h": "#ifndef COMMAND_H\n#define COMMAND_H\n#include <stddef.h>\n#include <stdint.h>\n#include <stdio.h>\n#define COMMAND_ARGUMENTS 5u\n#define INPUT_CAPACITY 256u\ntypedef struct {\n char code;\n unsigned count;\n uint32_t argument[COMMAND_ARGUMENTS];\n unsigned line;\n} command_t;\ntypedef struct {\n FILE *stream;\n unsigned line;\n unsigned commands;\n unsigned rejected;\n unsigned exhausted;\n} input_t;\ntypedef struct {\n int status;\n unsigned value;\n unsigned detail;\n} result_t;\ntypedef struct {\n FILE *stream;\n unsigned operation;\n unsigned fields;\n unsigned failures;\n unsigned used;\n char buffer[512];\n} observation_t;\nvoid input_init(input_t *input, FILE *stream);\nint input_next(input_t *input, command_t *command);\nint command_arity(char code);\nint parse_uint32(const char *start, const char **end, uint32_t *value);\nunsigned byte_pattern(unsigned seed, unsigned index);\nunsigned checksum_bytes(const unsigned char *data, unsigned length);\nint range_valid(unsigned offset, unsigned length, unsigned capacity);\nvoid observation_init(observation_t *observation, FILE *stream);\nvoid observation_begin(observation_t *observation, unsigned operation,\n const result_t *result);\nvoid observation_unsigned(observation_t *observation, unsigned value);\nvoid observation_bytes(observation_t *observation, const unsigned char *bytes,\n unsigned length);\nvoid observation_array(observation_t *observation, const unsigned *values,\n unsigned length);\nvoid observation_end(observation_t *observation);\nint observation_status(const observation_t *observation);\n#endif\n",
|
|
"input.c": "#include \"command.h\"\n#include <ctype.h>\n#include <limits.h>\n#include <string.h>\n\nvoid input_init(input_t *input, FILE *stream)\n{\n input->stream = stream;\n input->line = 0u;\n input->commands = 0u;\n input->rejected = 0u;\n input->exhausted = 0u;\n}\n\nint parse_uint32(const char *start, const char **end, uint32_t *value)\n{\n uint32_t accumulated = 0u;\n unsigned digits = 0u;\n const char *cursor = start;\n while (*cursor >= '0' && *cursor <= '9') {\n unsigned digit = (unsigned)(*cursor - '0');\n if (accumulated > (UINT32_MAX - digit) / 10u) {\n return 0;\n }\n accumulated = accumulated * 10u + digit;\n cursor++;\n digits++;\n }\n if (digits == 0u) {\n return 0;\n }\n *value = accumulated;\n *end = cursor;\n return 1;\n}\n\nstatic const char *skip_space(const char *cursor)\n{\n while (*cursor != '\\0' && isspace((unsigned char)*cursor)) {\n cursor++;\n }\n return cursor;\n}\n\nstatic int read_line(input_t *input, char *buffer, unsigned capacity)\n{\n unsigned length = 0u;\n unsigned overflow = 0u;\n unsigned binary = 0u;\n unsigned saw_byte = 0u;\n int byte;\n if (capacity < 2u) {\n return -1;\n }\n for (;;) {\n byte = fgetc(input->stream);\n if (byte == EOF) {\n if (ferror(input->stream)) {\n return -1;\n }\n if (!saw_byte) {\n return 0;\n }\n break;\n }\n saw_byte = 1u;\n if (byte == '\\n') {\n break;\n }\n if (byte == 0) {\n binary = 1u;\n continue;\n }\n if (length + 1u >= capacity) {\n overflow = 1u;\n continue;\n }\n buffer[length] = (char)byte;\n length++;\n }\n input->line++;\n if (length != 0u && buffer[length - 1u] == '\\r') {\n length--;\n }\n buffer[length] = '\\0';\n if (overflow || binary) {\n return -1;\n }\n return 1;\n}\n\nstatic int decode_line(input_t *input, const char *buffer, command_t *command)\n{\n const char *cursor = skip_space(buffer);\n int expected;\n unsigned index;\n if (*cursor == '\\0' || *cursor == '#') {\n return 0;\n }\n command->code = *cursor;\n command->count = 0u;\n command->line = input->line;\n cursor++;\n if (*cursor != '\\0' && !isspace((unsigned char)*cursor)) {\n return -1;\n }\n expected = command_arity(command->code);\n if (expected < 0 || (unsigned)expected > COMMAND_ARGUMENTS) {\n return -1;\n }\n for (index = 0u; index < COMMAND_ARGUMENTS; index++) {\n command->argument[index] = 0u;\n }\n for (index = 0u; index < (unsigned)expected; index++) {\n const char *end;\n uint32_t value;\n cursor = skip_space(cursor);\n if (!parse_uint32(cursor, &end, &value)) {\n return -1;\n }\n if (*end != '\\0' && *end != '#' && !isspace((unsigned char)*end)) {\n return -1;\n }\n command->argument[index] = value;\n command->count++;\n cursor = end;\n }\n cursor = skip_space(cursor);\n if (*cursor != '\\0' && *cursor != '#') {\n return -1;\n }\n return 1;\n}\n\nint input_next(input_t *input, command_t *command)\n{\n char buffer[INPUT_CAPACITY];\n if (input->exhausted) {\n return 0;\n }\n for (;;) {\n int decoded;\n int available = read_line(input, buffer, sizeof(buffer));\n if (available == 0) {\n input->exhausted = 1u;\n return 0;\n }\n if (available < 0) {\n input->rejected++;\n return -1;\n }\n decoded = decode_line(input, buffer, command);\n if (decoded < 0) {\n input->rejected++;\n return -1;\n }\n if (decoded > 0) {\n input->commands++;\n return 1;\n }\n }\n}\n\nunsigned byte_pattern(unsigned seed, unsigned index)\n{\n return (seed + index) & 255u;\n}\n\nunsigned checksum_bytes(const unsigned char *data, unsigned length)\n{\n unsigned index;\n unsigned result = 0u;\n for (index = 0u; index < length; index++) {\n result = (result + (index + 1u) * data[index]) % 65521u;\n }\n return result;\n}\n\nint range_valid(unsigned offset, unsigned length, unsigned capacity)\n{\n if (offset > capacity) {\n return 0;\n }\n if (length > capacity - offset) {\n return 0;\n }\n return length != 0u;\n}\n",
|
|
"observation.c": "#include \"command.h\"\n#include <limits.h>\n\nstatic int observation_flush(observation_t *observation)\n{\n size_t offset = 0u;\n if (observation->failures != 0u) {\n observation->used = 0u;\n return 0;\n }\n while (offset < observation->used) {\n size_t remaining = (size_t)observation->used - offset;\n size_t written = fwrite(observation->buffer + offset, 1u,\n remaining, observation->stream);\n if (written == 0u) {\n observation->failures++;\n observation->used = 0u;\n return 0;\n }\n offset += written;\n }\n observation->used = 0u;\n return 1;\n}\n\nstatic int observation_character(observation_t *observation, char byte)\n{\n if (observation->failures != 0u) {\n return 0;\n }\n if (observation->used == sizeof(observation->buffer)) {\n if (!observation_flush(observation)) {\n return 0;\n }\n }\n observation->buffer[observation->used] = byte;\n observation->used++;\n return 1;\n}\n\nstatic int observation_number(observation_t *observation, unsigned value)\n{\n char reversed[sizeof(unsigned) * CHAR_BIT];\n unsigned count = 0u;\n do {\n unsigned digit = value % 10u;\n reversed[count] = (char)('0' + digit);\n count++;\n value /= 10u;\n } while (value != 0u);\n while (count > 0u) {\n count--;\n if (!observation_character(observation, reversed[count])) {\n return 0;\n }\n }\n return 1;\n}\n\nstatic void observation_signed(observation_t *observation, int value)\n{\n unsigned magnitude;\n if (value < 0) {\n observation_character(observation, '-');\n magnitude = 0u - (unsigned)value;\n } else {\n magnitude = (unsigned)value;\n }\n observation_number(observation, magnitude);\n}\n\nstatic void observation_separator(observation_t *observation)\n{\n observation_character(observation, ' ');\n}\n\nvoid observation_init(observation_t *observation, FILE *stream)\n{\n observation->stream = stream;\n observation->operation = 0u;\n observation->fields = 0u;\n observation->failures = 0u;\n observation->used = 0u;\n}\n\nvoid observation_begin(observation_t *observation, unsigned operation,\n const result_t *result)\n{\n observation->operation = operation;\n observation->fields = 0u;\n observation_character(observation, 'O');\n observation_separator(observation);\n observation_number(observation, operation);\n observation_separator(observation);\n observation_signed(observation, result->status);\n observation_separator(observation);\n observation_number(observation, result->value);\n observation_separator(observation);\n observation_number(observation, result->detail);\n}\n\nvoid observation_unsigned(observation_t *observation, unsigned value)\n{\n observation_separator(observation);\n observation_number(observation, value);\n observation->fields++;\n}\n\nvoid observation_bytes(observation_t *observation, const unsigned char *bytes,\n unsigned length)\n{\n unsigned index;\n for (index = 0u; index < length; index++) {\n observation_unsigned(observation, (unsigned)bytes[index]);\n }\n}\n\nvoid observation_array(observation_t *observation, const unsigned *values,\n unsigned length)\n{\n unsigned index;\n for (index = 0u; index < length; index++) {\n observation_unsigned(observation, values[index]);\n }\n}\n\nvoid observation_end(observation_t *observation)\n{\n observation_character(observation, '\\n');\n observation_flush(observation);\n}\n\nint observation_status(const observation_t *observation)\n{\n if (observation->failures != 0u) {\n return 1;\n }\n if (observation->used != 0u) {\n return 1;\n }\n return ferror(observation->stream) ? 1 : 0;\n}\n",
|
|
"harness.c": "#include \"model.h\"\n#include <stdio.h>\n\nstatic void empty_result(result_t *result)\n{\n result->status = 0;\n result->value = 0u;\n result->detail = 0u;\n}\n\nint main(void)\n{\n state_t state;\n input_t input;\n command_t command;\n observation_t observation;\n unsigned operation = 0u;\n int available;\n input_init(&input, stdin);\n observation_init(&observation, stdout);\n model_init(&state);\n for (;;) {\n result_t result;\n available = input_next(&input, &command);\n if (available == 0) {\n break;\n }\n if (available < 0) {\n fprintf(stderr, \"invalid command on line %u\\n\", input.line);\n return 2;\n }\n operation++;\n empty_result(&result);\n model_apply(&state, &command, &result);\n observation_begin(&observation, operation, &result);\n model_observe(&state, &observation);\n observation_end(&observation);\n }\n if (fflush(stdout) != 0) {\n return 3;\n }\n return observation_status(&observation) ? 3 : 0;\n}\n",
|
|
"model.h": "#ifndef MODEL_H\n#define MODEL_H\n#include \"command.h\"\n#define CHANNELS 4u\n#define PAYLOAD_WORDS 4u\ntypedef struct {\n unsigned staged[PAYLOAD_WORDS];\n unsigned visible[PAYLOAD_WORDS];\n unsigned cached[PAYLOAD_WORDS];\n unsigned dirty;\n unsigned valid;\n unsigned sequence;\n unsigned seen;\n unsigned acknowledged;\n} channel_t;\ntypedef struct {\n channel_t channels[CHANNELS];\n unsigned publications;\n unsigned acquisitions;\n unsigned acknowledgements;\n unsigned rejected;\n unsigned flushes;\n unsigned invalidations;\n} state_t;\nunsigned payload_checksum(const unsigned *words);\nvoid publish_channel(state_t *state, unsigned channel, result_t *result);\nvoid acquire_channel(state_t *state, unsigned channel, result_t *result);\nvoid model_init(state_t *state);\nvoid model_apply(state_t *state, const command_t *command, result_t *result);\nvoid model_observe(const state_t *state, observation_t *observation);\n#endif\n",
|
|
"layout.c": "#include \"model.h\"\nint command_arity(char code)\n{\n switch (code) {\n case 'Z': return 0;\n case 'W': return 3;\n case 'P': return 1;\n case 'U': return 1;\n case 'A': return 1;\n case 'R': return 1;\n default: return -1;\n }\n}\nvoid model_observe(const state_t *state, observation_t *observation)\n{\n unsigned index;\n observation_unsigned(observation, state->publications);\n observation_unsigned(observation, state->acquisitions);\n observation_unsigned(observation, state->acknowledgements);\n observation_unsigned(observation, state->rejected);\n observation_unsigned(observation, state->flushes);\n observation_unsigned(observation, state->invalidations);\n for (index = 0u; index < CHANNELS; index++) {\n const channel_t *channel = &state->channels[index];\n observation_array(observation, channel->staged, PAYLOAD_WORDS);\n observation_array(observation, channel->visible, PAYLOAD_WORDS);\n observation_array(observation, channel->cached, PAYLOAD_WORDS);\n observation_unsigned(observation, channel->dirty);\n observation_unsigned(observation, channel->valid);\n observation_unsigned(observation, channel->sequence);\n observation_unsigned(observation, channel->seen);\n observation_unsigned(observation, channel->acknowledged);\n }\n}\n",
|
|
"Makefile": "CC = gcc\nCFLAGS = -std=c11 -O2 -Wall -Wextra -Werror -pedantic\nSOURCES = harness.c input.c observation.c layout.c model.c policy.c\nmemory-demo: $(SOURCES) command.h model.h\n\t$(CC) $(CFLAGS) $(SOURCES) -o $@\n.PHONY: clean\nclean:\n\trm -f memory-demo\n"
|
|
},
|
|
"candidate_files": [
|
|
"model.c",
|
|
"policy.c"
|
|
]
|
|
}
|