diff options
| author | Brian Campbell | 2018-07-13 10:15:30 +0100 |
|---|---|---|
| committer | Brian Campbell | 2018-07-13 10:15:30 +0100 |
| commit | 82784b669df18e33c48449020f29f36980d12bf3 (patch) | |
| tree | e8c9d854b3edd3d34c64e745705e9cce4dc877a1 /src/c_backend.ml | |
| parent | 6586abcc185fa4e0f3853a73d91f097fbde16aca (diff) | |
| parent | 3c4a27d7041d71fb229970dacab013cf84669755 (diff) | |
Merge branch 'sail2' of github.com:rems-project/sail into sail2
Diffstat (limited to 'src/c_backend.ml')
| -rw-r--r-- | src/c_backend.ml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c_backend.ml b/src/c_backend.ml index e4bbd393..cb732e2d 100644 --- a/src/c_backend.ml +++ b/src/c_backend.ml @@ -2655,7 +2655,8 @@ let instrument_tracing ctx = let module StringSet = Set.Make(String) in let traceable = StringSet.of_list ["mach_bits"; "sail_string"; "sail_bits"; "sail_int"; "unit"; "bool"] in let rec instrument = function - | (I_aux (I_funcall (clexp, _, id, args, ctyp), _) as instr) :: instrs -> + | (I_aux (I_funcall (clexp, _, id, args, ctyp), _) as instr) :: instrs when not (Env.is_extern id ctx.tc_env "c") -> + let trace_start = iraw (Printf.sprintf "trace_start(\"%s\");" (String.escaped (string_of_id id))) in |
