text
stringlengths
0
601k
let rec map ( f : ? prefix : string -> ? is_last : bool -> _ -> _ ) xs = match xs with | [ ] -> [ ] | [ x ] -> [ f ~ is_last : true x ] | x :: xs -> f ~ is_last : false x :: map f xs
let string_of_prec_value ( x : prec_value ) = match x with | Num_prec n -> string_of_int n | Named_prec name -> str name
let pp_value ~ is_last ( s : string ) = [ Line ( s |> comma is_last ) ]
let pp_prec_value ~ is_last x = let s = string_of_prec_value x in pp_value ~ is_last s
let rec pp_body ( ? prefix = " " ) ( ? is_last = true ) body = let cons , args = match body with | SYMBOL s -> rule s , None | STRING s -> str s , None | PATTERN s -> pattern s , None | BLANK -> " " " \\ /* blank " , */ None | REPEAT x -> " repeat " , Some ( pp_body x ) | REPEAT1 x -> " repeat1 " , Some ( pp_body x ) |...
let pp_rule ? prefix : _ ? is_last ( name , body ) = pp_body ~ prefix ( : sprintf " % s : $ => " name ) ? is_last body
let pp_word ( x : ident option ) = match x with | None -> [ ] | Some s -> [ Line ( sprintf " word : $ => % s , " ( rule s ) ) ]
let string_of_named_prec_level x = match x with | Prec_symbol name -> rule name | Prec_string s -> str s
let pp_precedence_level ? prefix : _ ( ? is_last = true ) level = let level = level |> List . map string_of_named_prec_level |> String . concat " , " in [ Line ( sprintf " [ % s ] " level |> comma is_last ) ]
let pp_grammar ( x : grammar ) : Indent . t = [ Line " // JavaScript grammar recovered from JSON by ' ocaml - tree - sitter to - js ' " ; Line " module . exports = grammar ( { " ; Block [ Line ( sprintf " name : % s , " ( str x . name ) ) ; Inline ( pp_word x . word ) ; Line " externals : $ => [ " ; Block ( map pp_body...
let run input_path output_path = let grammar = match input_path with | None -> Atdgen_runtime . Util . Json . from_channel Tree_sitter_j . read_grammar stdin | Some file -> Atdgen_runtime . Util . Json . from_file Tree_sitter_j . read_grammar file in let tree = pp_grammar grammar in match output_path with | None -> Ind...
type ' a repr = var_count : int -> json
type ' a observation = json
let lambda f = fun ~ var_count -> let var_name = sprintf " var % d " var_count in let var_repr = fun ~ var_count -> ` String var_name in let applied = f var_repr ~ var_count ( : var_count + 1 ) in ` Assoc [ " lambda " , ` String var_name ; " body " , applied ; ]
let apply f v = fun ~ var_count -> let func = f ~ var_count in let arg = v ~ var_count in ` Assoc [ " function " , func ; " argument " , arg ; ]
let observe f = f ( ) ~ var_count : 0
let to_unit j = j
let list l = fun ~ var_count -> ` List ( List . map ~ f ( : fun a -> a ~ var_count ) l )
let list_map l ~ f = fun ~ var_count -> ` Assoc [ " list - map " , f ~ var_count ; " argument " , l ~ var_count ; ]
module Make_serializer ( How : sig type t val input_value : string -> ( string * string ) list -> var_count : int -> t val function_call : string -> ( string * t ) list -> t val string : string -> t end ) = struct open How let input_url u = input_value " Input " [ " URL " , u ; ] let save ~ name thing = fun ~ var_count...
module Rf = struct let tag ? loc : _ ( ? attrs = [ ] ) a b c = Parsetree . Rtag ( a , attrs , b , c ) end
let rec of_type_desc ? loc typ = match typ with | Ptyp_var None -> Typ . any ? loc ( ) | Ptyp_var ( Some name ) -> Typ . var ? loc name . txt | Ptyp_poly ( _ , typ ) -> of_type_expr typ | Ptyp_arrow ( typ1 , typ2 , _ , label ) -> Typ . arrow ? loc label ( of_type_expr typ1 ) ( of_type_expr typ2 ) | Ptyp_ctor { var_iden...
let of_field_decl { fld_ident = name ; fld_type = typ ; fld_loc = loc ; _ } = Type . field ~ loc name ( of_type_expr typ )
let of_ctor_args = function | Ctor_tuple args -> Parsetree . Pcstr_tuple ( List . map ~ f : of_type_expr args ) | Ctor_record fields -> Parsetree . Pcstr_record ( List . map ~ f : of_field_decl fields )
let of_ctor_decl { ctor_ident = name ; ctor_args = args ; ctor_ret = ret ; ctor_loc = loc } = Type . constructor name ~ loc ~ args ( : of_ctor_args args ) ? res ( : Option . map ~ f : of_type_expr ret )
let of_ctor_decl_ext { ctor_ident = name ; ctor_args = args ; ctor_ret = ret ; ctor_loc = loc } = Te . decl ~ loc ~ args ( : of_ctor_args args ) name ? res ( : Option . map ~ f : of_type_expr ret )
let of_type_decl decl = let loc = decl . tdec_loc in let name = decl . tdec_ident in let params = List . map ~ f ( : fun t -> ( of_type_expr t , Invariant ) ) decl . tdec_params in match decl . tdec_desc with | Pdec_abstract -> Type . mk name ~ loc ~ params | Pdec_alias typ -> Type . mk name ~ loc ~ params ~ manifest (...
let of_literal = function | Int i -> Const . int i | Int32 i -> Const . int32 i | Int64 i -> Const . int64 i | Nativeint i -> Const . nativeint i | Float f -> Const . float ( string_of_float f ) | Char c -> Const . char c | String s -> Const . string s | Bool _ | Field _ -> assert false
let rec of_pattern_desc ? loc = function | Ppat_any -> Pat . any ? loc ( ) | Ppat_variable str -> Pat . var ? loc str | Ppat_constraint ( p , typ ) -> Pat . constraint_ ? loc ( of_pattern p ) ( of_type_expr typ ) | Ppat_tuple ps -> Pat . tuple ? loc ( List . map ~ f : of_pattern ps ) | Ppat_or ( p1 , p2 ) -> Pat . or_ ...
let exp_of_literal ? loc = function | Bool _ -> failwith " Unhandled boolean literal " | Field _f -> failwith " Unhandled field literal " | ( Int _ | Int32 _ | Int64 _ | Nativeint _ | Float _ | Char _ | String _ ) as l -> Exp . constant ? loc ( of_literal l )
let rec of_expression_desc ? loc = function | Pexp_apply ( f , es ) -> Exp . apply ? loc ( of_expression f ) ( List . map ~ f ( : fun ( label , x ) -> ( label , of_expression x ) ) es ) | Pexp_variable name -> Exp . ident ? loc name | Pexp_integer ( i , suffix ) -> Exp . constant ? loc ( Const . integer i ? suffix ) | ...
let of_conv_type = function | Ptconv_with ( _mode , decl ) -> Some ( of_type_decl decl ) | Ptconv_to _ -> None
let rec of_signature_desc ? loc = function | Psig_value ( name , typ ) | Psig_instance ( name , typ ) -> Sig . value ? loc ( Val . mk ? loc name ( of_type_expr typ ) ) | Psig_type decl -> Sig . type_ ? loc Recursive [ of_type_decl decl ] | Psig_convtype _ -> assert false | Psig_rectype decls -> Sig . type_ ? loc Recurs...
let rec of_statement_desc ? loc = function | Pstmt_value ( p , e ) -> Str . value ? loc Nonrecursive [ Vb . mk ( of_pattern p ) ( of_expression e ) ] | Pstmt_instance ( name , e ) -> Str . value ? loc Nonrecursive [ Vb . mk ( Pat . var ? loc name ) ( of_expression e ) ] | Pstmt_type decl -> Str . type_ ? loc Nonrecursi...
let of_file = List . map ~ f : of_statement
let sexp_of_month x = CCSexp . atom @@ CCOption . get_exn_or " Expected valid month " @@ Time . abbr_string_of_month x
let sexp_of_weekday x = CCSexp . atom @@ Time . abbr_string_of_weekday x
let sexp_of_int64 x = CCSexp . atom @@ Int64 . to_string x
let sexp_of_int x = CCSexp . atom @@ string_of_int x
let sexp_list_of_ints l = List . map sexp_of_int l
let sexp_of_tz_name t = CCSexp . atom ( Timedesc . Time_zone . name t )
let sexp_of_points ( { pick ; tz_info } : Points . t ) = let open CCSexp in let open Points in list ( CCList . filter_map CCFun . id [ Some ( atom " points " ) ; Some ( list ( atom " pick " :: ( match pick with | N ns -> [ atom " n " ; sexp_of_int ns ] | SN { second ; ns } -> [ atom " sn " ; sexp_of_int second ; sexp_o...
let sexp_of_range ( ~ f : ' a -> CCSexp . t ) ( r : ' a Time . Range . range ) = match r with | ` Range_inc ( x , y ) -> CCSexp . ( list [ atom " range_inc " ; f x ; f y ] ) | ` Range_exc ( x , y ) -> CCSexp . ( list [ atom " range_exc " ; f x ; f y ] )
let sexp_of_iso_week_pattern ( years : Int_set . t ) ( weeks : Int_set . t ) : CCSexp . t = let years = Int_set . to_list years |> sexp_list_of_ints in let weeks = Int_set . to_list weeks |> sexp_list_of_ints in CCSexp . ( list [ atom " iso_week_pattern " ; list years ; list weeks ] )
let sexp_of_pattern ( pat : Pattern . t ) : CCSexp . t = let years = pat . years |> Int_set . to_list |> sexp_list_of_ints in let months = pat . months |> Int_set . to_list |> List . map sexp_of_month in let month_days = pat . month_days |> Int_set . to_list |> sexp_list_of_ints in let weekdays = pat . weekdays |> Week...
let sexp_list_of_unary_op ( op : Time_ast . unary_op ) = match op with | Not -> [ CCSexp . atom " not " ] | Shift n -> [ CCSexp . atom " shift " ; sexp_of_span n ] | Lengthen n -> [ CCSexp . atom " lengthen " ; sexp_of_span n ] | With_tz tz -> [ CCSexp . atom " with_tz " ; CCSexp . atom ( Timedesc . Time_zone . name tz...
let to_sexp ( t : Time_ast . t ) : CCSexp . t = let rec aux ( t : Time_ast . t ) = match t with | All -> CCSexp . ( list [ atom " all " ] ) | Empty -> CCSexp . ( list [ atom " empty " ] ) | Intervals s -> let l = s |> CCList . of_seq |> List . map ( fun ( x , y ) -> CCSexp . list [ sexp_of_timestamp x ; sexp_of_timesta...
let wrap_to_sexp_into_to_sexp_string ( f : ' a -> CCSexp . t ) x = CCSexp . to_string ( f x )
let to_sexp_string = wrap_to_sexp_into_to_sexp_string to_sexp
module File_type_specification = struct open Biokepi_run_environment . Common . KEDSL type t = . . type t += | To_unit : t -> t | Fastq : fastq_reads workflow_node -> t | Bam : bam_file workflow_node -> t | Vcf : vcf_file workflow_node -> t | Bed : single_file workflow_node -> t | Gtf : single_file workflow_node -> t |...
module type Compiler_configuration = sig val work_dir : string val results_dir : string option val machine : Machine . t val map_reduce_gatk_indel_realigner : bool val input_files : [ ` Copy | ` Link | ` Do_nothing ] end
module Defaults = struct let map_reduce_gatk_indel_realigner = true let input_files = ` Link let results_dir = None end
module Provenance_description = struct type t = { name : string ; sub_tree_arguments : ( string * t ) list ; string_arguments : ( string * string ) list ; json_arguments : ( string * Yojson . Basic . json ) list ; } let rec to_yojson t : Yojson . Basic . json = let fields = List . concat [ List . map t . sub_tree_argum...
module Annotated_file = struct type t = { file : File_type_specification . t ; provenance : Provenance_description . t ; functional : ( t -> Provenance_description . t ) option ; } let with_provenance ? functional ( ? string_arguments = [ ] ) ( ? json_arguments = [ ] ) name arguments file = { file ; provenance = { Prov...
module Saving_utilities = struct let base_path ? results_dir ~ work_dir ~ name ( ) = let name = String . map name ~ f ( : function | ' 0 ' . . ' 9 ' | ' a ' . . ' z ' | ' A ' . . ' Z ' | ' ' - | ' _ ' as c -> c | other -> ' _ ' ) in match results_dir with | None -> work_dir // " results " // name | Some r -> r // name ...
let get_workflow : name : string -> Annotated_file . t -> unknown_product workflow_node = fun ~ name f -> let v = Annotated_file . get_file f in workflow_node without_product ~ name ~ edges ( : File_type_specification . as_dependency_edges v )
module Make ( Config : Compiler_configuration ) : Semantics . Bioinformatics_base with type ' a repr = Annotated_file . t and type ' a observation = Annotated_file . t open File_type_specification module AF = Annotated_file module Tools = Biokepi_bfx_tools module KEDSL = Common . KEDSL let failf fmt = ksprintf failwith...
module Id = struct type t = int64 let t = Irmin . Type . int64 let to_string : t -> string = Fmt . to_to_string ( Irmin . Type . pp_json t ) let compare = Int64 . compare let of_int = Int64 . of_int let random ? x y = let x = match x with | Some x -> Int64 . of_int x | None -> 0L in let y = Int64 . of_int y in Int64 . ...
type item_req = { _ol_num : int32 ; _ol_i_id : id ; _ol_supply_w_id : id ; _ol_qty : int32 }
let counter_merge lca v1 v2 = let ( ) + a b = Int32 . add a b in let ( ) - a b = Int32 . sub a b in lca + ( v1 - lca ) + ( v2 - lca )
let minf f l = List . fold_left ( fun acc x -> match acc with | None -> Some x | Some x ' -> if Int64 . compare ( f x ) ( f x ' ) < 0 then Some x else acc ) None l
module Warehouse = struct type t = { w_id : id ; w_ytd : int32 } let merge ~ ancestor : lca { w_ytd = y1 } { w_ytd = y2 } = { lca with w_ytd = ( counter_merge lca . w_ytd y1 y2 ) } end
module District = struct type t = { d_w_id : id ; d_id : id ; d_ytd : int32 ; } let merge ~ ancestor : lca { d_ytd = y1 } { d_ytd = y2 } = { lca with d_ytd = counter_merge lca . d_ytd y1 y2 } end
module Order = struct type t = { o_w_id : id ; o_d_id : id ; o_id : id ; o_c_id : id ; o_ol_cnt : int32 ; o_carrier_id : bool } let merge ~ ancestor : lca ( { o_carrier_id = b1 } as v1 ) ( { o_carrier_id = b2 } as v2 ) = if lca . o_carrier_id = true then ( assert ( lca = v1 && v1 = v2 ) ; lca ) else { lca with o_carrie...
module NewOrder = struct type t = { no_w_id : id ; no_d_id : id ; no_o_id : id } let merge ~ ancestor : lca v1 v2 = failwith " new_order is immutable " end
module OrderLine = struct type t = { ol_w_id : id ; ol_d_id : id ; ol_o_id : id ; ol_i_id : id ; ol_num : int32 ; ol_supply_w_id : id ; ol_amt : int32 ; ol_qty : int32 ; ol_delivery_d : float option } let merge ~ ancestor : lca { ol_delivery_d = d1 } { ol_delivery_d = d2 } = let d = match d1 , d2 with | None , None -> ...
module Item = struct type t = { i_id : id ; i_name : string ; i_price : int32 } let merge ~ ancestor v1 v2 = failwith " Item is immutable " end
module Hist = struct type t = { h_c_id : id ; h_c_d_id : id ; h_c_w_id : id ; h_d_id : id ; h_w_id : id ; h_amt : int32 } let merge ~ ancestor v1 v2 = failwith " Hist is immutable " end
module Stock = struct type t = { s_w_id : id ; s_i_id : id ; s_qty : int32 ; s_ytd : int32 ; s_order_cnt : int32 } let merge ~ ancestor { : s_i_id ; s_w_id ; s_qty = q ; s_ytd = y ; s_order_cnt = c } { s_qty = q1 ; s_ytd = y1 ; s_order_cnt = c1 } { s_qty = q2 ; s_ytd = y2 ; s_order_cnt = c2 } = let q ' = counter_merge ...
module Customer = struct type t = { c_w_id : id ; c_d_id : id ; c_id : id ; c_bal : int32 ; c_ytd_payment : int32 ; c_payment_cnt : int32 ; c_delivery_cnt : int32 ; } let merge ~ ancestor { : c_id ; c_d_id ; c_w_id ; c_bal = b ; c_ytd_payment = y ; c_payment_cnt = p ; c_delivery_cnt = d } { c_bal = b1 ; c_ytd_payment =...
module IdPair = struct type t = id * id let t = let open Irmin . Type in pair id id let to_string : t -> string = Fmt . to_to_string ( Irmin . Type . pp_json t ) let compare ( x1 , y1 ) ( x2 , y2 ) = match Id . compare x1 x2 , Id . compare y1 y2 with | 0 , v2 -> v2 | v1 , _ -> v1 end
module IdTriple = struct type t = id ( * id * id ) let t = let open Irmin . Type in pair id ( pair id id ) let to_string : t -> string = Fmt . to_to_string ( Irmin . Type . pp_json t ) let compare ( x1 , ( y1 , z1 ) ) ( x2 , ( y2 , z2 ) ) = match Id . compare x1 x2 , Id . compare y1 y2 , Id . compare z1 z2 with | 0 , 0...
module IdQuad = struct type t = id ( * id ( * id * id ) ) let t = let open Irmin . Type in pair id ( pair id ( pair id id ) ) let to_string : t -> string = Fmt . to_to_string ( Irmin . Type . pp_json t ) let compare ( w1 , ( x1 , ( y1 , z1 ) ) ) ( w2 , ( x2 , ( y2 , z2 ) ) ) = match Id . compare w1 w2 , Id . compare x1...
module IdQuin = struct type t = id ( * id ( * id ( * id * id ) ) ) let t = let open Irmin . Type in ( pair id ( pair id ( pair id ( pair id id ) ) ) ) let to_string : t -> string = Fmt . to_to_string ( Irmin . Type . pp_json t ) let compare ( u1 , ( w1 , ( x1 , ( y1 , z1 ) ) ) ) ( u2 , ( w2 , ( x2 , ( y2 , z2 ) ) ) ) =...
type db = { warehouse_table : WarehouseTable . t ; district_table : DistrictTable . t ; order_table : OrderTable . t ; neworder_table : NewOrderTable . t ; orderline_table : OrderLineTable . t ; item_table : ItemTable . t ; hist_table : HistTable . t ; stock_table : StockTable . t ; customer_table : CustomerTable . t }
module Txn = struct type ' a t = db -> ' a * db let bind m f = fun db -> let ( a , db ' ) = m db in f a db ' let return a = fun db -> ( a , db ) end
module Insert = struct let order_table o db = let open Order in let t = db . order_table in let t ' = OrderTable . insert ( o . o_w_id , ( o . o_d_id , o . o_id ) ) o t in ( ( ) , { db with order_table = t ' } ) let neworder_table no db = let open NewOrder in let t = db . neworder_table in let t ' = NewOrderTable . ins...
module Update = struct let warehouse_table sigf updf db = let t = db . warehouse_table in let t ' = WarehouseTable . update sigf updf t in ( ( ) , { db with warehouse_table = t ' } ) let district_table sigf updf db = let t = db . district_table in let t ' = DistrictTable . update sigf updf t in ( ( ) , { db with distri...
module Delete = struct let neworder_table ( no_w_id , no_d_id , no_o_id ) db = let t = db . neworder_table in let t ' = NewOrderTable . remove ( no_w_id , ( no_d_id , no_o_id ) ) t in ( ( ) , { db with neworder_table = t ' } ) end
module Select1 = struct open Printf let warehouse_table x db = try let t = db . warehouse_table in let res = WarehouseTable . find x t in ( res , db ) with Not_found -> failwith @@ sprintf " Warehouse <% s > not found " ( Id . to_string x ) let district_table ( x , y ) db = try let t = db . district_table in let res = ...
module Select = struct let warehouse_table sigf db = let t = db . warehouse_table in let res = WarehouseTable . select sigf t in ( res , db ) let district_table sigf db = let t = db . district_table in let res = DistrictTable . select sigf t in ( res , db ) let item_table sigf db = let t = db . item_table in let res = ...
module Temp = struct let ( ) + = Int32 . add let ( ) - = Int32 . sub let ( * ) = Int32 . mul let ( ) >>= = Txn . bind end
let dump_stock_keys db = let fp = open_out " stock_keys . db " in let dump2 k v = fprintf fp " % s \ n " @@ IdPair . to_string k in begin fprintf fp " \ n > Stock \ n " ; StockTable . iter dump2 db . stock_table ; close_out fp ; printf " Dumped keys in stock_keys . db \ n " ; ( ( ) , db ) end
let new_order_txn w_id d_id c_id ( ireqs : item_req list ) : unit Txn . t = let _ = printf " new_order_txn \ n " in let _ = flush_all ( ) in let o_id = Random . int64 10000000000L in let ord = let open Order in { o_id = o_id ; o_w_id = w_id ; o_d_id = d_id ; o_c_id = c_id ; o_ol_cnt = Int32 . of_int @@ List . length ir...
let payment_txn w_id d_id c_id h_amt = let _ = printf " payment_txn \ n " in let _ = flush_all ( ) in let d_w_id = w_id in let c_w_id = w_id in let c_d_id = d_id in Select1 . warehouse_table ( w_id ) >>= fun w -> Select1 . district_table ( d_w_id , d_id ) >>= fun d -> Select1 . customer_table ( c_w_id , c_d_id , c_id )...
let delivery_txn w_id = let _ = printf " delivery_txn \ n " in let _ = flush_all ( ) in Select . district_table ( fun ( dist_w_id , _ ) -> Id . compare dist_w_id w_id ) >>= fun dists -> List . fold_left ( fun pre d -> pre >>= fun ( ) -> Select . neworder_table ( fun ( no_w_id , ( no_d_id , _ ) ) -> IdPair . compare ( n...
let init ( ) = match Sys . getenv_opt " OCAMLI2PARAM " with Some " rules " -> Eval . showrules := true | _ -> ( )
let rec to_ocaml_heap_value expr = match expr . e with Value x -> x | ArrayExpr arr -> let x = Obj . new_block 0 ( Array . length arr ) in for i = 0 to Array . length arr - 1 do Obj . set_field x i ( to_ocaml_heap_value arr . ( i ) ) done ; x | Cons ( { e = Value h } , t ) -> let cell = Obj . new_block 0 2 in Obj . set...
let eval_full env x = let program = ( Marshal . from_string x 0 : Type . t ) in match Eval . eval_full ! env program with { Type . e = Type . Value x } -> x | x -> to_ocaml_heap_value x
let eval_full_from_typedtree env x = let typedtree = ( Marshal . from_string x 0 : Typedtree . expression ) in let program = Read . finaltype_of_expression ! env typedtree in match Eval . eval_full ! env program with { Type . e = Type . Value x } -> x | x -> to_ocaml_heap_value x
let addenv envref printas n v t = let binding = { Type . e = Type . Value v ; Type . typ = Read . debug_type ( Read . remove_links ( Marshal . from_string t 0 : Types . type_expr ) ) ; Type . lets = [ ] ; Type . peek = None ; Type . printbefore = None ; Type . printafter = None ; Type . printas = printas } in envref :=...
let eval_full_function : expression option ref = ref None
let template_string : expression option ref = ref None
let last_global_type : Types . type_expr option ref = ref None
let newmapper argv = { default with expr = ( fun mapper expr -> match expr with | { exp_attributes = [ { attr_name = { txt = " interpret " } ; attr_payload = payload } ] ; exp_type ; exp_desc } -> print_endline " Found a [ @ interpret ] annotation \ n " ; let tinyocaml_expression = match ! template_string with None -> ...
let ( ) = Tast_mapper . register " tppx_interpret " newmapper
try printf " d / i positive \ n " ; %! test ( sprintf " % d /% i " 42 43 = " 42 / 43 " ) ; test ( sprintf " %- 4d /%- 5i " 42 43 = " 42 / 43 " ) ; test ( sprintf " % 04d /% 05i " 42 43 = " 0042 / 00043 " ) ; test ( sprintf " %+ d /%+ i " 42 43 = " + 42 /+ 43 " ) ; test ( sprintf " % d /% i " 42 43 = " 42 / 43 " ) ; tes...
type traced_function = { path : Path . t ; closure : Obj . t ; actual_code : codeptr ; instrumented_fun : codeptr -> Obj . t -> Obj . t -> Obj . t }
let traced_functions = ref ( [ ] : traced_function list )
let is_traced clos = let rec is_traced = function [ ] -> None | tf :: rem -> if tf . closure == clos then Some tf . path else is_traced rem in is_traced ! traced_functions