1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! Checked-in generated Rust fixtures for `CodegenIR` tests.
//!
//! These functions intentionally look like emitted `RustEmitter` output.
//! They let us verify an important intermediate milestone:
//! `Expr -> emitted Rust source -> compiled Rust function -> numerical result`.
//!
//! This module is test-only for now. Later, the same pattern can be upgraded
//! into real file-based code generation for large residual and Jacobian blocks.
/// Fixture scalar function resembling `RustEmitter::emit_function(...)`.
/// Fixture block function resembling `RustEmitter::emit_block_function(...)`.