hax_types/cli_options/
mod.rs

1use crate::prelude::*;
2
3use clap::{Parser, Subcommand, ValueEnum};
4use std::fmt;
5
6pub use hax_frontend_exporter_options::*;
7pub mod extension;
8use extension::Extension;
9
10#[derive_group(Serializers)]
11#[derive(JsonSchema, Debug, Clone)]
12pub enum DebugEngineMode {
13    File(PathOrDash),
14    Interactive,
15}
16
17impl std::convert::From<&str> for DebugEngineMode {
18    fn from(s: &str) -> Self {
19        match s {
20            "i" | "interactively" => DebugEngineMode::Interactive,
21            s => DebugEngineMode::File(s.strip_prefix("file:").unwrap_or(s).into()),
22        }
23    }
24}
25
26#[derive_group(Serializers)]
27#[derive(JsonSchema, Debug, Clone, Default)]
28pub struct ForceCargoBuild {
29    pub data: u64,
30}
31
32impl std::convert::From<&str> for ForceCargoBuild {
33    fn from(s: &str) -> Self {
34        use std::time::{SystemTime, UNIX_EPOCH};
35        if s == "false" {
36            let data = SystemTime::now()
37                .duration_since(UNIX_EPOCH)
38                .map(|r| r.as_millis())
39                .unwrap_or(0);
40            ForceCargoBuild { data: data as u64 }
41        } else {
42            ForceCargoBuild::default()
43        }
44    }
45}
46
47#[derive_group(Serializers)]
48#[derive(Debug, Clone, JsonSchema)]
49pub enum PathOrDash {
50    Dash,
51    Path(PathBuf),
52}
53
54impl std::convert::From<&str> for PathOrDash {
55    fn from(s: &str) -> Self {
56        match s {
57            "-" => PathOrDash::Dash,
58            _ => PathOrDash::Path(PathBuf::from(s)),
59        }
60    }
61}
62
63impl PathOrDash {
64    pub fn open_or_stdout(&self) -> Box<dyn std::io::Write> {
65        use std::io::BufWriter;
66        match self {
67            PathOrDash::Dash => Box::new(BufWriter::new(std::io::stdout())),
68            PathOrDash::Path(path) => {
69                Box::new(BufWriter::new(std::fs::File::create(&path).unwrap()))
70            }
71        }
72    }
73    pub fn map_path<F: FnOnce(&Path) -> PathBuf>(&self, f: F) -> Self {
74        match self {
75            PathOrDash::Path(path) => PathOrDash::Path(f(path)),
76            PathOrDash::Dash => PathOrDash::Dash,
77        }
78    }
79}
80
81fn absolute_path(path: impl AsRef<std::path::Path>) -> std::io::Result<std::path::PathBuf> {
82    use path_clean::PathClean;
83    let path = path.as_ref();
84
85    let absolute_path = if path.is_absolute() {
86        path.to_path_buf()
87    } else {
88        std::env::current_dir()?.join(path)
89    }
90    .clean();
91
92    Ok(absolute_path)
93}
94
95pub trait NormalizePaths {
96    fn normalize_paths(&mut self);
97}
98
99impl NormalizePaths for PathBuf {
100    fn normalize_paths(&mut self) {
101        *self = absolute_path(&self).unwrap();
102    }
103}
104impl NormalizePaths for PathOrDash {
105    fn normalize_paths(&mut self) {
106        match self {
107            PathOrDash::Path(p) => p.normalize_paths(),
108            PathOrDash::Dash => (),
109        }
110    }
111}
112
113#[derive_group(Serializers)]
114#[derive(JsonSchema, Parser, Debug, Clone)]
115pub struct ProVerifOptions {
116    /// Items for which hax should extract a default-valued process
117    /// macro with a corresponding type signature. This flag expects a
118    /// space-separated list of inclusion clauses. An inclusion clause
119    /// is a Rust path prefixed with `+`, `+!` or `-`. `-` means
120    /// implementation only, `+!` means interface only and `+` means
121    /// implementation and interface. Rust path chunks can be either a
122    /// concrete string, or a glob (just like bash globs, but with
123    /// Rust paths).
124    #[arg(
125        long,
126        value_parser = parse_inclusion_clause,
127        value_delimiter = ' ',
128        allow_hyphen_values(true)
129    )]
130    pub assume_items: Vec<InclusionClause>,
131}
132
133#[derive_group(Serializers)]
134#[derive(JsonSchema, Parser, Debug, Clone)]
135pub struct FStarOptions<E: Extension> {
136    /// Set the Z3 per-query resource limit
137    #[arg(long, default_value = "15")]
138    pub z3rlimit: u32,
139    /// Number of unrolling of recursive functions to try
140    #[arg(long, default_value = "0")]
141    pub fuel: u32,
142    /// Number of unrolling of inductive datatypes to try
143    #[arg(long, default_value = "1")]
144    pub ifuel: u32,
145    /// Modules for which Hax should extract interfaces (`*.fsti`
146    /// files) in supplement to implementations (`*.fst` files). By
147    /// default we extract no interface, only implementations. If a
148    /// item is signature only (see the `+:` prefix of the
149    /// `--include_namespaces` flag of the `into` subcommand), then
150    /// its namespace is extracted with an interface. This flag
151    /// expects a space-separated list of inclusion clauses. An
152    /// inclusion clause is a Rust path prefixed with `+`, `+!` or
153    /// `-`. `-` means implementation only, `+!` means interface only
154    /// and `+` means implementation and interface. Rust path chunks
155    /// can be either a concrete string, or a glob (just like bash
156    /// globs, but with Rust paths).
157    #[arg(
158        long,
159        value_parser = parse_inclusion_clause,
160        value_delimiter = ' ',
161        allow_hyphen_values(true)
162    )]
163    pub interfaces: Vec<InclusionClause>,
164
165    #[arg(long, default_value = "100", env = "HAX_FSTAR_LINE_WIDTH")]
166    pub line_width: u16,
167
168    #[group(flatten)]
169    pub cli_extension: E::FStarOptions,
170}
171
172#[derive_group(Serializers)]
173#[derive(JsonSchema, Subcommand, Debug, Clone)]
174pub enum Backend<E: Extension> {
175    /// Use the F* backend
176    Fstar(FStarOptions<E>),
177    /// Use the Lean backend (warning: experimental)
178    Lean,
179    /// Use the Coq backend
180    Coq,
181    /// Use the SSProve backend
182    Ssprove,
183    /// Use the EasyCrypt backend (warning: work in progress!)
184    Easycrypt,
185    /// Use the ProVerif backend (warning: work in progress!)
186    ProVerif(ProVerifOptions),
187    /// Use the Rust backend (warning: work in progress!)
188    #[clap(hide = true)]
189    Rust,
190    /// Extract `DefId`s of the crate as a Rust module tree.
191    /// This is a command that regenerates code for the rust engine.
192    #[clap(hide = true)]
193    GenerateRustEngineNames,
194    /// A debugger for the Rust engine
195    Debugger {
196        #[arg(long, short)]
197        interactive: bool,
198    },
199}
200
201impl fmt::Display for Backend<()> {
202    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
203        BackendName::from(self).fmt(f)
204    }
205}
206
207#[derive_group(Serializers)]
208#[derive(JsonSchema, Debug, Clone)]
209pub enum DepsKind {
210    Transitive,
211    Shallow,
212    None,
213}
214
215#[derive_group(Serializers)]
216#[derive(JsonSchema, Debug, Clone)]
217pub enum InclusionKind {
218    /// `+query` include the items selected by `query`
219    Included(DepsKind),
220    SignatureOnly,
221    Excluded,
222}
223
224#[derive_group(Serializers)]
225#[derive(JsonSchema, Debug, Clone)]
226pub struct InclusionClause {
227    pub kind: InclusionKind,
228    pub namespace: Namespace,
229}
230
231const PREFIX_INCLUDED_TRANSITIVE: &str = "+";
232const PREFIX_INCLUDED_SHALLOW: &str = "+~";
233const PREFIX_INCLUDED_NONE: &str = "+!";
234const PREFIX_SIGNATURE_ONLY: &str = "+:";
235const PREFIX_EXCLUDED: &str = "-";
236
237impl ToString for InclusionClause {
238    fn to_string(&self) -> String {
239        let kind = match self.kind {
240            InclusionKind::Included(DepsKind::Transitive) => PREFIX_INCLUDED_TRANSITIVE,
241            InclusionKind::Included(DepsKind::Shallow) => PREFIX_INCLUDED_SHALLOW,
242            InclusionKind::Included(DepsKind::None) => PREFIX_INCLUDED_NONE,
243            InclusionKind::SignatureOnly => PREFIX_SIGNATURE_ONLY,
244            InclusionKind::Excluded => PREFIX_EXCLUDED,
245        };
246        format!("{kind}{}", self.namespace.to_string())
247    }
248}
249
250pub fn parse_inclusion_clause(
251    s: &str,
252) -> Result<InclusionClause, Box<dyn std::error::Error + Send + Sync + 'static>> {
253    let s = s.trim();
254    if s.is_empty() {
255        Err("Expected `-` or `+`, got an empty string")?
256    }
257    let (prefix, namespace) = {
258        let f = |&c: &char| matches!(c, '+' | '-' | '~' | '!' | ':');
259        (
260            s.chars().take_while(f).into_iter().collect::<String>(),
261            s.chars().skip_while(f).into_iter().collect::<String>(),
262        )
263    };
264    let kind = match &prefix[..] {
265        PREFIX_INCLUDED_TRANSITIVE => InclusionKind::Included(DepsKind::Transitive),
266        PREFIX_INCLUDED_SHALLOW => InclusionKind::Included(DepsKind::Shallow),
267        PREFIX_INCLUDED_NONE => InclusionKind::Included(DepsKind::None),
268        PREFIX_SIGNATURE_ONLY => InclusionKind::SignatureOnly,
269        PREFIX_EXCLUDED => InclusionKind::Excluded,
270        prefix => Err(format!(
271            "Expected `+`, `+~`, `+!`, `+:` or `-`, got an `{prefix}`"
272        ))?,
273    };
274    Ok(InclusionClause {
275        kind,
276        namespace: namespace.to_string().into(),
277    })
278}
279
280#[derive_group(Serializers)]
281#[derive(JsonSchema, Parser, Debug, Clone)]
282pub struct TranslationOptions {
283    /// Controls which Rust item should be extracted or not.
284    ///
285    /// This is a space-separated list of patterns prefixed with a
286    /// modifier, read from the left to the right.
287    ///
288    /// A pattern is a Rust path (say `mycrate::mymod::myfn`) where
289    /// globs are allowed: `*` matches any name
290    /// (e.g. `mycrate::mymod::myfn` is matched by
291    /// `mycrate::*::myfn`), while `**` matches any subpath, empty
292    /// included (e.g. `mycrate::mymod::myfn` is matched by
293    /// `**::myfn`).
294
295    /// By default, hax includes all items. Then, the patterns
296    /// prefixed by modifiers are processed from left to right,
297    /// excluding or including items. Each pattern selects a number of
298    /// item. The modifiers are:
299
300    /// {n}{n} - `+`: includes the selected items with their
301    /// dependencies, transitively (e.g. if function `f` calls `g`
302    /// which in turn calls `h`, then `+k::f` includes `f`, `g` and
303    /// `h`)
304
305    /// {n} - `+~`: includes the selected items with their direct
306    /// dependencies only (following the previous example, `+~k::f`
307    /// would select `f` and `g`, but not `h`)
308
309    /// {n} - `+!`: includes the selected items, without their
310    /// dependencies (`+!k::f` would only select `f`)
311
312    /// {n} - `+:`: only includes the type of the selected items (no
313    /// dependencies). This includes full struct and enums, but only
314    /// the type signature of functions and trait impls (except when
315    /// they contain associated types), dropping their bodies.
316    #[arg(
317        value_parser = parse_inclusion_clause,
318        value_delimiter = ' ',
319    )]
320    #[arg(short, allow_hyphen_values(true))]
321    pub include_namespaces: Vec<InclusionClause>,
322}
323
324#[derive_group(Serializers)]
325#[derive(JsonSchema, Parser, Debug, Clone)]
326pub struct BackendOptions<E: Extension> {
327    #[command(subcommand)]
328    pub backend: Backend<E>,
329
330    /// Don't write anything on disk. Output everything as JSON to stdout
331    /// instead.
332    #[arg(long = "dry-run")]
333    pub dry_run: bool,
334
335    /// Verbose mode for the Hax engine. Set `-vv` for maximal verbosity.
336    #[arg(short, long, action = clap::ArgAction::Count)]
337    pub verbose: u8,
338
339    /// Prints statistics about how many items have been translated
340    /// successfully by the engine.
341    #[arg(long)]
342    pub stats: bool,
343
344    /// Enables profiling for the engine: for each phase of the
345    /// engine, time and memory usage are recorded and reported.
346    #[arg(long)]
347    pub profile: bool,
348
349    /// Prune Rust items that are not under the provided top-level module name.
350    /// This will effectively remove all items that don't match `*::<prune_haxmetadata>::**`.
351    /// This prunning occurs directly on the `haxmeta` file, in the frontend.
352    /// This is independent from any engine options.
353    #[arg(long)]
354    #[clap(hide = true)]
355    pub prune_haxmeta: Option<String>,
356
357    /// Enable engine debugging: dumps the AST at each phase.
358    ///
359    /// The value of `<DEBUG_ENGINE>` can be either:
360
361    /// {n}{n} - `interactive` (or `i`): enables debugging of the engine,
362    /// and visualize interactively in a webapp how a crate was
363    /// transformed by each phase, both in Rust-like syntax and
364    /// browsing directly the internal AST. By default, the webapp is
365    /// hosted on `http://localhost:8000`, the port can be override by
366    /// setting the `HAX_DEBUGGER_PORT` environment variable.
367
368    /// {n} - `<FILE>` or `file:<FILE>`: outputs the different AST as JSON
369    /// to `<FILE>`. `<FILE>` can be either [-] or a path.
370    #[arg(short, long = "debug-engine")]
371    pub debug_engine: Option<DebugEngineMode>,
372
373    /// Extract type aliases. This is disabled by default, since
374    /// extracted terms depends on expanded types rather than on type
375    /// aliases. Turning this option on is discouraged: Rust type
376    /// synonyms can ommit generic bounds, which are ususally
377    /// necessary in the hax backends, leading to typechecking
378    /// errors. For more details see
379    /// https://github.com/hacspec/hax/issues/708.
380    #[arg(long)]
381    pub extract_type_aliases: bool,
382
383    #[command(flatten)]
384    pub translation_options: TranslationOptions,
385
386    /// Where to put the output files resulting from the translation.
387    /// Defaults to "<crate folder>/proofs/<backend>/extraction".
388    #[arg(long)]
389    pub output_dir: Option<PathBuf>,
390
391    #[group(flatten)]
392    pub cli_extension: E::BackendOptions,
393}
394
395#[derive_group(Serializers)]
396#[derive(JsonSchema, Subcommand, Debug, Clone)]
397pub enum Command<E: Extension> {
398    /// Translate to a backend. The translated modules will be written
399    /// under the directory `<PKG>/proofs/<BACKEND>/extraction`, where
400    /// `<PKG>` is the translated cargo package name and `<BACKEND>`
401    /// the name of the backend.
402    #[clap(name = "into")]
403    Backend(BackendOptions<E>),
404
405    /// Export directly as a JSON file
406    JSON {
407        /// Path to the output JSON file, "-" denotes stdout.
408        #[arg(
409            short,
410            long = "output-file",
411            default_value = "hax_frontend_export.json"
412        )]
413        output_file: PathOrDash,
414        /// Whether the bodies are exported as THIR, built MIR, const
415        /// MIR, or a combination. Repeat this option to extract a
416        /// combination (e.g. `-k thir -k mir-built`). Pass `--kind`
417        /// alone with no value to disable body extraction.
418        #[arg(
419            value_enum,
420            short,
421            long = "kind",
422            num_args = 0..=3,
423            default_values_t = [ExportBodyKind::Thir]
424        )]
425        kind: Vec<ExportBodyKind>,
426
427        /// By default, `cargo hax json` outputs a JSON where every
428        /// piece of information is inlined. This however creates very
429        /// large JSON files. This flag enables the use of unique IDs
430        /// and outputs a map from IDs to actual objects.
431        #[arg(long)]
432        use_ids: bool,
433
434        /// Whether to include extra informations about `DefId`s.
435        #[arg(short = 'E', long = "include-extra", default_value = "false")]
436        include_extra: bool,
437    },
438
439    /// Serialize to a `haxmeta` file, the internal binary format used by hax to
440    /// store the ASTs produced by the hax exporter.
441    #[clap(hide = true)]
442    Serialize {
443        /// Whether the bodies are exported as THIR, built MIR, const
444        /// MIR, or a combination. Repeat this option to extract a
445        /// combination (e.g. `-k thir -k mir-built`). Pass `--kind`
446        /// alone with no value to disable body extraction.
447        #[arg(
448            value_enum,
449            short,
450            long = "kind",
451            num_args = 0..=3,
452            default_values_t = [ExportBodyKind::Thir]
453        )]
454        kind: Vec<ExportBodyKind>,
455
456        /// When extracting to a given backend, the exporter is called with different `cfg` options.
457        /// This option allows to set the same flags as `cargo hax into` would pick.
458        #[arg(short)]
459        backend: Option<BackendName>,
460    },
461
462    #[command(flatten)]
463    CliExtension(E::Command),
464}
465
466impl<E: Extension> Command<E> {
467    pub fn body_kinds(&self) -> Vec<ExportBodyKind> {
468        match self {
469            Command::JSON { kind, .. } => kind.clone(),
470            Command::Serialize { kind, .. } => kind.clone(),
471            Command::Backend { .. } | Command::CliExtension { .. } => vec![ExportBodyKind::Thir],
472        }
473    }
474    pub fn backend_name(&self) -> Option<BackendName> {
475        match self {
476            Command::Backend(backend_options) => Some((&backend_options.backend).into()),
477            Command::JSON { .. } => None,
478            Command::Serialize { backend, .. } => backend.clone(),
479            Command::CliExtension(_) => None,
480        }
481    }
482}
483
484#[derive_group(Serializers)]
485#[derive(JsonSchema, ValueEnum, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
486pub enum ExportBodyKind {
487    Thir,
488    MirBuilt,
489}
490
491#[derive_group(Serializers)]
492#[derive(JsonSchema, Parser, Debug, Clone)]
493#[command(
494    author,
495    version = crate::HAX_VERSION,
496    long_version = concat!("\nversion=", env!("HAX_VERSION"), "\n", "commit=", env!("HAX_GIT_COMMIT_HASH")),
497    name = "hax",
498    about,
499    long_about = None
500)]
501pub struct ExtensibleOptions<E: Extension> {
502    /// Semi-colon terminated list of arguments to pass to the
503    /// `cargo build` invocation. For example, to apply this
504    /// program on a package `foo`, use `-C -p foo ;`. (make sure
505    /// to escape `;` correctly in your shell)
506    #[arg(default_values = Vec::<&str>::new(), short='C', allow_hyphen_values=true, num_args=1.., long="cargo-args", value_terminator=";")]
507    pub cargo_flags: Vec<String>,
508
509    #[command(subcommand)]
510    pub command: Command<E>,
511
512    /// `cargo` caching is enable by default, this flag disables it.
513    #[arg(long="disable-cargo-cache", action=clap::builder::ArgAction::SetFalse)]
514    pub force_cargo_build: ForceCargoBuild,
515
516    /// Apply the command to every local package of the dependency closure. By
517    /// default, the command is only applied to the primary packages (i.e. the
518    /// package(s) of the current directory, or the ones selected with cargo
519    /// options like `-C -p <PKG> ;`).
520    #[arg(long = "deps")]
521    pub deps: bool,
522
523    /// Provide a precomputed haxmeta file explicitly.
524    /// Setting this option bypasses rustc and the exporter altogether.
525    #[arg(long)]
526    #[clap(hide = true)]
527    pub haxmeta: Option<PathBuf>,
528
529    /// By default, hax uses `$CARGO_TARGET_DIR/hax` as target folder,
530    /// to avoid recompilation when working both with `cargo hax` and
531    /// `cargo build` (or, e.g. `rust-analyzer`). This option disables
532    /// this behavior.
533    #[arg(long)]
534    pub no_custom_target_directory: bool,
535
536    /// Diagnostic format. Sets `cargo`'s `--message-format` as well,
537    /// if not present.
538    #[arg(long, default_value = "human")]
539    pub message_format: MessageFormat,
540
541    /// Enables experimental FullDef format for items exported from the frontend
542    /// in the haxmeta file.
543    #[arg(long, env = "HAX_EXPERIMENTAL_FULL_DEF")]
544    pub experimental_full_def: bool,
545
546    #[group(flatten)]
547    pub extension: E::Options,
548}
549
550pub type Options = ExtensibleOptions<()>;
551
552#[derive_group(Serializers)]
553#[derive(JsonSchema, ValueEnum, Debug, Clone, Copy, Eq, PartialEq)]
554pub enum MessageFormat {
555    Human,
556    Json,
557}
558
559impl<E: Extension> NormalizePaths for Command<E> {
560    fn normalize_paths(&mut self) {
561        use Command::*;
562        match self {
563            JSON { output_file, .. } => output_file.normalize_paths(),
564            _ => (),
565        }
566    }
567}
568
569impl NormalizePaths for Options {
570    fn normalize_paths(&mut self) {
571        self.command.normalize_paths()
572    }
573}
574
575impl From<Options> for hax_frontend_exporter_options::Options {
576    fn from(_opts: Options) -> hax_frontend_exporter_options::Options {
577        hax_frontend_exporter_options::Options {
578            inline_anon_consts: true,
579            bounds_options: hax_frontend_exporter_options::BoundsOptions {
580                resolve_destruct: false,
581                prune_sized: true,
582            },
583            item_ref_use_concrete_impl: false,
584        }
585    }
586}
587
588/// The subset of `Options` the frontend is sensible to.
589#[derive_group(Serializers)]
590#[derive(JsonSchema, Debug, Clone)]
591pub struct ExporterOptions {
592    pub deps: bool,
593    pub force_cargo_build: ForceCargoBuild,
594    /// When exporting, the driver sets `--cfg hax_backend_{backkend}`, thus we need this information.
595    pub backend: Option<BackendName>,
596    pub body_kinds: Vec<ExportBodyKind>,
597    pub experimental_full_def: bool,
598}
599
600#[derive_group(Serializers)]
601#[derive(JsonSchema, ValueEnum, Debug, Clone, Copy)]
602pub enum BackendName {
603    Fstar,
604    Coq,
605    Ssprove,
606    Easycrypt,
607    ProVerif,
608    Lean,
609    Rust,
610    GenerateRustEngineNames,
611    Debugger,
612}
613
614impl fmt::Display for BackendName {
615    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
616        let name = match self {
617            BackendName::Fstar => "fstar",
618            BackendName::Coq => "coq",
619            BackendName::Ssprove => "ssprove",
620            BackendName::Easycrypt => "easycrypt",
621            BackendName::ProVerif => "proverif",
622            BackendName::Lean => "lean",
623            BackendName::Rust => "rust",
624            BackendName::GenerateRustEngineNames => "generate_rust_engine_names",
625            BackendName::Debugger => "debugger",
626        };
627        write!(f, "{name}")
628    }
629}
630
631impl From<&Options> for ExporterOptions {
632    fn from(options: &Options) -> Self {
633        ExporterOptions {
634            deps: options.deps,
635            force_cargo_build: options.force_cargo_build.clone(),
636            backend: options.command.backend_name(),
637            body_kinds: options.command.body_kinds(),
638            experimental_full_def: options.experimental_full_def,
639        }
640    }
641}
642
643impl<E: Extension> From<&Backend<E>> for BackendName {
644    fn from(backend: &Backend<E>) -> Self {
645        match backend {
646            Backend::Fstar { .. } => BackendName::Fstar,
647            Backend::Coq { .. } => BackendName::Coq,
648            Backend::Ssprove { .. } => BackendName::Ssprove,
649            Backend::Easycrypt { .. } => BackendName::Easycrypt,
650            Backend::ProVerif { .. } => BackendName::ProVerif,
651            Backend::Lean { .. } => BackendName::Lean,
652            Backend::Rust { .. } => BackendName::Rust,
653            Backend::GenerateRustEngineNames { .. } => BackendName::GenerateRustEngineNames,
654            Backend::Debugger { .. } => BackendName::Debugger,
655        }
656    }
657}
658
659pub const ENV_VAR_OPTIONS_FRONTEND: &str = "DRIVER_HAX_FRONTEND_OPTS";
660pub const ENV_VAR_OPTIONS_FULL: &str = "DRIVER_HAX_FRONTEND_FULL_OPTS";