#include <perms.h>

//          Edinburgh IMP77 Compiler - Version 8.4
//
//     1  %BEGIN

int main(int argc, char **argv) { /*%begin*/
  _imp_initialise(argc, argv);

  //     2  %CONSTINTEGER MULTIOCP=0
  //     3  %conststring(3) multi="yes"

  const _imp_string3 MULTI = _imp_str_init("yes");

  //     4  %INTEGER SEMA

  int SEMA;

  //     5  %CONTROL X'1FFFFFFF'

  // _imp_control(65535); /* %control is a compiler directive and does not generate code. */

  //     6        %IF MULTIOCP=0 %THEN SEMA=-1

  if (0 != 0) goto L_0001;
  SEMA = -1;
L_0001:;

//     7        %if multi="yes" %then sema=-2

  if (_imp_strcmp((_imp_string *)/*?*/ &MULTI, (_imp_string *)/*?*/ _imp_str_literal_ptr("yes")) != 0) goto L_0002;

  SEMA = -2;
L_0002:;

//     8  %CONTROL X'0FFFFFFF'

// _imp_control(65535); /* %control is a compiler directive and does not generate code. */

//     9  %ENDOFPROGRAM

  _imp_stop(0);
  return 0;
end_0:;
}