INNER CODE UNIT · JavaScript
mkC
FStarLang/karamel · krmllib/js/loader.js:213
let mkC = (mem) => ({
srand: () => { throw new Error("todo: srand") },
rand: () => { throw new Error("todo: rand") },
exit: (errno) => { throw new Error("Program exited via C.exit [errno="+errno+"]") },
portable_exit: (errno) => { throw new Error("Program exited via C.portable_exit [errno="+errno+"]") },
print_bytes: () => { throw new Error("todo: print_bytes") },
char_uint8: () => { throw new Error("todo: char_uint8") },
uint8_char: () => { throw new Error("todo: uint8_char") },
char_of_uint8: (x) => { throw new Error("todo: char_of_uint8") },
uint8_of_char: (x) => { throw new Error("todo: uint8_of_char") },
// A Prims_string generates a literal allocated in the data segment;
// string_of_literal is just a typing trick.
string_of_literal: (x) => x,
print_string: (addr) => my_print(stringAtAddr(mem, addr)),
// Truncated