code wiki / (root) / nx_drug_pathway_test.nx

nx_drug_pathway_test.nx

buildroot/runtime/nx_drug_pathway_test.nx

8683 B151 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_drug_pathway_test.nx -- gate for the investigational-drug rung. T4 is the strategic one: Australia is the cheapest place to run Phase 1, computed rather than asserted, because the CTN notification scheme plus a 43.5% REFUNDABLE offset beats every other site. T6 is the bigger lever -- an existing human record removes far more cost than any geography can. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_drug_pathway.nx nx_drug_pathway_test.nx

imports: nx_syscalls.nxnx_drug_pathway.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main dp_full_cost_k dp_phase_cost_k dp_full_months dp_phase_months t_puts sys_write t_putn sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_write ↻ dp_phase_cost_k ↻ dp_authorisation_days dp_cheapest_site dp_phase_cost_at_site_k dp_phase_cost_k ↻ dp_cost_permil_of_us dp_rd_rebate_permil dp_phase_cost_at_site_k ↻ dp_site_name dp_rd_rebate_permil ↻ dp_cost_permil_of_us ↻ dp_programme_cost_k dp_phase_required dp_phase_cost_k ↻ dp_reliance_saving_k dp_programme_cost_k ↻

structs

none

consts

none

functions

10func t_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
11func t_putn(v: i64) -> i64 { let bb: *u8 = sys_mmap(28); var m: i64 = v; if m < 0 { m = 0 - m; sys_write(1, "-" as *u8, 1) } let t: *u8 = sys_mmap(28); var k: i64 = 0; if m == 0 { t[0] = 48 as u8; k = 1 } while m > 0 { t[k] = (48 + (m % 10)) as u8; m = m / 10; k = k + 1 } var i: i64 = 0; while i < k { bb[i] = t[k - 1 - i]; i = i + 1 } sys_write(1, bb, k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
13func main() -> i64