@@ -506,12 +506,6 @@ void goto_convertt::convert(
506
506
convert_non_deterministic_goto (code, dest);
507
507
else if (statement==ID_ifthenelse)
508
508
convert_ifthenelse (to_code_ifthenelse (code), dest, mode);
509
- else if (statement==ID_specc_notify)
510
- convert_specc_notify (code, dest);
511
- else if (statement==ID_specc_wait)
512
- convert_specc_wait (code, dest);
513
- else if (statement==ID_specc_par)
514
- convert_specc_par (code, dest);
515
509
else if (statement==ID_start_thread)
516
510
convert_start_thread (code, dest);
517
511
else if (statement==ID_end_thread)
@@ -1499,84 +1493,6 @@ void goto_convertt::convert_non_deterministic_goto(
1499
1493
convert_goto (code, dest);
1500
1494
}
1501
1495
1502
- void goto_convertt::convert_specc_notify (
1503
- const codet &code,
1504
- goto_programt &dest)
1505
- {
1506
- #if 0
1507
- goto_programt::targett t=dest.add_instruction(EVENT);
1508
-
1509
- forall_operands(it, code)
1510
- convert_specc_event(*it, t->events);
1511
-
1512
- t->code.swap(code);
1513
- t->source_location=code.source_location();
1514
- #endif
1515
-
1516
- copy (code, OTHER, dest);
1517
- }
1518
-
1519
- void goto_convertt::convert_specc_event (
1520
- const exprt &op,
1521
- std::set<irep_idt> &events)
1522
- {
1523
- if (op.id ()==ID_or || op.id ()==ID_and)
1524
- {
1525
- forall_operands (it, op)
1526
- convert_specc_event (*it, events);
1527
- }
1528
- else if (op.id ()==ID_specc_event)
1529
- {
1530
- irep_idt event=op.get (ID_identifier);
1531
-
1532
- if (has_prefix (id2string (event), " specc::" ))
1533
- event=std::string (id2string (event), 7 , std::string::npos);
1534
-
1535
- events.insert (event);
1536
- }
1537
- else
1538
- {
1539
- error ().source_location =op.find_source_location ();
1540
- error () << " convert_convert_event got " << op.id () << eom;
1541
- throw 0 ;
1542
- }
1543
- }
1544
-
1545
- void goto_convertt::convert_specc_wait (
1546
- const codet &code,
1547
- goto_programt &dest)
1548
- {
1549
- #if 0
1550
- goto_programt::targett t=dest.add_instruction(WAIT);
1551
-
1552
- if(code.operands().size()!=1)
1553
- {
1554
- error().source_location=code.find_source_location();
1555
- error() << "specc_wait expects one operand" << eom;
1556
- throw 0;
1557
- }
1558
-
1559
- const exprt &op=code.op0();
1560
-
1561
- if(op.id()=="or")
1562
- t->or_semantics=true;
1563
-
1564
- convert_specc_event(op, t->events);
1565
-
1566
- t->code.swap(code);
1567
- t->source_location=code.source_location();
1568
- #endif
1569
-
1570
- copy (code, OTHER, dest);
1571
- }
1572
-
1573
- void goto_convertt::convert_specc_par (
1574
- const codet &code,
1575
- goto_programt &dest)
1576
- {
1577
- copy (code, OTHER, dest);
1578
- }
1579
-
1580
1496
void goto_convertt::convert_start_thread (
1581
1497
const codet &code,
1582
1498
goto_programt &dest)
0 commit comments