Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 3 additions & 15 deletions .github/workflows/dune.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@ jobs:
strategy:
matrix:
ocaml-compiler:
- "4.12.1"
- "4.13.1"
- "4.14.1"
- "5.0.0"
- "5.1.1"
- "5.2.0"
steps:
- uses: actions/checkout@v1
- uses: ocaml/setup-ocaml@v3
Expand Down Expand Up @@ -43,11 +39,7 @@ jobs:
strategy:
matrix:
ocaml-compiler:
- "4.12.1"
- "4.13.1"
- "4.14.1"
- "5.0.0"
- "5.1.1"
- "5.2.0"
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -71,11 +63,7 @@ jobs:
strategy:
matrix:
ocaml-compiler:
- "4.12.1"
- "4.13.1"
- "4.14.1"
- "5.0.0"
- "5.1.1"
- "5.2.0"
steps:
- uses: actions/checkout@v2
with:
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/makefiles.yaml

This file was deleted.

50 changes: 28 additions & 22 deletions CodeHawk/CHB/bchlib/bCHARMFunctionInterface.ml
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,7 @@ let arm_vfp_params

let get_arm_format_spec_parameters
(cpars: fts_parameter_t list)
(isinput: bool)
(argspecs: argspec_int list): fts_parameter_t list =
let nextindex = (List.length cpars) + 1 in
let update_core_reg aas (r: arm_reg_t) =
Expand Down Expand Up @@ -707,30 +708,35 @@ let get_arm_format_spec_parameters
aas_start_state cpars in
let (_, pars, _, _) =
List.fold_left (fun (aas, accpars, varargindex, nxtindex) argspec ->
let ftype = get_fmt_spec_type argspec in
let ftype =
if is_float ftype then
promote_float ftype
else if is_int ftype then
promote_int ftype
else
ftype in
let size_r = size_of_btype ftype in
let name = "vararg_" ^ (string_of_int varargindex) in
let (param, new_state) =
match size_r with
| Ok 4 -> get_arm_int_param_next_state 4 name ftype aas nxtindex
| Ok 8 -> get_long_int_param_next_state 8 name ftype aas varargindex
| Ok size ->
raise
(BCH_failure
(LBLOCK [
STR "Var-arg size: "; INT size; STR " not supported"]))
| Error e ->
raise
(BCH_failure
(LBLOCK [
STR "Error in var-args: "; STR (String.concat "; " e)])) in
if isinput then
let vtype = get_fmt_spec_type argspec in
let ftype = TPtr (vtype, []) in
get_arm_int_param_next_state 4 name ftype aas nxtindex
else
let ftype = get_fmt_spec_type argspec in
let ftype =
if is_float ftype then
promote_float ftype
else if is_int ftype then
promote_int ftype
else
ftype in
let size_r = size_of_btype ftype in
match size_r with
| Ok 4 -> get_arm_int_param_next_state 4 name ftype aas nxtindex
| Ok 8 -> get_long_int_param_next_state 8 name ftype aas varargindex
| Ok size ->
raise
(BCH_failure
(LBLOCK [
STR "Var-arg size: "; INT size; STR " not supported"]))
| Error e ->
raise
(BCH_failure
(LBLOCK [
STR "Error in var-args: "; STR (String.concat "; " e)])) in
(new_state, param :: accpars, varargindex + 1, nxtindex + 1))
(fmtaas, [], 1, nextindex) argspecs in
pars
2 changes: 1 addition & 1 deletion CodeHawk/CHB/bchlib/bCHARMFunctionInterface.mli
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ val arm_vfp_params:
?attrs:b_attributes_t -> ?varargs:bool -> bfunarg_t list -> fts_parameter_t list

val get_arm_format_spec_parameters:
fts_parameter_t list -> argspec_int list -> fts_parameter_t list
fts_parameter_t list -> bool -> argspec_int list -> fts_parameter_t list
Loading
Loading