Feature #7665

assert support

Added by Mikhail Chupilko 5 months ago. Updated 22 days ago.

Status:ClosedStart date:11/01/2016
Priority:NormalDue date:
Assignee:Andrei Tatarnikov% Done:

100%

Category:nMLSpent time:-
Target version:2.4
Published in build:2.4.14

Description

Specification can contain asserts to mark weird situations. MicroTESK's nML is suggested to support this construction but with an ability of disabling.

History

#1 Updated by Andrei Tatarnikov 23 days ago

  • Status changed from New to Resolved
  • Target version set to 2.4
  • % Done changed from 0 to 100

Done - r8163, r8164, r8165. Syntax is the following:

assert(GPR[0] == 0);
assert(GPR[0] == 0, "GPR[0] must be equal 0");

When an assertion fails, generation is aborted. Assertions can be enabled using the following option:

-ae,--asserts-enabled - Enables assertion checks during simulation [works with -g], default=false

#2 Updated by Andrei Tatarnikov 22 days ago

  • Status changed from Resolved to Closed
  • Published in build set to 2.4.14

Also available in: Atom PDF