#include <perms.h>

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

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

  //     2
  //     3    ! This test shows that the precedence bracketing suppression in icode2ast is wrong :-(
  //     4
  //     5    %integer j = 65, sp3 = 4

  int J;
  J = 65;
  int SP3;
  SP3 = 4;

  //     6
  //     7    %if (j-1)=(j-1)//sp3*sp3 %start

  if (J - 1 != ((long)(J - 1) / (long)SP3) * SP3) goto L_0001;

    //     8      printstring("Pass")

  _imp_PRINTSTRING(_imp_str_literal("Pass"));

  //     9    %else

  goto L_0002;
L_0001:;

//    10      printstring("Fail")

  _imp_PRINTSTRING(_imp_str_literal("Fail"));

  //    11    %finish

L_0002:;

//    12    newline

  _imp_NEWLINE();

  //    13
  //    14  %endofprogram

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