use super::RuntimeDecl;
pub(super) static DECLS: &[RuntimeDecl] = &[
RuntimeDecl {
decl: "declare ptr @patch_seq_stack_dump(ptr)",
category: Some("; Stack introspection"),
},
RuntimeDecl {
decl: "declare ptr @patch_seq_son_dump(ptr)",
category: Some("; SON serialization"),
},
RuntimeDecl {
decl: "declare ptr @patch_seq_son_dump_pretty(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_match(ptr)",
category: Some("; Regex operations"),
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_find(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_find_all(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_replace(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_replace_all(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_captures(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_split(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_regex_valid(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_gzip(ptr)",
category: Some("; Compression operations"),
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_gzip_level(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_gunzip(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_zstd(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_zstd_level(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_compress_unzstd(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare i64 @patch_seq_peek_int_value(ptr)",
category: Some("; Helpers for conditionals"),
},
RuntimeDecl {
decl: "declare i1 @patch_seq_peek_bool_value(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @patch_seq_pop_stack(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @seq_stack_new_default()",
category: Some("; Tagged stack operations"),
},
RuntimeDecl {
decl: "declare void @seq_stack_free(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare ptr @seq_stack_base(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare i64 @seq_stack_sp(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare void @seq_stack_set_sp(ptr, i64)",
category: None,
},
RuntimeDecl {
decl: "declare void @seq_stack_grow(ptr, i64)",
category: None,
},
RuntimeDecl {
decl: "declare void @patch_seq_set_stack_base(ptr)",
category: None,
},
RuntimeDecl {
decl: "declare void @patch_seq_report()",
category: Some("; Report operations"),
},
RuntimeDecl {
decl: "declare void @patch_seq_report_init(ptr, ptr, i64)",
category: None,
},
];
pub(super) static SYMBOLS: &[(&str, &str)] = &[
("regex.match?", "patch_seq_regex_match"),
("regex.find", "patch_seq_regex_find"),
("regex.find-all", "patch_seq_regex_find_all"),
("regex.replace", "patch_seq_regex_replace"),
("regex.replace-all", "patch_seq_regex_replace_all"),
("regex.captures", "patch_seq_regex_captures"),
("regex.split", "patch_seq_regex_split"),
("regex.valid?", "patch_seq_regex_valid"),
("compress.gzip", "patch_seq_compress_gzip"),
("compress.gzip-level", "patch_seq_compress_gzip_level"),
("compress.gunzip", "patch_seq_compress_gunzip"),
("compress.zstd", "patch_seq_compress_zstd"),
("compress.zstd-level", "patch_seq_compress_zstd_level"),
("compress.unzstd", "patch_seq_compress_unzstd"),
("son.dump", "patch_seq_son_dump"),
("son.dump-pretty", "patch_seq_son_dump_pretty"),
("stack.dump", "patch_seq_stack_dump"),
];