Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 201
    • Issues 201
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #280
Closed
Open
Created Feb 05, 2018 by Jens Gerlach@gerlach

Alt-Ergo reports about " bool and int cannot be unified"

ID0002355: This issue was created automatically from Mantis Issue 2355. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002355 Frama-C Plug-in > clang public 2018-02-05 2018-02-05
Reporter jens Assigned To virgile Resolution open
Priority normal Severity minor Reproducibility always
Platform - OS - OS Version -
Product Version Frama-C 16-Sulfur Target Version - Fixed in Version -

Description :

If the attached simple C++ file is processed with the command line

frama-c  -wp -wp-rte  -warn-unsigned-downcast   -wp-out equal.wp++  equal.cpp

then the following error message occurs:

[wp] [Alt-Ergo] Goal typed__Z5equali_assert_rte_unsigned_downcast : Failed characters 4-22:typing error: bool and int cannot be unified

Could it be that Frama-Clang (or WP?) treats the return value of operator == as int instead of bool?

Additional Information :

The error message disappears when the option "-warn-unsigned-downcast" is omitted.

Attachments

  • equal.cpp
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking