Skip to content

Commit

Permalink
Add more builtin functions support
Browse files Browse the repository at this point in the history
  • Loading branch information
celinval committed May 4, 2023
1 parent 9726c18 commit 7646caa
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cprover_bindings/src/goto_program/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub enum BuiltinFn {
Copysignf,
Cos,
Cosf,
Error,
ErrorNoLocation,
Exp,
Exp2,
Expand Down Expand Up @@ -78,6 +79,7 @@ impl ToString for BuiltinFn {
Copysignf => "copysignf",
Cos => "cos",
Cosf => "cosf",
Error => "__error",
ErrorNoLocation => "__errno_location",
Exp => "exp",
Exp2 => "exp2",
Expand Down Expand Up @@ -143,6 +145,7 @@ impl BuiltinFn {
Copysignf => vec![Type::float(), Type::float()],
Cos => vec![Type::double()],
Cosf => vec![Type::float()],
Error => vec![],
ErrorNoLocation => vec![],
Exp => vec![Type::double()],
Exp2 => vec![Type::double()],
Expand Down Expand Up @@ -201,6 +204,7 @@ impl BuiltinFn {
Copysignf => Type::float(),
Cos => Type::double(),
Cosf => Type::float(),
Error => Type::c_int().to_pointer(),
ErrorNoLocation => Type::c_int().to_pointer(),
Exp => Type::double(),
Exp2 => Type::double(),
Expand Down Expand Up @@ -262,6 +266,7 @@ impl BuiltinFn {
Copysignf,
Cos,
Cosf,
Error,
ErrorNoLocation,
Exp,
Exp2,
Expand Down

0 comments on commit 7646caa

Please sign in to comment.